Debian Codegraph @

libconcord/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libconcord 1.5.
4 #
5 # Report bugs to <[email protected]>.
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: [email protected] 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='libconcord'
623 PACKAGE_TARNAME='libconcord'
624 PACKAGE_VERSION='1.5'
625 PACKAGE_STRING='libconcord 1.5'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 CURL_LIBS
666 CURL_CFLAGS
667 ZIP_LIBS
668 ZIP_CFLAGS
669 PKG_CONFIG_LIBDIR
670 PKG_CONFIG_PATH
671 PKG_CONFIG
672 LIBCONCORD_LDFLAGS
673 HAVE_NEW_MIME_FALSE
674 HAVE_NEW_MIME_TRUE
675 UPDATE_MIME_DATABASE
676 CXXCPP
677 am__fastdepCXX_FALSE
678 am__fastdepCXX_TRUE
679 CXXDEPMODE
680 ac_ct_CXX
681 CXXFLAGS
682 CXX
683 LT_SYS_LIBRARY_PATH
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 DLLTOOL
692 OBJDUMP
693 FILECMD
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 EGREP
701 GREP
702 SED
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 am__fastdepCC_FALSE
713 am__fastdepCC_TRUE
714 CCDEPMODE
715 am__nodep
716 AMDEPBACKSLASH
717 AMDEP_FALSE
718 AMDEP_TRUE
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 ac_ct_AR
729 AR
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 CSCOPE
735 ETAGS
736 CTAGS
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 runstatedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL
799 am__quote'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_silent_rules
804 enable_dependency_tracking
805 enable_shared
806 enable_static
807 with_pic
808 enable_fast_install
809 with_aix_soname
810 with_gnu_ld
811 with_sysroot
812 enable_libtool_lock
813 enable_mime_update
814 enable_force_libusb_on_linux
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 LT_SYS_LIBRARY_PATH
825 CXX
826 CXXFLAGS
827 CCC
828 CXXCPP
829 PKG_CONFIG
830 PKG_CONFIG_PATH
831 PKG_CONFIG_LIBDIR
832 ZIP_CFLAGS
833 ZIP_LIBS
834 CURL_CFLAGS
835 CURL_LIBS'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 runstatedir='${localstatedir}/run'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
886
887 ac_prev=
888 ac_dashdash=
889 for ac_option
890 do
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
896 fi
897
898 case $ac_option in
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *=) ac_optarg= ;;
901 *) ac_optarg=yes ;;
902 esac
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: \`$ac_useropt'"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: \`$ac_useropt'"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -runstatedir | --runstatedir | --runstatedi | --runstated \
1126 | --runstate | --runstat | --runsta | --runst | --runs \
1127 | --run | --ru | --r)
1128 ac_prev=runstatedir ;;
1129 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1130 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1131 | --run=* | --ru=* | --r=*)
1132 runstatedir=$ac_optarg ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1178
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: \`$ac_useropt'"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1194
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: \`$ac_useropt'"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1228
1229 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1231 ;;
1232
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1242
1243 *)
1244 # FIXME: should be removed in autoconf 3.0.
1245 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 ;;
1250
1251 esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error $? "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir runstatedir
1272 do
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 elif test "x$build_alias" != "x$host_alias"; then
1300 cross_compiling=yes
1301 fi
1302 fi
1303
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307 test "$silent" = yes && exec 6>/dev/null
1308
1309
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error $? "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 printf "%s\n" X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\).*/{
1341 s//\1/
1342 q
1343 }
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1348 fi
1349 else
1350 ac_srcdir_defaulted=no
1351 fi
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 fi
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359 pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 srcdir=.
1363 fi
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384 \`configure' configures libconcord 1.5 to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking ...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/libconcord]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
1438 _ACEOF
1439
1440 cat <<\_ACEOF
1441
1442 Program names:
1443 --program-prefix=PREFIX prepend PREFIX to installed program names
1444 --program-suffix=SUFFIX append SUFFIX to installed program names
1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446
1447 System types:
1448 --build=BUILD configure for building on BUILD [guessed]
1449 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454 case $ac_init_help in
1455 short | recursive ) echo "Configuration of libconcord 1.5:";;
1456 esac
1457 cat <<\_ACEOF
1458
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-silent-rules less verbose build output (undo: "make V=1")
1464 --disable-silent-rules verbose build output (undo: "make V=0")
1465 --enable-dependency-tracking
1466 do not reject slow dependency extractors
1467 --disable-dependency-tracking
1468 speeds up one-time build
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --disable-mime-update Disable the MIME database update
1475 --enable-force-libusb-on-linux
1476 Use libusb on Linux
1477
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1482 both]
1483 --with-aix-soname=aix|svr4|both
1484 shared library versioning (aka "SONAME") variant to
1485 provide on AIX, [default=aix].
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1488 compiler's sysroot if not specified).
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 LT_SYS_LIBRARY_PATH
1499 User-defined run-time library search path.
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CXXCPP C++ preprocessor
1503 PKG_CONFIG path to pkg-config utility
1504 PKG_CONFIG_PATH
1505 directories to add to pkg-config's search path
1506 PKG_CONFIG_LIBDIR
1507 path overriding pkg-config's built-in search path
1508 ZIP_CFLAGS C compiler flags for ZIP, overriding pkg-config
1509 ZIP_LIBS linker flags for ZIP, overriding pkg-config
1510 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1511 CURL_LIBS linker flags for CURL, overriding pkg-config
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to <[email protected]>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for configure.gnu first; this name is used for a wrapper for
1563 # Metaconfig's "Configure" on case-insensitive file systems.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 libconcord configure 1.5
1581 generated by GNU Autoconf 2.71
1582
1583 Copyright (C) 2021 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest.beam
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 printf "%s\n" "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext
1620 then :
1621 ac_retval=0
1622 else $as_nop
1623 printf "%s\n" "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 printf "%s\n" "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1661 }
1662 then :
1663 ac_retval=0
1664 else $as_nop
1665 printf "%s\n" "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 printf %s "checking for $2... " >&6; }
1689 if eval test \${$3+y}
1690 then :
1691 printf %s "(cached) " >&6
1692 else $as_nop
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 $4
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_compile "$LINENO"
1699 then :
1700 eval "$3=yes"
1701 else $as_nop
1702 eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1705 fi
1706 eval ac_res=\$$3
1707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 printf "%s\n" "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_compile
1712
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 printf %s "checking for $2... " >&6; }
1721 if eval test \${$3+y}
1722 then :
1723 printf %s "(cached) " >&6
1724 else $as_nop
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729 #define $2 innocuous_$2
1730
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (); below. */
1733
1734 #include <limits.h>
1735 #undef $2
1736
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1740 #ifdef __cplusplus
1741 extern "C"
1742 #endif
1743 char $2 ();
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1748 choke me
1749 #endif
1750
1751 int
1752 main (void)
1753 {
1754 return $2 ();
1755 ;
1756 return 0;
1757 }
1758 _ACEOF
1759 if ac_fn_c_try_link "$LINENO"
1760 then :
1761 eval "$3=yes"
1762 else $as_nop
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1766 conftest$ac_exeext conftest.$ac_ext
1767 fi
1768 eval ac_res=\$$3
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 printf "%s\n" "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_func
1774
1775 # ac_fn_cxx_try_compile LINENO
1776 # ----------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_cxx_try_compile ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest.beam
1782 if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 printf "%s\n" "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_cxx_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext
1801 then :
1802 ac_retval=0
1803 else $as_nop
1804 printf "%s\n" "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_cxx_try_compile
1813
1814 # ac_fn_cxx_try_cpp LINENO
1815 # ------------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_cxx_try_cpp ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 printf "%s\n" "$ac_try_echo"; } >&5
1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } > conftest.i && {
1836 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 }
1839 then :
1840 ac_retval=0
1841 else $as_nop
1842 printf "%s\n" "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846 fi
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1849
1850 } # ac_fn_cxx_try_cpp
1851
1852 # ac_fn_cxx_try_link LINENO
1853 # -------------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_cxx_try_link ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1859 if { { ac_try="$ac_link"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 printf "%s\n" "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>conftest.err
1867 ac_status=$?
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1872 fi
1873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest$ac_exeext && {
1878 test "$cross_compiling" = yes ||
1879 test -x conftest$ac_exeext
1880 }
1881 then :
1882 ac_retval=0
1883 else $as_nop
1884 printf "%s\n" "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1
1888 fi
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1896
1897 } # ac_fn_cxx_try_link
1898 ac_configure_args_raw=
1899 for ac_arg
1900 do
1901 case $ac_arg in
1902 *\'*)
1903 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904 esac
1905 as_fn_append ac_configure_args_raw " '$ac_arg'"
1906 done
1907
1908 case $ac_configure_args_raw in
1909 *$as_nl*)
1910 ac_safe_unquote= ;;
1911 *)
1912 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1913 ac_unsafe_a="$ac_unsafe_z#~"
1914 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1915 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1916 esac
1917
1918 cat >config.log <<_ACEOF
1919 This file contains any messages produced by compilers while
1920 running configure, to aid debugging if configure makes a mistake.
1921
1922 It was created by libconcord $as_me 1.5, which was
1923 generated by GNU Autoconf 2.71. Invocation command line was
1924
1925 $ $0$ac_configure_args_raw
1926
1927 _ACEOF
1928 exec 5>>config.log
1929 {
1930 cat <<_ASUNAME
1931 ## --------- ##
1932 ## Platform. ##
1933 ## --------- ##
1934
1935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940
1941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1943
1944 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1945 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1947 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1948 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1949 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1950 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951
1952 _ASUNAME
1953
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957 IFS=$as_save_IFS
1958 case $as_dir in #(((
1959 '') as_dir=./ ;;
1960 */) ;;
1961 *) as_dir=$as_dir/ ;;
1962 esac
1963 printf "%s\n" "PATH: $as_dir"
1964 done
1965 IFS=$as_save_IFS
1966
1967 } >&5
1968
1969 cat >&5 <<_ACEOF
1970
1971
1972 ## ----------- ##
1973 ## Core tests. ##
1974 ## ----------- ##
1975
1976 _ACEOF
1977
1978
1979 # Keep a trace of the command line.
1980 # Strip out --no-create and --no-recursion so they do not pile up.
1981 # Strip out --silent because we don't want to record it for future runs.
1982 # Also quote any args containing shell meta-characters.
1983 # Make two passes to allow for proper duplicate-argument suppression.
1984 ac_configure_args=
1985 ac_configure_args0=
1986 ac_configure_args1=
1987 ac_must_keep_next=false
1988 for ac_pass in 1 2
1989 do
1990 for ac_arg
1991 do
1992 case $ac_arg in
1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1995 | -silent | --silent | --silen | --sile | --sil)
1996 continue ;;
1997 *\'*)
1998 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 esac
2000 case $ac_pass in
2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2002 2)
2003 as_fn_append ac_configure_args1 " '$ac_arg'"
2004 if test $ac_must_keep_next = true; then
2005 ac_must_keep_next=false # Got value, back to normal.
2006 else
2007 case $ac_arg in
2008 *=* | --config-cache | -C | -disable-* | --disable-* \
2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2011 | -with-* | --with-* | -without-* | --without-* | --x)
2012 case "$ac_configure_args0 " in
2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2014 esac
2015 ;;
2016 -* ) ac_must_keep_next=true ;;
2017 esac
2018 fi
2019 as_fn_append ac_configure_args " '$ac_arg'"
2020 ;;
2021 esac
2022 done
2023 done
2024 { ac_configure_args0=; unset ac_configure_args0;}
2025 { ac_configure_args1=; unset ac_configure_args1;}
2026
2027 # When interrupted or exit'd, cleanup temporary files, and complete
2028 # config.log. We remove comments because anyway the quotes in there
2029 # would cause problems or look ugly.
2030 # WARNING: Use '\'' to represent an apostrophe within the trap.
2031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2032 trap 'exit_status=$?
2033 # Sanitize IFS.
2034 IFS=" "" $as_nl"
2035 # Save into config.log some information that might help in debugging.
2036 {
2037 echo
2038
2039 printf "%s\n" "## ---------------- ##
2040 ## Cache variables. ##
2041 ## ---------------- ##"
2042 echo
2043 # The following way of writing the cache mishandles newlines in values,
2044 (
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in #(
2048 *${as_nl}*)
2049 case $ac_var in #(
2050 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 esac
2053 case $ac_var in #(
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2057 esac ;;
2058 esac
2059 done
2060 (set) 2>&1 |
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
2063 sed -n \
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 ;; #(
2067 *)
2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 ;;
2070 esac |
2071 sort
2072 )
2073 echo
2074
2075 printf "%s\n" "## ----------------- ##
2076 ## Output variables. ##
2077 ## ----------------- ##"
2078 echo
2079 for ac_var in $ac_subst_vars
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 printf "%s\n" "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088
2089 if test -n "$ac_subst_files"; then
2090 printf "%s\n" "## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##"
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 printf "%s\n" "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 printf "%s\n" "## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##"
2109 echo
2110 cat confdefs.h
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
2114 printf "%s\n" "$as_me: caught signal $ac_signal"
2115 printf "%s\n" "$as_me: exit $exit_status"
2116 } >&5
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 exit $exit_status
2120 ' 0
2121 for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123 done
2124 ac_signal=0
2125
2126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2127 rm -f -r conftest* confdefs.h
2128
2129 printf "%s\n" "/* confdefs.h */" > confdefs.h
2130
2131 # Predefined preprocessor variables.
2132
2133 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2134
2135 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2136
2137 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2138
2139 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2140
2141 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2142
2143 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2144
2145
2146 # Let the site file select an alternate cache file if it wants to.
2147 # Prefer an explicitly selected file to automatically selected ones.
2148 if test -n "$CONFIG_SITE"; then
2149 ac_site_files="$CONFIG_SITE"
2150 elif test "x$prefix" != xNONE; then
2151 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2152 else
2153 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2154 fi
2155
2156 for ac_site_file in $ac_site_files
2157 do
2158 case $ac_site_file in #(
2159 */*) :
2160 ;; #(
2161 *) :
2162 ac_site_file=./$ac_site_file ;;
2163 esac
2164 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2168 . "$ac_site_file" \
2169 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2171 as_fn_error $? "failed to load site script $ac_site_file
2172 See \`config.log' for more details" "$LINENO" 5; }
2173 fi
2174 done
2175
2176 if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special files
2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2182 case $cache_file in
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2185 esac
2186 fi
2187 else
2188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2190 >$cache_file
2191 fi
2192
2193 # Test code for whether the C compiler supports C89 (global declarations)
2194 ac_c_conftest_c89_globals='
2195 /* Does the compiler advertise C89 conformance?
2196 Do not test the value of __STDC__, because some compilers set it to 0
2197 while being otherwise adequately conformant. */
2198 #if !defined __STDC__
2199 # error "Compiler does not advertise C89 conformance"
2200 #endif
2201
2202 #include <stddef.h>
2203 #include <stdarg.h>
2204 struct stat;
2205 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2206 struct buf { int x; };
2207 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2208 static char *e (p, i)
2209 char **p;
2210 int i;
2211 {
2212 return p[i];
2213 }
2214 static char *f (char * (*g) (char **, int), char **p, ...)
2215 {
2216 char *s;
2217 va_list v;
2218 va_start (v,p);
2219 s = g (p, va_arg (v,int));
2220 va_end (v);
2221 return s;
2222 }
2223
2224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2225 function prototypes and stuff, but not \xHH hex character constants.
2226 These do not provoke an error unfortunately, instead are silently treated
2227 as an "x". The following induces an error, until -std is added to get
2228 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2229 array size at least. It is necessary to write \x00 == 0 to get something
2230 that is true only with -std. */
2231 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2232
2233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2234 inside strings and character constants. */
2235 #define FOO(x) '\''x'\''
2236 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2237
2238 int test (int i, double x);
2239 struct s1 {int (*f) (int a);};
2240 struct s2 {int (*f) (double a);};
2241 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2242 int, int);'
2243
2244 # Test code for whether the C compiler supports C89 (body of main).
2245 ac_c_conftest_c89_main='
2246 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2247 '
2248
2249 # Test code for whether the C compiler supports C99 (global declarations)
2250 ac_c_conftest_c99_globals='
2251 // Does the compiler advertise C99 conformance?
2252 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2253 # error "Compiler does not advertise C99 conformance"
2254 #endif
2255
2256 #include <stdbool.h>
2257 extern int puts (const char *);
2258 extern int printf (const char *, ...);
2259 extern int dprintf (int, const char *, ...);
2260 extern void *malloc (size_t);
2261
2262 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2263 // dprintf is used instead of fprintf to avoid needing to declare
2264 // FILE and stderr.
2265 #define debug(...) dprintf (2, __VA_ARGS__)
2266 #define showlist(...) puts (#__VA_ARGS__)
2267 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2268 static void
2269 test_varargs_macros (void)
2270 {
2271 int x = 1234;
2272 int y = 5678;
2273 debug ("Flag");
2274 debug ("X = %d\n", x);
2275 showlist (The first, second, and third items.);
2276 report (x>y, "x is %d but y is %d", x, y);
2277 }
2278
2279 // Check long long types.
2280 #define BIG64 18446744073709551615ull
2281 #define BIG32 4294967295ul
2282 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2283 #if !BIG_OK
2284 #error "your preprocessor is broken"
2285 #endif
2286 #if BIG_OK
2287 #else
2288 #error "your preprocessor is broken"
2289 #endif
2290 static long long int bignum = -9223372036854775807LL;
2291 static unsigned long long int ubignum = BIG64;
2292
2293 struct incomplete_array
2294 {
2295 int datasize;
2296 double data[];
2297 };
2298
2299 struct named_init {
2300 int number;
2301 const wchar_t *name;
2302 double average;
2303 };
2304
2305 typedef const char *ccp;
2306
2307 static inline int
2308 test_restrict (ccp restrict text)
2309 {
2310 // See if C++-style comments work.
2311 // Iterate through items via the restricted pointer.
2312 // Also check for declarations in for loops.
2313 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2314 continue;
2315 return 0;
2316 }
2317
2318 // Check varargs and va_copy.
2319 static bool
2320 test_varargs (const char *format, ...)
2321 {
2322 va_list args;
2323 va_start (args, format);
2324 va_list args_copy;
2325 va_copy (args_copy, args);
2326
2327 const char *str = "";
2328 int number = 0;
2329 float fnumber = 0;
2330
2331 while (*format)
2332 {
2333 switch (*format++)
2334 {
2335 case '\''s'\'': // string
2336 str = va_arg (args_copy, const char *);
2337 break;
2338 case '\''d'\'': // int
2339 number = va_arg (args_copy, int);
2340 break;
2341 case '\''f'\'': // float
2342 fnumber = va_arg (args_copy, double);
2343 break;
2344 default:
2345 break;
2346 }
2347 }
2348 va_end (args_copy);
2349 va_end (args);
2350
2351 return *str && number && fnumber;
2352 }
2353 '
2354
2355 # Test code for whether the C compiler supports C99 (body of main).
2356 ac_c_conftest_c99_main='
2357 // Check bool.
2358 _Bool success = false;
2359 success |= (argc != 0);
2360
2361 // Check restrict.
2362 if (test_restrict ("String literal") == 0)
2363 success = true;
2364 char *restrict newvar = "Another string";
2365
2366 // Check varargs.
2367 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2368 test_varargs_macros ();
2369
2370 // Check flexible array members.
2371 struct incomplete_array *ia =
2372 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2373 ia->datasize = 10;
2374 for (int i = 0; i < ia->datasize; ++i)
2375 ia->data[i] = i * 1.234;
2376
2377 // Check named initializers.
2378 struct named_init ni = {
2379 .number = 34,
2380 .name = L"Test wide string",
2381 .average = 543.34343,
2382 };
2383
2384 ni.number = 58;
2385
2386 int dynamic_array[ni.number];
2387 dynamic_array[0] = argv[0][0];
2388 dynamic_array[ni.number - 1] = 543;
2389
2390 // work around unused variable warnings
2391 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2392 || dynamic_array[ni.number - 1] != 543);
2393 '
2394
2395 # Test code for whether the C compiler supports C11 (global declarations)
2396 ac_c_conftest_c11_globals='
2397 // Does the compiler advertise C11 conformance?
2398 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2399 # error "Compiler does not advertise C11 conformance"
2400 #endif
2401
2402 // Check _Alignas.
2403 char _Alignas (double) aligned_as_double;
2404 char _Alignas (0) no_special_alignment;
2405 extern char aligned_as_int;
2406 char _Alignas (0) _Alignas (int) aligned_as_int;
2407
2408 // Check _Alignof.
2409 enum
2410 {
2411 int_alignment = _Alignof (int),
2412 int_array_alignment = _Alignof (int[100]),
2413 char_alignment = _Alignof (char)
2414 };
2415 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2416
2417 // Check _Noreturn.
2418 int _Noreturn does_not_return (void) { for (;;) continue; }
2419
2420 // Check _Static_assert.
2421 struct test_static_assert
2422 {
2423 int x;
2424 _Static_assert (sizeof (int) <= sizeof (long int),
2425 "_Static_assert does not work in struct");
2426 long int y;
2427 };
2428
2429 // Check UTF-8 literals.
2430 #define u8 syntax error!
2431 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2432
2433 // Check duplicate typedefs.
2434 typedef long *long_ptr;
2435 typedef long int *long_ptr;
2436 typedef long_ptr long_ptr;
2437
2438 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2439 struct anonymous
2440 {
2441 union {
2442 struct { int i; int j; };
2443 struct { int k; long int l; } w;
2444 };
2445 int m;
2446 } v1;
2447 '
2448
2449 # Test code for whether the C compiler supports C11 (body of main).
2450 ac_c_conftest_c11_main='
2451 _Static_assert ((offsetof (struct anonymous, i)
2452 == offsetof (struct anonymous, w.k)),
2453 "Anonymous union alignment botch");
2454 v1.i = 2;
2455 v1.w.k = 5;
2456 ok |= v1.i != 5;
2457 '
2458
2459 # Test code for whether the C compiler supports C11 (complete).
2460 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2461 ${ac_c_conftest_c99_globals}
2462 ${ac_c_conftest_c11_globals}
2463
2464 int
2465 main (int argc, char **argv)
2466 {
2467 int ok = 0;
2468 ${ac_c_conftest_c89_main}
2469 ${ac_c_conftest_c99_main}
2470 ${ac_c_conftest_c11_main}
2471 return ok;
2472 }
2473 "
2474
2475 # Test code for whether the C compiler supports C99 (complete).
2476 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2477 ${ac_c_conftest_c99_globals}
2478
2479 int
2480 main (int argc, char **argv)
2481 {
2482 int ok = 0;
2483 ${ac_c_conftest_c89_main}
2484 ${ac_c_conftest_c99_main}
2485 return ok;
2486 }
2487 "
2488
2489 # Test code for whether the C compiler supports C89 (complete).
2490 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2491
2492 int
2493 main (int argc, char **argv)
2494 {
2495 int ok = 0;
2496 ${ac_c_conftest_c89_main}
2497 return ok;
2498 }
2499 "
2500
2501 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2502 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2503 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2504 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2505 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2506 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2507 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2508 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2509 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2510 # Test code for whether the C++ compiler supports C++98 (global declarations)
2511 ac_cxx_conftest_cxx98_globals='
2512 // Does the compiler advertise C++98 conformance?
2513 #if !defined __cplusplus || __cplusplus < 199711L
2514 # error "Compiler does not advertise C++98 conformance"
2515 #endif
2516
2517 // These inclusions are to reject old compilers that
2518 // lack the unsuffixed header files.
2519 #include <cstdlib>
2520 #include <exception>
2521
2522 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2523 extern void assert (int);
2524 namespace std {
2525 extern int strcmp (const char *, const char *);
2526 }
2527
2528 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2529 using std::exception;
2530 using std::strcmp;
2531
2532 namespace {
2533
2534 void test_exception_syntax()
2535 {
2536 try {
2537 throw "test";
2538 } catch (const char *s) {
2539 // Extra parentheses suppress a warning when building autoconf itself,
2540 // due to lint rules shared with more typical C programs.
2541 assert (!(strcmp) (s, "test"));
2542 }
2543 }
2544
2545 template <typename T> struct test_template
2546 {
2547 T const val;
2548 explicit test_template(T t) : val(t) {}
2549 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2550 };
2551
2552 } // anonymous namespace
2553 '
2554
2555 # Test code for whether the C++ compiler supports C++98 (body of main)
2556 ac_cxx_conftest_cxx98_main='
2557 assert (argc);
2558 assert (! argv[0]);
2559 {
2560 test_exception_syntax ();
2561 test_template<double> tt (2.0);
2562 assert (tt.add (4) == 6.0);
2563 assert (true && !false);
2564 }
2565 '
2566
2567 # Test code for whether the C++ compiler supports C++11 (global declarations)
2568 ac_cxx_conftest_cxx11_globals='
2569 // Does the compiler advertise C++ 2011 conformance?
2570 #if !defined __cplusplus || __cplusplus < 201103L
2571 # error "Compiler does not advertise C++11 conformance"
2572 #endif
2573
2574 namespace cxx11test
2575 {
2576 constexpr int get_val() { return 20; }
2577
2578 struct testinit
2579 {
2580 int i;
2581 double d;
2582 };
2583
2584 class delegate
2585 {
2586 public:
2587 delegate(int n) : n(n) {}
2588 delegate(): delegate(2354) {}
2589
2590 virtual int getval() { return this->n; };
2591 protected:
2592 int n;
2593 };
2594
2595 class overridden : public delegate
2596 {
2597 public:
2598 overridden(int n): delegate(n) {}
2599 virtual int getval() override final { return this->n * 2; }
2600 };
2601
2602 class nocopy
2603 {
2604 public:
2605 nocopy(int i): i(i) {}
2606 nocopy() = default;
2607 nocopy(const nocopy&) = delete;
2608 nocopy & operator=(const nocopy&) = delete;
2609 private:
2610 int i;
2611 };
2612
2613 // for testing lambda expressions
2614 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2615 {
2616 return f(v);
2617 }
2618
2619 // for testing variadic templates and trailing return types
2620 template <typename V> auto sum(V first) -> V
2621 {
2622 return first;
2623 }
2624 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2625 {
2626 return first + sum(rest...);
2627 }
2628 }
2629 '
2630
2631 # Test code for whether the C++ compiler supports C++11 (body of main)
2632 ac_cxx_conftest_cxx11_main='
2633 {
2634 // Test auto and decltype
2635 auto a1 = 6538;
2636 auto a2 = 48573953.4;
2637 auto a3 = "String literal";
2638
2639 int total = 0;
2640 for (auto i = a3; *i; ++i) { total += *i; }
2641
2642 decltype(a2) a4 = 34895.034;
2643 }
2644 {
2645 // Test constexpr
2646 short sa[cxx11test::get_val()] = { 0 };
2647 }
2648 {
2649 // Test initializer lists
2650 cxx11test::testinit il = { 4323, 435234.23544 };
2651 }
2652 {
2653 // Test range-based for
2654 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2655 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2656 for (auto &x : array) { x += 23; }
2657 }
2658 {
2659 // Test lambda expressions
2660 using cxx11test::eval;
2661 assert (eval ([](int x) { return x*2; }, 21) == 42);
2662 double d = 2.0;
2663 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2664 assert (d == 5.0);
2665 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2666 assert (d == 5.0);
2667 }
2668 {
2669 // Test use of variadic templates
2670 using cxx11test::sum;
2671 auto a = sum(1);
2672 auto b = sum(1, 2);
2673 auto c = sum(1.0, 2.0, 3.0);
2674 }
2675 {
2676 // Test constructor delegation
2677 cxx11test::delegate d1;
2678 cxx11test::delegate d2();
2679 cxx11test::delegate d3(45);
2680 }
2681 {
2682 // Test override and final
2683 cxx11test::overridden o1(55464);
2684 }
2685 {
2686 // Test nullptr
2687 char *c = nullptr;
2688 }
2689 {
2690 // Test template brackets
2691 test_template<::test_template<int>> v(test_template<int>(12));
2692 }
2693 {
2694 // Unicode literals
2695 char const *utf8 = u8"UTF-8 string \u2500";
2696 char16_t const *utf16 = u"UTF-8 string \u2500";
2697 char32_t const *utf32 = U"UTF-32 string \u2500";
2698 }
2699 '
2700
2701 # Test code for whether the C compiler supports C++11 (complete).
2702 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2703 ${ac_cxx_conftest_cxx11_globals}
2704
2705 int
2706 main (int argc, char **argv)
2707 {
2708 int ok = 0;
2709 ${ac_cxx_conftest_cxx98_main}
2710 ${ac_cxx_conftest_cxx11_main}
2711 return ok;
2712 }
2713 "
2714
2715 # Test code for whether the C compiler supports C++98 (complete).
2716 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2717 int
2718 main (int argc, char **argv)
2719 {
2720 int ok = 0;
2721 ${ac_cxx_conftest_cxx98_main}
2722 return ok;
2723 }
2724 "
2725
2726
2727 # Auxiliary files required by this configure script.
2728 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2729
2730 # Locations in which to look for auxiliary files.
2731 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2732
2733 # Search for a directory containing all of the required auxiliary files,
2734 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2735 # If we don't find one directory that contains all the files we need,
2736 # we report the set of missing files from the *first* directory in
2737 # $ac_aux_dir_candidates and give up.
2738 ac_missing_aux_files=""
2739 ac_first_candidate=:
2740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 as_found=false
2743 for as_dir in $ac_aux_dir_candidates
2744 do
2745 IFS=$as_save_IFS
2746 case $as_dir in #(((
2747 '') as_dir=./ ;;
2748 */) ;;
2749 *) as_dir=$as_dir/ ;;
2750 esac
2751 as_found=:
2752
2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2754 ac_aux_dir_found=yes
2755 ac_install_sh=
2756 for ac_aux in $ac_aux_files
2757 do
2758 # As a special case, if "install-sh" is required, that requirement
2759 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2760 # and $ac_install_sh is set appropriately for whichever one is found.
2761 if test x"$ac_aux" = x"install-sh"
2762 then
2763 if test -f "${as_dir}install-sh"; then
2764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2765 ac_install_sh="${as_dir}install-sh -c"
2766 elif test -f "${as_dir}install.sh"; then
2767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2768 ac_install_sh="${as_dir}install.sh -c"
2769 elif test -f "${as_dir}shtool"; then
2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2771 ac_install_sh="${as_dir}shtool install -c"
2772 else
2773 ac_aux_dir_found=no
2774 if $ac_first_candidate; then
2775 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2776 else
2777 break
2778 fi
2779 fi
2780 else
2781 if test -f "${as_dir}${ac_aux}"; then
2782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2783 else
2784 ac_aux_dir_found=no
2785 if $ac_first_candidate; then
2786 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2787 else
2788 break
2789 fi
2790 fi
2791 fi
2792 done
2793 if test "$ac_aux_dir_found" = yes; then
2794 ac_aux_dir="$as_dir"
2795 break
2796 fi
2797 ac_first_candidate=false
2798
2799 as_found=false
2800 done
2801 IFS=$as_save_IFS
2802 if $as_found
2803 then :
2804
2805 else $as_nop
2806 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2807 fi
2808
2809
2810 # These three variables are undocumented and unsupported,
2811 # and are intended to be withdrawn in a future Autoconf release.
2812 # They can cause serious problems if a builder's source tree is in a directory
2813 # whose full name contains unusual characters.
2814 if test -f "${ac_aux_dir}config.guess"; then
2815 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2816 fi
2817 if test -f "${ac_aux_dir}config.sub"; then
2818 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2819 fi
2820 if test -f "$ac_aux_dir/configure"; then
2821 ac_configure="$SHELL ${ac_aux_dir}configure"
2822 fi
2823
2824 # Check that the precious variables saved in the cache have kept the same
2825 # value.
2826 ac_cache_corrupted=false
2827 for ac_var in $ac_precious_vars; do
2828 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2829 eval ac_new_set=\$ac_env_${ac_var}_set
2830 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2831 eval ac_new_val=\$ac_env_${ac_var}_value
2832 case $ac_old_set,$ac_new_set in
2833 set,)
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2835 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2836 ac_cache_corrupted=: ;;
2837 ,set)
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2839 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2840 ac_cache_corrupted=: ;;
2841 ,);;
2842 *)
2843 if test "x$ac_old_val" != "x$ac_new_val"; then
2844 # differences in whitespace do not lead to failure.
2845 ac_old_val_w=`echo x $ac_old_val`
2846 ac_new_val_w=`echo x $ac_new_val`
2847 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2849 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2850 ac_cache_corrupted=:
2851 else
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2853 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2854 eval $ac_var=\$ac_old_val
2855 fi
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2857 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2859 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2860 fi;;
2861 esac
2862 # Pass precious variables to config.status.
2863 if test "$ac_new_set" = set; then
2864 case $ac_new_val in
2865 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2866 *) ac_arg=$ac_var=$ac_new_val ;;
2867 esac
2868 case " $ac_configure_args " in
2869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2870 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2871 esac
2872 fi
2873 done
2874 if $ac_cache_corrupted; then
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2878 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2879 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2880 and start over" "$LINENO" 5
2881 fi
2882 ## -------------------- ##
2883 ## Main body of script. ##
2884 ## -------------------- ##
2885
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891
2892
2893 am__api_version='1.16'
2894
2895
2896
2897 # Find a good install program. We prefer a C program (faster),
2898 # so one script is as good as another. But avoid the broken or
2899 # incompatible versions:
2900 # SysV /etc/install, /usr/sbin/install
2901 # SunOS /usr/etc/install
2902 # IRIX /sbin/install
2903 # AIX /bin/install
2904 # AmigaOS /C/install, which installs bootblocks on floppy discs
2905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2908 # OS/2's system install, which has a completely different semantic
2909 # ./install, which can be erroneously created by make from ./install.sh.
2910 # Reject install programs that cannot install multiple files.
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2912 printf %s "checking for a BSD-compatible install... " >&6; }
2913 if test -z "$INSTALL"; then
2914 if test ${ac_cv_path_install+y}
2915 then :
2916 printf %s "(cached) " >&6
2917 else $as_nop
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 case $as_dir in #(((
2923 '') as_dir=./ ;;
2924 */) ;;
2925 *) as_dir=$as_dir/ ;;
2926 esac
2927 # Account for fact that we put trailing slashes in our PATH walk.
2928 case $as_dir in #((
2929 ./ | /[cC]/* | \
2930 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2931 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2932 /usr/ucb/* ) ;;
2933 *)
2934 # OSF1 and SCO ODT 3.0 have their own names for install.
2935 # Don't use installbsd from OSF since it installs stuff as root
2936 # by default.
2937 for ac_prog in ginstall scoinst install; do
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2940 if test $ac_prog = install &&
2941 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2942 # AIX install. It has an incompatible calling convention.
2943 :
2944 elif test $ac_prog = install &&
2945 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946 # program-specific install script used by HP pwplus--don't use.
2947 :
2948 else
2949 rm -rf conftest.one conftest.two conftest.dir
2950 echo one > conftest.one
2951 echo two > conftest.two
2952 mkdir conftest.dir
2953 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2954 test -s conftest.one && test -s conftest.two &&
2955 test -s conftest.dir/conftest.one &&
2956 test -s conftest.dir/conftest.two
2957 then
2958 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2959 break 3
2960 fi
2961 fi
2962 fi
2963 done
2964 done
2965 ;;
2966 esac
2967
2968 done
2969 IFS=$as_save_IFS
2970
2971 rm -rf conftest.one conftest.two conftest.dir
2972
2973 fi
2974 if test ${ac_cv_path_install+y}; then
2975 INSTALL=$ac_cv_path_install
2976 else
2977 # As a last resort, use the slow shell script. Don't cache a
2978 # value for INSTALL within a source directory, because that will
2979 # break other packages using the cache if that directory is
2980 # removed, or if the value is a relative name.
2981 INSTALL=$ac_install_sh
2982 fi
2983 fi
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2985 printf "%s\n" "$INSTALL" >&6; }
2986
2987 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2988 # It thinks the first close brace ends the variable substitution.
2989 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2990
2991 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2992
2993 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2994
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2996 printf %s "checking whether build environment is sane... " >&6; }
2997 # Reject unsafe characters in $srcdir or the absolute working directory
2998 # name. Accept space and tab only in the latter.
2999 am_lf='
3000 '
3001 case `pwd` in
3002 *[\\\"\#\$\&\'\`$am_lf]*)
3003 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3004 esac
3005 case $srcdir in
3006 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3007 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3008 esac
3009
3010 # Do 'set' in a subshell so we don't clobber the current shell's
3011 # arguments. Must try -L first in case configure is actually a
3012 # symlink; some systems play weird games with the mod time of symlinks
3013 # (eg FreeBSD returns the mod time of the symlink's containing
3014 # directory).
3015 if (
3016 am_has_slept=no
3017 for am_try in 1 2; do
3018 echo "timestamp, slept: $am_has_slept" > conftest.file
3019 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3020 if test "$*" = "X"; then
3021 # -L didn't work.
3022 set X `ls -t "$srcdir/configure" conftest.file`
3023 fi
3024 if test "$*" != "X $srcdir/configure conftest.file" \
3025 && test "$*" != "X conftest.file $srcdir/configure"; then
3026
3027 # If neither matched, then we have a broken ls. This can happen
3028 # if, for instance, CONFIG_SHELL is bash and it inherits a
3029 # broken ls alias from the environment. This has actually
3030 # happened. Such a system could not be considered "sane".
3031 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3032 alias in your environment" "$LINENO" 5
3033 fi
3034 if test "$2" = conftest.file || test $am_try -eq 2; then
3035 break
3036 fi
3037 # Just in case.
3038 sleep 1
3039 am_has_slept=yes
3040 done
3041 test "$2" = conftest.file
3042 )
3043 then
3044 # Ok.
3045 :
3046 else
3047 as_fn_error $? "newly created file is older than distributed files!
3048 Check your system clock" "$LINENO" 5
3049 fi
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3051 printf "%s\n" "yes" >&6; }
3052 # If we didn't sleep, we still need to ensure time stamps of config.status and
3053 # generated files are strictly newer.
3054 am_sleep_pid=
3055 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3056 ( sleep 1 ) &
3057 am_sleep_pid=$!
3058 fi
3059
3060 rm -f conftest.file
3061
3062 test "$program_prefix" != NONE &&
3063 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3064 # Use a double $ so make ignores it.
3065 test "$program_suffix" != NONE &&
3066 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3067 # Double any \ or $.
3068 # By default was `s,x,x', remove it if useless.
3069 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3070 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3071
3072
3073 # Expand $ac_aux_dir to an absolute path.
3074 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3075
3076
3077 if test x"${MISSING+set}" != xset; then
3078 MISSING="\${SHELL} '$am_aux_dir/missing'"
3079 fi
3080 # Use eval to expand $SHELL
3081 if eval "$MISSING --is-lightweight"; then
3082 am_missing_run="$MISSING "
3083 else
3084 am_missing_run=
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3086 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3087 fi
3088
3089 if test x"${install_sh+set}" != xset; then
3090 case $am_aux_dir in
3091 *\ * | *\ *)
3092 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3093 *)
3094 install_sh="\${SHELL} $am_aux_dir/install-sh"
3095 esac
3096 fi
3097
3098 # Installed binaries are usually stripped using 'strip' when the user
3099 # run "make install-strip". However 'strip' might not be the right
3100 # tool to use in cross-compilation environments, therefore Automake
3101 # will honor the 'STRIP' environment variable to overrule this program.
3102 if test "$cross_compiling" != no; then
3103 if test -n "$ac_tool_prefix"; then
3104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3105 set dummy ${ac_tool_prefix}strip; ac_word=$2
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 printf %s "checking for $ac_word... " >&6; }
3108 if test ${ac_cv_prog_STRIP+y}
3109 then :
3110 printf %s "(cached) " >&6
3111 else $as_nop
3112 if test -n "$STRIP"; then
3113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 case $as_dir in #(((
3120 '') as_dir=./ ;;
3121 */) ;;
3122 *) as_dir=$as_dir/ ;;
3123 esac
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 STRIP=$ac_cv_prog_STRIP
3137 if test -n "$STRIP"; then
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3139 printf "%s\n" "$STRIP" >&6; }
3140 else
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 printf "%s\n" "no" >&6; }
3143 fi
3144
3145
3146 fi
3147 if test -z "$ac_cv_prog_STRIP"; then
3148 ac_ct_STRIP=$STRIP
3149 # Extract the first word of "strip", so it can be a program name with args.
3150 set dummy strip; ac_word=$2
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 printf %s "checking for $ac_word... " >&6; }
3153 if test ${ac_cv_prog_ac_ct_STRIP+y}
3154 then :
3155 printf %s "(cached) " >&6
3156 else $as_nop
3157 if test -n "$ac_ct_STRIP"; then
3158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163 IFS=$as_save_IFS
3164 case $as_dir in #(((
3165 '') as_dir=./ ;;
3166 */) ;;
3167 *) as_dir=$as_dir/ ;;
3168 esac
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_STRIP="strip"
3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3182 if test -n "$ac_ct_STRIP"; then
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3184 printf "%s\n" "$ac_ct_STRIP" >&6; }
3185 else
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 printf "%s\n" "no" >&6; }
3188 fi
3189
3190 if test "x$ac_ct_STRIP" = x; then
3191 STRIP=":"
3192 else
3193 case $cross_compiling:$ac_tool_warned in
3194 yes:)
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199 STRIP=$ac_ct_STRIP
3200 fi
3201 else
3202 STRIP="$ac_cv_prog_STRIP"
3203 fi
3204
3205 fi
3206 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3207
3208
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3210 printf %s "checking for a race-free mkdir -p... " >&6; }
3211 if test -z "$MKDIR_P"; then
3212 if test ${ac_cv_path_mkdir+y}
3213 then :
3214 printf %s "(cached) " >&6
3215 else $as_nop
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3218 do
3219 IFS=$as_save_IFS
3220 case $as_dir in #(((
3221 '') as_dir=./ ;;
3222 */) ;;
3223 *) as_dir=$as_dir/ ;;
3224 esac
3225 for ac_prog in mkdir gmkdir; do
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3228 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3229 'mkdir ('*'coreutils) '* | \
3230 'BusyBox '* | \
3231 'mkdir (fileutils) '4.1*)
3232 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3233 break 3;;
3234 esac
3235 done
3236 done
3237 done
3238 IFS=$as_save_IFS
3239
3240 fi
3241
3242 test -d ./--version && rmdir ./--version
3243 if test ${ac_cv_path_mkdir+y}; then
3244 MKDIR_P="$ac_cv_path_mkdir -p"
3245 else
3246 # As a last resort, use the slow shell script. Don't cache a
3247 # value for MKDIR_P within a source directory, because that will
3248 # break other packages using the cache if that directory is
3249 # removed, or if the value is a relative name.
3250 MKDIR_P="$ac_install_sh -d"
3251 fi
3252 fi
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3254 printf "%s\n" "$MKDIR_P" >&6; }
3255
3256 for ac_prog in gawk mawk nawk awk
3257 do
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 printf %s "checking for $ac_word... " >&6; }
3262 if test ${ac_cv_prog_AWK+y}
3263 then :
3264 printf %s "(cached) " >&6
3265 else $as_nop
3266 if test -n "$AWK"; then
3267 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272 IFS=$as_save_IFS
3273 case $as_dir in #(((
3274 '') as_dir=./ ;;
3275 */) ;;
3276 *) as_dir=$as_dir/ ;;
3277 esac
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_AWK="$ac_prog"
3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 AWK=$ac_cv_prog_AWK
3291 if test -n "$AWK"; then
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3293 printf "%s\n" "$AWK" >&6; }
3294 else
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 printf "%s\n" "no" >&6; }
3297 fi
3298
3299
3300 test -n "$AWK" && break
3301 done
3302
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3304 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3305 set x ${MAKE-make}
3306 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3307 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3308 then :
3309 printf %s "(cached) " >&6
3310 else $as_nop
3311 cat >conftest.make <<\_ACEOF
3312 SHELL = /bin/sh
3313 all:
3314 @echo '@@@%%%=$(MAKE)=@@@%%%'
3315 _ACEOF
3316 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3317 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3318 *@@@%%%=?*=@@@%%%*)
3319 eval ac_cv_prog_make_${ac_make}_set=yes;;
3320 *)
3321 eval ac_cv_prog_make_${ac_make}_set=no;;
3322 esac
3323 rm -f conftest.make
3324 fi
3325 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 printf "%s\n" "yes" >&6; }
3328 SET_MAKE=
3329 else
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 printf "%s\n" "no" >&6; }
3332 SET_MAKE="MAKE=${MAKE-make}"
3333 fi
3334
3335 rm -rf .tst 2>/dev/null
3336 mkdir .tst 2>/dev/null
3337 if test -d .tst; then
3338 am__leading_dot=.
3339 else
3340 am__leading_dot=_
3341 fi
3342 rmdir .tst 2>/dev/null
3343
3344 # Check whether --enable-silent-rules was given.
3345 if test ${enable_silent_rules+y}
3346 then :
3347 enableval=$enable_silent_rules;
3348 fi
3349
3350 case $enable_silent_rules in # (((
3351 yes) AM_DEFAULT_VERBOSITY=0;;
3352 no) AM_DEFAULT_VERBOSITY=1;;
3353 *) AM_DEFAULT_VERBOSITY=1;;
3354 esac
3355 am_make=${MAKE-make}
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3357 printf %s "checking whether $am_make supports nested variables... " >&6; }
3358 if test ${am_cv_make_support_nested_variables+y}
3359 then :
3360 printf %s "(cached) " >&6
3361 else $as_nop
3362 if printf "%s\n" 'TRUE=$(BAR$(V))
3363 BAR0=false
3364 BAR1=true
3365 V=1
3366 am__doit:
3367 @$(TRUE)
3368 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3369 am_cv_make_support_nested_variables=yes
3370 else
3371 am_cv_make_support_nested_variables=no
3372 fi
3373 fi
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3375 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3376 if test $am_cv_make_support_nested_variables = yes; then
3377 AM_V='$(V)'
3378 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3379 else
3380 AM_V=$AM_DEFAULT_VERBOSITY
3381 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3382 fi
3383 AM_BACKSLASH='\'
3384
3385 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3386 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3387 # is not polluted with repeated "-I."
3388 am__isrc=' -I$(srcdir)'
3389 # test to see if srcdir already configured
3390 if test -f $srcdir/config.status; then
3391 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3392 fi
3393 fi
3394
3395 # test whether we have cygpath
3396 if test -z "$CYGPATH_W"; then
3397 if (cygpath --version) >/dev/null 2>/dev/null; then
3398 CYGPATH_W='cygpath -w'
3399 else
3400 CYGPATH_W=echo
3401 fi
3402 fi
3403
3404
3405 # Define the identity of the package.
3406 PACKAGE='libconcord'
3407 VERSION='1.5'
3408
3409
3410 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3411
3412
3413 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3414
3415 # Some tools Automake needs.
3416
3417 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3418
3419
3420 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3421
3422
3423 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3424
3425
3426 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3427
3428
3429 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3430
3431 # For better backward compatibility. To be removed once Automake 1.9.x
3432 # dies out for good. For more background, see:
3433 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3434 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3435 mkdir_p='$(MKDIR_P)'
3436
3437 # We need awk for the "check" target (and possibly the TAP driver). The
3438 # system "awk" is bad on some platforms.
3439 # Always define AMTAR for backward compatibility. Yes, it's still used
3440 # in the wild :-( We should find a proper way to deprecate it ...
3441 AMTAR='$${TAR-tar}'
3442
3443
3444 # We'll loop over all known methods to create a tar archive until one works.
3445 _am_tools='gnutar pax cpio none'
3446
3447 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3448
3449
3450
3451
3452
3453 # Variables for tags utilities; see am/tags.am
3454 if test -z "$CTAGS"; then
3455 CTAGS=ctags
3456 fi
3457
3458 if test -z "$ETAGS"; then
3459 ETAGS=etags
3460 fi
3461
3462 if test -z "$CSCOPE"; then
3463 CSCOPE=cscope
3464 fi
3465
3466
3467
3468 # POSIX will say in a future version that running "rm -f" with no argument
3469 # is OK; and we want to be able to make that assumption in our Makefile
3470 # recipes. So use an aggressive probe to check that the usage we want is
3471 # actually supported "in the wild" to an acceptable degree.
3472 # See automake bug#10828.
3473 # To make any issue more visible, cause the running configure to be aborted
3474 # by default if the 'rm' program in use doesn't match our expectations; the
3475 # user can still override this though.
3476 if rm -f && rm -fr && rm -rf; then : OK; else
3477 cat >&2 <<'END'
3478 Oops!
3479
3480 Your 'rm' program seems unable to run without file operands specified
3481 on the command line, even when the '-f' option is present. This is contrary
3482 to the behaviour of most rm programs out there, and not conforming with
3483 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3484
3485 Please tell [email protected] about your system, including the value
3486 of your $PATH and any error possibly output before this message. This
3487 can help us improve future automake versions.
3488
3489 END
3490 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3491 echo 'Configuration will proceed anyway, since you have set the' >&2
3492 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3493 echo >&2
3494 else
3495 cat >&2 <<'END'
3496 Aborting the configuration process, to ensure you take notice of the issue.
3497
3498 You can download and install GNU coreutils to get an 'rm' implementation
3499 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3500
3501 If you want to complete the configuration process using your problematic
3502 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3503 to "yes", and re-run configure.
3504
3505 END
3506 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3507 fi
3508 fi
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520 DEPDIR="${am__leading_dot}deps"
3521
3522 ac_config_commands="$ac_config_commands depfiles"
3523
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3525 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3526 cat > confinc.mk << 'END'
3527 am__doit:
3528 @echo this is the am__doit target >confinc.out
3529 .PHONY: am__doit
3530 END
3531 am__include="#"
3532 am__quote=
3533 # BSD make does it like this.
3534 echo '.include "confinc.mk" # ignored' > confmf.BSD
3535 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3536 echo 'include confinc.mk # ignored' > confmf.GNU
3537 _am_result=no
3538 for s in GNU BSD; do
3539 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3540 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }
3544 case $?:`cat confinc.out 2>/dev/null` in #(
3545 '0:this is the am__doit target') :
3546 case $s in #(
3547 BSD) :
3548 am__include='.include' am__quote='"' ;; #(
3549 *) :
3550 am__include='include' am__quote='' ;;
3551 esac ;; #(
3552 *) :
3553 ;;
3554 esac
3555 if test "$am__include" != "#"; then
3556 _am_result="yes ($s style)"
3557 break
3558 fi
3559 done
3560 rm -f confinc.* confmf.*
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3562 printf "%s\n" "${_am_result}" >&6; }
3563
3564 # Check whether --enable-dependency-tracking was given.
3565 if test ${enable_dependency_tracking+y}
3566 then :
3567 enableval=$enable_dependency_tracking;
3568 fi
3569
3570 if test "x$enable_dependency_tracking" != xno; then
3571 am_depcomp="$ac_aux_dir/depcomp"
3572 AMDEPBACKSLASH='\'
3573 am__nodep='_no'
3574 fi
3575 if test "x$enable_dependency_tracking" != xno; then
3576 AMDEP_TRUE=
3577 AMDEP_FALSE='#'
3578 else
3579 AMDEP_TRUE='#'
3580 AMDEP_FALSE=
3581 fi
3582
3583
3584 ac_ext=c
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3591 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 printf %s "checking for $ac_word... " >&6; }
3594 if test ${ac_cv_prog_CC+y}
3595 then :
3596 printf %s "(cached) " >&6
3597 else $as_nop
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 case $as_dir in #(((
3606 '') as_dir=./ ;;
3607 */) ;;
3608 *) as_dir=$as_dir/ ;;
3609 esac
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 CC=$ac_cv_prog_CC
3623 if test -n "$CC"; then
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 printf "%s\n" "$CC" >&6; }
3626 else
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 printf "%s\n" "no" >&6; }
3629 fi
3630
3631
3632 fi
3633 if test -z "$ac_cv_prog_CC"; then
3634 ac_ct_CC=$CC
3635 # Extract the first word of "gcc", so it can be a program name with args.
3636 set dummy gcc; ac_word=$2
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 printf %s "checking for $ac_word... " >&6; }
3639 if test ${ac_cv_prog_ac_ct_CC+y}
3640 then :
3641 printf %s "(cached) " >&6
3642 else $as_nop
3643 if test -n "$ac_ct_CC"; then
3644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3645 else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649 IFS=$as_save_IFS
3650 case $as_dir in #(((
3651 '') as_dir=./ ;;
3652 */) ;;
3653 *) as_dir=$as_dir/ ;;
3654 esac
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_ac_ct_CC="gcc"
3658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661 done
3662 done
3663 IFS=$as_save_IFS
3664
3665 fi
3666 fi
3667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3668 if test -n "$ac_ct_CC"; then
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3670 printf "%s\n" "$ac_ct_CC" >&6; }
3671 else
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 printf "%s\n" "no" >&6; }
3674 fi
3675
3676 if test "x$ac_ct_CC" = x; then
3677 CC=""
3678 else
3679 case $cross_compiling:$ac_tool_warned in
3680 yes:)
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683 ac_tool_warned=yes ;;
3684 esac
3685 CC=$ac_ct_CC
3686 fi
3687 else
3688 CC="$ac_cv_prog_CC"
3689 fi
3690
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}cc; ac_word=$2
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 printf %s "checking for $ac_word... " >&6; }
3697 if test ${ac_cv_prog_CC+y}
3698 then :
3699 printf %s "(cached) " >&6
3700 else $as_nop
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707 IFS=$as_save_IFS
3708 case $as_dir in #(((
3709 '') as_dir=./ ;;
3710 */) ;;
3711 *) as_dir=$as_dir/ ;;
3712 esac
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_CC="${ac_tool_prefix}cc"
3716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719 done
3720 done
3721 IFS=$as_save_IFS
3722
3723 fi
3724 fi
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 printf "%s\n" "$CC" >&6; }
3729 else
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 printf "%s\n" "no" >&6; }
3732 fi
3733
3734
3735 fi
3736 fi
3737 if test -z "$CC"; then
3738 # Extract the first word of "cc", so it can be a program name with args.
3739 set dummy cc; ac_word=$2
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 printf %s "checking for $ac_word... " >&6; }
3742 if test ${ac_cv_prog_CC+y}
3743 then :
3744 printf %s "(cached) " >&6
3745 else $as_nop
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748 else
3749 ac_prog_rejected=no
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 case $as_dir in #(((
3755 '') as_dir=./ ;;
3756 */) ;;
3757 *) as_dir=$as_dir/ ;;
3758 esac
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3761 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3762 ac_prog_rejected=yes
3763 continue
3764 fi
3765 ac_cv_prog_CC="cc"
3766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3767 break 2
3768 fi
3769 done
3770 done
3771 IFS=$as_save_IFS
3772
3773 if test $ac_prog_rejected = yes; then
3774 # We found a bogon in the path, so make sure we never use it.
3775 set dummy $ac_cv_prog_CC
3776 shift
3777 if test $# != 0; then
3778 # We chose a different compiler from the bogus one.
3779 # However, it has the same basename, so the bogon will be chosen
3780 # first if we set CC to just the basename; use the full file name.
3781 shift
3782 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3783 fi
3784 fi
3785 fi
3786 fi
3787 CC=$ac_cv_prog_CC
3788 if test -n "$CC"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 printf "%s\n" "$CC" >&6; }
3791 else
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3794 fi
3795
3796
3797 fi
3798 if test -z "$CC"; then
3799 if test -n "$ac_tool_prefix"; then
3800 for ac_prog in cl.exe
3801 do
3802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 printf %s "checking for $ac_word... " >&6; }
3806 if test ${ac_cv_prog_CC+y}
3807 then :
3808 printf %s "(cached) " >&6
3809 else $as_nop
3810 if test -n "$CC"; then
3811 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816 IFS=$as_save_IFS
3817 case $as_dir in #(((
3818 '') as_dir=./ ;;
3819 */) ;;
3820 *) as_dir=$as_dir/ ;;
3821 esac
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828 done
3829 done
3830 IFS=$as_save_IFS
3831
3832 fi
3833 fi
3834 CC=$ac_cv_prog_CC
3835 if test -n "$CC"; then
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3837 printf "%s\n" "$CC" >&6; }
3838 else
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 printf "%s\n" "no" >&6; }
3841 fi
3842
3843
3844 test -n "$CC" && break
3845 done
3846 fi
3847 if test -z "$CC"; then
3848 ac_ct_CC=$CC
3849 for ac_prog in cl.exe
3850 do
3851 # Extract the first word of "$ac_prog", so it can be a program name with args.
3852 set dummy $ac_prog; ac_word=$2
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 printf %s "checking for $ac_word... " >&6; }
3855 if test ${ac_cv_prog_ac_ct_CC+y}
3856 then :
3857 printf %s "(cached) " >&6
3858 else $as_nop
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH
3864 do
3865 IFS=$as_save_IFS
3866 case $as_dir in #(((
3867 '') as_dir=./ ;;
3868 */) ;;
3869 *) as_dir=$as_dir/ ;;
3870 esac
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_ac_ct_CC="$ac_prog"
3874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3875 break 2
3876 fi
3877 done
3878 done
3879 IFS=$as_save_IFS
3880
3881 fi
3882 fi
3883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3884 if test -n "$ac_ct_CC"; then
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3886 printf "%s\n" "$ac_ct_CC" >&6; }
3887 else
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 printf "%s\n" "no" >&6; }
3890 fi
3891
3892
3893 test -n "$ac_ct_CC" && break
3894 done
3895
3896 if test "x$ac_ct_CC" = x; then
3897 CC=""
3898 else
3899 case $cross_compiling:$ac_tool_warned in
3900 yes:)
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3902 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3903 ac_tool_warned=yes ;;
3904 esac
3905 CC=$ac_ct_CC
3906 fi
3907 fi
3908
3909 fi
3910 if test -z "$CC"; then
3911 if test -n "$ac_tool_prefix"; then
3912 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}clang; ac_word=$2
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 printf %s "checking for $ac_word... " >&6; }
3916 if test ${ac_cv_prog_CC+y}
3917 then :
3918 printf %s "(cached) " >&6
3919 else $as_nop
3920 if test -n "$CC"; then
3921 ac_cv_prog_CC="$CC" # Let the user override the test.
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 case $as_dir in #(((
3928 '') as_dir=./ ;;
3929 */) ;;
3930 *) as_dir=$as_dir/ ;;
3931 esac
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_CC="${ac_tool_prefix}clang"
3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3936 break 2
3937 fi
3938 done
3939 done
3940 IFS=$as_save_IFS
3941
3942 fi
3943 fi
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947 printf "%s\n" "$CC" >&6; }
3948 else
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 printf "%s\n" "no" >&6; }
3951 fi
3952
3953
3954 fi
3955 if test -z "$ac_cv_prog_CC"; then
3956 ac_ct_CC=$CC
3957 # Extract the first word of "clang", so it can be a program name with args.
3958 set dummy clang; ac_word=$2
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 printf %s "checking for $ac_word... " >&6; }
3961 if test ${ac_cv_prog_ac_ct_CC+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else $as_nop
3965 if test -n "$ac_ct_CC"; then
3966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971 IFS=$as_save_IFS
3972 case $as_dir in #(((
3973 '') as_dir=./ ;;
3974 */) ;;
3975 *) as_dir=$as_dir/ ;;
3976 esac
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_CC="clang"
3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983 done
3984 done
3985 IFS=$as_save_IFS
3986
3987 fi
3988 fi
3989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3990 if test -n "$ac_ct_CC"; then
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3992 printf "%s\n" "$ac_ct_CC" >&6; }
3993 else
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 printf "%s\n" "no" >&6; }
3996 fi
3997
3998 if test "x$ac_ct_CC" = x; then
3999 CC=""
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002 yes:)
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005 ac_tool_warned=yes ;;
4006 esac
4007 CC=$ac_ct_CC
4008 fi
4009 else
4010 CC="$ac_cv_prog_CC"
4011 fi
4012
4013 fi
4014
4015
4016 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error $? "no acceptable C compiler found in \$PATH
4019 See \`config.log' for more details" "$LINENO" 5; }
4020
4021 # Provide some information about the compiler.
4022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4023 set X $ac_compile
4024 ac_compiler=$2
4025 for ac_option in --version -v -V -qversion -version; do
4026 { { ac_try="$ac_compiler $ac_option >&5"
4027 case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 printf "%s\n" "$ac_try_echo"; } >&5
4033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4034 ac_status=$?
4035 if test -s conftest.err; then
4036 sed '10a\
4037 ... rest of stderr output deleted ...
4038 10q' conftest.err >conftest.er1
4039 cat conftest.er1 >&5
4040 fi
4041 rm -f conftest.er1 conftest.err
4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }
4044 done
4045
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main (void)
4051 {
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 ac_clean_files_save=$ac_clean_files
4058 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4059 # Try to create an executable without -o first, disregard a.out.
4060 # It will help us diagnose broken compilers, and finding out an intuition
4061 # of exeext.
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4063 printf %s "checking whether the C compiler works... " >&6; }
4064 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4065
4066 # The possible output files:
4067 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4068
4069 ac_rmfiles=
4070 for ac_file in $ac_files
4071 do
4072 case $ac_file in
4073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4074 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4075 esac
4076 done
4077 rm -f $ac_rmfiles
4078
4079 if { { ac_try="$ac_link_default"
4080 case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085 printf "%s\n" "$ac_try_echo"; } >&5
4086 (eval "$ac_link_default") 2>&5
4087 ac_status=$?
4088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }
4090 then :
4091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4092 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4093 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4094 # so that the user can short-circuit this test for compilers unknown to
4095 # Autoconf.
4096 for ac_file in $ac_files ''
4097 do
4098 test -f "$ac_file" || continue
4099 case $ac_file in
4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4101 ;;
4102 [ab].out )
4103 # We found the default executable, but exeext='' is most
4104 # certainly right.
4105 break;;
4106 *.* )
4107 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4108 then :; else
4109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4110 fi
4111 # We set ac_cv_exeext here because the later test for it is not
4112 # safe: cross compilers may not add the suffix if given an `-o'
4113 # argument, so we may need to know it at that point already.
4114 # Even if this section looks crufty: it has the advantage of
4115 # actually working.
4116 break;;
4117 * )
4118 break;;
4119 esac
4120 done
4121 test "$ac_cv_exeext" = no && ac_cv_exeext=
4122
4123 else $as_nop
4124 ac_file=''
4125 fi
4126 if test -z "$ac_file"
4127 then :
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 printf "%s\n" "no" >&6; }
4130 printf "%s\n" "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4135 as_fn_error 77 "C compiler cannot create executables
4136 See \`config.log' for more details" "$LINENO" 5; }
4137 else $as_nop
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4139 printf "%s\n" "yes" >&6; }
4140 fi
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4142 printf %s "checking for C compiler default output file name... " >&6; }
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4144 printf "%s\n" "$ac_file" >&6; }
4145 ac_exeext=$ac_cv_exeext
4146
4147 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4148 ac_clean_files=$ac_clean_files_save
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4150 printf %s "checking for suffix of executables... " >&6; }
4151 if { { ac_try="$ac_link"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157 printf "%s\n" "$ac_try_echo"; } >&5
4158 (eval "$ac_link") 2>&5
4159 ac_status=$?
4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162 then :
4163 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4164 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4165 # work properly (i.e., refer to `conftest.exe'), while it won't with
4166 # `rm'.
4167 for ac_file in conftest.exe conftest conftest.*; do
4168 test -f "$ac_file" || continue
4169 case $ac_file in
4170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4171 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4172 break;;
4173 * ) break;;
4174 esac
4175 done
4176 else $as_nop
4177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4180 See \`config.log' for more details" "$LINENO" 5; }
4181 fi
4182 rm -f conftest conftest$ac_cv_exeext
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4184 printf "%s\n" "$ac_cv_exeext" >&6; }
4185
4186 rm -f conftest.$ac_ext
4187 EXEEXT=$ac_cv_exeext
4188 ac_exeext=$EXEEXT
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <stdio.h>
4192 int
4193 main (void)
4194 {
4195 FILE *f = fopen ("conftest.out", "w");
4196 return ferror (f) || fclose (f) != 0;
4197
4198 ;
4199 return 0;
4200 }
4201 _ACEOF
4202 ac_clean_files="$ac_clean_files conftest.out"
4203 # Check that the compiler produces executables we can run. If not, either
4204 # the compiler is broken, or we cross compile.
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4206 printf %s "checking whether we are cross compiling... " >&6; }
4207 if test "$cross_compiling" != yes; then
4208 { { ac_try="$ac_link"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 printf "%s\n" "$ac_try_echo"; } >&5
4215 (eval "$ac_link") 2>&5
4216 ac_status=$?
4217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }
4219 if { ac_try='./conftest$ac_cv_exeext'
4220 { { case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223 esac
4224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4225 printf "%s\n" "$ac_try_echo"; } >&5
4226 (eval "$ac_try") 2>&5
4227 ac_status=$?
4228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4229 test $ac_status = 0; }; }; then
4230 cross_compiling=no
4231 else
4232 if test "$cross_compiling" = maybe; then
4233 cross_compiling=yes
4234 else
4235 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4236 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4237 as_fn_error 77 "cannot run C compiled programs.
4238 If you meant to cross compile, use \`--host'.
4239 See \`config.log' for more details" "$LINENO" 5; }
4240 fi
4241 fi
4242 fi
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4244 printf "%s\n" "$cross_compiling" >&6; }
4245
4246 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4247 ac_clean_files=$ac_clean_files_save
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4249 printf %s "checking for suffix of object files... " >&6; }
4250 if test ${ac_cv_objext+y}
4251 then :
4252 printf %s "(cached) " >&6
4253 else $as_nop
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256
4257 int
4258 main (void)
4259 {
4260
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 rm -f conftest.o conftest.obj
4266 if { { ac_try="$ac_compile"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4272 printf "%s\n" "$ac_try_echo"; } >&5
4273 (eval "$ac_compile") 2>&5
4274 ac_status=$?
4275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4276 test $ac_status = 0; }
4277 then :
4278 for ac_file in conftest.o conftest.obj conftest.*; do
4279 test -f "$ac_file" || continue;
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4283 break;;
4284 esac
4285 done
4286 else $as_nop
4287 printf "%s\n" "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error $? "cannot compute suffix of object files: cannot compile
4293 See \`config.log' for more details" "$LINENO" 5; }
4294 fi
4295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4296 fi
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4298 printf "%s\n" "$ac_cv_objext" >&6; }
4299 OBJEXT=$ac_cv_objext
4300 ac_objext=$OBJEXT
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4302 printf %s "checking whether the compiler supports GNU C... " >&6; }
4303 if test ${ac_cv_c_compiler_gnu+y}
4304 then :
4305 printf %s "(cached) " >&6
4306 else $as_nop
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309
4310 int
4311 main (void)
4312 {
4313 #ifndef __GNUC__
4314 choke me
4315 #endif
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"
4322 then :
4323 ac_compiler_gnu=yes
4324 else $as_nop
4325 ac_compiler_gnu=no
4326 fi
4327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4329
4330 fi
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4332 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334
4335 if test $ac_compiler_gnu = yes; then
4336 GCC=yes
4337 else
4338 GCC=
4339 fi
4340 ac_test_CFLAGS=${CFLAGS+y}
4341 ac_save_CFLAGS=$CFLAGS
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4343 printf %s "checking whether $CC accepts -g... " >&6; }
4344 if test ${ac_cv_prog_cc_g+y}
4345 then :
4346 printf %s "(cached) " >&6
4347 else $as_nop
4348 ac_save_c_werror_flag=$ac_c_werror_flag
4349 ac_c_werror_flag=yes
4350 ac_cv_prog_cc_g=no
4351 CFLAGS="-g"
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354
4355 int
4356 main (void)
4357 {
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 if ac_fn_c_try_compile "$LINENO"
4364 then :
4365 ac_cv_prog_cc_g=yes
4366 else $as_nop
4367 CFLAGS=""
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370
4371 int
4372 main (void)
4373 {
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_compile "$LINENO"
4380 then :
4381
4382 else $as_nop
4383 ac_c_werror_flag=$ac_save_c_werror_flag
4384 CFLAGS="-g"
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387
4388 int
4389 main (void)
4390 {
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"
4397 then :
4398 ac_cv_prog_cc_g=yes
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4403 fi
4404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4405 ac_c_werror_flag=$ac_save_c_werror_flag
4406 fi
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4408 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4409 if test $ac_test_CFLAGS; then
4410 CFLAGS=$ac_save_CFLAGS
4411 elif test $ac_cv_prog_cc_g = yes; then
4412 if test "$GCC" = yes; then
4413 CFLAGS="-g -O2"
4414 else
4415 CFLAGS="-g"
4416 fi
4417 else
4418 if test "$GCC" = yes; then
4419 CFLAGS="-O2"
4420 else
4421 CFLAGS=
4422 fi
4423 fi
4424 ac_prog_cc_stdc=no
4425 if test x$ac_prog_cc_stdc = xno
4426 then :
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4428 printf %s "checking for $CC option to enable C11 features... " >&6; }
4429 if test ${ac_cv_prog_cc_c11+y}
4430 then :
4431 printf %s "(cached) " >&6
4432 else $as_nop
4433 ac_cv_prog_cc_c11=no
4434 ac_save_CC=$CC
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 $ac_c_conftest_c11_program
4438 _ACEOF
4439 for ac_arg in '' -std=gnu11
4440 do
4441 CC="$ac_save_CC $ac_arg"
4442 if ac_fn_c_try_compile "$LINENO"
4443 then :
4444 ac_cv_prog_cc_c11=$ac_arg
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.beam
4447 test "x$ac_cv_prog_cc_c11" != "xno" && break
4448 done
4449 rm -f conftest.$ac_ext
4450 CC=$ac_save_CC
4451 fi
4452
4453 if test "x$ac_cv_prog_cc_c11" = xno
4454 then :
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4456 printf "%s\n" "unsupported" >&6; }
4457 else $as_nop
4458 if test "x$ac_cv_prog_cc_c11" = x
4459 then :
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4461 printf "%s\n" "none needed" >&6; }
4462 else $as_nop
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4464 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4465 CC="$CC $ac_cv_prog_cc_c11"
4466 fi
4467 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4468 ac_prog_cc_stdc=c11
4469 fi
4470 fi
4471 if test x$ac_prog_cc_stdc = xno
4472 then :
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4474 printf %s "checking for $CC option to enable C99 features... " >&6; }
4475 if test ${ac_cv_prog_cc_c99+y}
4476 then :
4477 printf %s "(cached) " >&6
4478 else $as_nop
4479 ac_cv_prog_cc_c99=no
4480 ac_save_CC=$CC
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 $ac_c_conftest_c99_program
4484 _ACEOF
4485 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4486 do
4487 CC="$ac_save_CC $ac_arg"
4488 if ac_fn_c_try_compile "$LINENO"
4489 then :
4490 ac_cv_prog_cc_c99=$ac_arg
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext conftest.beam
4493 test "x$ac_cv_prog_cc_c99" != "xno" && break
4494 done
4495 rm -f conftest.$ac_ext
4496 CC=$ac_save_CC
4497 fi
4498
4499 if test "x$ac_cv_prog_cc_c99" = xno
4500 then :
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4502 printf "%s\n" "unsupported" >&6; }
4503 else $as_nop
4504 if test "x$ac_cv_prog_cc_c99" = x
4505 then :
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4507 printf "%s\n" "none needed" >&6; }
4508 else $as_nop
4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4510 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4511 CC="$CC $ac_cv_prog_cc_c99"
4512 fi
4513 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4514 ac_prog_cc_stdc=c99
4515 fi
4516 fi
4517 if test x$ac_prog_cc_stdc = xno
4518 then :
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4520 printf %s "checking for $CC option to enable C89 features... " >&6; }
4521 if test ${ac_cv_prog_cc_c89+y}
4522 then :
4523 printf %s "(cached) " >&6
4524 else $as_nop
4525 ac_cv_prog_cc_c89=no
4526 ac_save_CC=$CC
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 $ac_c_conftest_c89_program
4530 _ACEOF
4531 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4532 do
4533 CC="$ac_save_CC $ac_arg"
4534 if ac_fn_c_try_compile "$LINENO"
4535 then :
4536 ac_cv_prog_cc_c89=$ac_arg
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.beam
4539 test "x$ac_cv_prog_cc_c89" != "xno" && break
4540 done
4541 rm -f conftest.$ac_ext
4542 CC=$ac_save_CC
4543 fi
4544
4545 if test "x$ac_cv_prog_cc_c89" = xno
4546 then :
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4548 printf "%s\n" "unsupported" >&6; }
4549 else $as_nop
4550 if test "x$ac_cv_prog_cc_c89" = x
4551 then :
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4553 printf "%s\n" "none needed" >&6; }
4554 else $as_nop
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4556 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4557 CC="$CC $ac_cv_prog_cc_c89"
4558 fi
4559 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4560 ac_prog_cc_stdc=c89
4561 fi
4562 fi
4563
4564 ac_ext=c
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569
4570
4571 ac_ext=c
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4577 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4578 if test ${am_cv_prog_cc_c_o+y}
4579 then :
4580 printf %s "(cached) " >&6
4581 else $as_nop
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584
4585 int
4586 main (void)
4587 {
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 # Make sure it works both with $CC and with simple cc.
4594 # Following AC_PROG_CC_C_O, we do the test twice because some
4595 # compilers refuse to overwrite an existing .o file with -o,
4596 # though they will create one.
4597 am_cv_prog_cc_c_o=yes
4598 for am_i in 1 2; do
4599 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4600 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } \
4604 && test -f conftest2.$ac_objext; then
4605 : OK
4606 else
4607 am_cv_prog_cc_c_o=no
4608 break
4609 fi
4610 done
4611 rm -f core conftest*
4612 unset am_i
4613 fi
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4615 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4616 if test "$am_cv_prog_cc_c_o" != yes; then
4617 # Losing compiler, so override with the script.
4618 # FIXME: It is wrong to rewrite CC.
4619 # But if we don't then we get into trouble of one sort or another.
4620 # A longer-term fix would be to have automake use am__CC in this case,
4621 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4622 CC="$am_aux_dir/compile $CC"
4623 fi
4624 ac_ext=c
4625 ac_cpp='$CPP $CPPFLAGS'
4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629
4630
4631 depcc="$CC" am_compiler_list=
4632
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4634 printf %s "checking dependency style of $depcc... " >&6; }
4635 if test ${am_cv_CC_dependencies_compiler_type+y}
4636 then :
4637 printf %s "(cached) " >&6
4638 else $as_nop
4639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4640 # We make a subdir and do the tests there. Otherwise we can end up
4641 # making bogus files that we don't know about and never remove. For
4642 # instance it was reported that on HP-UX the gcc test will end up
4643 # making a dummy file named 'D' -- because '-MD' means "put the output
4644 # in D".
4645 rm -rf conftest.dir
4646 mkdir conftest.dir
4647 # Copy depcomp to subdir because otherwise we won't find it if we're
4648 # using a relative directory.
4649 cp "$am_depcomp" conftest.dir
4650 cd conftest.dir
4651 # We will build objects and dependencies in a subdirectory because
4652 # it helps to detect inapplicable dependency modes. For instance
4653 # both Tru64's cc and ICC support -MD to output dependencies as a
4654 # side effect of compilation, but ICC will put the dependencies in
4655 # the current directory while Tru64 will put them in the object
4656 # directory.
4657 mkdir sub
4658
4659 am_cv_CC_dependencies_compiler_type=none
4660 if test "$am_compiler_list" = ""; then
4661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4662 fi
4663 am__universal=false
4664 case " $depcc " in #(
4665 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4666 esac
4667
4668 for depmode in $am_compiler_list; do
4669 # Setup a source with many dependencies, because some compilers
4670 # like to wrap large dependency lists on column 80 (with \), and
4671 # we should not choose a depcomp mode which is confused by this.
4672 #
4673 # We need to recreate these files for each test, as the compiler may
4674 # overwrite some of them when testing with obscure command lines.
4675 # This happens at least with the AIX C compiler.
4676 : > sub/conftest.c
4677 for i in 1 2 3 4 5 6; do
4678 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4679 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4680 # Solaris 10 /bin/sh.
4681 echo '/* dummy */' > sub/conftst$i.h
4682 done
4683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4684
4685 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4686 # mode. It turns out that the SunPro C++ compiler does not properly
4687 # handle '-M -o', and we need to detect this. Also, some Intel
4688 # versions had trouble with output in subdirs.
4689 am__obj=sub/conftest.${OBJEXT-o}
4690 am__minus_obj="-o $am__obj"
4691 case $depmode in
4692 gcc)
4693 # This depmode causes a compiler race in universal mode.
4694 test "$am__universal" = false || continue
4695 ;;
4696 nosideeffect)
4697 # After this tag, mechanisms are not by side-effect, so they'll
4698 # only be used when explicitly requested.
4699 if test "x$enable_dependency_tracking" = xyes; then
4700 continue
4701 else
4702 break
4703 fi
4704 ;;
4705 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4706 # This compiler won't grok '-c -o', but also, the minuso test has
4707 # not run yet. These depmodes are late enough in the game, and
4708 # so weak that their functioning should not be impacted.
4709 am__obj=conftest.${OBJEXT-o}
4710 am__minus_obj=
4711 ;;
4712 none) break ;;
4713 esac
4714 if depmode=$depmode \
4715 source=sub/conftest.c object=$am__obj \
4716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4717 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4718 >/dev/null 2>conftest.err &&
4719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4721 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4723 # icc doesn't choke on unknown options, it will just issue warnings
4724 # or remarks (even with -Werror). So we grep stderr for any message
4725 # that says an option was ignored or not supported.
4726 # When given -MP, icc 7.0 and 7.1 complain thusly:
4727 # icc: Command line warning: ignoring option '-M'; no argument required
4728 # The diagnosis changed in icc 8.0:
4729 # icc: Command line remark: option '-MP' not supported
4730 if (grep 'ignoring option' conftest.err ||
4731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4732 am_cv_CC_dependencies_compiler_type=$depmode
4733 break
4734 fi
4735 fi
4736 done
4737
4738 cd ..
4739 rm -rf conftest.dir
4740 else
4741 am_cv_CC_dependencies_compiler_type=none
4742 fi
4743
4744 fi
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4746 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4747 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4748
4749 if
4750 test "x$enable_dependency_tracking" != xno \
4751 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4752 am__fastdepCC_TRUE=
4753 am__fastdepCC_FALSE='#'
4754 else
4755 am__fastdepCC_TRUE='#'
4756 am__fastdepCC_FALSE=
4757 fi
4758
4759
4760
4761
4762 if test -n "$ac_tool_prefix"; then
4763 for ac_prog in ar lib "link -lib"
4764 do
4765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 printf %s "checking for $ac_word... " >&6; }
4769 if test ${ac_cv_prog_AR+y}
4770 then :
4771 printf %s "(cached) " >&6
4772 else $as_nop
4773 if test -n "$AR"; then
4774 ac_cv_prog_AR="$AR" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779 IFS=$as_save_IFS
4780 case $as_dir in #(((
4781 '') as_dir=./ ;;
4782 */) ;;
4783 *) as_dir=$as_dir/ ;;
4784 esac
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 AR=$ac_cv_prog_AR
4798 if test -n "$AR"; then
4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4800 printf "%s\n" "$AR" >&6; }
4801 else
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 printf "%s\n" "no" >&6; }
4804 fi
4805
4806
4807 test -n "$AR" && break
4808 done
4809 fi
4810 if test -z "$AR"; then
4811 ac_ct_AR=$AR
4812 for ac_prog in ar lib "link -lib"
4813 do
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy $ac_prog; ac_word=$2
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 printf %s "checking for $ac_word... " >&6; }
4818 if test ${ac_cv_prog_ac_ct_AR+y}
4819 then :
4820 printf %s "(cached) " >&6
4821 else $as_nop
4822 if test -n "$ac_ct_AR"; then
4823 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 case $as_dir in #(((
4830 '') as_dir=./ ;;
4831 */) ;;
4832 *) as_dir=$as_dir/ ;;
4833 esac
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4836 ac_cv_prog_ac_ct_AR="$ac_prog"
4837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840 done
4841 done
4842 IFS=$as_save_IFS
4843
4844 fi
4845 fi
4846 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4847 if test -n "$ac_ct_AR"; then
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4849 printf "%s\n" "$ac_ct_AR" >&6; }
4850 else
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 printf "%s\n" "no" >&6; }
4853 fi
4854
4855
4856 test -n "$ac_ct_AR" && break
4857 done
4858
4859 if test "x$ac_ct_AR" = x; then
4860 AR="false"
4861 else
4862 case $cross_compiling:$ac_tool_warned in
4863 yes:)
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4865 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4866 ac_tool_warned=yes ;;
4867 esac
4868 AR=$ac_ct_AR
4869 fi
4870 fi
4871
4872 : ${AR=ar}
4873
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4875 printf %s "checking the archiver ($AR) interface... " >&6; }
4876 if test ${am_cv_ar_interface+y}
4877 then :
4878 printf %s "(cached) " >&6
4879 else $as_nop
4880 ac_ext=c
4881 ac_cpp='$CPP $CPPFLAGS'
4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885
4886 am_cv_ar_interface=ar
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 int some_variable = 0;
4890 _ACEOF
4891 if ac_fn_c_try_compile "$LINENO"
4892 then :
4893 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4895 (eval $am_ar_try) 2>&5
4896 ac_status=$?
4897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4898 test $ac_status = 0; }
4899 if test "$ac_status" -eq 0; then
4900 am_cv_ar_interface=ar
4901 else
4902 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4904 (eval $am_ar_try) 2>&5
4905 ac_status=$?
4906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907 test $ac_status = 0; }
4908 if test "$ac_status" -eq 0; then
4909 am_cv_ar_interface=lib
4910 else
4911 am_cv_ar_interface=unknown
4912 fi
4913 fi
4914 rm -f conftest.lib libconftest.a
4915
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924 fi
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4926 printf "%s\n" "$am_cv_ar_interface" >&6; }
4927
4928 case $am_cv_ar_interface in
4929 ar)
4930 ;;
4931 lib)
4932 # Microsoft lib, so override with the ar-lib wrapper script.
4933 # FIXME: It is wrong to rewrite AR.
4934 # But if we don't then we get into trouble of one sort or another.
4935 # A longer-term fix would be to have automake use am__AR in this case,
4936 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4937 # similar.
4938 AR="$am_aux_dir/ar-lib $AR"
4939 ;;
4940 unknown)
4941 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4942 ;;
4943 esac
4944
4945 case `pwd` in
4946 *\ * | *\ *)
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4948 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4949 esac
4950
4951
4952
4953 macro_version='2.4.6'
4954 macro_revision='2.4.6'
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969 ltmain=$ac_aux_dir/ltmain.sh
4970
4971
4972
4973 # Make sure we can run config.sub.
4974 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4975 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4976
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4978 printf %s "checking build system type... " >&6; }
4979 if test ${ac_cv_build+y}
4980 then :
4981 printf %s "(cached) " >&6
4982 else $as_nop
4983 ac_build_alias=$build_alias
4984 test "x$ac_build_alias" = x &&
4985 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4986 test "x$ac_build_alias" = x &&
4987 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4988 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4989 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4990
4991 fi
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4993 printf "%s\n" "$ac_cv_build" >&6; }
4994 case $ac_cv_build in
4995 *-*-*) ;;
4996 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4997 esac
4998 build=$ac_cv_build
4999 ac_save_IFS=$IFS; IFS='-'
5000 set x $ac_cv_build
5001 shift
5002 build_cpu=$1
5003 build_vendor=$2
5004 shift; shift
5005 # Remember, the first character of IFS is used to create $*,
5006 # except with old shells:
5007 build_os=$*
5008 IFS=$ac_save_IFS
5009 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5010
5011
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5013 printf %s "checking host system type... " >&6; }
5014 if test ${ac_cv_host+y}
5015 then :
5016 printf %s "(cached) " >&6
5017 else $as_nop
5018 if test "x$host_alias" = x; then
5019 ac_cv_host=$ac_cv_build
5020 else
5021 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5022 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5023 fi
5024
5025 fi
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5027 printf "%s\n" "$ac_cv_host" >&6; }
5028 case $ac_cv_host in
5029 *-*-*) ;;
5030 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5031 esac
5032 host=$ac_cv_host
5033 ac_save_IFS=$IFS; IFS='-'
5034 set x $ac_cv_host
5035 shift
5036 host_cpu=$1
5037 host_vendor=$2
5038 shift; shift
5039 # Remember, the first character of IFS is used to create $*,
5040 # except with old shells:
5041 host_os=$*
5042 IFS=$ac_save_IFS
5043 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5044
5045
5046 # Backslashify metacharacters that are still active within
5047 # double-quoted strings.
5048 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5049
5050 # Same as above, but do not quote variable references.
5051 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5052
5053 # Sed substitution to delay expansion of an escaped shell variable in a
5054 # double_quote_subst'ed string.
5055 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5056
5057 # Sed substitution to delay expansion of an escaped single quote.
5058 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5059
5060 # Sed substitution to avoid accidental globbing in evaled expressions
5061 no_glob_subst='s/\*/\\\*/g'
5062
5063 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5064 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5065 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5066
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5068 printf %s "checking how to print strings... " >&6; }
5069 # Test print first, because it will be a builtin if present.
5070 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5071 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5072 ECHO='print -r --'
5073 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5074 ECHO='printf %s\n'
5075 else
5076 # Use this function as a fallback that always works.
5077 func_fallback_echo ()
5078 {
5079 eval 'cat <<_LTECHO_EOF
5080 $1
5081 _LTECHO_EOF'
5082 }
5083 ECHO='func_fallback_echo'
5084 fi
5085
5086 # func_echo_all arg...
5087 # Invoke $ECHO with all args, space-separated.
5088 func_echo_all ()
5089 {
5090 $ECHO ""
5091 }
5092
5093 case $ECHO in
5094 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5095 printf "%s\n" "printf" >&6; } ;;
5096 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5097 printf "%s\n" "print -r" >&6; } ;;
5098 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5099 printf "%s\n" "cat" >&6; } ;;
5100 esac
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5116 printf %s "checking for a sed that does not truncate output... " >&6; }
5117 if test ${ac_cv_path_SED+y}
5118 then :
5119 printf %s "(cached) " >&6
5120 else $as_nop
5121 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5122 for ac_i in 1 2 3 4 5 6 7; do
5123 ac_script="$ac_script$as_nl$ac_script"
5124 done
5125 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5126 { ac_script=; unset ac_script;}
5127 if test -z "$SED"; then
5128 ac_path_SED_found=false
5129 # Loop through the user's path and test for each of PROGNAME-LIST
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133 IFS=$as_save_IFS
5134 case $as_dir in #(((
5135 '') as_dir=./ ;;
5136 */) ;;
5137 *) as_dir=$as_dir/ ;;
5138 esac
5139 for ac_prog in sed gsed
5140 do
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5143 as_fn_executable_p "$ac_path_SED" || continue
5144 # Check for GNU ac_path_SED and select it if it is found.
5145 # Check for GNU $ac_path_SED
5146 case `"$ac_path_SED" --version 2>&1` in
5147 *GNU*)
5148 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5149 *)
5150 ac_count=0
5151 printf %s 0123456789 >"conftest.in"
5152 while :
5153 do
5154 cat "conftest.in" "conftest.in" >"conftest.tmp"
5155 mv "conftest.tmp" "conftest.in"
5156 cp "conftest.in" "conftest.nl"
5157 printf "%s\n" '' >> "conftest.nl"
5158 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5160 as_fn_arith $ac_count + 1 && ac_count=$as_val
5161 if test $ac_count -gt ${ac_path_SED_max-0}; then
5162 # Best one so far, save it but keep looking for a better one
5163 ac_cv_path_SED="$ac_path_SED"
5164 ac_path_SED_max=$ac_count
5165 fi
5166 # 10*(2^10) chars as input seems more than enough
5167 test $ac_count -gt 10 && break
5168 done
5169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5170 esac
5171
5172 $ac_path_SED_found && break 3
5173 done
5174 done
5175 done
5176 IFS=$as_save_IFS
5177 if test -z "$ac_cv_path_SED"; then
5178 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5179 fi
5180 else
5181 ac_cv_path_SED=$SED
5182 fi
5183
5184 fi
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5186 printf "%s\n" "$ac_cv_path_SED" >&6; }
5187 SED="$ac_cv_path_SED"
5188 rm -f conftest.sed
5189
5190 test -z "$SED" && SED=sed
5191 Xsed="$SED -e 1s/^X//"
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5204 printf %s "checking for grep that handles long lines and -e... " >&6; }
5205 if test ${ac_cv_path_GREP+y}
5206 then :
5207 printf %s "(cached) " >&6
5208 else $as_nop
5209 if test -z "$GREP"; then
5210 ac_path_GREP_found=false
5211 # Loop through the user's path and test for each of PROGNAME-LIST
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214 do
5215 IFS=$as_save_IFS
5216 case $as_dir in #(((
5217 '') as_dir=./ ;;
5218 */) ;;
5219 *) as_dir=$as_dir/ ;;
5220 esac
5221 for ac_prog in grep ggrep
5222 do
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5225 as_fn_executable_p "$ac_path_GREP" || continue
5226 # Check for GNU ac_path_GREP and select it if it is found.
5227 # Check for GNU $ac_path_GREP
5228 case `"$ac_path_GREP" --version 2>&1` in
5229 *GNU*)
5230 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5231 *)
5232 ac_count=0
5233 printf %s 0123456789 >"conftest.in"
5234 while :
5235 do
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 printf "%s\n" 'GREP' >> "conftest.nl"
5240 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_GREP="$ac_path_GREP"
5246 ac_path_GREP_max=$ac_count
5247 fi
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252 esac
5253
5254 $ac_path_GREP_found && break 3
5255 done
5256 done
5257 done
5258 IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_GREP"; then
5260 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5261 fi
5262 else
5263 ac_cv_path_GREP=$GREP
5264 fi
5265
5266 fi
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5268 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5269 GREP="$ac_cv_path_GREP"
5270
5271
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5273 printf %s "checking for egrep... " >&6; }
5274 if test ${ac_cv_path_EGREP+y}
5275 then :
5276 printf %s "(cached) " >&6
5277 else $as_nop
5278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5279 then ac_cv_path_EGREP="$GREP -E"
5280 else
5281 if test -z "$EGREP"; then
5282 ac_path_EGREP_found=false
5283 # Loop through the user's path and test for each of PROGNAME-LIST
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5286 do
5287 IFS=$as_save_IFS
5288 case $as_dir in #(((
5289 '') as_dir=./ ;;
5290 */) ;;
5291 *) as_dir=$as_dir/ ;;
5292 esac
5293 for ac_prog in egrep
5294 do
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5297 as_fn_executable_p "$ac_path_EGREP" || continue
5298 # Check for GNU ac_path_EGREP and select it if it is found.
5299 # Check for GNU $ac_path_EGREP
5300 case `"$ac_path_EGREP" --version 2>&1` in
5301 *GNU*)
5302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5303 *)
5304 ac_count=0
5305 printf %s 0123456789 >"conftest.in"
5306 while :
5307 do
5308 cat "conftest.in" "conftest.in" >"conftest.tmp"
5309 mv "conftest.tmp" "conftest.in"
5310 cp "conftest.in" "conftest.nl"
5311 printf "%s\n" 'EGREP' >> "conftest.nl"
5312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5314 as_fn_arith $ac_count + 1 && ac_count=$as_val
5315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5316 # Best one so far, save it but keep looking for a better one
5317 ac_cv_path_EGREP="$ac_path_EGREP"
5318 ac_path_EGREP_max=$ac_count
5319 fi
5320 # 10*(2^10) chars as input seems more than enough
5321 test $ac_count -gt 10 && break
5322 done
5323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5324 esac
5325
5326 $ac_path_EGREP_found && break 3
5327 done
5328 done
5329 done
5330 IFS=$as_save_IFS
5331 if test -z "$ac_cv_path_EGREP"; then
5332 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5333 fi
5334 else
5335 ac_cv_path_EGREP=$EGREP
5336 fi
5337
5338 fi
5339 fi
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5341 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5342 EGREP="$ac_cv_path_EGREP"
5343
5344
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5346 printf %s "checking for fgrep... " >&6; }
5347 if test ${ac_cv_path_FGREP+y}
5348 then :
5349 printf %s "(cached) " >&6
5350 else $as_nop
5351 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5352 then ac_cv_path_FGREP="$GREP -F"
5353 else
5354 if test -z "$FGREP"; then
5355 ac_path_FGREP_found=false
5356 # Loop through the user's path and test for each of PROGNAME-LIST
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5359 do
5360 IFS=$as_save_IFS
5361 case $as_dir in #(((
5362 '') as_dir=./ ;;
5363 */) ;;
5364 *) as_dir=$as_dir/ ;;
5365 esac
5366 for ac_prog in fgrep
5367 do
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5370 as_fn_executable_p "$ac_path_FGREP" || continue
5371 # Check for GNU ac_path_FGREP and select it if it is found.
5372 # Check for GNU $ac_path_FGREP
5373 case `"$ac_path_FGREP" --version 2>&1` in
5374 *GNU*)
5375 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5376 *)
5377 ac_count=0
5378 printf %s 0123456789 >"conftest.in"
5379 while :
5380 do
5381 cat "conftest.in" "conftest.in" >"conftest.tmp"
5382 mv "conftest.tmp" "conftest.in"
5383 cp "conftest.in" "conftest.nl"
5384 printf "%s\n" 'FGREP' >> "conftest.nl"
5385 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5387 as_fn_arith $ac_count + 1 && ac_count=$as_val
5388 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5389 # Best one so far, save it but keep looking for a better one
5390 ac_cv_path_FGREP="$ac_path_FGREP"
5391 ac_path_FGREP_max=$ac_count
5392 fi
5393 # 10*(2^10) chars as input seems more than enough
5394 test $ac_count -gt 10 && break
5395 done
5396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5397 esac
5398
5399 $ac_path_FGREP_found && break 3
5400 done
5401 done
5402 done
5403 IFS=$as_save_IFS
5404 if test -z "$ac_cv_path_FGREP"; then
5405 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5406 fi
5407 else
5408 ac_cv_path_FGREP=$FGREP
5409 fi
5410
5411 fi
5412 fi
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5414 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5415 FGREP="$ac_cv_path_FGREP"
5416
5417
5418 test -z "$GREP" && GREP=grep
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438 # Check whether --with-gnu-ld was given.
5439 if test ${with_gnu_ld+y}
5440 then :
5441 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5442 else $as_nop
5443 with_gnu_ld=no
5444 fi
5445
5446 ac_prog=ld
5447 if test yes = "$GCC"; then
5448 # Check if gcc -print-prog-name=ld gives a path.
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5450 printf %s "checking for ld used by $CC... " >&6; }
5451 case $host in
5452 *-*-mingw*)
5453 # gcc leaves a trailing carriage return, which upsets mingw
5454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5455 *)
5456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5457 esac
5458 case $ac_prog in
5459 # Accept absolute paths.
5460 [\\/]* | ?:[\\/]*)
5461 re_direlt='/[^/][^/]*/\.\./'
5462 # Canonicalize the pathname of ld
5463 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5464 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5465 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5466 done
5467 test -z "$LD" && LD=$ac_prog
5468 ;;
5469 "")
5470 # If it fails, then pretend we aren't using GCC.
5471 ac_prog=ld
5472 ;;
5473 *)
5474 # If it is relative, then search for the first ld in PATH.
5475 with_gnu_ld=unknown
5476 ;;
5477 esac
5478 elif test yes = "$with_gnu_ld"; then
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5480 printf %s "checking for GNU ld... " >&6; }
5481 else
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5483 printf %s "checking for non-GNU ld... " >&6; }
5484 fi
5485 if test ${lt_cv_path_LD+y}
5486 then :
5487 printf %s "(cached) " >&6
5488 else $as_nop
5489 if test -z "$LD"; then
5490 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5491 for ac_dir in $PATH; do
5492 IFS=$lt_save_ifs
5493 test -z "$ac_dir" && ac_dir=.
5494 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5495 lt_cv_path_LD=$ac_dir/$ac_prog
5496 # Check to see if the program is GNU ld. I'd rather use --version,
5497 # but apparently some variants of GNU ld only accept -v.
5498 # Break only if it was the GNU/non-GNU ld that we prefer.
5499 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5500 *GNU* | *'with BFD'*)
5501 test no != "$with_gnu_ld" && break
5502 ;;
5503 *)
5504 test yes != "$with_gnu_ld" && break
5505 ;;
5506 esac
5507 fi
5508 done
5509 IFS=$lt_save_ifs
5510 else
5511 lt_cv_path_LD=$LD # Let the user override the test with a path.
5512 fi
5513 fi
5514
5515 LD=$lt_cv_path_LD
5516 if test -n "$LD"; then
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5518 printf "%s\n" "$LD" >&6; }
5519 else
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 printf "%s\n" "no" >&6; }
5522 fi
5523 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5525 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5526 if test ${lt_cv_prog_gnu_ld+y}
5527 then :
5528 printf %s "(cached) " >&6
5529 else $as_nop
5530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5531 case `$LD -v 2>&1 </dev/null` in
5532 *GNU* | *'with BFD'*)
5533 lt_cv_prog_gnu_ld=yes
5534 ;;
5535 *)
5536 lt_cv_prog_gnu_ld=no
5537 ;;
5538 esac
5539 fi
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5541 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5542 with_gnu_ld=$lt_cv_prog_gnu_ld
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5553 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5554 if test ${lt_cv_path_NM+y}
5555 then :
5556 printf %s "(cached) " >&6
5557 else $as_nop
5558 if test -n "$NM"; then
5559 # Let the user override the test.
5560 lt_cv_path_NM=$NM
5561 else
5562 lt_nm_to_check=${ac_tool_prefix}nm
5563 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5564 lt_nm_to_check="$lt_nm_to_check nm"
5565 fi
5566 for lt_tmp_nm in $lt_nm_to_check; do
5567 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5568 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5569 IFS=$lt_save_ifs
5570 test -z "$ac_dir" && ac_dir=.
5571 tmp_nm=$ac_dir/$lt_tmp_nm
5572 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5573 # Check to see if the nm accepts a BSD-compat flag.
5574 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5575 # nm: unknown option "B" ignored
5576 # Tru64's nm complains that /dev/null is an invalid object file
5577 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5578 case $build_os in
5579 mingw*) lt_bad_file=conftest.nm/nofile ;;
5580 *) lt_bad_file=/dev/null ;;
5581 esac
5582 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5583 *$lt_bad_file* | *'Invalid file or object type'*)
5584 lt_cv_path_NM="$tmp_nm -B"
5585 break 2
5586 ;;
5587 *)
5588 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5589 */dev/null*)
5590 lt_cv_path_NM="$tmp_nm -p"
5591 break 2
5592 ;;
5593 *)
5594 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5595 continue # so that we can try to find one that supports BSD flags
5596 ;;
5597 esac
5598 ;;
5599 esac
5600 fi
5601 done
5602 IFS=$lt_save_ifs
5603 done
5604 : ${lt_cv_path_NM=no}
5605 fi
5606 fi
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5608 printf "%s\n" "$lt_cv_path_NM" >&6; }
5609 if test no != "$lt_cv_path_NM"; then
5610 NM=$lt_cv_path_NM
5611 else
5612 # Didn't find any BSD compatible name lister, look for dumpbin.
5613 if test -n "$DUMPBIN"; then :
5614 # Let the user override the test.
5615 else
5616 if test -n "$ac_tool_prefix"; then
5617 for ac_prog in dumpbin "link -dump"
5618 do
5619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 printf %s "checking for $ac_word... " >&6; }
5623 if test ${ac_cv_prog_DUMPBIN+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else $as_nop
5627 if test -n "$DUMPBIN"; then
5628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 case $as_dir in #(((
5635 '') as_dir=./ ;;
5636 */) ;;
5637 *) as_dir=$as_dir/ ;;
5638 esac
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 fi
5650 fi
5651 DUMPBIN=$ac_cv_prog_DUMPBIN
5652 if test -n "$DUMPBIN"; then
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5654 printf "%s\n" "$DUMPBIN" >&6; }
5655 else
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 printf "%s\n" "no" >&6; }
5658 fi
5659
5660
5661 test -n "$DUMPBIN" && break
5662 done
5663 fi
5664 if test -z "$DUMPBIN"; then
5665 ac_ct_DUMPBIN=$DUMPBIN
5666 for ac_prog in dumpbin "link -dump"
5667 do
5668 # Extract the first word of "$ac_prog", so it can be a program name with args.
5669 set dummy $ac_prog; ac_word=$2
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671 printf %s "checking for $ac_word... " >&6; }
5672 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5673 then :
5674 printf %s "(cached) " >&6
5675 else $as_nop
5676 if test -n "$ac_ct_DUMPBIN"; then
5677 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682 IFS=$as_save_IFS
5683 case $as_dir in #(((
5684 '') as_dir=./ ;;
5685 */) ;;
5686 *) as_dir=$as_dir/ ;;
5687 esac
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694 done
5695 done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5701 if test -n "$ac_ct_DUMPBIN"; then
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5703 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5704 else
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 printf "%s\n" "no" >&6; }
5707 fi
5708
5709
5710 test -n "$ac_ct_DUMPBIN" && break
5711 done
5712
5713 if test "x$ac_ct_DUMPBIN" = x; then
5714 DUMPBIN=":"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned=yes ;;
5721 esac
5722 DUMPBIN=$ac_ct_DUMPBIN
5723 fi
5724 fi
5725
5726 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5727 *COFF*)
5728 DUMPBIN="$DUMPBIN -symbols -headers"
5729 ;;
5730 *)
5731 DUMPBIN=:
5732 ;;
5733 esac
5734 fi
5735
5736 if test : != "$DUMPBIN"; then
5737 NM=$DUMPBIN
5738 fi
5739 fi
5740 test -z "$NM" && NM=nm
5741
5742
5743
5744
5745
5746
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5748 printf %s "checking the name lister ($NM) interface... " >&6; }
5749 if test ${lt_cv_nm_interface+y}
5750 then :
5751 printf %s "(cached) " >&6
5752 else $as_nop
5753 lt_cv_nm_interface="BSD nm"
5754 echo "int some_variable = 0;" > conftest.$ac_ext
5755 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5756 (eval "$ac_compile" 2>conftest.err)
5757 cat conftest.err >&5
5758 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5759 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5760 cat conftest.err >&5
5761 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5762 cat conftest.out >&5
5763 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5764 lt_cv_nm_interface="MS dumpbin"
5765 fi
5766 rm -f conftest*
5767 fi
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5769 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5770
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5772 printf %s "checking whether ln -s works... " >&6; }
5773 LN_S=$as_ln_s
5774 if test "$LN_S" = "ln -s"; then
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5776 printf "%s\n" "yes" >&6; }
5777 else
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5779 printf "%s\n" "no, using $LN_S" >&6; }
5780 fi
5781
5782 # find the maximum length of command line arguments
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5784 printf %s "checking the maximum length of command line arguments... " >&6; }
5785 if test ${lt_cv_sys_max_cmd_len+y}
5786 then :
5787 printf %s "(cached) " >&6
5788 else $as_nop
5789 i=0
5790 teststring=ABCD
5791
5792 case $build_os in
5793 msdosdjgpp*)
5794 # On DJGPP, this test can blow up pretty badly due to problems in libc
5795 # (any single argument exceeding 2000 bytes causes a buffer overrun
5796 # during glob expansion). Even if it were fixed, the result of this
5797 # check would be larger than it should be.
5798 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5799 ;;
5800
5801 gnu*)
5802 # Under GNU Hurd, this test is not required because there is
5803 # no limit to the length of command line arguments.
5804 # Libtool will interpret -1 as no limit whatsoever
5805 lt_cv_sys_max_cmd_len=-1;
5806 ;;
5807
5808 cygwin* | mingw* | cegcc*)
5809 # On Win9x/ME, this test blows up -- it succeeds, but takes
5810 # about 5 minutes as the teststring grows exponentially.
5811 # Worse, since 9x/ME are not pre-emptively multitasking,
5812 # you end up with a "frozen" computer, even though with patience
5813 # the test eventually succeeds (with a max line length of 256k).
5814 # Instead, let's just punt: use the minimum linelength reported by
5815 # all of the supported platforms: 8192 (on NT/2K/XP).
5816 lt_cv_sys_max_cmd_len=8192;
5817 ;;
5818
5819 mint*)
5820 # On MiNT this can take a long time and run out of memory.
5821 lt_cv_sys_max_cmd_len=8192;
5822 ;;
5823
5824 amigaos*)
5825 # On AmigaOS with pdksh, this test takes hours, literally.
5826 # So we just punt and use a minimum line length of 8192.
5827 lt_cv_sys_max_cmd_len=8192;
5828 ;;
5829
5830 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5831 # This has been around since 386BSD, at least. Likely further.
5832 if test -x /sbin/sysctl; then
5833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5834 elif test -x /usr/sbin/sysctl; then
5835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5836 else
5837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5838 fi
5839 # And add a safety zone
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5842 ;;
5843
5844 interix*)
5845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5846 lt_cv_sys_max_cmd_len=196608
5847 ;;
5848
5849 os2*)
5850 # The test takes a long time on OS/2.
5851 lt_cv_sys_max_cmd_len=8192
5852 ;;
5853
5854 osf*)
5855 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5856 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5857 # nice to cause kernel panics so lets avoid the loop below.
5858 # First set a reasonable default.
5859 lt_cv_sys_max_cmd_len=16384
5860 #
5861 if test -x /sbin/sysconfig; then
5862 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5863 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5864 esac
5865 fi
5866 ;;
5867 sco3.2v5*)
5868 lt_cv_sys_max_cmd_len=102400
5869 ;;
5870 sysv5* | sco5v6* | sysv4.2uw2*)
5871 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5872 if test -n "$kargmax"; then
5873 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5874 else
5875 lt_cv_sys_max_cmd_len=32768
5876 fi
5877 ;;
5878 *)
5879 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5880 if test -n "$lt_cv_sys_max_cmd_len" && \
5881 test undefined != "$lt_cv_sys_max_cmd_len"; then
5882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5884 else
5885 # Make teststring a little bigger before we do anything with it.
5886 # a 1K string should be a reasonable start.
5887 for i in 1 2 3 4 5 6 7 8; do
5888 teststring=$teststring$teststring
5889 done
5890 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5891 # If test is not a shell built-in, we'll probably end up computing a
5892 # maximum length that is only half of the actual maximum length, but
5893 # we can't tell.
5894 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5895 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5896 test 17 != "$i" # 1/2 MB should be enough
5897 do
5898 i=`expr $i + 1`
5899 teststring=$teststring$teststring
5900 done
5901 # Only check the string length outside the loop.
5902 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5903 teststring=
5904 # Add a significant safety factor because C++ compilers can tack on
5905 # massive amounts of additional arguments before passing them to the
5906 # linker. It appears as though 1/2 is a usable value.
5907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5908 fi
5909 ;;
5910 esac
5911
5912 fi
5913
5914 if test -n "$lt_cv_sys_max_cmd_len"; then
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5916 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5917 else
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5919 printf "%s\n" "none" >&6; }
5920 fi
5921 max_cmd_len=$lt_cv_sys_max_cmd_len
5922
5923
5924
5925
5926
5927
5928 : ${CP="cp -f"}
5929 : ${MV="mv -f"}
5930 : ${RM="rm -f"}
5931
5932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5933 lt_unset=unset
5934 else
5935 lt_unset=false
5936 fi
5937
5938
5939
5940
5941
5942 # test EBCDIC or ASCII
5943 case `echo X|tr X '\101'` in
5944 A) # ASCII based system
5945 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5946 lt_SP2NL='tr \040 \012'
5947 lt_NL2SP='tr \015\012 \040\040'
5948 ;;
5949 *) # EBCDIC based system
5950 lt_SP2NL='tr \100 \n'
5951 lt_NL2SP='tr \r\n \100\100'
5952 ;;
5953 esac
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5964 printf %s "checking how to convert $build file names to $host format... " >&6; }
5965 if test ${lt_cv_to_host_file_cmd+y}
5966 then :
5967 printf %s "(cached) " >&6
5968 else $as_nop
5969 case $host in
5970 *-*-mingw* )
5971 case $build in
5972 *-*-mingw* ) # actually msys
5973 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5974 ;;
5975 *-*-cygwin* )
5976 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5977 ;;
5978 * ) # otherwise, assume *nix
5979 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5980 ;;
5981 esac
5982 ;;
5983 *-*-cygwin* )
5984 case $build in
5985 *-*-mingw* ) # actually msys
5986 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5987 ;;
5988 *-*-cygwin* )
5989 lt_cv_to_host_file_cmd=func_convert_file_noop
5990 ;;
5991 * ) # otherwise, assume *nix
5992 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5993 ;;
5994 esac
5995 ;;
5996 * ) # unhandled hosts (and "normal" native builds)
5997 lt_cv_to_host_file_cmd=func_convert_file_noop
5998 ;;
5999 esac
6000
6001 fi
6002
6003 to_host_file_cmd=$lt_cv_to_host_file_cmd
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6005 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6006
6007
6008
6009
6010
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6012 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6013 if test ${lt_cv_to_tool_file_cmd+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else $as_nop
6017 #assume ordinary cross tools, or native build.
6018 lt_cv_to_tool_file_cmd=func_convert_file_noop
6019 case $host in
6020 *-*-mingw* )
6021 case $build in
6022 *-*-mingw* ) # actually msys
6023 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6024 ;;
6025 esac
6026 ;;
6027 esac
6028
6029 fi
6030
6031 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6033 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6034
6035
6036
6037
6038
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6040 printf %s "checking for $LD option to reload object files... " >&6; }
6041 if test ${lt_cv_ld_reload_flag+y}
6042 then :
6043 printf %s "(cached) " >&6
6044 else $as_nop
6045 lt_cv_ld_reload_flag='-r'
6046 fi
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6048 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6049 reload_flag=$lt_cv_ld_reload_flag
6050 case $reload_flag in
6051 "" | " "*) ;;
6052 *) reload_flag=" $reload_flag" ;;
6053 esac
6054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6055 case $host_os in
6056 cygwin* | mingw* | pw32* | cegcc*)
6057 if test yes != "$GCC"; then
6058 reload_cmds=false
6059 fi
6060 ;;
6061 darwin*)
6062 if test yes = "$GCC"; then
6063 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6064 else
6065 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6066 fi
6067 ;;
6068 esac
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 if test -n "$ac_tool_prefix"; then
6079 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6080 set dummy ${ac_tool_prefix}file; ac_word=$2
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 printf %s "checking for $ac_word... " >&6; }
6083 if test ${ac_cv_prog_FILECMD+y}
6084 then :
6085 printf %s "(cached) " >&6
6086 else $as_nop
6087 if test -n "$FILECMD"; then
6088 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093 IFS=$as_save_IFS
6094 case $as_dir in #(((
6095 '') as_dir=./ ;;
6096 */) ;;
6097 *) as_dir=$as_dir/ ;;
6098 esac
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6101 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105 done
6106 done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 FILECMD=$ac_cv_prog_FILECMD
6112 if test -n "$FILECMD"; then
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6114 printf "%s\n" "$FILECMD" >&6; }
6115 else
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 printf "%s\n" "no" >&6; }
6118 fi
6119
6120
6121 fi
6122 if test -z "$ac_cv_prog_FILECMD"; then
6123 ac_ct_FILECMD=$FILECMD
6124 # Extract the first word of "file", so it can be a program name with args.
6125 set dummy file; ac_word=$2
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 printf %s "checking for $ac_word... " >&6; }
6128 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6129 then :
6130 printf %s "(cached) " >&6
6131 else $as_nop
6132 if test -n "$ac_ct_FILECMD"; then
6133 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138 IFS=$as_save_IFS
6139 case $as_dir in #(((
6140 '') as_dir=./ ;;
6141 */) ;;
6142 *) as_dir=$as_dir/ ;;
6143 esac
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_ac_ct_FILECMD="file"
6147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6157 if test -n "$ac_ct_FILECMD"; then
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6159 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6160 else
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 printf "%s\n" "no" >&6; }
6163 fi
6164
6165 if test "x$ac_ct_FILECMD" = x; then
6166 FILECMD=":"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169 yes:)
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172 ac_tool_warned=yes ;;
6173 esac
6174 FILECMD=$ac_ct_FILECMD
6175 fi
6176 else
6177 FILECMD="$ac_cv_prog_FILECMD"
6178 fi
6179
6180
6181
6182
6183
6184
6185
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6188 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 printf %s "checking for $ac_word... " >&6; }
6191 if test ${ac_cv_prog_OBJDUMP+y}
6192 then :
6193 printf %s "(cached) " >&6
6194 else $as_nop
6195 if test -n "$OBJDUMP"; then
6196 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201 IFS=$as_save_IFS
6202 case $as_dir in #(((
6203 '') as_dir=./ ;;
6204 */) ;;
6205 *) as_dir=$as_dir/ ;;
6206 esac
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 OBJDUMP=$ac_cv_prog_OBJDUMP
6220 if test -n "$OBJDUMP"; then
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6222 printf "%s\n" "$OBJDUMP" >&6; }
6223 else
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 printf "%s\n" "no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_OBJDUMP"; then
6231 ac_ct_OBJDUMP=$OBJDUMP
6232 # Extract the first word of "objdump", so it can be a program name with args.
6233 set dummy objdump; ac_word=$2
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 printf %s "checking for $ac_word... " >&6; }
6236 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6237 then :
6238 printf %s "(cached) " >&6
6239 else $as_nop
6240 if test -n "$ac_ct_OBJDUMP"; then
6241 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 case $as_dir in #(((
6248 '') as_dir=./ ;;
6249 */) ;;
6250 *) as_dir=$as_dir/ ;;
6251 esac
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6256 break 2
6257 fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6265 if test -n "$ac_ct_OBJDUMP"; then
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6267 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6268 else
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 printf "%s\n" "no" >&6; }
6271 fi
6272
6273 if test "x$ac_ct_OBJDUMP" = x; then
6274 OBJDUMP="false"
6275 else
6276 case $cross_compiling:$ac_tool_warned in
6277 yes:)
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6279 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6280 ac_tool_warned=yes ;;
6281 esac
6282 OBJDUMP=$ac_ct_OBJDUMP
6283 fi
6284 else
6285 OBJDUMP="$ac_cv_prog_OBJDUMP"
6286 fi
6287
6288 test -z "$OBJDUMP" && OBJDUMP=objdump
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6299 printf %s "checking how to recognize dependent libraries... " >&6; }
6300 if test ${lt_cv_deplibs_check_method+y}
6301 then :
6302 printf %s "(cached) " >&6
6303 else $as_nop
6304 lt_cv_file_magic_cmd='$MAGIC_CMD'
6305 lt_cv_file_magic_test_file=
6306 lt_cv_deplibs_check_method='unknown'
6307 # Need to set the preceding variable on all platforms that support
6308 # interlibrary dependencies.
6309 # 'none' -- dependencies not supported.
6310 # 'unknown' -- same as none, but documents that we really don't know.
6311 # 'pass_all' -- all dependencies passed with no checks.
6312 # 'test_compile' -- check by making test program.
6313 # 'file_magic [[regex]]' -- check by looking for files in library path
6314 # that responds to the $file_magic_cmd with a given extended regex.
6315 # If you have 'file' or equivalent on your system and you're not sure
6316 # whether 'pass_all' will *always* work, you probably want this one.
6317
6318 case $host_os in
6319 aix[4-9]*)
6320 lt_cv_deplibs_check_method=pass_all
6321 ;;
6322
6323 beos*)
6324 lt_cv_deplibs_check_method=pass_all
6325 ;;
6326
6327 bsdi[45]*)
6328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6329 lt_cv_file_magic_cmd='$FILECMD -L'
6330 lt_cv_file_magic_test_file=/shlib/libc.so
6331 ;;
6332
6333 cygwin*)
6334 # func_win32_libid is a shell function defined in ltmain.sh
6335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6336 lt_cv_file_magic_cmd='func_win32_libid'
6337 ;;
6338
6339 mingw* | pw32*)
6340 # Base MSYS/MinGW do not provide the 'file' command needed by
6341 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6342 # unless we find 'file', for example because we are cross-compiling.
6343 if ( file / ) >/dev/null 2>&1; then
6344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6345 lt_cv_file_magic_cmd='func_win32_libid'
6346 else
6347 # Keep this pattern in sync with the one in func_win32_libid.
6348 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6349 lt_cv_file_magic_cmd='$OBJDUMP -f'
6350 fi
6351 ;;
6352
6353 cegcc*)
6354 # use the weaker test based on 'objdump'. See mingw*.
6355 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6356 lt_cv_file_magic_cmd='$OBJDUMP -f'
6357 ;;
6358
6359 darwin* | rhapsody*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362
6363 freebsd* | dragonfly* | midnightbsd*)
6364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6365 case $host_cpu in
6366 i*86 )
6367 # Not sure whether the presence of OpenBSD here was a mistake.
6368 # Let's accept both of them until this is cleared up.
6369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6370 lt_cv_file_magic_cmd=$FILECMD
6371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6372 ;;
6373 esac
6374 else
6375 lt_cv_deplibs_check_method=pass_all
6376 fi
6377 ;;
6378
6379 haiku*)
6380 lt_cv_deplibs_check_method=pass_all
6381 ;;
6382
6383 hpux10.20* | hpux11*)
6384 lt_cv_file_magic_cmd=$FILECMD
6385 case $host_cpu in
6386 ia64*)
6387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6389 ;;
6390 hppa*64*)
6391 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]'
6392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6393 ;;
6394 *)
6395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6396 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6397 ;;
6398 esac
6399 ;;
6400
6401 interix[3-9]*)
6402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6404 ;;
6405
6406 irix5* | irix6* | nonstopux*)
6407 case $LD in
6408 *-32|*"-32 ") libmagic=32-bit;;
6409 *-n32|*"-n32 ") libmagic=N32;;
6410 *-64|*"-64 ") libmagic=64-bit;;
6411 *) libmagic=never-match;;
6412 esac
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416 # This must be glibc/ELF.
6417 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
6420
6421 netbsd* | netbsdelf*-gnu)
6422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6424 else
6425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6426 fi
6427 ;;
6428
6429 newos6*)
6430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6431 lt_cv_file_magic_cmd=$FILECMD
6432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6433 ;;
6434
6435 *nto* | *qnx*)
6436 lt_cv_deplibs_check_method=pass_all
6437 ;;
6438
6439 openbsd* | bitrig*)
6440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6442 else
6443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6444 fi
6445 ;;
6446
6447 osf3* | osf4* | osf5*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
6451 rdos*)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455 solaris*)
6456 lt_cv_deplibs_check_method=pass_all
6457 ;;
6458
6459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6460 lt_cv_deplibs_check_method=pass_all
6461 ;;
6462
6463 sysv4 | sysv4.3*)
6464 case $host_vendor in
6465 motorola)
6466 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]'
6467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6468 ;;
6469 ncr)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
6472 sequent)
6473 lt_cv_file_magic_cmd='/bin/file'
6474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6475 ;;
6476 sni)
6477 lt_cv_file_magic_cmd='/bin/file'
6478 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6479 lt_cv_file_magic_test_file=/lib/libc.so
6480 ;;
6481 siemens)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484 pc)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487 esac
6488 ;;
6489
6490 tpf*)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493 os2*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496 esac
6497
6498 fi
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6500 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6501
6502 file_magic_glob=
6503 want_nocaseglob=no
6504 if test "$build" = "$host"; then
6505 case $host_os in
6506 mingw* | pw32*)
6507 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6508 want_nocaseglob=yes
6509 else
6510 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6511 fi
6512 ;;
6513 esac
6514 fi
6515
6516 file_magic_cmd=$lt_cv_file_magic_cmd
6517 deplibs_check_method=$lt_cv_deplibs_check_method
6518 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 if test -n "$ac_tool_prefix"; then
6542 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6543 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 printf %s "checking for $ac_word... " >&6; }
6546 if test ${ac_cv_prog_DLLTOOL+y}
6547 then :
6548 printf %s "(cached) " >&6
6549 else $as_nop
6550 if test -n "$DLLTOOL"; then
6551 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556 IFS=$as_save_IFS
6557 case $as_dir in #(((
6558 '') as_dir=./ ;;
6559 */) ;;
6560 *) as_dir=$as_dir/ ;;
6561 esac
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 DLLTOOL=$ac_cv_prog_DLLTOOL
6575 if test -n "$DLLTOOL"; then
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6577 printf "%s\n" "$DLLTOOL" >&6; }
6578 else
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 printf "%s\n" "no" >&6; }
6581 fi
6582
6583
6584 fi
6585 if test -z "$ac_cv_prog_DLLTOOL"; then
6586 ac_ct_DLLTOOL=$DLLTOOL
6587 # Extract the first word of "dlltool", so it can be a program name with args.
6588 set dummy dlltool; ac_word=$2
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 printf %s "checking for $ac_word... " >&6; }
6591 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6592 then :
6593 printf %s "(cached) " >&6
6594 else $as_nop
6595 if test -n "$ac_ct_DLLTOOL"; then
6596 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 case $as_dir in #(((
6603 '') as_dir=./ ;;
6604 */) ;;
6605 *) as_dir=$as_dir/ ;;
6606 esac
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6609 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617 fi
6618 fi
6619 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6620 if test -n "$ac_ct_DLLTOOL"; then
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6622 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6623 else
6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 printf "%s\n" "no" >&6; }
6626 fi
6627
6628 if test "x$ac_ct_DLLTOOL" = x; then
6629 DLLTOOL="false"
6630 else
6631 case $cross_compiling:$ac_tool_warned in
6632 yes:)
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6635 ac_tool_warned=yes ;;
6636 esac
6637 DLLTOOL=$ac_ct_DLLTOOL
6638 fi
6639 else
6640 DLLTOOL="$ac_cv_prog_DLLTOOL"
6641 fi
6642
6643 test -z "$DLLTOOL" && DLLTOOL=dlltool
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6655 printf %s "checking how to associate runtime and link libraries... " >&6; }
6656 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6657 then :
6658 printf %s "(cached) " >&6
6659 else $as_nop
6660 lt_cv_sharedlib_from_linklib_cmd='unknown'
6661
6662 case $host_os in
6663 cygwin* | mingw* | pw32* | cegcc*)
6664 # two different shell functions defined in ltmain.sh;
6665 # decide which one to use based on capabilities of $DLLTOOL
6666 case `$DLLTOOL --help 2>&1` in
6667 *--identify-strict*)
6668 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6669 ;;
6670 *)
6671 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6672 ;;
6673 esac
6674 ;;
6675 *)
6676 # fallback: assume linklib IS sharedlib
6677 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6678 ;;
6679 esac
6680
6681 fi
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6683 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6684 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6685 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6686
6687
6688
6689
6690
6691
6692
6693 if test -n "$ac_tool_prefix"; then
6694 for ac_prog in ar
6695 do
6696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 printf %s "checking for $ac_word... " >&6; }
6700 if test ${ac_cv_prog_AR+y}
6701 then :
6702 printf %s "(cached) " >&6
6703 else $as_nop
6704 if test -n "$AR"; then
6705 ac_cv_prog_AR="$AR" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710 IFS=$as_save_IFS
6711 case $as_dir in #(((
6712 '') as_dir=./ ;;
6713 */) ;;
6714 *) as_dir=$as_dir/ ;;
6715 esac
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 AR=$ac_cv_prog_AR
6729 if test -n "$AR"; then
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6731 printf "%s\n" "$AR" >&6; }
6732 else
6733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 printf "%s\n" "no" >&6; }
6735 fi
6736
6737
6738 test -n "$AR" && break
6739 done
6740 fi
6741 if test -z "$AR"; then
6742 ac_ct_AR=$AR
6743 for ac_prog in ar
6744 do
6745 # Extract the first word of "$ac_prog", so it can be a program name with args.
6746 set dummy $ac_prog; ac_word=$2
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 printf %s "checking for $ac_word... " >&6; }
6749 if test ${ac_cv_prog_ac_ct_AR+y}
6750 then :
6751 printf %s "(cached) " >&6
6752 else $as_nop
6753 if test -n "$ac_ct_AR"; then
6754 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759 IFS=$as_save_IFS
6760 case $as_dir in #(((
6761 '') as_dir=./ ;;
6762 */) ;;
6763 *) as_dir=$as_dir/ ;;
6764 esac
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_ac_ct_AR="$ac_prog"
6768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6778 if test -n "$ac_ct_AR"; then
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6780 printf "%s\n" "$ac_ct_AR" >&6; }
6781 else
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 printf "%s\n" "no" >&6; }
6784 fi
6785
6786
6787 test -n "$ac_ct_AR" && break
6788 done
6789
6790 if test "x$ac_ct_AR" = x; then
6791 AR="false"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799 AR=$ac_ct_AR
6800 fi
6801 fi
6802
6803 : ${AR=ar}
6804
6805
6806
6807
6808
6809
6810 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6811 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6812 # higher priority because thats what people were doing historically (setting
6813 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6814 # variable obsoleted/removed.
6815
6816 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6817 lt_ar_flags=$AR_FLAGS
6818
6819
6820
6821
6822
6823
6824 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6825 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6826
6827
6828
6829
6830
6831
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6833 printf %s "checking for archiver @FILE support... " >&6; }
6834 if test ${lt_cv_ar_at_file+y}
6835 then :
6836 printf %s "(cached) " >&6
6837 else $as_nop
6838 lt_cv_ar_at_file=no
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841
6842 int
6843 main (void)
6844 {
6845
6846 ;
6847 return 0;
6848 }
6849 _ACEOF
6850 if ac_fn_c_try_compile "$LINENO"
6851 then :
6852 echo conftest.$ac_objext > conftest.lst
6853 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6855 (eval $lt_ar_try) 2>&5
6856 ac_status=$?
6857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6858 test $ac_status = 0; }
6859 if test 0 -eq "$ac_status"; then
6860 # Ensure the archiver fails upon bogus file names.
6861 rm -f conftest.$ac_objext libconftest.a
6862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6863 (eval $lt_ar_try) 2>&5
6864 ac_status=$?
6865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }
6867 if test 0 -ne "$ac_status"; then
6868 lt_cv_ar_at_file=@
6869 fi
6870 fi
6871 rm -f conftest.* libconftest.a
6872
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6875
6876 fi
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6878 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6879
6880 if test no = "$lt_cv_ar_at_file"; then
6881 archiver_list_spec=
6882 else
6883 archiver_list_spec=$lt_cv_ar_at_file
6884 fi
6885
6886
6887
6888
6889
6890
6891
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}strip; ac_word=$2
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 printf %s "checking for $ac_word... " >&6; }
6897 if test ${ac_cv_prog_STRIP+y}
6898 then :
6899 printf %s "(cached) " >&6
6900 else $as_nop
6901 if test -n "$STRIP"; then
6902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907 IFS=$as_save_IFS
6908 case $as_dir in #(((
6909 '') as_dir=./ ;;
6910 */) ;;
6911 *) as_dir=$as_dir/ ;;
6912 esac
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 STRIP=$ac_cv_prog_STRIP
6926 if test -n "$STRIP"; then
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6928 printf "%s\n" "$STRIP" >&6; }
6929 else
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 printf "%s\n" "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_STRIP"; then
6937 ac_ct_STRIP=$STRIP
6938 # Extract the first word of "strip", so it can be a program name with args.
6939 set dummy strip; ac_word=$2
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 printf %s "checking for $ac_word... " >&6; }
6942 if test ${ac_cv_prog_ac_ct_STRIP+y}
6943 then :
6944 printf %s "(cached) " >&6
6945 else $as_nop
6946 if test -n "$ac_ct_STRIP"; then
6947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 case $as_dir in #(((
6954 '') as_dir=./ ;;
6955 */) ;;
6956 *) as_dir=$as_dir/ ;;
6957 esac
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_ac_ct_STRIP="strip"
6961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6971 if test -n "$ac_ct_STRIP"; then
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6973 printf "%s\n" "$ac_ct_STRIP" >&6; }
6974 else
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 printf "%s\n" "no" >&6; }
6977 fi
6978
6979 if test "x$ac_ct_STRIP" = x; then
6980 STRIP=":"
6981 else
6982 case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988 STRIP=$ac_ct_STRIP
6989 fi
6990 else
6991 STRIP="$ac_cv_prog_STRIP"
6992 fi
6993
6994 test -z "$STRIP" && STRIP=:
6995
6996
6997
6998
6999
7000
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 printf %s "checking for $ac_word... " >&6; }
7006 if test ${ac_cv_prog_RANLIB+y}
7007 then :
7008 printf %s "(cached) " >&6
7009 else $as_nop
7010 if test -n "$RANLIB"; then
7011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7012 else
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH
7015 do
7016 IFS=$as_save_IFS
7017 case $as_dir in #(((
7018 '') as_dir=./ ;;
7019 */) ;;
7020 *) as_dir=$as_dir/ ;;
7021 esac
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 RANLIB=$ac_cv_prog_RANLIB
7035 if test -n "$RANLIB"; then
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7037 printf "%s\n" "$RANLIB" >&6; }
7038 else
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 printf "%s\n" "no" >&6; }
7041 fi
7042
7043
7044 fi
7045 if test -z "$ac_cv_prog_RANLIB"; then
7046 ac_ct_RANLIB=$RANLIB
7047 # Extract the first word of "ranlib", so it can be a program name with args.
7048 set dummy ranlib; ac_word=$2
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 printf %s "checking for $ac_word... " >&6; }
7051 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7052 then :
7053 printf %s "(cached) " >&6
7054 else $as_nop
7055 if test -n "$ac_ct_RANLIB"; then
7056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 case $as_dir in #(((
7063 '') as_dir=./ ;;
7064 */) ;;
7065 *) as_dir=$as_dir/ ;;
7066 esac
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7069 ac_cv_prog_ac_ct_RANLIB="ranlib"
7070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080 if test -n "$ac_ct_RANLIB"; then
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7082 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7083 else
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 printf "%s\n" "no" >&6; }
7086 fi
7087
7088 if test "x$ac_ct_RANLIB" = x; then
7089 RANLIB=":"
7090 else
7091 case $cross_compiling:$ac_tool_warned in
7092 yes:)
7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095 ac_tool_warned=yes ;;
7096 esac
7097 RANLIB=$ac_ct_RANLIB
7098 fi
7099 else
7100 RANLIB="$ac_cv_prog_RANLIB"
7101 fi
7102
7103 test -z "$RANLIB" && RANLIB=:
7104
7105
7106
7107
7108
7109
7110 # Determine commands to create old-style static archives.
7111 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7112 old_postinstall_cmds='chmod 644 $oldlib'
7113 old_postuninstall_cmds=
7114
7115 if test -n "$RANLIB"; then
7116 case $host_os in
7117 bitrig* | openbsd*)
7118 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7119 ;;
7120 *)
7121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7122 ;;
7123 esac
7124 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7125 fi
7126
7127 case $host_os in
7128 darwin*)
7129 lock_old_archive_extraction=yes ;;
7130 *)
7131 lock_old_archive_extraction=no ;;
7132 esac
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172 # If no C compiler was specified, use CC.
7173 LTCC=${LTCC-"$CC"}
7174
7175 # If no C compiler flags were specified, use CFLAGS.
7176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7177
7178 # Allow CC to be a program name with arguments.
7179 compiler=$CC
7180
7181
7182 # Check for command to grab the raw symbol name followed by C symbol from nm.
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7184 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7185 if test ${lt_cv_sys_global_symbol_pipe+y}
7186 then :
7187 printf %s "(cached) " >&6
7188 else $as_nop
7189
7190 # These are sane defaults that work on at least a few old systems.
7191 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7192
7193 # Character class describing NM global symbol codes.
7194 symcode='[BCDEGRST]'
7195
7196 # Regexp to match symbols that can be accessed directly from C.
7197 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7198
7199 # Define system-specific variables.
7200 case $host_os in
7201 aix*)
7202 symcode='[BCDT]'
7203 ;;
7204 cygwin* | mingw* | pw32* | cegcc*)
7205 symcode='[ABCDGISTW]'
7206 ;;
7207 hpux*)
7208 if test ia64 = "$host_cpu"; then
7209 symcode='[ABCDEGRST]'
7210 fi
7211 ;;
7212 irix* | nonstopux*)
7213 symcode='[BCDEGRST]'
7214 ;;
7215 osf*)
7216 symcode='[BCDEGQRST]'
7217 ;;
7218 solaris*)
7219 symcode='[BDRT]'
7220 ;;
7221 sco3.2v5*)
7222 symcode='[DT]'
7223 ;;
7224 sysv4.2uw2*)
7225 symcode='[DT]'
7226 ;;
7227 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7228 symcode='[ABDT]'
7229 ;;
7230 sysv4)
7231 symcode='[DFNSTU]'
7232 ;;
7233 esac
7234
7235 # If we're using GNU nm, then use its standard symbol codes.
7236 case `$NM -V 2>&1` in
7237 *GNU* | *'with BFD'*)
7238 symcode='[ABCDGIRSTW]' ;;
7239 esac
7240
7241 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7242 # Gets list of data symbols to import.
7243 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7244 # Adjust the below global symbol transforms to fixup imported variables.
7245 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7246 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7247 lt_c_name_lib_hook="\
7248 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7249 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7250 else
7251 # Disable hooks by default.
7252 lt_cv_sys_global_symbol_to_import=
7253 lt_cdecl_hook=
7254 lt_c_name_hook=
7255 lt_c_name_lib_hook=
7256 fi
7257
7258 # Transform an extracted symbol line into a proper C declaration.
7259 # Some systems (esp. on ia64) link data and code symbols differently,
7260 # so use this general approach.
7261 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7262 $lt_cdecl_hook\
7263 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7264 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7265
7266 # Transform an extracted symbol line into symbol name and symbol address
7267 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7268 $lt_c_name_hook\
7269 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7270 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7271
7272 # Transform an extracted symbol line into symbol name with lib prefix and
7273 # symbol address.
7274 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7275 $lt_c_name_lib_hook\
7276 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7277 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7278 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7279
7280 # Handle CRLF in mingw tool chain
7281 opt_cr=
7282 case $build_os in
7283 mingw*)
7284 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7285 ;;
7286 esac
7287
7288 # Try without a prefix underscore, then with it.
7289 for ac_symprfx in "" "_"; do
7290
7291 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7292 symxfrm="\\1 $ac_symprfx\\2 \\2"
7293
7294 # Write the raw and C identifiers.
7295 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7296 # Fake it for dumpbin and say T for any non-static function,
7297 # D for any global variable and I for any imported variable.
7298 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7299 # which start with @ or ?.
7300 lt_cv_sys_global_symbol_pipe="$AWK '"\
7301 " {last_section=section; section=\$ 3};"\
7302 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7303 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7304 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7305 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7306 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7307 " \$ 0!~/External *\|/{next};"\
7308 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7309 " {if(hide[section]) next};"\
7310 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7311 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7312 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7313 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7314 " ' prfx=^$ac_symprfx"
7315 else
7316 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7317 fi
7318 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7319
7320 # Check to see that the pipe works correctly.
7321 pipe_works=no
7322
7323 rm -f conftest*
7324 cat > conftest.$ac_ext <<_LT_EOF
7325 #ifdef __cplusplus
7326 extern "C" {
7327 #endif
7328 char nm_test_var;
7329 void nm_test_func(void);
7330 void nm_test_func(void){}
7331 #ifdef __cplusplus
7332 }
7333 #endif
7334 int main(){nm_test_var='a';nm_test_func();return(0);}
7335 _LT_EOF
7336
7337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7338 (eval $ac_compile) 2>&5
7339 ac_status=$?
7340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7341 test $ac_status = 0; }; then
7342 # Now try to grab the symbols.
7343 nlist=conftest.nm
7344 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7345 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7346 # Try sorting and uniquifying the output.
7347 if sort "$nlist" | uniq > "$nlist"T; then
7348 mv -f "$nlist"T "$nlist"
7349 else
7350 rm -f "$nlist"T
7351 fi
7352
7353 # Make sure that we snagged all the symbols we need.
7354 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7355 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7356 cat <<_LT_EOF > conftest.$ac_ext
7357 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7358 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7359 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7360 relocations are performed -- see ld's documentation on pseudo-relocs. */
7361 # define LT_DLSYM_CONST
7362 #elif defined __osf__
7363 /* This system does not cope well with relocations in const data. */
7364 # define LT_DLSYM_CONST
7365 #else
7366 # define LT_DLSYM_CONST const
7367 #endif
7368
7369 #ifdef __cplusplus
7370 extern "C" {
7371 #endif
7372
7373 _LT_EOF
7374 # Now generate the symbol file.
7375 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7376
7377 cat <<_LT_EOF >> conftest.$ac_ext
7378
7379 /* The mapping between symbol names and symbols. */
7380 LT_DLSYM_CONST struct {
7381 const char *name;
7382 void *address;
7383 }
7384 lt__PROGRAM__LTX_preloaded_symbols[] =
7385 {
7386 { "@PROGRAM@", (void *) 0 },
7387 _LT_EOF
7388 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7389 cat <<\_LT_EOF >> conftest.$ac_ext
7390 {0, (void *) 0}
7391 };
7392
7393 /* This works around a problem in FreeBSD linker */
7394 #ifdef FREEBSD_WORKAROUND
7395 static const void *lt_preloaded_setup() {
7396 return lt__PROGRAM__LTX_preloaded_symbols;
7397 }
7398 #endif
7399
7400 #ifdef __cplusplus
7401 }
7402 #endif
7403 _LT_EOF
7404 # Now try linking the two files.
7405 mv conftest.$ac_objext conftstm.$ac_objext
7406 lt_globsym_save_LIBS=$LIBS
7407 lt_globsym_save_CFLAGS=$CFLAGS
7408 LIBS=conftstm.$ac_objext
7409 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7411 (eval $ac_link) 2>&5
7412 ac_status=$?
7413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7415 pipe_works=yes
7416 fi
7417 LIBS=$lt_globsym_save_LIBS
7418 CFLAGS=$lt_globsym_save_CFLAGS
7419 else
7420 echo "cannot find nm_test_func in $nlist" >&5
7421 fi
7422 else
7423 echo "cannot find nm_test_var in $nlist" >&5
7424 fi
7425 else
7426 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7427 fi
7428 else
7429 echo "$progname: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 fi
7432 rm -rf conftest* conftst*
7433
7434 # Do not use the global_symbol_pipe unless it works.
7435 if test yes = "$pipe_works"; then
7436 break
7437 else
7438 lt_cv_sys_global_symbol_pipe=
7439 fi
7440 done
7441
7442 fi
7443
7444 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7445 lt_cv_sys_global_symbol_to_cdecl=
7446 fi
7447 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7449 printf "%s\n" "failed" >&6; }
7450 else
7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7452 printf "%s\n" "ok" >&6; }
7453 fi
7454
7455 # Response file support.
7456 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7457 nm_file_list_spec='@'
7458 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7459 nm_file_list_spec='@'
7460 fi
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7499 printf %s "checking for sysroot... " >&6; }
7500
7501 # Check whether --with-sysroot was given.
7502 if test ${with_sysroot+y}
7503 then :
7504 withval=$with_sysroot;
7505 else $as_nop
7506 with_sysroot=no
7507 fi
7508
7509
7510 lt_sysroot=
7511 case $with_sysroot in #(
7512 yes)
7513 if test yes = "$GCC"; then
7514 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7515 fi
7516 ;; #(
7517 /*)
7518 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7519 ;; #(
7520 no|'')
7521 ;; #(
7522 *)
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7524 printf "%s\n" "$with_sysroot" >&6; }
7525 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7526 ;;
7527 esac
7528
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7530 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7531
7532
7533
7534
7535
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7537 printf %s "checking for a working dd... " >&6; }
7538 if test ${ac_cv_path_lt_DD+y}
7539 then :
7540 printf %s "(cached) " >&6
7541 else $as_nop
7542 printf 0123456789abcdef0123456789abcdef >conftest.i
7543 cat conftest.i conftest.i >conftest2.i
7544 : ${lt_DD:=$DD}
7545 if test -z "$lt_DD"; then
7546 ac_path_lt_DD_found=false
7547 # Loop through the user's path and test for each of PROGNAME-LIST
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551 IFS=$as_save_IFS
7552 case $as_dir in #(((
7553 '') as_dir=./ ;;
7554 */) ;;
7555 *) as_dir=$as_dir/ ;;
7556 esac
7557 for ac_prog in dd
7558 do
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7561 as_fn_executable_p "$ac_path_lt_DD" || continue
7562 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7563 cmp -s conftest.i conftest.out \
7564 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7565 fi
7566 $ac_path_lt_DD_found && break 3
7567 done
7568 done
7569 done
7570 IFS=$as_save_IFS
7571 if test -z "$ac_cv_path_lt_DD"; then
7572 :
7573 fi
7574 else
7575 ac_cv_path_lt_DD=$lt_DD
7576 fi
7577
7578 rm -f conftest.i conftest2.i conftest.out
7579 fi
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7581 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7582
7583
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7585 printf %s "checking how to truncate binary pipes... " >&6; }
7586 if test ${lt_cv_truncate_bin+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else $as_nop
7590 printf 0123456789abcdef0123456789abcdef >conftest.i
7591 cat conftest.i conftest.i >conftest2.i
7592 lt_cv_truncate_bin=
7593 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7594 cmp -s conftest.i conftest.out \
7595 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7596 fi
7597 rm -f conftest.i conftest2.i conftest.out
7598 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7599 fi
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7601 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7602
7603
7604
7605
7606
7607
7608
7609 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7610 func_cc_basename ()
7611 {
7612 for cc_temp in $*""; do
7613 case $cc_temp in
7614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7616 \-*) ;;
7617 *) break;;
7618 esac
7619 done
7620 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7621 }
7622
7623 # Check whether --enable-libtool-lock was given.
7624 if test ${enable_libtool_lock+y}
7625 then :
7626 enableval=$enable_libtool_lock;
7627 fi
7628
7629 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7630
7631 # Some flags need to be propagated to the compiler or linker for good
7632 # libtool support.
7633 case $host in
7634 ia64-*-hpux*)
7635 # Find out what ABI is being produced by ac_compile, and set mode
7636 # options accordingly.
7637 echo 'int i;' > conftest.$ac_ext
7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7639 (eval $ac_compile) 2>&5
7640 ac_status=$?
7641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; }; then
7643 case `$FILECMD conftest.$ac_objext` in
7644 *ELF-32*)
7645 HPUX_IA64_MODE=32
7646 ;;
7647 *ELF-64*)
7648 HPUX_IA64_MODE=64
7649 ;;
7650 esac
7651 fi
7652 rm -rf conftest*
7653 ;;
7654 *-*-irix6*)
7655 # Find out what ABI is being produced by ac_compile, and set linker
7656 # options accordingly.
7657 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7659 (eval $ac_compile) 2>&5
7660 ac_status=$?
7661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7662 test $ac_status = 0; }; then
7663 if test yes = "$lt_cv_prog_gnu_ld"; then
7664 case `$FILECMD conftest.$ac_objext` in
7665 *32-bit*)
7666 LD="${LD-ld} -melf32bsmip"
7667 ;;
7668 *N32*)
7669 LD="${LD-ld} -melf32bmipn32"
7670 ;;
7671 *64-bit*)
7672 LD="${LD-ld} -melf64bmip"
7673 ;;
7674 esac
7675 else
7676 case `$FILECMD conftest.$ac_objext` in
7677 *32-bit*)
7678 LD="${LD-ld} -32"
7679 ;;
7680 *N32*)
7681 LD="${LD-ld} -n32"
7682 ;;
7683 *64-bit*)
7684 LD="${LD-ld} -64"
7685 ;;
7686 esac
7687 fi
7688 fi
7689 rm -rf conftest*
7690 ;;
7691
7692 mips64*-*linux*)
7693 # Find out what ABI is being produced by ac_compile, and set linker
7694 # options accordingly.
7695 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7697 (eval $ac_compile) 2>&5
7698 ac_status=$?
7699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7700 test $ac_status = 0; }; then
7701 emul=elf
7702 case `$FILECMD conftest.$ac_objext` in
7703 *32-bit*)
7704 emul="${emul}32"
7705 ;;
7706 *64-bit*)
7707 emul="${emul}64"
7708 ;;
7709 esac
7710 case `$FILECMD conftest.$ac_objext` in
7711 *MSB*)
7712 emul="${emul}btsmip"
7713 ;;
7714 *LSB*)
7715 emul="${emul}ltsmip"
7716 ;;
7717 esac
7718 case `$FILECMD conftest.$ac_objext` in
7719 *N32*)
7720 emul="${emul}n32"
7721 ;;
7722 esac
7723 LD="${LD-ld} -m $emul"
7724 fi
7725 rm -rf conftest*
7726 ;;
7727
7728 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7729 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7730 # Find out what ABI is being produced by ac_compile, and set linker
7731 # options accordingly. Note that the listed cases only cover the
7732 # situations where additional linker options are needed (such as when
7733 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7734 # vice versa); the common cases where no linker options are needed do
7735 # not appear in the list.
7736 echo 'int i;' > conftest.$ac_ext
7737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7738 (eval $ac_compile) 2>&5
7739 ac_status=$?
7740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7742 case `$FILECMD conftest.o` in
7743 *32-bit*)
7744 case $host in
7745 x86_64-*kfreebsd*-gnu)
7746 LD="${LD-ld} -m elf_i386_fbsd"
7747 ;;
7748 x86_64-*linux*)
7749 case `$FILECMD conftest.o` in
7750 *x86-64*)
7751 LD="${LD-ld} -m elf32_x86_64"
7752 ;;
7753 *)
7754 LD="${LD-ld} -m elf_i386"
7755 ;;
7756 esac
7757 ;;
7758 powerpc64le-*linux*)
7759 LD="${LD-ld} -m elf32lppclinux"
7760 ;;
7761 powerpc64-*linux*)
7762 LD="${LD-ld} -m elf32ppclinux"
7763 ;;
7764 s390x-*linux*)
7765 LD="${LD-ld} -m elf_s390"
7766 ;;
7767 sparc64-*linux*)
7768 LD="${LD-ld} -m elf32_sparc"
7769 ;;
7770 esac
7771 ;;
7772 *64-bit*)
7773 case $host in
7774 x86_64-*kfreebsd*-gnu)
7775 LD="${LD-ld} -m elf_x86_64_fbsd"
7776 ;;
7777 x86_64-*linux*)
7778 LD="${LD-ld} -m elf_x86_64"
7779 ;;
7780 powerpcle-*linux*)
7781 LD="${LD-ld} -m elf64lppc"
7782 ;;
7783 powerpc-*linux*)
7784 LD="${LD-ld} -m elf64ppc"
7785 ;;
7786 s390*-*linux*|s390*-*tpf*)
7787 LD="${LD-ld} -m elf64_s390"
7788 ;;
7789 sparc*-*linux*)
7790 LD="${LD-ld} -m elf64_sparc"
7791 ;;
7792 esac
7793 ;;
7794 esac
7795 fi
7796 rm -rf conftest*
7797 ;;
7798
7799 *-*-sco3.2v5*)
7800 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7801 SAVE_CFLAGS=$CFLAGS
7802 CFLAGS="$CFLAGS -belf"
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7804 printf %s "checking whether the C compiler needs -belf... " >&6; }
7805 if test ${lt_cv_cc_needs_belf+y}
7806 then :
7807 printf %s "(cached) " >&6
7808 else $as_nop
7809 ac_ext=c
7810 ac_cpp='$CPP $CPPFLAGS'
7811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7814
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817
7818 int
7819 main (void)
7820 {
7821
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 if ac_fn_c_try_link "$LINENO"
7827 then :
7828 lt_cv_cc_needs_belf=yes
7829 else $as_nop
7830 lt_cv_cc_needs_belf=no
7831 fi
7832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7833 conftest$ac_exeext conftest.$ac_ext
7834 ac_ext=c
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840 fi
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7842 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7843 if test yes != "$lt_cv_cc_needs_belf"; then
7844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7845 CFLAGS=$SAVE_CFLAGS
7846 fi
7847 ;;
7848 *-*solaris*)
7849 # Find out what ABI is being produced by ac_compile, and set linker
7850 # options accordingly.
7851 echo 'int i;' > conftest.$ac_ext
7852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7853 (eval $ac_compile) 2>&5
7854 ac_status=$?
7855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856 test $ac_status = 0; }; then
7857 case `$FILECMD conftest.o` in
7858 *64-bit*)
7859 case $lt_cv_prog_gnu_ld in
7860 yes*)
7861 case $host in
7862 i?86-*-solaris*|x86_64-*-solaris*)
7863 LD="${LD-ld} -m elf_x86_64"
7864 ;;
7865 sparc*-*-solaris*)
7866 LD="${LD-ld} -m elf64_sparc"
7867 ;;
7868 esac
7869 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7870 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7871 LD=${LD-ld}_sol2
7872 fi
7873 ;;
7874 *)
7875 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7876 LD="${LD-ld} -64"
7877 fi
7878 ;;
7879 esac
7880 ;;
7881 esac
7882 fi
7883 rm -rf conftest*
7884 ;;
7885 esac
7886
7887 need_locks=$enable_libtool_lock
7888
7889 if test -n "$ac_tool_prefix"; then
7890 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7891 set dummy ${ac_tool_prefix}mt; ac_word=$2
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 printf %s "checking for $ac_word... " >&6; }
7894 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7895 then :
7896 printf %s "(cached) " >&6
7897 else $as_nop
7898 if test -n "$MANIFEST_TOOL"; then
7899 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7903 do
7904 IFS=$as_save_IFS
7905 case $as_dir in #(((
7906 '') as_dir=./ ;;
7907 */) ;;
7908 *) as_dir=$as_dir/ ;;
7909 esac
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916 done
7917 done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7923 if test -n "$MANIFEST_TOOL"; then
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7925 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7926 else
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 printf "%s\n" "no" >&6; }
7929 fi
7930
7931
7932 fi
7933 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7934 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7935 # Extract the first word of "mt", so it can be a program name with args.
7936 set dummy mt; ac_word=$2
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938 printf %s "checking for $ac_word... " >&6; }
7939 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7940 then :
7941 printf %s "(cached) " >&6
7942 else $as_nop
7943 if test -n "$ac_ct_MANIFEST_TOOL"; then
7944 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949 IFS=$as_save_IFS
7950 case $as_dir in #(((
7951 '') as_dir=./ ;;
7952 */) ;;
7953 *) as_dir=$as_dir/ ;;
7954 esac
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961 done
7962 done
7963 IFS=$as_save_IFS
7964
7965 fi
7966 fi
7967 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7968 if test -n "$ac_ct_MANIFEST_TOOL"; then
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7970 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7971 else
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 printf "%s\n" "no" >&6; }
7974 fi
7975
7976 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7977 MANIFEST_TOOL=":"
7978 else
7979 case $cross_compiling:$ac_tool_warned in
7980 yes:)
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned=yes ;;
7984 esac
7985 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7986 fi
7987 else
7988 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7989 fi
7990
7991 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7993 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7994 if test ${lt_cv_path_mainfest_tool+y}
7995 then :
7996 printf %s "(cached) " >&6
7997 else $as_nop
7998 lt_cv_path_mainfest_tool=no
7999 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8000 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8001 cat conftest.err >&5
8002 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8003 lt_cv_path_mainfest_tool=yes
8004 fi
8005 rm -f conftest*
8006 fi
8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8008 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8009 if test yes != "$lt_cv_path_mainfest_tool"; then
8010 MANIFEST_TOOL=:
8011 fi
8012
8013
8014
8015
8016
8017
8018 case $host_os in
8019 rhapsody* | darwin*)
8020 if test -n "$ac_tool_prefix"; then
8021 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8022 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 printf %s "checking for $ac_word... " >&6; }
8025 if test ${ac_cv_prog_DSYMUTIL+y}
8026 then :
8027 printf %s "(cached) " >&6
8028 else $as_nop
8029 if test -n "$DSYMUTIL"; then
8030 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035 IFS=$as_save_IFS
8036 case $as_dir in #(((
8037 '') as_dir=./ ;;
8038 */) ;;
8039 *) as_dir=$as_dir/ ;;
8040 esac
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8043 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8045 break 2
8046 fi
8047 done
8048 done
8049 IFS=$as_save_IFS
8050
8051 fi
8052 fi
8053 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8054 if test -n "$DSYMUTIL"; then
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8056 printf "%s\n" "$DSYMUTIL" >&6; }
8057 else
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 printf "%s\n" "no" >&6; }
8060 fi
8061
8062
8063 fi
8064 if test -z "$ac_cv_prog_DSYMUTIL"; then
8065 ac_ct_DSYMUTIL=$DSYMUTIL
8066 # Extract the first word of "dsymutil", so it can be a program name with args.
8067 set dummy dsymutil; ac_word=$2
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 printf %s "checking for $ac_word... " >&6; }
8070 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else $as_nop
8074 if test -n "$ac_ct_DSYMUTIL"; then
8075 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 case $as_dir in #(((
8082 '') as_dir=./ ;;
8083 */) ;;
8084 *) as_dir=$as_dir/ ;;
8085 esac
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8099 if test -n "$ac_ct_DSYMUTIL"; then
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8101 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8102 else
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 printf "%s\n" "no" >&6; }
8105 fi
8106
8107 if test "x$ac_ct_DSYMUTIL" = x; then
8108 DSYMUTIL=":"
8109 else
8110 case $cross_compiling:$ac_tool_warned in
8111 yes:)
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8115 esac
8116 DSYMUTIL=$ac_ct_DSYMUTIL
8117 fi
8118 else
8119 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8120 fi
8121
8122 if test -n "$ac_tool_prefix"; then
8123 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8124 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 printf %s "checking for $ac_word... " >&6; }
8127 if test ${ac_cv_prog_NMEDIT+y}
8128 then :
8129 printf %s "(cached) " >&6
8130 else $as_nop
8131 if test -n "$NMEDIT"; then
8132 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137 IFS=$as_save_IFS
8138 case $as_dir in #(((
8139 '') as_dir=./ ;;
8140 */) ;;
8141 *) as_dir=$as_dir/ ;;
8142 esac
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8145 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8147 break 2
8148 fi
8149 done
8150 done
8151 IFS=$as_save_IFS
8152
8153 fi
8154 fi
8155 NMEDIT=$ac_cv_prog_NMEDIT
8156 if test -n "$NMEDIT"; then
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8158 printf "%s\n" "$NMEDIT" >&6; }
8159 else
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 printf "%s\n" "no" >&6; }
8162 fi
8163
8164
8165 fi
8166 if test -z "$ac_cv_prog_NMEDIT"; then
8167 ac_ct_NMEDIT=$NMEDIT
8168 # Extract the first word of "nmedit", so it can be a program name with args.
8169 set dummy nmedit; ac_word=$2
8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 printf %s "checking for $ac_word... " >&6; }
8172 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8173 then :
8174 printf %s "(cached) " >&6
8175 else $as_nop
8176 if test -n "$ac_ct_NMEDIT"; then
8177 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182 IFS=$as_save_IFS
8183 case $as_dir in #(((
8184 '') as_dir=./ ;;
8185 */) ;;
8186 *) as_dir=$as_dir/ ;;
8187 esac
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8190 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8192 break 2
8193 fi
8194 done
8195 done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8201 if test -n "$ac_ct_NMEDIT"; then
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8203 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8204 else
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 printf "%s\n" "no" >&6; }
8207 fi
8208
8209 if test "x$ac_ct_NMEDIT" = x; then
8210 NMEDIT=":"
8211 else
8212 case $cross_compiling:$ac_tool_warned in
8213 yes:)
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8215 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8216 ac_tool_warned=yes ;;
8217 esac
8218 NMEDIT=$ac_ct_NMEDIT
8219 fi
8220 else
8221 NMEDIT="$ac_cv_prog_NMEDIT"
8222 fi
8223
8224 if test -n "$ac_tool_prefix"; then
8225 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8226 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 printf %s "checking for $ac_word... " >&6; }
8229 if test ${ac_cv_prog_LIPO+y}
8230 then :
8231 printf %s "(cached) " >&6
8232 else $as_nop
8233 if test -n "$LIPO"; then
8234 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239 IFS=$as_save_IFS
8240 case $as_dir in #(((
8241 '') as_dir=./ ;;
8242 */) ;;
8243 *) as_dir=$as_dir/ ;;
8244 esac
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8249 break 2
8250 fi
8251 done
8252 done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 LIPO=$ac_cv_prog_LIPO
8258 if test -n "$LIPO"; then
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8260 printf "%s\n" "$LIPO" >&6; }
8261 else
8262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 printf "%s\n" "no" >&6; }
8264 fi
8265
8266
8267 fi
8268 if test -z "$ac_cv_prog_LIPO"; then
8269 ac_ct_LIPO=$LIPO
8270 # Extract the first word of "lipo", so it can be a program name with args.
8271 set dummy lipo; ac_word=$2
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 printf %s "checking for $ac_word... " >&6; }
8274 if test ${ac_cv_prog_ac_ct_LIPO+y}
8275 then :
8276 printf %s "(cached) " >&6
8277 else $as_nop
8278 if test -n "$ac_ct_LIPO"; then
8279 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284 IFS=$as_save_IFS
8285 case $as_dir in #(((
8286 '') as_dir=./ ;;
8287 */) ;;
8288 *) as_dir=$as_dir/ ;;
8289 esac
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_ac_ct_LIPO="lipo"
8293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8294 break 2
8295 fi
8296 done
8297 done
8298 IFS=$as_save_IFS
8299
8300 fi
8301 fi
8302 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8303 if test -n "$ac_ct_LIPO"; then
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8305 printf "%s\n" "$ac_ct_LIPO" >&6; }
8306 else
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 printf "%s\n" "no" >&6; }
8309 fi
8310
8311 if test "x$ac_ct_LIPO" = x; then
8312 LIPO=":"
8313 else
8314 case $cross_compiling:$ac_tool_warned in
8315 yes:)
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8317 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8318 ac_tool_warned=yes ;;
8319 esac
8320 LIPO=$ac_ct_LIPO
8321 fi
8322 else
8323 LIPO="$ac_cv_prog_LIPO"
8324 fi
8325
8326 if test -n "$ac_tool_prefix"; then
8327 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8328 set dummy ${ac_tool_prefix}otool; ac_word=$2
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 printf %s "checking for $ac_word... " >&6; }
8331 if test ${ac_cv_prog_OTOOL+y}
8332 then :
8333 printf %s "(cached) " >&6
8334 else $as_nop
8335 if test -n "$OTOOL"; then
8336 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341 IFS=$as_save_IFS
8342 case $as_dir in #(((
8343 '') as_dir=./ ;;
8344 */) ;;
8345 *) as_dir=$as_dir/ ;;
8346 esac
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8349 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8351 break 2
8352 fi
8353 done
8354 done
8355 IFS=$as_save_IFS
8356
8357 fi
8358 fi
8359 OTOOL=$ac_cv_prog_OTOOL
8360 if test -n "$OTOOL"; then
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8362 printf "%s\n" "$OTOOL" >&6; }
8363 else
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 printf "%s\n" "no" >&6; }
8366 fi
8367
8368
8369 fi
8370 if test -z "$ac_cv_prog_OTOOL"; then
8371 ac_ct_OTOOL=$OTOOL
8372 # Extract the first word of "otool", so it can be a program name with args.
8373 set dummy otool; ac_word=$2
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 printf %s "checking for $ac_word... " >&6; }
8376 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8377 then :
8378 printf %s "(cached) " >&6
8379 else $as_nop
8380 if test -n "$ac_ct_OTOOL"; then
8381 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386 IFS=$as_save_IFS
8387 case $as_dir in #(((
8388 '') as_dir=./ ;;
8389 */) ;;
8390 *) as_dir=$as_dir/ ;;
8391 esac
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_ac_ct_OTOOL="otool"
8395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8396 break 2
8397 fi
8398 done
8399 done
8400 IFS=$as_save_IFS
8401
8402 fi
8403 fi
8404 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8405 if test -n "$ac_ct_OTOOL"; then
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8407 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8408 else
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 printf "%s\n" "no" >&6; }
8411 fi
8412
8413 if test "x$ac_ct_OTOOL" = x; then
8414 OTOOL=":"
8415 else
8416 case $cross_compiling:$ac_tool_warned in
8417 yes:)
8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8419 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8420 ac_tool_warned=yes ;;
8421 esac
8422 OTOOL=$ac_ct_OTOOL
8423 fi
8424 else
8425 OTOOL="$ac_cv_prog_OTOOL"
8426 fi
8427
8428 if test -n "$ac_tool_prefix"; then
8429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8430 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 printf %s "checking for $ac_word... " >&6; }
8433 if test ${ac_cv_prog_OTOOL64+y}
8434 then :
8435 printf %s "(cached) " >&6
8436 else $as_nop
8437 if test -n "$OTOOL64"; then
8438 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8442 do
8443 IFS=$as_save_IFS
8444 case $as_dir in #(((
8445 '') as_dir=./ ;;
8446 */) ;;
8447 *) as_dir=$as_dir/ ;;
8448 esac
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8451 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
8455 done
8456 done
8457 IFS=$as_save_IFS
8458
8459 fi
8460 fi
8461 OTOOL64=$ac_cv_prog_OTOOL64
8462 if test -n "$OTOOL64"; then
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8464 printf "%s\n" "$OTOOL64" >&6; }
8465 else
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 printf "%s\n" "no" >&6; }
8468 fi
8469
8470
8471 fi
8472 if test -z "$ac_cv_prog_OTOOL64"; then
8473 ac_ct_OTOOL64=$OTOOL64
8474 # Extract the first word of "otool64", so it can be a program name with args.
8475 set dummy otool64; ac_word=$2
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 printf %s "checking for $ac_word... " >&6; }
8478 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8479 then :
8480 printf %s "(cached) " >&6
8481 else $as_nop
8482 if test -n "$ac_ct_OTOOL64"; then
8483 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8484 else
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488 IFS=$as_save_IFS
8489 case $as_dir in #(((
8490 '') as_dir=./ ;;
8491 */) ;;
8492 *) as_dir=$as_dir/ ;;
8493 esac
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8496 ac_cv_prog_ac_ct_OTOOL64="otool64"
8497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8498 break 2
8499 fi
8500 done
8501 done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8507 if test -n "$ac_ct_OTOOL64"; then
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8509 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8510 else
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 printf "%s\n" "no" >&6; }
8513 fi
8514
8515 if test "x$ac_ct_OTOOL64" = x; then
8516 OTOOL64=":"
8517 else
8518 case $cross_compiling:$ac_tool_warned in
8519 yes:)
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522 ac_tool_warned=yes ;;
8523 esac
8524 OTOOL64=$ac_ct_OTOOL64
8525 fi
8526 else
8527 OTOOL64="$ac_cv_prog_OTOOL64"
8528 fi
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8557 printf %s "checking for -single_module linker flag... " >&6; }
8558 if test ${lt_cv_apple_cc_single_mod+y}
8559 then :
8560 printf %s "(cached) " >&6
8561 else $as_nop
8562 lt_cv_apple_cc_single_mod=no
8563 if test -z "$LT_MULTI_MODULE"; then
8564 # By default we will add the -single_module flag. You can override
8565 # by either setting the environment variable LT_MULTI_MODULE
8566 # non-empty at configure time, or by adding -multi_module to the
8567 # link flags.
8568 rm -rf libconftest.dylib*
8569 echo "int foo(void){return 1;}" > conftest.c
8570 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8571 -dynamiclib -Wl,-single_module conftest.c" >&5
8572 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8573 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8574 _lt_result=$?
8575 # If there is a non-empty error log, and "single_module"
8576 # appears in it, assume the flag caused a linker warning
8577 if test -s conftest.err && $GREP single_module conftest.err; then
8578 cat conftest.err >&5
8579 # Otherwise, if the output was created with a 0 exit code from
8580 # the compiler, it worked.
8581 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8582 lt_cv_apple_cc_single_mod=yes
8583 else
8584 cat conftest.err >&5
8585 fi
8586 rm -rf libconftest.dylib*
8587 rm -f conftest.*
8588 fi
8589 fi
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8591 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8592
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8594 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8595 if test ${lt_cv_ld_exported_symbols_list+y}
8596 then :
8597 printf %s "(cached) " >&6
8598 else $as_nop
8599 lt_cv_ld_exported_symbols_list=no
8600 save_LDFLAGS=$LDFLAGS
8601 echo "_main" > conftest.sym
8602 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605
8606 int
8607 main (void)
8608 {
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_link "$LINENO"
8615 then :
8616 lt_cv_ld_exported_symbols_list=yes
8617 else $as_nop
8618 lt_cv_ld_exported_symbols_list=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LDFLAGS=$save_LDFLAGS
8623
8624 fi
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8626 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8627
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8629 printf %s "checking for -force_load linker flag... " >&6; }
8630 if test ${lt_cv_ld_force_load+y}
8631 then :
8632 printf %s "(cached) " >&6
8633 else $as_nop
8634 lt_cv_ld_force_load=no
8635 cat > conftest.c << _LT_EOF
8636 int forced_loaded() { return 2;}
8637 _LT_EOF
8638 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8639 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8640 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8641 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8642 echo "$RANLIB libconftest.a" >&5
8643 $RANLIB libconftest.a 2>&5
8644 cat > conftest.c << _LT_EOF
8645 int main() { return 0;}
8646 _LT_EOF
8647 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8648 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8649 _lt_result=$?
8650 if test -s conftest.err && $GREP force_load conftest.err; then
8651 cat conftest.err >&5
8652 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8653 lt_cv_ld_force_load=yes
8654 else
8655 cat conftest.err >&5
8656 fi
8657 rm -f conftest.err libconftest.a conftest conftest.c
8658 rm -rf conftest.dSYM
8659
8660 fi
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8662 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8663 case $host_os in
8664 rhapsody* | darwin1.[012])
8665 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8666 darwin1.*)
8667 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8668 darwin*)
8669 case $MACOSX_DEPLOYMENT_TARGET,$host in
8670 10.[012],*|,*powerpc*-darwin[5-8]*)
8671 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8672 *)
8673 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8674 esac
8675 ;;
8676 esac
8677 if test yes = "$lt_cv_apple_cc_single_mod"; then
8678 _lt_dar_single_mod='$single_module'
8679 fi
8680 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8681 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8682 else
8683 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8684 fi
8685 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8686 _lt_dsymutil='~$DSYMUTIL $lib || :'
8687 else
8688 _lt_dsymutil=
8689 fi
8690 ;;
8691 esac
8692
8693 # func_munge_path_list VARIABLE PATH
8694 # -----------------------------------
8695 # VARIABLE is name of variable containing _space_ separated list of
8696 # directories to be munged by the contents of PATH, which is string
8697 # having a format:
8698 # "DIR[:DIR]:"
8699 # string "DIR[ DIR]" will be prepended to VARIABLE
8700 # ":DIR[:DIR]"
8701 # string "DIR[ DIR]" will be appended to VARIABLE
8702 # "DIRP[:DIRP]::[DIRA:]DIRA"
8703 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8704 # "DIRA[ DIRA]" will be appended to VARIABLE
8705 # "DIR[:DIR]"
8706 # VARIABLE will be replaced by "DIR[ DIR]"
8707 func_munge_path_list ()
8708 {
8709 case x$2 in
8710 x)
8711 ;;
8712 *:)
8713 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8714 ;;
8715 x:*)
8716 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8717 ;;
8718 *::*)
8719 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8720 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8721 ;;
8722 *)
8723 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8724 ;;
8725 esac
8726 }
8727
8728 ac_header= ac_cache=
8729 for ac_item in $ac_header_c_list
8730 do
8731 if test $ac_cache; then
8732 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8733 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8734 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8735 fi
8736 ac_header= ac_cache=
8737 elif test $ac_header; then
8738 ac_cache=$ac_item
8739 else
8740 ac_header=$ac_item
8741 fi
8742 done
8743
8744
8745
8746
8747
8748
8749
8750
8751 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8752 then :
8753
8754 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8755
8756 fi
8757 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8758 "
8759 if test "x$ac_cv_header_dlfcn_h" = xyes
8760 then :
8761 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8762
8763 fi
8764
8765
8766
8767
8768
8769 # Set options
8770
8771
8772
8773 enable_dlopen=no
8774
8775
8776 enable_win32_dll=no
8777
8778
8779 # Check whether --enable-shared was given.
8780 if test ${enable_shared+y}
8781 then :
8782 enableval=$enable_shared; p=${PACKAGE-default}
8783 case $enableval in
8784 yes) enable_shared=yes ;;
8785 no) enable_shared=no ;;
8786 *)
8787 enable_shared=no
8788 # Look at the argument we got. We use all the common list separators.
8789 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8790 for pkg in $enableval; do
8791 IFS=$lt_save_ifs
8792 if test "X$pkg" = "X$p"; then
8793 enable_shared=yes
8794 fi
8795 done
8796 IFS=$lt_save_ifs
8797 ;;
8798 esac
8799 else $as_nop
8800 enable_shared=yes
8801 fi
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811 # Check whether --enable-static was given.
8812 if test ${enable_static+y}
8813 then :
8814 enableval=$enable_static; p=${PACKAGE-default}
8815 case $enableval in
8816 yes) enable_static=yes ;;
8817 no) enable_static=no ;;
8818 *)
8819 enable_static=no
8820 # Look at the argument we got. We use all the common list separators.
8821 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8822 for pkg in $enableval; do
8823 IFS=$lt_save_ifs
8824 if test "X$pkg" = "X$p"; then
8825 enable_static=yes
8826 fi
8827 done
8828 IFS=$lt_save_ifs
8829 ;;
8830 esac
8831 else $as_nop
8832 enable_static=yes
8833 fi
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844 # Check whether --with-pic was given.
8845 if test ${with_pic+y}
8846 then :
8847 withval=$with_pic; lt_p=${PACKAGE-default}
8848 case $withval in
8849 yes|no) pic_mode=$withval ;;
8850 *)
8851 pic_mode=default
8852 # Look at the argument we got. We use all the common list separators.
8853 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8854 for lt_pkg in $withval; do
8855 IFS=$lt_save_ifs
8856 if test "X$lt_pkg" = "X$lt_p"; then
8857 pic_mode=yes
8858 fi
8859 done
8860 IFS=$lt_save_ifs
8861 ;;
8862 esac
8863 else $as_nop
8864 pic_mode=default
8865 fi
8866
8867
8868
8869
8870
8871
8872
8873
8874 # Check whether --enable-fast-install was given.
8875 if test ${enable_fast_install+y}
8876 then :
8877 enableval=$enable_fast_install; p=${PACKAGE-default}
8878 case $enableval in
8879 yes) enable_fast_install=yes ;;
8880 no) enable_fast_install=no ;;
8881 *)
8882 enable_fast_install=no
8883 # Look at the argument we got. We use all the common list separators.
8884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8885 for pkg in $enableval; do
8886 IFS=$lt_save_ifs
8887 if test "X$pkg" = "X$p"; then
8888 enable_fast_install=yes
8889 fi
8890 done
8891 IFS=$lt_save_ifs
8892 ;;
8893 esac
8894 else $as_nop
8895 enable_fast_install=yes
8896 fi
8897
8898
8899
8900
8901
8902
8903
8904
8905 shared_archive_member_spec=
8906 case $host,$enable_shared in
8907 power*-*-aix[5-9]*,yes)
8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8909 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8910
8911 # Check whether --with-aix-soname was given.
8912 if test ${with_aix_soname+y}
8913 then :
8914 withval=$with_aix_soname; case $withval in
8915 aix|svr4|both)
8916 ;;
8917 *)
8918 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8919 ;;
8920 esac
8921 lt_cv_with_aix_soname=$with_aix_soname
8922 else $as_nop
8923 if test ${lt_cv_with_aix_soname+y}
8924 then :
8925 printf %s "(cached) " >&6
8926 else $as_nop
8927 lt_cv_with_aix_soname=aix
8928 fi
8929
8930 with_aix_soname=$lt_cv_with_aix_soname
8931 fi
8932
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8934 printf "%s\n" "$with_aix_soname" >&6; }
8935 if test aix != "$with_aix_soname"; then
8936 # For the AIX way of multilib, we name the shared archive member
8937 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8938 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8939 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8940 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8941 if test 64 = "${OBJECT_MODE-32}"; then
8942 shared_archive_member_spec=shr_64
8943 else
8944 shared_archive_member_spec=shr
8945 fi
8946 fi
8947 ;;
8948 *)
8949 with_aix_soname=aix
8950 ;;
8951 esac
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962 # This can be used to rebuild libtool when needed
8963 LIBTOOL_DEPS=$ltmain
8964
8965 # Always use our own libtool.
8966 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997 test -z "$LN_S" && LN_S="ln -s"
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012 if test -n "${ZSH_VERSION+set}"; then
9013 setopt NO_GLOB_SUBST
9014 fi
9015
9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9017 printf %s "checking for objdir... " >&6; }
9018 if test ${lt_cv_objdir+y}
9019 then :
9020 printf %s "(cached) " >&6
9021 else $as_nop
9022 rm -f .libs 2>/dev/null
9023 mkdir .libs 2>/dev/null
9024 if test -d .libs; then
9025 lt_cv_objdir=.libs
9026 else
9027 # MS-DOS does not allow filenames that begin with a dot.
9028 lt_cv_objdir=_libs
9029 fi
9030 rmdir .libs 2>/dev/null
9031 fi
9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9033 printf "%s\n" "$lt_cv_objdir" >&6; }
9034 objdir=$lt_cv_objdir
9035
9036
9037
9038
9039
9040 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9041
9042
9043
9044
9045 case $host_os in
9046 aix3*)
9047 # AIX sometimes has problems with the GCC collect2 program. For some
9048 # reason, if we set the COLLECT_NAMES environment variable, the problems
9049 # vanish in a puff of smoke.
9050 if test set != "${COLLECT_NAMES+set}"; then
9051 COLLECT_NAMES=
9052 export COLLECT_NAMES
9053 fi
9054 ;;
9055 esac
9056
9057 # Global variables:
9058 ofile=libtool
9059 can_build_shared=yes
9060
9061 # All known linkers require a '.a' archive for static linking (except MSVC and
9062 # ICC, which need '.lib').
9063 libext=a
9064
9065 with_gnu_ld=$lt_cv_prog_gnu_ld
9066
9067 old_CC=$CC
9068 old_CFLAGS=$CFLAGS
9069
9070 # Set sane defaults for various variables
9071 test -z "$CC" && CC=cc
9072 test -z "$LTCC" && LTCC=$CC
9073 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9074 test -z "$LD" && LD=ld
9075 test -z "$ac_objext" && ac_objext=o
9076
9077 func_cc_basename $compiler
9078 cc_basename=$func_cc_basename_result
9079
9080
9081 # Only perform the check for file, if the check method requires it
9082 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9083 case $deplibs_check_method in
9084 file_magic*)
9085 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9087 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9088 if test ${lt_cv_path_MAGIC_CMD+y}
9089 then :
9090 printf %s "(cached) " >&6
9091 else $as_nop
9092 case $MAGIC_CMD in
9093 [\\/*] | ?:[\\/]*)
9094 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9095 ;;
9096 *)
9097 lt_save_MAGIC_CMD=$MAGIC_CMD
9098 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9099 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9100 for ac_dir in $ac_dummy; do
9101 IFS=$lt_save_ifs
9102 test -z "$ac_dir" && ac_dir=.
9103 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9104 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9105 if test -n "$file_magic_test_file"; then
9106 case $deplibs_check_method in
9107 "file_magic "*)
9108 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9109 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9110 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9111 $EGREP "$file_magic_regex" > /dev/null; then
9112 :
9113 else
9114 cat <<_LT_EOF 1>&2
9115
9116 *** Warning: the command libtool uses to detect shared libraries,
9117 *** $file_magic_cmd, produces output that libtool cannot recognize.
9118 *** The result is that libtool may fail to recognize shared libraries
9119 *** as such. This will affect the creation of libtool libraries that
9120 *** depend on shared libraries, but programs linked with such libtool
9121 *** libraries will work regardless of this problem. Nevertheless, you
9122 *** may want to report the problem to your system manager and/or to
9123 *** [email protected]
9124
9125 _LT_EOF
9126 fi ;;
9127 esac
9128 fi
9129 break
9130 fi
9131 done
9132 IFS=$lt_save_ifs
9133 MAGIC_CMD=$lt_save_MAGIC_CMD
9134 ;;
9135 esac
9136 fi
9137
9138 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9139 if test -n "$MAGIC_CMD"; then
9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9141 printf "%s\n" "$MAGIC_CMD" >&6; }
9142 else
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 printf "%s\n" "no" >&6; }
9145 fi
9146
9147
9148
9149
9150
9151 if test -z "$lt_cv_path_MAGIC_CMD"; then
9152 if test -n "$ac_tool_prefix"; then
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9154 printf %s "checking for file... " >&6; }
9155 if test ${lt_cv_path_MAGIC_CMD+y}
9156 then :
9157 printf %s "(cached) " >&6
9158 else $as_nop
9159 case $MAGIC_CMD in
9160 [\\/*] | ?:[\\/]*)
9161 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9162 ;;
9163 *)
9164 lt_save_MAGIC_CMD=$MAGIC_CMD
9165 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9167 for ac_dir in $ac_dummy; do
9168 IFS=$lt_save_ifs
9169 test -z "$ac_dir" && ac_dir=.
9170 if test -f "$ac_dir/file"; then
9171 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9172 if test -n "$file_magic_test_file"; then
9173 case $deplibs_check_method in
9174 "file_magic "*)
9175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9176 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9178 $EGREP "$file_magic_regex" > /dev/null; then
9179 :
9180 else
9181 cat <<_LT_EOF 1>&2
9182
9183 *** Warning: the command libtool uses to detect shared libraries,
9184 *** $file_magic_cmd, produces output that libtool cannot recognize.
9185 *** The result is that libtool may fail to recognize shared libraries
9186 *** as such. This will affect the creation of libtool libraries that
9187 *** depend on shared libraries, but programs linked with such libtool
9188 *** libraries will work regardless of this problem. Nevertheless, you
9189 *** may want to report the problem to your system manager and/or to
9190 *** [email protected]
9191
9192 _LT_EOF
9193 fi ;;
9194 esac
9195 fi
9196 break
9197 fi
9198 done
9199 IFS=$lt_save_ifs
9200 MAGIC_CMD=$lt_save_MAGIC_CMD
9201 ;;
9202 esac
9203 fi
9204
9205 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9206 if test -n "$MAGIC_CMD"; then
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9208 printf "%s\n" "$MAGIC_CMD" >&6; }
9209 else
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 printf "%s\n" "no" >&6; }
9212 fi
9213
9214
9215 else
9216 MAGIC_CMD=:
9217 fi
9218 fi
9219
9220 fi
9221 ;;
9222 esac
9223
9224 # Use C for the default configuration in the libtool script
9225
9226 lt_save_CC=$CC
9227 ac_ext=c
9228 ac_cpp='$CPP $CPPFLAGS'
9229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9232
9233
9234 # Source file extension for C test sources.
9235 ac_ext=c
9236
9237 # Object file extension for compiled C test sources.
9238 objext=o
9239 objext=$objext
9240
9241 # Code to be used in simple compile tests
9242 lt_simple_compile_test_code="int some_variable = 0;"
9243
9244 # Code to be used in simple link tests
9245 lt_simple_link_test_code='int main(){return(0);}'
9246
9247
9248
9249
9250
9251
9252
9253 # If no C compiler was specified, use CC.
9254 LTCC=${LTCC-"$CC"}
9255
9256 # If no C compiler flags were specified, use CFLAGS.
9257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9258
9259 # Allow CC to be a program name with arguments.
9260 compiler=$CC
9261
9262 # Save the default compiler, since it gets overwritten when the other
9263 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9264 compiler_DEFAULT=$CC
9265
9266 # save warnings/boilerplate of simple test code
9267 ac_outfile=conftest.$ac_objext
9268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9270 _lt_compiler_boilerplate=`cat conftest.err`
9271 $RM conftest*
9272
9273 ac_outfile=conftest.$ac_objext
9274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9276 _lt_linker_boilerplate=`cat conftest.err`
9277 $RM -r conftest*
9278
9279
9280 ## CAVEAT EMPTOR:
9281 ## There is no encapsulation within the following macros, do not change
9282 ## the running order or otherwise move them around unless you know exactly
9283 ## what you are doing...
9284 if test -n "$compiler"; then
9285
9286 lt_prog_compiler_no_builtin_flag=
9287
9288 if test yes = "$GCC"; then
9289 case $cc_basename in
9290 nvcc*)
9291 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9292 *)
9293 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9294 esac
9295
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9297 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9298 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9299 then :
9300 printf %s "(cached) " >&6
9301 else $as_nop
9302 lt_cv_prog_compiler_rtti_exceptions=no
9303 ac_outfile=conftest.$ac_objext
9304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9305 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9306 # Insert the option either (1) after the last *FLAGS variable, or
9307 # (2) before a word containing "conftest.", or (3) at the end.
9308 # Note that $ac_compile itself does not contain backslashes and begins
9309 # with a dollar sign (not a hyphen), so the echo should work correctly.
9310 # The option is referenced via a variable to avoid confusing sed.
9311 lt_compile=`echo "$ac_compile" | $SED \
9312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9314 -e 's:$: $lt_compiler_flag:'`
9315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9316 (eval "$lt_compile" 2>conftest.err)
9317 ac_status=$?
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 if (exit $ac_status) && test -s "$ac_outfile"; then
9321 # The compiler can only warn and ignore the option if not recognized
9322 # So say no if there are warnings other than the usual output.
9323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9326 lt_cv_prog_compiler_rtti_exceptions=yes
9327 fi
9328 fi
9329 $RM conftest*
9330
9331 fi
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9333 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9334
9335 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9336 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9337 else
9338 :
9339 fi
9340
9341 fi
9342
9343
9344
9345
9346
9347
9348 lt_prog_compiler_wl=
9349 lt_prog_compiler_pic=
9350 lt_prog_compiler_static=
9351
9352
9353 if test yes = "$GCC"; then
9354 lt_prog_compiler_wl='-Wl,'
9355 lt_prog_compiler_static='-static'
9356
9357 case $host_os in
9358 aix*)
9359 # All AIX code is PIC.
9360 if test ia64 = "$host_cpu"; then
9361 # AIX 5 now supports IA64 processor
9362 lt_prog_compiler_static='-Bstatic'
9363 fi
9364 lt_prog_compiler_pic='-fPIC'
9365 ;;
9366
9367 amigaos*)
9368 case $host_cpu in
9369 powerpc)
9370 # see comment about AmigaOS4 .so support
9371 lt_prog_compiler_pic='-fPIC'
9372 ;;
9373 m68k)
9374 # FIXME: we need at least 68020 code to build shared libraries, but
9375 # adding the '-m68020' flag to GCC prevents building anything better,
9376 # like '-m68040'.
9377 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9378 ;;
9379 esac
9380 ;;
9381
9382 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9383 # PIC is the default for these OSes.
9384 ;;
9385
9386 mingw* | cygwin* | pw32* | os2* | cegcc*)
9387 # This hack is so that the source file can tell whether it is being
9388 # built for inclusion in a dll (and should export symbols for example).
9389 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9390 # (--disable-auto-import) libraries
9391 lt_prog_compiler_pic='-DDLL_EXPORT'
9392 case $host_os in
9393 os2*)
9394 lt_prog_compiler_static='$wl-static'
9395 ;;
9396 esac
9397 ;;
9398
9399 darwin* | rhapsody*)
9400 # PIC is the default on this platform
9401 # Common symbols not allowed in MH_DYLIB files
9402 lt_prog_compiler_pic='-fno-common'
9403 ;;
9404
9405 haiku*)
9406 # PIC is the default for Haiku.
9407 # The "-static" flag exists, but is broken.
9408 lt_prog_compiler_static=
9409 ;;
9410
9411 hpux*)
9412 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9413 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9414 # sets the default TLS model and affects inlining.
9415 case $host_cpu in
9416 hppa*64*)
9417 # +Z the default
9418 ;;
9419 *)
9420 lt_prog_compiler_pic='-fPIC'
9421 ;;
9422 esac
9423 ;;
9424
9425 interix[3-9]*)
9426 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9427 # Instead, we relocate shared libraries at runtime.
9428 ;;
9429
9430 msdosdjgpp*)
9431 # Just because we use GCC doesn't mean we suddenly get shared libraries
9432 # on systems that don't support them.
9433 lt_prog_compiler_can_build_shared=no
9434 enable_shared=no
9435 ;;
9436
9437 *nto* | *qnx*)
9438 # QNX uses GNU C++, but need to define -shared option too, otherwise
9439 # it will coredump.
9440 lt_prog_compiler_pic='-fPIC -shared'
9441 ;;
9442
9443 sysv4*MP*)
9444 if test -d /usr/nec; then
9445 lt_prog_compiler_pic=-Kconform_pic
9446 fi
9447 ;;
9448
9449 *)
9450 lt_prog_compiler_pic='-fPIC'
9451 ;;
9452 esac
9453
9454 case $cc_basename in
9455 nvcc*) # Cuda Compiler Driver 2.2
9456 lt_prog_compiler_wl='-Xlinker '
9457 if test -n "$lt_prog_compiler_pic"; then
9458 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9459 fi
9460 ;;
9461 esac
9462 else
9463 # PORTME Check for flag to pass linker flags through the system compiler.
9464 case $host_os in
9465 aix*)
9466 lt_prog_compiler_wl='-Wl,'
9467 if test ia64 = "$host_cpu"; then
9468 # AIX 5 now supports IA64 processor
9469 lt_prog_compiler_static='-Bstatic'
9470 else
9471 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9472 fi
9473 ;;
9474
9475 darwin* | rhapsody*)
9476 # PIC is the default on this platform
9477 # Common symbols not allowed in MH_DYLIB files
9478 lt_prog_compiler_pic='-fno-common'
9479 case $cc_basename in
9480 nagfor*)
9481 # NAG Fortran compiler
9482 lt_prog_compiler_wl='-Wl,-Wl,,'
9483 lt_prog_compiler_pic='-PIC'
9484 lt_prog_compiler_static='-Bstatic'
9485 ;;
9486 esac
9487 ;;
9488
9489 mingw* | cygwin* | pw32* | os2* | cegcc*)
9490 # This hack is so that the source file can tell whether it is being
9491 # built for inclusion in a dll (and should export symbols for example).
9492 lt_prog_compiler_pic='-DDLL_EXPORT'
9493 case $host_os in
9494 os2*)
9495 lt_prog_compiler_static='$wl-static'
9496 ;;
9497 esac
9498 ;;
9499
9500 hpux9* | hpux10* | hpux11*)
9501 lt_prog_compiler_wl='-Wl,'
9502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9503 # not for PA HP-UX.
9504 case $host_cpu in
9505 hppa*64*|ia64*)
9506 # +Z the default
9507 ;;
9508 *)
9509 lt_prog_compiler_pic='+Z'
9510 ;;
9511 esac
9512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9513 lt_prog_compiler_static='$wl-a ${wl}archive'
9514 ;;
9515
9516 irix5* | irix6* | nonstopux*)
9517 lt_prog_compiler_wl='-Wl,'
9518 # PIC (with -KPIC) is the default.
9519 lt_prog_compiler_static='-non_shared'
9520 ;;
9521
9522 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9523 case $cc_basename in
9524 # old Intel for x86_64, which still supported -KPIC.
9525 ecc*)
9526 lt_prog_compiler_wl='-Wl,'
9527 lt_prog_compiler_pic='-KPIC'
9528 lt_prog_compiler_static='-static'
9529 ;;
9530 # flang / f18. f95 an alias for gfortran or flang on Debian
9531 flang* | f18* | f95*)
9532 lt_prog_compiler_wl='-Wl,'
9533 lt_prog_compiler_pic='-fPIC'
9534 lt_prog_compiler_static='-static'
9535 ;;
9536 # icc used to be incompatible with GCC.
9537 # ICC 10 doesn't accept -KPIC any more.
9538 icc* | ifort*)
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_pic='-fPIC'
9541 lt_prog_compiler_static='-static'
9542 ;;
9543 # Lahey Fortran 8.1.
9544 lf95*)
9545 lt_prog_compiler_wl='-Wl,'
9546 lt_prog_compiler_pic='--shared'
9547 lt_prog_compiler_static='--static'
9548 ;;
9549 nagfor*)
9550 # NAG Fortran compiler
9551 lt_prog_compiler_wl='-Wl,-Wl,,'
9552 lt_prog_compiler_pic='-PIC'
9553 lt_prog_compiler_static='-Bstatic'
9554 ;;
9555 tcc*)
9556 # Fabrice Bellard et al's Tiny C Compiler
9557 lt_prog_compiler_wl='-Wl,'
9558 lt_prog_compiler_pic='-fPIC'
9559 lt_prog_compiler_static='-static'
9560 ;;
9561 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9562 # Portland Group compilers (*not* the Pentium gcc compiler,
9563 # which looks to be a dead project)
9564 lt_prog_compiler_wl='-Wl,'
9565 lt_prog_compiler_pic='-fpic'
9566 lt_prog_compiler_static='-Bstatic'
9567 ;;
9568 ccc*)
9569 lt_prog_compiler_wl='-Wl,'
9570 # All Alpha code is PIC.
9571 lt_prog_compiler_static='-non_shared'
9572 ;;
9573 xl* | bgxl* | bgf* | mpixl*)
9574 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9575 lt_prog_compiler_wl='-Wl,'
9576 lt_prog_compiler_pic='-qpic'
9577 lt_prog_compiler_static='-qstaticlink'
9578 ;;
9579 *)
9580 case `$CC -V 2>&1 | $SED 5q` in
9581 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9582 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9583 lt_prog_compiler_pic='-KPIC'
9584 lt_prog_compiler_static='-Bstatic'
9585 lt_prog_compiler_wl=''
9586 ;;
9587 *Sun\ F* | *Sun*Fortran*)
9588 lt_prog_compiler_pic='-KPIC'
9589 lt_prog_compiler_static='-Bstatic'
9590 lt_prog_compiler_wl='-Qoption ld '
9591 ;;
9592 *Sun\ C*)
9593 # Sun C 5.9
9594 lt_prog_compiler_pic='-KPIC'
9595 lt_prog_compiler_static='-Bstatic'
9596 lt_prog_compiler_wl='-Wl,'
9597 ;;
9598 *Intel*\ [CF]*Compiler*)
9599 lt_prog_compiler_wl='-Wl,'
9600 lt_prog_compiler_pic='-fPIC'
9601 lt_prog_compiler_static='-static'
9602 ;;
9603 *Portland\ Group*)
9604 lt_prog_compiler_wl='-Wl,'
9605 lt_prog_compiler_pic='-fpic'
9606 lt_prog_compiler_static='-Bstatic'
9607 ;;
9608 esac
9609 ;;
9610 esac
9611 ;;
9612
9613 newsos6)
9614 lt_prog_compiler_pic='-KPIC'
9615 lt_prog_compiler_static='-Bstatic'
9616 ;;
9617
9618 *nto* | *qnx*)
9619 # QNX uses GNU C++, but need to define -shared option too, otherwise
9620 # it will coredump.
9621 lt_prog_compiler_pic='-fPIC -shared'
9622 ;;
9623
9624 osf3* | osf4* | osf5*)
9625 lt_prog_compiler_wl='-Wl,'
9626 # All OSF/1 code is PIC.
9627 lt_prog_compiler_static='-non_shared'
9628 ;;
9629
9630 rdos*)
9631 lt_prog_compiler_static='-non_shared'
9632 ;;
9633
9634 solaris*)
9635 lt_prog_compiler_pic='-KPIC'
9636 lt_prog_compiler_static='-Bstatic'
9637 case $cc_basename in
9638 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9639 lt_prog_compiler_wl='-Qoption ld ';;
9640 *)
9641 lt_prog_compiler_wl='-Wl,';;
9642 esac
9643 ;;
9644
9645 sunos4*)
9646 lt_prog_compiler_wl='-Qoption ld '
9647 lt_prog_compiler_pic='-PIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 ;;
9650
9651 sysv4 | sysv4.2uw2* | sysv4.3*)
9652 lt_prog_compiler_wl='-Wl,'
9653 lt_prog_compiler_pic='-KPIC'
9654 lt_prog_compiler_static='-Bstatic'
9655 ;;
9656
9657 sysv4*MP*)
9658 if test -d /usr/nec; then
9659 lt_prog_compiler_pic='-Kconform_pic'
9660 lt_prog_compiler_static='-Bstatic'
9661 fi
9662 ;;
9663
9664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9665 lt_prog_compiler_wl='-Wl,'
9666 lt_prog_compiler_pic='-KPIC'
9667 lt_prog_compiler_static='-Bstatic'
9668 ;;
9669
9670 unicos*)
9671 lt_prog_compiler_wl='-Wl,'
9672 lt_prog_compiler_can_build_shared=no
9673 ;;
9674
9675 uts4*)
9676 lt_prog_compiler_pic='-pic'
9677 lt_prog_compiler_static='-Bstatic'
9678 ;;
9679
9680 *)
9681 lt_prog_compiler_can_build_shared=no
9682 ;;
9683 esac
9684 fi
9685
9686 case $host_os in
9687 # For platforms that do not support PIC, -DPIC is meaningless:
9688 *djgpp*)
9689 lt_prog_compiler_pic=
9690 ;;
9691 *)
9692 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9693 ;;
9694 esac
9695
9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9697 printf %s "checking for $compiler option to produce PIC... " >&6; }
9698 if test ${lt_cv_prog_compiler_pic+y}
9699 then :
9700 printf %s "(cached) " >&6
9701 else $as_nop
9702 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9703 fi
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9705 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9706 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9707
9708 #
9709 # Check to make sure the PIC flag actually works.
9710 #
9711 if test -n "$lt_prog_compiler_pic"; then
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9713 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9714 if test ${lt_cv_prog_compiler_pic_works+y}
9715 then :
9716 printf %s "(cached) " >&6
9717 else $as_nop
9718 lt_cv_prog_compiler_pic_works=no
9719 ac_outfile=conftest.$ac_objext
9720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9721 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9722 # Insert the option either (1) after the last *FLAGS variable, or
9723 # (2) before a word containing "conftest.", or (3) at the end.
9724 # Note that $ac_compile itself does not contain backslashes and begins
9725 # with a dollar sign (not a hyphen), so the echo should work correctly.
9726 # The option is referenced via a variable to avoid confusing sed.
9727 lt_compile=`echo "$ac_compile" | $SED \
9728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9730 -e 's:$: $lt_compiler_flag:'`
9731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9732 (eval "$lt_compile" 2>conftest.err)
9733 ac_status=$?
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 if (exit $ac_status) && test -s "$ac_outfile"; then
9737 # The compiler can only warn and ignore the option if not recognized
9738 # So say no if there are warnings other than the usual output.
9739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9742 lt_cv_prog_compiler_pic_works=yes
9743 fi
9744 fi
9745 $RM conftest*
9746
9747 fi
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9749 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9750
9751 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9752 case $lt_prog_compiler_pic in
9753 "" | " "*) ;;
9754 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9755 esac
9756 else
9757 lt_prog_compiler_pic=
9758 lt_prog_compiler_can_build_shared=no
9759 fi
9760
9761 fi
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773 #
9774 # Check to make sure the static flag actually works.
9775 #
9776 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9778 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9779 if test ${lt_cv_prog_compiler_static_works+y}
9780 then :
9781 printf %s "(cached) " >&6
9782 else $as_nop
9783 lt_cv_prog_compiler_static_works=no
9784 save_LDFLAGS=$LDFLAGS
9785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9788 # The linker can only warn and ignore the option if not recognized
9789 # So say no if there are warnings
9790 if test -s conftest.err; then
9791 # Append any errors to the config.log.
9792 cat conftest.err 1>&5
9793 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9795 if diff conftest.exp conftest.er2 >/dev/null; then
9796 lt_cv_prog_compiler_static_works=yes
9797 fi
9798 else
9799 lt_cv_prog_compiler_static_works=yes
9800 fi
9801 fi
9802 $RM -r conftest*
9803 LDFLAGS=$save_LDFLAGS
9804
9805 fi
9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9807 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9808
9809 if test yes = "$lt_cv_prog_compiler_static_works"; then
9810 :
9811 else
9812 lt_prog_compiler_static=
9813 fi
9814
9815
9816
9817
9818
9819
9820
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9822 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9823 if test ${lt_cv_prog_compiler_c_o+y}
9824 then :
9825 printf %s "(cached) " >&6
9826 else $as_nop
9827 lt_cv_prog_compiler_c_o=no
9828 $RM -r conftest 2>/dev/null
9829 mkdir conftest
9830 cd conftest
9831 mkdir out
9832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9833
9834 lt_compiler_flag="-o out/conftest2.$ac_objext"
9835 # Insert the option either (1) after the last *FLAGS variable, or
9836 # (2) before a word containing "conftest.", or (3) at the end.
9837 # Note that $ac_compile itself does not contain backslashes and begins
9838 # with a dollar sign (not a hyphen), so the echo should work correctly.
9839 lt_compile=`echo "$ac_compile" | $SED \
9840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9842 -e 's:$: $lt_compiler_flag:'`
9843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9844 (eval "$lt_compile" 2>out/conftest.err)
9845 ac_status=$?
9846 cat out/conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9849 then
9850 # The compiler can only warn and ignore the option if not recognized
9851 # So say no if there are warnings
9852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9855 lt_cv_prog_compiler_c_o=yes
9856 fi
9857 fi
9858 chmod u+w . 2>&5
9859 $RM conftest*
9860 # SGI C++ compiler will create directory out/ii_files/ for
9861 # template instantiation
9862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9863 $RM out/* && rmdir out
9864 cd ..
9865 $RM -r conftest
9866 $RM conftest*
9867
9868 fi
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9870 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9871
9872
9873
9874
9875
9876
9877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9878 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9879 if test ${lt_cv_prog_compiler_c_o+y}
9880 then :
9881 printf %s "(cached) " >&6
9882 else $as_nop
9883 lt_cv_prog_compiler_c_o=no
9884 $RM -r conftest 2>/dev/null
9885 mkdir conftest
9886 cd conftest
9887 mkdir out
9888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9889
9890 lt_compiler_flag="-o out/conftest2.$ac_objext"
9891 # Insert the option either (1) after the last *FLAGS variable, or
9892 # (2) before a word containing "conftest.", or (3) at the end.
9893 # Note that $ac_compile itself does not contain backslashes and begins
9894 # with a dollar sign (not a hyphen), so the echo should work correctly.
9895 lt_compile=`echo "$ac_compile" | $SED \
9896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9898 -e 's:$: $lt_compiler_flag:'`
9899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9900 (eval "$lt_compile" 2>out/conftest.err)
9901 ac_status=$?
9902 cat out/conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9905 then
9906 # The compiler can only warn and ignore the option if not recognized
9907 # So say no if there are warnings
9908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9911 lt_cv_prog_compiler_c_o=yes
9912 fi
9913 fi
9914 chmod u+w . 2>&5
9915 $RM conftest*
9916 # SGI C++ compiler will create directory out/ii_files/ for
9917 # template instantiation
9918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9919 $RM out/* && rmdir out
9920 cd ..
9921 $RM -r conftest
9922 $RM conftest*
9923
9924 fi
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9926 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9927
9928
9929
9930
9931 hard_links=nottested
9932 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9933 # do not overwrite the value of need_locks provided by the user
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9935 printf %s "checking if we can lock with hard links... " >&6; }
9936 hard_links=yes
9937 $RM conftest*
9938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9939 touch conftest.a
9940 ln conftest.a conftest.b 2>&5 || hard_links=no
9941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9943 printf "%s\n" "$hard_links" >&6; }
9944 if test no = "$hard_links"; then
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9946 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9947 need_locks=warn
9948 fi
9949 else
9950 need_locks=no
9951 fi
9952
9953
9954
9955
9956
9957
9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9959 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9960
9961 runpath_var=
9962 allow_undefined_flag=
9963 always_export_symbols=no
9964 archive_cmds=
9965 archive_expsym_cmds=
9966 compiler_needs_object=no
9967 enable_shared_with_static_runtimes=no
9968 export_dynamic_flag_spec=
9969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9970 hardcode_automatic=no
9971 hardcode_direct=no
9972 hardcode_direct_absolute=no
9973 hardcode_libdir_flag_spec=
9974 hardcode_libdir_separator=
9975 hardcode_minus_L=no
9976 hardcode_shlibpath_var=unsupported
9977 inherit_rpath=no
9978 link_all_deplibs=unknown
9979 module_cmds=
9980 module_expsym_cmds=
9981 old_archive_from_new_cmds=
9982 old_archive_from_expsyms_cmds=
9983 thread_safe_flag_spec=
9984 whole_archive_flag_spec=
9985 # include_expsyms should be a list of space-separated symbols to be *always*
9986 # included in the symbol list
9987 include_expsyms=
9988 # exclude_expsyms can be an extended regexp of symbols to exclude
9989 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9990 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9991 # as well as any symbol that contains 'd'.
9992 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9993 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9994 # platforms (ab)use it in PIC code, but their linkers get confused if
9995 # the symbol is explicitly referenced. Since portable code cannot
9996 # rely on this symbol name, it's probably fine to never include it in
9997 # preloaded symbol tables.
9998 # Exclude shared library initialization/finalization symbols.
9999 extract_expsyms_cmds=
10000
10001 case $host_os in
10002 cygwin* | mingw* | pw32* | cegcc*)
10003 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10004 # When not using gcc, we currently assume that we are using
10005 # Microsoft Visual C++ or Intel C++ Compiler.
10006 if test yes != "$GCC"; then
10007 with_gnu_ld=no
10008 fi
10009 ;;
10010 interix*)
10011 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10012 with_gnu_ld=yes
10013 ;;
10014 openbsd* | bitrig*)
10015 with_gnu_ld=no
10016 ;;
10017 linux* | k*bsd*-gnu | gnu*)
10018 link_all_deplibs=no
10019 ;;
10020 esac
10021
10022 ld_shlibs=yes
10023
10024 # On some targets, GNU ld is compatible enough with the native linker
10025 # that we're better off using the native interface for both.
10026 lt_use_gnu_ld_interface=no
10027 if test yes = "$with_gnu_ld"; then
10028 case $host_os in
10029 aix*)
10030 # The AIX port of GNU ld has always aspired to compatibility
10031 # with the native linker. However, as the warning in the GNU ld
10032 # block says, versions before 2.19.5* couldn't really create working
10033 # shared libraries, regardless of the interface used.
10034 case `$LD -v 2>&1` in
10035 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10036 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10037 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10038 *)
10039 lt_use_gnu_ld_interface=yes
10040 ;;
10041 esac
10042 ;;
10043 *)
10044 lt_use_gnu_ld_interface=yes
10045 ;;
10046 esac
10047 fi
10048
10049 if test yes = "$lt_use_gnu_ld_interface"; then
10050 # If archive_cmds runs LD, not CC, wlarc should be empty
10051 wlarc='$wl'
10052
10053 # Set some defaults for GNU ld with shared library support. These
10054 # are reset later if shared libraries are not supported. Putting them
10055 # here allows them to be overridden if necessary.
10056 runpath_var=LD_RUN_PATH
10057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10058 export_dynamic_flag_spec='$wl--export-dynamic'
10059 # ancient GNU ld didn't support --whole-archive et. al.
10060 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10061 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10062 else
10063 whole_archive_flag_spec=
10064 fi
10065 supports_anon_versioning=no
10066 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10067 *GNU\ gold*) supports_anon_versioning=yes ;;
10068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10071 *\ 2.11.*) ;; # other 2.11 versions
10072 *) supports_anon_versioning=yes ;;
10073 esac
10074
10075 # See if GNU ld supports shared libraries.
10076 case $host_os in
10077 aix[3-9]*)
10078 # On AIX/PPC, the GNU linker is very broken
10079 if test ia64 != "$host_cpu"; then
10080 ld_shlibs=no
10081 cat <<_LT_EOF 1>&2
10082
10083 *** Warning: the GNU linker, at least up to release 2.19, is reported
10084 *** to be unable to reliably create shared libraries on AIX.
10085 *** Therefore, libtool is disabling shared libraries support. If you
10086 *** really care for shared libraries, you may want to install binutils
10087 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10088 *** You will then need to restart the configuration process.
10089
10090 _LT_EOF
10091 fi
10092 ;;
10093
10094 amigaos*)
10095 case $host_cpu in
10096 powerpc)
10097 # see comment about AmigaOS4 .so support
10098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10099 archive_expsym_cmds=''
10100 ;;
10101 m68k)
10102 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)'
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_minus_L=yes
10105 ;;
10106 esac
10107 ;;
10108
10109 beos*)
10110 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10111 allow_undefined_flag=unsupported
10112 # Joseph Beckenbach <[email protected]> says some releases of gcc
10113 # support --undefined. This deserves some investigation. FIXME
10114 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10115 else
10116 ld_shlibs=no
10117 fi
10118 ;;
10119
10120 cygwin* | mingw* | pw32* | cegcc*)
10121 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10122 # as there is no search path for DLLs.
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 export_dynamic_flag_spec='$wl--export-all-symbols'
10125 allow_undefined_flag=unsupported
10126 always_export_symbols=no
10127 enable_shared_with_static_runtimes=yes
10128 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'
10129 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10130
10131 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10133 # If the export-symbols file already is a .def file, use it as
10134 # is; otherwise, prepend EXPORTS...
10135 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10136 cp $export_symbols $output_objdir/$soname.def;
10137 else
10138 echo EXPORTS > $output_objdir/$soname.def;
10139 cat $export_symbols >> $output_objdir/$soname.def;
10140 fi~
10141 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10142 else
10143 ld_shlibs=no
10144 fi
10145 ;;
10146
10147 haiku*)
10148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10149 link_all_deplibs=yes
10150 ;;
10151
10152 os2*)
10153 hardcode_libdir_flag_spec='-L$libdir'
10154 hardcode_minus_L=yes
10155 allow_undefined_flag=unsupported
10156 shrext_cmds=.dll
10157 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10160 $ECHO EXPORTS >> $output_objdir/$libname.def~
10161 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10162 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10163 emximp -o $lib $output_objdir/$libname.def'
10164 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10165 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10166 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10167 $ECHO EXPORTS >> $output_objdir/$libname.def~
10168 prefix_cmds="$SED"~
10169 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10170 prefix_cmds="$prefix_cmds -e 1d";
10171 fi~
10172 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10173 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10175 emximp -o $lib $output_objdir/$libname.def'
10176 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10177 enable_shared_with_static_runtimes=yes
10178 file_list_spec='@'
10179 ;;
10180
10181 interix[3-9]*)
10182 hardcode_direct=no
10183 hardcode_shlibpath_var=no
10184 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10185 export_dynamic_flag_spec='$wl-E'
10186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10187 # Instead, shared libraries are loaded at an image base (0x10000000 by
10188 # default) and relocated if they conflict, which is a slow very memory
10189 # consuming and fragmenting process. To avoid this, we pick a random,
10190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10193 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10194 ;;
10195
10196 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10197 tmp_diet=no
10198 if test linux-dietlibc = "$host_os"; then
10199 case $cc_basename in
10200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10201 esac
10202 fi
10203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10204 && test no = "$tmp_diet"
10205 then
10206 tmp_addflag=' $pic_flag'
10207 tmp_sharedflag='-shared'
10208 case $cc_basename,$host_cpu in
10209 pgcc*) # Portland Group C compiler
10210 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10211 tmp_addflag=' $pic_flag'
10212 ;;
10213 pgf77* | pgf90* | pgf95* | pgfortran*)
10214 # Portland Group f77 and f90 compilers
10215 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10216 tmp_addflag=' $pic_flag -Mnomain' ;;
10217 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10218 tmp_addflag=' -i_dynamic' ;;
10219 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10220 tmp_addflag=' -i_dynamic -nofor_main' ;;
10221 ifc* | ifort*) # Intel Fortran compiler
10222 tmp_addflag=' -nofor_main' ;;
10223 lf95*) # Lahey Fortran 8.1
10224 whole_archive_flag_spec=
10225 tmp_sharedflag='--shared' ;;
10226 nagfor*) # NAGFOR 5.3
10227 tmp_sharedflag='-Wl,-shared' ;;
10228 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10229 tmp_sharedflag='-qmkshrobj'
10230 tmp_addflag= ;;
10231 nvcc*) # Cuda Compiler Driver 2.2
10232 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'
10233 compiler_needs_object=yes
10234 ;;
10235 esac
10236 case `$CC -V 2>&1 | $SED 5q` in
10237 *Sun\ C*) # Sun C 5.9
10238 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'
10239 compiler_needs_object=yes
10240 tmp_sharedflag='-G' ;;
10241 *Sun\ F*) # Sun Fortran 8.3
10242 tmp_sharedflag='-G' ;;
10243 esac
10244 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10245
10246 if test yes = "$supports_anon_versioning"; then
10247 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10248 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10249 echo "local: *; };" >> $output_objdir/$libname.ver~
10250 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10251 fi
10252
10253 case $cc_basename in
10254 tcc*)
10255 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10256 export_dynamic_flag_spec='-rdynamic'
10257 ;;
10258 xlf* | bgf* | bgxlf* | mpixlf*)
10259 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10260 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10261 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10262 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10263 if test yes = "$supports_anon_versioning"; then
10264 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10265 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10266 echo "local: *; };" >> $output_objdir/$libname.ver~
10267 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10268 fi
10269 ;;
10270 esac
10271 else
10272 ld_shlibs=no
10273 fi
10274 ;;
10275
10276 netbsd* | netbsdelf*-gnu)
10277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10278 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10279 wlarc=
10280 else
10281 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10282 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10283 fi
10284 ;;
10285
10286 solaris*)
10287 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10288 ld_shlibs=no
10289 cat <<_LT_EOF 1>&2
10290
10291 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10292 *** create shared libraries on Solaris systems. Therefore, libtool
10293 *** is disabling shared libraries support. We urge you to upgrade GNU
10294 *** binutils to release 2.9.1 or newer. Another option is to modify
10295 *** your PATH or compiler configuration so that the native linker is
10296 *** used, and then restart.
10297
10298 _LT_EOF
10299 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10300 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10301 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10302 else
10303 ld_shlibs=no
10304 fi
10305 ;;
10306
10307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10308 case `$LD -v 2>&1` in
10309 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10310 ld_shlibs=no
10311 cat <<_LT_EOF 1>&2
10312
10313 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10314 *** reliably create shared libraries on SCO systems. Therefore, libtool
10315 *** is disabling shared libraries support. We urge you to upgrade GNU
10316 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10317 *** your PATH or compiler configuration so that the native linker is
10318 *** used, and then restart.
10319
10320 _LT_EOF
10321 ;;
10322 *)
10323 # For security reasons, it is highly recommended that you always
10324 # use absolute paths for naming shared libraries, and exclude the
10325 # DT_RUNPATH tag from executables and libraries. But doing so
10326 # requires that you compile everything twice, which is a pain.
10327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10328 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10330 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10331 else
10332 ld_shlibs=no
10333 fi
10334 ;;
10335 esac
10336 ;;
10337
10338 sunos4*)
10339 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10340 wlarc=
10341 hardcode_direct=yes
10342 hardcode_shlibpath_var=no
10343 ;;
10344
10345 *)
10346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10347 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10348 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10349 else
10350 ld_shlibs=no
10351 fi
10352 ;;
10353 esac
10354
10355 if test no = "$ld_shlibs"; then
10356 runpath_var=
10357 hardcode_libdir_flag_spec=
10358 export_dynamic_flag_spec=
10359 whole_archive_flag_spec=
10360 fi
10361 else
10362 # PORTME fill in a description of your system's linker (not GNU ld)
10363 case $host_os in
10364 aix3*)
10365 allow_undefined_flag=unsupported
10366 always_export_symbols=yes
10367 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'
10368 # Note: this linker hardcodes the directories in LIBPATH if there
10369 # are no directories specified by -L.
10370 hardcode_minus_L=yes
10371 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10372 # Neither direct hardcoding nor static linking is supported with a
10373 # broken collect2.
10374 hardcode_direct=unsupported
10375 fi
10376 ;;
10377
10378 aix[4-9]*)
10379 if test ia64 = "$host_cpu"; then
10380 # On IA64, the linker does run time linking by default, so we don't
10381 # have to do anything special.
10382 aix_use_runtimelinking=no
10383 exp_sym_flag='-Bexport'
10384 no_entry_flag=
10385 else
10386 # If we're using GNU nm, then we don't want the "-C" option.
10387 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10388 # Without the "-l" option, or with the "-B" option, AIX nm treats
10389 # weak defined symbols like other global defined symbols, whereas
10390 # GNU nm marks them as "W".
10391 # While the 'weak' keyword is ignored in the Export File, we need
10392 # it in the Import File for the 'aix-soname' feature, so we have
10393 # to replace the "-B" option with "-P" for AIX nm.
10394 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10395 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'
10396 else
10397 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 == "L") || (\$ 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'
10398 fi
10399 aix_use_runtimelinking=no
10400
10401 # Test if we are trying to use run time linking or normal
10402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10403 # have runtime linking enabled, and use it for executables.
10404 # For shared libraries, we enable/disable runtime linking
10405 # depending on the kind of the shared library created -
10406 # when "with_aix_soname,aix_use_runtimelinking" is:
10407 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10408 # "aix,yes" lib.so shared, rtl:yes, for executables
10409 # lib.a static archive
10410 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10411 # lib.a(lib.so.V) shared, rtl:no, for executables
10412 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10413 # lib.a(lib.so.V) shared, rtl:no
10414 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10415 # lib.a static archive
10416 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10417 for ld_flag in $LDFLAGS; do
10418 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10419 aix_use_runtimelinking=yes
10420 break
10421 fi
10422 done
10423 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10424 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10425 # so we don't have lib.a shared libs to link our executables.
10426 # We have to force runtime linking in this case.
10427 aix_use_runtimelinking=yes
10428 LDFLAGS="$LDFLAGS -Wl,-brtl"
10429 fi
10430 ;;
10431 esac
10432
10433 exp_sym_flag='-bexport'
10434 no_entry_flag='-bnoentry'
10435 fi
10436
10437 # When large executables or shared objects are built, AIX ld can
10438 # have problems creating the table of contents. If linking a library
10439 # or program results in "error TOC overflow" add -mminimal-toc to
10440 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10441 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10442
10443 archive_cmds=''
10444 hardcode_direct=yes
10445 hardcode_direct_absolute=yes
10446 hardcode_libdir_separator=':'
10447 link_all_deplibs=yes
10448 file_list_spec='$wl-f,'
10449 case $with_aix_soname,$aix_use_runtimelinking in
10450 aix,*) ;; # traditional, no import file
10451 svr4,* | *,yes) # use import file
10452 # The Import File defines what to hardcode.
10453 hardcode_direct=no
10454 hardcode_direct_absolute=no
10455 ;;
10456 esac
10457
10458 if test yes = "$GCC"; then
10459 case $host_os in aix4.[012]|aix4.[012].*)
10460 # We only want to do this on AIX 4.2 and lower, the check
10461 # below for broken collect2 doesn't work under 4.3+
10462 collect2name=`$CC -print-prog-name=collect2`
10463 if test -f "$collect2name" &&
10464 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10465 then
10466 # We have reworked collect2
10467 :
10468 else
10469 # We have old collect2
10470 hardcode_direct=unsupported
10471 # It fails to find uninstalled libraries when the uninstalled
10472 # path is not listed in the libpath. Setting hardcode_minus_L
10473 # to unsupported forces relinking
10474 hardcode_minus_L=yes
10475 hardcode_libdir_flag_spec='-L$libdir'
10476 hardcode_libdir_separator=
10477 fi
10478 ;;
10479 esac
10480 shared_flag='-shared'
10481 if test yes = "$aix_use_runtimelinking"; then
10482 shared_flag="$shared_flag "'$wl-G'
10483 fi
10484 # Need to ensure runtime linking is disabled for the traditional
10485 # shared library, or the linker may eventually find shared libraries
10486 # /with/ Import File - we do not want to mix them.
10487 shared_flag_aix='-shared'
10488 shared_flag_svr4='-shared $wl-G'
10489 else
10490 # not using gcc
10491 if test ia64 = "$host_cpu"; then
10492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10493 # chokes on -Wl,-G. The following line is correct:
10494 shared_flag='-G'
10495 else
10496 if test yes = "$aix_use_runtimelinking"; then
10497 shared_flag='$wl-G'
10498 else
10499 shared_flag='$wl-bM:SRE'
10500 fi
10501 shared_flag_aix='$wl-bM:SRE'
10502 shared_flag_svr4='$wl-G'
10503 fi
10504 fi
10505
10506 export_dynamic_flag_spec='$wl-bexpall'
10507 # It seems that -bexpall does not export symbols beginning with
10508 # underscore (_), so it is better to generate a list of symbols to export.
10509 always_export_symbols=yes
10510 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10511 # Warning - without using the other runtime loading flags (-brtl),
10512 # -berok will link without error, but may produce a broken library.
10513 allow_undefined_flag='-berok'
10514 # Determine the default libpath from the value encoded in an
10515 # empty executable.
10516 if test set = "${lt_cv_aix_libpath+set}"; then
10517 aix_libpath=$lt_cv_aix_libpath
10518 else
10519 if test ${lt_cv_aix_libpath_+y}
10520 then :
10521 printf %s "(cached) " >&6
10522 else $as_nop
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525
10526 int
10527 main (void)
10528 {
10529
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 if ac_fn_c_try_link "$LINENO"
10535 then :
10536
10537 lt_aix_libpath_sed='
10538 /Import File Strings/,/^$/ {
10539 /^0/ {
10540 s/^0 *\([^ ]*\) *$/\1/
10541 p
10542 }
10543 }'
10544 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$lt_cv_aix_libpath_"; then
10547 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 fi
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10551 conftest$ac_exeext conftest.$ac_ext
10552 if test -z "$lt_cv_aix_libpath_"; then
10553 lt_cv_aix_libpath_=/usr/lib:/lib
10554 fi
10555
10556 fi
10557
10558 aix_libpath=$lt_cv_aix_libpath_
10559 fi
10560
10561 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10562 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
10563 else
10564 if test ia64 = "$host_cpu"; then
10565 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10566 allow_undefined_flag="-z nodefs"
10567 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"
10568 else
10569 # Determine the default libpath from the value encoded in an
10570 # empty executable.
10571 if test set = "${lt_cv_aix_libpath+set}"; then
10572 aix_libpath=$lt_cv_aix_libpath
10573 else
10574 if test ${lt_cv_aix_libpath_+y}
10575 then :
10576 printf %s "(cached) " >&6
10577 else $as_nop
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580
10581 int
10582 main (void)
10583 {
10584
10585 ;
10586 return 0;
10587 }
10588 _ACEOF
10589 if ac_fn_c_try_link "$LINENO"
10590 then :
10591
10592 lt_aix_libpath_sed='
10593 /Import File Strings/,/^$/ {
10594 /^0/ {
10595 s/^0 *\([^ ]*\) *$/\1/
10596 p
10597 }
10598 }'
10599 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10600 # Check for a 64-bit object if we didn't find anything.
10601 if test -z "$lt_cv_aix_libpath_"; then
10602 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10603 fi
10604 fi
10605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10606 conftest$ac_exeext conftest.$ac_ext
10607 if test -z "$lt_cv_aix_libpath_"; then
10608 lt_cv_aix_libpath_=/usr/lib:/lib
10609 fi
10610
10611 fi
10612
10613 aix_libpath=$lt_cv_aix_libpath_
10614 fi
10615
10616 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10617 # Warning - without using the other run time loading flags,
10618 # -berok will link without error, but may produce a broken library.
10619 no_undefined_flag=' $wl-bernotok'
10620 allow_undefined_flag=' $wl-berok'
10621 if test yes = "$with_gnu_ld"; then
10622 # We only use this code for GNU lds that support --whole-archive.
10623 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10624 else
10625 # Exported symbols can be pulled into shared objects from archives
10626 whole_archive_flag_spec='$convenience'
10627 fi
10628 archive_cmds_need_lc=yes
10629 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10630 # -brtl affects multiple linker settings, -berok does not and is overridden later
10631 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10632 if test svr4 != "$with_aix_soname"; then
10633 # This is similar to how AIX traditionally builds its shared libraries.
10634 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'
10635 fi
10636 if test aix != "$with_aix_soname"; then
10637 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'
10638 else
10639 # used by -dlpreopen to get the symbols
10640 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10641 fi
10642 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10643 fi
10644 fi
10645 ;;
10646
10647 amigaos*)
10648 case $host_cpu in
10649 powerpc)
10650 # see comment about AmigaOS4 .so support
10651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10652 archive_expsym_cmds=''
10653 ;;
10654 m68k)
10655 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)'
10656 hardcode_libdir_flag_spec='-L$libdir'
10657 hardcode_minus_L=yes
10658 ;;
10659 esac
10660 ;;
10661
10662 bsdi[45]*)
10663 export_dynamic_flag_spec=-rdynamic
10664 ;;
10665
10666 cygwin* | mingw* | pw32* | cegcc*)
10667 # When not using gcc, we currently assume that we are using
10668 # Microsoft Visual C++ or Intel C++ Compiler.
10669 # hardcode_libdir_flag_spec is actually meaningless, as there is
10670 # no search path for DLLs.
10671 case $cc_basename in
10672 cl* | icl*)
10673 # Native MSVC or ICC
10674 hardcode_libdir_flag_spec=' '
10675 allow_undefined_flag=unsupported
10676 always_export_symbols=yes
10677 file_list_spec='@'
10678 # Tell ltmain to make .lib files, not .a files.
10679 libext=lib
10680 # Tell ltmain to make .dll files, not .so files.
10681 shrext_cmds=.dll
10682 # FIXME: Setting linknames here is a bad hack.
10683 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10684 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10685 cp "$export_symbols" "$output_objdir/$soname.def";
10686 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10687 else
10688 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10689 fi~
10690 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10691 linknames='
10692 # The linker will not automatically build a static lib if we build a DLL.
10693 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10694 enable_shared_with_static_runtimes=yes
10695 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10696 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10697 # Don't use ranlib
10698 old_postinstall_cmds='chmod 644 $oldlib'
10699 postlink_cmds='lt_outputfile="@OUTPUT@"~
10700 lt_tool_outputfile="@TOOL_OUTPUT@"~
10701 case $lt_outputfile in
10702 *.exe|*.EXE) ;;
10703 *)
10704 lt_outputfile=$lt_outputfile.exe
10705 lt_tool_outputfile=$lt_tool_outputfile.exe
10706 ;;
10707 esac~
10708 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10709 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10710 $RM "$lt_outputfile.manifest";
10711 fi'
10712 ;;
10713 *)
10714 # Assume MSVC and ICC wrapper
10715 hardcode_libdir_flag_spec=' '
10716 allow_undefined_flag=unsupported
10717 # Tell ltmain to make .lib files, not .a files.
10718 libext=lib
10719 # Tell ltmain to make .dll files, not .so files.
10720 shrext_cmds=.dll
10721 # FIXME: Setting linknames here is a bad hack.
10722 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10723 # The linker will automatically build a .lib file if we build a DLL.
10724 old_archive_from_new_cmds='true'
10725 # FIXME: Should let the user specify the lib program.
10726 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10727 enable_shared_with_static_runtimes=yes
10728 ;;
10729 esac
10730 ;;
10731
10732 darwin* | rhapsody*)
10733
10734
10735 archive_cmds_need_lc=no
10736 hardcode_direct=no
10737 hardcode_automatic=yes
10738 hardcode_shlibpath_var=unsupported
10739 if test yes = "$lt_cv_ld_force_load"; then
10740 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\"`'
10741
10742 else
10743 whole_archive_flag_spec=''
10744 fi
10745 link_all_deplibs=yes
10746 allow_undefined_flag=$_lt_dar_allow_undefined
10747 case $cc_basename in
10748 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10749 *) _lt_dar_can_shared=$GCC ;;
10750 esac
10751 if test yes = "$_lt_dar_can_shared"; then
10752 output_verbose_link_cmd=func_echo_all
10753 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10754 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10755 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"
10756 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"
10757
10758 else
10759 ld_shlibs=no
10760 fi
10761
10762 ;;
10763
10764 dgux*)
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_libdir_flag_spec='-L$libdir'
10767 hardcode_shlibpath_var=no
10768 ;;
10769
10770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10771 # support. Future versions do this automatically, but an explicit c++rt0.o
10772 # does not break anything, and helps significantly (at the cost of a little
10773 # extra space).
10774 freebsd2.2*)
10775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10776 hardcode_libdir_flag_spec='-R$libdir'
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10779 ;;
10780
10781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10782 freebsd2.*)
10783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10784 hardcode_direct=yes
10785 hardcode_minus_L=yes
10786 hardcode_shlibpath_var=no
10787 ;;
10788
10789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10790 freebsd* | dragonfly* | midnightbsd*)
10791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10792 hardcode_libdir_flag_spec='-R$libdir'
10793 hardcode_direct=yes
10794 hardcode_shlibpath_var=no
10795 ;;
10796
10797 hpux9*)
10798 if test yes = "$GCC"; then
10799 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'
10800 else
10801 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'
10802 fi
10803 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10804 hardcode_libdir_separator=:
10805 hardcode_direct=yes
10806
10807 # hardcode_minus_L: Not really in the search PATH,
10808 # but as the default location of the library.
10809 hardcode_minus_L=yes
10810 export_dynamic_flag_spec='$wl-E'
10811 ;;
10812
10813 hpux10*)
10814 if test yes,no = "$GCC,$with_gnu_ld"; then
10815 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10816 else
10817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10818 fi
10819 if test no = "$with_gnu_ld"; then
10820 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10821 hardcode_libdir_separator=:
10822 hardcode_direct=yes
10823 hardcode_direct_absolute=yes
10824 export_dynamic_flag_spec='$wl-E'
10825 # hardcode_minus_L: Not really in the search PATH,
10826 # but as the default location of the library.
10827 hardcode_minus_L=yes
10828 fi
10829 ;;
10830
10831 hpux11*)
10832 if test yes,no = "$GCC,$with_gnu_ld"; then
10833 case $host_cpu in
10834 hppa*64*)
10835 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10836 ;;
10837 ia64*)
10838 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10839 ;;
10840 *)
10841 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10842 ;;
10843 esac
10844 else
10845 case $host_cpu in
10846 hppa*64*)
10847 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 ;;
10849 ia64*)
10850 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10851 ;;
10852 *)
10853
10854 # Older versions of the 11.00 compiler do not understand -b yet
10855 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10857 printf %s "checking if $CC understands -b... " >&6; }
10858 if test ${lt_cv_prog_compiler__b+y}
10859 then :
10860 printf %s "(cached) " >&6
10861 else $as_nop
10862 lt_cv_prog_compiler__b=no
10863 save_LDFLAGS=$LDFLAGS
10864 LDFLAGS="$LDFLAGS -b"
10865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10867 # The linker can only warn and ignore the option if not recognized
10868 # So say no if there are warnings
10869 if test -s conftest.err; then
10870 # Append any errors to the config.log.
10871 cat conftest.err 1>&5
10872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10874 if diff conftest.exp conftest.er2 >/dev/null; then
10875 lt_cv_prog_compiler__b=yes
10876 fi
10877 else
10878 lt_cv_prog_compiler__b=yes
10879 fi
10880 fi
10881 $RM -r conftest*
10882 LDFLAGS=$save_LDFLAGS
10883
10884 fi
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10886 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10887
10888 if test yes = "$lt_cv_prog_compiler__b"; then
10889 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10890 else
10891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10892 fi
10893
10894 ;;
10895 esac
10896 fi
10897 if test no = "$with_gnu_ld"; then
10898 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10899 hardcode_libdir_separator=:
10900
10901 case $host_cpu in
10902 hppa*64*|ia64*)
10903 hardcode_direct=no
10904 hardcode_shlibpath_var=no
10905 ;;
10906 *)
10907 hardcode_direct=yes
10908 hardcode_direct_absolute=yes
10909 export_dynamic_flag_spec='$wl-E'
10910
10911 # hardcode_minus_L: Not really in the search PATH,
10912 # but as the default location of the library.
10913 hardcode_minus_L=yes
10914 ;;
10915 esac
10916 fi
10917 ;;
10918
10919 irix5* | irix6* | nonstopux*)
10920 if test yes = "$GCC"; then
10921 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'
10922 # Try to use the -exported_symbol ld option, if it does not
10923 # work, assume that -exports_file does not work either and
10924 # implicitly export all symbols.
10925 # This should be the same for all languages, so no per-tag cache variable.
10926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10927 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10928 if test ${lt_cv_irix_exported_symbol+y}
10929 then :
10930 printf %s "(cached) " >&6
10931 else $as_nop
10932 save_LDFLAGS=$LDFLAGS
10933 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10936 int foo (void) { return 0; }
10937 _ACEOF
10938 if ac_fn_c_try_link "$LINENO"
10939 then :
10940 lt_cv_irix_exported_symbol=yes
10941 else $as_nop
10942 lt_cv_irix_exported_symbol=no
10943 fi
10944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LDFLAGS=$save_LDFLAGS
10947 fi
10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10949 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10950 if test yes = "$lt_cv_irix_exported_symbol"; then
10951 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'
10952 fi
10953 link_all_deplibs=no
10954 else
10955 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'
10956 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'
10957 fi
10958 archive_cmds_need_lc='no'
10959 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10960 hardcode_libdir_separator=:
10961 inherit_rpath=yes
10962 link_all_deplibs=yes
10963 ;;
10964
10965 linux*)
10966 case $cc_basename in
10967 tcc*)
10968 # Fabrice Bellard et al's Tiny C Compiler
10969 ld_shlibs=yes
10970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10971 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10972 ;;
10973 esac
10974 ;;
10975
10976 netbsd* | netbsdelf*-gnu)
10977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10979 else
10980 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10981 fi
10982 hardcode_libdir_flag_spec='-R$libdir'
10983 hardcode_direct=yes
10984 hardcode_shlibpath_var=no
10985 ;;
10986
10987 newsos6)
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_direct=yes
10990 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10991 hardcode_libdir_separator=:
10992 hardcode_shlibpath_var=no
10993 ;;
10994
10995 *nto* | *qnx*)
10996 ;;
10997
10998 openbsd* | bitrig*)
10999 if test -f /usr/libexec/ld.so; then
11000 hardcode_direct=yes
11001 hardcode_shlibpath_var=no
11002 hardcode_direct_absolute=yes
11003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11006 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11007 export_dynamic_flag_spec='$wl-E'
11008 else
11009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11010 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11011 fi
11012 else
11013 ld_shlibs=no
11014 fi
11015 ;;
11016
11017 os2*)
11018 hardcode_libdir_flag_spec='-L$libdir'
11019 hardcode_minus_L=yes
11020 allow_undefined_flag=unsupported
11021 shrext_cmds=.dll
11022 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11025 $ECHO EXPORTS >> $output_objdir/$libname.def~
11026 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11028 emximp -o $lib $output_objdir/$libname.def'
11029 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11030 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11031 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11032 $ECHO EXPORTS >> $output_objdir/$libname.def~
11033 prefix_cmds="$SED"~
11034 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11035 prefix_cmds="$prefix_cmds -e 1d";
11036 fi~
11037 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11038 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11039 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11040 emximp -o $lib $output_objdir/$libname.def'
11041 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11042 enable_shared_with_static_runtimes=yes
11043 file_list_spec='@'
11044 ;;
11045
11046 osf3*)
11047 if test yes = "$GCC"; then
11048 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11049 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'
11050 else
11051 allow_undefined_flag=' -expect_unresolved \*'
11052 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'
11053 fi
11054 archive_cmds_need_lc='no'
11055 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11056 hardcode_libdir_separator=:
11057 ;;
11058
11059 osf4* | osf5*) # as osf3* with the addition of -msym flag
11060 if test yes = "$GCC"; then
11061 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11062 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'
11063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11064 else
11065 allow_undefined_flag=' -expect_unresolved \*'
11066 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'
11067 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~
11068 $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'
11069
11070 # Both c and cxx compiler support -rpath directly
11071 hardcode_libdir_flag_spec='-rpath $libdir'
11072 fi
11073 archive_cmds_need_lc='no'
11074 hardcode_libdir_separator=:
11075 ;;
11076
11077 solaris*)
11078 no_undefined_flag=' -z defs'
11079 if test yes = "$GCC"; then
11080 wlarc='$wl'
11081 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11082 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11083 $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'
11084 else
11085 case `$CC -V 2>&1` in
11086 *"Compilers 5.0"*)
11087 wlarc=''
11088 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11090 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11091 ;;
11092 *)
11093 wlarc='$wl'
11094 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11096 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11097 ;;
11098 esac
11099 fi
11100 hardcode_libdir_flag_spec='-R$libdir'
11101 hardcode_shlibpath_var=no
11102 case $host_os in
11103 solaris2.[0-5] | solaris2.[0-5].*) ;;
11104 *)
11105 # The compiler driver will combine and reorder linker options,
11106 # but understands '-z linker_flag'. GCC discards it without '$wl',
11107 # but is careful enough not to reorder.
11108 # Supported since Solaris 2.6 (maybe 2.5.1?)
11109 if test yes = "$GCC"; then
11110 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11111 else
11112 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11113 fi
11114 ;;
11115 esac
11116 link_all_deplibs=yes
11117 ;;
11118
11119 sunos4*)
11120 if test sequent = "$host_vendor"; then
11121 # Use $CC to link under sequent, because it throws in some extra .o
11122 # files that make .init and .fini sections work.
11123 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11124 else
11125 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11126 fi
11127 hardcode_libdir_flag_spec='-L$libdir'
11128 hardcode_direct=yes
11129 hardcode_minus_L=yes
11130 hardcode_shlibpath_var=no
11131 ;;
11132
11133 sysv4)
11134 case $host_vendor in
11135 sni)
11136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11137 hardcode_direct=yes # is this really true???
11138 ;;
11139 siemens)
11140 ## LD is ld it makes a PLAMLIB
11141 ## CC just makes a GrossModule.
11142 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11143 reload_cmds='$CC -r -o $output$reload_objs'
11144 hardcode_direct=no
11145 ;;
11146 motorola)
11147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11148 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11149 ;;
11150 esac
11151 runpath_var='LD_RUN_PATH'
11152 hardcode_shlibpath_var=no
11153 ;;
11154
11155 sysv4.3*)
11156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11157 hardcode_shlibpath_var=no
11158 export_dynamic_flag_spec='-Bexport'
11159 ;;
11160
11161 sysv4*MP*)
11162 if test -d /usr/nec; then
11163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11164 hardcode_shlibpath_var=no
11165 runpath_var=LD_RUN_PATH
11166 hardcode_runpath_var=yes
11167 ld_shlibs=yes
11168 fi
11169 ;;
11170
11171 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11172 no_undefined_flag='$wl-z,text'
11173 archive_cmds_need_lc=no
11174 hardcode_shlibpath_var=no
11175 runpath_var='LD_RUN_PATH'
11176
11177 if test yes = "$GCC"; then
11178 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11179 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11180 else
11181 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11182 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183 fi
11184 ;;
11185
11186 sysv5* | sco3.2v5* | sco5v6*)
11187 # Note: We CANNOT use -z defs as we might desire, because we do not
11188 # link with -lc, and that would cause any symbols used from libc to
11189 # always be unresolved, which means just about no library would
11190 # ever link correctly. If we're not using GNU ld we use -z text
11191 # though, which does catch some bad symbols but isn't as heavy-handed
11192 # as -z defs.
11193 no_undefined_flag='$wl-z,text'
11194 allow_undefined_flag='$wl-z,nodefs'
11195 archive_cmds_need_lc=no
11196 hardcode_shlibpath_var=no
11197 hardcode_libdir_flag_spec='$wl-R,$libdir'
11198 hardcode_libdir_separator=':'
11199 link_all_deplibs=yes
11200 export_dynamic_flag_spec='$wl-Bexport'
11201 runpath_var='LD_RUN_PATH'
11202
11203 if test yes = "$GCC"; then
11204 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11205 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11206 else
11207 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11208 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11209 fi
11210 ;;
11211
11212 uts4*)
11213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11214 hardcode_libdir_flag_spec='-L$libdir'
11215 hardcode_shlibpath_var=no
11216 ;;
11217
11218 *)
11219 ld_shlibs=no
11220 ;;
11221 esac
11222
11223 if test sni = "$host_vendor"; then
11224 case $host in
11225 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11226 export_dynamic_flag_spec='$wl-Blargedynsym'
11227 ;;
11228 esac
11229 fi
11230 fi
11231
11232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11233 printf "%s\n" "$ld_shlibs" >&6; }
11234 test no = "$ld_shlibs" && can_build_shared=no
11235
11236 with_gnu_ld=$with_gnu_ld
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 #
11253 # Do we need to explicitly link libc?
11254 #
11255 case "x$archive_cmds_need_lc" in
11256 x|xyes)
11257 # Assume -lc should be added
11258 archive_cmds_need_lc=yes
11259
11260 if test yes,yes = "$GCC,$enable_shared"; then
11261 case $archive_cmds in
11262 *'~'*)
11263 # FIXME: we may have to deal with multi-command sequences.
11264 ;;
11265 '$CC '*)
11266 # Test whether the compiler implicitly links with -lc since on some
11267 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11268 # to ld, don't add -lc before -lgcc.
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11270 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11271 if test ${lt_cv_archive_cmds_need_lc+y}
11272 then :
11273 printf %s "(cached) " >&6
11274 else $as_nop
11275 $RM conftest*
11276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11277
11278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11279 (eval $ac_compile) 2>&5
11280 ac_status=$?
11281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11282 test $ac_status = 0; } 2>conftest.err; then
11283 soname=conftest
11284 lib=conftest
11285 libobjs=conftest.$ac_objext
11286 deplibs=
11287 wl=$lt_prog_compiler_wl
11288 pic_flag=$lt_prog_compiler_pic
11289 compiler_flags=-v
11290 linker_flags=-v
11291 verstring=
11292 output_objdir=.
11293 libname=conftest
11294 lt_save_allow_undefined_flag=$allow_undefined_flag
11295 allow_undefined_flag=
11296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11297 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11298 ac_status=$?
11299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11300 test $ac_status = 0; }
11301 then
11302 lt_cv_archive_cmds_need_lc=no
11303 else
11304 lt_cv_archive_cmds_need_lc=yes
11305 fi
11306 allow_undefined_flag=$lt_save_allow_undefined_flag
11307 else
11308 cat conftest.err 1>&5
11309 fi
11310 $RM conftest*
11311
11312 fi
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11314 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11315 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11316 ;;
11317 esac
11318 fi
11319 ;;
11320 esac
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11474 printf %s "checking dynamic linker characteristics... " >&6; }
11475
11476 if test yes = "$GCC"; then
11477 case $host_os in
11478 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11479 *) lt_awk_arg='/^libraries:/' ;;
11480 esac
11481 case $host_os in
11482 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11483 *) lt_sed_strip_eq='s|=/|/|g' ;;
11484 esac
11485 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11486 case $lt_search_path_spec in
11487 *\;*)
11488 # if the path contains ";" then we assume it to be the separator
11489 # otherwise default to the standard path separator (i.e. ":") - it is
11490 # assumed that no part of a normal pathname contains ";" but that should
11491 # okay in the real world where ";" in dirpaths is itself problematic.
11492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11493 ;;
11494 *)
11495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11496 ;;
11497 esac
11498 # Ok, now we have the path, separated by spaces, we can step through it
11499 # and add multilib dir if necessary...
11500 lt_tmp_lt_search_path_spec=
11501 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11502 # ...but if some path component already ends with the multilib dir we assume
11503 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11504 case "$lt_multi_os_dir; $lt_search_path_spec " in
11505 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11506 lt_multi_os_dir=
11507 ;;
11508 esac
11509 for lt_sys_path in $lt_search_path_spec; do
11510 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11511 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11512 elif test -n "$lt_multi_os_dir"; then
11513 test -d "$lt_sys_path" && \
11514 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11515 fi
11516 done
11517 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11518 BEGIN {RS = " "; FS = "/|\n";} {
11519 lt_foo = "";
11520 lt_count = 0;
11521 for (lt_i = NF; lt_i > 0; lt_i--) {
11522 if ($lt_i != "" && $lt_i != ".") {
11523 if ($lt_i == "..") {
11524 lt_count++;
11525 } else {
11526 if (lt_count == 0) {
11527 lt_foo = "/" $lt_i lt_foo;
11528 } else {
11529 lt_count--;
11530 }
11531 }
11532 }
11533 }
11534 if (lt_foo != "") { lt_freq[lt_foo]++; }
11535 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11536 }'`
11537 # AWK program above erroneously prepends '/' to C:/dos/paths
11538 # for these hosts.
11539 case $host_os in
11540 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11541 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11542 esac
11543 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11544 else
11545 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11546 fi
11547 library_names_spec=
11548 libname_spec='lib$name'
11549 soname_spec=
11550 shrext_cmds=.so
11551 postinstall_cmds=
11552 postuninstall_cmds=
11553 finish_cmds=
11554 finish_eval=
11555 shlibpath_var=
11556 shlibpath_overrides_runpath=unknown
11557 version_type=none
11558 dynamic_linker="$host_os ld.so"
11559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11560 need_lib_prefix=unknown
11561 hardcode_into_libs=no
11562
11563 # when you set need_version to no, make sure it does not cause -set_version
11564 # flags to be left without arguments
11565 need_version=unknown
11566
11567
11568
11569 case $host_os in
11570 aix3*)
11571 version_type=linux # correct to gnu/linux during the next big refactor
11572 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11573 shlibpath_var=LIBPATH
11574
11575 # AIX 3 has no versioning support, so we append a major version to the name.
11576 soname_spec='$libname$release$shared_ext$major'
11577 ;;
11578
11579 aix[4-9]*)
11580 version_type=linux # correct to gnu/linux during the next big refactor
11581 need_lib_prefix=no
11582 need_version=no
11583 hardcode_into_libs=yes
11584 if test ia64 = "$host_cpu"; then
11585 # AIX 5 supports IA64
11586 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 else
11589 # With GCC up to 2.95.x, collect2 would create an import file
11590 # for dependence libraries. The import file would start with
11591 # the line '#! .'. This would cause the generated library to
11592 # depend on '.', always an invalid library. This was fixed in
11593 # development snapshots of GCC prior to 3.0.
11594 case $host_os in
11595 aix4 | aix4.[01] | aix4.[01].*)
11596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11597 echo ' yes '
11598 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11599 :
11600 else
11601 can_build_shared=no
11602 fi
11603 ;;
11604 esac
11605 # Using Import Files as archive members, it is possible to support
11606 # filename-based versioning of shared library archives on AIX. While
11607 # this would work for both with and without runtime linking, it will
11608 # prevent static linking of such archives. So we do filename-based
11609 # shared library versioning with .so extension only, which is used
11610 # when both runtime linking and shared linking is enabled.
11611 # Unfortunately, runtime linking may impact performance, so we do
11612 # not want this to be the default eventually. Also, we use the
11613 # versioned .so libs for executables only if there is the -brtl
11614 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11615 # To allow for filename-based versioning support, we need to create
11616 # libNAME.so.V as an archive file, containing:
11617 # *) an Import File, referring to the versioned filename of the
11618 # archive as well as the shared archive member, telling the
11619 # bitwidth (32 or 64) of that shared object, and providing the
11620 # list of exported symbols of that shared object, eventually
11621 # decorated with the 'weak' keyword
11622 # *) the shared object with the F_LOADONLY flag set, to really avoid
11623 # it being seen by the linker.
11624 # At run time we better use the real file rather than another symlink,
11625 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11626
11627 case $with_aix_soname,$aix_use_runtimelinking in
11628 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11629 # soname into executable. Probably we can add versioning support to
11630 # collect2, so additional links can be useful in future.
11631 aix,yes) # traditional libtool
11632 dynamic_linker='AIX unversionable lib.so'
11633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11634 # instead of lib<name>.a to let people know that these are not
11635 # typical AIX shared libraries.
11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637 ;;
11638 aix,no) # traditional AIX only
11639 dynamic_linker='AIX lib.a(lib.so.V)'
11640 # We preserve .a as extension for shared libraries through AIX4.2
11641 # and later when we are not doing run time linking.
11642 library_names_spec='$libname$release.a $libname.a'
11643 soname_spec='$libname$release$shared_ext$major'
11644 ;;
11645 svr4,*) # full svr4 only
11646 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11647 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11648 # We do not specify a path in Import Files, so LIBPATH fires.
11649 shlibpath_overrides_runpath=yes
11650 ;;
11651 *,yes) # both, prefer svr4
11652 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11653 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11654 # unpreferred sharedlib libNAME.a needs extra handling
11655 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"'
11656 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"'
11657 # We do not specify a path in Import Files, so LIBPATH fires.
11658 shlibpath_overrides_runpath=yes
11659 ;;
11660 *,no) # both, prefer aix
11661 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11662 library_names_spec='$libname$release.a $libname.a'
11663 soname_spec='$libname$release$shared_ext$major'
11664 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11665 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)'
11666 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"'
11667 ;;
11668 esac
11669 shlibpath_var=LIBPATH
11670 fi
11671 ;;
11672
11673 amigaos*)
11674 case $host_cpu in
11675 powerpc)
11676 # Since July 2007 AmigaOS4 officially supports .so libraries.
11677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679 ;;
11680 m68k)
11681 library_names_spec='$libname.ixlibrary $libname.a'
11682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11683 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'
11684 ;;
11685 esac
11686 ;;
11687
11688 beos*)
11689 library_names_spec='$libname$shared_ext'
11690 dynamic_linker="$host_os ld.so"
11691 shlibpath_var=LIBRARY_PATH
11692 ;;
11693
11694 bsdi[45]*)
11695 version_type=linux # correct to gnu/linux during the next big refactor
11696 need_version=no
11697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11698 soname_spec='$libname$release$shared_ext$major'
11699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11703 # the default ld.so.conf also contains /usr/contrib/lib and
11704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11705 # libtool to hard-code these into programs
11706 ;;
11707
11708 cygwin* | mingw* | pw32* | cegcc*)
11709 version_type=windows
11710 shrext_cmds=.dll
11711 need_version=no
11712 need_lib_prefix=no
11713
11714 case $GCC,$cc_basename in
11715 yes,*)
11716 # gcc
11717 library_names_spec='$libname.dll.a'
11718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11719 postinstall_cmds='base_file=`basename \$file`~
11720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11721 dldir=$destdir/`dirname \$dlpath`~
11722 test -d \$dldir || mkdir -p \$dldir~
11723 $install_prog $dir/$dlname \$dldir/$dlname~
11724 chmod a+x \$dldir/$dlname~
11725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11727 fi'
11728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11729 dlpath=$dir/\$dldll~
11730 $RM \$dlpath'
11731 shlibpath_overrides_runpath=yes
11732
11733 case $host_os in
11734 cygwin*)
11735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11736 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11737
11738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11739 ;;
11740 mingw* | cegcc*)
11741 # MinGW DLLs use traditional 'lib' prefix
11742 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11743 ;;
11744 pw32*)
11745 # pw32 DLLs use 'pw' prefix rather than 'lib'
11746 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11747 ;;
11748 esac
11749 dynamic_linker='Win32 ld.exe'
11750 ;;
11751
11752 *,cl* | *,icl*)
11753 # Native MSVC or ICC
11754 libname_spec='$name'
11755 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11756 library_names_spec='$libname.dll.lib'
11757
11758 case $build_os in
11759 mingw*)
11760 sys_lib_search_path_spec=
11761 lt_save_ifs=$IFS
11762 IFS=';'
11763 for lt_path in $LIB
11764 do
11765 IFS=$lt_save_ifs
11766 # Let DOS variable expansion print the short 8.3 style file name.
11767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11769 done
11770 IFS=$lt_save_ifs
11771 # Convert to MSYS style.
11772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11773 ;;
11774 cygwin*)
11775 # Convert to unix form, then to dos form, then back to unix form
11776 # but this time dos style (no spaces!) so that the unix form looks
11777 # like /cygdrive/c/PROGRA~1:/cygdr...
11778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11781 ;;
11782 *)
11783 sys_lib_search_path_spec=$LIB
11784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11785 # It is most probably a Windows format PATH.
11786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11787 else
11788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11789 fi
11790 # FIXME: find the short name or the path components, as spaces are
11791 # common. (e.g. "Program Files" -> "PROGRA~1")
11792 ;;
11793 esac
11794
11795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11796 postinstall_cmds='base_file=`basename \$file`~
11797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11798 dldir=$destdir/`dirname \$dlpath`~
11799 test -d \$dldir || mkdir -p \$dldir~
11800 $install_prog $dir/$dlname \$dldir/$dlname'
11801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11802 dlpath=$dir/\$dldll~
11803 $RM \$dlpath'
11804 shlibpath_overrides_runpath=yes
11805 dynamic_linker='Win32 link.exe'
11806 ;;
11807
11808 *)
11809 # Assume MSVC and ICC wrapper
11810 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11811 dynamic_linker='Win32 ld.exe'
11812 ;;
11813 esac
11814 # FIXME: first we should search . and the directory the executable is in
11815 shlibpath_var=PATH
11816 ;;
11817
11818 darwin* | rhapsody*)
11819 dynamic_linker="$host_os dyld"
11820 version_type=darwin
11821 need_lib_prefix=no
11822 need_version=no
11823 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11824 soname_spec='$libname$release$major$shared_ext'
11825 shlibpath_overrides_runpath=yes
11826 shlibpath_var=DYLD_LIBRARY_PATH
11827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11828
11829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11831 ;;
11832
11833 dgux*)
11834 version_type=linux # correct to gnu/linux during the next big refactor
11835 need_lib_prefix=no
11836 need_version=no
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838 soname_spec='$libname$release$shared_ext$major'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 ;;
11841
11842 freebsd* | dragonfly* | midnightbsd*)
11843 # DragonFly does not have aout. When/if they implement a new
11844 # versioning mechanism, adjust this.
11845 if test -x /usr/bin/objformat; then
11846 objformat=`/usr/bin/objformat`
11847 else
11848 case $host_os in
11849 freebsd[23].*) objformat=aout ;;
11850 *) objformat=elf ;;
11851 esac
11852 fi
11853 version_type=freebsd-$objformat
11854 case $version_type in
11855 freebsd-elf*)
11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857 soname_spec='$libname$release$shared_ext$major'
11858 need_version=no
11859 need_lib_prefix=no
11860 ;;
11861 freebsd-*)
11862 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11863 need_version=yes
11864 ;;
11865 esac
11866 shlibpath_var=LD_LIBRARY_PATH
11867 case $host_os in
11868 freebsd2.*)
11869 shlibpath_overrides_runpath=yes
11870 ;;
11871 freebsd3.[01]* | freebsdelf3.[01]*)
11872 shlibpath_overrides_runpath=yes
11873 hardcode_into_libs=yes
11874 ;;
11875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11877 shlibpath_overrides_runpath=no
11878 hardcode_into_libs=yes
11879 ;;
11880 *) # from 4.6 on, and DragonFly
11881 shlibpath_overrides_runpath=yes
11882 hardcode_into_libs=yes
11883 ;;
11884 esac
11885 ;;
11886
11887 haiku*)
11888 version_type=linux # correct to gnu/linux during the next big refactor
11889 need_lib_prefix=no
11890 need_version=no
11891 dynamic_linker="$host_os runtime_loader"
11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11893 soname_spec='$libname$release$shared_ext$major'
11894 shlibpath_var=LIBRARY_PATH
11895 shlibpath_overrides_runpath=no
11896 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11897 hardcode_into_libs=yes
11898 ;;
11899
11900 hpux9* | hpux10* | hpux11*)
11901 # Give a soname corresponding to the major version so that dld.sl refuses to
11902 # link against other versions.
11903 version_type=sunos
11904 need_lib_prefix=no
11905 need_version=no
11906 case $host_cpu in
11907 ia64*)
11908 shrext_cmds='.so'
11909 hardcode_into_libs=yes
11910 dynamic_linker="$host_os dld.so"
11911 shlibpath_var=LD_LIBRARY_PATH
11912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11914 soname_spec='$libname$release$shared_ext$major'
11915 if test 32 = "$HPUX_IA64_MODE"; then
11916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11917 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11918 else
11919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11920 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11921 fi
11922 ;;
11923 hppa*64*)
11924 shrext_cmds='.sl'
11925 hardcode_into_libs=yes
11926 dynamic_linker="$host_os dld.sl"
11927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11930 soname_spec='$libname$release$shared_ext$major'
11931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11933 ;;
11934 *)
11935 shrext_cmds='.sl'
11936 dynamic_linker="$host_os dld.sl"
11937 shlibpath_var=SHLIB_PATH
11938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11940 soname_spec='$libname$release$shared_ext$major'
11941 ;;
11942 esac
11943 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11944 postinstall_cmds='chmod 555 $lib'
11945 # or fails outright, so override atomically:
11946 install_override_mode=555
11947 ;;
11948
11949 interix[3-9]*)
11950 version_type=linux # correct to gnu/linux during the next big refactor
11951 need_lib_prefix=no
11952 need_version=no
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 soname_spec='$libname$release$shared_ext$major'
11955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=no
11958 hardcode_into_libs=yes
11959 ;;
11960
11961 irix5* | irix6* | nonstopux*)
11962 case $host_os in
11963 nonstopux*) version_type=nonstopux ;;
11964 *)
11965 if test yes = "$lt_cv_prog_gnu_ld"; then
11966 version_type=linux # correct to gnu/linux during the next big refactor
11967 else
11968 version_type=irix
11969 fi ;;
11970 esac
11971 need_lib_prefix=no
11972 need_version=no
11973 soname_spec='$libname$release$shared_ext$major'
11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11975 case $host_os in
11976 irix5* | nonstopux*)
11977 libsuff= shlibsuff=
11978 ;;
11979 *)
11980 case $LD in # libtool.m4 will add one of these switches to LD
11981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11982 libsuff= shlibsuff= libmagic=32-bit;;
11983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11984 libsuff=32 shlibsuff=N32 libmagic=N32;;
11985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11987 *) libsuff= shlibsuff= libmagic=never-match;;
11988 esac
11989 ;;
11990 esac
11991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11992 shlibpath_overrides_runpath=no
11993 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11994 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11995 hardcode_into_libs=yes
11996 ;;
11997
11998 # No shared lib support for Linux oldld, aout, or coff.
11999 linux*oldld* | linux*aout* | linux*coff*)
12000 dynamic_linker=no
12001 ;;
12002
12003 linux*android*)
12004 version_type=none # Android doesn't support versioned libraries.
12005 need_lib_prefix=no
12006 need_version=no
12007 library_names_spec='$libname$release$shared_ext'
12008 soname_spec='$libname$release$shared_ext'
12009 finish_cmds=
12010 shlibpath_var=LD_LIBRARY_PATH
12011 shlibpath_overrides_runpath=yes
12012
12013 # This implies no fast_install, which is unacceptable.
12014 # Some rework will be needed to allow for fast_install
12015 # before this can be enabled.
12016 hardcode_into_libs=yes
12017
12018 dynamic_linker='Android linker'
12019 # Don't embed -rpath directories since the linker doesn't support them.
12020 hardcode_libdir_flag_spec='-L$libdir'
12021 ;;
12022
12023 # This must be glibc/ELF.
12024 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12025 version_type=linux # correct to gnu/linux during the next big refactor
12026 need_lib_prefix=no
12027 need_version=no
12028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029 soname_spec='$libname$release$shared_ext$major'
12030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12031 shlibpath_var=LD_LIBRARY_PATH
12032 shlibpath_overrides_runpath=no
12033
12034 # Some binutils ld are patched to set DT_RUNPATH
12035 if test ${lt_cv_shlibpath_overrides_runpath+y}
12036 then :
12037 printf %s "(cached) " >&6
12038 else $as_nop
12039 lt_cv_shlibpath_overrides_runpath=no
12040 save_LDFLAGS=$LDFLAGS
12041 save_libdir=$libdir
12042 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12043 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046
12047 int
12048 main (void)
12049 {
12050
12051 ;
12052 return 0;
12053 }
12054 _ACEOF
12055 if ac_fn_c_try_link "$LINENO"
12056 then :
12057 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12058 then :
12059 lt_cv_shlibpath_overrides_runpath=yes
12060 fi
12061 fi
12062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12063 conftest$ac_exeext conftest.$ac_ext
12064 LDFLAGS=$save_LDFLAGS
12065 libdir=$save_libdir
12066
12067 fi
12068
12069 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12070
12071 # This implies no fast_install, which is unacceptable.
12072 # Some rework will be needed to allow for fast_install
12073 # before this can be enabled.
12074 hardcode_into_libs=yes
12075
12076 # Ideally, we could use ldconfig to report *all* directores which are
12077 # searched for libraries, however this is still not possible. Aside from not
12078 # being certain /sbin/ldconfig is available, command
12079 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12080 # even though it is searched at run-time. Try to do the best guess by
12081 # appending ld.so.conf contents (and includes) to the search path.
12082 if test -f /etc/ld.so.conf; then
12083 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' ' '`
12084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12085 fi
12086
12087 # We used to test for /lib/ld.so.1 and disable shared libraries on
12088 # powerpc, because MkLinux only supported shared libraries with the
12089 # GNU dynamic linker. Since this was broken with cross compilers,
12090 # most powerpc-linux boxes support dynamic linking these days and
12091 # people can always --disable-shared, the test was removed, and we
12092 # assume the GNU/Linux dynamic linker is in use.
12093 dynamic_linker='GNU/Linux ld.so'
12094 ;;
12095
12096 netbsdelf*-gnu)
12097 version_type=linux
12098 need_lib_prefix=no
12099 need_version=no
12100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12101 soname_spec='${libname}${release}${shared_ext}$major'
12102 shlibpath_var=LD_LIBRARY_PATH
12103 shlibpath_overrides_runpath=no
12104 hardcode_into_libs=yes
12105 dynamic_linker='NetBSD ld.elf_so'
12106 ;;
12107
12108 netbsd*)
12109 version_type=sunos
12110 need_lib_prefix=no
12111 need_version=no
12112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12115 dynamic_linker='NetBSD (a.out) ld.so'
12116 else
12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118 soname_spec='$libname$release$shared_ext$major'
12119 dynamic_linker='NetBSD ld.elf_so'
12120 fi
12121 shlibpath_var=LD_LIBRARY_PATH
12122 shlibpath_overrides_runpath=yes
12123 hardcode_into_libs=yes
12124 ;;
12125
12126 newsos6)
12127 version_type=linux # correct to gnu/linux during the next big refactor
12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12129 shlibpath_var=LD_LIBRARY_PATH
12130 shlibpath_overrides_runpath=yes
12131 ;;
12132
12133 *nto* | *qnx*)
12134 version_type=qnx
12135 need_lib_prefix=no
12136 need_version=no
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138 soname_spec='$libname$release$shared_ext$major'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 shlibpath_overrides_runpath=no
12141 hardcode_into_libs=yes
12142 dynamic_linker='ldqnx.so'
12143 ;;
12144
12145 openbsd* | bitrig*)
12146 version_type=sunos
12147 sys_lib_dlsearch_path_spec=/usr/lib
12148 need_lib_prefix=no
12149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12150 need_version=no
12151 else
12152 need_version=yes
12153 fi
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 shlibpath_overrides_runpath=yes
12158 ;;
12159
12160 os2*)
12161 libname_spec='$name'
12162 version_type=windows
12163 shrext_cmds=.dll
12164 need_version=no
12165 need_lib_prefix=no
12166 # OS/2 can only load a DLL with a base name of 8 characters or less.
12167 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12168 v=$($ECHO $release$versuffix | tr -d .-);
12169 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12170 $ECHO $n$v`$shared_ext'
12171 library_names_spec='${libname}_dll.$libext'
12172 dynamic_linker='OS/2 ld.exe'
12173 shlibpath_var=BEGINLIBPATH
12174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12176 postinstall_cmds='base_file=`basename \$file`~
12177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12178 dldir=$destdir/`dirname \$dlpath`~
12179 test -d \$dldir || mkdir -p \$dldir~
12180 $install_prog $dir/$dlname \$dldir/$dlname~
12181 chmod a+x \$dldir/$dlname~
12182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12184 fi'
12185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12186 dlpath=$dir/\$dldll~
12187 $RM \$dlpath'
12188 ;;
12189
12190 osf3* | osf4* | osf5*)
12191 version_type=osf
12192 need_lib_prefix=no
12193 need_version=no
12194 soname_spec='$libname$release$shared_ext$major'
12195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12199 ;;
12200
12201 rdos*)
12202 dynamic_linker=no
12203 ;;
12204
12205 solaris*)
12206 version_type=linux # correct to gnu/linux during the next big refactor
12207 need_lib_prefix=no
12208 need_version=no
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12210 soname_spec='$libname$release$shared_ext$major'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 shlibpath_overrides_runpath=yes
12213 hardcode_into_libs=yes
12214 # ldd complains unless libraries are executable
12215 postinstall_cmds='chmod +x $lib'
12216 ;;
12217
12218 sunos4*)
12219 version_type=sunos
12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=yes
12224 if test yes = "$with_gnu_ld"; then
12225 need_lib_prefix=no
12226 fi
12227 need_version=yes
12228 ;;
12229
12230 sysv4 | sysv4.3*)
12231 version_type=linux # correct to gnu/linux during the next big refactor
12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12233 soname_spec='$libname$release$shared_ext$major'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 case $host_vendor in
12236 sni)
12237 shlibpath_overrides_runpath=no
12238 need_lib_prefix=no
12239 runpath_var=LD_RUN_PATH
12240 ;;
12241 siemens)
12242 need_lib_prefix=no
12243 ;;
12244 motorola)
12245 need_lib_prefix=no
12246 need_version=no
12247 shlibpath_overrides_runpath=no
12248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12249 ;;
12250 esac
12251 ;;
12252
12253 sysv4*MP*)
12254 if test -d /usr/nec; then
12255 version_type=linux # correct to gnu/linux during the next big refactor
12256 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12257 soname_spec='$libname$shared_ext.$major'
12258 shlibpath_var=LD_LIBRARY_PATH
12259 fi
12260 ;;
12261
12262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12263 version_type=sco
12264 need_lib_prefix=no
12265 need_version=no
12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12267 soname_spec='$libname$release$shared_ext$major'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 shlibpath_overrides_runpath=yes
12270 hardcode_into_libs=yes
12271 if test yes = "$with_gnu_ld"; then
12272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12273 else
12274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12275 case $host_os in
12276 sco3.2v5*)
12277 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12278 ;;
12279 esac
12280 fi
12281 sys_lib_dlsearch_path_spec='/usr/lib'
12282 ;;
12283
12284 tpf*)
12285 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12286 version_type=linux # correct to gnu/linux during the next big refactor
12287 need_lib_prefix=no
12288 need_version=no
12289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12290 shlibpath_var=LD_LIBRARY_PATH
12291 shlibpath_overrides_runpath=no
12292 hardcode_into_libs=yes
12293 ;;
12294
12295 uts4*)
12296 version_type=linux # correct to gnu/linux during the next big refactor
12297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12298 soname_spec='$libname$release$shared_ext$major'
12299 shlibpath_var=LD_LIBRARY_PATH
12300 ;;
12301
12302 *)
12303 dynamic_linker=no
12304 ;;
12305 esac
12306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12307 printf "%s\n" "$dynamic_linker" >&6; }
12308 test no = "$dynamic_linker" && can_build_shared=no
12309
12310 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12311 if test yes = "$GCC"; then
12312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12313 fi
12314
12315 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12316 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12317 fi
12318
12319 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12320 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12321 fi
12322
12323 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12324 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12325
12326 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12327 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12328
12329 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12330 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12429 printf %s "checking how to hardcode library paths into programs... " >&6; }
12430 hardcode_action=
12431 if test -n "$hardcode_libdir_flag_spec" ||
12432 test -n "$runpath_var" ||
12433 test yes = "$hardcode_automatic"; then
12434
12435 # We can hardcode non-existent directories.
12436 if test no != "$hardcode_direct" &&
12437 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12438 # have to relink, otherwise we might link with an installed library
12439 # when we should be linking with a yet-to-be-installed one
12440 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12441 test no != "$hardcode_minus_L"; then
12442 # Linking always hardcodes the temporary library directory.
12443 hardcode_action=relink
12444 else
12445 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12446 hardcode_action=immediate
12447 fi
12448 else
12449 # We cannot hardcode anything, or else we can only hardcode existing
12450 # directories.
12451 hardcode_action=unsupported
12452 fi
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12454 printf "%s\n" "$hardcode_action" >&6; }
12455
12456 if test relink = "$hardcode_action" ||
12457 test yes = "$inherit_rpath"; then
12458 # Fast installation is not supported
12459 enable_fast_install=no
12460 elif test yes = "$shlibpath_overrides_runpath" ||
12461 test no = "$enable_shared"; then
12462 # Fast installation is not necessary
12463 enable_fast_install=needless
12464 fi
12465
12466
12467
12468
12469
12470
12471 if test yes != "$enable_dlopen"; then
12472 enable_dlopen=unknown
12473 enable_dlopen_self=unknown
12474 enable_dlopen_self_static=unknown
12475 else
12476 lt_cv_dlopen=no
12477 lt_cv_dlopen_libs=
12478
12479 case $host_os in
12480 beos*)
12481 lt_cv_dlopen=load_add_on
12482 lt_cv_dlopen_libs=
12483 lt_cv_dlopen_self=yes
12484 ;;
12485
12486 mingw* | pw32* | cegcc*)
12487 lt_cv_dlopen=LoadLibrary
12488 lt_cv_dlopen_libs=
12489 ;;
12490
12491 cygwin*)
12492 lt_cv_dlopen=dlopen
12493 lt_cv_dlopen_libs=
12494 ;;
12495
12496 darwin*)
12497 # if libdl is installed we need to link against it
12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12499 printf %s "checking for dlopen in -ldl... " >&6; }
12500 if test ${ac_cv_lib_dl_dlopen+y}
12501 then :
12502 printf %s "(cached) " >&6
12503 else $as_nop
12504 ac_check_lib_save_LIBS=$LIBS
12505 LIBS="-ldl $LIBS"
12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508
12509 /* Override any GCC internal prototype to avoid an error.
12510 Use char because int might match the return type of a GCC
12511 builtin and then its argument prototype would still apply. */
12512 char dlopen ();
12513 int
12514 main (void)
12515 {
12516 return dlopen ();
12517 ;
12518 return 0;
12519 }
12520 _ACEOF
12521 if ac_fn_c_try_link "$LINENO"
12522 then :
12523 ac_cv_lib_dl_dlopen=yes
12524 else $as_nop
12525 ac_cv_lib_dl_dlopen=no
12526 fi
12527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12528 conftest$ac_exeext conftest.$ac_ext
12529 LIBS=$ac_check_lib_save_LIBS
12530 fi
12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12532 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12533 if test "x$ac_cv_lib_dl_dlopen" = xyes
12534 then :
12535 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12536 else $as_nop
12537
12538 lt_cv_dlopen=dyld
12539 lt_cv_dlopen_libs=
12540 lt_cv_dlopen_self=yes
12541
12542 fi
12543
12544 ;;
12545
12546 tpf*)
12547 # Don't try to run any link tests for TPF. We know it's impossible
12548 # because TPF is a cross-compiler, and we know how we open DSOs.
12549 lt_cv_dlopen=dlopen
12550 lt_cv_dlopen_libs=
12551 lt_cv_dlopen_self=no
12552 ;;
12553
12554 *)
12555 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12556 if test "x$ac_cv_func_shl_load" = xyes
12557 then :
12558 lt_cv_dlopen=shl_load
12559 else $as_nop
12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12561 printf %s "checking for shl_load in -ldld... " >&6; }
12562 if test ${ac_cv_lib_dld_shl_load+y}
12563 then :
12564 printf %s "(cached) " >&6
12565 else $as_nop
12566 ac_check_lib_save_LIBS=$LIBS
12567 LIBS="-ldld $LIBS"
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 char shl_load ();
12575 int
12576 main (void)
12577 {
12578 return shl_load ();
12579 ;
12580 return 0;
12581 }
12582 _ACEOF
12583 if ac_fn_c_try_link "$LINENO"
12584 then :
12585 ac_cv_lib_dld_shl_load=yes
12586 else $as_nop
12587 ac_cv_lib_dld_shl_load=no
12588 fi
12589 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12590 conftest$ac_exeext conftest.$ac_ext
12591 LIBS=$ac_check_lib_save_LIBS
12592 fi
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12594 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12595 if test "x$ac_cv_lib_dld_shl_load" = xyes
12596 then :
12597 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12598 else $as_nop
12599 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12600 if test "x$ac_cv_func_dlopen" = xyes
12601 then :
12602 lt_cv_dlopen=dlopen
12603 else $as_nop
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12605 printf %s "checking for dlopen in -ldl... " >&6; }
12606 if test ${ac_cv_lib_dl_dlopen+y}
12607 then :
12608 printf %s "(cached) " >&6
12609 else $as_nop
12610 ac_check_lib_save_LIBS=$LIBS
12611 LIBS="-ldl $LIBS"
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614
12615 /* Override any GCC internal prototype to avoid an error.
12616 Use char because int might match the return type of a GCC
12617 builtin and then its argument prototype would still apply. */
12618 char dlopen ();
12619 int
12620 main (void)
12621 {
12622 return dlopen ();
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"
12628 then :
12629 ac_cv_lib_dl_dlopen=yes
12630 else $as_nop
12631 ac_cv_lib_dl_dlopen=no
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12634 conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12636 fi
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12638 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12639 if test "x$ac_cv_lib_dl_dlopen" = xyes
12640 then :
12641 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12642 else $as_nop
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12644 printf %s "checking for dlopen in -lsvld... " >&6; }
12645 if test ${ac_cv_lib_svld_dlopen+y}
12646 then :
12647 printf %s "(cached) " >&6
12648 else $as_nop
12649 ac_check_lib_save_LIBS=$LIBS
12650 LIBS="-lsvld $LIBS"
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12657 char dlopen ();
12658 int
12659 main (void)
12660 {
12661 return dlopen ();
12662 ;
12663 return 0;
12664 }
12665 _ACEOF
12666 if ac_fn_c_try_link "$LINENO"
12667 then :
12668 ac_cv_lib_svld_dlopen=yes
12669 else $as_nop
12670 ac_cv_lib_svld_dlopen=no
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12675 fi
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12677 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12678 if test "x$ac_cv_lib_svld_dlopen" = xyes
12679 then :
12680 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12681 else $as_nop
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12683 printf %s "checking for dld_link in -ldld... " >&6; }
12684 if test ${ac_cv_lib_dld_dld_link+y}
12685 then :
12686 printf %s "(cached) " >&6
12687 else $as_nop
12688 ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-ldld $LIBS"
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12692
12693 /* Override any GCC internal prototype to avoid an error.
12694 Use char because int might match the return type of a GCC
12695 builtin and then its argument prototype would still apply. */
12696 char dld_link ();
12697 int
12698 main (void)
12699 {
12700 return dld_link ();
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 if ac_fn_c_try_link "$LINENO"
12706 then :
12707 ac_cv_lib_dld_dld_link=yes
12708 else $as_nop
12709 ac_cv_lib_dld_dld_link=no
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12714 fi
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12716 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12717 if test "x$ac_cv_lib_dld_dld_link" = xyes
12718 then :
12719 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12720 fi
12721
12722
12723 fi
12724
12725
12726 fi
12727
12728
12729 fi
12730
12731
12732 fi
12733
12734
12735 fi
12736
12737 ;;
12738 esac
12739
12740 if test no = "$lt_cv_dlopen"; then
12741 enable_dlopen=no
12742 else
12743 enable_dlopen=yes
12744 fi
12745
12746 case $lt_cv_dlopen in
12747 dlopen)
12748 save_CPPFLAGS=$CPPFLAGS
12749 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12750
12751 save_LDFLAGS=$LDFLAGS
12752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12753
12754 save_LIBS=$LIBS
12755 LIBS="$lt_cv_dlopen_libs $LIBS"
12756
12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12758 printf %s "checking whether a program can dlopen itself... " >&6; }
12759 if test ${lt_cv_dlopen_self+y}
12760 then :
12761 printf %s "(cached) " >&6
12762 else $as_nop
12763 if test yes = "$cross_compiling"; then :
12764 lt_cv_dlopen_self=cross
12765 else
12766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12767 lt_status=$lt_dlunknown
12768 cat > conftest.$ac_ext <<_LT_EOF
12769 #line $LINENO "configure"
12770 #include "confdefs.h"
12771
12772 #if HAVE_DLFCN_H
12773 #include <dlfcn.h>
12774 #endif
12775
12776 #include <stdio.h>
12777
12778 #ifdef RTLD_GLOBAL
12779 # define LT_DLGLOBAL RTLD_GLOBAL
12780 #else
12781 # ifdef DL_GLOBAL
12782 # define LT_DLGLOBAL DL_GLOBAL
12783 # else
12784 # define LT_DLGLOBAL 0
12785 # endif
12786 #endif
12787
12788 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12789 find out it does not work in some platform. */
12790 #ifndef LT_DLLAZY_OR_NOW
12791 # ifdef RTLD_LAZY
12792 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12793 # else
12794 # ifdef DL_LAZY
12795 # define LT_DLLAZY_OR_NOW DL_LAZY
12796 # else
12797 # ifdef RTLD_NOW
12798 # define LT_DLLAZY_OR_NOW RTLD_NOW
12799 # else
12800 # ifdef DL_NOW
12801 # define LT_DLLAZY_OR_NOW DL_NOW
12802 # else
12803 # define LT_DLLAZY_OR_NOW 0
12804 # endif
12805 # endif
12806 # endif
12807 # endif
12808 #endif
12809
12810 /* When -fvisibility=hidden is used, assume the code has been annotated
12811 correspondingly for the symbols needed. */
12812 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12813 int fnord () __attribute__((visibility("default")));
12814 #endif
12815
12816 int fnord () { return 42; }
12817 int main ()
12818 {
12819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12820 int status = $lt_dlunknown;
12821
12822 if (self)
12823 {
12824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12825 else
12826 {
12827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12828 else puts (dlerror ());
12829 }
12830 /* dlclose (self); */
12831 }
12832 else
12833 puts (dlerror ());
12834
12835 return status;
12836 }
12837 _LT_EOF
12838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12839 (eval $ac_link) 2>&5
12840 ac_status=$?
12841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12842 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12843 (./conftest; exit; ) >&5 2>/dev/null
12844 lt_status=$?
12845 case x$lt_status in
12846 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12847 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12848 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12849 esac
12850 else :
12851 # compilation failed
12852 lt_cv_dlopen_self=no
12853 fi
12854 fi
12855 rm -fr conftest*
12856
12857
12858 fi
12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12860 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12861
12862 if test yes = "$lt_cv_dlopen_self"; then
12863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12865 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12866 if test ${lt_cv_dlopen_self_static+y}
12867 then :
12868 printf %s "(cached) " >&6
12869 else $as_nop
12870 if test yes = "$cross_compiling"; then :
12871 lt_cv_dlopen_self_static=cross
12872 else
12873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12874 lt_status=$lt_dlunknown
12875 cat > conftest.$ac_ext <<_LT_EOF
12876 #line $LINENO "configure"
12877 #include "confdefs.h"
12878
12879 #if HAVE_DLFCN_H
12880 #include <dlfcn.h>
12881 #endif
12882
12883 #include <stdio.h>
12884
12885 #ifdef RTLD_GLOBAL
12886 # define LT_DLGLOBAL RTLD_GLOBAL
12887 #else
12888 # ifdef DL_GLOBAL
12889 # define LT_DLGLOBAL DL_GLOBAL
12890 # else
12891 # define LT_DLGLOBAL 0
12892 # endif
12893 #endif
12894
12895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12896 find out it does not work in some platform. */
12897 #ifndef LT_DLLAZY_OR_NOW
12898 # ifdef RTLD_LAZY
12899 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12900 # else
12901 # ifdef DL_LAZY
12902 # define LT_DLLAZY_OR_NOW DL_LAZY
12903 # else
12904 # ifdef RTLD_NOW
12905 # define LT_DLLAZY_OR_NOW RTLD_NOW
12906 # else
12907 # ifdef DL_NOW
12908 # define LT_DLLAZY_OR_NOW DL_NOW
12909 # else
12910 # define LT_DLLAZY_OR_NOW 0
12911 # endif
12912 # endif
12913 # endif
12914 # endif
12915 #endif
12916
12917 /* When -fvisibility=hidden is used, assume the code has been annotated
12918 correspondingly for the symbols needed. */
12919 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12920 int fnord () __attribute__((visibility("default")));
12921 #endif
12922
12923 int fnord () { return 42; }
12924 int main ()
12925 {
12926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12927 int status = $lt_dlunknown;
12928
12929 if (self)
12930 {
12931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12932 else
12933 {
12934 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12935 else puts (dlerror ());
12936 }
12937 /* dlclose (self); */
12938 }
12939 else
12940 puts (dlerror ());
12941
12942 return status;
12943 }
12944 _LT_EOF
12945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12946 (eval $ac_link) 2>&5
12947 ac_status=$?
12948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12950 (./conftest; exit; ) >&5 2>/dev/null
12951 lt_status=$?
12952 case x$lt_status in
12953 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12954 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12955 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12956 esac
12957 else :
12958 # compilation failed
12959 lt_cv_dlopen_self_static=no
12960 fi
12961 fi
12962 rm -fr conftest*
12963
12964
12965 fi
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12967 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12968 fi
12969
12970 CPPFLAGS=$save_CPPFLAGS
12971 LDFLAGS=$save_LDFLAGS
12972 LIBS=$save_LIBS
12973 ;;
12974 esac
12975
12976 case $lt_cv_dlopen_self in
12977 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12978 *) enable_dlopen_self=unknown ;;
12979 esac
12980
12981 case $lt_cv_dlopen_self_static in
12982 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12983 *) enable_dlopen_self_static=unknown ;;
12984 esac
12985 fi
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003 striplib=
13004 old_striplib=
13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13006 printf %s "checking whether stripping libraries is possible... " >&6; }
13007 if test -z "$STRIP"; then
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009 printf "%s\n" "no" >&6; }
13010 else
13011 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13012 old_striplib="$STRIP --strip-debug"
13013 striplib="$STRIP --strip-unneeded"
13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13015 printf "%s\n" "yes" >&6; }
13016 else
13017 case $host_os in
13018 darwin*)
13019 # FIXME - insert some real tests, host_os isn't really good enough
13020 striplib="$STRIP -x"
13021 old_striplib="$STRIP -S"
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13023 printf "%s\n" "yes" >&6; }
13024 ;;
13025 freebsd*)
13026 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13027 old_striplib="$STRIP --strip-debug"
13028 striplib="$STRIP --strip-unneeded"
13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13030 printf "%s\n" "yes" >&6; }
13031 else
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 printf "%s\n" "no" >&6; }
13034 fi
13035 ;;
13036 *)
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 printf "%s\n" "no" >&6; }
13039 ;;
13040 esac
13041 fi
13042 fi
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055 # Report what library types will actually be built
13056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13057 printf %s "checking if libtool supports shared libraries... " >&6; }
13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13059 printf "%s\n" "$can_build_shared" >&6; }
13060
13061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13062 printf %s "checking whether to build shared libraries... " >&6; }
13063 test no = "$can_build_shared" && enable_shared=no
13064
13065 # On AIX, shared libraries and static libraries use the same namespace, and
13066 # are all built from PIC.
13067 case $host_os in
13068 aix3*)
13069 test yes = "$enable_shared" && enable_static=no
13070 if test -n "$RANLIB"; then
13071 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13072 postinstall_cmds='$RANLIB $lib'
13073 fi
13074 ;;
13075
13076 aix[4-9]*)
13077 if test ia64 != "$host_cpu"; then
13078 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13079 yes,aix,yes) ;; # shared object as lib.so file only
13080 yes,svr4,*) ;; # shared object as lib.so archive member only
13081 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13082 esac
13083 fi
13084 ;;
13085 esac
13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13087 printf "%s\n" "$enable_shared" >&6; }
13088
13089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13090 printf %s "checking whether to build static libraries... " >&6; }
13091 # Make sure either enable_shared or enable_static is yes.
13092 test yes = "$enable_shared" || enable_static=yes
13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13094 printf "%s\n" "$enable_static" >&6; }
13095
13096
13097
13098
13099 fi
13100 ac_ext=c
13101 ac_cpp='$CPP $CPPFLAGS'
13102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13105
13106 CC=$lt_save_CC
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122 ac_config_commands="$ac_config_commands libtool"
13123
13124
13125
13126
13127 # Only expand once:
13128
13129
13130
13131
13132
13133
13134
13135
13136 ac_ext=cpp
13137 ac_cpp='$CXXCPP $CPPFLAGS'
13138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13141 if test -z "$CXX"; then
13142 if test -n "$CCC"; then
13143 CXX=$CCC
13144 else
13145 if test -n "$ac_tool_prefix"; then
13146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
13147 do
13148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151 printf %s "checking for $ac_word... " >&6; }
13152 if test ${ac_cv_prog_CXX+y}
13153 then :
13154 printf %s "(cached) " >&6
13155 else $as_nop
13156 if test -n "$CXX"; then
13157 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13158 else
13159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13161 do
13162 IFS=$as_save_IFS
13163 case $as_dir in #(((
13164 '') as_dir=./ ;;
13165 */) ;;
13166 *) as_dir=$as_dir/ ;;
13167 esac
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13170 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13172 break 2
13173 fi
13174 done
13175 done
13176 IFS=$as_save_IFS
13177
13178 fi
13179 fi
13180 CXX=$ac_cv_prog_CXX
13181 if test -n "$CXX"; then
13182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13183 printf "%s\n" "$CXX" >&6; }
13184 else
13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 printf "%s\n" "no" >&6; }
13187 fi
13188
13189
13190 test -n "$CXX" && break
13191 done
13192 fi
13193 if test -z "$CXX"; then
13194 ac_ct_CXX=$CXX
13195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
13196 do
13197 # Extract the first word of "$ac_prog", so it can be a program name with args.
13198 set dummy $ac_prog; ac_word=$2
13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200 printf %s "checking for $ac_word... " >&6; }
13201 if test ${ac_cv_prog_ac_ct_CXX+y}
13202 then :
13203 printf %s "(cached) " >&6
13204 else $as_nop
13205 if test -n "$ac_ct_CXX"; then
13206 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211 IFS=$as_save_IFS
13212 case $as_dir in #(((
13213 '') as_dir=./ ;;
13214 */) ;;
13215 *) as_dir=$as_dir/ ;;
13216 esac
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13219 ac_cv_prog_ac_ct_CXX="$ac_prog"
13220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13221 break 2
13222 fi
13223 done
13224 done
13225 IFS=$as_save_IFS
13226
13227 fi
13228 fi
13229 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13230 if test -n "$ac_ct_CXX"; then
13231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13232 printf "%s\n" "$ac_ct_CXX" >&6; }
13233 else
13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235 printf "%s\n" "no" >&6; }
13236 fi
13237
13238
13239 test -n "$ac_ct_CXX" && break
13240 done
13241
13242 if test "x$ac_ct_CXX" = x; then
13243 CXX="g++"
13244 else
13245 case $cross_compiling:$ac_tool_warned in
13246 yes:)
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13249 ac_tool_warned=yes ;;
13250 esac
13251 CXX=$ac_ct_CXX
13252 fi
13253 fi
13254
13255 fi
13256 fi
13257 # Provide some information about the compiler.
13258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13259 set X $ac_compile
13260 ac_compiler=$2
13261 for ac_option in --version -v -V -qversion; do
13262 { { ac_try="$ac_compiler $ac_option >&5"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266 esac
13267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13268 printf "%s\n" "$ac_try_echo"; } >&5
13269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13270 ac_status=$?
13271 if test -s conftest.err; then
13272 sed '10a\
13273 ... rest of stderr output deleted ...
13274 10q' conftest.err >conftest.er1
13275 cat conftest.er1 >&5
13276 fi
13277 rm -f conftest.er1 conftest.err
13278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13279 test $ac_status = 0; }
13280 done
13281
13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
13283 printf %s "checking whether the compiler supports GNU C++... " >&6; }
13284 if test ${ac_cv_cxx_compiler_gnu+y}
13285 then :
13286 printf %s "(cached) " >&6
13287 else $as_nop
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290
13291 int
13292 main (void)
13293 {
13294 #ifndef __GNUC__
13295 choke me
13296 #endif
13297
13298 ;
13299 return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_cxx_try_compile "$LINENO"
13303 then :
13304 ac_compiler_gnu=yes
13305 else $as_nop
13306 ac_compiler_gnu=no
13307 fi
13308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13309 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13310
13311 fi
13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13313 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
13314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13315
13316 if test $ac_compiler_gnu = yes; then
13317 GXX=yes
13318 else
13319 GXX=
13320 fi
13321 ac_test_CXXFLAGS=${CXXFLAGS+y}
13322 ac_save_CXXFLAGS=$CXXFLAGS
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13324 printf %s "checking whether $CXX accepts -g... " >&6; }
13325 if test ${ac_cv_prog_cxx_g+y}
13326 then :
13327 printf %s "(cached) " >&6
13328 else $as_nop
13329 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13330 ac_cxx_werror_flag=yes
13331 ac_cv_prog_cxx_g=no
13332 CXXFLAGS="-g"
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335
13336 int
13337 main (void)
13338 {
13339
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 if ac_fn_cxx_try_compile "$LINENO"
13345 then :
13346 ac_cv_prog_cxx_g=yes
13347 else $as_nop
13348 CXXFLAGS=""
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351
13352 int
13353 main (void)
13354 {
13355
13356 ;
13357 return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_cxx_try_compile "$LINENO"
13361 then :
13362
13363 else $as_nop
13364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13365 CXXFLAGS="-g"
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368
13369 int
13370 main (void)
13371 {
13372
13373 ;
13374 return 0;
13375 }
13376 _ACEOF
13377 if ac_fn_cxx_try_compile "$LINENO"
13378 then :
13379 ac_cv_prog_cxx_g=yes
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13384 fi
13385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13387 fi
13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13389 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
13390 if test $ac_test_CXXFLAGS; then
13391 CXXFLAGS=$ac_save_CXXFLAGS
13392 elif test $ac_cv_prog_cxx_g = yes; then
13393 if test "$GXX" = yes; then
13394 CXXFLAGS="-g -O2"
13395 else
13396 CXXFLAGS="-g"
13397 fi
13398 else
13399 if test "$GXX" = yes; then
13400 CXXFLAGS="-O2"
13401 else
13402 CXXFLAGS=
13403 fi
13404 fi
13405 ac_prog_cxx_stdcxx=no
13406 if test x$ac_prog_cxx_stdcxx = xno
13407 then :
13408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
13409 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
13410 if test ${ac_cv_prog_cxx_11+y}
13411 then :
13412 printf %s "(cached) " >&6
13413 else $as_nop
13414 ac_cv_prog_cxx_11=no
13415 ac_save_CXX=$CXX
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418 $ac_cxx_conftest_cxx11_program
13419 _ACEOF
13420 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
13421 do
13422 CXX="$ac_save_CXX $ac_arg"
13423 if ac_fn_cxx_try_compile "$LINENO"
13424 then :
13425 ac_cv_prog_cxx_cxx11=$ac_arg
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext conftest.beam
13428 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
13429 done
13430 rm -f conftest.$ac_ext
13431 CXX=$ac_save_CXX
13432 fi
13433
13434 if test "x$ac_cv_prog_cxx_cxx11" = xno
13435 then :
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13437 printf "%s\n" "unsupported" >&6; }
13438 else $as_nop
13439 if test "x$ac_cv_prog_cxx_cxx11" = x
13440 then :
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13442 printf "%s\n" "none needed" >&6; }
13443 else $as_nop
13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
13445 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
13446 CXX="$CXX $ac_cv_prog_cxx_cxx11"
13447 fi
13448 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
13449 ac_prog_cxx_stdcxx=cxx11
13450 fi
13451 fi
13452 if test x$ac_prog_cxx_stdcxx = xno
13453 then :
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
13455 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
13456 if test ${ac_cv_prog_cxx_98+y}
13457 then :
13458 printf %s "(cached) " >&6
13459 else $as_nop
13460 ac_cv_prog_cxx_98=no
13461 ac_save_CXX=$CXX
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464 $ac_cxx_conftest_cxx98_program
13465 _ACEOF
13466 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
13467 do
13468 CXX="$ac_save_CXX $ac_arg"
13469 if ac_fn_cxx_try_compile "$LINENO"
13470 then :
13471 ac_cv_prog_cxx_cxx98=$ac_arg
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext conftest.beam
13474 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
13475 done
13476 rm -f conftest.$ac_ext
13477 CXX=$ac_save_CXX
13478 fi
13479
13480 if test "x$ac_cv_prog_cxx_cxx98" = xno
13481 then :
13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13483 printf "%s\n" "unsupported" >&6; }
13484 else $as_nop
13485 if test "x$ac_cv_prog_cxx_cxx98" = x
13486 then :
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13488 printf "%s\n" "none needed" >&6; }
13489 else $as_nop
13490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
13491 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
13492 CXX="$CXX $ac_cv_prog_cxx_cxx98"
13493 fi
13494 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
13495 ac_prog_cxx_stdcxx=cxx98
13496 fi
13497 fi
13498
13499 ac_ext=c
13500 ac_cpp='$CPP $CPPFLAGS'
13501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13504
13505 depcc="$CXX" am_compiler_list=
13506
13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13508 printf %s "checking dependency style of $depcc... " >&6; }
13509 if test ${am_cv_CXX_dependencies_compiler_type+y}
13510 then :
13511 printf %s "(cached) " >&6
13512 else $as_nop
13513 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13514 # We make a subdir and do the tests there. Otherwise we can end up
13515 # making bogus files that we don't know about and never remove. For
13516 # instance it was reported that on HP-UX the gcc test will end up
13517 # making a dummy file named 'D' -- because '-MD' means "put the output
13518 # in D".
13519 rm -rf conftest.dir
13520 mkdir conftest.dir
13521 # Copy depcomp to subdir because otherwise we won't find it if we're
13522 # using a relative directory.
13523 cp "$am_depcomp" conftest.dir
13524 cd conftest.dir
13525 # We will build objects and dependencies in a subdirectory because
13526 # it helps to detect inapplicable dependency modes. For instance
13527 # both Tru64's cc and ICC support -MD to output dependencies as a
13528 # side effect of compilation, but ICC will put the dependencies in
13529 # the current directory while Tru64 will put them in the object
13530 # directory.
13531 mkdir sub
13532
13533 am_cv_CXX_dependencies_compiler_type=none
13534 if test "$am_compiler_list" = ""; then
13535 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13536 fi
13537 am__universal=false
13538 case " $depcc " in #(
13539 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13540 esac
13541
13542 for depmode in $am_compiler_list; do
13543 # Setup a source with many dependencies, because some compilers
13544 # like to wrap large dependency lists on column 80 (with \), and
13545 # we should not choose a depcomp mode which is confused by this.
13546 #
13547 # We need to recreate these files for each test, as the compiler may
13548 # overwrite some of them when testing with obscure command lines.
13549 # This happens at least with the AIX C compiler.
13550 : > sub/conftest.c
13551 for i in 1 2 3 4 5 6; do
13552 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13553 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13554 # Solaris 10 /bin/sh.
13555 echo '/* dummy */' > sub/conftst$i.h
13556 done
13557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13558
13559 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13560 # mode. It turns out that the SunPro C++ compiler does not properly
13561 # handle '-M -o', and we need to detect this. Also, some Intel
13562 # versions had trouble with output in subdirs.
13563 am__obj=sub/conftest.${OBJEXT-o}
13564 am__minus_obj="-o $am__obj"
13565 case $depmode in
13566 gcc)
13567 # This depmode causes a compiler race in universal mode.
13568 test "$am__universal" = false || continue
13569 ;;
13570 nosideeffect)
13571 # After this tag, mechanisms are not by side-effect, so they'll
13572 # only be used when explicitly requested.
13573 if test "x$enable_dependency_tracking" = xyes; then
13574 continue
13575 else
13576 break
13577 fi
13578 ;;
13579 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13580 # This compiler won't grok '-c -o', but also, the minuso test has
13581 # not run yet. These depmodes are late enough in the game, and
13582 # so weak that their functioning should not be impacted.
13583 am__obj=conftest.${OBJEXT-o}
13584 am__minus_obj=
13585 ;;
13586 none) break ;;
13587 esac
13588 if depmode=$depmode \
13589 source=sub/conftest.c object=$am__obj \
13590 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13591 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13592 >/dev/null 2>conftest.err &&
13593 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13595 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13597 # icc doesn't choke on unknown options, it will just issue warnings
13598 # or remarks (even with -Werror). So we grep stderr for any message
13599 # that says an option was ignored or not supported.
13600 # When given -MP, icc 7.0 and 7.1 complain thusly:
13601 # icc: Command line warning: ignoring option '-M'; no argument required
13602 # The diagnosis changed in icc 8.0:
13603 # icc: Command line remark: option '-MP' not supported
13604 if (grep 'ignoring option' conftest.err ||
13605 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13606 am_cv_CXX_dependencies_compiler_type=$depmode
13607 break
13608 fi
13609 fi
13610 done
13611
13612 cd ..
13613 rm -rf conftest.dir
13614 else
13615 am_cv_CXX_dependencies_compiler_type=none
13616 fi
13617
13618 fi
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13620 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
13621 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13622
13623 if
13624 test "x$enable_dependency_tracking" != xno \
13625 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13626 am__fastdepCXX_TRUE=
13627 am__fastdepCXX_FALSE='#'
13628 else
13629 am__fastdepCXX_TRUE='#'
13630 am__fastdepCXX_FALSE=
13631 fi
13632
13633
13634
13635
13636 func_stripname_cnf ()
13637 {
13638 case $2 in
13639 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13640 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13641 esac
13642 } # func_stripname_cnf
13643
13644 if test -n "$CXX" && ( test no != "$CXX" &&
13645 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13646 (test g++ != "$CXX"))); then
13647 ac_ext=cpp
13648 ac_cpp='$CXXCPP $CPPFLAGS'
13649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13653 printf %s "checking how to run the C++ preprocessor... " >&6; }
13654 if test -z "$CXXCPP"; then
13655 if test ${ac_cv_prog_CXXCPP+y}
13656 then :
13657 printf %s "(cached) " >&6
13658 else $as_nop
13659 # Double quotes because $CXX needs to be expanded
13660 for CXXCPP in "$CXX -E" cpp /lib/cpp
13661 do
13662 ac_preproc_ok=false
13663 for ac_cxx_preproc_warn_flag in '' yes
13664 do
13665 # Use a header file that comes with gcc, so configuring glibc
13666 # with a fresh cross-compiler works.
13667 # On the NeXT, cc -E runs the code through the compiler's parser,
13668 # not just through cpp. "Syntax error" is here to catch this case.
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 #include <limits.h>
13672 Syntax error
13673 _ACEOF
13674 if ac_fn_cxx_try_cpp "$LINENO"
13675 then :
13676
13677 else $as_nop
13678 # Broken: fails on valid input.
13679 continue
13680 fi
13681 rm -f conftest.err conftest.i conftest.$ac_ext
13682
13683 # OK, works on sane cases. Now check whether nonexistent headers
13684 # can be detected and how.
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 #include <ac_nonexistent.h>
13688 _ACEOF
13689 if ac_fn_cxx_try_cpp "$LINENO"
13690 then :
13691 # Broken: success on invalid input.
13692 continue
13693 else $as_nop
13694 # Passes both tests.
13695 ac_preproc_ok=:
13696 break
13697 fi
13698 rm -f conftest.err conftest.i conftest.$ac_ext
13699
13700 done
13701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13702 rm -f conftest.i conftest.err conftest.$ac_ext
13703 if $ac_preproc_ok
13704 then :
13705 break
13706 fi
13707
13708 done
13709 ac_cv_prog_CXXCPP=$CXXCPP
13710
13711 fi
13712 CXXCPP=$ac_cv_prog_CXXCPP
13713 else
13714 ac_cv_prog_CXXCPP=$CXXCPP
13715 fi
13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13717 printf "%s\n" "$CXXCPP" >&6; }
13718 ac_preproc_ok=false
13719 for ac_cxx_preproc_warn_flag in '' yes
13720 do
13721 # Use a header file that comes with gcc, so configuring glibc
13722 # with a fresh cross-compiler works.
13723 # On the NeXT, cc -E runs the code through the compiler's parser,
13724 # not just through cpp. "Syntax error" is here to catch this case.
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 #include <limits.h>
13728 Syntax error
13729 _ACEOF
13730 if ac_fn_cxx_try_cpp "$LINENO"
13731 then :
13732
13733 else $as_nop
13734 # Broken: fails on valid input.
13735 continue
13736 fi
13737 rm -f conftest.err conftest.i conftest.$ac_ext
13738
13739 # OK, works on sane cases. Now check whether nonexistent headers
13740 # can be detected and how.
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 #include <ac_nonexistent.h>
13744 _ACEOF
13745 if ac_fn_cxx_try_cpp "$LINENO"
13746 then :
13747 # Broken: success on invalid input.
13748 continue
13749 else $as_nop
13750 # Passes both tests.
13751 ac_preproc_ok=:
13752 break
13753 fi
13754 rm -f conftest.err conftest.i conftest.$ac_ext
13755
13756 done
13757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13758 rm -f conftest.i conftest.err conftest.$ac_ext
13759 if $ac_preproc_ok
13760 then :
13761
13762 else $as_nop
13763 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13764 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13765 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13766 See \`config.log' for more details" "$LINENO" 5; }
13767 fi
13768
13769 ac_ext=c
13770 ac_cpp='$CPP $CPPFLAGS'
13771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13774
13775 else
13776 _lt_caught_CXX_error=yes
13777 fi
13778
13779 ac_ext=cpp
13780 ac_cpp='$CXXCPP $CPPFLAGS'
13781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13784
13785 archive_cmds_need_lc_CXX=no
13786 allow_undefined_flag_CXX=
13787 always_export_symbols_CXX=no
13788 archive_expsym_cmds_CXX=
13789 compiler_needs_object_CXX=no
13790 export_dynamic_flag_spec_CXX=
13791 hardcode_direct_CXX=no
13792 hardcode_direct_absolute_CXX=no
13793 hardcode_libdir_flag_spec_CXX=
13794 hardcode_libdir_separator_CXX=
13795 hardcode_minus_L_CXX=no
13796 hardcode_shlibpath_var_CXX=unsupported
13797 hardcode_automatic_CXX=no
13798 inherit_rpath_CXX=no
13799 module_cmds_CXX=
13800 module_expsym_cmds_CXX=
13801 link_all_deplibs_CXX=unknown
13802 old_archive_cmds_CXX=$old_archive_cmds
13803 reload_flag_CXX=$reload_flag
13804 reload_cmds_CXX=$reload_cmds
13805 no_undefined_flag_CXX=
13806 whole_archive_flag_spec_CXX=
13807 enable_shared_with_static_runtimes_CXX=no
13808
13809 # Source file extension for C++ test sources.
13810 ac_ext=cpp
13811
13812 # Object file extension for compiled C++ test sources.
13813 objext=o
13814 objext_CXX=$objext
13815
13816 # No sense in running all these tests if we already determined that
13817 # the CXX compiler isn't working. Some variables (like enable_shared)
13818 # are currently assumed to apply to all compilers on this platform,
13819 # and will be corrupted by setting them based on a non-working compiler.
13820 if test yes != "$_lt_caught_CXX_error"; then
13821 # Code to be used in simple compile tests
13822 lt_simple_compile_test_code="int some_variable = 0;"
13823
13824 # Code to be used in simple link tests
13825 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13826
13827 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13828
13829
13830
13831
13832
13833
13834 # If no C compiler was specified, use CC.
13835 LTCC=${LTCC-"$CC"}
13836
13837 # If no C compiler flags were specified, use CFLAGS.
13838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13839
13840 # Allow CC to be a program name with arguments.
13841 compiler=$CC
13842
13843
13844 # save warnings/boilerplate of simple test code
13845 ac_outfile=conftest.$ac_objext
13846 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13847 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13848 _lt_compiler_boilerplate=`cat conftest.err`
13849 $RM conftest*
13850
13851 ac_outfile=conftest.$ac_objext
13852 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13853 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13854 _lt_linker_boilerplate=`cat conftest.err`
13855 $RM -r conftest*
13856
13857
13858 # Allow CC to be a program name with arguments.
13859 lt_save_CC=$CC
13860 lt_save_CFLAGS=$CFLAGS
13861 lt_save_LD=$LD
13862 lt_save_GCC=$GCC
13863 GCC=$GXX
13864 lt_save_with_gnu_ld=$with_gnu_ld
13865 lt_save_path_LD=$lt_cv_path_LD
13866 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13867 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13868 else
13869 $as_unset lt_cv_prog_gnu_ld
13870 fi
13871 if test -n "${lt_cv_path_LDCXX+set}"; then
13872 lt_cv_path_LD=$lt_cv_path_LDCXX
13873 else
13874 $as_unset lt_cv_path_LD
13875 fi
13876 test -z "${LDCXX+set}" || LD=$LDCXX
13877 CC=${CXX-"c++"}
13878 CFLAGS=$CXXFLAGS
13879 compiler=$CC
13880 compiler_CXX=$CC
13881 func_cc_basename $compiler
13882 cc_basename=$func_cc_basename_result
13883
13884
13885 if test -n "$compiler"; then
13886 # We don't want -fno-exception when compiling C++ code, so set the
13887 # no_builtin_flag separately
13888 if test yes = "$GXX"; then
13889 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13890 else
13891 lt_prog_compiler_no_builtin_flag_CXX=
13892 fi
13893
13894 if test yes = "$GXX"; then
13895 # Set up default GNU C++ configuration
13896
13897
13898
13899 # Check whether --with-gnu-ld was given.
13900 if test ${with_gnu_ld+y}
13901 then :
13902 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13903 else $as_nop
13904 with_gnu_ld=no
13905 fi
13906
13907 ac_prog=ld
13908 if test yes = "$GCC"; then
13909 # Check if gcc -print-prog-name=ld gives a path.
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13911 printf %s "checking for ld used by $CC... " >&6; }
13912 case $host in
13913 *-*-mingw*)
13914 # gcc leaves a trailing carriage return, which upsets mingw
13915 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13916 *)
13917 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13918 esac
13919 case $ac_prog in
13920 # Accept absolute paths.
13921 [\\/]* | ?:[\\/]*)
13922 re_direlt='/[^/][^/]*/\.\./'
13923 # Canonicalize the pathname of ld
13924 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13925 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13926 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13927 done
13928 test -z "$LD" && LD=$ac_prog
13929 ;;
13930 "")
13931 # If it fails, then pretend we aren't using GCC.
13932 ac_prog=ld
13933 ;;
13934 *)
13935 # If it is relative, then search for the first ld in PATH.
13936 with_gnu_ld=unknown
13937 ;;
13938 esac
13939 elif test yes = "$with_gnu_ld"; then
13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13941 printf %s "checking for GNU ld... " >&6; }
13942 else
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13944 printf %s "checking for non-GNU ld... " >&6; }
13945 fi
13946 if test ${lt_cv_path_LD+y}
13947 then :
13948 printf %s "(cached) " >&6
13949 else $as_nop
13950 if test -z "$LD"; then
13951 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13952 for ac_dir in $PATH; do
13953 IFS=$lt_save_ifs
13954 test -z "$ac_dir" && ac_dir=.
13955 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13956 lt_cv_path_LD=$ac_dir/$ac_prog
13957 # Check to see if the program is GNU ld. I'd rather use --version,
13958 # but apparently some variants of GNU ld only accept -v.
13959 # Break only if it was the GNU/non-GNU ld that we prefer.
13960 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13961 *GNU* | *'with BFD'*)
13962 test no != "$with_gnu_ld" && break
13963 ;;
13964 *)
13965 test yes != "$with_gnu_ld" && break
13966 ;;
13967 esac
13968 fi
13969 done
13970 IFS=$lt_save_ifs
13971 else
13972 lt_cv_path_LD=$LD # Let the user override the test with a path.
13973 fi
13974 fi
13975
13976 LD=$lt_cv_path_LD
13977 if test -n "$LD"; then
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13979 printf "%s\n" "$LD" >&6; }
13980 else
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 printf "%s\n" "no" >&6; }
13983 fi
13984 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13986 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13987 if test ${lt_cv_prog_gnu_ld+y}
13988 then :
13989 printf %s "(cached) " >&6
13990 else $as_nop
13991 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13992 case `$LD -v 2>&1 </dev/null` in
13993 *GNU* | *'with BFD'*)
13994 lt_cv_prog_gnu_ld=yes
13995 ;;
13996 *)
13997 lt_cv_prog_gnu_ld=no
13998 ;;
13999 esac
14000 fi
14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14002 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14003 with_gnu_ld=$lt_cv_prog_gnu_ld
14004
14005
14006
14007
14008
14009
14010
14011 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14012 # archiving commands below assume that GNU ld is being used.
14013 if test yes = "$with_gnu_ld"; then
14014 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14015 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'
14016
14017 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14018 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14019
14020 # If archive_cmds runs LD, not CC, wlarc should be empty
14021 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14022 # investigate it a little bit more. (MM)
14023 wlarc='$wl'
14024
14025 # ancient GNU ld didn't support --whole-archive et. al.
14026 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14027 $GREP 'no-whole-archive' > /dev/null; then
14028 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14029 else
14030 whole_archive_flag_spec_CXX=
14031 fi
14032 else
14033 with_gnu_ld=no
14034 wlarc=
14035
14036 # A generic and very simple default shared library creation
14037 # command for GNU C++ for the case where it uses the native
14038 # linker, instead of GNU ld. If possible, this setting should
14039 # overridden to take advantage of the native linker features on
14040 # the platform it is being used on.
14041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14042 fi
14043
14044 # Commands to make compiler produce verbose output that lists
14045 # what "hidden" libraries, object files and flags are used when
14046 # linking a shared library.
14047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14048
14049 else
14050 GXX=no
14051 with_gnu_ld=no
14052 wlarc=
14053 fi
14054
14055 # PORTME: fill in a description of your system's C++ link characteristics
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14057 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14058 ld_shlibs_CXX=yes
14059 case $host_os in
14060 aix3*)
14061 # FIXME: insert proper C++ library support
14062 ld_shlibs_CXX=no
14063 ;;
14064 aix[4-9]*)
14065 if test ia64 = "$host_cpu"; then
14066 # On IA64, the linker does run time linking by default, so we don't
14067 # have to do anything special.
14068 aix_use_runtimelinking=no
14069 exp_sym_flag='-Bexport'
14070 no_entry_flag=
14071 else
14072 aix_use_runtimelinking=no
14073
14074 # Test if we are trying to use run time linking or normal
14075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14076 # have runtime linking enabled, and use it for executables.
14077 # For shared libraries, we enable/disable runtime linking
14078 # depending on the kind of the shared library created -
14079 # when "with_aix_soname,aix_use_runtimelinking" is:
14080 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14081 # "aix,yes" lib.so shared, rtl:yes, for executables
14082 # lib.a static archive
14083 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14084 # lib.a(lib.so.V) shared, rtl:no, for executables
14085 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14086 # lib.a(lib.so.V) shared, rtl:no
14087 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14088 # lib.a static archive
14089 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14090 for ld_flag in $LDFLAGS; do
14091 case $ld_flag in
14092 *-brtl*)
14093 aix_use_runtimelinking=yes
14094 break
14095 ;;
14096 esac
14097 done
14098 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14099 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14100 # so we don't have lib.a shared libs to link our executables.
14101 # We have to force runtime linking in this case.
14102 aix_use_runtimelinking=yes
14103 LDFLAGS="$LDFLAGS -Wl,-brtl"
14104 fi
14105 ;;
14106 esac
14107
14108 exp_sym_flag='-bexport'
14109 no_entry_flag='-bnoentry'
14110 fi
14111
14112 # When large executables or shared objects are built, AIX ld can
14113 # have problems creating the table of contents. If linking a library
14114 # or program results in "error TOC overflow" add -mminimal-toc to
14115 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14116 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14117
14118 archive_cmds_CXX=''
14119 hardcode_direct_CXX=yes
14120 hardcode_direct_absolute_CXX=yes
14121 hardcode_libdir_separator_CXX=':'
14122 link_all_deplibs_CXX=yes
14123 file_list_spec_CXX='$wl-f,'
14124 case $with_aix_soname,$aix_use_runtimelinking in
14125 aix,*) ;; # no import file
14126 svr4,* | *,yes) # use import file
14127 # The Import File defines what to hardcode.
14128 hardcode_direct_CXX=no
14129 hardcode_direct_absolute_CXX=no
14130 ;;
14131 esac
14132
14133 if test yes = "$GXX"; then
14134 case $host_os in aix4.[012]|aix4.[012].*)
14135 # We only want to do this on AIX 4.2 and lower, the check
14136 # below for broken collect2 doesn't work under 4.3+
14137 collect2name=`$CC -print-prog-name=collect2`
14138 if test -f "$collect2name" &&
14139 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14140 then
14141 # We have reworked collect2
14142 :
14143 else
14144 # We have old collect2
14145 hardcode_direct_CXX=unsupported
14146 # It fails to find uninstalled libraries when the uninstalled
14147 # path is not listed in the libpath. Setting hardcode_minus_L
14148 # to unsupported forces relinking
14149 hardcode_minus_L_CXX=yes
14150 hardcode_libdir_flag_spec_CXX='-L$libdir'
14151 hardcode_libdir_separator_CXX=
14152 fi
14153 esac
14154 shared_flag='-shared'
14155 if test yes = "$aix_use_runtimelinking"; then
14156 shared_flag=$shared_flag' $wl-G'
14157 fi
14158 # Need to ensure runtime linking is disabled for the traditional
14159 # shared library, or the linker may eventually find shared libraries
14160 # /with/ Import File - we do not want to mix them.
14161 shared_flag_aix='-shared'
14162 shared_flag_svr4='-shared $wl-G'
14163 else
14164 # not using gcc
14165 if test ia64 = "$host_cpu"; then
14166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14167 # chokes on -Wl,-G. The following line is correct:
14168 shared_flag='-G'
14169 else
14170 if test yes = "$aix_use_runtimelinking"; then
14171 shared_flag='$wl-G'
14172 else
14173 shared_flag='$wl-bM:SRE'
14174 fi
14175 shared_flag_aix='$wl-bM:SRE'
14176 shared_flag_svr4='$wl-G'
14177 fi
14178 fi
14179
14180 export_dynamic_flag_spec_CXX='$wl-bexpall'
14181 # It seems that -bexpall does not export symbols beginning with
14182 # underscore (_), so it is better to generate a list of symbols to
14183 # export.
14184 always_export_symbols_CXX=yes
14185 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14186 # Warning - without using the other runtime loading flags (-brtl),
14187 # -berok will link without error, but may produce a broken library.
14188 # The "-G" linker flag allows undefined symbols.
14189 no_undefined_flag_CXX='-bernotok'
14190 # Determine the default libpath from the value encoded in an empty
14191 # executable.
14192 if test set = "${lt_cv_aix_libpath+set}"; then
14193 aix_libpath=$lt_cv_aix_libpath
14194 else
14195 if test ${lt_cv_aix_libpath__CXX+y}
14196 then :
14197 printf %s "(cached) " >&6
14198 else $as_nop
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201
14202 int
14203 main (void)
14204 {
14205
14206 ;
14207 return 0;
14208 }
14209 _ACEOF
14210 if ac_fn_cxx_try_link "$LINENO"
14211 then :
14212
14213 lt_aix_libpath_sed='
14214 /Import File Strings/,/^$/ {
14215 /^0/ {
14216 s/^0 *\([^ ]*\) *$/\1/
14217 p
14218 }
14219 }'
14220 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14221 # Check for a 64-bit object if we didn't find anything.
14222 if test -z "$lt_cv_aix_libpath__CXX"; then
14223 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14224 fi
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14227 conftest$ac_exeext conftest.$ac_ext
14228 if test -z "$lt_cv_aix_libpath__CXX"; then
14229 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14230 fi
14231
14232 fi
14233
14234 aix_libpath=$lt_cv_aix_libpath__CXX
14235 fi
14236
14237 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14238
14239 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
14240 else
14241 if test ia64 = "$host_cpu"; then
14242 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14243 allow_undefined_flag_CXX="-z nodefs"
14244 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"
14245 else
14246 # Determine the default libpath from the value encoded in an
14247 # empty executable.
14248 if test set = "${lt_cv_aix_libpath+set}"; then
14249 aix_libpath=$lt_cv_aix_libpath
14250 else
14251 if test ${lt_cv_aix_libpath__CXX+y}
14252 then :
14253 printf %s "(cached) " >&6
14254 else $as_nop
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257
14258 int
14259 main (void)
14260 {
14261
14262 ;
14263 return 0;
14264 }
14265 _ACEOF
14266 if ac_fn_cxx_try_link "$LINENO"
14267 then :
14268
14269 lt_aix_libpath_sed='
14270 /Import File Strings/,/^$/ {
14271 /^0/ {
14272 s/^0 *\([^ ]*\) *$/\1/
14273 p
14274 }
14275 }'
14276 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14277 # Check for a 64-bit object if we didn't find anything.
14278 if test -z "$lt_cv_aix_libpath__CXX"; then
14279 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14280 fi
14281 fi
14282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14283 conftest$ac_exeext conftest.$ac_ext
14284 if test -z "$lt_cv_aix_libpath__CXX"; then
14285 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14286 fi
14287
14288 fi
14289
14290 aix_libpath=$lt_cv_aix_libpath__CXX
14291 fi
14292
14293 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14294 # Warning - without using the other run time loading flags,
14295 # -berok will link without error, but may produce a broken library.
14296 no_undefined_flag_CXX=' $wl-bernotok'
14297 allow_undefined_flag_CXX=' $wl-berok'
14298 if test yes = "$with_gnu_ld"; then
14299 # We only use this code for GNU lds that support --whole-archive.
14300 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14301 else
14302 # Exported symbols can be pulled into shared objects from archives
14303 whole_archive_flag_spec_CXX='$convenience'
14304 fi
14305 archive_cmds_need_lc_CXX=yes
14306 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14307 # -brtl affects multiple linker settings, -berok does not and is overridden later
14308 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14309 if test svr4 != "$with_aix_soname"; then
14310 # This is similar to how AIX traditionally builds its shared
14311 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14312 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'
14313 fi
14314 if test aix != "$with_aix_soname"; then
14315 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'
14316 else
14317 # used by -dlpreopen to get the symbols
14318 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14319 fi
14320 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14321 fi
14322 fi
14323 ;;
14324
14325 beos*)
14326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14327 allow_undefined_flag_CXX=unsupported
14328 # Joseph Beckenbach <[email protected]> says some releases of gcc
14329 # support --undefined. This deserves some investigation. FIXME
14330 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14331 else
14332 ld_shlibs_CXX=no
14333 fi
14334 ;;
14335
14336 chorus*)
14337 case $cc_basename in
14338 *)
14339 # FIXME: insert proper C++ library support
14340 ld_shlibs_CXX=no
14341 ;;
14342 esac
14343 ;;
14344
14345 cygwin* | mingw* | pw32* | cegcc*)
14346 case $GXX,$cc_basename in
14347 ,cl* | no,cl* | ,icl* | no,icl*)
14348 # Native MSVC or ICC
14349 # hardcode_libdir_flag_spec is actually meaningless, as there is
14350 # no search path for DLLs.
14351 hardcode_libdir_flag_spec_CXX=' '
14352 allow_undefined_flag_CXX=unsupported
14353 always_export_symbols_CXX=yes
14354 file_list_spec_CXX='@'
14355 # Tell ltmain to make .lib files, not .a files.
14356 libext=lib
14357 # Tell ltmain to make .dll files, not .so files.
14358 shrext_cmds=.dll
14359 # FIXME: Setting linknames here is a bad hack.
14360 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14361 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14362 cp "$export_symbols" "$output_objdir/$soname.def";
14363 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14364 else
14365 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14366 fi~
14367 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14368 linknames='
14369 # The linker will not automatically build a static lib if we build a DLL.
14370 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14371 enable_shared_with_static_runtimes_CXX=yes
14372 # Don't use ranlib
14373 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14374 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14375 lt_tool_outputfile="@TOOL_OUTPUT@"~
14376 case $lt_outputfile in
14377 *.exe|*.EXE) ;;
14378 *)
14379 lt_outputfile=$lt_outputfile.exe
14380 lt_tool_outputfile=$lt_tool_outputfile.exe
14381 ;;
14382 esac~
14383 func_to_tool_file "$lt_outputfile"~
14384 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14385 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14386 $RM "$lt_outputfile.manifest";
14387 fi'
14388 ;;
14389 *)
14390 # g++
14391 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14392 # as there is no search path for DLLs.
14393 hardcode_libdir_flag_spec_CXX='-L$libdir'
14394 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14395 allow_undefined_flag_CXX=unsupported
14396 always_export_symbols_CXX=no
14397 enable_shared_with_static_runtimes_CXX=yes
14398
14399 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14400 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'
14401 # If the export-symbols file already is a .def file, use it as
14402 # is; otherwise, prepend EXPORTS...
14403 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14404 cp $export_symbols $output_objdir/$soname.def;
14405 else
14406 echo EXPORTS > $output_objdir/$soname.def;
14407 cat $export_symbols >> $output_objdir/$soname.def;
14408 fi~
14409 $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'
14410 else
14411 ld_shlibs_CXX=no
14412 fi
14413 ;;
14414 esac
14415 ;;
14416 darwin* | rhapsody*)
14417
14418
14419 archive_cmds_need_lc_CXX=no
14420 hardcode_direct_CXX=no
14421 hardcode_automatic_CXX=yes
14422 hardcode_shlibpath_var_CXX=unsupported
14423 if test yes = "$lt_cv_ld_force_load"; then
14424 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\"`'
14425
14426 else
14427 whole_archive_flag_spec_CXX=''
14428 fi
14429 link_all_deplibs_CXX=yes
14430 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14431 case $cc_basename in
14432 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14433 *) _lt_dar_can_shared=$GCC ;;
14434 esac
14435 if test yes = "$_lt_dar_can_shared"; then
14436 output_verbose_link_cmd=func_echo_all
14437 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"
14438 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14439 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"
14440 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"
14441 if test yes != "$lt_cv_apple_cc_single_mod"; then
14442 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"
14443 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"
14444 fi
14445
14446 else
14447 ld_shlibs_CXX=no
14448 fi
14449
14450 ;;
14451
14452 os2*)
14453 hardcode_libdir_flag_spec_CXX='-L$libdir'
14454 hardcode_minus_L_CXX=yes
14455 allow_undefined_flag_CXX=unsupported
14456 shrext_cmds=.dll
14457 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14458 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14459 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14460 $ECHO EXPORTS >> $output_objdir/$libname.def~
14461 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14462 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14463 emximp -o $lib $output_objdir/$libname.def'
14464 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14465 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14466 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14467 $ECHO EXPORTS >> $output_objdir/$libname.def~
14468 prefix_cmds="$SED"~
14469 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14470 prefix_cmds="$prefix_cmds -e 1d";
14471 fi~
14472 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14473 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14474 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14475 emximp -o $lib $output_objdir/$libname.def'
14476 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14477 enable_shared_with_static_runtimes_CXX=yes
14478 file_list_spec_CXX='@'
14479 ;;
14480
14481 dgux*)
14482 case $cc_basename in
14483 ec++*)
14484 # FIXME: insert proper C++ library support
14485 ld_shlibs_CXX=no
14486 ;;
14487 ghcx*)
14488 # Green Hills C++ Compiler
14489 # FIXME: insert proper C++ library support
14490 ld_shlibs_CXX=no
14491 ;;
14492 *)
14493 # FIXME: insert proper C++ library support
14494 ld_shlibs_CXX=no
14495 ;;
14496 esac
14497 ;;
14498
14499 freebsd2.*)
14500 # C++ shared libraries reported to be fairly broken before
14501 # switch to ELF
14502 ld_shlibs_CXX=no
14503 ;;
14504
14505 freebsd-elf*)
14506 archive_cmds_need_lc_CXX=no
14507 ;;
14508
14509 freebsd* | dragonfly* | midnightbsd*)
14510 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14511 # conventions
14512 ld_shlibs_CXX=yes
14513 ;;
14514
14515 haiku*)
14516 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14517 link_all_deplibs_CXX=yes
14518 ;;
14519
14520 hpux9*)
14521 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14522 hardcode_libdir_separator_CXX=:
14523 export_dynamic_flag_spec_CXX='$wl-E'
14524 hardcode_direct_CXX=yes
14525 hardcode_minus_L_CXX=yes # Not in the search PATH,
14526 # but as the default
14527 # location of the library.
14528
14529 case $cc_basename in
14530 CC*)
14531 # FIXME: insert proper C++ library support
14532 ld_shlibs_CXX=no
14533 ;;
14534 aCC*)
14535 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'
14536 # Commands to make compiler produce verbose output that lists
14537 # what "hidden" libraries, object files and flags are used when
14538 # linking a shared library.
14539 #
14540 # There doesn't appear to be a way to prevent this compiler from
14541 # explicitly linking system object files so we need to strip them
14542 # from the output so that they don't get included in the library
14543 # dependencies.
14544 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"'
14545 ;;
14546 *)
14547 if test yes = "$GXX"; then
14548 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'
14549 else
14550 # FIXME: insert proper C++ library support
14551 ld_shlibs_CXX=no
14552 fi
14553 ;;
14554 esac
14555 ;;
14556
14557 hpux10*|hpux11*)
14558 if test no = "$with_gnu_ld"; then
14559 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14560 hardcode_libdir_separator_CXX=:
14561
14562 case $host_cpu in
14563 hppa*64*|ia64*)
14564 ;;
14565 *)
14566 export_dynamic_flag_spec_CXX='$wl-E'
14567 ;;
14568 esac
14569 fi
14570 case $host_cpu in
14571 hppa*64*|ia64*)
14572 hardcode_direct_CXX=no
14573 hardcode_shlibpath_var_CXX=no
14574 ;;
14575 *)
14576 hardcode_direct_CXX=yes
14577 hardcode_direct_absolute_CXX=yes
14578 hardcode_minus_L_CXX=yes # Not in the search PATH,
14579 # but as the default
14580 # location of the library.
14581 ;;
14582 esac
14583
14584 case $cc_basename in
14585 CC*)
14586 # FIXME: insert proper C++ library support
14587 ld_shlibs_CXX=no
14588 ;;
14589 aCC*)
14590 case $host_cpu in
14591 hppa*64*)
14592 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14593 ;;
14594 ia64*)
14595 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14596 ;;
14597 *)
14598 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14599 ;;
14600 esac
14601 # Commands to make compiler produce verbose output that lists
14602 # what "hidden" libraries, object files and flags are used when
14603 # linking a shared library.
14604 #
14605 # There doesn't appear to be a way to prevent this compiler from
14606 # explicitly linking system object files so we need to strip them
14607 # from the output so that they don't get included in the library
14608 # dependencies.
14609 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"'
14610 ;;
14611 *)
14612 if test yes = "$GXX"; then
14613 if test no = "$with_gnu_ld"; then
14614 case $host_cpu in
14615 hppa*64*)
14616 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14617 ;;
14618 ia64*)
14619 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14620 ;;
14621 *)
14622 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'
14623 ;;
14624 esac
14625 fi
14626 else
14627 # FIXME: insert proper C++ library support
14628 ld_shlibs_CXX=no
14629 fi
14630 ;;
14631 esac
14632 ;;
14633
14634 interix[3-9]*)
14635 hardcode_direct_CXX=no
14636 hardcode_shlibpath_var_CXX=no
14637 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14638 export_dynamic_flag_spec_CXX='$wl-E'
14639 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14640 # Instead, shared libraries are loaded at an image base (0x10000000 by
14641 # default) and relocated if they conflict, which is a slow very memory
14642 # consuming and fragmenting process. To avoid this, we pick a random,
14643 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14644 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14645 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'
14646 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'
14647 ;;
14648 irix5* | irix6*)
14649 case $cc_basename in
14650 CC*)
14651 # SGI C++
14652 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'
14653
14654 # Archives containing C++ object files must be created using
14655 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14656 # necessary to make sure instantiated templates are included
14657 # in the archive.
14658 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14659 ;;
14660 *)
14661 if test yes = "$GXX"; then
14662 if test no = "$with_gnu_ld"; then
14663 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'
14664 else
14665 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'
14666 fi
14667 fi
14668 link_all_deplibs_CXX=yes
14669 ;;
14670 esac
14671 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14672 hardcode_libdir_separator_CXX=:
14673 inherit_rpath_CXX=yes
14674 ;;
14675
14676 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14677 case $cc_basename in
14678 KCC*)
14679 # Kuck and Associates, Inc. (KAI) C++ Compiler
14680
14681 # KCC will only create a shared library if the output file
14682 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14683 # to its proper name (with version) after linking.
14684 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'
14685 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'
14686 # Commands to make compiler produce verbose output that lists
14687 # what "hidden" libraries, object files and flags are used when
14688 # linking a shared library.
14689 #
14690 # There doesn't appear to be a way to prevent this compiler from
14691 # explicitly linking system object files so we need to strip them
14692 # from the output so that they don't get included in the library
14693 # dependencies.
14694 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"'
14695
14696 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14697 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14698
14699 # Archives containing C++ object files must be created using
14700 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14701 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14702 ;;
14703 icpc* | ecpc* )
14704 # Intel C++
14705 with_gnu_ld=yes
14706 # version 8.0 and above of icpc choke on multiply defined symbols
14707 # if we add $predep_objects and $postdep_objects, however 7.1 and
14708 # earlier do not add the objects themselves.
14709 case `$CC -V 2>&1` in
14710 *"Version 7."*)
14711 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14712 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'
14713 ;;
14714 *) # Version 8.0 or newer
14715 tmp_idyn=
14716 case $host_cpu in
14717 ia64*) tmp_idyn=' -i_dynamic';;
14718 esac
14719 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14720 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'
14721 ;;
14722 esac
14723 archive_cmds_need_lc_CXX=no
14724 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14725 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14726 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14727 ;;
14728 pgCC* | pgcpp*)
14729 # Portland Group C++ compiler
14730 case `$CC -V` in
14731 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14732 prelink_cmds_CXX='tpldir=Template.dir~
14733 rm -rf $tpldir~
14734 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14735 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14736 old_archive_cmds_CXX='tpldir=Template.dir~
14737 rm -rf $tpldir~
14738 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14739 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14740 $RANLIB $oldlib'
14741 archive_cmds_CXX='tpldir=Template.dir~
14742 rm -rf $tpldir~
14743 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14744 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14745 archive_expsym_cmds_CXX='tpldir=Template.dir~
14746 rm -rf $tpldir~
14747 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14748 $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'
14749 ;;
14750 *) # Version 6 and above use weak symbols
14751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14752 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'
14753 ;;
14754 esac
14755
14756 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14757 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14758 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'
14759 ;;
14760 cxx*)
14761 # Compaq C++
14762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14763 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'
14764
14765 runpath_var=LD_RUN_PATH
14766 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14767 hardcode_libdir_separator_CXX=:
14768
14769 # Commands to make compiler produce verbose output that lists
14770 # what "hidden" libraries, object files and flags are used when
14771 # linking a shared library.
14772 #
14773 # There doesn't appear to be a way to prevent this compiler from
14774 # explicitly linking system object files so we need to strip them
14775 # from the output so that they don't get included in the library
14776 # dependencies.
14777 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'
14778 ;;
14779 xl* | mpixl* | bgxl*)
14780 # IBM XL 8.0 on PPC, with GNU ld
14781 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14782 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14783 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14784 if test yes = "$supports_anon_versioning"; then
14785 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14786 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14787 echo "local: *; };" >> $output_objdir/$libname.ver~
14788 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14789 fi
14790 ;;
14791 *)
14792 case `$CC -V 2>&1 | $SED 5q` in
14793 *Sun\ C*)
14794 # Sun C++ 5.9
14795 no_undefined_flag_CXX=' -zdefs'
14796 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14797 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'
14798 hardcode_libdir_flag_spec_CXX='-R$libdir'
14799 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'
14800 compiler_needs_object_CXX=yes
14801
14802 # Not sure whether something based on
14803 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14804 # would be better.
14805 output_verbose_link_cmd='func_echo_all'
14806
14807 # Archives containing C++ object files must be created using
14808 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14809 # necessary to make sure instantiated templates are included
14810 # in the archive.
14811 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14812 ;;
14813 esac
14814 ;;
14815 esac
14816 ;;
14817
14818 lynxos*)
14819 # FIXME: insert proper C++ library support
14820 ld_shlibs_CXX=no
14821 ;;
14822
14823 m88k*)
14824 # FIXME: insert proper C++ library support
14825 ld_shlibs_CXX=no
14826 ;;
14827
14828 mvs*)
14829 case $cc_basename in
14830 cxx*)
14831 # FIXME: insert proper C++ library support
14832 ld_shlibs_CXX=no
14833 ;;
14834 *)
14835 # FIXME: insert proper C++ library support
14836 ld_shlibs_CXX=no
14837 ;;
14838 esac
14839 ;;
14840
14841 netbsd*)
14842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14843 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14844 wlarc=
14845 hardcode_libdir_flag_spec_CXX='-R$libdir'
14846 hardcode_direct_CXX=yes
14847 hardcode_shlibpath_var_CXX=no
14848 fi
14849 # Workaround some broken pre-1.5 toolchains
14850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14851 ;;
14852
14853 *nto* | *qnx*)
14854 ld_shlibs_CXX=yes
14855 ;;
14856
14857 openbsd* | bitrig*)
14858 if test -f /usr/libexec/ld.so; then
14859 hardcode_direct_CXX=yes
14860 hardcode_shlibpath_var_CXX=no
14861 hardcode_direct_absolute_CXX=yes
14862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14863 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14864 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14865 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14866 export_dynamic_flag_spec_CXX='$wl-E'
14867 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14868 fi
14869 output_verbose_link_cmd=func_echo_all
14870 else
14871 ld_shlibs_CXX=no
14872 fi
14873 ;;
14874
14875 osf3* | osf4* | osf5*)
14876 case $cc_basename in
14877 KCC*)
14878 # Kuck and Associates, Inc. (KAI) C++ Compiler
14879
14880 # KCC will only create a shared library if the output file
14881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14882 # to its proper name (with version) after linking.
14883 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'
14884
14885 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14886 hardcode_libdir_separator_CXX=:
14887
14888 # Archives containing C++ object files must be created using
14889 # the KAI C++ compiler.
14890 case $host in
14891 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14892 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14893 esac
14894 ;;
14895 RCC*)
14896 # Rational C++ 2.4.1
14897 # FIXME: insert proper C++ library support
14898 ld_shlibs_CXX=no
14899 ;;
14900 cxx*)
14901 case $host in
14902 osf3*)
14903 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14904 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'
14905 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14906 ;;
14907 *)
14908 allow_undefined_flag_CXX=' -expect_unresolved \*'
14909 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'
14910 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14911 echo "-hidden">> $lib.exp~
14912 $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~
14913 $RM $lib.exp'
14914 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14915 ;;
14916 esac
14917
14918 hardcode_libdir_separator_CXX=:
14919
14920 # Commands to make compiler produce verbose output that lists
14921 # what "hidden" libraries, object files and flags are used when
14922 # linking a shared library.
14923 #
14924 # There doesn't appear to be a way to prevent this compiler from
14925 # explicitly linking system object files so we need to strip them
14926 # from the output so that they don't get included in the library
14927 # dependencies.
14928 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"'
14929 ;;
14930 *)
14931 if test yes,no = "$GXX,$with_gnu_ld"; then
14932 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14933 case $host in
14934 osf3*)
14935 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'
14936 ;;
14937 *)
14938 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'
14939 ;;
14940 esac
14941
14942 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14943 hardcode_libdir_separator_CXX=:
14944
14945 # Commands to make compiler produce verbose output that lists
14946 # what "hidden" libraries, object files and flags are used when
14947 # linking a shared library.
14948 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14949
14950 else
14951 # FIXME: insert proper C++ library support
14952 ld_shlibs_CXX=no
14953 fi
14954 ;;
14955 esac
14956 ;;
14957
14958 psos*)
14959 # FIXME: insert proper C++ library support
14960 ld_shlibs_CXX=no
14961 ;;
14962
14963 sunos4*)
14964 case $cc_basename in
14965 CC*)
14966 # Sun C++ 4.x
14967 # FIXME: insert proper C++ library support
14968 ld_shlibs_CXX=no
14969 ;;
14970 lcc*)
14971 # Lucid
14972 # FIXME: insert proper C++ library support
14973 ld_shlibs_CXX=no
14974 ;;
14975 *)
14976 # FIXME: insert proper C++ library support
14977 ld_shlibs_CXX=no
14978 ;;
14979 esac
14980 ;;
14981
14982 solaris*)
14983 case $cc_basename in
14984 CC* | sunCC*)
14985 # Sun C++ 4.2, 5.x and Centerline C++
14986 archive_cmds_need_lc_CXX=yes
14987 no_undefined_flag_CXX=' -zdefs'
14988 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14989 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14990 $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'
14991
14992 hardcode_libdir_flag_spec_CXX='-R$libdir'
14993 hardcode_shlibpath_var_CXX=no
14994 case $host_os in
14995 solaris2.[0-5] | solaris2.[0-5].*) ;;
14996 *)
14997 # The compiler driver will combine and reorder linker options,
14998 # but understands '-z linker_flag'.
14999 # Supported since Solaris 2.6 (maybe 2.5.1?)
15000 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15001 ;;
15002 esac
15003 link_all_deplibs_CXX=yes
15004
15005 output_verbose_link_cmd='func_echo_all'
15006
15007 # Archives containing C++ object files must be created using
15008 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15009 # necessary to make sure instantiated templates are included
15010 # in the archive.
15011 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15012 ;;
15013 gcx*)
15014 # Green Hills C++ Compiler
15015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15016
15017 # The C++ compiler must be used to create the archive.
15018 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15019 ;;
15020 *)
15021 # GNU C++ compiler with Solaris linker
15022 if test yes,no = "$GXX,$with_gnu_ld"; then
15023 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15024 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15025 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15026 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15027 $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'
15028
15029 # Commands to make compiler produce verbose output that lists
15030 # what "hidden" libraries, object files and flags are used when
15031 # linking a shared library.
15032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15033 else
15034 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15035 # platform.
15036 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15037 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15038 $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'
15039
15040 # Commands to make compiler produce verbose output that lists
15041 # what "hidden" libraries, object files and flags are used when
15042 # linking a shared library.
15043 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15044 fi
15045
15046 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15047 case $host_os in
15048 solaris2.[0-5] | solaris2.[0-5].*) ;;
15049 *)
15050 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15051 ;;
15052 esac
15053 fi
15054 ;;
15055 esac
15056 ;;
15057
15058 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15059 no_undefined_flag_CXX='$wl-z,text'
15060 archive_cmds_need_lc_CXX=no
15061 hardcode_shlibpath_var_CXX=no
15062 runpath_var='LD_RUN_PATH'
15063
15064 case $cc_basename in
15065 CC*)
15066 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15067 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15068 ;;
15069 *)
15070 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15072 ;;
15073 esac
15074 ;;
15075
15076 sysv5* | sco3.2v5* | sco5v6*)
15077 # Note: We CANNOT use -z defs as we might desire, because we do not
15078 # link with -lc, and that would cause any symbols used from libc to
15079 # always be unresolved, which means just about no library would
15080 # ever link correctly. If we're not using GNU ld we use -z text
15081 # though, which does catch some bad symbols but isn't as heavy-handed
15082 # as -z defs.
15083 no_undefined_flag_CXX='$wl-z,text'
15084 allow_undefined_flag_CXX='$wl-z,nodefs'
15085 archive_cmds_need_lc_CXX=no
15086 hardcode_shlibpath_var_CXX=no
15087 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15088 hardcode_libdir_separator_CXX=':'
15089 link_all_deplibs_CXX=yes
15090 export_dynamic_flag_spec_CXX='$wl-Bexport'
15091 runpath_var='LD_RUN_PATH'
15092
15093 case $cc_basename in
15094 CC*)
15095 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15096 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15097 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15098 '"$old_archive_cmds_CXX"
15099 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15100 '"$reload_cmds_CXX"
15101 ;;
15102 *)
15103 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15104 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 ;;
15106 esac
15107 ;;
15108
15109 tandem*)
15110 case $cc_basename in
15111 NCC*)
15112 # NonStop-UX NCC 3.20
15113 # FIXME: insert proper C++ library support
15114 ld_shlibs_CXX=no
15115 ;;
15116 *)
15117 # FIXME: insert proper C++ library support
15118 ld_shlibs_CXX=no
15119 ;;
15120 esac
15121 ;;
15122
15123 vxworks*)
15124 # FIXME: insert proper C++ library support
15125 ld_shlibs_CXX=no
15126 ;;
15127
15128 *)
15129 # FIXME: insert proper C++ library support
15130 ld_shlibs_CXX=no
15131 ;;
15132 esac
15133
15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15135 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15136 test no = "$ld_shlibs_CXX" && can_build_shared=no
15137
15138 GCC_CXX=$GXX
15139 LD_CXX=$LD
15140
15141 ## CAVEAT EMPTOR:
15142 ## There is no encapsulation within the following macros, do not change
15143 ## the running order or otherwise move them around unless you know exactly
15144 ## what you are doing...
15145 # Dependencies to place before and after the object being linked:
15146 predep_objects_CXX=
15147 postdep_objects_CXX=
15148 predeps_CXX=
15149 postdeps_CXX=
15150 compiler_lib_search_path_CXX=
15151
15152 cat > conftest.$ac_ext <<_LT_EOF
15153 class Foo
15154 {
15155 public:
15156 Foo (void) { a = 0; }
15157 private:
15158 int a;
15159 };
15160 _LT_EOF
15161
15162
15163 _lt_libdeps_save_CFLAGS=$CFLAGS
15164 case "$CC $CFLAGS " in #(
15165 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15166 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15167 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15168 esac
15169
15170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15171 (eval $ac_compile) 2>&5
15172 ac_status=$?
15173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15174 test $ac_status = 0; }; then
15175 # Parse the compiler output and extract the necessary
15176 # objects, libraries and library flags.
15177
15178 # Sentinel used to keep track of whether or not we are before
15179 # the conftest object file.
15180 pre_test_object_deps_done=no
15181
15182 for p in `eval "$output_verbose_link_cmd"`; do
15183 case $prev$p in
15184
15185 -L* | -R* | -l*)
15186 # Some compilers place space between "-{L,R}" and the path.
15187 # Remove the space.
15188 if test x-L = "$p" ||
15189 test x-R = "$p"; then
15190 prev=$p
15191 continue
15192 fi
15193
15194 # Expand the sysroot to ease extracting the directories later.
15195 if test -z "$prev"; then
15196 case $p in
15197 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15198 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15199 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15200 esac
15201 fi
15202 case $p in
15203 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15204 esac
15205 if test no = "$pre_test_object_deps_done"; then
15206 case $prev in
15207 -L | -R)
15208 # Internal compiler library paths should come after those
15209 # provided the user. The postdeps already come after the
15210 # user supplied libs so there is no need to process them.
15211 if test -z "$compiler_lib_search_path_CXX"; then
15212 compiler_lib_search_path_CXX=$prev$p
15213 else
15214 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15215 fi
15216 ;;
15217 # The "-l" case would never come before the object being
15218 # linked, so don't bother handling this case.
15219 esac
15220 else
15221 if test -z "$postdeps_CXX"; then
15222 postdeps_CXX=$prev$p
15223 else
15224 postdeps_CXX="${postdeps_CXX} $prev$p"
15225 fi
15226 fi
15227 prev=
15228 ;;
15229
15230 *.lto.$objext) ;; # Ignore GCC LTO objects
15231 *.$objext)
15232 # This assumes that the test object file only shows up
15233 # once in the compiler output.
15234 if test "$p" = "conftest.$objext"; then
15235 pre_test_object_deps_done=yes
15236 continue
15237 fi
15238
15239 if test no = "$pre_test_object_deps_done"; then
15240 if test -z "$predep_objects_CXX"; then
15241 predep_objects_CXX=$p
15242 else
15243 predep_objects_CXX="$predep_objects_CXX $p"
15244 fi
15245 else
15246 if test -z "$postdep_objects_CXX"; then
15247 postdep_objects_CXX=$p
15248 else
15249 postdep_objects_CXX="$postdep_objects_CXX $p"
15250 fi
15251 fi
15252 ;;
15253
15254 *) ;; # Ignore the rest.
15255
15256 esac
15257 done
15258
15259 # Clean up.
15260 rm -f a.out a.exe
15261 else
15262 echo "libtool.m4: error: problem compiling CXX test program"
15263 fi
15264
15265 $RM -f confest.$objext
15266 CFLAGS=$_lt_libdeps_save_CFLAGS
15267
15268 # PORTME: override above test on systems where it is broken
15269 case $host_os in
15270 interix[3-9]*)
15271 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15272 # hack all around it, let's just trust "g++" to DTRT.
15273 predep_objects_CXX=
15274 postdep_objects_CXX=
15275 postdeps_CXX=
15276 ;;
15277 esac
15278
15279
15280 case " $postdeps_CXX " in
15281 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15282 esac
15283 compiler_lib_search_dirs_CXX=
15284 if test -n "${compiler_lib_search_path_CXX}"; then
15285 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15286 fi
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318 lt_prog_compiler_wl_CXX=
15319 lt_prog_compiler_pic_CXX=
15320 lt_prog_compiler_static_CXX=
15321
15322
15323 # C++ specific cases for pic, static, wl, etc.
15324 if test yes = "$GXX"; then
15325 lt_prog_compiler_wl_CXX='-Wl,'
15326 lt_prog_compiler_static_CXX='-static'
15327
15328 case $host_os in
15329 aix*)
15330 # All AIX code is PIC.
15331 if test ia64 = "$host_cpu"; then
15332 # AIX 5 now supports IA64 processor
15333 lt_prog_compiler_static_CXX='-Bstatic'
15334 fi
15335 lt_prog_compiler_pic_CXX='-fPIC'
15336 ;;
15337
15338 amigaos*)
15339 case $host_cpu in
15340 powerpc)
15341 # see comment about AmigaOS4 .so support
15342 lt_prog_compiler_pic_CXX='-fPIC'
15343 ;;
15344 m68k)
15345 # FIXME: we need at least 68020 code to build shared libraries, but
15346 # adding the '-m68020' flag to GCC prevents building anything better,
15347 # like '-m68040'.
15348 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15349 ;;
15350 esac
15351 ;;
15352
15353 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15354 # PIC is the default for these OSes.
15355 ;;
15356 mingw* | cygwin* | os2* | pw32* | cegcc*)
15357 # This hack is so that the source file can tell whether it is being
15358 # built for inclusion in a dll (and should export symbols for example).
15359 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15360 # (--disable-auto-import) libraries
15361 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15362 case $host_os in
15363 os2*)
15364 lt_prog_compiler_static_CXX='$wl-static'
15365 ;;
15366 esac
15367 ;;
15368 darwin* | rhapsody*)
15369 # PIC is the default on this platform
15370 # Common symbols not allowed in MH_DYLIB files
15371 lt_prog_compiler_pic_CXX='-fno-common'
15372 ;;
15373 *djgpp*)
15374 # DJGPP does not support shared libraries at all
15375 lt_prog_compiler_pic_CXX=
15376 ;;
15377 haiku*)
15378 # PIC is the default for Haiku.
15379 # The "-static" flag exists, but is broken.
15380 lt_prog_compiler_static_CXX=
15381 ;;
15382 interix[3-9]*)
15383 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15384 # Instead, we relocate shared libraries at runtime.
15385 ;;
15386 sysv4*MP*)
15387 if test -d /usr/nec; then
15388 lt_prog_compiler_pic_CXX=-Kconform_pic
15389 fi
15390 ;;
15391 hpux*)
15392 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15393 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15394 # sets the default TLS model and affects inlining.
15395 case $host_cpu in
15396 hppa*64*)
15397 ;;
15398 *)
15399 lt_prog_compiler_pic_CXX='-fPIC'
15400 ;;
15401 esac
15402 ;;
15403 *qnx* | *nto*)
15404 # QNX uses GNU C++, but need to define -shared option too, otherwise
15405 # it will coredump.
15406 lt_prog_compiler_pic_CXX='-fPIC -shared'
15407 ;;
15408 *)
15409 lt_prog_compiler_pic_CXX='-fPIC'
15410 ;;
15411 esac
15412 else
15413 case $host_os in
15414 aix[4-9]*)
15415 # All AIX code is PIC.
15416 if test ia64 = "$host_cpu"; then
15417 # AIX 5 now supports IA64 processor
15418 lt_prog_compiler_static_CXX='-Bstatic'
15419 else
15420 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15421 fi
15422 ;;
15423 chorus*)
15424 case $cc_basename in
15425 cxch68*)
15426 # Green Hills C++ Compiler
15427 # _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"
15428 ;;
15429 esac
15430 ;;
15431 mingw* | cygwin* | os2* | pw32* | cegcc*)
15432 # This hack is so that the source file can tell whether it is being
15433 # built for inclusion in a dll (and should export symbols for example).
15434 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15435 ;;
15436 dgux*)
15437 case $cc_basename in
15438 ec++*)
15439 lt_prog_compiler_pic_CXX='-KPIC'
15440 ;;
15441 ghcx*)
15442 # Green Hills C++ Compiler
15443 lt_prog_compiler_pic_CXX='-pic'
15444 ;;
15445 *)
15446 ;;
15447 esac
15448 ;;
15449 freebsd* | dragonfly* | midnightbsd*)
15450 # FreeBSD uses GNU C++
15451 ;;
15452 hpux9* | hpux10* | hpux11*)
15453 case $cc_basename in
15454 CC*)
15455 lt_prog_compiler_wl_CXX='-Wl,'
15456 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15457 if test ia64 != "$host_cpu"; then
15458 lt_prog_compiler_pic_CXX='+Z'
15459 fi
15460 ;;
15461 aCC*)
15462 lt_prog_compiler_wl_CXX='-Wl,'
15463 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15464 case $host_cpu in
15465 hppa*64*|ia64*)
15466 # +Z the default
15467 ;;
15468 *)
15469 lt_prog_compiler_pic_CXX='+Z'
15470 ;;
15471 esac
15472 ;;
15473 *)
15474 ;;
15475 esac
15476 ;;
15477 interix*)
15478 # This is c89, which is MS Visual C++ (no shared libs)
15479 # Anyone wants to do a port?
15480 ;;
15481 irix5* | irix6* | nonstopux*)
15482 case $cc_basename in
15483 CC*)
15484 lt_prog_compiler_wl_CXX='-Wl,'
15485 lt_prog_compiler_static_CXX='-non_shared'
15486 # CC pic flag -KPIC is the default.
15487 ;;
15488 *)
15489 ;;
15490 esac
15491 ;;
15492 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15493 case $cc_basename in
15494 KCC*)
15495 # KAI C++ Compiler
15496 lt_prog_compiler_wl_CXX='--backend -Wl,'
15497 lt_prog_compiler_pic_CXX='-fPIC'
15498 ;;
15499 ecpc* )
15500 # old Intel C++ for x86_64, which still supported -KPIC.
15501 lt_prog_compiler_wl_CXX='-Wl,'
15502 lt_prog_compiler_pic_CXX='-KPIC'
15503 lt_prog_compiler_static_CXX='-static'
15504 ;;
15505 icpc* )
15506 # Intel C++, used to be incompatible with GCC.
15507 # ICC 10 doesn't accept -KPIC any more.
15508 lt_prog_compiler_wl_CXX='-Wl,'
15509 lt_prog_compiler_pic_CXX='-fPIC'
15510 lt_prog_compiler_static_CXX='-static'
15511 ;;
15512 pgCC* | pgcpp*)
15513 # Portland Group C++ compiler
15514 lt_prog_compiler_wl_CXX='-Wl,'
15515 lt_prog_compiler_pic_CXX='-fpic'
15516 lt_prog_compiler_static_CXX='-Bstatic'
15517 ;;
15518 cxx*)
15519 # Compaq C++
15520 # Make sure the PIC flag is empty. It appears that all Alpha
15521 # Linux and Compaq Tru64 Unix objects are PIC.
15522 lt_prog_compiler_pic_CXX=
15523 lt_prog_compiler_static_CXX='-non_shared'
15524 ;;
15525 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15526 # IBM XL 8.0, 9.0 on PPC and BlueGene
15527 lt_prog_compiler_wl_CXX='-Wl,'
15528 lt_prog_compiler_pic_CXX='-qpic'
15529 lt_prog_compiler_static_CXX='-qstaticlink'
15530 ;;
15531 *)
15532 case `$CC -V 2>&1 | $SED 5q` in
15533 *Sun\ C*)
15534 # Sun C++ 5.9
15535 lt_prog_compiler_pic_CXX='-KPIC'
15536 lt_prog_compiler_static_CXX='-Bstatic'
15537 lt_prog_compiler_wl_CXX='-Qoption ld '
15538 ;;
15539 esac
15540 ;;
15541 esac
15542 ;;
15543 lynxos*)
15544 ;;
15545 m88k*)
15546 ;;
15547 mvs*)
15548 case $cc_basename in
15549 cxx*)
15550 lt_prog_compiler_pic_CXX='-W c,exportall'
15551 ;;
15552 *)
15553 ;;
15554 esac
15555 ;;
15556 netbsd* | netbsdelf*-gnu)
15557 ;;
15558 *qnx* | *nto*)
15559 # QNX uses GNU C++, but need to define -shared option too, otherwise
15560 # it will coredump.
15561 lt_prog_compiler_pic_CXX='-fPIC -shared'
15562 ;;
15563 osf3* | osf4* | osf5*)
15564 case $cc_basename in
15565 KCC*)
15566 lt_prog_compiler_wl_CXX='--backend -Wl,'
15567 ;;
15568 RCC*)
15569 # Rational C++ 2.4.1
15570 lt_prog_compiler_pic_CXX='-pic'
15571 ;;
15572 cxx*)
15573 # Digital/Compaq C++
15574 lt_prog_compiler_wl_CXX='-Wl,'
15575 # Make sure the PIC flag is empty. It appears that all Alpha
15576 # Linux and Compaq Tru64 Unix objects are PIC.
15577 lt_prog_compiler_pic_CXX=
15578 lt_prog_compiler_static_CXX='-non_shared'
15579 ;;
15580 *)
15581 ;;
15582 esac
15583 ;;
15584 psos*)
15585 ;;
15586 solaris*)
15587 case $cc_basename in
15588 CC* | sunCC*)
15589 # Sun C++ 4.2, 5.x and Centerline C++
15590 lt_prog_compiler_pic_CXX='-KPIC'
15591 lt_prog_compiler_static_CXX='-Bstatic'
15592 lt_prog_compiler_wl_CXX='-Qoption ld '
15593 ;;
15594 gcx*)
15595 # Green Hills C++ Compiler
15596 lt_prog_compiler_pic_CXX='-PIC'
15597 ;;
15598 *)
15599 ;;
15600 esac
15601 ;;
15602 sunos4*)
15603 case $cc_basename in
15604 CC*)
15605 # Sun C++ 4.x
15606 lt_prog_compiler_pic_CXX='-pic'
15607 lt_prog_compiler_static_CXX='-Bstatic'
15608 ;;
15609 lcc*)
15610 # Lucid
15611 lt_prog_compiler_pic_CXX='-pic'
15612 ;;
15613 *)
15614 ;;
15615 esac
15616 ;;
15617 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15618 case $cc_basename in
15619 CC*)
15620 lt_prog_compiler_wl_CXX='-Wl,'
15621 lt_prog_compiler_pic_CXX='-KPIC'
15622 lt_prog_compiler_static_CXX='-Bstatic'
15623 ;;
15624 esac
15625 ;;
15626 tandem*)
15627 case $cc_basename in
15628 NCC*)
15629 # NonStop-UX NCC 3.20
15630 lt_prog_compiler_pic_CXX='-KPIC'
15631 ;;
15632 *)
15633 ;;
15634 esac
15635 ;;
15636 vxworks*)
15637 ;;
15638 *)
15639 lt_prog_compiler_can_build_shared_CXX=no
15640 ;;
15641 esac
15642 fi
15643
15644 case $host_os in
15645 # For platforms that do not support PIC, -DPIC is meaningless:
15646 *djgpp*)
15647 lt_prog_compiler_pic_CXX=
15648 ;;
15649 *)
15650 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15651 ;;
15652 esac
15653
15654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15655 printf %s "checking for $compiler option to produce PIC... " >&6; }
15656 if test ${lt_cv_prog_compiler_pic_CXX+y}
15657 then :
15658 printf %s "(cached) " >&6
15659 else $as_nop
15660 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15661 fi
15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15663 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15664 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15665
15666 #
15667 # Check to make sure the PIC flag actually works.
15668 #
15669 if test -n "$lt_prog_compiler_pic_CXX"; then
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15671 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15672 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15673 then :
15674 printf %s "(cached) " >&6
15675 else $as_nop
15676 lt_cv_prog_compiler_pic_works_CXX=no
15677 ac_outfile=conftest.$ac_objext
15678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15679 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15680 # Insert the option either (1) after the last *FLAGS variable, or
15681 # (2) before a word containing "conftest.", or (3) at the end.
15682 # Note that $ac_compile itself does not contain backslashes and begins
15683 # with a dollar sign (not a hyphen), so the echo should work correctly.
15684 # The option is referenced via a variable to avoid confusing sed.
15685 lt_compile=`echo "$ac_compile" | $SED \
15686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15688 -e 's:$: $lt_compiler_flag:'`
15689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15690 (eval "$lt_compile" 2>conftest.err)
15691 ac_status=$?
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 if (exit $ac_status) && test -s "$ac_outfile"; then
15695 # The compiler can only warn and ignore the option if not recognized
15696 # So say no if there are warnings other than the usual output.
15697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15699 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15700 lt_cv_prog_compiler_pic_works_CXX=yes
15701 fi
15702 fi
15703 $RM conftest*
15704
15705 fi
15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15707 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15708
15709 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15710 case $lt_prog_compiler_pic_CXX in
15711 "" | " "*) ;;
15712 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15713 esac
15714 else
15715 lt_prog_compiler_pic_CXX=
15716 lt_prog_compiler_can_build_shared_CXX=no
15717 fi
15718
15719 fi
15720
15721
15722
15723
15724
15725 #
15726 # Check to make sure the static flag actually works.
15727 #
15728 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15730 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15731 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15732 then :
15733 printf %s "(cached) " >&6
15734 else $as_nop
15735 lt_cv_prog_compiler_static_works_CXX=no
15736 save_LDFLAGS=$LDFLAGS
15737 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15738 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15740 # The linker can only warn and ignore the option if not recognized
15741 # So say no if there are warnings
15742 if test -s conftest.err; then
15743 # Append any errors to the config.log.
15744 cat conftest.err 1>&5
15745 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15747 if diff conftest.exp conftest.er2 >/dev/null; then
15748 lt_cv_prog_compiler_static_works_CXX=yes
15749 fi
15750 else
15751 lt_cv_prog_compiler_static_works_CXX=yes
15752 fi
15753 fi
15754 $RM -r conftest*
15755 LDFLAGS=$save_LDFLAGS
15756
15757 fi
15758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15759 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15760
15761 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15762 :
15763 else
15764 lt_prog_compiler_static_CXX=
15765 fi
15766
15767
15768
15769
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15771 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15772 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15773 then :
15774 printf %s "(cached) " >&6
15775 else $as_nop
15776 lt_cv_prog_compiler_c_o_CXX=no
15777 $RM -r conftest 2>/dev/null
15778 mkdir conftest
15779 cd conftest
15780 mkdir out
15781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15782
15783 lt_compiler_flag="-o out/conftest2.$ac_objext"
15784 # Insert the option either (1) after the last *FLAGS variable, or
15785 # (2) before a word containing "conftest.", or (3) at the end.
15786 # Note that $ac_compile itself does not contain backslashes and begins
15787 # with a dollar sign (not a hyphen), so the echo should work correctly.
15788 lt_compile=`echo "$ac_compile" | $SED \
15789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15791 -e 's:$: $lt_compiler_flag:'`
15792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15793 (eval "$lt_compile" 2>out/conftest.err)
15794 ac_status=$?
15795 cat out/conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15798 then
15799 # The compiler can only warn and ignore the option if not recognized
15800 # So say no if there are warnings
15801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15804 lt_cv_prog_compiler_c_o_CXX=yes
15805 fi
15806 fi
15807 chmod u+w . 2>&5
15808 $RM conftest*
15809 # SGI C++ compiler will create directory out/ii_files/ for
15810 # template instantiation
15811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15812 $RM out/* && rmdir out
15813 cd ..
15814 $RM -r conftest
15815 $RM conftest*
15816
15817 fi
15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15819 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15820
15821
15822
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15824 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15825 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15826 then :
15827 printf %s "(cached) " >&6
15828 else $as_nop
15829 lt_cv_prog_compiler_c_o_CXX=no
15830 $RM -r conftest 2>/dev/null
15831 mkdir conftest
15832 cd conftest
15833 mkdir out
15834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15835
15836 lt_compiler_flag="-o out/conftest2.$ac_objext"
15837 # Insert the option either (1) after the last *FLAGS variable, or
15838 # (2) before a word containing "conftest.", or (3) at the end.
15839 # Note that $ac_compile itself does not contain backslashes and begins
15840 # with a dollar sign (not a hyphen), so the echo should work correctly.
15841 lt_compile=`echo "$ac_compile" | $SED \
15842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15844 -e 's:$: $lt_compiler_flag:'`
15845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15846 (eval "$lt_compile" 2>out/conftest.err)
15847 ac_status=$?
15848 cat out/conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15851 then
15852 # The compiler can only warn and ignore the option if not recognized
15853 # So say no if there are warnings
15854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15857 lt_cv_prog_compiler_c_o_CXX=yes
15858 fi
15859 fi
15860 chmod u+w . 2>&5
15861 $RM conftest*
15862 # SGI C++ compiler will create directory out/ii_files/ for
15863 # template instantiation
15864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15865 $RM out/* && rmdir out
15866 cd ..
15867 $RM -r conftest
15868 $RM conftest*
15869
15870 fi
15871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15872 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15873
15874
15875
15876
15877 hard_links=nottested
15878 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15879 # do not overwrite the value of need_locks provided by the user
15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15881 printf %s "checking if we can lock with hard links... " >&6; }
15882 hard_links=yes
15883 $RM conftest*
15884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15885 touch conftest.a
15886 ln conftest.a conftest.b 2>&5 || hard_links=no
15887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15889 printf "%s\n" "$hard_links" >&6; }
15890 if test no = "$hard_links"; then
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15892 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15893 need_locks=warn
15894 fi
15895 else
15896 need_locks=no
15897 fi
15898
15899
15900
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15902 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15903
15904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15905 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15906 case $host_os in
15907 aix[4-9]*)
15908 # If we're using GNU nm, then we don't want the "-C" option.
15909 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15910 # Without the "-l" option, or with the "-B" option, AIX nm treats
15911 # weak defined symbols like other global defined symbols, whereas
15912 # GNU nm marks them as "W".
15913 # While the 'weak' keyword is ignored in the Export File, we need
15914 # it in the Import File for the 'aix-soname' feature, so we have
15915 # to replace the "-B" option with "-P" for AIX nm.
15916 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15917 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'
15918 else
15919 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 == "L") || (\$ 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'
15920 fi
15921 ;;
15922 pw32*)
15923 export_symbols_cmds_CXX=$ltdll_cmds
15924 ;;
15925 cygwin* | mingw* | cegcc*)
15926 case $cc_basename in
15927 cl* | icl*)
15928 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15929 ;;
15930 *)
15931 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'
15932 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15933 ;;
15934 esac
15935 ;;
15936 linux* | k*bsd*-gnu | gnu*)
15937 link_all_deplibs_CXX=no
15938 ;;
15939 *)
15940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15941 ;;
15942 esac
15943
15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15945 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15946 test no = "$ld_shlibs_CXX" && can_build_shared=no
15947
15948 with_gnu_ld_CXX=$with_gnu_ld
15949
15950
15951
15952
15953
15954
15955 #
15956 # Do we need to explicitly link libc?
15957 #
15958 case "x$archive_cmds_need_lc_CXX" in
15959 x|xyes)
15960 # Assume -lc should be added
15961 archive_cmds_need_lc_CXX=yes
15962
15963 if test yes,yes = "$GCC,$enable_shared"; then
15964 case $archive_cmds_CXX in
15965 *'~'*)
15966 # FIXME: we may have to deal with multi-command sequences.
15967 ;;
15968 '$CC '*)
15969 # Test whether the compiler implicitly links with -lc since on some
15970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15971 # to ld, don't add -lc before -lgcc.
15972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15973 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15974 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15975 then :
15976 printf %s "(cached) " >&6
15977 else $as_nop
15978 $RM conftest*
15979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15980
15981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15982 (eval $ac_compile) 2>&5
15983 ac_status=$?
15984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15985 test $ac_status = 0; } 2>conftest.err; then
15986 soname=conftest
15987 lib=conftest
15988 libobjs=conftest.$ac_objext
15989 deplibs=
15990 wl=$lt_prog_compiler_wl_CXX
15991 pic_flag=$lt_prog_compiler_pic_CXX
15992 compiler_flags=-v
15993 linker_flags=-v
15994 verstring=
15995 output_objdir=.
15996 libname=conftest
15997 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15998 allow_undefined_flag_CXX=
15999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16000 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16001 ac_status=$?
16002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16003 test $ac_status = 0; }
16004 then
16005 lt_cv_archive_cmds_need_lc_CXX=no
16006 else
16007 lt_cv_archive_cmds_need_lc_CXX=yes
16008 fi
16009 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16010 else
16011 cat conftest.err 1>&5
16012 fi
16013 $RM conftest*
16014
16015 fi
16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16017 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16018 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16019 ;;
16020 esac
16021 fi
16022 ;;
16023 esac
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16087 printf %s "checking dynamic linker characteristics... " >&6; }
16088
16089 library_names_spec=
16090 libname_spec='lib$name'
16091 soname_spec=
16092 shrext_cmds=.so
16093 postinstall_cmds=
16094 postuninstall_cmds=
16095 finish_cmds=
16096 finish_eval=
16097 shlibpath_var=
16098 shlibpath_overrides_runpath=unknown
16099 version_type=none
16100 dynamic_linker="$host_os ld.so"
16101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16102 need_lib_prefix=unknown
16103 hardcode_into_libs=no
16104
16105 # when you set need_version to no, make sure it does not cause -set_version
16106 # flags to be left without arguments
16107 need_version=unknown
16108
16109
16110
16111 case $host_os in
16112 aix3*)
16113 version_type=linux # correct to gnu/linux during the next big refactor
16114 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16115 shlibpath_var=LIBPATH
16116
16117 # AIX 3 has no versioning support, so we append a major version to the name.
16118 soname_spec='$libname$release$shared_ext$major'
16119 ;;
16120
16121 aix[4-9]*)
16122 version_type=linux # correct to gnu/linux during the next big refactor
16123 need_lib_prefix=no
16124 need_version=no
16125 hardcode_into_libs=yes
16126 if test ia64 = "$host_cpu"; then
16127 # AIX 5 supports IA64
16128 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16129 shlibpath_var=LD_LIBRARY_PATH
16130 else
16131 # With GCC up to 2.95.x, collect2 would create an import file
16132 # for dependence libraries. The import file would start with
16133 # the line '#! .'. This would cause the generated library to
16134 # depend on '.', always an invalid library. This was fixed in
16135 # development snapshots of GCC prior to 3.0.
16136 case $host_os in
16137 aix4 | aix4.[01] | aix4.[01].*)
16138 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16139 echo ' yes '
16140 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16141 :
16142 else
16143 can_build_shared=no
16144 fi
16145 ;;
16146 esac
16147 # Using Import Files as archive members, it is possible to support
16148 # filename-based versioning of shared library archives on AIX. While
16149 # this would work for both with and without runtime linking, it will
16150 # prevent static linking of such archives. So we do filename-based
16151 # shared library versioning with .so extension only, which is used
16152 # when both runtime linking and shared linking is enabled.
16153 # Unfortunately, runtime linking may impact performance, so we do
16154 # not want this to be the default eventually. Also, we use the
16155 # versioned .so libs for executables only if there is the -brtl
16156 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16157 # To allow for filename-based versioning support, we need to create
16158 # libNAME.so.V as an archive file, containing:
16159 # *) an Import File, referring to the versioned filename of the
16160 # archive as well as the shared archive member, telling the
16161 # bitwidth (32 or 64) of that shared object, and providing the
16162 # list of exported symbols of that shared object, eventually
16163 # decorated with the 'weak' keyword
16164 # *) the shared object with the F_LOADONLY flag set, to really avoid
16165 # it being seen by the linker.
16166 # At run time we better use the real file rather than another symlink,
16167 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16168
16169 case $with_aix_soname,$aix_use_runtimelinking in
16170 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16171 # soname into executable. Probably we can add versioning support to
16172 # collect2, so additional links can be useful in future.
16173 aix,yes) # traditional libtool
16174 dynamic_linker='AIX unversionable lib.so'
16175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16176 # instead of lib<name>.a to let people know that these are not
16177 # typical AIX shared libraries.
16178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16179 ;;
16180 aix,no) # traditional AIX only
16181 dynamic_linker='AIX lib.a(lib.so.V)'
16182 # We preserve .a as extension for shared libraries through AIX4.2
16183 # and later when we are not doing run time linking.
16184 library_names_spec='$libname$release.a $libname.a'
16185 soname_spec='$libname$release$shared_ext$major'
16186 ;;
16187 svr4,*) # full svr4 only
16188 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16189 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16190 # We do not specify a path in Import Files, so LIBPATH fires.
16191 shlibpath_overrides_runpath=yes
16192 ;;
16193 *,yes) # both, prefer svr4
16194 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16195 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16196 # unpreferred sharedlib libNAME.a needs extra handling
16197 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"'
16198 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"'
16199 # We do not specify a path in Import Files, so LIBPATH fires.
16200 shlibpath_overrides_runpath=yes
16201 ;;
16202 *,no) # both, prefer aix
16203 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16204 library_names_spec='$libname$release.a $libname.a'
16205 soname_spec='$libname$release$shared_ext$major'
16206 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16207 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)'
16208 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"'
16209 ;;
16210 esac
16211 shlibpath_var=LIBPATH
16212 fi
16213 ;;
16214
16215 amigaos*)
16216 case $host_cpu in
16217 powerpc)
16218 # Since July 2007 AmigaOS4 officially supports .so libraries.
16219 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16221 ;;
16222 m68k)
16223 library_names_spec='$libname.ixlibrary $libname.a'
16224 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16225 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'
16226 ;;
16227 esac
16228 ;;
16229
16230 beos*)
16231 library_names_spec='$libname$shared_ext'
16232 dynamic_linker="$host_os ld.so"
16233 shlibpath_var=LIBRARY_PATH
16234 ;;
16235
16236 bsdi[45]*)
16237 version_type=linux # correct to gnu/linux during the next big refactor
16238 need_version=no
16239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16240 soname_spec='$libname$release$shared_ext$major'
16241 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16244 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16245 # the default ld.so.conf also contains /usr/contrib/lib and
16246 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16247 # libtool to hard-code these into programs
16248 ;;
16249
16250 cygwin* | mingw* | pw32* | cegcc*)
16251 version_type=windows
16252 shrext_cmds=.dll
16253 need_version=no
16254 need_lib_prefix=no
16255
16256 case $GCC,$cc_basename in
16257 yes,*)
16258 # gcc
16259 library_names_spec='$libname.dll.a'
16260 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16261 postinstall_cmds='base_file=`basename \$file`~
16262 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16263 dldir=$destdir/`dirname \$dlpath`~
16264 test -d \$dldir || mkdir -p \$dldir~
16265 $install_prog $dir/$dlname \$dldir/$dlname~
16266 chmod a+x \$dldir/$dlname~
16267 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16268 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16269 fi'
16270 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16271 dlpath=$dir/\$dldll~
16272 $RM \$dlpath'
16273 shlibpath_overrides_runpath=yes
16274
16275 case $host_os in
16276 cygwin*)
16277 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16278 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16279
16280 ;;
16281 mingw* | cegcc*)
16282 # MinGW DLLs use traditional 'lib' prefix
16283 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16284 ;;
16285 pw32*)
16286 # pw32 DLLs use 'pw' prefix rather than 'lib'
16287 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16288 ;;
16289 esac
16290 dynamic_linker='Win32 ld.exe'
16291 ;;
16292
16293 *,cl* | *,icl*)
16294 # Native MSVC or ICC
16295 libname_spec='$name'
16296 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16297 library_names_spec='$libname.dll.lib'
16298
16299 case $build_os in
16300 mingw*)
16301 sys_lib_search_path_spec=
16302 lt_save_ifs=$IFS
16303 IFS=';'
16304 for lt_path in $LIB
16305 do
16306 IFS=$lt_save_ifs
16307 # Let DOS variable expansion print the short 8.3 style file name.
16308 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16309 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16310 done
16311 IFS=$lt_save_ifs
16312 # Convert to MSYS style.
16313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16314 ;;
16315 cygwin*)
16316 # Convert to unix form, then to dos form, then back to unix form
16317 # but this time dos style (no spaces!) so that the unix form looks
16318 # like /cygdrive/c/PROGRA~1:/cygdr...
16319 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16320 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16321 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16322 ;;
16323 *)
16324 sys_lib_search_path_spec=$LIB
16325 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16326 # It is most probably a Windows format PATH.
16327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16328 else
16329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16330 fi
16331 # FIXME: find the short name or the path components, as spaces are
16332 # common. (e.g. "Program Files" -> "PROGRA~1")
16333 ;;
16334 esac
16335
16336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16337 postinstall_cmds='base_file=`basename \$file`~
16338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16339 dldir=$destdir/`dirname \$dlpath`~
16340 test -d \$dldir || mkdir -p \$dldir~
16341 $install_prog $dir/$dlname \$dldir/$dlname'
16342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16343 dlpath=$dir/\$dldll~
16344 $RM \$dlpath'
16345 shlibpath_overrides_runpath=yes
16346 dynamic_linker='Win32 link.exe'
16347 ;;
16348
16349 *)
16350 # Assume MSVC and ICC wrapper
16351 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16352 dynamic_linker='Win32 ld.exe'
16353 ;;
16354 esac
16355 # FIXME: first we should search . and the directory the executable is in
16356 shlibpath_var=PATH
16357 ;;
16358
16359 darwin* | rhapsody*)
16360 dynamic_linker="$host_os dyld"
16361 version_type=darwin
16362 need_lib_prefix=no
16363 need_version=no
16364 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16365 soname_spec='$libname$release$major$shared_ext'
16366 shlibpath_overrides_runpath=yes
16367 shlibpath_var=DYLD_LIBRARY_PATH
16368 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16369
16370 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16371 ;;
16372
16373 dgux*)
16374 version_type=linux # correct to gnu/linux during the next big refactor
16375 need_lib_prefix=no
16376 need_version=no
16377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16378 soname_spec='$libname$release$shared_ext$major'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 ;;
16381
16382 freebsd* | dragonfly* | midnightbsd*)
16383 # DragonFly does not have aout. When/if they implement a new
16384 # versioning mechanism, adjust this.
16385 if test -x /usr/bin/objformat; then
16386 objformat=`/usr/bin/objformat`
16387 else
16388 case $host_os in
16389 freebsd[23].*) objformat=aout ;;
16390 *) objformat=elf ;;
16391 esac
16392 fi
16393 version_type=freebsd-$objformat
16394 case $version_type in
16395 freebsd-elf*)
16396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16397 soname_spec='$libname$release$shared_ext$major'
16398 need_version=no
16399 need_lib_prefix=no
16400 ;;
16401 freebsd-*)
16402 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16403 need_version=yes
16404 ;;
16405 esac
16406 shlibpath_var=LD_LIBRARY_PATH
16407 case $host_os in
16408 freebsd2.*)
16409 shlibpath_overrides_runpath=yes
16410 ;;
16411 freebsd3.[01]* | freebsdelf3.[01]*)
16412 shlibpath_overrides_runpath=yes
16413 hardcode_into_libs=yes
16414 ;;
16415 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16416 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16417 shlibpath_overrides_runpath=no
16418 hardcode_into_libs=yes
16419 ;;
16420 *) # from 4.6 on, and DragonFly
16421 shlibpath_overrides_runpath=yes
16422 hardcode_into_libs=yes
16423 ;;
16424 esac
16425 ;;
16426
16427 haiku*)
16428 version_type=linux # correct to gnu/linux during the next big refactor
16429 need_lib_prefix=no
16430 need_version=no
16431 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
16435 shlibpath_overrides_runpath=no
16436 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16437 hardcode_into_libs=yes
16438 ;;
16439
16440 hpux9* | hpux10* | hpux11*)
16441 # Give a soname corresponding to the major version so that dld.sl refuses to
16442 # link against other versions.
16443 version_type=sunos
16444 need_lib_prefix=no
16445 need_version=no
16446 case $host_cpu in
16447 ia64*)
16448 shrext_cmds='.so'
16449 hardcode_into_libs=yes
16450 dynamic_linker="$host_os dld.so"
16451 shlibpath_var=LD_LIBRARY_PATH
16452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16454 soname_spec='$libname$release$shared_ext$major'
16455 if test 32 = "$HPUX_IA64_MODE"; then
16456 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16457 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16458 else
16459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16460 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16461 fi
16462 ;;
16463 hppa*64*)
16464 shrext_cmds='.sl'
16465 hardcode_into_libs=yes
16466 dynamic_linker="$host_os dld.sl"
16467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16470 soname_spec='$libname$release$shared_ext$major'
16471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16473 ;;
16474 *)
16475 shrext_cmds='.sl'
16476 dynamic_linker="$host_os dld.sl"
16477 shlibpath_var=SHLIB_PATH
16478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16480 soname_spec='$libname$release$shared_ext$major'
16481 ;;
16482 esac
16483 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16484 postinstall_cmds='chmod 555 $lib'
16485 # or fails outright, so override atomically:
16486 install_override_mode=555
16487 ;;
16488
16489 interix[3-9]*)
16490 version_type=linux # correct to gnu/linux during the next big refactor
16491 need_lib_prefix=no
16492 need_version=no
16493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16494 soname_spec='$libname$release$shared_ext$major'
16495 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16496 shlibpath_var=LD_LIBRARY_PATH
16497 shlibpath_overrides_runpath=no
16498 hardcode_into_libs=yes
16499 ;;
16500
16501 irix5* | irix6* | nonstopux*)
16502 case $host_os in
16503 nonstopux*) version_type=nonstopux ;;
16504 *)
16505 if test yes = "$lt_cv_prog_gnu_ld"; then
16506 version_type=linux # correct to gnu/linux during the next big refactor
16507 else
16508 version_type=irix
16509 fi ;;
16510 esac
16511 need_lib_prefix=no
16512 need_version=no
16513 soname_spec='$libname$release$shared_ext$major'
16514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16515 case $host_os in
16516 irix5* | nonstopux*)
16517 libsuff= shlibsuff=
16518 ;;
16519 *)
16520 case $LD in # libtool.m4 will add one of these switches to LD
16521 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16522 libsuff= shlibsuff= libmagic=32-bit;;
16523 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16524 libsuff=32 shlibsuff=N32 libmagic=N32;;
16525 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16526 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16527 *) libsuff= shlibsuff= libmagic=never-match;;
16528 esac
16529 ;;
16530 esac
16531 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16532 shlibpath_overrides_runpath=no
16533 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16534 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16535 hardcode_into_libs=yes
16536 ;;
16537
16538 # No shared lib support for Linux oldld, aout, or coff.
16539 linux*oldld* | linux*aout* | linux*coff*)
16540 dynamic_linker=no
16541 ;;
16542
16543 linux*android*)
16544 version_type=none # Android doesn't support versioned libraries.
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='$libname$release$shared_ext'
16548 soname_spec='$libname$release$shared_ext'
16549 finish_cmds=
16550 shlibpath_var=LD_LIBRARY_PATH
16551 shlibpath_overrides_runpath=yes
16552
16553 # This implies no fast_install, which is unacceptable.
16554 # Some rework will be needed to allow for fast_install
16555 # before this can be enabled.
16556 hardcode_into_libs=yes
16557
16558 dynamic_linker='Android linker'
16559 # Don't embed -rpath directories since the linker doesn't support them.
16560 hardcode_libdir_flag_spec_CXX='-L$libdir'
16561 ;;
16562
16563 # This must be glibc/ELF.
16564 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16565 version_type=linux # correct to gnu/linux during the next big refactor
16566 need_lib_prefix=no
16567 need_version=no
16568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16569 soname_spec='$libname$release$shared_ext$major'
16570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16571 shlibpath_var=LD_LIBRARY_PATH
16572 shlibpath_overrides_runpath=no
16573
16574 # Some binutils ld are patched to set DT_RUNPATH
16575 if test ${lt_cv_shlibpath_overrides_runpath+y}
16576 then :
16577 printf %s "(cached) " >&6
16578 else $as_nop
16579 lt_cv_shlibpath_overrides_runpath=no
16580 save_LDFLAGS=$LDFLAGS
16581 save_libdir=$libdir
16582 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16583 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16586
16587 int
16588 main (void)
16589 {
16590
16591 ;
16592 return 0;
16593 }
16594 _ACEOF
16595 if ac_fn_cxx_try_link "$LINENO"
16596 then :
16597 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16598 then :
16599 lt_cv_shlibpath_overrides_runpath=yes
16600 fi
16601 fi
16602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16603 conftest$ac_exeext conftest.$ac_ext
16604 LDFLAGS=$save_LDFLAGS
16605 libdir=$save_libdir
16606
16607 fi
16608
16609 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16610
16611 # This implies no fast_install, which is unacceptable.
16612 # Some rework will be needed to allow for fast_install
16613 # before this can be enabled.
16614 hardcode_into_libs=yes
16615
16616 # Ideally, we could use ldconfig to report *all* directores which are
16617 # searched for libraries, however this is still not possible. Aside from not
16618 # being certain /sbin/ldconfig is available, command
16619 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16620 # even though it is searched at run-time. Try to do the best guess by
16621 # appending ld.so.conf contents (and includes) to the search path.
16622 if test -f /etc/ld.so.conf; then
16623 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' ' '`
16624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16625 fi
16626
16627 # We used to test for /lib/ld.so.1 and disable shared libraries on
16628 # powerpc, because MkLinux only supported shared libraries with the
16629 # GNU dynamic linker. Since this was broken with cross compilers,
16630 # most powerpc-linux boxes support dynamic linking these days and
16631 # people can always --disable-shared, the test was removed, and we
16632 # assume the GNU/Linux dynamic linker is in use.
16633 dynamic_linker='GNU/Linux ld.so'
16634 ;;
16635
16636 netbsdelf*-gnu)
16637 version_type=linux
16638 need_lib_prefix=no
16639 need_version=no
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 shlibpath_var=LD_LIBRARY_PATH
16643 shlibpath_overrides_runpath=no
16644 hardcode_into_libs=yes
16645 dynamic_linker='NetBSD ld.elf_so'
16646 ;;
16647
16648 netbsd*)
16649 version_type=sunos
16650 need_lib_prefix=no
16651 need_version=no
16652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16653 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16655 dynamic_linker='NetBSD (a.out) ld.so'
16656 else
16657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16658 soname_spec='$libname$release$shared_ext$major'
16659 dynamic_linker='NetBSD ld.elf_so'
16660 fi
16661 shlibpath_var=LD_LIBRARY_PATH
16662 shlibpath_overrides_runpath=yes
16663 hardcode_into_libs=yes
16664 ;;
16665
16666 newsos6)
16667 version_type=linux # correct to gnu/linux during the next big refactor
16668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=yes
16671 ;;
16672
16673 *nto* | *qnx*)
16674 version_type=qnx
16675 need_lib_prefix=no
16676 need_version=no
16677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16678 soname_spec='$libname$release$shared_ext$major'
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=no
16681 hardcode_into_libs=yes
16682 dynamic_linker='ldqnx.so'
16683 ;;
16684
16685 openbsd* | bitrig*)
16686 version_type=sunos
16687 sys_lib_dlsearch_path_spec=/usr/lib
16688 need_lib_prefix=no
16689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16690 need_version=no
16691 else
16692 need_version=yes
16693 fi
16694 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=yes
16698 ;;
16699
16700 os2*)
16701 libname_spec='$name'
16702 version_type=windows
16703 shrext_cmds=.dll
16704 need_version=no
16705 need_lib_prefix=no
16706 # OS/2 can only load a DLL with a base name of 8 characters or less.
16707 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16708 v=$($ECHO $release$versuffix | tr -d .-);
16709 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16710 $ECHO $n$v`$shared_ext'
16711 library_names_spec='${libname}_dll.$libext'
16712 dynamic_linker='OS/2 ld.exe'
16713 shlibpath_var=BEGINLIBPATH
16714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16716 postinstall_cmds='base_file=`basename \$file`~
16717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16718 dldir=$destdir/`dirname \$dlpath`~
16719 test -d \$dldir || mkdir -p \$dldir~
16720 $install_prog $dir/$dlname \$dldir/$dlname~
16721 chmod a+x \$dldir/$dlname~
16722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16724 fi'
16725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16726 dlpath=$dir/\$dldll~
16727 $RM \$dlpath'
16728 ;;
16729
16730 osf3* | osf4* | osf5*)
16731 version_type=osf
16732 need_lib_prefix=no
16733 need_version=no
16734 soname_spec='$libname$release$shared_ext$major'
16735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16736 shlibpath_var=LD_LIBRARY_PATH
16737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16739 ;;
16740
16741 rdos*)
16742 dynamic_linker=no
16743 ;;
16744
16745 solaris*)
16746 version_type=linux # correct to gnu/linux during the next big refactor
16747 need_lib_prefix=no
16748 need_version=no
16749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16750 soname_spec='$libname$release$shared_ext$major'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=yes
16753 hardcode_into_libs=yes
16754 # ldd complains unless libraries are executable
16755 postinstall_cmds='chmod +x $lib'
16756 ;;
16757
16758 sunos4*)
16759 version_type=sunos
16760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 shlibpath_overrides_runpath=yes
16764 if test yes = "$with_gnu_ld"; then
16765 need_lib_prefix=no
16766 fi
16767 need_version=yes
16768 ;;
16769
16770 sysv4 | sysv4.3*)
16771 version_type=linux # correct to gnu/linux during the next big refactor
16772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16773 soname_spec='$libname$release$shared_ext$major'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 case $host_vendor in
16776 sni)
16777 shlibpath_overrides_runpath=no
16778 need_lib_prefix=no
16779 runpath_var=LD_RUN_PATH
16780 ;;
16781 siemens)
16782 need_lib_prefix=no
16783 ;;
16784 motorola)
16785 need_lib_prefix=no
16786 need_version=no
16787 shlibpath_overrides_runpath=no
16788 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16789 ;;
16790 esac
16791 ;;
16792
16793 sysv4*MP*)
16794 if test -d /usr/nec; then
16795 version_type=linux # correct to gnu/linux during the next big refactor
16796 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16797 soname_spec='$libname$shared_ext.$major'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 fi
16800 ;;
16801
16802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16803 version_type=sco
16804 need_lib_prefix=no
16805 need_version=no
16806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16807 soname_spec='$libname$release$shared_ext$major'
16808 shlibpath_var=LD_LIBRARY_PATH
16809 shlibpath_overrides_runpath=yes
16810 hardcode_into_libs=yes
16811 if test yes = "$with_gnu_ld"; then
16812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16813 else
16814 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16815 case $host_os in
16816 sco3.2v5*)
16817 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16818 ;;
16819 esac
16820 fi
16821 sys_lib_dlsearch_path_spec='/usr/lib'
16822 ;;
16823
16824 tpf*)
16825 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16826 version_type=linux # correct to gnu/linux during the next big refactor
16827 need_lib_prefix=no
16828 need_version=no
16829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16830 shlibpath_var=LD_LIBRARY_PATH
16831 shlibpath_overrides_runpath=no
16832 hardcode_into_libs=yes
16833 ;;
16834
16835 uts4*)
16836 version_type=linux # correct to gnu/linux during the next big refactor
16837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16838 soname_spec='$libname$release$shared_ext$major'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 ;;
16841
16842 *)
16843 dynamic_linker=no
16844 ;;
16845 esac
16846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16847 printf "%s\n" "$dynamic_linker" >&6; }
16848 test no = "$dynamic_linker" && can_build_shared=no
16849
16850 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16851 if test yes = "$GCC"; then
16852 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16853 fi
16854
16855 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16856 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16857 fi
16858
16859 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16860 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16861 fi
16862
16863 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16864 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16865
16866 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16867 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16868
16869 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16870 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16912 printf %s "checking how to hardcode library paths into programs... " >&6; }
16913 hardcode_action_CXX=
16914 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16915 test -n "$runpath_var_CXX" ||
16916 test yes = "$hardcode_automatic_CXX"; then
16917
16918 # We can hardcode non-existent directories.
16919 if test no != "$hardcode_direct_CXX" &&
16920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16921 # have to relink, otherwise we might link with an installed library
16922 # when we should be linking with a yet-to-be-installed one
16923 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16924 test no != "$hardcode_minus_L_CXX"; then
16925 # Linking always hardcodes the temporary library directory.
16926 hardcode_action_CXX=relink
16927 else
16928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16929 hardcode_action_CXX=immediate
16930 fi
16931 else
16932 # We cannot hardcode anything, or else we can only hardcode existing
16933 # directories.
16934 hardcode_action_CXX=unsupported
16935 fi
16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16937 printf "%s\n" "$hardcode_action_CXX" >&6; }
16938
16939 if test relink = "$hardcode_action_CXX" ||
16940 test yes = "$inherit_rpath_CXX"; then
16941 # Fast installation is not supported
16942 enable_fast_install=no
16943 elif test yes = "$shlibpath_overrides_runpath" ||
16944 test no = "$enable_shared"; then
16945 # Fast installation is not necessary
16946 enable_fast_install=needless
16947 fi
16948
16949
16950
16951
16952
16953
16954
16955 fi # test -n "$compiler"
16956
16957 CC=$lt_save_CC
16958 CFLAGS=$lt_save_CFLAGS
16959 LDCXX=$LD
16960 LD=$lt_save_LD
16961 GCC=$lt_save_GCC
16962 with_gnu_ld=$lt_save_with_gnu_ld
16963 lt_cv_path_LDCXX=$lt_cv_path_LD
16964 lt_cv_path_LD=$lt_save_path_LD
16965 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16966 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16967 fi # test yes != "$_lt_caught_CXX_error"
16968
16969 ac_ext=c
16970 ac_cpp='$CPP $CPPFLAGS'
16971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16974
16975
16976
16977 #
16978 # allow the user to disable the mime database update
16979 #
16980 # Extract the first word of "update-mime-database", so it can be a program name with args.
16981 set dummy update-mime-database; ac_word=$2
16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16983 printf %s "checking for $ac_word... " >&6; }
16984 if test ${ac_cv_path_UPDATE_MIME_DATABASE+y}
16985 then :
16986 printf %s "(cached) " >&6
16987 else $as_nop
16988 case $UPDATE_MIME_DATABASE in
16989 [\\/]* | ?:[\\/]*)
16990 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
16991 ;;
16992 *)
16993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16994 for as_dir in $PATH
16995 do
16996 IFS=$as_save_IFS
16997 case $as_dir in #(((
16998 '') as_dir=./ ;;
16999 */) ;;
17000 *) as_dir=$as_dir/ ;;
17001 esac
17002 for ac_exec_ext in '' $ac_executable_extensions; do
17003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17004 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir$ac_word$ac_exec_ext"
17005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17006 break 2
17007 fi
17008 done
17009 done
17010 IFS=$as_save_IFS
17011
17012 test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
17013 ;;
17014 esac
17015 fi
17016 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
17017 if test -n "$UPDATE_MIME_DATABASE"; then
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
17019 printf "%s\n" "$UPDATE_MIME_DATABASE" >&6; }
17020 else
17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17022 printf "%s\n" "no" >&6; }
17023 fi
17024
17025
17026 HAVE_NEW_MIME=no
17027 # Check whether --enable-mime-update was given.
17028 if test ${enable_mime_update+y}
17029 then :
17030 enableval=$enable_mime_update; disable_mime=yes
17031 else $as_nop
17032 disable_mime=no
17033 fi
17034
17035 if test "x$disable_mime" = "xno"; then
17036 if test "x$UPDATE_MIME_DATABASE" != "xno"; then
17037 HAVE_NEW_MIME=yes
17038
17039 printf "%s\n" "#define HAVE_NEW_MIME 1" >>confdefs.h
17040
17041 fi
17042 fi
17043 if test x$HAVE_NEW_MIME = xyes; then
17044 HAVE_NEW_MIME_TRUE=
17045 HAVE_NEW_MIME_FALSE='#'
17046 else
17047 HAVE_NEW_MIME_TRUE='#'
17048 HAVE_NEW_MIME_FALSE=
17049 fi
17050
17051 #
17052 # allow user to specify libusb on Linux
17053 #
17054 # Check whether --enable-force-libusb-on-linux was given.
17055 if test ${enable_force_libusb_on_linux+y}
17056 then :
17057 enableval=$enable_force_libusb_on_linux; force_libusb_on_linux=$enableval
17058 else $as_nop
17059 force_libusb_on_linux=no
17060 fi
17061
17062 case $host_os in
17063 linux*)
17064 if test "$force_libusb_on_linux" = "yes"; then
17065 USBLIB="usb"
17066
17067 printf "%s\n" "#define WANT_LIBUSB 1" >>confdefs.h
17068
17069 else
17070 USBLIB="hidapi-libusb"
17071
17072 printf "%s\n" "#define WANT_HIDAPI 1" >>confdefs.h
17073
17074 fi
17075 LIBCONCORD_LDFLAGS="-l$USBLIB"
17076 ;;
17077 darwin*)
17078 USBLIB="hidapi"
17079
17080 printf "%s\n" "#define WANT_HIDAPI 1" >>confdefs.h
17081
17082 LIBCONCORD_LDFLAGS="-l$USBLIB"
17083 ;;
17084 mingw*)
17085 USBLIB="hidapi"
17086
17087 printf "%s\n" "#define WANT_HIDAPI 1" >>confdefs.h
17088
17089 LIBCONCORD_LDFLAGS="-l$USBLIB -lwsock32 -no-undefined"
17090 ;;
17091 k*bsd*-gnu)
17092 USBLIB="hidapi"
17093
17094 printf "%s\n" "#define WANT_HIDAPI 1" >>confdefs.h
17095
17096 LIBCONCORD_LDFLAGS="-l$USBLIB"
17097 ;;
17098 gnu*)
17099 USBLIB="usb"
17100
17101 printf "%s\n" "#define WANT_LIBUSB 1" >>confdefs.h
17102
17103 LIBCONCORD_LDFLAGS="-l$USBLIB"
17104 ;;
17105 esac
17106 LIBCONCORD_LDFLAGS=$LIBCONCORD_LDFLAGS
17107
17108 a=1
17109 if test "$USBLIB" = "usb"; then
17110 ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
17111 if test "x$ac_cv_header_usb_h" = xyes
17112 then :
17113
17114 else $as_nop
17115 a=0
17116 fi
17117
17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usb_init in -lusb" >&5
17119 printf %s "checking for usb_init in -lusb... " >&6; }
17120 if test ${ac_cv_lib_usb_usb_init+y}
17121 then :
17122 printf %s "(cached) " >&6
17123 else $as_nop
17124 ac_check_lib_save_LIBS=$LIBS
17125 LIBS="-lusb $LIBS"
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h. */
17128
17129 /* Override any GCC internal prototype to avoid an error.
17130 Use char because int might match the return type of a GCC
17131 builtin and then its argument prototype would still apply. */
17132 char usb_init ();
17133 int
17134 main (void)
17135 {
17136 return usb_init ();
17137 ;
17138 return 0;
17139 }
17140 _ACEOF
17141 if ac_fn_c_try_link "$LINENO"
17142 then :
17143 ac_cv_lib_usb_usb_init=yes
17144 else $as_nop
17145 ac_cv_lib_usb_usb_init=no
17146 fi
17147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17148 conftest$ac_exeext conftest.$ac_ext
17149 LIBS=$ac_check_lib_save_LIBS
17150 fi
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_init" >&5
17152 printf "%s\n" "$ac_cv_lib_usb_usb_init" >&6; }
17153 if test "x$ac_cv_lib_usb_usb_init" = xyes
17154 then :
17155 printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
17156
17157 LIBS="-lusb $LIBS"
17158
17159 else $as_nop
17160 a=0
17161 fi
17162
17163 else
17164 ac_fn_c_check_header_compile "$LINENO" "hidapi/hidapi.h" "ac_cv_header_hidapi_hidapi_h" "$ac_includes_default"
17165 if test "x$ac_cv_header_hidapi_hidapi_h" = xyes
17166 then :
17167
17168 else $as_nop
17169 a=0
17170 fi
17171
17172 as_ac_Lib=`printf "%s\n" "ac_cv_lib_${USBLIB}""_hid_init" | $as_tr_sh`
17173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -l${USBLIB}" >&5
17174 printf %s "checking for hid_init in -l${USBLIB}... " >&6; }
17175 if eval test \${$as_ac_Lib+y}
17176 then :
17177 printf %s "(cached) " >&6
17178 else $as_nop
17179 ac_check_lib_save_LIBS=$LIBS
17180 LIBS="-l${USBLIB} $LIBS"
17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182 /* end confdefs.h. */
17183
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17187 char hid_init ();
17188 int
17189 main (void)
17190 {
17191 return hid_init ();
17192 ;
17193 return 0;
17194 }
17195 _ACEOF
17196 if ac_fn_c_try_link "$LINENO"
17197 then :
17198 eval "$as_ac_Lib=yes"
17199 else $as_nop
17200 eval "$as_ac_Lib=no"
17201 fi
17202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17203 conftest$ac_exeext conftest.$ac_ext
17204 LIBS=$ac_check_lib_save_LIBS
17205 fi
17206 eval ac_res=\$$as_ac_Lib
17207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17208 printf "%s\n" "$ac_res" >&6; }
17209 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
17210 then :
17211 cat >>confdefs.h <<_ACEOF
17212 #define `printf "%s\n" "HAVE_LIB${USBLIB}" | $as_tr_cpp` 1
17213 _ACEOF
17214
17215 LIBS="-l${USBLIB} $LIBS"
17216
17217 else $as_nop
17218 a=0
17219 fi
17220
17221 fi
17222 if test $a == 0
17223 then
17224 errorstr="lib$USBLIB is missing!"
17225 if test "x$force_libusb_on_linux" = "xno"; then
17226 errorstr="$errorstr
17227 Note that while we are deprecating the use of libusb on Linux in favor
17228 of libhidapi, this release still supports it via
17229 --enable-force-libusb-on-linux"
17230 fi
17231 as_fn_error $? "$errorstr" "$LINENO" 5
17232 fi
17233
17234
17235
17236
17237
17238
17239
17240 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17241 if test -n "$ac_tool_prefix"; then
17242 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17243 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17245 printf %s "checking for $ac_word... " >&6; }
17246 if test ${ac_cv_path_PKG_CONFIG+y}
17247 then :
17248 printf %s "(cached) " >&6
17249 else $as_nop
17250 case $PKG_CONFIG in
17251 [\\/]* | ?:[\\/]*)
17252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17253 ;;
17254 *)
17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256 for as_dir in $PATH
17257 do
17258 IFS=$as_save_IFS
17259 case $as_dir in #(((
17260 '') as_dir=./ ;;
17261 */) ;;
17262 *) as_dir=$as_dir/ ;;
17263 esac
17264 for ac_exec_ext in '' $ac_executable_extensions; do
17265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17266 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17268 break 2
17269 fi
17270 done
17271 done
17272 IFS=$as_save_IFS
17273
17274 ;;
17275 esac
17276 fi
17277 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17278 if test -n "$PKG_CONFIG"; then
17279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17280 printf "%s\n" "$PKG_CONFIG" >&6; }
17281 else
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17283 printf "%s\n" "no" >&6; }
17284 fi
17285
17286
17287 fi
17288 if test -z "$ac_cv_path_PKG_CONFIG"; then
17289 ac_pt_PKG_CONFIG=$PKG_CONFIG
17290 # Extract the first word of "pkg-config", so it can be a program name with args.
17291 set dummy pkg-config; ac_word=$2
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17293 printf %s "checking for $ac_word... " >&6; }
17294 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17295 then :
17296 printf %s "(cached) " >&6
17297 else $as_nop
17298 case $ac_pt_PKG_CONFIG in
17299 [\\/]* | ?:[\\/]*)
17300 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17301 ;;
17302 *)
17303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17304 for as_dir in $PATH
17305 do
17306 IFS=$as_save_IFS
17307 case $as_dir in #(((
17308 '') as_dir=./ ;;
17309 */) ;;
17310 *) as_dir=$as_dir/ ;;
17311 esac
17312 for ac_exec_ext in '' $ac_executable_extensions; do
17313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17314 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17316 break 2
17317 fi
17318 done
17319 done
17320 IFS=$as_save_IFS
17321
17322 ;;
17323 esac
17324 fi
17325 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17326 if test -n "$ac_pt_PKG_CONFIG"; then
17327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17328 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
17329 else
17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17331 printf "%s\n" "no" >&6; }
17332 fi
17333
17334 if test "x$ac_pt_PKG_CONFIG" = x; then
17335 PKG_CONFIG=""
17336 else
17337 case $cross_compiling:$ac_tool_warned in
17338 yes:)
17339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17340 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17341 ac_tool_warned=yes ;;
17342 esac
17343 PKG_CONFIG=$ac_pt_PKG_CONFIG
17344 fi
17345 else
17346 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17347 fi
17348
17349 fi
17350 if test -n "$PKG_CONFIG"; then
17351 _pkg_min_version=0.9.0
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17353 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17354 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17356 printf "%s\n" "yes" >&6; }
17357 else
17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17359 printf "%s\n" "no" >&6; }
17360 PKG_CONFIG=""
17361 fi
17362 fi
17363
17364 pkg_failed=no
17365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzip" >&5
17366 printf %s "checking for libzip... " >&6; }
17367
17368 if test -n "$ZIP_CFLAGS"; then
17369 pkg_cv_ZIP_CFLAGS="$ZIP_CFLAGS"
17370 elif test -n "$PKG_CONFIG"; then
17371 if test -n "$PKG_CONFIG" && \
17372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip\""; } >&5
17373 ($PKG_CONFIG --exists --print-errors "libzip") 2>&5
17374 ac_status=$?
17375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17376 test $ac_status = 0; }; then
17377 pkg_cv_ZIP_CFLAGS=`$PKG_CONFIG --cflags "libzip" 2>/dev/null`
17378 test "x$?" != "x0" && pkg_failed=yes
17379 else
17380 pkg_failed=yes
17381 fi
17382 else
17383 pkg_failed=untried
17384 fi
17385 if test -n "$ZIP_LIBS"; then
17386 pkg_cv_ZIP_LIBS="$ZIP_LIBS"
17387 elif test -n "$PKG_CONFIG"; then
17388 if test -n "$PKG_CONFIG" && \
17389 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip\""; } >&5
17390 ($PKG_CONFIG --exists --print-errors "libzip") 2>&5
17391 ac_status=$?
17392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17393 test $ac_status = 0; }; then
17394 pkg_cv_ZIP_LIBS=`$PKG_CONFIG --libs "libzip" 2>/dev/null`
17395 test "x$?" != "x0" && pkg_failed=yes
17396 else
17397 pkg_failed=yes
17398 fi
17399 else
17400 pkg_failed=untried
17401 fi
17402
17403
17404
17405 if test $pkg_failed = yes; then
17406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17407 printf "%s\n" "no" >&6; }
17408
17409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17410 _pkg_short_errors_supported=yes
17411 else
17412 _pkg_short_errors_supported=no
17413 fi
17414 if test $_pkg_short_errors_supported = yes; then
17415 ZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzip" 2>&1`
17416 else
17417 ZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzip" 2>&1`
17418 fi
17419 # Put the nasty error message in config.log where it belongs
17420 echo "$ZIP_PKG_ERRORS" >&5
17421
17422 as_fn_error $? "Package requirements (libzip) were not met:
17423
17424 $ZIP_PKG_ERRORS
17425
17426 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17427 installed software in a non-standard prefix.
17428
17429 Alternatively, you may set the environment variables ZIP_CFLAGS
17430 and ZIP_LIBS to avoid the need to call pkg-config.
17431 See the pkg-config man page for more details." "$LINENO" 5
17432 elif test $pkg_failed = untried; then
17433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17434 printf "%s\n" "no" >&6; }
17435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17436 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17437 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17438 is in your PATH or set the PKG_CONFIG environment variable to the full
17439 path to pkg-config.
17440
17441 Alternatively, you may set the environment variables ZIP_CFLAGS
17442 and ZIP_LIBS to avoid the need to call pkg-config.
17443 See the pkg-config man page for more details.
17444
17445 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17446 See \`config.log' for more details" "$LINENO" 5; }
17447 else
17448 ZIP_CFLAGS=$pkg_cv_ZIP_CFLAGS
17449 ZIP_LIBS=$pkg_cv_ZIP_LIBS
17450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17451 printf "%s\n" "yes" >&6; }
17452
17453 fi
17454
17455 pkg_failed=no
17456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
17457 printf %s "checking for libcurl... " >&6; }
17458
17459 if test -n "$CURL_CFLAGS"; then
17460 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
17461 elif test -n "$PKG_CONFIG"; then
17462 if test -n "$PKG_CONFIG" && \
17463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
17464 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
17465 ac_status=$?
17466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17467 test $ac_status = 0; }; then
17468 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
17469 test "x$?" != "x0" && pkg_failed=yes
17470 else
17471 pkg_failed=yes
17472 fi
17473 else
17474 pkg_failed=untried
17475 fi
17476 if test -n "$CURL_LIBS"; then
17477 pkg_cv_CURL_LIBS="$CURL_LIBS"
17478 elif test -n "$PKG_CONFIG"; then
17479 if test -n "$PKG_CONFIG" && \
17480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
17481 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
17482 ac_status=$?
17483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17484 test $ac_status = 0; }; then
17485 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
17486 test "x$?" != "x0" && pkg_failed=yes
17487 else
17488 pkg_failed=yes
17489 fi
17490 else
17491 pkg_failed=untried
17492 fi
17493
17494
17495
17496 if test $pkg_failed = yes; then
17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17498 printf "%s\n" "no" >&6; }
17499
17500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17501 _pkg_short_errors_supported=yes
17502 else
17503 _pkg_short_errors_supported=no
17504 fi
17505 if test $_pkg_short_errors_supported = yes; then
17506 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
17507 else
17508 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
17509 fi
17510 # Put the nasty error message in config.log where it belongs
17511 echo "$CURL_PKG_ERRORS" >&5
17512
17513 as_fn_error $? "Package requirements (libcurl) were not met:
17514
17515 $CURL_PKG_ERRORS
17516
17517 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17518 installed software in a non-standard prefix.
17519
17520 Alternatively, you may set the environment variables CURL_CFLAGS
17521 and CURL_LIBS to avoid the need to call pkg-config.
17522 See the pkg-config man page for more details." "$LINENO" 5
17523 elif test $pkg_failed = untried; then
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525 printf "%s\n" "no" >&6; }
17526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17527 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17528 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17529 is in your PATH or set the PKG_CONFIG environment variable to the full
17530 path to pkg-config.
17531
17532 Alternatively, you may set the environment variables CURL_CFLAGS
17533 and CURL_LIBS to avoid the need to call pkg-config.
17534 See the pkg-config man page for more details.
17535
17536 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17537 See \`config.log' for more details" "$LINENO" 5; }
17538 else
17539 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
17540 CURL_LIBS=$pkg_cv_CURL_LIBS
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17542 printf "%s\n" "yes" >&6; }
17543
17544 fi
17545 ac_config_files="$ac_config_files Makefile"
17546
17547 cat >confcache <<\_ACEOF
17548 # This file is a shell script that caches the results of configure
17549 # tests run on this system so they can be shared between configure
17550 # scripts and configure runs, see configure's option --config-cache.
17551 # It is not useful on other systems. If it contains results you don't
17552 # want to keep, you may remove or edit it.
17553 #
17554 # config.status only pays attention to the cache file if you give it
17555 # the --recheck option to rerun configure.
17556 #
17557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17559 # following values.
17560
17561 _ACEOF
17562
17563 # The following way of writing the cache mishandles newlines in values,
17564 # but we know of no workaround that is simple, portable, and efficient.
17565 # So, we kill variables containing newlines.
17566 # Ultrix sh set writes to stderr and can't be redirected directly,
17567 # and sets the high bit in the cache file unless we assign to the vars.
17568 (
17569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17570 eval ac_val=\$$ac_var
17571 case $ac_val in #(
17572 *${as_nl}*)
17573 case $ac_var in #(
17574 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17575 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17576 esac
17577 case $ac_var in #(
17578 _ | IFS | as_nl) ;; #(
17579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17580 *) { eval $ac_var=; unset $ac_var;} ;;
17581 esac ;;
17582 esac
17583 done
17584
17585 (set) 2>&1 |
17586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17587 *${as_nl}ac_space=\ *)
17588 # `set' does not quote correctly, so add quotes: double-quote
17589 # substitution turns \\\\ into \\, and sed turns \\ into \.
17590 sed -n \
17591 "s/'/'\\\\''/g;
17592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17593 ;; #(
17594 *)
17595 # `set' quotes correctly as required by POSIX, so do not add quotes.
17596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17597 ;;
17598 esac |
17599 sort
17600 ) |
17601 sed '
17602 /^ac_cv_env_/b end
17603 t clear
17604 :clear
17605 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17606 t end
17607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17608 :end' >>confcache
17609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17610 if test -w "$cache_file"; then
17611 if test "x$cache_file" != "x/dev/null"; then
17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17613 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17614 if test ! -f "$cache_file" || test -h "$cache_file"; then
17615 cat confcache >"$cache_file"
17616 else
17617 case $cache_file in #(
17618 */* | ?:*)
17619 mv -f confcache "$cache_file"$$ &&
17620 mv -f "$cache_file"$$ "$cache_file" ;; #(
17621 *)
17622 mv -f confcache "$cache_file" ;;
17623 esac
17624 fi
17625 fi
17626 else
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17628 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17629 fi
17630 fi
17631 rm -f confcache
17632
17633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17634 # Let make expand exec_prefix.
17635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17636
17637 # Transform confdefs.h into DEFS.
17638 # Protect against shell expansion while executing Makefile rules.
17639 # Protect against Makefile macro expansion.
17640 #
17641 # If the first sed substitution is executed (which looks for macros that
17642 # take arguments), then branch to the quote section. Otherwise,
17643 # look for a macro that doesn't take arguments.
17644 ac_script='
17645 :mline
17646 /\\$/{
17647 N
17648 s,\\\n,,
17649 b mline
17650 }
17651 t clear
17652 :clear
17653 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17654 t quote
17655 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17656 t quote
17657 b any
17658 :quote
17659 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17660 s/\[/\\&/g
17661 s/\]/\\&/g
17662 s/\$/$$/g
17663 H
17664 :any
17665 ${
17666 g
17667 s/^\n//
17668 s/\n/ /g
17669 p
17670 }
17671 '
17672 DEFS=`sed -n "$ac_script" confdefs.h`
17673
17674
17675 ac_libobjs=
17676 ac_ltlibobjs=
17677 U=
17678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17679 # 1. Remove the extension, and $U if already installed.
17680 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17681 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17682 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17683 # will be set to the directory where LIBOBJS objects are built.
17684 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17685 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17686 done
17687 LIBOBJS=$ac_libobjs
17688
17689 LTLIBOBJS=$ac_ltlibobjs
17690
17691
17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17693 printf %s "checking that generated files are newer than configure... " >&6; }
17694 if test -n "$am_sleep_pid"; then
17695 # Hide warnings about reused PIDs.
17696 wait $am_sleep_pid 2>/dev/null
17697 fi
17698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17699 printf "%s\n" "done" >&6; }
17700 if test -n "$EXEEXT"; then
17701 am__EXEEXT_TRUE=
17702 am__EXEEXT_FALSE='#'
17703 else
17704 am__EXEEXT_TRUE='#'
17705 am__EXEEXT_FALSE=
17706 fi
17707
17708 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17709 as_fn_error $? "conditional \"AMDEP\" was never defined.
17710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17711 fi
17712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17713 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17715 fi
17716 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17717 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17719 fi
17720 if test -z "${HAVE_NEW_MIME_TRUE}" && test -z "${HAVE_NEW_MIME_FALSE}"; then
17721 as_fn_error $? "conditional \"HAVE_NEW_MIME\" was never defined.
17722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17723 fi
17724
17725 : "${CONFIG_STATUS=./config.status}"
17726 ac_write_fail=0
17727 ac_clean_files_save=$ac_clean_files
17728 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17730 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17731 as_write_fail=0
17732 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17733 #! $SHELL
17734 # Generated by $as_me.
17735 # Run this file to recreate the current configuration.
17736 # Compiler output produced by configure, useful for debugging
17737 # configure, is in config.log if it exists.
17738
17739 debug=false
17740 ac_cs_recheck=false
17741 ac_cs_silent=false
17742
17743 SHELL=\${CONFIG_SHELL-$SHELL}
17744 export SHELL
17745 _ASEOF
17746 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17747 ## -------------------- ##
17748 ## M4sh Initialization. ##
17749 ## -------------------- ##
17750
17751 # Be more Bourne compatible
17752 DUALCASE=1; export DUALCASE # for MKS sh
17753 as_nop=:
17754 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17755 then :
17756 emulate sh
17757 NULLCMD=:
17758 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17759 # is contrary to our usage. Disable this feature.
17760 alias -g '${1+"$@"}'='"$@"'
17761 setopt NO_GLOB_SUBST
17762 else $as_nop
17763 case `(set -o) 2>/dev/null` in #(
17764 *posix*) :
17765 set -o posix ;; #(
17766 *) :
17767 ;;
17768 esac
17769 fi
17770
17771
17772
17773 # Reset variables that may have inherited troublesome values from
17774 # the environment.
17775
17776 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17777 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17778 # side effect of setting IFS to empty, thus disabling word splitting.)
17779 # Quoting is to prevent editors from complaining about space-tab.
17780 as_nl='
17781 '
17782 export as_nl
17783 IFS=" "" $as_nl"
17784
17785 PS1='$ '
17786 PS2='> '
17787 PS4='+ '
17788
17789 # Ensure predictable behavior from utilities with locale-dependent output.
17790 LC_ALL=C
17791 export LC_ALL
17792 LANGUAGE=C
17793 export LANGUAGE
17794
17795 # We cannot yet rely on "unset" to work, but we need these variables
17796 # to be unset--not just set to an empty or harmless value--now, to
17797 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17798 # also avoids known problems related to "unset" and subshell syntax
17799 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17800 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17801 do eval test \${$as_var+y} \
17802 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17803 done
17804
17805 # Ensure that fds 0, 1, and 2 are open.
17806 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17807 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17808 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17809
17810 # The user is always right.
17811 if ${PATH_SEPARATOR+false} :; then
17812 PATH_SEPARATOR=:
17813 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17814 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17815 PATH_SEPARATOR=';'
17816 }
17817 fi
17818
17819
17820 # Find who we are. Look in the path if we contain no directory separator.
17821 as_myself=
17822 case $0 in #((
17823 *[\\/]* ) as_myself=$0 ;;
17824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17825 for as_dir in $PATH
17826 do
17827 IFS=$as_save_IFS
17828 case $as_dir in #(((
17829 '') as_dir=./ ;;
17830 */) ;;
17831 *) as_dir=$as_dir/ ;;
17832 esac
17833 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17834 done
17835 IFS=$as_save_IFS
17836
17837 ;;
17838 esac
17839 # We did not find ourselves, most probably we were run as `sh COMMAND'
17840 # in which case we are not to be found in the path.
17841 if test "x$as_myself" = x; then
17842 as_myself=$0
17843 fi
17844 if test ! -f "$as_myself"; then
17845 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17846 exit 1
17847 fi
17848
17849
17850
17851 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17852 # ----------------------------------------
17853 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17854 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17855 # script with STATUS, using 1 if that was 0.
17856 as_fn_error ()
17857 {
17858 as_status=$1; test $as_status -eq 0 && as_status=1
17859 if test "$4"; then
17860 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17862 fi
17863 printf "%s\n" "$as_me: error: $2" >&2
17864 as_fn_exit $as_status
17865 } # as_fn_error
17866
17867
17868
17869 # as_fn_set_status STATUS
17870 # -----------------------
17871 # Set $? to STATUS, without forking.
17872 as_fn_set_status ()
17873 {
17874 return $1
17875 } # as_fn_set_status
17876
17877 # as_fn_exit STATUS
17878 # -----------------
17879 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17880 as_fn_exit ()
17881 {
17882 set +e
17883 as_fn_set_status $1
17884 exit $1
17885 } # as_fn_exit
17886
17887 # as_fn_unset VAR
17888 # ---------------
17889 # Portably unset VAR.
17890 as_fn_unset ()
17891 {
17892 { eval $1=; unset $1;}
17893 }
17894 as_unset=as_fn_unset
17895
17896 # as_fn_append VAR VALUE
17897 # ----------------------
17898 # Append the text in VALUE to the end of the definition contained in VAR. Take
17899 # advantage of any shell optimizations that allow amortized linear growth over
17900 # repeated appends, instead of the typical quadratic growth present in naive
17901 # implementations.
17902 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17903 then :
17904 eval 'as_fn_append ()
17905 {
17906 eval $1+=\$2
17907 }'
17908 else $as_nop
17909 as_fn_append ()
17910 {
17911 eval $1=\$$1\$2
17912 }
17913 fi # as_fn_append
17914
17915 # as_fn_arith ARG...
17916 # ------------------
17917 # Perform arithmetic evaluation on the ARGs, and store the result in the
17918 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17919 # must be portable across $(()) and expr.
17920 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17921 then :
17922 eval 'as_fn_arith ()
17923 {
17924 as_val=$(( $* ))
17925 }'
17926 else $as_nop
17927 as_fn_arith ()
17928 {
17929 as_val=`expr "$@" || test $? -eq 1`
17930 }
17931 fi # as_fn_arith
17932
17933
17934 if expr a : '\(a\)' >/dev/null 2>&1 &&
17935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17936 as_expr=expr
17937 else
17938 as_expr=false
17939 fi
17940
17941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17942 as_basename=basename
17943 else
17944 as_basename=false
17945 fi
17946
17947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17948 as_dirname=dirname
17949 else
17950 as_dirname=false
17951 fi
17952
17953 as_me=`$as_basename -- "$0" ||
17954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17955 X"$0" : 'X\(//\)$' \| \
17956 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17957 printf "%s\n" X/"$0" |
17958 sed '/^.*\/\([^/][^/]*\)\/*$/{
17959 s//\1/
17960 q
17961 }
17962 /^X\/\(\/\/\)$/{
17963 s//\1/
17964 q
17965 }
17966 /^X\/\(\/\).*/{
17967 s//\1/
17968 q
17969 }
17970 s/.*/./; q'`
17971
17972 # Avoid depending upon Character Ranges.
17973 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17974 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17975 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17976 as_cr_digits='0123456789'
17977 as_cr_alnum=$as_cr_Letters$as_cr_digits
17978
17979
17980 # Determine whether it's possible to make 'echo' print without a newline.
17981 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17982 # for compatibility with existing Makefiles.
17983 ECHO_C= ECHO_N= ECHO_T=
17984 case `echo -n x` in #(((((
17985 -n*)
17986 case `echo 'xy\c'` in
17987 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17988 xy) ECHO_C='\c';;
17989 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17990 ECHO_T=' ';;
17991 esac;;
17992 *)
17993 ECHO_N='-n';;
17994 esac
17995
17996 # For backward compatibility with old third-party macros, we provide
17997 # the shell variables $as_echo and $as_echo_n. New code should use
17998 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17999 as_echo='printf %s\n'
18000 as_echo_n='printf %s'
18001
18002 rm -f conf$$ conf$$.exe conf$$.file
18003 if test -d conf$$.dir; then
18004 rm -f conf$$.dir/conf$$.file
18005 else
18006 rm -f conf$$.dir
18007 mkdir conf$$.dir 2>/dev/null
18008 fi
18009 if (echo >conf$$.file) 2>/dev/null; then
18010 if ln -s conf$$.file conf$$ 2>/dev/null; then
18011 as_ln_s='ln -s'
18012 # ... but there are two gotchas:
18013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18015 # In both cases, we have to default to `cp -pR'.
18016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18017 as_ln_s='cp -pR'
18018 elif ln conf$$.file conf$$ 2>/dev/null; then
18019 as_ln_s=ln
18020 else
18021 as_ln_s='cp -pR'
18022 fi
18023 else
18024 as_ln_s='cp -pR'
18025 fi
18026 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18027 rmdir conf$$.dir 2>/dev/null
18028
18029
18030 # as_fn_mkdir_p
18031 # -------------
18032 # Create "$as_dir" as a directory, including parents if necessary.
18033 as_fn_mkdir_p ()
18034 {
18035
18036 case $as_dir in #(
18037 -*) as_dir=./$as_dir;;
18038 esac
18039 test -d "$as_dir" || eval $as_mkdir_p || {
18040 as_dirs=
18041 while :; do
18042 case $as_dir in #(
18043 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18044 *) as_qdir=$as_dir;;
18045 esac
18046 as_dirs="'$as_qdir' $as_dirs"
18047 as_dir=`$as_dirname -- "$as_dir" ||
18048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18049 X"$as_dir" : 'X\(//\)[^/]' \| \
18050 X"$as_dir" : 'X\(//\)$' \| \
18051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18052 printf "%s\n" X"$as_dir" |
18053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18054 s//\1/
18055 q
18056 }
18057 /^X\(\/\/\)[^/].*/{
18058 s//\1/
18059 q
18060 }
18061 /^X\(\/\/\)$/{
18062 s//\1/
18063 q
18064 }
18065 /^X\(\/\).*/{
18066 s//\1/
18067 q
18068 }
18069 s/.*/./; q'`
18070 test -d "$as_dir" && break
18071 done
18072 test -z "$as_dirs" || eval "mkdir $as_dirs"
18073 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18074
18075
18076 } # as_fn_mkdir_p
18077 if mkdir -p . 2>/dev/null; then
18078 as_mkdir_p='mkdir -p "$as_dir"'
18079 else
18080 test -d ./-p && rmdir ./-p
18081 as_mkdir_p=false
18082 fi
18083
18084
18085 # as_fn_executable_p FILE
18086 # -----------------------
18087 # Test if FILE is an executable regular file.
18088 as_fn_executable_p ()
18089 {
18090 test -f "$1" && test -x "$1"
18091 } # as_fn_executable_p
18092 as_test_x='test -x'
18093 as_executable_p=as_fn_executable_p
18094
18095 # Sed expression to map a string onto a valid CPP name.
18096 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18097
18098 # Sed expression to map a string onto a valid variable name.
18099 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18100
18101
18102 exec 6>&1
18103 ## ----------------------------------- ##
18104 ## Main body of $CONFIG_STATUS script. ##
18105 ## ----------------------------------- ##
18106 _ASEOF
18107 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18108
18109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18110 # Save the log message, to keep $0 and so on meaningful, and to
18111 # report actual input values of CONFIG_FILES etc. instead of their
18112 # values after options handling.
18113 ac_log="
18114 This file was extended by libconcord $as_me 1.5, which was
18115 generated by GNU Autoconf 2.71. Invocation command line was
18116
18117 CONFIG_FILES = $CONFIG_FILES
18118 CONFIG_HEADERS = $CONFIG_HEADERS
18119 CONFIG_LINKS = $CONFIG_LINKS
18120 CONFIG_COMMANDS = $CONFIG_COMMANDS
18121 $ $0 $@
18122
18123 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18124 "
18125
18126 _ACEOF
18127
18128 case $ac_config_files in *"
18129 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18130 esac
18131
18132
18133
18134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18135 # Files that config.status was made for.
18136 config_files="$ac_config_files"
18137 config_commands="$ac_config_commands"
18138
18139 _ACEOF
18140
18141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18142 ac_cs_usage="\
18143 \`$as_me' instantiates files and other configuration actions
18144 from templates according to the current configuration. Unless the files
18145 and actions are specified as TAGs, all are instantiated by default.
18146
18147 Usage: $0 [OPTION]... [TAG]...
18148
18149 -h, --help print this help, then exit
18150 -V, --version print version number and configuration settings, then exit
18151 --config print configuration, then exit
18152 -q, --quiet, --silent
18153 do not print progress messages
18154 -d, --debug don't remove temporary files
18155 --recheck update $as_me by reconfiguring in the same conditions
18156 --file=FILE[:TEMPLATE]
18157 instantiate the configuration file FILE
18158
18159 Configuration files:
18160 $config_files
18161
18162 Configuration commands:
18163 $config_commands
18164
18165 Report bugs to <[email protected]>."
18166
18167 _ACEOF
18168 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18169 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18171 ac_cs_config='$ac_cs_config_escaped'
18172 ac_cs_version="\\
18173 libconcord config.status 1.5
18174 configured by $0, generated by GNU Autoconf 2.71,
18175 with options \\"\$ac_cs_config\\"
18176
18177 Copyright (C) 2021 Free Software Foundation, Inc.
18178 This config.status script is free software; the Free Software Foundation
18179 gives unlimited permission to copy, distribute and modify it."
18180
18181 ac_pwd='$ac_pwd'
18182 srcdir='$srcdir'
18183 INSTALL='$INSTALL'
18184 MKDIR_P='$MKDIR_P'
18185 AWK='$AWK'
18186 test -n "\$AWK" || AWK=awk
18187 _ACEOF
18188
18189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18190 # The default lists apply if the user does not specify any file.
18191 ac_need_defaults=:
18192 while test $# != 0
18193 do
18194 case $1 in
18195 --*=?*)
18196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18197 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18198 ac_shift=:
18199 ;;
18200 --*=)
18201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18202 ac_optarg=
18203 ac_shift=:
18204 ;;
18205 *)
18206 ac_option=$1
18207 ac_optarg=$2
18208 ac_shift=shift
18209 ;;
18210 esac
18211
18212 case $ac_option in
18213 # Handling of the options.
18214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18215 ac_cs_recheck=: ;;
18216 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18217 printf "%s\n" "$ac_cs_version"; exit ;;
18218 --config | --confi | --conf | --con | --co | --c )
18219 printf "%s\n" "$ac_cs_config"; exit ;;
18220 --debug | --debu | --deb | --de | --d | -d )
18221 debug=: ;;
18222 --file | --fil | --fi | --f )
18223 $ac_shift
18224 case $ac_optarg in
18225 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18226 '') as_fn_error $? "missing file argument" ;;
18227 esac
18228 as_fn_append CONFIG_FILES " '$ac_optarg'"
18229 ac_need_defaults=false;;
18230 --he | --h | --help | --hel | -h )
18231 printf "%s\n" "$ac_cs_usage"; exit ;;
18232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18233 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18234 ac_cs_silent=: ;;
18235
18236 # This is an error.
18237 -*) as_fn_error $? "unrecognized option: \`$1'
18238 Try \`$0 --help' for more information." ;;
18239
18240 *) as_fn_append ac_config_targets " $1"
18241 ac_need_defaults=false ;;
18242
18243 esac
18244 shift
18245 done
18246
18247 ac_configure_extra_args=
18248
18249 if $ac_cs_silent; then
18250 exec 6>/dev/null
18251 ac_configure_extra_args="$ac_configure_extra_args --silent"
18252 fi
18253
18254 _ACEOF
18255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18256 if \$ac_cs_recheck; then
18257 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18258 shift
18259 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18260 CONFIG_SHELL='$SHELL'
18261 export CONFIG_SHELL
18262 exec "\$@"
18263 fi
18264
18265 _ACEOF
18266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18267 exec 5>>config.log
18268 {
18269 echo
18270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18271 ## Running $as_me. ##
18272 _ASBOX
18273 printf "%s\n" "$ac_log"
18274 } >&5
18275
18276 _ACEOF
18277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18278 #
18279 # INIT-COMMANDS
18280 #
18281 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18282
18283
18284 # The HP-UX ksh and POSIX shell print the target directory to stdout
18285 # if CDPATH is set.
18286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18287
18288 sed_quote_subst='$sed_quote_subst'
18289 double_quote_subst='$double_quote_subst'
18290 delay_variable_subst='$delay_variable_subst'
18291 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18292 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18293 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18294 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18295 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18296 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18297 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18298 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18299 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18300 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18301 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18302 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18303 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18304 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18305 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18306 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18307 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18308 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18309 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18310 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18311 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18312 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18313 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18314 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18315 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18316 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18317 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18318 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18319 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18320 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18321 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18322 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18323 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18324 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18325 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18326 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18327 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18328 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18329 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18330 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18331 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18332 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18333 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18334 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18335 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18336 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18337 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18338 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18339 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18340 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18341 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18342 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18343 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18344 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18345 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18346 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18347 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18348 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18349 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18350 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18351 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"`'
18352 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18353 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18354 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18355 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18356 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18357 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18358 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18359 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18360 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18361 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18362 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18363 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18364 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18365 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18366 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18367 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18368 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18369 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18370 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18371 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18372 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18373 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18374 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18375 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18376 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18377 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18378 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18379 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18380 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18381 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18382 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18383 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18384 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18385 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18386 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18387 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18388 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18389 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18390 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18391 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18392 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18393 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18394 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18395 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18401 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18402 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18403 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18404 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18405 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18406 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18407 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18408 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18409 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18410 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18411 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18412 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18413 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18414 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18415 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18416 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18417 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18418 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18419 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18420 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18421 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18422 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18423 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18424 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18425 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18426 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18427 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18428 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18429 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18430 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18431 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18432 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18433 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18434 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18435 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18436 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18437 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18438 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18439 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18440 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18441 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18442 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18443 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18444 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18445 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18446 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18447 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18448 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18449 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18450 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18451 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18452 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18453 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18454 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18455 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18456 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18457 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18458 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18459 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18460 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18461 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18462 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18463 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18464 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18465 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18466 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18467 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18468 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18469 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18470 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18471 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18472 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18473 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18474 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18475 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18476 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18477 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18478 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18479 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18480 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18481 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18482
18483 LTCC='$LTCC'
18484 LTCFLAGS='$LTCFLAGS'
18485 compiler='$compiler_DEFAULT'
18486
18487 # A function that is used when there is no print builtin or printf.
18488 func_fallback_echo ()
18489 {
18490 eval 'cat <<_LTECHO_EOF
18491 \$1
18492 _LTECHO_EOF'
18493 }
18494
18495 # Quote evaled strings.
18496 for var in SHELL \
18497 ECHO \
18498 PATH_SEPARATOR \
18499 SED \
18500 GREP \
18501 EGREP \
18502 FGREP \
18503 LD \
18504 NM \
18505 LN_S \
18506 lt_SP2NL \
18507 lt_NL2SP \
18508 reload_flag \
18509 FILECMD \
18510 OBJDUMP \
18511 deplibs_check_method \
18512 file_magic_cmd \
18513 file_magic_glob \
18514 want_nocaseglob \
18515 DLLTOOL \
18516 sharedlib_from_linklib_cmd \
18517 AR \
18518 archiver_list_spec \
18519 STRIP \
18520 RANLIB \
18521 CC \
18522 CFLAGS \
18523 compiler \
18524 lt_cv_sys_global_symbol_pipe \
18525 lt_cv_sys_global_symbol_to_cdecl \
18526 lt_cv_sys_global_symbol_to_import \
18527 lt_cv_sys_global_symbol_to_c_name_address \
18528 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18529 lt_cv_nm_interface \
18530 nm_file_list_spec \
18531 lt_cv_truncate_bin \
18532 lt_prog_compiler_no_builtin_flag \
18533 lt_prog_compiler_pic \
18534 lt_prog_compiler_wl \
18535 lt_prog_compiler_static \
18536 lt_cv_prog_compiler_c_o \
18537 need_locks \
18538 MANIFEST_TOOL \
18539 DSYMUTIL \
18540 NMEDIT \
18541 LIPO \
18542 OTOOL \
18543 OTOOL64 \
18544 shrext_cmds \
18545 export_dynamic_flag_spec \
18546 whole_archive_flag_spec \
18547 compiler_needs_object \
18548 with_gnu_ld \
18549 allow_undefined_flag \
18550 no_undefined_flag \
18551 hardcode_libdir_flag_spec \
18552 hardcode_libdir_separator \
18553 exclude_expsyms \
18554 include_expsyms \
18555 file_list_spec \
18556 variables_saved_for_relink \
18557 libname_spec \
18558 library_names_spec \
18559 soname_spec \
18560 install_override_mode \
18561 finish_eval \
18562 old_striplib \
18563 striplib \
18564 compiler_lib_search_dirs \
18565 predep_objects \
18566 postdep_objects \
18567 predeps \
18568 postdeps \
18569 compiler_lib_search_path \
18570 LD_CXX \
18571 reload_flag_CXX \
18572 compiler_CXX \
18573 lt_prog_compiler_no_builtin_flag_CXX \
18574 lt_prog_compiler_pic_CXX \
18575 lt_prog_compiler_wl_CXX \
18576 lt_prog_compiler_static_CXX \
18577 lt_cv_prog_compiler_c_o_CXX \
18578 export_dynamic_flag_spec_CXX \
18579 whole_archive_flag_spec_CXX \
18580 compiler_needs_object_CXX \
18581 with_gnu_ld_CXX \
18582 allow_undefined_flag_CXX \
18583 no_undefined_flag_CXX \
18584 hardcode_libdir_flag_spec_CXX \
18585 hardcode_libdir_separator_CXX \
18586 exclude_expsyms_CXX \
18587 include_expsyms_CXX \
18588 file_list_spec_CXX \
18589 compiler_lib_search_dirs_CXX \
18590 predep_objects_CXX \
18591 postdep_objects_CXX \
18592 predeps_CXX \
18593 postdeps_CXX \
18594 compiler_lib_search_path_CXX; do
18595 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18596 *[\\\\\\\`\\"\\\$]*)
18597 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18598 ;;
18599 *)
18600 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18601 ;;
18602 esac
18603 done
18604
18605 # Double-quote double-evaled strings.
18606 for var in reload_cmds \
18607 old_postinstall_cmds \
18608 old_postuninstall_cmds \
18609 old_archive_cmds \
18610 extract_expsyms_cmds \
18611 old_archive_from_new_cmds \
18612 old_archive_from_expsyms_cmds \
18613 archive_cmds \
18614 archive_expsym_cmds \
18615 module_cmds \
18616 module_expsym_cmds \
18617 export_symbols_cmds \
18618 prelink_cmds \
18619 postlink_cmds \
18620 postinstall_cmds \
18621 postuninstall_cmds \
18622 finish_cmds \
18623 sys_lib_search_path_spec \
18624 configure_time_dlsearch_path \
18625 configure_time_lt_sys_library_path \
18626 reload_cmds_CXX \
18627 old_archive_cmds_CXX \
18628 old_archive_from_new_cmds_CXX \
18629 old_archive_from_expsyms_cmds_CXX \
18630 archive_cmds_CXX \
18631 archive_expsym_cmds_CXX \
18632 module_cmds_CXX \
18633 module_expsym_cmds_CXX \
18634 export_symbols_cmds_CXX \
18635 prelink_cmds_CXX \
18636 postlink_cmds_CXX; do
18637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18638 *[\\\\\\\`\\"\\\$]*)
18639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18640 ;;
18641 *)
18642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18643 ;;
18644 esac
18645 done
18646
18647 ac_aux_dir='$ac_aux_dir'
18648
18649 # See if we are running on zsh, and set the options that allow our
18650 # commands through without removal of \ escapes INIT.
18651 if test -n "\${ZSH_VERSION+set}"; then
18652 setopt NO_GLOB_SUBST
18653 fi
18654
18655
18656 PACKAGE='$PACKAGE'
18657 VERSION='$VERSION'
18658 RM='$RM'
18659 ofile='$ofile'
18660
18661
18662
18663
18664
18665
18666 _ACEOF
18667
18668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18669
18670 # Handling of arguments.
18671 for ac_config_target in $ac_config_targets
18672 do
18673 case $ac_config_target in
18674 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18675 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18676 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18677
18678 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18679 esac
18680 done
18681
18682
18683 # If the user did not use the arguments to specify the items to instantiate,
18684 # then the envvar interface is used. Set only those that are not.
18685 # We use the long form for the default assignment because of an extremely
18686 # bizarre bug on SunOS 4.1.3.
18687 if $ac_need_defaults; then
18688 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18689 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18690 fi
18691
18692 # Have a temporary directory for convenience. Make it in the build tree
18693 # simply because there is no reason against having it here, and in addition,
18694 # creating and moving files from /tmp can sometimes cause problems.
18695 # Hook for its removal unless debugging.
18696 # Note that there is a small window in which the directory will not be cleaned:
18697 # after its creation but before its name has been assigned to `$tmp'.
18698 $debug ||
18699 {
18700 tmp= ac_tmp=
18701 trap 'exit_status=$?
18702 : "${ac_tmp:=$tmp}"
18703 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18704 ' 0
18705 trap 'as_fn_exit 1' 1 2 13 15
18706 }
18707 # Create a (secure) tmp directory for tmp files.
18708
18709 {
18710 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18711 test -d "$tmp"
18712 } ||
18713 {
18714 tmp=./conf$$-$RANDOM
18715 (umask 077 && mkdir "$tmp")
18716 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18717 ac_tmp=$tmp
18718
18719 # Set up the scripts for CONFIG_FILES section.
18720 # No need to generate them if there are no CONFIG_FILES.
18721 # This happens for instance with `./config.status config.h'.
18722 if test -n "$CONFIG_FILES"; then
18723
18724
18725 ac_cr=`echo X | tr X '\015'`
18726 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18727 # But we know of no other shell where ac_cr would be empty at this
18728 # point, so we can use a bashism as a fallback.
18729 if test "x$ac_cr" = x; then
18730 eval ac_cr=\$\'\\r\'
18731 fi
18732 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18733 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18734 ac_cs_awk_cr='\\r'
18735 else
18736 ac_cs_awk_cr=$ac_cr
18737 fi
18738
18739 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18740 _ACEOF
18741
18742
18743 {
18744 echo "cat >conf$$subs.awk <<_ACEOF" &&
18745 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18746 echo "_ACEOF"
18747 } >conf$$subs.sh ||
18748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18749 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18750 ac_delim='%!_!# '
18751 for ac_last_try in false false false false false :; do
18752 . ./conf$$subs.sh ||
18753 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18754
18755 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18756 if test $ac_delim_n = $ac_delim_num; then
18757 break
18758 elif $ac_last_try; then
18759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18760 else
18761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18762 fi
18763 done
18764 rm -f conf$$subs.sh
18765
18766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18767 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18768 _ACEOF
18769 sed -n '
18770 h
18771 s/^/S["/; s/!.*/"]=/
18772 p
18773 g
18774 s/^[^!]*!//
18775 :repl
18776 t repl
18777 s/'"$ac_delim"'$//
18778 t delim
18779 :nl
18780 h
18781 s/\(.\{148\}\)..*/\1/
18782 t more1
18783 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18784 p
18785 n
18786 b repl
18787 :more1
18788 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18789 p
18790 g
18791 s/.\{148\}//
18792 t nl
18793 :delim
18794 h
18795 s/\(.\{148\}\)..*/\1/
18796 t more2
18797 s/["\\]/\\&/g; s/^/"/; s/$/"/
18798 p
18799 b
18800 :more2
18801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18802 p
18803 g
18804 s/.\{148\}//
18805 t delim
18806 ' <conf$$subs.awk | sed '
18807 /^[^""]/{
18808 N
18809 s/\n//
18810 }
18811 ' >>$CONFIG_STATUS || ac_write_fail=1
18812 rm -f conf$$subs.awk
18813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814 _ACAWK
18815 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18816 for (key in S) S_is_set[key] = 1
18817 FS = ""
18818
18819 }
18820 {
18821 line = $ 0
18822 nfields = split(line, field, "@")
18823 substed = 0
18824 len = length(field[1])
18825 for (i = 2; i < nfields; i++) {
18826 key = field[i]
18827 keylen = length(key)
18828 if (S_is_set[key]) {
18829 value = S[key]
18830 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18831 len += length(value) + length(field[++i])
18832 substed = 1
18833 } else
18834 len += 1 + keylen
18835 }
18836
18837 print line
18838 }
18839
18840 _ACAWK
18841 _ACEOF
18842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18843 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18844 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18845 else
18846 cat
18847 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18848 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18849 _ACEOF
18850
18851 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18852 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18853 # trailing colons and then remove the whole line if VPATH becomes empty
18854 # (actually we leave an empty line to preserve line numbers).
18855 if test "x$srcdir" = x.; then
18856 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18857 h
18858 s///
18859 s/^/:/
18860 s/[ ]*$/:/
18861 s/:\$(srcdir):/:/g
18862 s/:\${srcdir}:/:/g
18863 s/:@srcdir@:/:/g
18864 s/^:*//
18865 s/:*$//
18866 x
18867 s/\(=[ ]*\).*/\1/
18868 G
18869 s/\n//
18870 s/^[^=]*=[ ]*$//
18871 }'
18872 fi
18873
18874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18875 fi # test -n "$CONFIG_FILES"
18876
18877
18878 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18879 shift
18880 for ac_tag
18881 do
18882 case $ac_tag in
18883 :[FHLC]) ac_mode=$ac_tag; continue;;
18884 esac
18885 case $ac_mode$ac_tag in
18886 :[FHL]*:*);;
18887 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18888 :[FH]-) ac_tag=-:-;;
18889 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18890 esac
18891 ac_save_IFS=$IFS
18892 IFS=:
18893 set x $ac_tag
18894 IFS=$ac_save_IFS
18895 shift
18896 ac_file=$1
18897 shift
18898
18899 case $ac_mode in
18900 :L) ac_source=$1;;
18901 :[FH])
18902 ac_file_inputs=
18903 for ac_f
18904 do
18905 case $ac_f in
18906 -) ac_f="$ac_tmp/stdin";;
18907 *) # Look for the file first in the build tree, then in the source tree
18908 # (if the path is not absolute). The absolute path cannot be DOS-style,
18909 # because $ac_f cannot contain `:'.
18910 test -f "$ac_f" ||
18911 case $ac_f in
18912 [\\/$]*) false;;
18913 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18914 esac ||
18915 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18916 esac
18917 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18918 as_fn_append ac_file_inputs " '$ac_f'"
18919 done
18920
18921 # Let's still pretend it is `configure' which instantiates (i.e., don't
18922 # use $as_me), people would be surprised to read:
18923 # /* config.h. Generated by config.status. */
18924 configure_input='Generated from '`
18925 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18926 `' by configure.'
18927 if test x"$ac_file" != x-; then
18928 configure_input="$ac_file. $configure_input"
18929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18930 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18931 fi
18932 # Neutralize special characters interpreted by sed in replacement strings.
18933 case $configure_input in #(
18934 *\&* | *\|* | *\\* )
18935 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18936 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18937 *) ac_sed_conf_input=$configure_input;;
18938 esac
18939
18940 case $ac_tag in
18941 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18943 esac
18944 ;;
18945 esac
18946
18947 ac_dir=`$as_dirname -- "$ac_file" ||
18948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18949 X"$ac_file" : 'X\(//\)[^/]' \| \
18950 X"$ac_file" : 'X\(//\)$' \| \
18951 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18952 printf "%s\n" X"$ac_file" |
18953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18954 s//\1/
18955 q
18956 }
18957 /^X\(\/\/\)[^/].*/{
18958 s//\1/
18959 q
18960 }
18961 /^X\(\/\/\)$/{
18962 s//\1/
18963 q
18964 }
18965 /^X\(\/\).*/{
18966 s//\1/
18967 q
18968 }
18969 s/.*/./; q'`
18970 as_dir="$ac_dir"; as_fn_mkdir_p
18971 ac_builddir=.
18972
18973 case "$ac_dir" in
18974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18975 *)
18976 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18977 # A ".." for each directory in $ac_dir_suffix.
18978 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18979 case $ac_top_builddir_sub in
18980 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18981 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18982 esac ;;
18983 esac
18984 ac_abs_top_builddir=$ac_pwd
18985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18986 # for backward compatibility:
18987 ac_top_builddir=$ac_top_build_prefix
18988
18989 case $srcdir in
18990 .) # We are building in place.
18991 ac_srcdir=.
18992 ac_top_srcdir=$ac_top_builddir_sub
18993 ac_abs_top_srcdir=$ac_pwd ;;
18994 [\\/]* | ?:[\\/]* ) # Absolute name.
18995 ac_srcdir=$srcdir$ac_dir_suffix;
18996 ac_top_srcdir=$srcdir
18997 ac_abs_top_srcdir=$srcdir ;;
18998 *) # Relative name.
18999 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19000 ac_top_srcdir=$ac_top_build_prefix$srcdir
19001 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19002 esac
19003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19004
19005
19006 case $ac_mode in
19007 :F)
19008 #
19009 # CONFIG_FILE
19010 #
19011
19012 case $INSTALL in
19013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19014 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19015 esac
19016 ac_MKDIR_P=$MKDIR_P
19017 case $MKDIR_P in
19018 [\\/$]* | ?:[\\/]* ) ;;
19019 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19020 esac
19021 _ACEOF
19022
19023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19024 # If the template does not know about datarootdir, expand it.
19025 # FIXME: This hack should be removed a few years after 2.60.
19026 ac_datarootdir_hack=; ac_datarootdir_seen=
19027 ac_sed_dataroot='
19028 /datarootdir/ {
19029 p
19030 q
19031 }
19032 /@datadir@/p
19033 /@docdir@/p
19034 /@infodir@/p
19035 /@localedir@/p
19036 /@mandir@/p'
19037 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19038 *datarootdir*) ac_datarootdir_seen=yes;;
19039 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19041 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19042 _ACEOF
19043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19044 ac_datarootdir_hack='
19045 s&@datadir@&$datadir&g
19046 s&@docdir@&$docdir&g
19047 s&@infodir@&$infodir&g
19048 s&@localedir@&$localedir&g
19049 s&@mandir@&$mandir&g
19050 s&\\\${datarootdir}&$datarootdir&g' ;;
19051 esac
19052 _ACEOF
19053
19054 # Neutralize VPATH when `$srcdir' = `.'.
19055 # Shell code in configure.ac might set extrasub.
19056 # FIXME: do we really want to maintain this feature?
19057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19058 ac_sed_extra="$ac_vpsub
19059 $extrasub
19060 _ACEOF
19061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19062 :t
19063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19064 s|@configure_input@|$ac_sed_conf_input|;t t
19065 s&@top_builddir@&$ac_top_builddir_sub&;t t
19066 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19067 s&@srcdir@&$ac_srcdir&;t t
19068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19069 s&@top_srcdir@&$ac_top_srcdir&;t t
19070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19071 s&@builddir@&$ac_builddir&;t t
19072 s&@abs_builddir@&$ac_abs_builddir&;t t
19073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19074 s&@INSTALL@&$ac_INSTALL&;t t
19075 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19076 $ac_datarootdir_hack
19077 "
19078 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19079 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19080
19081 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19082 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19084 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19086 which seems to be undefined. Please make sure it is defined" >&5
19087 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19088 which seems to be undefined. Please make sure it is defined" >&2;}
19089
19090 rm -f "$ac_tmp/stdin"
19091 case $ac_file in
19092 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19093 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19094 esac \
19095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19096 ;;
19097
19098
19099 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19100 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19101 ;;
19102 esac
19103
19104
19105 case $ac_file$ac_mode in
19106 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19107 # Older Autoconf quotes --file arguments for eval, but not when files
19108 # are listed without --file. Let's play safe and only enable the eval
19109 # if we detect the quoting.
19110 # TODO: see whether this extra hack can be removed once we start
19111 # requiring Autoconf 2.70 or later.
19112 case $CONFIG_FILES in #(
19113 *\'*) :
19114 eval set x "$CONFIG_FILES" ;; #(
19115 *) :
19116 set x $CONFIG_FILES ;; #(
19117 *) :
19118 ;;
19119 esac
19120 shift
19121 # Used to flag and report bootstrapping failures.
19122 am_rc=0
19123 for am_mf
19124 do
19125 # Strip MF so we end up with the name of the file.
19126 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19127 # Check whether this is an Automake generated Makefile which includes
19128 # dependency-tracking related rules and includes.
19129 # Grep'ing the whole file directly is not great: AIX grep has a line
19130 # limit of 2048, but all sed's we know have understand at least 4000.
19131 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19132 || continue
19133 am_dirpart=`$as_dirname -- "$am_mf" ||
19134 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19135 X"$am_mf" : 'X\(//\)[^/]' \| \
19136 X"$am_mf" : 'X\(//\)$' \| \
19137 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19138 printf "%s\n" X"$am_mf" |
19139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19140 s//\1/
19141 q
19142 }
19143 /^X\(\/\/\)[^/].*/{
19144 s//\1/
19145 q
19146 }
19147 /^X\(\/\/\)$/{
19148 s//\1/
19149 q
19150 }
19151 /^X\(\/\).*/{
19152 s//\1/
19153 q
19154 }
19155 s/.*/./; q'`
19156 am_filepart=`$as_basename -- "$am_mf" ||
19157 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19158 X"$am_mf" : 'X\(//\)$' \| \
19159 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19160 printf "%s\n" X/"$am_mf" |
19161 sed '/^.*\/\([^/][^/]*\)\/*$/{
19162 s//\1/
19163 q
19164 }
19165 /^X\/\(\/\/\)$/{
19166 s//\1/
19167 q
19168 }
19169 /^X\/\(\/\).*/{
19170 s//\1/
19171 q
19172 }
19173 s/.*/./; q'`
19174 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19175 && sed -e '/# am--include-marker/d' "$am_filepart" \
19176 | $MAKE -f - am--depfiles" >&5
19177 (cd "$am_dirpart" \
19178 && sed -e '/# am--include-marker/d' "$am_filepart" \
19179 | $MAKE -f - am--depfiles) >&5 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } || am_rc=$?
19183 done
19184 if test $am_rc -ne 0; then
19185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19186 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19187 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19188 for automatic dependency tracking. If GNU make was not used, consider
19189 re-running the configure script with MAKE=\"gmake\" (or whatever is
19190 necessary). You can also try re-running configure with the
19191 '--disable-dependency-tracking' option to at least be able to build
19192 the package (albeit without support for automatic dependency tracking).
19193 See \`config.log' for more details" "$LINENO" 5; }
19194 fi
19195 { am_dirpart=; unset am_dirpart;}
19196 { am_filepart=; unset am_filepart;}
19197 { am_mf=; unset am_mf;}
19198 { am_rc=; unset am_rc;}
19199 rm -f conftest-deps.mk
19200 }
19201 ;;
19202 "libtool":C)
19203
19204 # See if we are running on zsh, and set the options that allow our
19205 # commands through without removal of \ escapes.
19206 if test -n "${ZSH_VERSION+set}"; then
19207 setopt NO_GLOB_SUBST
19208 fi
19209
19210 cfgfile=${ofile}T
19211 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19212 $RM "$cfgfile"
19213
19214 cat <<_LT_EOF >> "$cfgfile"
19215 #! $SHELL
19216 # Generated automatically by $as_me ($PACKAGE) $VERSION
19217 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19218
19219 # Provide generalized library-building support services.
19220 # Written by Gordon Matzigkeit, 1996
19221
19222 # Copyright (C) 2014 Free Software Foundation, Inc.
19223 # This is free software; see the source for copying conditions. There is NO
19224 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19225
19226 # GNU Libtool is free software; you can redistribute it and/or modify
19227 # it under the terms of the GNU General Public License as published by
19228 # the Free Software Foundation; either version 2 of of the License, or
19229 # (at your option) any later version.
19230 #
19231 # As a special exception to the GNU General Public License, if you
19232 # distribute this file as part of a program or library that is built
19233 # using GNU Libtool, you may include this file under the same
19234 # distribution terms that you use for the rest of that program.
19235 #
19236 # GNU Libtool is distributed in the hope that it will be useful, but
19237 # WITHOUT ANY WARRANTY; without even the implied warranty of
19238 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19239 # GNU General Public License for more details.
19240 #
19241 # You should have received a copy of the GNU General Public License
19242 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19243
19244
19245 # The names of the tagged configurations supported by this script.
19246 available_tags='CXX '
19247
19248 # Configured defaults for sys_lib_dlsearch_path munging.
19249 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19250
19251 # ### BEGIN LIBTOOL CONFIG
19252
19253 # Which release of libtool.m4 was used?
19254 macro_version=$macro_version
19255 macro_revision=$macro_revision
19256
19257 # Whether or not to build shared libraries.
19258 build_libtool_libs=$enable_shared
19259
19260 # Whether or not to build static libraries.
19261 build_old_libs=$enable_static
19262
19263 # What type of objects to build.
19264 pic_mode=$pic_mode
19265
19266 # Whether or not to optimize for fast installation.
19267 fast_install=$enable_fast_install
19268
19269 # Shared archive member basename,for filename based shared library versioning on AIX.
19270 shared_archive_member_spec=$shared_archive_member_spec
19271
19272 # Shell to use when invoking shell scripts.
19273 SHELL=$lt_SHELL
19274
19275 # An echo program that protects backslashes.
19276 ECHO=$lt_ECHO
19277
19278 # The PATH separator for the build system.
19279 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19280
19281 # The host system.
19282 host_alias=$host_alias
19283 host=$host
19284 host_os=$host_os
19285
19286 # The build system.
19287 build_alias=$build_alias
19288 build=$build
19289 build_os=$build_os
19290
19291 # A sed program that does not truncate output.
19292 SED=$lt_SED
19293
19294 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19295 Xsed="\$SED -e 1s/^X//"
19296
19297 # A grep program that handles long lines.
19298 GREP=$lt_GREP
19299
19300 # An ERE matcher.
19301 EGREP=$lt_EGREP
19302
19303 # A literal string matcher.
19304 FGREP=$lt_FGREP
19305
19306 # A BSD- or MS-compatible name lister.
19307 NM=$lt_NM
19308
19309 # Whether we need soft or hard links.
19310 LN_S=$lt_LN_S
19311
19312 # What is the maximum length of a command?
19313 max_cmd_len=$max_cmd_len
19314
19315 # Object file suffix (normally "o").
19316 objext=$ac_objext
19317
19318 # Executable file suffix (normally "").
19319 exeext=$exeext
19320
19321 # whether the shell understands "unset".
19322 lt_unset=$lt_unset
19323
19324 # turn spaces into newlines.
19325 SP2NL=$lt_lt_SP2NL
19326
19327 # turn newlines into spaces.
19328 NL2SP=$lt_lt_NL2SP
19329
19330 # convert \$build file names to \$host format.
19331 to_host_file_cmd=$lt_cv_to_host_file_cmd
19332
19333 # convert \$build files to toolchain format.
19334 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19335
19336 # A file(cmd) program that detects file types.
19337 FILECMD=$lt_FILECMD
19338
19339 # An object symbol dumper.
19340 OBJDUMP=$lt_OBJDUMP
19341
19342 # Method to check whether dependent libraries are shared objects.
19343 deplibs_check_method=$lt_deplibs_check_method
19344
19345 # Command to use when deplibs_check_method = "file_magic".
19346 file_magic_cmd=$lt_file_magic_cmd
19347
19348 # How to find potential files when deplibs_check_method = "file_magic".
19349 file_magic_glob=$lt_file_magic_glob
19350
19351 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19352 want_nocaseglob=$lt_want_nocaseglob
19353
19354 # DLL creation program.
19355 DLLTOOL=$lt_DLLTOOL
19356
19357 # Command to associate shared and link libraries.
19358 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19359
19360 # The archiver.
19361 AR=$lt_AR
19362
19363 # Flags to create an archive (by configure).
19364 lt_ar_flags=$lt_ar_flags
19365
19366 # Flags to create an archive.
19367 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19368
19369 # How to feed a file listing to the archiver.
19370 archiver_list_spec=$lt_archiver_list_spec
19371
19372 # A symbol stripping program.
19373 STRIP=$lt_STRIP
19374
19375 # Commands used to install an old-style archive.
19376 RANLIB=$lt_RANLIB
19377 old_postinstall_cmds=$lt_old_postinstall_cmds
19378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19379
19380 # Whether to use a lock for old archive extraction.
19381 lock_old_archive_extraction=$lock_old_archive_extraction
19382
19383 # A C compiler.
19384 LTCC=$lt_CC
19385
19386 # LTCC compiler flags.
19387 LTCFLAGS=$lt_CFLAGS
19388
19389 # Take the output of nm and produce a listing of raw symbols and C names.
19390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19391
19392 # Transform the output of nm in a proper C declaration.
19393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19394
19395 # Transform the output of nm into a list of symbols to manually relocate.
19396 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19397
19398 # Transform the output of nm in a C name address pair.
19399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19400
19401 # Transform the output of nm in a C name address pair when lib prefix is needed.
19402 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19403
19404 # The name lister interface.
19405 nm_interface=$lt_lt_cv_nm_interface
19406
19407 # Specify filename containing input files for \$NM.
19408 nm_file_list_spec=$lt_nm_file_list_spec
19409
19410 # The root where to search for dependent libraries,and where our libraries should be installed.
19411 lt_sysroot=$lt_sysroot
19412
19413 # Command to truncate a binary pipe.
19414 lt_truncate_bin=$lt_lt_cv_truncate_bin
19415
19416 # The name of the directory that contains temporary libtool files.
19417 objdir=$objdir
19418
19419 # Used to examine libraries when file_magic_cmd begins with "file".
19420 MAGIC_CMD=$MAGIC_CMD
19421
19422 # Must we lock files when doing compilation?
19423 need_locks=$lt_need_locks
19424
19425 # Manifest tool.
19426 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19427
19428 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19429 DSYMUTIL=$lt_DSYMUTIL
19430
19431 # Tool to change global to local symbols on Mac OS X.
19432 NMEDIT=$lt_NMEDIT
19433
19434 # Tool to manipulate fat objects and archives on Mac OS X.
19435 LIPO=$lt_LIPO
19436
19437 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19438 OTOOL=$lt_OTOOL
19439
19440 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19441 OTOOL64=$lt_OTOOL64
19442
19443 # Old archive suffix (normally "a").
19444 libext=$libext
19445
19446 # Shared library suffix (normally ".so").
19447 shrext_cmds=$lt_shrext_cmds
19448
19449 # The commands to extract the exported symbol list from a shared archive.
19450 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19451
19452 # Variables whose values should be saved in libtool wrapper scripts and
19453 # restored at link time.
19454 variables_saved_for_relink=$lt_variables_saved_for_relink
19455
19456 # Do we need the "lib" prefix for modules?
19457 need_lib_prefix=$need_lib_prefix
19458
19459 # Do we need a version for libraries?
19460 need_version=$need_version
19461
19462 # Library versioning type.
19463 version_type=$version_type
19464
19465 # Shared library runtime path variable.
19466 runpath_var=$runpath_var
19467
19468 # Shared library path variable.
19469 shlibpath_var=$shlibpath_var
19470
19471 # Is shlibpath searched before the hard-coded library search path?
19472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19473
19474 # Format of library name prefix.
19475 libname_spec=$lt_libname_spec
19476
19477 # List of archive names. First name is the real one, the rest are links.
19478 # The last name is the one that the linker finds with -lNAME
19479 library_names_spec=$lt_library_names_spec
19480
19481 # The coded name of the library, if different from the real name.
19482 soname_spec=$lt_soname_spec
19483
19484 # Permission mode override for installation of shared libraries.
19485 install_override_mode=$lt_install_override_mode
19486
19487 # Command to use after installation of a shared archive.
19488 postinstall_cmds=$lt_postinstall_cmds
19489
19490 # Command to use after uninstallation of a shared archive.
19491 postuninstall_cmds=$lt_postuninstall_cmds
19492
19493 # Commands used to finish a libtool library installation in a directory.
19494 finish_cmds=$lt_finish_cmds
19495
19496 # As "finish_cmds", except a single script fragment to be evaled but
19497 # not shown.
19498 finish_eval=$lt_finish_eval
19499
19500 # Whether we should hardcode library paths into libraries.
19501 hardcode_into_libs=$hardcode_into_libs
19502
19503 # Compile-time system search path for libraries.
19504 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19505
19506 # Detected run-time system search path for libraries.
19507 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19508
19509 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19510 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19511
19512 # Whether dlopen is supported.
19513 dlopen_support=$enable_dlopen
19514
19515 # Whether dlopen of programs is supported.
19516 dlopen_self=$enable_dlopen_self
19517
19518 # Whether dlopen of statically linked programs is supported.
19519 dlopen_self_static=$enable_dlopen_self_static
19520
19521 # Commands to strip libraries.
19522 old_striplib=$lt_old_striplib
19523 striplib=$lt_striplib
19524
19525
19526 # The linker used to build libraries.
19527 LD=$lt_LD
19528
19529 # How to create reloadable object files.
19530 reload_flag=$lt_reload_flag
19531 reload_cmds=$lt_reload_cmds
19532
19533 # Commands used to build an old-style archive.
19534 old_archive_cmds=$lt_old_archive_cmds
19535
19536 # A language specific compiler.
19537 CC=$lt_compiler
19538
19539 # Is the compiler the GNU compiler?
19540 with_gcc=$GCC
19541
19542 # Compiler flag to turn off builtin functions.
19543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19544
19545 # Additional compiler flags for building library objects.
19546 pic_flag=$lt_lt_prog_compiler_pic
19547
19548 # How to pass a linker flag through the compiler.
19549 wl=$lt_lt_prog_compiler_wl
19550
19551 # Compiler flag to prevent dynamic linking.
19552 link_static_flag=$lt_lt_prog_compiler_static
19553
19554 # Does compiler simultaneously support -c and -o options?
19555 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19556
19557 # Whether or not to add -lc for building shared libraries.
19558 build_libtool_need_lc=$archive_cmds_need_lc
19559
19560 # Whether or not to disallow shared libs when runtime libs are static.
19561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19562
19563 # Compiler flag to allow reflexive dlopens.
19564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19565
19566 # Compiler flag to generate shared objects directly from archives.
19567 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19568
19569 # Whether the compiler copes with passing no objects directly.
19570 compiler_needs_object=$lt_compiler_needs_object
19571
19572 # Create an old-style archive from a shared archive.
19573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19574
19575 # Create a temporary old-style archive to link instead of a shared archive.
19576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19577
19578 # Commands used to build a shared archive.
19579 archive_cmds=$lt_archive_cmds
19580 archive_expsym_cmds=$lt_archive_expsym_cmds
19581
19582 # Commands used to build a loadable module if different from building
19583 # a shared archive.
19584 module_cmds=$lt_module_cmds
19585 module_expsym_cmds=$lt_module_expsym_cmds
19586
19587 # Whether we are building with GNU ld or not.
19588 with_gnu_ld=$lt_with_gnu_ld
19589
19590 # Flag that allows shared libraries with undefined symbols to be built.
19591 allow_undefined_flag=$lt_allow_undefined_flag
19592
19593 # Flag that enforces no undefined symbols.
19594 no_undefined_flag=$lt_no_undefined_flag
19595
19596 # Flag to hardcode \$libdir into a binary during linking.
19597 # This must work even if \$libdir does not exist
19598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19599
19600 # Whether we need a single "-rpath" flag with a separated argument.
19601 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19602
19603 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19604 # DIR into the resulting binary.
19605 hardcode_direct=$hardcode_direct
19606
19607 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19608 # DIR into the resulting binary and the resulting library dependency is
19609 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19610 # library is relocated.
19611 hardcode_direct_absolute=$hardcode_direct_absolute
19612
19613 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19614 # into the resulting binary.
19615 hardcode_minus_L=$hardcode_minus_L
19616
19617 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19618 # into the resulting binary.
19619 hardcode_shlibpath_var=$hardcode_shlibpath_var
19620
19621 # Set to "yes" if building a shared library automatically hardcodes DIR
19622 # into the library and all subsequent libraries and executables linked
19623 # against it.
19624 hardcode_automatic=$hardcode_automatic
19625
19626 # Set to yes if linker adds runtime paths of dependent libraries
19627 # to runtime path list.
19628 inherit_rpath=$inherit_rpath
19629
19630 # Whether libtool must link a program against all its dependency libraries.
19631 link_all_deplibs=$link_all_deplibs
19632
19633 # Set to "yes" if exported symbols are required.
19634 always_export_symbols=$always_export_symbols
19635
19636 # The commands to list exported symbols.
19637 export_symbols_cmds=$lt_export_symbols_cmds
19638
19639 # Symbols that should not be listed in the preloaded symbols.
19640 exclude_expsyms=$lt_exclude_expsyms
19641
19642 # Symbols that must always be exported.
19643 include_expsyms=$lt_include_expsyms
19644
19645 # Commands necessary for linking programs (against libraries) with templates.
19646 prelink_cmds=$lt_prelink_cmds
19647
19648 # Commands necessary for finishing linking programs.
19649 postlink_cmds=$lt_postlink_cmds
19650
19651 # Specify filename containing input files.
19652 file_list_spec=$lt_file_list_spec
19653
19654 # How to hardcode a shared library path into an executable.
19655 hardcode_action=$hardcode_action
19656
19657 # The directories searched by this compiler when creating a shared library.
19658 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19659
19660 # Dependencies to place before and after the objects being linked to
19661 # create a shared library.
19662 predep_objects=$lt_predep_objects
19663 postdep_objects=$lt_postdep_objects
19664 predeps=$lt_predeps
19665 postdeps=$lt_postdeps
19666
19667 # The library search path used internally by the compiler when linking
19668 # a shared library.
19669 compiler_lib_search_path=$lt_compiler_lib_search_path
19670
19671 # ### END LIBTOOL CONFIG
19672
19673 _LT_EOF
19674
19675 cat <<'_LT_EOF' >> "$cfgfile"
19676
19677 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19678
19679 # func_munge_path_list VARIABLE PATH
19680 # -----------------------------------
19681 # VARIABLE is name of variable containing _space_ separated list of
19682 # directories to be munged by the contents of PATH, which is string
19683 # having a format:
19684 # "DIR[:DIR]:"
19685 # string "DIR[ DIR]" will be prepended to VARIABLE
19686 # ":DIR[:DIR]"
19687 # string "DIR[ DIR]" will be appended to VARIABLE
19688 # "DIRP[:DIRP]::[DIRA:]DIRA"
19689 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19690 # "DIRA[ DIRA]" will be appended to VARIABLE
19691 # "DIR[:DIR]"
19692 # VARIABLE will be replaced by "DIR[ DIR]"
19693 func_munge_path_list ()
19694 {
19695 case x$2 in
19696 x)
19697 ;;
19698 *:)
19699 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19700 ;;
19701 x:*)
19702 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19703 ;;
19704 *::*)
19705 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19706 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19707 ;;
19708 *)
19709 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19710 ;;
19711 esac
19712 }
19713
19714
19715 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19716 func_cc_basename ()
19717 {
19718 for cc_temp in $*""; do
19719 case $cc_temp in
19720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19722 \-*) ;;
19723 *) break;;
19724 esac
19725 done
19726 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19727 }
19728
19729
19730 # ### END FUNCTIONS SHARED WITH CONFIGURE
19731
19732 _LT_EOF
19733
19734 case $host_os in
19735 aix3*)
19736 cat <<\_LT_EOF >> "$cfgfile"
19737 # AIX sometimes has problems with the GCC collect2 program. For some
19738 # reason, if we set the COLLECT_NAMES environment variable, the problems
19739 # vanish in a puff of smoke.
19740 if test set != "${COLLECT_NAMES+set}"; then
19741 COLLECT_NAMES=
19742 export COLLECT_NAMES
19743 fi
19744 _LT_EOF
19745 ;;
19746 esac
19747
19748
19749
19750 ltmain=$ac_aux_dir/ltmain.sh
19751
19752
19753 # We use sed instead of cat because bash on DJGPP gets confused if
19754 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19755 # text mode, it properly converts lines to CR/LF. This bash problem
19756 # is reportedly fixed, but why not run on old versions too?
19757 $SED '$q' "$ltmain" >> "$cfgfile" \
19758 || (rm -f "$cfgfile"; exit 1)
19759
19760 mv -f "$cfgfile" "$ofile" ||
19761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19762 chmod +x "$ofile"
19763
19764
19765 cat <<_LT_EOF >> "$ofile"
19766
19767 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19768
19769 # The linker used to build libraries.
19770 LD=$lt_LD_CXX
19771
19772 # How to create reloadable object files.
19773 reload_flag=$lt_reload_flag_CXX
19774 reload_cmds=$lt_reload_cmds_CXX
19775
19776 # Commands used to build an old-style archive.
19777 old_archive_cmds=$lt_old_archive_cmds_CXX
19778
19779 # A language specific compiler.
19780 CC=$lt_compiler_CXX
19781
19782 # Is the compiler the GNU compiler?
19783 with_gcc=$GCC_CXX
19784
19785 # Compiler flag to turn off builtin functions.
19786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19787
19788 # Additional compiler flags for building library objects.
19789 pic_flag=$lt_lt_prog_compiler_pic_CXX
19790
19791 # How to pass a linker flag through the compiler.
19792 wl=$lt_lt_prog_compiler_wl_CXX
19793
19794 # Compiler flag to prevent dynamic linking.
19795 link_static_flag=$lt_lt_prog_compiler_static_CXX
19796
19797 # Does compiler simultaneously support -c and -o options?
19798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19799
19800 # Whether or not to add -lc for building shared libraries.
19801 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19802
19803 # Whether or not to disallow shared libs when runtime libs are static.
19804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19805
19806 # Compiler flag to allow reflexive dlopens.
19807 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19808
19809 # Compiler flag to generate shared objects directly from archives.
19810 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19811
19812 # Whether the compiler copes with passing no objects directly.
19813 compiler_needs_object=$lt_compiler_needs_object_CXX
19814
19815 # Create an old-style archive from a shared archive.
19816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19817
19818 # Create a temporary old-style archive to link instead of a shared archive.
19819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19820
19821 # Commands used to build a shared archive.
19822 archive_cmds=$lt_archive_cmds_CXX
19823 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19824
19825 # Commands used to build a loadable module if different from building
19826 # a shared archive.
19827 module_cmds=$lt_module_cmds_CXX
19828 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19829
19830 # Whether we are building with GNU ld or not.
19831 with_gnu_ld=$lt_with_gnu_ld_CXX
19832
19833 # Flag that allows shared libraries with undefined symbols to be built.
19834 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19835
19836 # Flag that enforces no undefined symbols.
19837 no_undefined_flag=$lt_no_undefined_flag_CXX
19838
19839 # Flag to hardcode \$libdir into a binary during linking.
19840 # This must work even if \$libdir does not exist
19841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19842
19843 # Whether we need a single "-rpath" flag with a separated argument.
19844 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19845
19846 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19847 # DIR into the resulting binary.
19848 hardcode_direct=$hardcode_direct_CXX
19849
19850 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19851 # DIR into the resulting binary and the resulting library dependency is
19852 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19853 # library is relocated.
19854 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19855
19856 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19857 # into the resulting binary.
19858 hardcode_minus_L=$hardcode_minus_L_CXX
19859
19860 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19861 # into the resulting binary.
19862 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19863
19864 # Set to "yes" if building a shared library automatically hardcodes DIR
19865 # into the library and all subsequent libraries and executables linked
19866 # against it.
19867 hardcode_automatic=$hardcode_automatic_CXX
19868
19869 # Set to yes if linker adds runtime paths of dependent libraries
19870 # to runtime path list.
19871 inherit_rpath=$inherit_rpath_CXX
19872
19873 # Whether libtool must link a program against all its dependency libraries.
19874 link_all_deplibs=$link_all_deplibs_CXX
19875
19876 # Set to "yes" if exported symbols are required.
19877 always_export_symbols=$always_export_symbols_CXX
19878
19879 # The commands to list exported symbols.
19880 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19881
19882 # Symbols that should not be listed in the preloaded symbols.
19883 exclude_expsyms=$lt_exclude_expsyms_CXX
19884
19885 # Symbols that must always be exported.
19886 include_expsyms=$lt_include_expsyms_CXX
19887
19888 # Commands necessary for linking programs (against libraries) with templates.
19889 prelink_cmds=$lt_prelink_cmds_CXX
19890
19891 # Commands necessary for finishing linking programs.
19892 postlink_cmds=$lt_postlink_cmds_CXX
19893
19894 # Specify filename containing input files.
19895 file_list_spec=$lt_file_list_spec_CXX
19896
19897 # How to hardcode a shared library path into an executable.
19898 hardcode_action=$hardcode_action_CXX
19899
19900 # The directories searched by this compiler when creating a shared library.
19901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19902
19903 # Dependencies to place before and after the objects being linked to
19904 # create a shared library.
19905 predep_objects=$lt_predep_objects_CXX
19906 postdep_objects=$lt_postdep_objects_CXX
19907 predeps=$lt_predeps_CXX
19908 postdeps=$lt_postdeps_CXX
19909
19910 # The library search path used internally by the compiler when linking
19911 # a shared library.
19912 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19913
19914 # ### END LIBTOOL TAG CONFIG: CXX
19915 _LT_EOF
19916
19917 ;;
19918
19919 esac
19920 done # for ac_tag
19921
19922
19923 as_fn_exit 0
19924 _ACEOF
19925 ac_clean_files=$ac_clean_files_save
19926
19927 test $ac_write_fail = 0 ||
19928 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19929
19930
19931 # configure is writing to config.log, and then calls config.status.
19932 # config.status does its own redirection, appending to config.log.
19933 # Unfortunately, on DOS this fails, as config.log is still kept open
19934 # by configure, so config.status won't be able to write to it; its
19935 # output is simply discarded. So we exec the FD to /dev/null,
19936 # effectively closing config.log, so it can be properly (re)opened and
19937 # appended to by config.status. When coming back to configure, we
19938 # need to make the FD available again.
19939 if test "$no_create" != yes; then
19940 ac_cs_success=:
19941 ac_config_status_args=
19942 test "$silent" = yes &&
19943 ac_config_status_args="$ac_config_status_args --quiet"
19944 exec 5>/dev/null
19945 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19946 exec 5>>config.log
19947 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19948 # would make configure fail if this is the last instruction.
19949 $ac_cs_success || as_fn_exit 1
19950 fi
19951 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19953 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19954 fi
19955
19956 if test "$force_libusb_on_linux" = "yes"; then
19957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
19958 libusb support on linux will be dropped in a future release please
19959 migrate to libhidapi!" >&5
19960 printf "%s\n" "$as_me: WARNING:
19961 libusb support on linux will be dropped in a future release please
19962 migrate to libhidapi!" >&2;}
19963 fi
19964