Debian Codegraph @

libccd/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libccd 1.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libccd'
592 PACKAGE_TARNAME='libccd'
593 PACKAGE_VERSION='1.0'
594 PACKAGE_STRING='libccd 1.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/ccd.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 CCD_PRECISION
640 CCD_FPUARCH_FLAGS
641 CXXCPP
642 CPP
643 LT_SYS_LIBRARY_PATH
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 ac_ct_AR
652 AR
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 EGREP
662 GREP
663 SED
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 LIBTOOL
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 ac_ct_CC
677 CFLAGS
678 CC
679 am__fastdepCXX_FALSE
680 am__fastdepCXX_TRUE
681 CXXDEPMODE
682 am__nodep
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CXX
692 CPPFLAGS
693 LDFLAGS
694 CXXFLAGS
695 CXX
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 runstatedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_dependency_tracking
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_aix_soname
772 with_gnu_ld
773 with_sysroot
774 enable_libtool_lock
775 enable_double_precision
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CXX
781 CXXFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CCC
786 CC
787 CFLAGS
788 LT_SYS_LIBRARY_PATH
789 CPP
790 CXXCPP
791 CCD_FPUARCH_FLAGS'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 runstatedir='${localstatedir}/run'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -runstatedir | --runstatedir | --runstatedi | --runstated \
1084 | --runstate | --runstat | --runsta | --runst | --runs \
1085 | --run | --ru | --r)
1086 ac_prev=runstatedir ;;
1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1089 | --run=* | --ru=* | --r=*)
1090 runstatedir=$ac_optarg ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1152
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
1187 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 ;;
1208
1209 esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1215 fi
1216
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223 fi
1224
1225 # Check all directory arguments for consistency.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir runstatedir
1230 do
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1245
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1252
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1259 fi
1260 fi
1261
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265 test "$silent" = yes && exec 6>/dev/null
1266
1267
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\).*/{
1299 s//\1/
1300 q
1301 }
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1306 fi
1307 else
1308 ac_srcdir_defaulted=no
1309 fi
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 fi
1314 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342 \`configure' configures libccd 1.0 to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1367
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/libccd]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1397
1398 cat <<\_ACEOF
1399
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of libccd 1.0:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417 Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-silent-rules less verbose build output (undo: "make V=1")
1422 --disable-silent-rules verbose build output (undo: "make V=0")
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --enable-shared[=PKGS] build shared libraries [default=no]
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --disable-libtool-lock avoid locking (might break parallel builds)
1432 --enable-double-precision
1433 enable double precision computations instead of
1434 single precision
1435
1436 Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-aix-soname=aix|svr4|both
1442 shared library versioning (aka "SONAME") variant to
1443 provide on AIX, [default=aix].
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1446 compiler's sysroot if not specified).
1447
1448 Some influential environment variables:
1449 CXX C++ compiler command
1450 CXXFLAGS C++ compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 CC C compiler command
1457 CFLAGS C compiler flags
1458 LT_SYS_LIBRARY_PATH
1459 User-defined run-time library search path.
1460 CPP C preprocessor
1461 CXXCPP C++ preprocessor
1462 CCD_FPUARCH_FLAGS
1463 FPU Architecture Flags
1464
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1467
1468 Report bugs to <[email protected]>.
1469 _ACEOF
1470 ac_status=$?
1471 fi
1472
1473 if test "$ac_init_help" = "recursive"; then
1474 # If there are subdirs, report their specific --help.
1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476 test -d "$ac_dir" ||
1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 continue
1479 ac_builddir=.
1480
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *)
1484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1496
1497 case $srcdir in
1498 .) # We are building in place.
1499 ac_srcdir=.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1506 *) # Relative name.
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1521 else
1522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1525 done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530 cat <<\_ACEOF
1531 libccd configure 1.0
1532 generated by GNU Autoconf 2.69
1533
1534 Copyright (C) 2012 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538 exit
1539 fi
1540
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1544
1545 # ac_fn_cxx_try_compile LINENO
1546 # ----------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_cxx_try_compile ()
1549 {
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_cxx_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext; then :
1571 ac_retval=0
1572 else
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1575
1576 ac_retval=1
1577 fi
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } # ac_fn_cxx_try_compile
1582
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_link ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest$ac_exeext
1628 if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest$ac_exeext && {
1647 test "$cross_compiling" = yes ||
1648 test -x conftest$ac_exeext
1649 }; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656 fi
1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659 # interfere with the next link command; also delete a directory that is
1660 # left behind by Apple's compiler. We do this before executing the actions.
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_link
1666
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 eval "$3=yes"
1686 else
1687 eval "$3=no"
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 fi
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
1696 } # ac_fn_c_check_header_compile
1697
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_cpp ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } > conftest.i && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_cpp
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770 fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792 #define $2 innocuous_$2
1793
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $2 (); below.
1796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797 <limits.h> exists even on freestanding compilers. */
1798
1799 #ifdef __STDC__
1800 # include <limits.h>
1801 #else
1802 # include <assert.h>
1803 #endif
1804
1805 #undef $2
1806
1807 /* Override any GCC internal prototype to avoid an error.
1808 Use char because int might match the return type of a GCC
1809 builtin and then its argument prototype would still apply. */
1810 #ifdef __cplusplus
1811 extern "C"
1812 #endif
1813 char $2 ();
1814 /* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817 #if defined __stub_$2 || defined __stub___$2
1818 choke me
1819 #endif
1820
1821 int
1822 main ()
1823 {
1824 return $2 ();
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_link "$LINENO"; then :
1830 eval "$3=yes"
1831 else
1832 eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext \
1835 conftest$ac_exeext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_func
1843
1844 # ac_fn_cxx_try_cpp LINENO
1845 # ------------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_cpp ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_cpp conftest.$ac_ext"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1858 ac_status=$?
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1863 fi
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } > conftest.i && {
1866 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1868 }; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=1
1875 fi
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879 } # ac_fn_cxx_try_cpp
1880
1881 # ac_fn_cxx_try_link LINENO
1882 # -------------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_link ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext conftest$ac_exeext
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=1
1916 fi
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925 } # ac_fn_cxx_try_link
1926
1927 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1930 # the include files in INCLUDES and setting the cache variable VAR
1931 # accordingly.
1932 ac_fn_c_check_header_mongrel ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if eval \${$3+:} false; then :
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940 fi
1941 eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 else
1945 # Is the header compilable?
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1947 $as_echo_n "checking $2 usability... " >&6; }
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 #include <$2>
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 ac_header_compiler=yes
1955 else
1956 ac_header_compiler=no
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1960 $as_echo "$ac_header_compiler" >&6; }
1961
1962 # Is the header present?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1964 $as_echo_n "checking $2 presence... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_cpp "$LINENO"; then :
1970 ac_header_preproc=yes
1971 else
1972 ac_header_preproc=no
1973 fi
1974 rm -f conftest.err conftest.i conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1976 $as_echo "$ac_header_preproc" >&6; }
1977
1978 # So? What about this header?
1979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1980 yes:no: )
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1982 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 ;;
1986 no:yes:* )
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1988 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1990 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1992 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1994 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 ( $as_echo "## ------------------------------- ##
1998 ## Report this to [email protected] ##
1999 ## ------------------------------- ##"
2000 ) | sed "s/^/$as_me: WARNING: /" >&2
2001 ;;
2002 esac
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 eval "$3=\$ac_header_compiler"
2009 fi
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 fi
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016 } # ac_fn_c_check_header_mongrel
2017
2018 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2019 # -------------------------------------------
2020 # Tests whether TYPE exists after having included INCLUDES, setting cache
2021 # variable VAR accordingly.
2022 ac_fn_c_check_type ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=no"
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 if (sizeof ($2))
2038 return 0;
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 if (sizeof (($2)))
2051 return 0;
2052 ;
2053 return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057
2058 else
2059 eval "$3=yes"
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 fi
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069
2070 } # ac_fn_c_check_type
2071 cat >config.log <<_ACEOF
2072 This file contains any messages produced by compilers while
2073 running configure, to aid debugging if configure makes a mistake.
2074
2075 It was created by libccd $as_me 1.0, which was
2076 generated by GNU Autoconf 2.69. Invocation command line was
2077
2078 $ $0 $@
2079
2080 _ACEOF
2081 exec 5>>config.log
2082 {
2083 cat <<_ASUNAME
2084 ## --------- ##
2085 ## Platform. ##
2086 ## --------- ##
2087
2088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2093
2094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2095 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2096
2097 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2098 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2100 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2101 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2102 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2103 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2104
2105 _ASUNAME
2106
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 $as_echo "PATH: $as_dir"
2113 done
2114 IFS=$as_save_IFS
2115
2116 } >&5
2117
2118 cat >&5 <<_ACEOF
2119
2120
2121 ## ----------- ##
2122 ## Core tests. ##
2123 ## ----------- ##
2124
2125 _ACEOF
2126
2127
2128 # Keep a trace of the command line.
2129 # Strip out --no-create and --no-recursion so they do not pile up.
2130 # Strip out --silent because we don't want to record it for future runs.
2131 # Also quote any args containing shell meta-characters.
2132 # Make two passes to allow for proper duplicate-argument suppression.
2133 ac_configure_args=
2134 ac_configure_args0=
2135 ac_configure_args1=
2136 ac_must_keep_next=false
2137 for ac_pass in 1 2
2138 do
2139 for ac_arg
2140 do
2141 case $ac_arg in
2142 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2144 | -silent | --silent | --silen | --sile | --sil)
2145 continue ;;
2146 *\'*)
2147 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2148 esac
2149 case $ac_pass in
2150 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2151 2)
2152 as_fn_append ac_configure_args1 " '$ac_arg'"
2153 if test $ac_must_keep_next = true; then
2154 ac_must_keep_next=false # Got value, back to normal.
2155 else
2156 case $ac_arg in
2157 *=* | --config-cache | -C | -disable-* | --disable-* \
2158 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2159 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2160 | -with-* | --with-* | -without-* | --without-* | --x)
2161 case "$ac_configure_args0 " in
2162 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2163 esac
2164 ;;
2165 -* ) ac_must_keep_next=true ;;
2166 esac
2167 fi
2168 as_fn_append ac_configure_args " '$ac_arg'"
2169 ;;
2170 esac
2171 done
2172 done
2173 { ac_configure_args0=; unset ac_configure_args0;}
2174 { ac_configure_args1=; unset ac_configure_args1;}
2175
2176 # When interrupted or exit'd, cleanup temporary files, and complete
2177 # config.log. We remove comments because anyway the quotes in there
2178 # would cause problems or look ugly.
2179 # WARNING: Use '\'' to represent an apostrophe within the trap.
2180 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2181 trap 'exit_status=$?
2182 # Save into config.log some information that might help in debugging.
2183 {
2184 echo
2185
2186 $as_echo "## ---------------- ##
2187 ## Cache variables. ##
2188 ## ---------------- ##"
2189 echo
2190 # The following way of writing the cache mishandles newlines in values,
2191 (
2192 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2193 eval ac_val=\$$ac_var
2194 case $ac_val in #(
2195 *${as_nl}*)
2196 case $ac_var in #(
2197 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2198 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2199 esac
2200 case $ac_var in #(
2201 _ | IFS | as_nl) ;; #(
2202 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2203 *) { eval $ac_var=; unset $ac_var;} ;;
2204 esac ;;
2205 esac
2206 done
2207 (set) 2>&1 |
2208 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2209 *${as_nl}ac_space=\ *)
2210 sed -n \
2211 "s/'\''/'\''\\\\'\'''\''/g;
2212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2213 ;; #(
2214 *)
2215 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2216 ;;
2217 esac |
2218 sort
2219 )
2220 echo
2221
2222 $as_echo "## ----------------- ##
2223 ## Output variables. ##
2224 ## ----------------- ##"
2225 echo
2226 for ac_var in $ac_subst_vars
2227 do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in
2230 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2231 esac
2232 $as_echo "$ac_var='\''$ac_val'\''"
2233 done | sort
2234 echo
2235
2236 if test -n "$ac_subst_files"; then
2237 $as_echo "## ------------------- ##
2238 ## File substitutions. ##
2239 ## ------------------- ##"
2240 echo
2241 for ac_var in $ac_subst_files
2242 do
2243 eval ac_val=\$$ac_var
2244 case $ac_val in
2245 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 esac
2247 $as_echo "$ac_var='\''$ac_val'\''"
2248 done | sort
2249 echo
2250 fi
2251
2252 if test -s confdefs.h; then
2253 $as_echo "## ----------- ##
2254 ## confdefs.h. ##
2255 ## ----------- ##"
2256 echo
2257 cat confdefs.h
2258 echo
2259 fi
2260 test "$ac_signal" != 0 &&
2261 $as_echo "$as_me: caught signal $ac_signal"
2262 $as_echo "$as_me: exit $exit_status"
2263 } >&5
2264 rm -f core *.core core.conftest.* &&
2265 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2266 exit $exit_status
2267 ' 0
2268 for ac_signal in 1 2 13 15; do
2269 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2270 done
2271 ac_signal=0
2272
2273 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2274 rm -f -r conftest* confdefs.h
2275
2276 $as_echo "/* confdefs.h */" > confdefs.h
2277
2278 # Predefined preprocessor variables.
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_NAME "$PACKAGE_NAME"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_STRING "$PACKAGE_STRING"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2298 _ACEOF
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_URL "$PACKAGE_URL"
2302 _ACEOF
2303
2304
2305 # Let the site file select an alternate cache file if it wants to.
2306 # Prefer an explicitly selected file to automatically selected ones.
2307 ac_site_file1=NONE
2308 ac_site_file2=NONE
2309 if test -n "$CONFIG_SITE"; then
2310 # We do not want a PATH search for config.site.
2311 case $CONFIG_SITE in #((
2312 -*) ac_site_file1=./$CONFIG_SITE;;
2313 */*) ac_site_file1=$CONFIG_SITE;;
2314 *) ac_site_file1=./$CONFIG_SITE;;
2315 esac
2316 elif test "x$prefix" != xNONE; then
2317 ac_site_file1=$prefix/share/config.site
2318 ac_site_file2=$prefix/etc/config.site
2319 else
2320 ac_site_file1=$ac_default_prefix/share/config.site
2321 ac_site_file2=$ac_default_prefix/etc/config.site
2322 fi
2323 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2324 do
2325 test "x$ac_site_file" = xNONE && continue
2326 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2328 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2329 sed 's/^/| /' "$ac_site_file" >&5
2330 . "$ac_site_file" \
2331 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333 as_fn_error $? "failed to load site script $ac_site_file
2334 See \`config.log' for more details" "$LINENO" 5; }
2335 fi
2336 done
2337
2338 if test -r "$cache_file"; then
2339 # Some versions of bash will fail to source /dev/null (special files
2340 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2341 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2343 $as_echo "$as_me: loading cache $cache_file" >&6;}
2344 case $cache_file in
2345 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2346 *) . "./$cache_file";;
2347 esac
2348 fi
2349 else
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2351 $as_echo "$as_me: creating cache $cache_file" >&6;}
2352 >$cache_file
2353 fi
2354
2355 # Check that the precious variables saved in the cache have kept the same
2356 # value.
2357 ac_cache_corrupted=false
2358 for ac_var in $ac_precious_vars; do
2359 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2360 eval ac_new_set=\$ac_env_${ac_var}_set
2361 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2362 eval ac_new_val=\$ac_env_${ac_var}_value
2363 case $ac_old_set,$ac_new_set in
2364 set,)
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2366 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2367 ac_cache_corrupted=: ;;
2368 ,set)
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2370 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2371 ac_cache_corrupted=: ;;
2372 ,);;
2373 *)
2374 if test "x$ac_old_val" != "x$ac_new_val"; then
2375 # differences in whitespace do not lead to failure.
2376 ac_old_val_w=`echo x $ac_old_val`
2377 ac_new_val_w=`echo x $ac_new_val`
2378 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2380 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2381 ac_cache_corrupted=:
2382 else
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2384 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2385 eval $ac_var=\$ac_old_val
2386 fi
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2388 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2390 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2391 fi;;
2392 esac
2393 # Pass precious variables to config.status.
2394 if test "$ac_new_set" = set; then
2395 case $ac_new_val in
2396 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2397 *) ac_arg=$ac_var=$ac_new_val ;;
2398 esac
2399 case " $ac_configure_args " in
2400 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2401 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2402 esac
2403 fi
2404 done
2405 if $ac_cache_corrupted; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2409 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2410 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2411 fi
2412 ## -------------------- ##
2413 ## Main body of script. ##
2414 ## -------------------- ##
2415
2416 ac_ext=c
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421
2422
2423
2424 ac_config_headers="$ac_config_headers src/config.h"
2425
2426 am__api_version='1.15'
2427
2428 ac_aux_dir=
2429 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2430 if test -f "$ac_dir/install-sh"; then
2431 ac_aux_dir=$ac_dir
2432 ac_install_sh="$ac_aux_dir/install-sh -c"
2433 break
2434 elif test -f "$ac_dir/install.sh"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/install.sh -c"
2437 break
2438 elif test -f "$ac_dir/shtool"; then
2439 ac_aux_dir=$ac_dir
2440 ac_install_sh="$ac_aux_dir/shtool install -c"
2441 break
2442 fi
2443 done
2444 if test -z "$ac_aux_dir"; then
2445 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2446 fi
2447
2448 # These three variables are undocumented and unsupported,
2449 # and are intended to be withdrawn in a future Autoconf release.
2450 # They can cause serious problems if a builder's source tree is in a directory
2451 # whose full name contains unusual characters.
2452 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2453 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2454 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2455
2456
2457 # Find a good install program. We prefer a C program (faster),
2458 # so one script is as good as another. But avoid the broken or
2459 # incompatible versions:
2460 # SysV /etc/install, /usr/sbin/install
2461 # SunOS /usr/etc/install
2462 # IRIX /sbin/install
2463 # AIX /bin/install
2464 # AmigaOS /C/install, which installs bootblocks on floppy discs
2465 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2466 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2467 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2468 # OS/2's system install, which has a completely different semantic
2469 # ./install, which can be erroneously created by make from ./install.sh.
2470 # Reject install programs that cannot install multiple files.
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2472 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2473 if test -z "$INSTALL"; then
2474 if ${ac_cv_path_install+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 # Account for people who put trailing slashes in PATH elements.
2483 case $as_dir/ in #((
2484 ./ | .// | /[cC]/* | \
2485 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2486 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2487 /usr/ucb/* ) ;;
2488 *)
2489 # OSF1 and SCO ODT 3.0 have their own names for install.
2490 # Don't use installbsd from OSF since it installs stuff as root
2491 # by default.
2492 for ac_prog in ginstall scoinst install; do
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2495 if test $ac_prog = install &&
2496 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497 # AIX install. It has an incompatible calling convention.
2498 :
2499 elif test $ac_prog = install &&
2500 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # program-specific install script used by HP pwplus--don't use.
2502 :
2503 else
2504 rm -rf conftest.one conftest.two conftest.dir
2505 echo one > conftest.one
2506 echo two > conftest.two
2507 mkdir conftest.dir
2508 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2509 test -s conftest.one && test -s conftest.two &&
2510 test -s conftest.dir/conftest.one &&
2511 test -s conftest.dir/conftest.two
2512 then
2513 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2514 break 3
2515 fi
2516 fi
2517 fi
2518 done
2519 done
2520 ;;
2521 esac
2522
2523 done
2524 IFS=$as_save_IFS
2525
2526 rm -rf conftest.one conftest.two conftest.dir
2527
2528 fi
2529 if test "${ac_cv_path_install+set}" = set; then
2530 INSTALL=$ac_cv_path_install
2531 else
2532 # As a last resort, use the slow shell script. Don't cache a
2533 # value for INSTALL within a source directory, because that will
2534 # break other packages using the cache if that directory is
2535 # removed, or if the value is a relative name.
2536 INSTALL=$ac_install_sh
2537 fi
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2540 $as_echo "$INSTALL" >&6; }
2541
2542 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2543 # It thinks the first close brace ends the variable substitution.
2544 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2545
2546 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2547
2548 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2551 $as_echo_n "checking whether build environment is sane... " >&6; }
2552 # Reject unsafe characters in $srcdir or the absolute working directory
2553 # name. Accept space and tab only in the latter.
2554 am_lf='
2555 '
2556 case `pwd` in
2557 *[\\\"\#\$\&\'\`$am_lf]*)
2558 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2559 esac
2560 case $srcdir in
2561 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2562 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2563 esac
2564
2565 # Do 'set' in a subshell so we don't clobber the current shell's
2566 # arguments. Must try -L first in case configure is actually a
2567 # symlink; some systems play weird games with the mod time of symlinks
2568 # (eg FreeBSD returns the mod time of the symlink's containing
2569 # directory).
2570 if (
2571 am_has_slept=no
2572 for am_try in 1 2; do
2573 echo "timestamp, slept: $am_has_slept" > conftest.file
2574 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2575 if test "$*" = "X"; then
2576 # -L didn't work.
2577 set X `ls -t "$srcdir/configure" conftest.file`
2578 fi
2579 if test "$*" != "X $srcdir/configure conftest.file" \
2580 && test "$*" != "X conftest.file $srcdir/configure"; then
2581
2582 # If neither matched, then we have a broken ls. This can happen
2583 # if, for instance, CONFIG_SHELL is bash and it inherits a
2584 # broken ls alias from the environment. This has actually
2585 # happened. Such a system could not be considered "sane".
2586 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" "$LINENO" 5
2588 fi
2589 if test "$2" = conftest.file || test $am_try -eq 2; then
2590 break
2591 fi
2592 # Just in case.
2593 sleep 1
2594 am_has_slept=yes
2595 done
2596 test "$2" = conftest.file
2597 )
2598 then
2599 # Ok.
2600 :
2601 else
2602 as_fn_error $? "newly created file is older than distributed files!
2603 Check your system clock" "$LINENO" 5
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2606 $as_echo "yes" >&6; }
2607 # If we didn't sleep, we still need to ensure time stamps of config.status and
2608 # generated files are strictly newer.
2609 am_sleep_pid=
2610 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2611 ( sleep 1 ) &
2612 am_sleep_pid=$!
2613 fi
2614
2615 rm -f conftest.file
2616
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626
2627 # Expand $ac_aux_dir to an absolute path.
2628 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2629
2630 if test x"${MISSING+set}" != xset; then
2631 case $am_aux_dir in
2632 *\ * | *\ *)
2633 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634 *)
2635 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636 esac
2637 fi
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --is-lightweight"; then
2640 am_missing_run="$MISSING "
2641 else
2642 am_missing_run=
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2645 fi
2646
2647 if test x"${install_sh+set}" != xset; then
2648 case $am_aux_dir in
2649 *\ * | *\ *)
2650 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651 *)
2652 install_sh="\${SHELL} $am_aux_dir/install-sh"
2653 esac
2654 fi
2655
2656 # Installed binaries are usually stripped using 'strip' when the user
2657 # run "make install-strip". However 'strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the 'STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_STRIP+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$STRIP"; then
2670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$ac_cv_prog_STRIP"; then
2701 ac_ct_STRIP=$STRIP
2702 # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$ac_ct_STRIP"; then
2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_ac_ct_STRIP="strip"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738 if test "x$ac_ct_STRIP" = x; then
2739 STRIP=":"
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747 STRIP=$ac_ct_STRIP
2748 fi
2749 else
2750 STRIP="$ac_cv_prog_STRIP"
2751 fi
2752
2753 fi
2754 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759 if ${ac_cv_path_mkdir+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_prog in mkdir gmkdir; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2770 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771 'mkdir (GNU coreutils) '* | \
2772 'mkdir (coreutils) '* | \
2773 'mkdir (fileutils) '4.1*)
2774 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775 break 3;;
2776 esac
2777 done
2778 done
2779 done
2780 IFS=$as_save_IFS
2781
2782 fi
2783
2784 test -d ./--version && rmdir ./--version
2785 if test "${ac_cv_path_mkdir+set}" = set; then
2786 MKDIR_P="$ac_cv_path_mkdir -p"
2787 else
2788 # As a last resort, use the slow shell script. Don't cache a
2789 # value for MKDIR_P within a source directory, because that will
2790 # break other packages using the cache if that directory is
2791 # removed, or if the value is a relative name.
2792 MKDIR_P="$ac_install_sh -d"
2793 fi
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2797
2798 for ac_prog in gawk mawk nawk awk
2799 do
2800 # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if ${ac_cv_prog_AWK+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test -n "$AWK"; then
2808 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_AWK="$ac_prog"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 AWK=$ac_cv_prog_AWK
2828 if test -n "$AWK"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2830 $as_echo "$AWK" >&6; }
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836
2837 test -n "$AWK" && break
2838 done
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2842 set x ${MAKE-make}
2843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2844 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 cat >conftest.make <<\_ACEOF
2848 SHELL = /bin/sh
2849 all:
2850 @echo '@@@%%%=$(MAKE)=@@@%%%'
2851 _ACEOF
2852 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2854 *@@@%%%=?*=@@@%%%*)
2855 eval ac_cv_prog_make_${ac_make}_set=yes;;
2856 *)
2857 eval ac_cv_prog_make_${ac_make}_set=no;;
2858 esac
2859 rm -f conftest.make
2860 fi
2861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863 $as_echo "yes" >&6; }
2864 SET_MAKE=
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 SET_MAKE="MAKE=${MAKE-make}"
2869 fi
2870
2871 rm -rf .tst 2>/dev/null
2872 mkdir .tst 2>/dev/null
2873 if test -d .tst; then
2874 am__leading_dot=.
2875 else
2876 am__leading_dot=_
2877 fi
2878 rmdir .tst 2>/dev/null
2879
2880 # Check whether --enable-silent-rules was given.
2881 if test "${enable_silent_rules+set}" = set; then :
2882 enableval=$enable_silent_rules;
2883 fi
2884
2885 case $enable_silent_rules in # (((
2886 yes) AM_DEFAULT_VERBOSITY=0;;
2887 no) AM_DEFAULT_VERBOSITY=1;;
2888 *) AM_DEFAULT_VERBOSITY=1;;
2889 esac
2890 am_make=${MAKE-make}
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2892 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2893 if ${am_cv_make_support_nested_variables+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if $as_echo 'TRUE=$(BAR$(V))
2897 BAR0=false
2898 BAR1=true
2899 V=1
2900 am__doit:
2901 @$(TRUE)
2902 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2903 am_cv_make_support_nested_variables=yes
2904 else
2905 am_cv_make_support_nested_variables=no
2906 fi
2907 fi
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2909 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2910 if test $am_cv_make_support_nested_variables = yes; then
2911 AM_V='$(V)'
2912 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2913 else
2914 AM_V=$AM_DEFAULT_VERBOSITY
2915 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2916 fi
2917 AM_BACKSLASH='\'
2918
2919 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2920 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2921 # is not polluted with repeated "-I."
2922 am__isrc=' -I$(srcdir)'
2923 # test to see if srcdir already configured
2924 if test -f $srcdir/config.status; then
2925 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2926 fi
2927 fi
2928
2929 # test whether we have cygpath
2930 if test -z "$CYGPATH_W"; then
2931 if (cygpath --version) >/dev/null 2>/dev/null; then
2932 CYGPATH_W='cygpath -w'
2933 else
2934 CYGPATH_W=echo
2935 fi
2936 fi
2937
2938
2939 # Define the identity of the package.
2940 PACKAGE='libccd'
2941 VERSION='1.0'
2942
2943
2944 cat >>confdefs.h <<_ACEOF
2945 #define PACKAGE "$PACKAGE"
2946 _ACEOF
2947
2948
2949 cat >>confdefs.h <<_ACEOF
2950 #define VERSION "$VERSION"
2951 _ACEOF
2952
2953 # Some tools Automake needs.
2954
2955 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2956
2957
2958 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2959
2960
2961 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2962
2963
2964 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2965
2966
2967 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2968
2969 # For better backward compatibility. To be removed once Automake 1.9.x
2970 # dies out for good. For more background, see:
2971 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2972 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2973 mkdir_p='$(MKDIR_P)'
2974
2975 # We need awk for the "check" target (and possibly the TAP driver). The
2976 # system "awk" is bad on some platforms.
2977 # Always define AMTAR for backward compatibility. Yes, it's still used
2978 # in the wild :-( We should find a proper way to deprecate it ...
2979 AMTAR='$${TAR-tar}'
2980
2981
2982 # We'll loop over all known methods to create a tar archive until one works.
2983 _am_tools='gnutar pax cpio none'
2984
2985 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2986
2987
2988
2989
2990
2991
2992 # POSIX will say in a future version that running "rm -f" with no argument
2993 # is OK; and we want to be able to make that assumption in our Makefile
2994 # recipes. So use an aggressive probe to check that the usage we want is
2995 # actually supported "in the wild" to an acceptable degree.
2996 # See automake bug#10828.
2997 # To make any issue more visible, cause the running configure to be aborted
2998 # by default if the 'rm' program in use doesn't match our expectations; the
2999 # user can still override this though.
3000 if rm -f && rm -fr && rm -rf; then : OK; else
3001 cat >&2 <<'END'
3002 Oops!
3003
3004 Your 'rm' program seems unable to run without file operands specified
3005 on the command line, even when the '-f' option is present. This is contrary
3006 to the behaviour of most rm programs out there, and not conforming with
3007 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3008
3009 Please tell [email protected] about your system, including the value
3010 of your $PATH and any error possibly output before this message. This
3011 can help us improve future automake versions.
3012
3013 END
3014 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3015 echo 'Configuration will proceed anyway, since you have set the' >&2
3016 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3017 echo >&2
3018 else
3019 cat >&2 <<'END'
3020 Aborting the configuration process, to ensure you take notice of the issue.
3021
3022 You can download and install GNU coreutils to get an 'rm' implementation
3023 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3024
3025 If you want to complete the configuration process using your problematic
3026 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3027 to "yes", and re-run configure.
3028
3029 END
3030 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3031 fi
3032 fi
3033
3034
3035 # Checks for programs.
3036 ac_ext=cpp
3037 ac_cpp='$CXXCPP $CPPFLAGS'
3038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3041 if test -z "$CXX"; then
3042 if test -n "$CCC"; then
3043 CXX=$CCC
3044 else
3045 if test -n "$ac_tool_prefix"; then
3046 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3047 do
3048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CXX+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CXX"; then
3056 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CXX=$ac_cv_prog_CXX
3076 if test -n "$CXX"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3078 $as_echo "$CXX" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 test -n "$CXX" && break
3086 done
3087 fi
3088 if test -z "$CXX"; then
3089 ac_ct_CXX=$CXX
3090 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3091 do
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test -n "$ac_ct_CXX"; then
3100 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_ac_ct_CXX="$ac_prog"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3120 if test -n "$ac_ct_CXX"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3122 $as_echo "$ac_ct_CXX" >&6; }
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128
3129 test -n "$ac_ct_CXX" && break
3130 done
3131
3132 if test "x$ac_ct_CXX" = x; then
3133 CXX="g++"
3134 else
3135 case $cross_compiling:$ac_tool_warned in
3136 yes:)
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3139 ac_tool_warned=yes ;;
3140 esac
3141 CXX=$ac_ct_CXX
3142 fi
3143 fi
3144
3145 fi
3146 fi
3147 # Provide some information about the compiler.
3148 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3149 set X $ac_compile
3150 ac_compiler=$2
3151 for ac_option in --version -v -V -qversion; do
3152 { { ac_try="$ac_compiler $ac_option >&5"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 $as_echo "$ac_try_echo"; } >&5
3159 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3160 ac_status=$?
3161 if test -s conftest.err; then
3162 sed '10a\
3163 ... rest of stderr output deleted ...
3164 10q' conftest.err >conftest.er1
3165 cat conftest.er1 >&5
3166 fi
3167 rm -f conftest.er1 conftest.err
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }
3170 done
3171
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3174
3175 int
3176 main ()
3177 {
3178
3179 ;
3180 return 0;
3181 }
3182 _ACEOF
3183 ac_clean_files_save=$ac_clean_files
3184 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3185 # Try to create an executable without -o first, disregard a.out.
3186 # It will help us diagnose broken compilers, and finding out an intuition
3187 # of exeext.
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3189 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3190 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3191
3192 # The possible output files:
3193 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3194
3195 ac_rmfiles=
3196 for ac_file in $ac_files
3197 do
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3200 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3201 esac
3202 done
3203 rm -f $ac_rmfiles
3204
3205 if { { ac_try="$ac_link_default"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_link_default") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }; then :
3216 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3217 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3218 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3219 # so that the user can short-circuit this test for compilers unknown to
3220 # Autoconf.
3221 for ac_file in $ac_files ''
3222 do
3223 test -f "$ac_file" || continue
3224 case $ac_file in
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3226 ;;
3227 [ab].out )
3228 # We found the default executable, but exeext='' is most
3229 # certainly right.
3230 break;;
3231 *.* )
3232 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233 then :; else
3234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235 fi
3236 # We set ac_cv_exeext here because the later test for it is not
3237 # safe: cross compilers may not add the suffix if given an `-o'
3238 # argument, so we may need to know it at that point already.
3239 # Even if this section looks crufty: it has the advantage of
3240 # actually working.
3241 break;;
3242 * )
3243 break;;
3244 esac
3245 done
3246 test "$ac_cv_exeext" = no && ac_cv_exeext=
3247
3248 else
3249 ac_file=''
3250 fi
3251 if test -z "$ac_file"; then :
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259 as_fn_error 77 "C++ compiler cannot create executables
3260 See \`config.log' for more details" "$LINENO" 5; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263 $as_echo "yes" >&6; }
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3266 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3268 $as_echo "$ac_file" >&6; }
3269 ac_exeext=$ac_cv_exeext
3270
3271 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3272 ac_clean_files=$ac_clean_files_save
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3274 $as_echo_n "checking for suffix of executables... " >&6; }
3275 if { { ac_try="$ac_link"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_link") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; then :
3286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3287 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3288 # work properly (i.e., refer to `conftest.exe'), while it won't with
3289 # `rm'.
3290 for ac_file in conftest.exe conftest conftest.*; do
3291 test -f "$ac_file" || continue
3292 case $ac_file in
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 break;;
3296 * ) break;;
3297 esac
3298 done
3299 else
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3303 See \`config.log' for more details" "$LINENO" 5; }
3304 fi
3305 rm -f conftest conftest$ac_cv_exeext
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3307 $as_echo "$ac_cv_exeext" >&6; }
3308
3309 rm -f conftest.$ac_ext
3310 EXEEXT=$ac_cv_exeext
3311 ac_exeext=$EXEEXT
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314 #include <stdio.h>
3315 int
3316 main ()
3317 {
3318 FILE *f = fopen ("conftest.out", "w");
3319 return ferror (f) || fclose (f) != 0;
3320
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 ac_clean_files="$ac_clean_files conftest.out"
3326 # Check that the compiler produces executables we can run. If not, either
3327 # the compiler is broken, or we cross compile.
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3329 $as_echo_n "checking whether we are cross compiling... " >&6; }
3330 if test "$cross_compiling" != yes; then
3331 { { ac_try="$ac_link"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_link") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }
3342 if { ac_try='./conftest$ac_cv_exeext'
3343 { { case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_try") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; }; then
3353 cross_compiling=no
3354 else
3355 if test "$cross_compiling" = maybe; then
3356 cross_compiling=yes
3357 else
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot run C++ compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details" "$LINENO" 5; }
3363 fi
3364 fi
3365 fi
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3367 $as_echo "$cross_compiling" >&6; }
3368
3369 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3370 ac_clean_files=$ac_clean_files_save
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3372 $as_echo_n "checking for suffix of object files... " >&6; }
3373 if ${ac_cv_objext+:} false; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378
3379 int
3380 main ()
3381 {
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 rm -f conftest.o conftest.obj
3388 if { { ac_try="$ac_compile"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_compile") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 for ac_file in conftest.o conftest.obj conftest.*; do
3400 test -f "$ac_file" || continue;
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404 break;;
3405 esac
3406 done
3407 else
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot compute suffix of object files: cannot compile
3414 See \`config.log' for more details" "$LINENO" 5; }
3415 fi
3416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3419 $as_echo "$ac_cv_objext" >&6; }
3420 OBJEXT=$ac_cv_objext
3421 ac_objext=$OBJEXT
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3423 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3424 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429
3430 int
3431 main ()
3432 {
3433 #ifndef __GNUC__
3434 choke me
3435 #endif
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_cxx_try_compile "$LINENO"; then :
3442 ac_compiler_gnu=yes
3443 else
3444 ac_compiler_gnu=no
3445 fi
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3448
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3451 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3452 if test $ac_compiler_gnu = yes; then
3453 GXX=yes
3454 else
3455 GXX=
3456 fi
3457 ac_test_CXXFLAGS=${CXXFLAGS+set}
3458 ac_save_CXXFLAGS=$CXXFLAGS
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3460 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3461 if ${ac_cv_prog_cxx_g+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3465 ac_cxx_werror_flag=yes
3466 ac_cv_prog_cxx_g=no
3467 CXXFLAGS="-g"
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 if ac_fn_cxx_try_compile "$LINENO"; then :
3480 ac_cv_prog_cxx_g=yes
3481 else
3482 CXXFLAGS=""
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485
3486 int
3487 main ()
3488 {
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_cxx_try_compile "$LINENO"; then :
3495
3496 else
3497 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3498 CXXFLAGS="-g"
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501
3502 int
3503 main ()
3504 {
3505
3506 ;
3507 return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_cxx_try_compile "$LINENO"; then :
3511 ac_cv_prog_cxx_g=yes
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3521 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3522 if test "$ac_test_CXXFLAGS" = set; then
3523 CXXFLAGS=$ac_save_CXXFLAGS
3524 elif test $ac_cv_prog_cxx_g = yes; then
3525 if test "$GXX" = yes; then
3526 CXXFLAGS="-g -O2"
3527 else
3528 CXXFLAGS="-g"
3529 fi
3530 else
3531 if test "$GXX" = yes; then
3532 CXXFLAGS="-O2"
3533 else
3534 CXXFLAGS=
3535 fi
3536 fi
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 DEPDIR="${am__leading_dot}deps"
3543
3544 ac_config_commands="$ac_config_commands depfiles"
3545
3546
3547 am_make=${MAKE-make}
3548 cat > confinc << 'END'
3549 am__doit:
3550 @echo this is the am__doit target
3551 .PHONY: am__doit
3552 END
3553 # If we don't find an include directive, just comment out the code.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3555 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3556 am__include="#"
3557 am__quote=
3558 _am_result=none
3559 # First try GNU make style include.
3560 echo "include confinc" > confmf
3561 # Ignore all kinds of additional output from 'make'.
3562 case `$am_make -s -f confmf 2> /dev/null` in #(
3563 *the\ am__doit\ target*)
3564 am__include=include
3565 am__quote=
3566 _am_result=GNU
3567 ;;
3568 esac
3569 # Now try BSD make style include.
3570 if test "$am__include" = "#"; then
3571 echo '.include "confinc"' > confmf
3572 case `$am_make -s -f confmf 2> /dev/null` in #(
3573 *the\ am__doit\ target*)
3574 am__include=.include
3575 am__quote="\""
3576 _am_result=BSD
3577 ;;
3578 esac
3579 fi
3580
3581
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3583 $as_echo "$_am_result" >&6; }
3584 rm -f confinc confmf
3585
3586 # Check whether --enable-dependency-tracking was given.
3587 if test "${enable_dependency_tracking+set}" = set; then :
3588 enableval=$enable_dependency_tracking;
3589 fi
3590
3591 if test "x$enable_dependency_tracking" != xno; then
3592 am_depcomp="$ac_aux_dir/depcomp"
3593 AMDEPBACKSLASH='\'
3594 am__nodep='_no'
3595 fi
3596 if test "x$enable_dependency_tracking" != xno; then
3597 AMDEP_TRUE=
3598 AMDEP_FALSE='#'
3599 else
3600 AMDEP_TRUE='#'
3601 AMDEP_FALSE=
3602 fi
3603
3604
3605
3606 depcc="$CXX" am_compiler_list=
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3609 $as_echo_n "checking dependency style of $depcc... " >&6; }
3610 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3614 # We make a subdir and do the tests there. Otherwise we can end up
3615 # making bogus files that we don't know about and never remove. For
3616 # instance it was reported that on HP-UX the gcc test will end up
3617 # making a dummy file named 'D' -- because '-MD' means "put the output
3618 # in D".
3619 rm -rf conftest.dir
3620 mkdir conftest.dir
3621 # Copy depcomp to subdir because otherwise we won't find it if we're
3622 # using a relative directory.
3623 cp "$am_depcomp" conftest.dir
3624 cd conftest.dir
3625 # We will build objects and dependencies in a subdirectory because
3626 # it helps to detect inapplicable dependency modes. For instance
3627 # both Tru64's cc and ICC support -MD to output dependencies as a
3628 # side effect of compilation, but ICC will put the dependencies in
3629 # the current directory while Tru64 will put them in the object
3630 # directory.
3631 mkdir sub
3632
3633 am_cv_CXX_dependencies_compiler_type=none
3634 if test "$am_compiler_list" = ""; then
3635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3636 fi
3637 am__universal=false
3638 case " $depcc " in #(
3639 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3640 esac
3641
3642 for depmode in $am_compiler_list; do
3643 # Setup a source with many dependencies, because some compilers
3644 # like to wrap large dependency lists on column 80 (with \), and
3645 # we should not choose a depcomp mode which is confused by this.
3646 #
3647 # We need to recreate these files for each test, as the compiler may
3648 # overwrite some of them when testing with obscure command lines.
3649 # This happens at least with the AIX C compiler.
3650 : > sub/conftest.c
3651 for i in 1 2 3 4 5 6; do
3652 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3654 # Solaris 10 /bin/sh.
3655 echo '/* dummy */' > sub/conftst$i.h
3656 done
3657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3658
3659 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3660 # mode. It turns out that the SunPro C++ compiler does not properly
3661 # handle '-M -o', and we need to detect this. Also, some Intel
3662 # versions had trouble with output in subdirs.
3663 am__obj=sub/conftest.${OBJEXT-o}
3664 am__minus_obj="-o $am__obj"
3665 case $depmode in
3666 gcc)
3667 # This depmode causes a compiler race in universal mode.
3668 test "$am__universal" = false || continue
3669 ;;
3670 nosideeffect)
3671 # After this tag, mechanisms are not by side-effect, so they'll
3672 # only be used when explicitly requested.
3673 if test "x$enable_dependency_tracking" = xyes; then
3674 continue
3675 else
3676 break
3677 fi
3678 ;;
3679 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3680 # This compiler won't grok '-c -o', but also, the minuso test has
3681 # not run yet. These depmodes are late enough in the game, and
3682 # so weak that their functioning should not be impacted.
3683 am__obj=conftest.${OBJEXT-o}
3684 am__minus_obj=
3685 ;;
3686 none) break ;;
3687 esac
3688 if depmode=$depmode \
3689 source=sub/conftest.c object=$am__obj \
3690 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3691 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3692 >/dev/null 2>conftest.err &&
3693 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3694 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3695 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3696 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3697 # icc doesn't choke on unknown options, it will just issue warnings
3698 # or remarks (even with -Werror). So we grep stderr for any message
3699 # that says an option was ignored or not supported.
3700 # When given -MP, icc 7.0 and 7.1 complain thusly:
3701 # icc: Command line warning: ignoring option '-M'; no argument required
3702 # The diagnosis changed in icc 8.0:
3703 # icc: Command line remark: option '-MP' not supported
3704 if (grep 'ignoring option' conftest.err ||
3705 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3706 am_cv_CXX_dependencies_compiler_type=$depmode
3707 break
3708 fi
3709 fi
3710 done
3711
3712 cd ..
3713 rm -rf conftest.dir
3714 else
3715 am_cv_CXX_dependencies_compiler_type=none
3716 fi
3717
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3720 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3721 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3722
3723 if
3724 test "x$enable_dependency_tracking" != xno \
3725 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3726 am__fastdepCXX_TRUE=
3727 am__fastdepCXX_FALSE='#'
3728 else
3729 am__fastdepCXX_TRUE='#'
3730 am__fastdepCXX_FALSE=
3731 fi
3732
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3760 fi
3761 done
3762 done
3763 IFS=$as_save_IFS
3764
3765 fi
3766 fi
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 fi
3775
3776
3777 fi
3778 if test -z "$ac_cv_prog_CC"; then
3779 ac_ct_CC=$CC
3780 # Extract the first word of "gcc", so it can be a program name with args.
3781 set dummy gcc; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_ac_ct_CC="gcc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 fi
3806 fi
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3815
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3826 fi
3827 else
3828 CC="$ac_cv_prog_CC"
3829 fi
3830
3831 if test -z "$CC"; then
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_CC+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_CC="${ac_tool_prefix}cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 CC=$ac_cv_prog_CC
3861 if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 $as_echo "$CC" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 fi
3868
3869
3870 fi
3871 fi
3872 if test -z "$CC"; then
3873 # Extract the first word of "cc", so it can be a program name with args.
3874 set dummy cc; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_CC+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3882 else
3883 ac_prog_rejected=no
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892 ac_prog_rejected=yes
3893 continue
3894 fi
3895 ac_cv_prog_CC="cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899 done
3900 done
3901 IFS=$as_save_IFS
3902
3903 if test $ac_prog_rejected = yes; then
3904 # We found a bogon in the path, so make sure we never use it.
3905 set dummy $ac_cv_prog_CC
3906 shift
3907 if test $# != 0; then
3908 # We chose a different compiler from the bogus one.
3909 # However, it has the same basename, so the bogon will be chosen
3910 # first if we set CC to just the basename; use the full file name.
3911 shift
3912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3913 fi
3914 fi
3915 fi
3916 fi
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3924 fi
3925
3926
3927 fi
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in cl.exe
3931 do
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_CC+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953 done
3954 done
3955 IFS=$as_save_IFS
3956
3957 fi
3958 fi
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3966 fi
3967
3968
3969 test -n "$CC" && break
3970 done
3971 fi
3972 if test -z "$CC"; then
3973 ac_ct_CC=$CC
3974 for ac_prog in cl.exe
3975 do
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$ac_ct_CC"; then
3984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_ac_ct_CC="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3996 fi
3997 done
3998 done
3999 IFS=$as_save_IFS
4000
4001 fi
4002 fi
4003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4004 if test -n "$ac_ct_CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006 $as_echo "$ac_ct_CC" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010 fi
4011
4012
4013 test -n "$ac_ct_CC" && break
4014 done
4015
4016 if test "x$ac_ct_CC" = x; then
4017 CC=""
4018 else
4019 case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025 CC=$ac_ct_CC
4026 fi
4027 fi
4028
4029 fi
4030
4031
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $? "no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details" "$LINENO" 5; }
4036
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4039 set X $ac_compile
4040 ac_compiler=$2
4041 for ac_option in --version -v -V -qversion; do
4042 { { ac_try="$ac_compiler $ac_option >&5"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050 ac_status=$?
4051 if test -s conftest.err; then
4052 sed '10a\
4053 ... rest of stderr output deleted ...
4054 10q' conftest.err >conftest.er1
4055 cat conftest.er1 >&5
4056 fi
4057 rm -f conftest.er1 conftest.err
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4060 done
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4064 if ${ac_cv_c_compiler_gnu+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 int
4071 main ()
4072 {
4073 #ifndef __GNUC__
4074 choke me
4075 #endif
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_compiler_gnu=yes
4083 else
4084 ac_compiler_gnu=no
4085 fi
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4088
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4092 if test $ac_compiler_gnu = yes; then
4093 GCC=yes
4094 else
4095 GCC=
4096 fi
4097 ac_test_CFLAGS=${CFLAGS+set}
4098 ac_save_CFLAGS=$CFLAGS
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4101 if ${ac_cv_prog_cc_g+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 ac_save_c_werror_flag=$ac_c_werror_flag
4105 ac_c_werror_flag=yes
4106 ac_cv_prog_cc_g=no
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main ()
4113 {
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4121 else
4122 CFLAGS=""
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125
4126 int
4127 main ()
4128 {
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135
4136 else
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4138 CFLAGS="-g"
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_g=yes
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 fi
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4161 $as_echo "$ac_cv_prog_cc_g" >&6; }
4162 if test "$ac_test_CFLAGS" = set; then
4163 CFLAGS=$ac_save_CFLAGS
4164 elif test $ac_cv_prog_cc_g = yes; then
4165 if test "$GCC" = yes; then
4166 CFLAGS="-g -O2"
4167 else
4168 CFLAGS="-g"
4169 fi
4170 else
4171 if test "$GCC" = yes; then
4172 CFLAGS="-O2"
4173 else
4174 CFLAGS=
4175 fi
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4179 if ${ac_cv_prog_cc_c89+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 ac_cv_prog_cc_c89=no
4183 ac_save_CC=$CC
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <stdarg.h>
4187 #include <stdio.h>
4188 struct stat;
4189 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4190 struct buf { int x; };
4191 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4192 static char *e (p, i)
4193 char **p;
4194 int i;
4195 {
4196 return p[i];
4197 }
4198 static char *f (char * (*g) (char **, int), char **p, ...)
4199 {
4200 char *s;
4201 va_list v;
4202 va_start (v,p);
4203 s = g (p, va_arg (v,int));
4204 va_end (v);
4205 return s;
4206 }
4207
4208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4209 function prototypes and stuff, but not '\xHH' hex character constants.
4210 These don't provoke an error unfortunately, instead are silently treated
4211 as 'x'. The following induces an error, until -std is added to get
4212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4213 array size at least. It's necessary to write '\x00'==0 to get something
4214 that's true only with -std. */
4215 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4216
4217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4218 inside strings and character constants. */
4219 #define FOO(x) 'x'
4220 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4221
4222 int test (int i, double x);
4223 struct s1 {int (*f) (int a);};
4224 struct s2 {int (*f) (double a);};
4225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4226 int argc;
4227 char **argv;
4228 int
4229 main ()
4230 {
4231 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4237 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4238 do
4239 CC="$ac_save_CC $ac_arg"
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 ac_cv_prog_cc_c89=$ac_arg
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext
4244 test "x$ac_cv_prog_cc_c89" != "xno" && break
4245 done
4246 rm -f conftest.$ac_ext
4247 CC=$ac_save_CC
4248
4249 fi
4250 # AC_CACHE_VAL
4251 case "x$ac_cv_prog_cc_c89" in
4252 x)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4254 $as_echo "none needed" >&6; } ;;
4255 xno)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257 $as_echo "unsupported" >&6; } ;;
4258 *)
4259 CC="$CC $ac_cv_prog_cc_c89"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4261 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4262 esac
4263 if test "x$ac_cv_prog_cc_c89" != xno; then :
4264
4265 fi
4266
4267 ac_ext=c
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272
4273 ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4279 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4280 if ${am_cv_prog_cc_c_o+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285
4286 int
4287 main ()
4288 {
4289
4290 ;
4291 return 0;
4292 }
4293 _ACEOF
4294 # Make sure it works both with $CC and with simple cc.
4295 # Following AC_PROG_CC_C_O, we do the test twice because some
4296 # compilers refuse to overwrite an existing .o file with -o,
4297 # though they will create one.
4298 am_cv_prog_cc_c_o=yes
4299 for am_i in 1 2; do
4300 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4301 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } \
4305 && test -f conftest2.$ac_objext; then
4306 : OK
4307 else
4308 am_cv_prog_cc_c_o=no
4309 break
4310 fi
4311 done
4312 rm -f core conftest*
4313 unset am_i
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4316 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4317 if test "$am_cv_prog_cc_c_o" != yes; then
4318 # Losing compiler, so override with the script.
4319 # FIXME: It is wrong to rewrite CC.
4320 # But if we don't then we get into trouble of one sort or another.
4321 # A longer-term fix would be to have automake use am__CC in this case,
4322 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4323 CC="$am_aux_dir/compile $CC"
4324 fi
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331
4332 depcc="$CC" am_compiler_list=
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4335 $as_echo_n "checking dependency style of $depcc... " >&6; }
4336 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4340 # We make a subdir and do the tests there. Otherwise we can end up
4341 # making bogus files that we don't know about and never remove. For
4342 # instance it was reported that on HP-UX the gcc test will end up
4343 # making a dummy file named 'D' -- because '-MD' means "put the output
4344 # in D".
4345 rm -rf conftest.dir
4346 mkdir conftest.dir
4347 # Copy depcomp to subdir because otherwise we won't find it if we're
4348 # using a relative directory.
4349 cp "$am_depcomp" conftest.dir
4350 cd conftest.dir
4351 # We will build objects and dependencies in a subdirectory because
4352 # it helps to detect inapplicable dependency modes. For instance
4353 # both Tru64's cc and ICC support -MD to output dependencies as a
4354 # side effect of compilation, but ICC will put the dependencies in
4355 # the current directory while Tru64 will put them in the object
4356 # directory.
4357 mkdir sub
4358
4359 am_cv_CC_dependencies_compiler_type=none
4360 if test "$am_compiler_list" = ""; then
4361 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4362 fi
4363 am__universal=false
4364 case " $depcc " in #(
4365 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4366 esac
4367
4368 for depmode in $am_compiler_list; do
4369 # Setup a source with many dependencies, because some compilers
4370 # like to wrap large dependency lists on column 80 (with \), and
4371 # we should not choose a depcomp mode which is confused by this.
4372 #
4373 # We need to recreate these files for each test, as the compiler may
4374 # overwrite some of them when testing with obscure command lines.
4375 # This happens at least with the AIX C compiler.
4376 : > sub/conftest.c
4377 for i in 1 2 3 4 5 6; do
4378 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4379 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4380 # Solaris 10 /bin/sh.
4381 echo '/* dummy */' > sub/conftst$i.h
4382 done
4383 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4384
4385 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4386 # mode. It turns out that the SunPro C++ compiler does not properly
4387 # handle '-M -o', and we need to detect this. Also, some Intel
4388 # versions had trouble with output in subdirs.
4389 am__obj=sub/conftest.${OBJEXT-o}
4390 am__minus_obj="-o $am__obj"
4391 case $depmode in
4392 gcc)
4393 # This depmode causes a compiler race in universal mode.
4394 test "$am__universal" = false || continue
4395 ;;
4396 nosideeffect)
4397 # After this tag, mechanisms are not by side-effect, so they'll
4398 # only be used when explicitly requested.
4399 if test "x$enable_dependency_tracking" = xyes; then
4400 continue
4401 else
4402 break
4403 fi
4404 ;;
4405 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4406 # This compiler won't grok '-c -o', but also, the minuso test has
4407 # not run yet. These depmodes are late enough in the game, and
4408 # so weak that their functioning should not be impacted.
4409 am__obj=conftest.${OBJEXT-o}
4410 am__minus_obj=
4411 ;;
4412 none) break ;;
4413 esac
4414 if depmode=$depmode \
4415 source=sub/conftest.c object=$am__obj \
4416 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4417 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4418 >/dev/null 2>conftest.err &&
4419 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4420 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4421 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4422 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4423 # icc doesn't choke on unknown options, it will just issue warnings
4424 # or remarks (even with -Werror). So we grep stderr for any message
4425 # that says an option was ignored or not supported.
4426 # When given -MP, icc 7.0 and 7.1 complain thusly:
4427 # icc: Command line warning: ignoring option '-M'; no argument required
4428 # The diagnosis changed in icc 8.0:
4429 # icc: Command line remark: option '-MP' not supported
4430 if (grep 'ignoring option' conftest.err ||
4431 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4432 am_cv_CC_dependencies_compiler_type=$depmode
4433 break
4434 fi
4435 fi
4436 done
4437
4438 cd ..
4439 rm -rf conftest.dir
4440 else
4441 am_cv_CC_dependencies_compiler_type=none
4442 fi
4443
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4446 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4447 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4448
4449 if
4450 test "x$enable_dependency_tracking" != xno \
4451 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4452 am__fastdepCC_TRUE=
4453 am__fastdepCC_FALSE='#'
4454 else
4455 am__fastdepCC_TRUE='#'
4456 am__fastdepCC_FALSE=
4457 fi
4458
4459
4460
4461 # Check whether --enable-shared was given.
4462 if test "${enable_shared+set}" = set; then :
4463 enableval=$enable_shared; p=${PACKAGE-default}
4464 case $enableval in
4465 yes) enable_shared=yes ;;
4466 no) enable_shared=no ;;
4467 *)
4468 enable_shared=no
4469 # Look at the argument we got. We use all the common list separators.
4470 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4471 for pkg in $enableval; do
4472 IFS=$lt_save_ifs
4473 if test "X$pkg" = "X$p"; then
4474 enable_shared=yes
4475 fi
4476 done
4477 IFS=$lt_save_ifs
4478 ;;
4479 esac
4480 else
4481 enable_shared=no
4482 fi
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492 case `pwd` in
4493 *\ * | *\ *)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4495 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4496 esac
4497
4498
4499
4500 macro_version='2.4.6'
4501 macro_revision='2.4.6'
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515 ltmain=$ac_aux_dir/ltmain.sh
4516
4517 # Make sure we can run config.sub.
4518 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4519 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4522 $as_echo_n "checking build system type... " >&6; }
4523 if ${ac_cv_build+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 ac_build_alias=$build_alias
4527 test "x$ac_build_alias" = x &&
4528 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4529 test "x$ac_build_alias" = x &&
4530 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4531 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4532 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4533
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4536 $as_echo "$ac_cv_build" >&6; }
4537 case $ac_cv_build in
4538 *-*-*) ;;
4539 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4540 esac
4541 build=$ac_cv_build
4542 ac_save_IFS=$IFS; IFS='-'
4543 set x $ac_cv_build
4544 shift
4545 build_cpu=$1
4546 build_vendor=$2
4547 shift; shift
4548 # Remember, the first character of IFS is used to create $*,
4549 # except with old shells:
4550 build_os=$*
4551 IFS=$ac_save_IFS
4552 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4553
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4556 $as_echo_n "checking host system type... " >&6; }
4557 if ${ac_cv_host+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test "x$host_alias" = x; then
4561 ac_cv_host=$ac_cv_build
4562 else
4563 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4565 fi
4566
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4569 $as_echo "$ac_cv_host" >&6; }
4570 case $ac_cv_host in
4571 *-*-*) ;;
4572 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4573 esac
4574 host=$ac_cv_host
4575 ac_save_IFS=$IFS; IFS='-'
4576 set x $ac_cv_host
4577 shift
4578 host_cpu=$1
4579 host_vendor=$2
4580 shift; shift
4581 # Remember, the first character of IFS is used to create $*,
4582 # except with old shells:
4583 host_os=$*
4584 IFS=$ac_save_IFS
4585 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4586
4587
4588 # Backslashify metacharacters that are still active within
4589 # double-quoted strings.
4590 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4591
4592 # Same as above, but do not quote variable references.
4593 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4594
4595 # Sed substitution to delay expansion of an escaped shell variable in a
4596 # double_quote_subst'ed string.
4597 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4598
4599 # Sed substitution to delay expansion of an escaped single quote.
4600 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4601
4602 # Sed substitution to avoid accidental globbing in evaled expressions
4603 no_glob_subst='s/\*/\\\*/g'
4604
4605 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4607 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4608
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4610 $as_echo_n "checking how to print strings... " >&6; }
4611 # Test print first, because it will be a builtin if present.
4612 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4613 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4614 ECHO='print -r --'
4615 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4616 ECHO='printf %s\n'
4617 else
4618 # Use this function as a fallback that always works.
4619 func_fallback_echo ()
4620 {
4621 eval 'cat <<_LTECHO_EOF
4622 $1
4623 _LTECHO_EOF'
4624 }
4625 ECHO='func_fallback_echo'
4626 fi
4627
4628 # func_echo_all arg...
4629 # Invoke $ECHO with all args, space-separated.
4630 func_echo_all ()
4631 {
4632 $ECHO ""
4633 }
4634
4635 case $ECHO in
4636 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4637 $as_echo "printf" >&6; } ;;
4638 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4639 $as_echo "print -r" >&6; } ;;
4640 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4641 $as_echo "cat" >&6; } ;;
4642 esac
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4659 if ${ac_cv_path_SED+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4663 for ac_i in 1 2 3 4 5 6 7; do
4664 ac_script="$ac_script$as_nl$ac_script"
4665 done
4666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4667 { ac_script=; unset ac_script;}
4668 if test -z "$SED"; then
4669 ac_path_SED_found=false
4670 # Loop through the user's path and test for each of PROGNAME-LIST
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_prog in sed gsed; do
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4679 as_fn_executable_p "$ac_path_SED" || continue
4680 # Check for GNU ac_path_SED and select it if it is found.
4681 # Check for GNU $ac_path_SED
4682 case `"$ac_path_SED" --version 2>&1` in
4683 *GNU*)
4684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4685 *)
4686 ac_count=0
4687 $as_echo_n 0123456789 >"conftest.in"
4688 while :
4689 do
4690 cat "conftest.in" "conftest.in" >"conftest.tmp"
4691 mv "conftest.tmp" "conftest.in"
4692 cp "conftest.in" "conftest.nl"
4693 $as_echo '' >> "conftest.nl"
4694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696 as_fn_arith $ac_count + 1 && ac_count=$as_val
4697 if test $ac_count -gt ${ac_path_SED_max-0}; then
4698 # Best one so far, save it but keep looking for a better one
4699 ac_cv_path_SED="$ac_path_SED"
4700 ac_path_SED_max=$ac_count
4701 fi
4702 # 10*(2^10) chars as input seems more than enough
4703 test $ac_count -gt 10 && break
4704 done
4705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4707
4708 $ac_path_SED_found && break 3
4709 done
4710 done
4711 done
4712 IFS=$as_save_IFS
4713 if test -z "$ac_cv_path_SED"; then
4714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4715 fi
4716 else
4717 ac_cv_path_SED=$SED
4718 fi
4719
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4722 $as_echo "$ac_cv_path_SED" >&6; }
4723 SED="$ac_cv_path_SED"
4724 rm -f conftest.sed
4725
4726 test -z "$SED" && SED=sed
4727 Xsed="$SED -e 1s/^X//"
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4740 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4741 if ${ac_cv_path_GREP+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if test -z "$GREP"; then
4745 ac_path_GREP_found=false
4746 # Loop through the user's path and test for each of PROGNAME-LIST
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4749 do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_prog in grep ggrep; do
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4755 as_fn_executable_p "$ac_path_GREP" || continue
4756 # Check for GNU ac_path_GREP and select it if it is found.
4757 # Check for GNU $ac_path_GREP
4758 case `"$ac_path_GREP" --version 2>&1` in
4759 *GNU*)
4760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4761 *)
4762 ac_count=0
4763 $as_echo_n 0123456789 >"conftest.in"
4764 while :
4765 do
4766 cat "conftest.in" "conftest.in" >"conftest.tmp"
4767 mv "conftest.tmp" "conftest.in"
4768 cp "conftest.in" "conftest.nl"
4769 $as_echo 'GREP' >> "conftest.nl"
4770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4772 as_fn_arith $ac_count + 1 && ac_count=$as_val
4773 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4774 # Best one so far, save it but keep looking for a better one
4775 ac_cv_path_GREP="$ac_path_GREP"
4776 ac_path_GREP_max=$ac_count
4777 fi
4778 # 10*(2^10) chars as input seems more than enough
4779 test $ac_count -gt 10 && break
4780 done
4781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4782 esac
4783
4784 $ac_path_GREP_found && break 3
4785 done
4786 done
4787 done
4788 IFS=$as_save_IFS
4789 if test -z "$ac_cv_path_GREP"; then
4790 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4791 fi
4792 else
4793 ac_cv_path_GREP=$GREP
4794 fi
4795
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4798 $as_echo "$ac_cv_path_GREP" >&6; }
4799 GREP="$ac_cv_path_GREP"
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4803 $as_echo_n "checking for egrep... " >&6; }
4804 if ${ac_cv_path_EGREP+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4808 then ac_cv_path_EGREP="$GREP -E"
4809 else
4810 if test -z "$EGREP"; then
4811 ac_path_EGREP_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in egrep; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4821 as_fn_executable_p "$ac_path_EGREP" || continue
4822 # Check for GNU ac_path_EGREP and select it if it is found.
4823 # Check for GNU $ac_path_EGREP
4824 case `"$ac_path_EGREP" --version 2>&1` in
4825 *GNU*)
4826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4827 *)
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4831 do
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo 'EGREP' >> "conftest.nl"
4836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_EGREP="$ac_path_EGREP"
4842 ac_path_EGREP_max=$ac_count
4843 fi
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4846 done
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4849
4850 $ac_path_EGREP_found && break 3
4851 done
4852 done
4853 done
4854 IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_EGREP"; then
4856 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4857 fi
4858 else
4859 ac_cv_path_EGREP=$EGREP
4860 fi
4861
4862 fi
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4865 $as_echo "$ac_cv_path_EGREP" >&6; }
4866 EGREP="$ac_cv_path_EGREP"
4867
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4870 $as_echo_n "checking for fgrep... " >&6; }
4871 if ${ac_cv_path_FGREP+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4875 then ac_cv_path_FGREP="$GREP -F"
4876 else
4877 if test -z "$FGREP"; then
4878 ac_path_FGREP_found=false
4879 # Loop through the user's path and test for each of PROGNAME-LIST
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_prog in fgrep; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4888 as_fn_executable_p "$ac_path_FGREP" || continue
4889 # Check for GNU ac_path_FGREP and select it if it is found.
4890 # Check for GNU $ac_path_FGREP
4891 case `"$ac_path_FGREP" --version 2>&1` in
4892 *GNU*)
4893 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4894 *)
4895 ac_count=0
4896 $as_echo_n 0123456789 >"conftest.in"
4897 while :
4898 do
4899 cat "conftest.in" "conftest.in" >"conftest.tmp"
4900 mv "conftest.tmp" "conftest.in"
4901 cp "conftest.in" "conftest.nl"
4902 $as_echo 'FGREP' >> "conftest.nl"
4903 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905 as_fn_arith $ac_count + 1 && ac_count=$as_val
4906 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4907 # Best one so far, save it but keep looking for a better one
4908 ac_cv_path_FGREP="$ac_path_FGREP"
4909 ac_path_FGREP_max=$ac_count
4910 fi
4911 # 10*(2^10) chars as input seems more than enough
4912 test $ac_count -gt 10 && break
4913 done
4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915 esac
4916
4917 $ac_path_FGREP_found && break 3
4918 done
4919 done
4920 done
4921 IFS=$as_save_IFS
4922 if test -z "$ac_cv_path_FGREP"; then
4923 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924 fi
4925 else
4926 ac_cv_path_FGREP=$FGREP
4927 fi
4928
4929 fi
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4932 $as_echo "$ac_cv_path_FGREP" >&6; }
4933 FGREP="$ac_cv_path_FGREP"
4934
4935
4936 test -z "$GREP" && GREP=grep
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 # Check whether --with-gnu-ld was given.
4957 if test "${with_gnu_ld+set}" = set; then :
4958 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4959 else
4960 with_gnu_ld=no
4961 fi
4962
4963 ac_prog=ld
4964 if test yes = "$GCC"; then
4965 # Check if gcc -print-prog-name=ld gives a path.
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4967 $as_echo_n "checking for ld used by $CC... " >&6; }
4968 case $host in
4969 *-*-mingw*)
4970 # gcc leaves a trailing carriage return, which upsets mingw
4971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4972 *)
4973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4974 esac
4975 case $ac_prog in
4976 # Accept absolute paths.
4977 [\\/]* | ?:[\\/]*)
4978 re_direlt='/[^/][^/]*/\.\./'
4979 # Canonicalize the pathname of ld
4980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4983 done
4984 test -z "$LD" && LD=$ac_prog
4985 ;;
4986 "")
4987 # If it fails, then pretend we aren't using GCC.
4988 ac_prog=ld
4989 ;;
4990 *)
4991 # If it is relative, then search for the first ld in PATH.
4992 with_gnu_ld=unknown
4993 ;;
4994 esac
4995 elif test yes = "$with_gnu_ld"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4997 $as_echo_n "checking for GNU ld... " >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5000 $as_echo_n "checking for non-GNU ld... " >&6; }
5001 fi
5002 if ${lt_cv_path_LD+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -z "$LD"; then
5006 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5007 for ac_dir in $PATH; do
5008 IFS=$lt_save_ifs
5009 test -z "$ac_dir" && ac_dir=.
5010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5011 lt_cv_path_LD=$ac_dir/$ac_prog
5012 # Check to see if the program is GNU ld. I'd rather use --version,
5013 # but apparently some variants of GNU ld only accept -v.
5014 # Break only if it was the GNU/non-GNU ld that we prefer.
5015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5016 *GNU* | *'with BFD'*)
5017 test no != "$with_gnu_ld" && break
5018 ;;
5019 *)
5020 test yes != "$with_gnu_ld" && break
5021 ;;
5022 esac
5023 fi
5024 done
5025 IFS=$lt_save_ifs
5026 else
5027 lt_cv_path_LD=$LD # Let the user override the test with a path.
5028 fi
5029 fi
5030
5031 LD=$lt_cv_path_LD
5032 if test -n "$LD"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5034 $as_echo "$LD" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5042 if ${lt_cv_prog_gnu_ld+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5046 case `$LD -v 2>&1 </dev/null` in
5047 *GNU* | *'with BFD'*)
5048 lt_cv_prog_gnu_ld=yes
5049 ;;
5050 *)
5051 lt_cv_prog_gnu_ld=no
5052 ;;
5053 esac
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5056 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5057 with_gnu_ld=$lt_cv_prog_gnu_ld
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5068 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5069 if ${lt_cv_path_NM+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$NM"; then
5073 # Let the user override the test.
5074 lt_cv_path_NM=$NM
5075 else
5076 lt_nm_to_check=${ac_tool_prefix}nm
5077 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5078 lt_nm_to_check="$lt_nm_to_check nm"
5079 fi
5080 for lt_tmp_nm in $lt_nm_to_check; do
5081 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5082 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5083 IFS=$lt_save_ifs
5084 test -z "$ac_dir" && ac_dir=.
5085 tmp_nm=$ac_dir/$lt_tmp_nm
5086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5087 # Check to see if the nm accepts a BSD-compat flag.
5088 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5089 # nm: unknown option "B" ignored
5090 # Tru64's nm complains that /dev/null is an invalid object file
5091 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5092 case $build_os in
5093 mingw*) lt_bad_file=conftest.nm/nofile ;;
5094 *) lt_bad_file=/dev/null ;;
5095 esac
5096 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5097 *$lt_bad_file* | *'Invalid file or object type'*)
5098 lt_cv_path_NM="$tmp_nm -B"
5099 break 2
5100 ;;
5101 *)
5102 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5103 */dev/null*)
5104 lt_cv_path_NM="$tmp_nm -p"
5105 break 2
5106 ;;
5107 *)
5108 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5109 continue # so that we can try to find one that supports BSD flags
5110 ;;
5111 esac
5112 ;;
5113 esac
5114 fi
5115 done
5116 IFS=$lt_save_ifs
5117 done
5118 : ${lt_cv_path_NM=no}
5119 fi
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5122 $as_echo "$lt_cv_path_NM" >&6; }
5123 if test no != "$lt_cv_path_NM"; then
5124 NM=$lt_cv_path_NM
5125 else
5126 # Didn't find any BSD compatible name lister, look for dumpbin.
5127 if test -n "$DUMPBIN"; then :
5128 # Let the user override the test.
5129 else
5130 if test -n "$ac_tool_prefix"; then
5131 for ac_prog in dumpbin "link -dump"
5132 do
5133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_DUMPBIN+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$DUMPBIN"; then
5141 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 DUMPBIN=$ac_cv_prog_DUMPBIN
5161 if test -n "$DUMPBIN"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5163 $as_echo "$DUMPBIN" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169
5170 test -n "$DUMPBIN" && break
5171 done
5172 fi
5173 if test -z "$DUMPBIN"; then
5174 ac_ct_DUMPBIN=$DUMPBIN
5175 for ac_prog in dumpbin "link -dump"
5176 do
5177 # Extract the first word of "$ac_prog", so it can be a program name with args.
5178 set dummy $ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 if test -n "$ac_ct_DUMPBIN"; then
5185 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198 done
5199 done
5200 IFS=$as_save_IFS
5201
5202 fi
5203 fi
5204 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5205 if test -n "$ac_ct_DUMPBIN"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5207 $as_echo "$ac_ct_DUMPBIN" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5211 fi
5212
5213
5214 test -n "$ac_ct_DUMPBIN" && break
5215 done
5216
5217 if test "x$ac_ct_DUMPBIN" = x; then
5218 DUMPBIN=":"
5219 else
5220 case $cross_compiling:$ac_tool_warned in
5221 yes:)
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5225 esac
5226 DUMPBIN=$ac_ct_DUMPBIN
5227 fi
5228 fi
5229
5230 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5231 *COFF*)
5232 DUMPBIN="$DUMPBIN -symbols -headers"
5233 ;;
5234 *)
5235 DUMPBIN=:
5236 ;;
5237 esac
5238 fi
5239
5240 if test : != "$DUMPBIN"; then
5241 NM=$DUMPBIN
5242 fi
5243 fi
5244 test -z "$NM" && NM=nm
5245
5246
5247
5248
5249
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5252 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5253 if ${lt_cv_nm_interface+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 lt_cv_nm_interface="BSD nm"
5257 echo "int some_variable = 0;" > conftest.$ac_ext
5258 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5259 (eval "$ac_compile" 2>conftest.err)
5260 cat conftest.err >&5
5261 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5262 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5263 cat conftest.err >&5
5264 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5265 cat conftest.out >&5
5266 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5267 lt_cv_nm_interface="MS dumpbin"
5268 fi
5269 rm -f conftest*
5270 fi
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5272 $as_echo "$lt_cv_nm_interface" >&6; }
5273
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5275 $as_echo_n "checking whether ln -s works... " >&6; }
5276 LN_S=$as_ln_s
5277 if test "$LN_S" = "ln -s"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279 $as_echo "yes" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5282 $as_echo "no, using $LN_S" >&6; }
5283 fi
5284
5285 # find the maximum length of command line arguments
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5287 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5288 if ${lt_cv_sys_max_cmd_len+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 i=0
5292 teststring=ABCD
5293
5294 case $build_os in
5295 msdosdjgpp*)
5296 # On DJGPP, this test can blow up pretty badly due to problems in libc
5297 # (any single argument exceeding 2000 bytes causes a buffer overrun
5298 # during glob expansion). Even if it were fixed, the result of this
5299 # check would be larger than it should be.
5300 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5301 ;;
5302
5303 gnu*)
5304 # Under GNU Hurd, this test is not required because there is
5305 # no limit to the length of command line arguments.
5306 # Libtool will interpret -1 as no limit whatsoever
5307 lt_cv_sys_max_cmd_len=-1;
5308 ;;
5309
5310 cygwin* | mingw* | cegcc*)
5311 # On Win9x/ME, this test blows up -- it succeeds, but takes
5312 # about 5 minutes as the teststring grows exponentially.
5313 # Worse, since 9x/ME are not pre-emptively multitasking,
5314 # you end up with a "frozen" computer, even though with patience
5315 # the test eventually succeeds (with a max line length of 256k).
5316 # Instead, let's just punt: use the minimum linelength reported by
5317 # all of the supported platforms: 8192 (on NT/2K/XP).
5318 lt_cv_sys_max_cmd_len=8192;
5319 ;;
5320
5321 mint*)
5322 # On MiNT this can take a long time and run out of memory.
5323 lt_cv_sys_max_cmd_len=8192;
5324 ;;
5325
5326 amigaos*)
5327 # On AmigaOS with pdksh, this test takes hours, literally.
5328 # So we just punt and use a minimum line length of 8192.
5329 lt_cv_sys_max_cmd_len=8192;
5330 ;;
5331
5332 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5333 # This has been around since 386BSD, at least. Likely further.
5334 if test -x /sbin/sysctl; then
5335 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5336 elif test -x /usr/sbin/sysctl; then
5337 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5338 else
5339 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5340 fi
5341 # And add a safety zone
5342 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5343 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5344 ;;
5345
5346 interix*)
5347 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5348 lt_cv_sys_max_cmd_len=196608
5349 ;;
5350
5351 os2*)
5352 # The test takes a long time on OS/2.
5353 lt_cv_sys_max_cmd_len=8192
5354 ;;
5355
5356 osf*)
5357 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5358 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5359 # nice to cause kernel panics so lets avoid the loop below.
5360 # First set a reasonable default.
5361 lt_cv_sys_max_cmd_len=16384
5362 #
5363 if test -x /sbin/sysconfig; then
5364 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5365 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5366 esac
5367 fi
5368 ;;
5369 sco3.2v5*)
5370 lt_cv_sys_max_cmd_len=102400
5371 ;;
5372 sysv5* | sco5v6* | sysv4.2uw2*)
5373 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5374 if test -n "$kargmax"; then
5375 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5376 else
5377 lt_cv_sys_max_cmd_len=32768
5378 fi
5379 ;;
5380 *)
5381 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5382 if test -n "$lt_cv_sys_max_cmd_len" && \
5383 test undefined != "$lt_cv_sys_max_cmd_len"; then
5384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5386 else
5387 # Make teststring a little bigger before we do anything with it.
5388 # a 1K string should be a reasonable start.
5389 for i in 1 2 3 4 5 6 7 8; do
5390 teststring=$teststring$teststring
5391 done
5392 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5393 # If test is not a shell built-in, we'll probably end up computing a
5394 # maximum length that is only half of the actual maximum length, but
5395 # we can't tell.
5396 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5397 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5398 test 17 != "$i" # 1/2 MB should be enough
5399 do
5400 i=`expr $i + 1`
5401 teststring=$teststring$teststring
5402 done
5403 # Only check the string length outside the loop.
5404 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5405 teststring=
5406 # Add a significant safety factor because C++ compilers can tack on
5407 # massive amounts of additional arguments before passing them to the
5408 # linker. It appears as though 1/2 is a usable value.
5409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5410 fi
5411 ;;
5412 esac
5413
5414 fi
5415
5416 if test -n "$lt_cv_sys_max_cmd_len"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5418 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5421 $as_echo "none" >&6; }
5422 fi
5423 max_cmd_len=$lt_cv_sys_max_cmd_len
5424
5425
5426
5427
5428
5429
5430 : ${CP="cp -f"}
5431 : ${MV="mv -f"}
5432 : ${RM="rm -f"}
5433
5434 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5435 lt_unset=unset
5436 else
5437 lt_unset=false
5438 fi
5439
5440
5441
5442
5443
5444 # test EBCDIC or ASCII
5445 case `echo X|tr X '\101'` in
5446 A) # ASCII based system
5447 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5448 lt_SP2NL='tr \040 \012'
5449 lt_NL2SP='tr \015\012 \040\040'
5450 ;;
5451 *) # EBCDIC based system
5452 lt_SP2NL='tr \100 \n'
5453 lt_NL2SP='tr \r\n \100\100'
5454 ;;
5455 esac
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5466 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5467 if ${lt_cv_to_host_file_cmd+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 case $host in
5471 *-*-mingw* )
5472 case $build in
5473 *-*-mingw* ) # actually msys
5474 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5475 ;;
5476 *-*-cygwin* )
5477 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5478 ;;
5479 * ) # otherwise, assume *nix
5480 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5481 ;;
5482 esac
5483 ;;
5484 *-*-cygwin* )
5485 case $build in
5486 *-*-mingw* ) # actually msys
5487 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5488 ;;
5489 *-*-cygwin* )
5490 lt_cv_to_host_file_cmd=func_convert_file_noop
5491 ;;
5492 * ) # otherwise, assume *nix
5493 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5494 ;;
5495 esac
5496 ;;
5497 * ) # unhandled hosts (and "normal" native builds)
5498 lt_cv_to_host_file_cmd=func_convert_file_noop
5499 ;;
5500 esac
5501
5502 fi
5503
5504 to_host_file_cmd=$lt_cv_to_host_file_cmd
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5506 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5507
5508
5509
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5513 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5514 if ${lt_cv_to_tool_file_cmd+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 #assume ordinary cross tools, or native build.
5518 lt_cv_to_tool_file_cmd=func_convert_file_noop
5519 case $host in
5520 *-*-mingw* )
5521 case $build in
5522 *-*-mingw* ) # actually msys
5523 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5524 ;;
5525 esac
5526 ;;
5527 esac
5528
5529 fi
5530
5531 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5533 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5534
5535
5536
5537
5538
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5540 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5541 if ${lt_cv_ld_reload_flag+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 lt_cv_ld_reload_flag='-r'
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5547 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5548 reload_flag=$lt_cv_ld_reload_flag
5549 case $reload_flag in
5550 "" | " "*) ;;
5551 *) reload_flag=" $reload_flag" ;;
5552 esac
5553 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554 case $host_os in
5555 cygwin* | mingw* | pw32* | cegcc*)
5556 if test yes != "$GCC"; then
5557 reload_cmds=false
5558 fi
5559 ;;
5560 darwin*)
5561 if test yes = "$GCC"; then
5562 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5563 else
5564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5565 fi
5566 ;;
5567 esac
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577 if test -n "$ac_tool_prefix"; then
5578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5579 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_OBJDUMP+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$OBJDUMP"; then
5586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599 done
5600 done
5601 IFS=$as_save_IFS
5602
5603 fi
5604 fi
5605 OBJDUMP=$ac_cv_prog_OBJDUMP
5606 if test -n "$OBJDUMP"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5608 $as_echo "$OBJDUMP" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5612 fi
5613
5614
5615 fi
5616 if test -z "$ac_cv_prog_OBJDUMP"; then
5617 ac_ct_OBJDUMP=$OBJDUMP
5618 # Extract the first word of "objdump", so it can be a program name with args.
5619 set dummy objdump; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$ac_ct_OBJDUMP"; then
5626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5646 if test -n "$ac_ct_OBJDUMP"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5648 $as_echo "$ac_ct_OBJDUMP" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654 if test "x$ac_ct_OBJDUMP" = x; then
5655 OBJDUMP="false"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5662 esac
5663 OBJDUMP=$ac_ct_OBJDUMP
5664 fi
5665 else
5666 OBJDUMP="$ac_cv_prog_OBJDUMP"
5667 fi
5668
5669 test -z "$OBJDUMP" && OBJDUMP=objdump
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5680 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5681 if ${lt_cv_deplibs_check_method+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 lt_cv_file_magic_cmd='$MAGIC_CMD'
5685 lt_cv_file_magic_test_file=
5686 lt_cv_deplibs_check_method='unknown'
5687 # Need to set the preceding variable on all platforms that support
5688 # interlibrary dependencies.
5689 # 'none' -- dependencies not supported.
5690 # 'unknown' -- same as none, but documents that we really don't know.
5691 # 'pass_all' -- all dependencies passed with no checks.
5692 # 'test_compile' -- check by making test program.
5693 # 'file_magic [[regex]]' -- check by looking for files in library path
5694 # that responds to the $file_magic_cmd with a given extended regex.
5695 # If you have 'file' or equivalent on your system and you're not sure
5696 # whether 'pass_all' will *always* work, you probably want this one.
5697
5698 case $host_os in
5699 aix[4-9]*)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702
5703 beos*)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706
5707 bsdi[45]*)
5708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5709 lt_cv_file_magic_cmd='/usr/bin/file -L'
5710 lt_cv_file_magic_test_file=/shlib/libc.so
5711 ;;
5712
5713 cygwin*)
5714 # func_win32_libid is a shell function defined in ltmain.sh
5715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5716 lt_cv_file_magic_cmd='func_win32_libid'
5717 ;;
5718
5719 mingw* | pw32*)
5720 # Base MSYS/MinGW do not provide the 'file' command needed by
5721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5722 # unless we find 'file', for example because we are cross-compiling.
5723 if ( file / ) >/dev/null 2>&1; then
5724 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5725 lt_cv_file_magic_cmd='func_win32_libid'
5726 else
5727 # Keep this pattern in sync with the one in func_win32_libid.
5728 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5729 lt_cv_file_magic_cmd='$OBJDUMP -f'
5730 fi
5731 ;;
5732
5733 cegcc*)
5734 # use the weaker test based on 'objdump'. See mingw*.
5735 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5736 lt_cv_file_magic_cmd='$OBJDUMP -f'
5737 ;;
5738
5739 darwin* | rhapsody*)
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742
5743 freebsd* | dragonfly*)
5744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5745 case $host_cpu in
5746 i*86 )
5747 # Not sure whether the presence of OpenBSD here was a mistake.
5748 # Let's accept both of them until this is cleared up.
5749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5750 lt_cv_file_magic_cmd=/usr/bin/file
5751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5752 ;;
5753 esac
5754 else
5755 lt_cv_deplibs_check_method=pass_all
5756 fi
5757 ;;
5758
5759 haiku*)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762
5763 hpux10.20* | hpux11*)
5764 lt_cv_file_magic_cmd=/usr/bin/file
5765 case $host_cpu in
5766 ia64*)
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5768 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5769 ;;
5770 hppa*64*)
5771 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]'
5772 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5773 ;;
5774 *)
5775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5777 ;;
5778 esac
5779 ;;
5780
5781 interix[3-9]*)
5782 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5784 ;;
5785
5786 irix5* | irix6* | nonstopux*)
5787 case $LD in
5788 *-32|*"-32 ") libmagic=32-bit;;
5789 *-n32|*"-n32 ") libmagic=N32;;
5790 *-64|*"-64 ") libmagic=64-bit;;
5791 *) libmagic=never-match;;
5792 esac
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796 # This must be glibc/ELF.
5797 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800
5801 netbsd* | netbsdelf*-gnu)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5804 else
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5806 fi
5807 ;;
5808
5809 newos6*)
5810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5811 lt_cv_file_magic_cmd=/usr/bin/file
5812 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5813 ;;
5814
5815 *nto* | *qnx*)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818
5819 openbsd* | bitrig*)
5820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5822 else
5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5824 fi
5825 ;;
5826
5827 osf3* | osf4* | osf5*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830
5831 rdos*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835 solaris*)
5836 lt_cv_deplibs_check_method=pass_all
5837 ;;
5838
5839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5840 lt_cv_deplibs_check_method=pass_all
5841 ;;
5842
5843 sysv4 | sysv4.3*)
5844 case $host_vendor in
5845 motorola)
5846 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]'
5847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5848 ;;
5849 ncr)
5850 lt_cv_deplibs_check_method=pass_all
5851 ;;
5852 sequent)
5853 lt_cv_file_magic_cmd='/bin/file'
5854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5855 ;;
5856 sni)
5857 lt_cv_file_magic_cmd='/bin/file'
5858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5859 lt_cv_file_magic_test_file=/lib/libc.so
5860 ;;
5861 siemens)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864 pc)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867 esac
5868 ;;
5869
5870 tpf*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873 os2*)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876 esac
5877
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5880 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5881
5882 file_magic_glob=
5883 want_nocaseglob=no
5884 if test "$build" = "$host"; then
5885 case $host_os in
5886 mingw* | pw32*)
5887 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5888 want_nocaseglob=yes
5889 else
5890 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5891 fi
5892 ;;
5893 esac
5894 fi
5895
5896 file_magic_cmd=$lt_cv_file_magic_cmd
5897 deplibs_check_method=$lt_cv_deplibs_check_method
5898 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 if test -n "$ac_tool_prefix"; then
5922 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5923 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if ${ac_cv_prog_DLLTOOL+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test -n "$DLLTOOL"; then
5930 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943 done
5944 done
5945 IFS=$as_save_IFS
5946
5947 fi
5948 fi
5949 DLLTOOL=$ac_cv_prog_DLLTOOL
5950 if test -n "$DLLTOOL"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5952 $as_echo "$DLLTOOL" >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5956 fi
5957
5958
5959 fi
5960 if test -z "$ac_cv_prog_DLLTOOL"; then
5961 ac_ct_DLLTOOL=$DLLTOOL
5962 # Extract the first word of "dlltool", so it can be a program name with args.
5963 set dummy dlltool; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 if test -n "$ac_ct_DLLTOOL"; then
5970 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983 done
5984 done
5985 IFS=$as_save_IFS
5986
5987 fi
5988 fi
5989 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5990 if test -n "$ac_ct_DLLTOOL"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5992 $as_echo "$ac_ct_DLLTOOL" >&6; }
5993 else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997
5998 if test "x$ac_ct_DLLTOOL" = x; then
5999 DLLTOOL="false"
6000 else
6001 case $cross_compiling:$ac_tool_warned in
6002 yes:)
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005 ac_tool_warned=yes ;;
6006 esac
6007 DLLTOOL=$ac_ct_DLLTOOL
6008 fi
6009 else
6010 DLLTOOL="$ac_cv_prog_DLLTOOL"
6011 fi
6012
6013 test -z "$DLLTOOL" && DLLTOOL=dlltool
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6025 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6026 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 lt_cv_sharedlib_from_linklib_cmd='unknown'
6030
6031 case $host_os in
6032 cygwin* | mingw* | pw32* | cegcc*)
6033 # two different shell functions defined in ltmain.sh;
6034 # decide which one to use based on capabilities of $DLLTOOL
6035 case `$DLLTOOL --help 2>&1` in
6036 *--identify-strict*)
6037 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6038 ;;
6039 *)
6040 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6041 ;;
6042 esac
6043 ;;
6044 *)
6045 # fallback: assume linklib IS sharedlib
6046 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6047 ;;
6048 esac
6049
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6052 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6053 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6054 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6055
6056
6057
6058
6059
6060
6061
6062
6063 if test -n "$ac_tool_prefix"; then
6064 for ac_prog in ar
6065 do
6066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_prog_AR+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if test -n "$AR"; then
6074 ac_cv_prog_AR="$AR" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087 done
6088 done
6089 IFS=$as_save_IFS
6090
6091 fi
6092 fi
6093 AR=$ac_cv_prog_AR
6094 if test -n "$AR"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6096 $as_echo "$AR" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6100 fi
6101
6102
6103 test -n "$AR" && break
6104 done
6105 fi
6106 if test -z "$AR"; then
6107 ac_ct_AR=$AR
6108 for ac_prog in ar
6109 do
6110 # Extract the first word of "$ac_prog", so it can be a program name with args.
6111 set dummy $ac_prog; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 if test -n "$ac_ct_AR"; then
6118 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_ac_ct_AR="$ac_prog"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6130 fi
6131 done
6132 done
6133 IFS=$as_save_IFS
6134
6135 fi
6136 fi
6137 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6138 if test -n "$ac_ct_AR"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6140 $as_echo "$ac_ct_AR" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6144 fi
6145
6146
6147 test -n "$ac_ct_AR" && break
6148 done
6149
6150 if test "x$ac_ct_AR" = x; then
6151 AR="false"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154 yes:)
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned=yes ;;
6158 esac
6159 AR=$ac_ct_AR
6160 fi
6161 fi
6162
6163 : ${AR=ar}
6164 : ${AR_FLAGS=cru}
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6177 $as_echo_n "checking for archiver @FILE support... " >&6; }
6178 if ${lt_cv_ar_at_file+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 lt_cv_ar_at_file=no
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184
6185 int
6186 main ()
6187 {
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194 echo conftest.$ac_objext > conftest.lst
6195 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6197 (eval $lt_ar_try) 2>&5
6198 ac_status=$?
6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; }
6201 if test 0 -eq "$ac_status"; then
6202 # Ensure the archiver fails upon bogus file names.
6203 rm -f conftest.$ac_objext libconftest.a
6204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6205 (eval $lt_ar_try) 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; }
6209 if test 0 -ne "$ac_status"; then
6210 lt_cv_ar_at_file=@
6211 fi
6212 fi
6213 rm -f conftest.* libconftest.a
6214
6215 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6220 $as_echo "$lt_cv_ar_at_file" >&6; }
6221
6222 if test no = "$lt_cv_ar_at_file"; then
6223 archiver_list_spec=
6224 else
6225 archiver_list_spec=$lt_cv_ar_at_file
6226 fi
6227
6228
6229
6230
6231
6232
6233
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}strip; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_STRIP+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$STRIP"; then
6243 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 STRIP=$ac_cv_prog_STRIP
6263 if test -n "$STRIP"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6265 $as_echo "$STRIP" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271
6272 fi
6273 if test -z "$ac_cv_prog_STRIP"; then
6274 ac_ct_STRIP=$STRIP
6275 # Extract the first word of "strip", so it can be a program name with args.
6276 set dummy strip; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$ac_ct_STRIP"; then
6283 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_ac_ct_STRIP="strip"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6303 if test -n "$ac_ct_STRIP"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6305 $as_echo "$ac_ct_STRIP" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311 if test "x$ac_ct_STRIP" = x; then
6312 STRIP=":"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318 ac_tool_warned=yes ;;
6319 esac
6320 STRIP=$ac_ct_STRIP
6321 fi
6322 else
6323 STRIP="$ac_cv_prog_STRIP"
6324 fi
6325
6326 test -z "$STRIP" && STRIP=:
6327
6328
6329
6330
6331
6332
6333 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_RANLIB+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if test -n "$RANLIB"; then
6342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 RANLIB=$ac_cv_prog_RANLIB
6362 if test -n "$RANLIB"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6364 $as_echo "$RANLIB" >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369
6370
6371 fi
6372 if test -z "$ac_cv_prog_RANLIB"; then
6373 ac_ct_RANLIB=$RANLIB
6374 # Extract the first word of "ranlib", so it can be a program name with args.
6375 set dummy ranlib; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 if test -n "$ac_ct_RANLIB"; then
6382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391 ac_cv_prog_ac_ct_RANLIB="ranlib"
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6394 fi
6395 done
6396 done
6397 IFS=$as_save_IFS
6398
6399 fi
6400 fi
6401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6402 if test -n "$ac_ct_RANLIB"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6404 $as_echo "$ac_ct_RANLIB" >&6; }
6405 else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6408 fi
6409
6410 if test "x$ac_ct_RANLIB" = x; then
6411 RANLIB=":"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414 yes:)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417 ac_tool_warned=yes ;;
6418 esac
6419 RANLIB=$ac_ct_RANLIB
6420 fi
6421 else
6422 RANLIB="$ac_cv_prog_RANLIB"
6423 fi
6424
6425 test -z "$RANLIB" && RANLIB=:
6426
6427
6428
6429
6430
6431
6432 # Determine commands to create old-style static archives.
6433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6434 old_postinstall_cmds='chmod 644 $oldlib'
6435 old_postuninstall_cmds=
6436
6437 if test -n "$RANLIB"; then
6438 case $host_os in
6439 bitrig* | openbsd*)
6440 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6441 ;;
6442 *)
6443 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6444 ;;
6445 esac
6446 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6447 fi
6448
6449 case $host_os in
6450 darwin*)
6451 lock_old_archive_extraction=yes ;;
6452 *)
6453 lock_old_archive_extraction=no ;;
6454 esac
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 # If no C compiler was specified, use CC.
6495 LTCC=${LTCC-"$CC"}
6496
6497 # If no C compiler flags were specified, use CFLAGS.
6498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6499
6500 # Allow CC to be a program name with arguments.
6501 compiler=$CC
6502
6503
6504 # Check for command to grab the raw symbol name followed by C symbol from nm.
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6506 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6507 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510
6511 # These are sane defaults that work on at least a few old systems.
6512 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6513
6514 # Character class describing NM global symbol codes.
6515 symcode='[BCDEGRST]'
6516
6517 # Regexp to match symbols that can be accessed directly from C.
6518 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6519
6520 # Define system-specific variables.
6521 case $host_os in
6522 aix*)
6523 symcode='[BCDT]'
6524 ;;
6525 cygwin* | mingw* | pw32* | cegcc*)
6526 symcode='[ABCDGISTW]'
6527 ;;
6528 hpux*)
6529 if test ia64 = "$host_cpu"; then
6530 symcode='[ABCDEGRST]'
6531 fi
6532 ;;
6533 irix* | nonstopux*)
6534 symcode='[BCDEGRST]'
6535 ;;
6536 osf*)
6537 symcode='[BCDEGQRST]'
6538 ;;
6539 solaris*)
6540 symcode='[BDRT]'
6541 ;;
6542 sco3.2v5*)
6543 symcode='[DT]'
6544 ;;
6545 sysv4.2uw2*)
6546 symcode='[DT]'
6547 ;;
6548 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6549 symcode='[ABDT]'
6550 ;;
6551 sysv4)
6552 symcode='[DFNSTU]'
6553 ;;
6554 esac
6555
6556 # If we're using GNU nm, then use its standard symbol codes.
6557 case `$NM -V 2>&1` in
6558 *GNU* | *'with BFD'*)
6559 symcode='[ABCDGIRSTW]' ;;
6560 esac
6561
6562 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6563 # Gets list of data symbols to import.
6564 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6565 # Adjust the below global symbol transforms to fixup imported variables.
6566 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6567 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6568 lt_c_name_lib_hook="\
6569 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6570 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6571 else
6572 # Disable hooks by default.
6573 lt_cv_sys_global_symbol_to_import=
6574 lt_cdecl_hook=
6575 lt_c_name_hook=
6576 lt_c_name_lib_hook=
6577 fi
6578
6579 # Transform an extracted symbol line into a proper C declaration.
6580 # Some systems (esp. on ia64) link data and code symbols differently,
6581 # so use this general approach.
6582 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6583 $lt_cdecl_hook\
6584 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6585 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6586
6587 # Transform an extracted symbol line into symbol name and symbol address
6588 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6589 $lt_c_name_hook\
6590 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6591 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6592
6593 # Transform an extracted symbol line into symbol name with lib prefix and
6594 # symbol address.
6595 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6596 $lt_c_name_lib_hook\
6597 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6598 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6599 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6600
6601 # Handle CRLF in mingw tool chain
6602 opt_cr=
6603 case $build_os in
6604 mingw*)
6605 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6606 ;;
6607 esac
6608
6609 # Try without a prefix underscore, then with it.
6610 for ac_symprfx in "" "_"; do
6611
6612 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6613 symxfrm="\\1 $ac_symprfx\\2 \\2"
6614
6615 # Write the raw and C identifiers.
6616 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6617 # Fake it for dumpbin and say T for any non-static function,
6618 # D for any global variable and I for any imported variable.
6619 # Also find C++ and __fastcall symbols from MSVC++,
6620 # which start with @ or ?.
6621 lt_cv_sys_global_symbol_pipe="$AWK '"\
6622 " {last_section=section; section=\$ 3};"\
6623 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6624 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6625 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6626 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6627 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6628 " \$ 0!~/External *\|/{next};"\
6629 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6630 " {if(hide[section]) next};"\
6631 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6632 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6633 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6634 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6635 " ' prfx=^$ac_symprfx"
6636 else
6637 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6638 fi
6639 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6640
6641 # Check to see that the pipe works correctly.
6642 pipe_works=no
6643
6644 rm -f conftest*
6645 cat > conftest.$ac_ext <<_LT_EOF
6646 #ifdef __cplusplus
6647 extern "C" {
6648 #endif
6649 char nm_test_var;
6650 void nm_test_func(void);
6651 void nm_test_func(void){}
6652 #ifdef __cplusplus
6653 }
6654 #endif
6655 int main(){nm_test_var='a';nm_test_func();return(0);}
6656 _LT_EOF
6657
6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6659 (eval $ac_compile) 2>&5
6660 ac_status=$?
6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; }; then
6663 # Now try to grab the symbols.
6664 nlist=conftest.nm
6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6666 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6667 ac_status=$?
6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669 test $ac_status = 0; } && test -s "$nlist"; then
6670 # Try sorting and uniquifying the output.
6671 if sort "$nlist" | uniq > "$nlist"T; then
6672 mv -f "$nlist"T "$nlist"
6673 else
6674 rm -f "$nlist"T
6675 fi
6676
6677 # Make sure that we snagged all the symbols we need.
6678 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6679 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6680 cat <<_LT_EOF > conftest.$ac_ext
6681 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6682 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6683 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6684 relocations are performed -- see ld's documentation on pseudo-relocs. */
6685 # define LT_DLSYM_CONST
6686 #elif defined __osf__
6687 /* This system does not cope well with relocations in const data. */
6688 # define LT_DLSYM_CONST
6689 #else
6690 # define LT_DLSYM_CONST const
6691 #endif
6692
6693 #ifdef __cplusplus
6694 extern "C" {
6695 #endif
6696
6697 _LT_EOF
6698 # Now generate the symbol file.
6699 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6700
6701 cat <<_LT_EOF >> conftest.$ac_ext
6702
6703 /* The mapping between symbol names and symbols. */
6704 LT_DLSYM_CONST struct {
6705 const char *name;
6706 void *address;
6707 }
6708 lt__PROGRAM__LTX_preloaded_symbols[] =
6709 {
6710 { "@PROGRAM@", (void *) 0 },
6711 _LT_EOF
6712 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6713 cat <<\_LT_EOF >> conftest.$ac_ext
6714 {0, (void *) 0}
6715 };
6716
6717 /* This works around a problem in FreeBSD linker */
6718 #ifdef FREEBSD_WORKAROUND
6719 static const void *lt_preloaded_setup() {
6720 return lt__PROGRAM__LTX_preloaded_symbols;
6721 }
6722 #endif
6723
6724 #ifdef __cplusplus
6725 }
6726 #endif
6727 _LT_EOF
6728 # Now try linking the two files.
6729 mv conftest.$ac_objext conftstm.$ac_objext
6730 lt_globsym_save_LIBS=$LIBS
6731 lt_globsym_save_CFLAGS=$CFLAGS
6732 LIBS=conftstm.$ac_objext
6733 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6735 (eval $ac_link) 2>&5
6736 ac_status=$?
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6739 pipe_works=yes
6740 fi
6741 LIBS=$lt_globsym_save_LIBS
6742 CFLAGS=$lt_globsym_save_CFLAGS
6743 else
6744 echo "cannot find nm_test_func in $nlist" >&5
6745 fi
6746 else
6747 echo "cannot find nm_test_var in $nlist" >&5
6748 fi
6749 else
6750 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6751 fi
6752 else
6753 echo "$progname: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 fi
6756 rm -rf conftest* conftst*
6757
6758 # Do not use the global_symbol_pipe unless it works.
6759 if test yes = "$pipe_works"; then
6760 break
6761 else
6762 lt_cv_sys_global_symbol_pipe=
6763 fi
6764 done
6765
6766 fi
6767
6768 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6769 lt_cv_sys_global_symbol_to_cdecl=
6770 fi
6771 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6773 $as_echo "failed" >&6; }
6774 else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6776 $as_echo "ok" >&6; }
6777 fi
6778
6779 # Response file support.
6780 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6781 nm_file_list_spec='@'
6782 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6783 nm_file_list_spec='@'
6784 fi
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6823 $as_echo_n "checking for sysroot... " >&6; }
6824
6825 # Check whether --with-sysroot was given.
6826 if test "${with_sysroot+set}" = set; then :
6827 withval=$with_sysroot;
6828 else
6829 with_sysroot=no
6830 fi
6831
6832
6833 lt_sysroot=
6834 case $with_sysroot in #(
6835 yes)
6836 if test yes = "$GCC"; then
6837 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6838 fi
6839 ;; #(
6840 /*)
6841 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6842 ;; #(
6843 no|'')
6844 ;; #(
6845 *)
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6847 $as_echo "$with_sysroot" >&6; }
6848 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6849 ;;
6850 esac
6851
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6853 $as_echo "${lt_sysroot:-no}" >&6; }
6854
6855
6856
6857
6858
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6860 $as_echo_n "checking for a working dd... " >&6; }
6861 if ${ac_cv_path_lt_DD+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 printf 0123456789abcdef0123456789abcdef >conftest.i
6865 cat conftest.i conftest.i >conftest2.i
6866 : ${lt_DD:=$DD}
6867 if test -z "$lt_DD"; then
6868 ac_path_lt_DD_found=false
6869 # Loop through the user's path and test for each of PROGNAME-LIST
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_prog in dd; do
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6878 as_fn_executable_p "$ac_path_lt_DD" || continue
6879 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6880 cmp -s conftest.i conftest.out \
6881 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6882 fi
6883 $ac_path_lt_DD_found && break 3
6884 done
6885 done
6886 done
6887 IFS=$as_save_IFS
6888 if test -z "$ac_cv_path_lt_DD"; then
6889 :
6890 fi
6891 else
6892 ac_cv_path_lt_DD=$lt_DD
6893 fi
6894
6895 rm -f conftest.i conftest2.i conftest.out
6896 fi
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6898 $as_echo "$ac_cv_path_lt_DD" >&6; }
6899
6900
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6902 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6903 if ${lt_cv_truncate_bin+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 printf 0123456789abcdef0123456789abcdef >conftest.i
6907 cat conftest.i conftest.i >conftest2.i
6908 lt_cv_truncate_bin=
6909 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6910 cmp -s conftest.i conftest.out \
6911 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6912 fi
6913 rm -f conftest.i conftest2.i conftest.out
6914 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6915 fi
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6917 $as_echo "$lt_cv_truncate_bin" >&6; }
6918
6919
6920
6921
6922
6923
6924
6925 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6926 func_cc_basename ()
6927 {
6928 for cc_temp in $*""; do
6929 case $cc_temp in
6930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6932 \-*) ;;
6933 *) break;;
6934 esac
6935 done
6936 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6937 }
6938
6939 # Check whether --enable-libtool-lock was given.
6940 if test "${enable_libtool_lock+set}" = set; then :
6941 enableval=$enable_libtool_lock;
6942 fi
6943
6944 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6945
6946 # Some flags need to be propagated to the compiler or linker for good
6947 # libtool support.
6948 case $host in
6949 ia64-*-hpux*)
6950 # Find out what ABI is being produced by ac_compile, and set mode
6951 # options accordingly.
6952 echo 'int i;' > conftest.$ac_ext
6953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954 (eval $ac_compile) 2>&5
6955 ac_status=$?
6956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957 test $ac_status = 0; }; then
6958 case `/usr/bin/file conftest.$ac_objext` in
6959 *ELF-32*)
6960 HPUX_IA64_MODE=32
6961 ;;
6962 *ELF-64*)
6963 HPUX_IA64_MODE=64
6964 ;;
6965 esac
6966 fi
6967 rm -rf conftest*
6968 ;;
6969 *-*-irix6*)
6970 # Find out what ABI is being produced by ac_compile, and set linker
6971 # options accordingly.
6972 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6974 (eval $ac_compile) 2>&5
6975 ac_status=$?
6976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977 test $ac_status = 0; }; then
6978 if test yes = "$lt_cv_prog_gnu_ld"; then
6979 case `/usr/bin/file conftest.$ac_objext` in
6980 *32-bit*)
6981 LD="${LD-ld} -melf32bsmip"
6982 ;;
6983 *N32*)
6984 LD="${LD-ld} -melf32bmipn32"
6985 ;;
6986 *64-bit*)
6987 LD="${LD-ld} -melf64bmip"
6988 ;;
6989 esac
6990 else
6991 case `/usr/bin/file conftest.$ac_objext` in
6992 *32-bit*)
6993 LD="${LD-ld} -32"
6994 ;;
6995 *N32*)
6996 LD="${LD-ld} -n32"
6997 ;;
6998 *64-bit*)
6999 LD="${LD-ld} -64"
7000 ;;
7001 esac
7002 fi
7003 fi
7004 rm -rf conftest*
7005 ;;
7006
7007 mips64*-*linux*)
7008 # Find out what ABI is being produced by ac_compile, and set linker
7009 # options accordingly.
7010 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7012 (eval $ac_compile) 2>&5
7013 ac_status=$?
7014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; }; then
7016 emul=elf
7017 case `/usr/bin/file conftest.$ac_objext` in
7018 *32-bit*)
7019 emul="${emul}32"
7020 ;;
7021 *64-bit*)
7022 emul="${emul}64"
7023 ;;
7024 esac
7025 case `/usr/bin/file conftest.$ac_objext` in
7026 *MSB*)
7027 emul="${emul}btsmip"
7028 ;;
7029 *LSB*)
7030 emul="${emul}ltsmip"
7031 ;;
7032 esac
7033 case `/usr/bin/file conftest.$ac_objext` in
7034 *N32*)
7035 emul="${emul}n32"
7036 ;;
7037 esac
7038 LD="${LD-ld} -m $emul"
7039 fi
7040 rm -rf conftest*
7041 ;;
7042
7043 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7044 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7045 # Find out what ABI is being produced by ac_compile, and set linker
7046 # options accordingly. Note that the listed cases only cover the
7047 # situations where additional linker options are needed (such as when
7048 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7049 # vice versa); the common cases where no linker options are needed do
7050 # not appear in the list.
7051 echo 'int i;' > conftest.$ac_ext
7052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7053 (eval $ac_compile) 2>&5
7054 ac_status=$?
7055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056 test $ac_status = 0; }; then
7057 case `/usr/bin/file conftest.o` in
7058 *32-bit*)
7059 case $host in
7060 x86_64-*kfreebsd*-gnu)
7061 LD="${LD-ld} -m elf_i386_fbsd"
7062 ;;
7063 x86_64-*linux*)
7064 case `/usr/bin/file conftest.o` in
7065 *x86-64*)
7066 LD="${LD-ld} -m elf32_x86_64"
7067 ;;
7068 *)
7069 LD="${LD-ld} -m elf_i386"
7070 ;;
7071 esac
7072 ;;
7073 powerpc64le-*linux*)
7074 LD="${LD-ld} -m elf32lppclinux"
7075 ;;
7076 powerpc64-*linux*)
7077 LD="${LD-ld} -m elf32ppclinux"
7078 ;;
7079 s390x-*linux*)
7080 LD="${LD-ld} -m elf_s390"
7081 ;;
7082 sparc64-*linux*)
7083 LD="${LD-ld} -m elf32_sparc"
7084 ;;
7085 esac
7086 ;;
7087 *64-bit*)
7088 case $host in
7089 x86_64-*kfreebsd*-gnu)
7090 LD="${LD-ld} -m elf_x86_64_fbsd"
7091 ;;
7092 x86_64-*linux*)
7093 LD="${LD-ld} -m elf_x86_64"
7094 ;;
7095 powerpcle-*linux*)
7096 LD="${LD-ld} -m elf64lppc"
7097 ;;
7098 powerpc-*linux*)
7099 LD="${LD-ld} -m elf64ppc"
7100 ;;
7101 s390*-*linux*|s390*-*tpf*)
7102 LD="${LD-ld} -m elf64_s390"
7103 ;;
7104 sparc*-*linux*)
7105 LD="${LD-ld} -m elf64_sparc"
7106 ;;
7107 esac
7108 ;;
7109 esac
7110 fi
7111 rm -rf conftest*
7112 ;;
7113
7114 *-*-sco3.2v5*)
7115 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7116 SAVE_CFLAGS=$CFLAGS
7117 CFLAGS="$CFLAGS -belf"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7119 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7120 if ${lt_cv_cc_needs_belf+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 ac_ext=c
7124 ac_cpp='$CPP $CPPFLAGS'
7125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7128
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131
7132 int
7133 main ()
7134 {
7135
7136 ;
7137 return 0;
7138 }
7139 _ACEOF
7140 if ac_fn_c_try_link "$LINENO"; then :
7141 lt_cv_cc_needs_belf=yes
7142 else
7143 lt_cv_cc_needs_belf=no
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext \
7146 conftest$ac_exeext conftest.$ac_ext
7147 ac_ext=c
7148 ac_cpp='$CPP $CPPFLAGS'
7149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7152
7153 fi
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7155 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7156 if test yes != "$lt_cv_cc_needs_belf"; then
7157 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7158 CFLAGS=$SAVE_CFLAGS
7159 fi
7160 ;;
7161 *-*solaris*)
7162 # Find out what ABI is being produced by ac_compile, and set linker
7163 # options accordingly.
7164 echo 'int i;' > conftest.$ac_ext
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166 (eval $ac_compile) 2>&5
7167 ac_status=$?
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
7170 case `/usr/bin/file conftest.o` in
7171 *64-bit*)
7172 case $lt_cv_prog_gnu_ld in
7173 yes*)
7174 case $host in
7175 i?86-*-solaris*|x86_64-*-solaris*)
7176 LD="${LD-ld} -m elf_x86_64"
7177 ;;
7178 sparc*-*-solaris*)
7179 LD="${LD-ld} -m elf64_sparc"
7180 ;;
7181 esac
7182 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7183 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7184 LD=${LD-ld}_sol2
7185 fi
7186 ;;
7187 *)
7188 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7189 LD="${LD-ld} -64"
7190 fi
7191 ;;
7192 esac
7193 ;;
7194 esac
7195 fi
7196 rm -rf conftest*
7197 ;;
7198 esac
7199
7200 need_locks=$enable_libtool_lock
7201
7202 if test -n "$ac_tool_prefix"; then
7203 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}mt; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 if test -n "$MANIFEST_TOOL"; then
7211 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7231 if test -n "$MANIFEST_TOOL"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7233 $as_echo "$MANIFEST_TOOL" >&6; }
7234 else
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239
7240 fi
7241 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7242 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7243 # Extract the first word of "mt", so it can be a program name with args.
7244 set dummy mt; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 if test -n "$ac_ct_MANIFEST_TOOL"; then
7251 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7271 if test -n "$ac_ct_MANIFEST_TOOL"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7273 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7274 else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7280 MANIFEST_TOOL=":"
7281 else
7282 case $cross_compiling:$ac_tool_warned in
7283 yes:)
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7287 esac
7288 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7289 fi
7290 else
7291 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7292 fi
7293
7294 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7296 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7297 if ${lt_cv_path_mainfest_tool+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 lt_cv_path_mainfest_tool=no
7301 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7302 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7303 cat conftest.err >&5
7304 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7305 lt_cv_path_mainfest_tool=yes
7306 fi
7307 rm -f conftest*
7308 fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7310 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7311 if test yes != "$lt_cv_path_mainfest_tool"; then
7312 MANIFEST_TOOL=:
7313 fi
7314
7315
7316
7317
7318
7319
7320 case $host_os in
7321 rhapsody* | darwin*)
7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7324 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$DSYMUTIL"; then
7331 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7351 if test -n "$DSYMUTIL"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7353 $as_echo "$DSYMUTIL" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7357 fi
7358
7359
7360 fi
7361 if test -z "$ac_cv_prog_DSYMUTIL"; then
7362 ac_ct_DSYMUTIL=$DSYMUTIL
7363 # Extract the first word of "dsymutil", so it can be a program name with args.
7364 set dummy dsymutil; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$ac_ct_DSYMUTIL"; then
7371 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388 fi
7389 fi
7390 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7391 if test -n "$ac_ct_DSYMUTIL"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7393 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399 if test "x$ac_ct_DSYMUTIL" = x; then
7400 DSYMUTIL=":"
7401 else
7402 case $cross_compiling:$ac_tool_warned in
7403 yes:)
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406 ac_tool_warned=yes ;;
7407 esac
7408 DSYMUTIL=$ac_ct_DSYMUTIL
7409 fi
7410 else
7411 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7412 fi
7413
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_NMEDIT+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 if test -n "$NMEDIT"; then
7423 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 NMEDIT=$ac_cv_prog_NMEDIT
7443 if test -n "$NMEDIT"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7445 $as_echo "$NMEDIT" >&6; }
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 fi
7450
7451
7452 fi
7453 if test -z "$ac_cv_prog_NMEDIT"; then
7454 ac_ct_NMEDIT=$NMEDIT
7455 # Extract the first word of "nmedit", so it can be a program name with args.
7456 set dummy nmedit; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$ac_ct_NMEDIT"; then
7463 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7483 if test -n "$ac_ct_NMEDIT"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7485 $as_echo "$ac_ct_NMEDIT" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491 if test "x$ac_ct_NMEDIT" = x; then
7492 NMEDIT=":"
7493 else
7494 case $cross_compiling:$ac_tool_warned in
7495 yes:)
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498 ac_tool_warned=yes ;;
7499 esac
7500 NMEDIT=$ac_ct_NMEDIT
7501 fi
7502 else
7503 NMEDIT="$ac_cv_prog_NMEDIT"
7504 fi
7505
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_LIPO+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 if test -n "$LIPO"; then
7515 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528 done
7529 done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 LIPO=$ac_cv_prog_LIPO
7535 if test -n "$LIPO"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7537 $as_echo "$LIPO" >&6; }
7538 else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542
7543
7544 fi
7545 if test -z "$ac_cv_prog_LIPO"; then
7546 ac_ct_LIPO=$LIPO
7547 # Extract the first word of "lipo", so it can be a program name with args.
7548 set dummy lipo; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 if test -n "$ac_ct_LIPO"; then
7555 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_ac_ct_LIPO="lipo"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7575 if test -n "$ac_ct_LIPO"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7577 $as_echo "$ac_ct_LIPO" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581 fi
7582
7583 if test "x$ac_ct_LIPO" = x; then
7584 LIPO=":"
7585 else
7586 case $cross_compiling:$ac_tool_warned in
7587 yes:)
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590 ac_tool_warned=yes ;;
7591 esac
7592 LIPO=$ac_ct_LIPO
7593 fi
7594 else
7595 LIPO="$ac_cv_prog_LIPO"
7596 fi
7597
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}otool; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_OTOOL+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$OTOOL"; then
7607 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 OTOOL=$ac_cv_prog_OTOOL
7627 if test -n "$OTOOL"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7629 $as_echo "$OTOOL" >&6; }
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635
7636 fi
7637 if test -z "$ac_cv_prog_OTOOL"; then
7638 ac_ct_OTOOL=$OTOOL
7639 # Extract the first word of "otool", so it can be a program name with args.
7640 set dummy otool; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 if test -n "$ac_ct_OTOOL"; then
7647 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_ac_ct_OTOOL="otool"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660 done
7661 done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7667 if test -n "$ac_ct_OTOOL"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7669 $as_echo "$ac_ct_OTOOL" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675 if test "x$ac_ct_OTOOL" = x; then
7676 OTOOL=":"
7677 else
7678 case $cross_compiling:$ac_tool_warned in
7679 yes:)
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682 ac_tool_warned=yes ;;
7683 esac
7684 OTOOL=$ac_ct_OTOOL
7685 fi
7686 else
7687 OTOOL="$ac_cv_prog_OTOOL"
7688 fi
7689
7690 if test -n "$ac_tool_prefix"; then
7691 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7692 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_prog_OTOOL64+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 if test -n "$OTOOL64"; then
7699 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7711 fi
7712 done
7713 done
7714 IFS=$as_save_IFS
7715
7716 fi
7717 fi
7718 OTOOL64=$ac_cv_prog_OTOOL64
7719 if test -n "$OTOOL64"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7721 $as_echo "$OTOOL64" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7725 fi
7726
7727
7728 fi
7729 if test -z "$ac_cv_prog_OTOOL64"; then
7730 ac_ct_OTOOL64=$OTOOL64
7731 # Extract the first word of "otool64", so it can be a program name with args.
7732 set dummy otool64; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 if test -n "$ac_ct_OTOOL64"; then
7739 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748 ac_cv_prog_ac_ct_OTOOL64="otool64"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752 done
7753 done
7754 IFS=$as_save_IFS
7755
7756 fi
7757 fi
7758 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7759 if test -n "$ac_ct_OTOOL64"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7761 $as_echo "$ac_ct_OTOOL64" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767 if test "x$ac_ct_OTOOL64" = x; then
7768 OTOOL64=":"
7769 else
7770 case $cross_compiling:$ac_tool_warned in
7771 yes:)
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7774 ac_tool_warned=yes ;;
7775 esac
7776 OTOOL64=$ac_ct_OTOOL64
7777 fi
7778 else
7779 OTOOL64="$ac_cv_prog_OTOOL64"
7780 fi
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7809 $as_echo_n "checking for -single_module linker flag... " >&6; }
7810 if ${lt_cv_apple_cc_single_mod+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 lt_cv_apple_cc_single_mod=no
7814 if test -z "$LT_MULTI_MODULE"; then
7815 # By default we will add the -single_module flag. You can override
7816 # by either setting the environment variable LT_MULTI_MODULE
7817 # non-empty at configure time, or by adding -multi_module to the
7818 # link flags.
7819 rm -rf libconftest.dylib*
7820 echo "int foo(void){return 1;}" > conftest.c
7821 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7822 -dynamiclib -Wl,-single_module conftest.c" >&5
7823 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7824 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7825 _lt_result=$?
7826 # If there is a non-empty error log, and "single_module"
7827 # appears in it, assume the flag caused a linker warning
7828 if test -s conftest.err && $GREP single_module conftest.err; then
7829 cat conftest.err >&5
7830 # Otherwise, if the output was created with a 0 exit code from
7831 # the compiler, it worked.
7832 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7833 lt_cv_apple_cc_single_mod=yes
7834 else
7835 cat conftest.err >&5
7836 fi
7837 rm -rf libconftest.dylib*
7838 rm -f conftest.*
7839 fi
7840 fi
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7842 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7843
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7845 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7846 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 lt_cv_ld_exported_symbols_list=no
7850 save_LDFLAGS=$LDFLAGS
7851 echo "_main" > conftest.sym
7852 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855
7856 int
7857 main ()
7858 {
7859
7860 ;
7861 return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_link "$LINENO"; then :
7865 lt_cv_ld_exported_symbols_list=yes
7866 else
7867 lt_cv_ld_exported_symbols_list=no
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 LDFLAGS=$save_LDFLAGS
7872
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7875 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7878 $as_echo_n "checking for -force_load linker flag... " >&6; }
7879 if ${lt_cv_ld_force_load+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 lt_cv_ld_force_load=no
7883 cat > conftest.c << _LT_EOF
7884 int forced_loaded() { return 2;}
7885 _LT_EOF
7886 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7887 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7888 echo "$AR cru libconftest.a conftest.o" >&5
7889 $AR cru libconftest.a conftest.o 2>&5
7890 echo "$RANLIB libconftest.a" >&5
7891 $RANLIB libconftest.a 2>&5
7892 cat > conftest.c << _LT_EOF
7893 int main() { return 0;}
7894 _LT_EOF
7895 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7896 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7897 _lt_result=$?
7898 if test -s conftest.err && $GREP force_load conftest.err; then
7899 cat conftest.err >&5
7900 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7901 lt_cv_ld_force_load=yes
7902 else
7903 cat conftest.err >&5
7904 fi
7905 rm -f conftest.err libconftest.a conftest conftest.c
7906 rm -rf conftest.dSYM
7907
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7910 $as_echo "$lt_cv_ld_force_load" >&6; }
7911 case $host_os in
7912 rhapsody* | darwin1.[012])
7913 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7914 darwin1.*)
7915 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7916 darwin*) # darwin 5.x on
7917 # if running on 10.5 or later, the deployment target defaults
7918 # to the OS version, if on x86, and 10.4, the deployment
7919 # target defaults to 10.4. Don't you love it?
7920 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7921 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7922 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7923 10.[012][,.]*)
7924 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7925 10.*)
7926 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7927 esac
7928 ;;
7929 esac
7930 if test yes = "$lt_cv_apple_cc_single_mod"; then
7931 _lt_dar_single_mod='$single_module'
7932 fi
7933 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7934 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7935 else
7936 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7937 fi
7938 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7939 _lt_dsymutil='~$DSYMUTIL $lib || :'
7940 else
7941 _lt_dsymutil=
7942 fi
7943 ;;
7944 esac
7945
7946 # func_munge_path_list VARIABLE PATH
7947 # -----------------------------------
7948 # VARIABLE is name of variable containing _space_ separated list of
7949 # directories to be munged by the contents of PATH, which is string
7950 # having a format:
7951 # "DIR[:DIR]:"
7952 # string "DIR[ DIR]" will be prepended to VARIABLE
7953 # ":DIR[:DIR]"
7954 # string "DIR[ DIR]" will be appended to VARIABLE
7955 # "DIRP[:DIRP]::[DIRA:]DIRA"
7956 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7957 # "DIRA[ DIRA]" will be appended to VARIABLE
7958 # "DIR[:DIR]"
7959 # VARIABLE will be replaced by "DIR[ DIR]"
7960 func_munge_path_list ()
7961 {
7962 case x$2 in
7963 x)
7964 ;;
7965 *:)
7966 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7967 ;;
7968 x:*)
7969 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7970 ;;
7971 *::*)
7972 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7973 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7974 ;;
7975 *)
7976 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7977 ;;
7978 esac
7979 }
7980
7981 ac_ext=c
7982 ac_cpp='$CPP $CPPFLAGS'
7983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7987 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7988 # On Suns, sometimes $CPP names a directory.
7989 if test -n "$CPP" && test -d "$CPP"; then
7990 CPP=
7991 fi
7992 if test -z "$CPP"; then
7993 if ${ac_cv_prog_CPP+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 # Double quotes because CPP needs to be expanded
7997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7998 do
7999 ac_preproc_ok=false
8000 for ac_c_preproc_warn_flag in '' yes
8001 do
8002 # Use a header file that comes with gcc, so configuring glibc
8003 # with a fresh cross-compiler works.
8004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005 # <limits.h> exists even on freestanding compilers.
8006 # On the NeXT, cc -E runs the code through the compiler's parser,
8007 # not just through cpp. "Syntax error" is here to catch this case.
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8010 #ifdef __STDC__
8011 # include <limits.h>
8012 #else
8013 # include <assert.h>
8014 #endif
8015 Syntax error
8016 _ACEOF
8017 if ac_fn_c_try_cpp "$LINENO"; then :
8018
8019 else
8020 # Broken: fails on valid input.
8021 continue
8022 fi
8023 rm -f conftest.err conftest.i conftest.$ac_ext
8024
8025 # OK, works on sane cases. Now check whether nonexistent headers
8026 # can be detected and how.
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8029 #include <ac_nonexistent.h>
8030 _ACEOF
8031 if ac_fn_c_try_cpp "$LINENO"; then :
8032 # Broken: success on invalid input.
8033 continue
8034 else
8035 # Passes both tests.
8036 ac_preproc_ok=:
8037 break
8038 fi
8039 rm -f conftest.err conftest.i conftest.$ac_ext
8040
8041 done
8042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8043 rm -f conftest.i conftest.err conftest.$ac_ext
8044 if $ac_preproc_ok; then :
8045 break
8046 fi
8047
8048 done
8049 ac_cv_prog_CPP=$CPP
8050
8051 fi
8052 CPP=$ac_cv_prog_CPP
8053 else
8054 ac_cv_prog_CPP=$CPP
8055 fi
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8057 $as_echo "$CPP" >&6; }
8058 ac_preproc_ok=false
8059 for ac_c_preproc_warn_flag in '' yes
8060 do
8061 # Use a header file that comes with gcc, so configuring glibc
8062 # with a fresh cross-compiler works.
8063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064 # <limits.h> exists even on freestanding compilers.
8065 # On the NeXT, cc -E runs the code through the compiler's parser,
8066 # not just through cpp. "Syntax error" is here to catch this case.
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 #ifdef __STDC__
8070 # include <limits.h>
8071 #else
8072 # include <assert.h>
8073 #endif
8074 Syntax error
8075 _ACEOF
8076 if ac_fn_c_try_cpp "$LINENO"; then :
8077
8078 else
8079 # Broken: fails on valid input.
8080 continue
8081 fi
8082 rm -f conftest.err conftest.i conftest.$ac_ext
8083
8084 # OK, works on sane cases. Now check whether nonexistent headers
8085 # can be detected and how.
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 #include <ac_nonexistent.h>
8089 _ACEOF
8090 if ac_fn_c_try_cpp "$LINENO"; then :
8091 # Broken: success on invalid input.
8092 continue
8093 else
8094 # Passes both tests.
8095 ac_preproc_ok=:
8096 break
8097 fi
8098 rm -f conftest.err conftest.i conftest.$ac_ext
8099
8100 done
8101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8102 rm -f conftest.i conftest.err conftest.$ac_ext
8103 if $ac_preproc_ok; then :
8104
8105 else
8106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8108 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8109 See \`config.log' for more details" "$LINENO" 5; }
8110 fi
8111
8112 ac_ext=c
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8117
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8120 $as_echo_n "checking for ANSI C header files... " >&6; }
8121 if ${ac_cv_header_stdc+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <stdlib.h>
8127 #include <stdarg.h>
8128 #include <string.h>
8129 #include <float.h>
8130
8131 int
8132 main ()
8133 {
8134
8135 ;
8136 return 0;
8137 }
8138 _ACEOF
8139 if ac_fn_c_try_compile "$LINENO"; then :
8140 ac_cv_header_stdc=yes
8141 else
8142 ac_cv_header_stdc=no
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145
8146 if test $ac_cv_header_stdc = yes; then
8147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #include <string.h>
8151
8152 _ACEOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 $EGREP "memchr" >/dev/null 2>&1; then :
8155
8156 else
8157 ac_cv_header_stdc=no
8158 fi
8159 rm -f conftest*
8160
8161 fi
8162
8163 if test $ac_cv_header_stdc = yes; then
8164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <stdlib.h>
8168
8169 _ACEOF
8170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8171 $EGREP "free" >/dev/null 2>&1; then :
8172
8173 else
8174 ac_cv_header_stdc=no
8175 fi
8176 rm -f conftest*
8177
8178 fi
8179
8180 if test $ac_cv_header_stdc = yes; then
8181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8182 if test "$cross_compiling" = yes; then :
8183 :
8184 else
8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h. */
8187 #include <ctype.h>
8188 #include <stdlib.h>
8189 #if ((' ' & 0x0FF) == 0x020)
8190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8192 #else
8193 # define ISLOWER(c) \
8194 (('a' <= (c) && (c) <= 'i') \
8195 || ('j' <= (c) && (c) <= 'r') \
8196 || ('s' <= (c) && (c) <= 'z'))
8197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8198 #endif
8199
8200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8201 int
8202 main ()
8203 {
8204 int i;
8205 for (i = 0; i < 256; i++)
8206 if (XOR (islower (i), ISLOWER (i))
8207 || toupper (i) != TOUPPER (i))
8208 return 2;
8209 return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_run "$LINENO"; then :
8213
8214 else
8215 ac_cv_header_stdc=no
8216 fi
8217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8218 conftest.$ac_objext conftest.beam conftest.$ac_ext
8219 fi
8220
8221 fi
8222 fi
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8224 $as_echo "$ac_cv_header_stdc" >&6; }
8225 if test $ac_cv_header_stdc = yes; then
8226
8227 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8228
8229 fi
8230
8231 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8233 inttypes.h stdint.h unistd.h
8234 do :
8235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8236 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8237 "
8238 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8239 cat >>confdefs.h <<_ACEOF
8240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 fi
8244
8245 done
8246
8247
8248 for ac_header in dlfcn.h
8249 do :
8250 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8251 "
8252 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8253 cat >>confdefs.h <<_ACEOF
8254 #define HAVE_DLFCN_H 1
8255 _ACEOF
8256
8257 fi
8258
8259 done
8260
8261
8262
8263
8264 func_stripname_cnf ()
8265 {
8266 case $2 in
8267 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8268 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8269 esac
8270 } # func_stripname_cnf
8271
8272
8273
8274
8275
8276 # Set options
8277
8278
8279
8280 enable_dlopen=no
8281
8282
8283 enable_win32_dll=no
8284
8285
8286
8287 # Check whether --enable-static was given.
8288 if test "${enable_static+set}" = set; then :
8289 enableval=$enable_static; p=${PACKAGE-default}
8290 case $enableval in
8291 yes) enable_static=yes ;;
8292 no) enable_static=no ;;
8293 *)
8294 enable_static=no
8295 # Look at the argument we got. We use all the common list separators.
8296 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8297 for pkg in $enableval; do
8298 IFS=$lt_save_ifs
8299 if test "X$pkg" = "X$p"; then
8300 enable_static=yes
8301 fi
8302 done
8303 IFS=$lt_save_ifs
8304 ;;
8305 esac
8306 else
8307 enable_static=yes
8308 fi
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319 # Check whether --with-pic was given.
8320 if test "${with_pic+set}" = set; then :
8321 withval=$with_pic; lt_p=${PACKAGE-default}
8322 case $withval in
8323 yes|no) pic_mode=$withval ;;
8324 *)
8325 pic_mode=default
8326 # Look at the argument we got. We use all the common list separators.
8327 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8328 for lt_pkg in $withval; do
8329 IFS=$lt_save_ifs
8330 if test "X$lt_pkg" = "X$lt_p"; then
8331 pic_mode=yes
8332 fi
8333 done
8334 IFS=$lt_save_ifs
8335 ;;
8336 esac
8337 else
8338 pic_mode=default
8339 fi
8340
8341
8342
8343
8344
8345
8346
8347
8348 # Check whether --enable-fast-install was given.
8349 if test "${enable_fast_install+set}" = set; then :
8350 enableval=$enable_fast_install; p=${PACKAGE-default}
8351 case $enableval in
8352 yes) enable_fast_install=yes ;;
8353 no) enable_fast_install=no ;;
8354 *)
8355 enable_fast_install=no
8356 # Look at the argument we got. We use all the common list separators.
8357 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8358 for pkg in $enableval; do
8359 IFS=$lt_save_ifs
8360 if test "X$pkg" = "X$p"; then
8361 enable_fast_install=yes
8362 fi
8363 done
8364 IFS=$lt_save_ifs
8365 ;;
8366 esac
8367 else
8368 enable_fast_install=yes
8369 fi
8370
8371
8372
8373
8374
8375
8376
8377
8378 shared_archive_member_spec=
8379 case $host,$enable_shared in
8380 power*-*-aix[5-9]*,yes)
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8382 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8383
8384 # Check whether --with-aix-soname was given.
8385 if test "${with_aix_soname+set}" = set; then :
8386 withval=$with_aix_soname; case $withval in
8387 aix|svr4|both)
8388 ;;
8389 *)
8390 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8391 ;;
8392 esac
8393 lt_cv_with_aix_soname=$with_aix_soname
8394 else
8395 if ${lt_cv_with_aix_soname+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 lt_cv_with_aix_soname=aix
8399 fi
8400
8401 with_aix_soname=$lt_cv_with_aix_soname
8402 fi
8403
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8405 $as_echo "$with_aix_soname" >&6; }
8406 if test aix != "$with_aix_soname"; then
8407 # For the AIX way of multilib, we name the shared archive member
8408 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8409 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8410 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8411 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8412 if test 64 = "${OBJECT_MODE-32}"; then
8413 shared_archive_member_spec=shr_64
8414 else
8415 shared_archive_member_spec=shr
8416 fi
8417 fi
8418 ;;
8419 *)
8420 with_aix_soname=aix
8421 ;;
8422 esac
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433 # This can be used to rebuild libtool when needed
8434 LIBTOOL_DEPS=$ltmain
8435
8436 # Always use our own libtool.
8437 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468 test -z "$LN_S" && LN_S="ln -s"
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483 if test -n "${ZSH_VERSION+set}"; then
8484 setopt NO_GLOB_SUBST
8485 fi
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8488 $as_echo_n "checking for objdir... " >&6; }
8489 if ${lt_cv_objdir+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 rm -f .libs 2>/dev/null
8493 mkdir .libs 2>/dev/null
8494 if test -d .libs; then
8495 lt_cv_objdir=.libs
8496 else
8497 # MS-DOS does not allow filenames that begin with a dot.
8498 lt_cv_objdir=_libs
8499 fi
8500 rmdir .libs 2>/dev/null
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8503 $as_echo "$lt_cv_objdir" >&6; }
8504 objdir=$lt_cv_objdir
8505
8506
8507
8508
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define LT_OBJDIR "$lt_cv_objdir/"
8512 _ACEOF
8513
8514
8515
8516
8517 case $host_os in
8518 aix3*)
8519 # AIX sometimes has problems with the GCC collect2 program. For some
8520 # reason, if we set the COLLECT_NAMES environment variable, the problems
8521 # vanish in a puff of smoke.
8522 if test set != "${COLLECT_NAMES+set}"; then
8523 COLLECT_NAMES=
8524 export COLLECT_NAMES
8525 fi
8526 ;;
8527 esac
8528
8529 # Global variables:
8530 ofile=libtool
8531 can_build_shared=yes
8532
8533 # All known linkers require a '.a' archive for static linking (except MSVC,
8534 # which needs '.lib').
8535 libext=a
8536
8537 with_gnu_ld=$lt_cv_prog_gnu_ld
8538
8539 old_CC=$CC
8540 old_CFLAGS=$CFLAGS
8541
8542 # Set sane defaults for various variables
8543 test -z "$CC" && CC=cc
8544 test -z "$LTCC" && LTCC=$CC
8545 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8546 test -z "$LD" && LD=ld
8547 test -z "$ac_objext" && ac_objext=o
8548
8549 func_cc_basename $compiler
8550 cc_basename=$func_cc_basename_result
8551
8552
8553 # Only perform the check for file, if the check method requires it
8554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8555 case $deplibs_check_method in
8556 file_magic*)
8557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8559 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8560 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 case $MAGIC_CMD in
8564 [\\/*] | ?:[\\/]*)
8565 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8566 ;;
8567 *)
8568 lt_save_MAGIC_CMD=$MAGIC_CMD
8569 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8571 for ac_dir in $ac_dummy; do
8572 IFS=$lt_save_ifs
8573 test -z "$ac_dir" && ac_dir=.
8574 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8575 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8576 if test -n "$file_magic_test_file"; then
8577 case $deplibs_check_method in
8578 "file_magic "*)
8579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8580 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8582 $EGREP "$file_magic_regex" > /dev/null; then
8583 :
8584 else
8585 cat <<_LT_EOF 1>&2
8586
8587 *** Warning: the command libtool uses to detect shared libraries,
8588 *** $file_magic_cmd, produces output that libtool cannot recognize.
8589 *** The result is that libtool may fail to recognize shared libraries
8590 *** as such. This will affect the creation of libtool libraries that
8591 *** depend on shared libraries, but programs linked with such libtool
8592 *** libraries will work regardless of this problem. Nevertheless, you
8593 *** may want to report the problem to your system manager and/or to
8594 *** [email protected]
8595
8596 _LT_EOF
8597 fi ;;
8598 esac
8599 fi
8600 break
8601 fi
8602 done
8603 IFS=$lt_save_ifs
8604 MAGIC_CMD=$lt_save_MAGIC_CMD
8605 ;;
8606 esac
8607 fi
8608
8609 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8610 if test -n "$MAGIC_CMD"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8612 $as_echo "$MAGIC_CMD" >&6; }
8613 else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8616 fi
8617
8618
8619
8620
8621
8622 if test -z "$lt_cv_path_MAGIC_CMD"; then
8623 if test -n "$ac_tool_prefix"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8625 $as_echo_n "checking for file... " >&6; }
8626 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 case $MAGIC_CMD in
8630 [\\/*] | ?:[\\/]*)
8631 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8632 ;;
8633 *)
8634 lt_save_MAGIC_CMD=$MAGIC_CMD
8635 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8637 for ac_dir in $ac_dummy; do
8638 IFS=$lt_save_ifs
8639 test -z "$ac_dir" && ac_dir=.
8640 if test -f "$ac_dir/file"; then
8641 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8642 if test -n "$file_magic_test_file"; then
8643 case $deplibs_check_method in
8644 "file_magic "*)
8645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8646 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8648 $EGREP "$file_magic_regex" > /dev/null; then
8649 :
8650 else
8651 cat <<_LT_EOF 1>&2
8652
8653 *** Warning: the command libtool uses to detect shared libraries,
8654 *** $file_magic_cmd, produces output that libtool cannot recognize.
8655 *** The result is that libtool may fail to recognize shared libraries
8656 *** as such. This will affect the creation of libtool libraries that
8657 *** depend on shared libraries, but programs linked with such libtool
8658 *** libraries will work regardless of this problem. Nevertheless, you
8659 *** may want to report the problem to your system manager and/or to
8660 *** [email protected]
8661
8662 _LT_EOF
8663 fi ;;
8664 esac
8665 fi
8666 break
8667 fi
8668 done
8669 IFS=$lt_save_ifs
8670 MAGIC_CMD=$lt_save_MAGIC_CMD
8671 ;;
8672 esac
8673 fi
8674
8675 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8676 if test -n "$MAGIC_CMD"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8678 $as_echo "$MAGIC_CMD" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683
8684
8685 else
8686 MAGIC_CMD=:
8687 fi
8688 fi
8689
8690 fi
8691 ;;
8692 esac
8693
8694 # Use C for the default configuration in the libtool script
8695
8696 lt_save_CC=$CC
8697 ac_ext=c
8698 ac_cpp='$CPP $CPPFLAGS'
8699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702
8703
8704 # Source file extension for C test sources.
8705 ac_ext=c
8706
8707 # Object file extension for compiled C test sources.
8708 objext=o
8709 objext=$objext
8710
8711 # Code to be used in simple compile tests
8712 lt_simple_compile_test_code="int some_variable = 0;"
8713
8714 # Code to be used in simple link tests
8715 lt_simple_link_test_code='int main(){return(0);}'
8716
8717
8718
8719
8720
8721
8722
8723 # If no C compiler was specified, use CC.
8724 LTCC=${LTCC-"$CC"}
8725
8726 # If no C compiler flags were specified, use CFLAGS.
8727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8728
8729 # Allow CC to be a program name with arguments.
8730 compiler=$CC
8731
8732 # Save the default compiler, since it gets overwritten when the other
8733 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8734 compiler_DEFAULT=$CC
8735
8736 # save warnings/boilerplate of simple test code
8737 ac_outfile=conftest.$ac_objext
8738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8740 _lt_compiler_boilerplate=`cat conftest.err`
8741 $RM conftest*
8742
8743 ac_outfile=conftest.$ac_objext
8744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8746 _lt_linker_boilerplate=`cat conftest.err`
8747 $RM -r conftest*
8748
8749
8750 if test -n "$compiler"; then
8751
8752 lt_prog_compiler_no_builtin_flag=
8753
8754 if test yes = "$GCC"; then
8755 case $cc_basename in
8756 nvcc*)
8757 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8758 *)
8759 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8760 esac
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8763 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8764 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 lt_cv_prog_compiler_rtti_exceptions=no
8768 ac_outfile=conftest.$ac_objext
8769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8770 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8771 # Insert the option either (1) after the last *FLAGS variable, or
8772 # (2) before a word containing "conftest.", or (3) at the end.
8773 # Note that $ac_compile itself does not contain backslashes and begins
8774 # with a dollar sign (not a hyphen), so the echo should work correctly.
8775 # The option is referenced via a variable to avoid confusing sed.
8776 lt_compile=`echo "$ac_compile" | $SED \
8777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8779 -e 's:$: $lt_compiler_flag:'`
8780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8781 (eval "$lt_compile" 2>conftest.err)
8782 ac_status=$?
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 if (exit $ac_status) && test -s "$ac_outfile"; then
8786 # The compiler can only warn and ignore the option if not recognized
8787 # So say no if there are warnings other than the usual output.
8788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8791 lt_cv_prog_compiler_rtti_exceptions=yes
8792 fi
8793 fi
8794 $RM conftest*
8795
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8798 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8799
8800 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8801 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8802 else
8803 :
8804 fi
8805
8806 fi
8807
8808
8809
8810
8811
8812
8813 lt_prog_compiler_wl=
8814 lt_prog_compiler_pic=
8815 lt_prog_compiler_static=
8816
8817
8818 if test yes = "$GCC"; then
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_static='-static'
8821
8822 case $host_os in
8823 aix*)
8824 # All AIX code is PIC.
8825 if test ia64 = "$host_cpu"; then
8826 # AIX 5 now supports IA64 processor
8827 lt_prog_compiler_static='-Bstatic'
8828 fi
8829 lt_prog_compiler_pic='-fPIC'
8830 ;;
8831
8832 amigaos*)
8833 case $host_cpu in
8834 powerpc)
8835 # see comment about AmigaOS4 .so support
8836 lt_prog_compiler_pic='-fPIC'
8837 ;;
8838 m68k)
8839 # FIXME: we need at least 68020 code to build shared libraries, but
8840 # adding the '-m68020' flag to GCC prevents building anything better,
8841 # like '-m68040'.
8842 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8843 ;;
8844 esac
8845 ;;
8846
8847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8848 # PIC is the default for these OSes.
8849 ;;
8850
8851 mingw* | cygwin* | pw32* | os2* | cegcc*)
8852 # This hack is so that the source file can tell whether it is being
8853 # built for inclusion in a dll (and should export symbols for example).
8854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8855 # (--disable-auto-import) libraries
8856 lt_prog_compiler_pic='-DDLL_EXPORT'
8857 case $host_os in
8858 os2*)
8859 lt_prog_compiler_static='$wl-static'
8860 ;;
8861 esac
8862 ;;
8863
8864 darwin* | rhapsody*)
8865 # PIC is the default on this platform
8866 # Common symbols not allowed in MH_DYLIB files
8867 lt_prog_compiler_pic='-fno-common'
8868 ;;
8869
8870 haiku*)
8871 # PIC is the default for Haiku.
8872 # The "-static" flag exists, but is broken.
8873 lt_prog_compiler_static=
8874 ;;
8875
8876 hpux*)
8877 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8878 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8879 # sets the default TLS model and affects inlining.
8880 case $host_cpu in
8881 hppa*64*)
8882 # +Z the default
8883 ;;
8884 *)
8885 lt_prog_compiler_pic='-fPIC'
8886 ;;
8887 esac
8888 ;;
8889
8890 interix[3-9]*)
8891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8892 # Instead, we relocate shared libraries at runtime.
8893 ;;
8894
8895 msdosdjgpp*)
8896 # Just because we use GCC doesn't mean we suddenly get shared libraries
8897 # on systems that don't support them.
8898 lt_prog_compiler_can_build_shared=no
8899 enable_shared=no
8900 ;;
8901
8902 *nto* | *qnx*)
8903 # QNX uses GNU C++, but need to define -shared option too, otherwise
8904 # it will coredump.
8905 lt_prog_compiler_pic='-fPIC -shared'
8906 ;;
8907
8908 sysv4*MP*)
8909 if test -d /usr/nec; then
8910 lt_prog_compiler_pic=-Kconform_pic
8911 fi
8912 ;;
8913
8914 *)
8915 lt_prog_compiler_pic='-fPIC'
8916 ;;
8917 esac
8918
8919 case $cc_basename in
8920 nvcc*) # Cuda Compiler Driver 2.2
8921 lt_prog_compiler_wl='-Xlinker '
8922 if test -n "$lt_prog_compiler_pic"; then
8923 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8924 fi
8925 ;;
8926 esac
8927 else
8928 # PORTME Check for flag to pass linker flags through the system compiler.
8929 case $host_os in
8930 aix*)
8931 lt_prog_compiler_wl='-Wl,'
8932 if test ia64 = "$host_cpu"; then
8933 # AIX 5 now supports IA64 processor
8934 lt_prog_compiler_static='-Bstatic'
8935 else
8936 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8937 fi
8938 ;;
8939
8940 darwin* | rhapsody*)
8941 # PIC is the default on this platform
8942 # Common symbols not allowed in MH_DYLIB files
8943 lt_prog_compiler_pic='-fno-common'
8944 case $cc_basename in
8945 nagfor*)
8946 # NAG Fortran compiler
8947 lt_prog_compiler_wl='-Wl,-Wl,,'
8948 lt_prog_compiler_pic='-PIC'
8949 lt_prog_compiler_static='-Bstatic'
8950 ;;
8951 esac
8952 ;;
8953
8954 mingw* | cygwin* | pw32* | os2* | cegcc*)
8955 # This hack is so that the source file can tell whether it is being
8956 # built for inclusion in a dll (and should export symbols for example).
8957 lt_prog_compiler_pic='-DDLL_EXPORT'
8958 case $host_os in
8959 os2*)
8960 lt_prog_compiler_static='$wl-static'
8961 ;;
8962 esac
8963 ;;
8964
8965 hpux9* | hpux10* | hpux11*)
8966 lt_prog_compiler_wl='-Wl,'
8967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8968 # not for PA HP-UX.
8969 case $host_cpu in
8970 hppa*64*|ia64*)
8971 # +Z the default
8972 ;;
8973 *)
8974 lt_prog_compiler_pic='+Z'
8975 ;;
8976 esac
8977 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8978 lt_prog_compiler_static='$wl-a ${wl}archive'
8979 ;;
8980
8981 irix5* | irix6* | nonstopux*)
8982 lt_prog_compiler_wl='-Wl,'
8983 # PIC (with -KPIC) is the default.
8984 lt_prog_compiler_static='-non_shared'
8985 ;;
8986
8987 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8988 case $cc_basename in
8989 # old Intel for x86_64, which still supported -KPIC.
8990 ecc*)
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='-KPIC'
8993 lt_prog_compiler_static='-static'
8994 ;;
8995 # icc used to be incompatible with GCC.
8996 # ICC 10 doesn't accept -KPIC any more.
8997 icc* | ifort*)
8998 lt_prog_compiler_wl='-Wl,'
8999 lt_prog_compiler_pic='-fPIC'
9000 lt_prog_compiler_static='-static'
9001 ;;
9002 # Lahey Fortran 8.1.
9003 lf95*)
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_pic='--shared'
9006 lt_prog_compiler_static='--static'
9007 ;;
9008 nagfor*)
9009 # NAG Fortran compiler
9010 lt_prog_compiler_wl='-Wl,-Wl,,'
9011 lt_prog_compiler_pic='-PIC'
9012 lt_prog_compiler_static='-Bstatic'
9013 ;;
9014 tcc*)
9015 # Fabrice Bellard et al's Tiny C Compiler
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-fPIC'
9018 lt_prog_compiler_static='-static'
9019 ;;
9020 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9021 # Portland Group compilers (*not* the Pentium gcc compiler,
9022 # which looks to be a dead project)
9023 lt_prog_compiler_wl='-Wl,'
9024 lt_prog_compiler_pic='-fpic'
9025 lt_prog_compiler_static='-Bstatic'
9026 ;;
9027 ccc*)
9028 lt_prog_compiler_wl='-Wl,'
9029 # All Alpha code is PIC.
9030 lt_prog_compiler_static='-non_shared'
9031 ;;
9032 xl* | bgxl* | bgf* | mpixl*)
9033 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9034 lt_prog_compiler_wl='-Wl,'
9035 lt_prog_compiler_pic='-qpic'
9036 lt_prog_compiler_static='-qstaticlink'
9037 ;;
9038 *)
9039 case `$CC -V 2>&1 | sed 5q` in
9040 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9041 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9042 lt_prog_compiler_pic='-KPIC'
9043 lt_prog_compiler_static='-Bstatic'
9044 lt_prog_compiler_wl=''
9045 ;;
9046 *Sun\ F* | *Sun*Fortran*)
9047 lt_prog_compiler_pic='-KPIC'
9048 lt_prog_compiler_static='-Bstatic'
9049 lt_prog_compiler_wl='-Qoption ld '
9050 ;;
9051 *Sun\ C*)
9052 # Sun C 5.9
9053 lt_prog_compiler_pic='-KPIC'
9054 lt_prog_compiler_static='-Bstatic'
9055 lt_prog_compiler_wl='-Wl,'
9056 ;;
9057 *Intel*\ [CF]*Compiler*)
9058 lt_prog_compiler_wl='-Wl,'
9059 lt_prog_compiler_pic='-fPIC'
9060 lt_prog_compiler_static='-static'
9061 ;;
9062 *Portland\ Group*)
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='-fpic'
9065 lt_prog_compiler_static='-Bstatic'
9066 ;;
9067 esac
9068 ;;
9069 esac
9070 ;;
9071
9072 newsos6)
9073 lt_prog_compiler_pic='-KPIC'
9074 lt_prog_compiler_static='-Bstatic'
9075 ;;
9076
9077 *nto* | *qnx*)
9078 # QNX uses GNU C++, but need to define -shared option too, otherwise
9079 # it will coredump.
9080 lt_prog_compiler_pic='-fPIC -shared'
9081 ;;
9082
9083 osf3* | osf4* | osf5*)
9084 lt_prog_compiler_wl='-Wl,'
9085 # All OSF/1 code is PIC.
9086 lt_prog_compiler_static='-non_shared'
9087 ;;
9088
9089 rdos*)
9090 lt_prog_compiler_static='-non_shared'
9091 ;;
9092
9093 solaris*)
9094 lt_prog_compiler_pic='-KPIC'
9095 lt_prog_compiler_static='-Bstatic'
9096 case $cc_basename in
9097 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9098 lt_prog_compiler_wl='-Qoption ld ';;
9099 *)
9100 lt_prog_compiler_wl='-Wl,';;
9101 esac
9102 ;;
9103
9104 sunos4*)
9105 lt_prog_compiler_wl='-Qoption ld '
9106 lt_prog_compiler_pic='-PIC'
9107 lt_prog_compiler_static='-Bstatic'
9108 ;;
9109
9110 sysv4 | sysv4.2uw2* | sysv4.3*)
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='-KPIC'
9113 lt_prog_compiler_static='-Bstatic'
9114 ;;
9115
9116 sysv4*MP*)
9117 if test -d /usr/nec; then
9118 lt_prog_compiler_pic='-Kconform_pic'
9119 lt_prog_compiler_static='-Bstatic'
9120 fi
9121 ;;
9122
9123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_pic='-KPIC'
9126 lt_prog_compiler_static='-Bstatic'
9127 ;;
9128
9129 unicos*)
9130 lt_prog_compiler_wl='-Wl,'
9131 lt_prog_compiler_can_build_shared=no
9132 ;;
9133
9134 uts4*)
9135 lt_prog_compiler_pic='-pic'
9136 lt_prog_compiler_static='-Bstatic'
9137 ;;
9138
9139 *)
9140 lt_prog_compiler_can_build_shared=no
9141 ;;
9142 esac
9143 fi
9144
9145 case $host_os in
9146 # For platforms that do not support PIC, -DPIC is meaningless:
9147 *djgpp*)
9148 lt_prog_compiler_pic=
9149 ;;
9150 *)
9151 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9152 ;;
9153 esac
9154
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9156 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9157 if ${lt_cv_prog_compiler_pic+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9163 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9164 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9165
9166 #
9167 # Check to make sure the PIC flag actually works.
9168 #
9169 if test -n "$lt_prog_compiler_pic"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9171 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9172 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 lt_cv_prog_compiler_pic_works=no
9176 ac_outfile=conftest.$ac_objext
9177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9178 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9179 # Insert the option either (1) after the last *FLAGS variable, or
9180 # (2) before a word containing "conftest.", or (3) at the end.
9181 # Note that $ac_compile itself does not contain backslashes and begins
9182 # with a dollar sign (not a hyphen), so the echo should work correctly.
9183 # The option is referenced via a variable to avoid confusing sed.
9184 lt_compile=`echo "$ac_compile" | $SED \
9185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9187 -e 's:$: $lt_compiler_flag:'`
9188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9189 (eval "$lt_compile" 2>conftest.err)
9190 ac_status=$?
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 if (exit $ac_status) && test -s "$ac_outfile"; then
9194 # The compiler can only warn and ignore the option if not recognized
9195 # So say no if there are warnings other than the usual output.
9196 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9199 lt_cv_prog_compiler_pic_works=yes
9200 fi
9201 fi
9202 $RM conftest*
9203
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9206 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9207
9208 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9209 case $lt_prog_compiler_pic in
9210 "" | " "*) ;;
9211 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9212 esac
9213 else
9214 lt_prog_compiler_pic=
9215 lt_prog_compiler_can_build_shared=no
9216 fi
9217
9218 fi
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230 #
9231 # Check to make sure the static flag actually works.
9232 #
9233 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9235 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9236 if ${lt_cv_prog_compiler_static_works+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 lt_cv_prog_compiler_static_works=no
9240 save_LDFLAGS=$LDFLAGS
9241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9244 # The linker can only warn and ignore the option if not recognized
9245 # So say no if there are warnings
9246 if test -s conftest.err; then
9247 # Append any errors to the config.log.
9248 cat conftest.err 1>&5
9249 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9251 if diff conftest.exp conftest.er2 >/dev/null; then
9252 lt_cv_prog_compiler_static_works=yes
9253 fi
9254 else
9255 lt_cv_prog_compiler_static_works=yes
9256 fi
9257 fi
9258 $RM -r conftest*
9259 LDFLAGS=$save_LDFLAGS
9260
9261 fi
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9263 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9264
9265 if test yes = "$lt_cv_prog_compiler_static_works"; then
9266 :
9267 else
9268 lt_prog_compiler_static=
9269 fi
9270
9271
9272
9273
9274
9275
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9279 if ${lt_cv_prog_compiler_c_o+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 lt_cv_prog_compiler_c_o=no
9283 $RM -r conftest 2>/dev/null
9284 mkdir conftest
9285 cd conftest
9286 mkdir out
9287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9288
9289 lt_compiler_flag="-o out/conftest2.$ac_objext"
9290 # Insert the option either (1) after the last *FLAGS variable, or
9291 # (2) before a word containing "conftest.", or (3) at the end.
9292 # Note that $ac_compile itself does not contain backslashes and begins
9293 # with a dollar sign (not a hyphen), so the echo should work correctly.
9294 lt_compile=`echo "$ac_compile" | $SED \
9295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9297 -e 's:$: $lt_compiler_flag:'`
9298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9299 (eval "$lt_compile" 2>out/conftest.err)
9300 ac_status=$?
9301 cat out/conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9304 then
9305 # The compiler can only warn and ignore the option if not recognized
9306 # So say no if there are warnings
9307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9310 lt_cv_prog_compiler_c_o=yes
9311 fi
9312 fi
9313 chmod u+w . 2>&5
9314 $RM conftest*
9315 # SGI C++ compiler will create directory out/ii_files/ for
9316 # template instantiation
9317 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9318 $RM out/* && rmdir out
9319 cd ..
9320 $RM -r conftest
9321 $RM conftest*
9322
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9325 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9326
9327
9328
9329
9330
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9334 if ${lt_cv_prog_compiler_c_o+:} false; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 lt_cv_prog_compiler_c_o=no
9338 $RM -r conftest 2>/dev/null
9339 mkdir conftest
9340 cd conftest
9341 mkdir out
9342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9343
9344 lt_compiler_flag="-o out/conftest2.$ac_objext"
9345 # Insert the option either (1) after the last *FLAGS variable, or
9346 # (2) before a word containing "conftest.", or (3) at the end.
9347 # Note that $ac_compile itself does not contain backslashes and begins
9348 # with a dollar sign (not a hyphen), so the echo should work correctly.
9349 lt_compile=`echo "$ac_compile" | $SED \
9350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9352 -e 's:$: $lt_compiler_flag:'`
9353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9354 (eval "$lt_compile" 2>out/conftest.err)
9355 ac_status=$?
9356 cat out/conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9359 then
9360 # The compiler can only warn and ignore the option if not recognized
9361 # So say no if there are warnings
9362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9365 lt_cv_prog_compiler_c_o=yes
9366 fi
9367 fi
9368 chmod u+w . 2>&5
9369 $RM conftest*
9370 # SGI C++ compiler will create directory out/ii_files/ for
9371 # template instantiation
9372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9373 $RM out/* && rmdir out
9374 cd ..
9375 $RM -r conftest
9376 $RM conftest*
9377
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9380 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9381
9382
9383
9384
9385 hard_links=nottested
9386 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9387 # do not overwrite the value of need_locks provided by the user
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9389 $as_echo_n "checking if we can lock with hard links... " >&6; }
9390 hard_links=yes
9391 $RM conftest*
9392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9393 touch conftest.a
9394 ln conftest.a conftest.b 2>&5 || hard_links=no
9395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9397 $as_echo "$hard_links" >&6; }
9398 if test no = "$hard_links"; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9400 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9401 need_locks=warn
9402 fi
9403 else
9404 need_locks=no
9405 fi
9406
9407
9408
9409
9410
9411
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9413 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9414
9415 runpath_var=
9416 allow_undefined_flag=
9417 always_export_symbols=no
9418 archive_cmds=
9419 archive_expsym_cmds=
9420 compiler_needs_object=no
9421 enable_shared_with_static_runtimes=no
9422 export_dynamic_flag_spec=
9423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9424 hardcode_automatic=no
9425 hardcode_direct=no
9426 hardcode_direct_absolute=no
9427 hardcode_libdir_flag_spec=
9428 hardcode_libdir_separator=
9429 hardcode_minus_L=no
9430 hardcode_shlibpath_var=unsupported
9431 inherit_rpath=no
9432 link_all_deplibs=unknown
9433 module_cmds=
9434 module_expsym_cmds=
9435 old_archive_from_new_cmds=
9436 old_archive_from_expsyms_cmds=
9437 thread_safe_flag_spec=
9438 whole_archive_flag_spec=
9439 # include_expsyms should be a list of space-separated symbols to be *always*
9440 # included in the symbol list
9441 include_expsyms=
9442 # exclude_expsyms can be an extended regexp of symbols to exclude
9443 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9444 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9445 # as well as any symbol that contains 'd'.
9446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9448 # platforms (ab)use it in PIC code, but their linkers get confused if
9449 # the symbol is explicitly referenced. Since portable code cannot
9450 # rely on this symbol name, it's probably fine to never include it in
9451 # preloaded symbol tables.
9452 # Exclude shared library initialization/finalization symbols.
9453 extract_expsyms_cmds=
9454
9455 case $host_os in
9456 cygwin* | mingw* | pw32* | cegcc*)
9457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9458 # When not using gcc, we currently assume that we are using
9459 # Microsoft Visual C++.
9460 if test yes != "$GCC"; then
9461 with_gnu_ld=no
9462 fi
9463 ;;
9464 interix*)
9465 # we just hope/assume this is gcc and not c89 (= MSVC++)
9466 with_gnu_ld=yes
9467 ;;
9468 openbsd* | bitrig*)
9469 with_gnu_ld=no
9470 ;;
9471 linux* | k*bsd*-gnu | gnu*)
9472 link_all_deplibs=no
9473 ;;
9474 esac
9475
9476 ld_shlibs=yes
9477
9478 # On some targets, GNU ld is compatible enough with the native linker
9479 # that we're better off using the native interface for both.
9480 lt_use_gnu_ld_interface=no
9481 if test yes = "$with_gnu_ld"; then
9482 case $host_os in
9483 aix*)
9484 # The AIX port of GNU ld has always aspired to compatibility
9485 # with the native linker. However, as the warning in the GNU ld
9486 # block says, versions before 2.19.5* couldn't really create working
9487 # shared libraries, regardless of the interface used.
9488 case `$LD -v 2>&1` in
9489 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9490 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9491 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9492 *)
9493 lt_use_gnu_ld_interface=yes
9494 ;;
9495 esac
9496 ;;
9497 *)
9498 lt_use_gnu_ld_interface=yes
9499 ;;
9500 esac
9501 fi
9502
9503 if test yes = "$lt_use_gnu_ld_interface"; then
9504 # If archive_cmds runs LD, not CC, wlarc should be empty
9505 wlarc='$wl'
9506
9507 # Set some defaults for GNU ld with shared library support. These
9508 # are reset later if shared libraries are not supported. Putting them
9509 # here allows them to be overridden if necessary.
9510 runpath_var=LD_RUN_PATH
9511 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9512 export_dynamic_flag_spec='$wl--export-dynamic'
9513 # ancient GNU ld didn't support --whole-archive et. al.
9514 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9515 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9516 else
9517 whole_archive_flag_spec=
9518 fi
9519 supports_anon_versioning=no
9520 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9521 *GNU\ gold*) supports_anon_versioning=yes ;;
9522 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9523 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9524 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9525 *\ 2.11.*) ;; # other 2.11 versions
9526 *) supports_anon_versioning=yes ;;
9527 esac
9528
9529 # See if GNU ld supports shared libraries.
9530 case $host_os in
9531 aix[3-9]*)
9532 # On AIX/PPC, the GNU linker is very broken
9533 if test ia64 != "$host_cpu"; then
9534 ld_shlibs=no
9535 cat <<_LT_EOF 1>&2
9536
9537 *** Warning: the GNU linker, at least up to release 2.19, is reported
9538 *** to be unable to reliably create shared libraries on AIX.
9539 *** Therefore, libtool is disabling shared libraries support. If you
9540 *** really care for shared libraries, you may want to install binutils
9541 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9542 *** You will then need to restart the configuration process.
9543
9544 _LT_EOF
9545 fi
9546 ;;
9547
9548 amigaos*)
9549 case $host_cpu in
9550 powerpc)
9551 # see comment about AmigaOS4 .so support
9552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9553 archive_expsym_cmds=''
9554 ;;
9555 m68k)
9556 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)'
9557 hardcode_libdir_flag_spec='-L$libdir'
9558 hardcode_minus_L=yes
9559 ;;
9560 esac
9561 ;;
9562
9563 beos*)
9564 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9565 allow_undefined_flag=unsupported
9566 # Joseph Beckenbach <[email protected]> says some releases of gcc
9567 # support --undefined. This deserves some investigation. FIXME
9568 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9569 else
9570 ld_shlibs=no
9571 fi
9572 ;;
9573
9574 cygwin* | mingw* | pw32* | cegcc*)
9575 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9576 # as there is no search path for DLLs.
9577 hardcode_libdir_flag_spec='-L$libdir'
9578 export_dynamic_flag_spec='$wl--export-all-symbols'
9579 allow_undefined_flag=unsupported
9580 always_export_symbols=no
9581 enable_shared_with_static_runtimes=yes
9582 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'
9583 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9584
9585 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9587 # If the export-symbols file already is a .def file, use it as
9588 # is; otherwise, prepend EXPORTS...
9589 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9590 cp $export_symbols $output_objdir/$soname.def;
9591 else
9592 echo EXPORTS > $output_objdir/$soname.def;
9593 cat $export_symbols >> $output_objdir/$soname.def;
9594 fi~
9595 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9596 else
9597 ld_shlibs=no
9598 fi
9599 ;;
9600
9601 haiku*)
9602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9603 link_all_deplibs=yes
9604 ;;
9605
9606 os2*)
9607 hardcode_libdir_flag_spec='-L$libdir'
9608 hardcode_minus_L=yes
9609 allow_undefined_flag=unsupported
9610 shrext_cmds=.dll
9611 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9612 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9613 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9614 $ECHO EXPORTS >> $output_objdir/$libname.def~
9615 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9616 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9617 emximp -o $lib $output_objdir/$libname.def'
9618 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9619 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9620 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9621 $ECHO EXPORTS >> $output_objdir/$libname.def~
9622 prefix_cmds="$SED"~
9623 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9624 prefix_cmds="$prefix_cmds -e 1d";
9625 fi~
9626 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9627 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9628 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9629 emximp -o $lib $output_objdir/$libname.def'
9630 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9631 enable_shared_with_static_runtimes=yes
9632 ;;
9633
9634 interix[3-9]*)
9635 hardcode_direct=no
9636 hardcode_shlibpath_var=no
9637 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9638 export_dynamic_flag_spec='$wl-E'
9639 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9640 # Instead, shared libraries are loaded at an image base (0x10000000 by
9641 # default) and relocated if they conflict, which is a slow very memory
9642 # consuming and fragmenting process. To avoid this, we pick a random,
9643 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9644 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9645 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9646 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'
9647 ;;
9648
9649 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9650 tmp_diet=no
9651 if test linux-dietlibc = "$host_os"; then
9652 case $cc_basename in
9653 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9654 esac
9655 fi
9656 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9657 && test no = "$tmp_diet"
9658 then
9659 tmp_addflag=' $pic_flag'
9660 tmp_sharedflag='-shared'
9661 case $cc_basename,$host_cpu in
9662 pgcc*) # Portland Group C compiler
9663 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'
9664 tmp_addflag=' $pic_flag'
9665 ;;
9666 pgf77* | pgf90* | pgf95* | pgfortran*)
9667 # Portland Group f77 and f90 compilers
9668 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'
9669 tmp_addflag=' $pic_flag -Mnomain' ;;
9670 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9671 tmp_addflag=' -i_dynamic' ;;
9672 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9673 tmp_addflag=' -i_dynamic -nofor_main' ;;
9674 ifc* | ifort*) # Intel Fortran compiler
9675 tmp_addflag=' -nofor_main' ;;
9676 lf95*) # Lahey Fortran 8.1
9677 whole_archive_flag_spec=
9678 tmp_sharedflag='--shared' ;;
9679 nagfor*) # NAGFOR 5.3
9680 tmp_sharedflag='-Wl,-shared' ;;
9681 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9682 tmp_sharedflag='-qmkshrobj'
9683 tmp_addflag= ;;
9684 nvcc*) # Cuda Compiler Driver 2.2
9685 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'
9686 compiler_needs_object=yes
9687 ;;
9688 esac
9689 case `$CC -V 2>&1 | sed 5q` in
9690 *Sun\ C*) # Sun C 5.9
9691 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'
9692 compiler_needs_object=yes
9693 tmp_sharedflag='-G' ;;
9694 *Sun\ F*) # Sun Fortran 8.3
9695 tmp_sharedflag='-G' ;;
9696 esac
9697 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9698
9699 if test yes = "$supports_anon_versioning"; then
9700 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9702 echo "local: *; };" >> $output_objdir/$libname.ver~
9703 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9704 fi
9705
9706 case $cc_basename in
9707 tcc*)
9708 export_dynamic_flag_spec='-rdynamic'
9709 ;;
9710 xlf* | bgf* | bgxlf* | mpixlf*)
9711 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9712 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9713 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9714 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9715 if test yes = "$supports_anon_versioning"; then
9716 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9718 echo "local: *; };" >> $output_objdir/$libname.ver~
9719 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9720 fi
9721 ;;
9722 esac
9723 else
9724 ld_shlibs=no
9725 fi
9726 ;;
9727
9728 netbsd* | netbsdelf*-gnu)
9729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9730 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9731 wlarc=
9732 else
9733 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9734 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9735 fi
9736 ;;
9737
9738 solaris*)
9739 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9740 ld_shlibs=no
9741 cat <<_LT_EOF 1>&2
9742
9743 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9744 *** create shared libraries on Solaris systems. Therefore, libtool
9745 *** is disabling shared libraries support. We urge you to upgrade GNU
9746 *** binutils to release 2.9.1 or newer. Another option is to modify
9747 *** your PATH or compiler configuration so that the native linker is
9748 *** used, and then restart.
9749
9750 _LT_EOF
9751 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9752 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9753 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9754 else
9755 ld_shlibs=no
9756 fi
9757 ;;
9758
9759 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9760 case `$LD -v 2>&1` in
9761 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9762 ld_shlibs=no
9763 cat <<_LT_EOF 1>&2
9764
9765 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9766 *** reliably create shared libraries on SCO systems. Therefore, libtool
9767 *** is disabling shared libraries support. We urge you to upgrade GNU
9768 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9769 *** your PATH or compiler configuration so that the native linker is
9770 *** used, and then restart.
9771
9772 _LT_EOF
9773 ;;
9774 *)
9775 # For security reasons, it is highly recommended that you always
9776 # use absolute paths for naming shared libraries, and exclude the
9777 # DT_RUNPATH tag from executables and libraries. But doing so
9778 # requires that you compile everything twice, which is a pain.
9779 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9780 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9783 else
9784 ld_shlibs=no
9785 fi
9786 ;;
9787 esac
9788 ;;
9789
9790 sunos4*)
9791 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9792 wlarc=
9793 hardcode_direct=yes
9794 hardcode_shlibpath_var=no
9795 ;;
9796
9797 *)
9798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9800 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9801 else
9802 ld_shlibs=no
9803 fi
9804 ;;
9805 esac
9806
9807 if test no = "$ld_shlibs"; then
9808 runpath_var=
9809 hardcode_libdir_flag_spec=
9810 export_dynamic_flag_spec=
9811 whole_archive_flag_spec=
9812 fi
9813 else
9814 # PORTME fill in a description of your system's linker (not GNU ld)
9815 case $host_os in
9816 aix3*)
9817 allow_undefined_flag=unsupported
9818 always_export_symbols=yes
9819 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'
9820 # Note: this linker hardcodes the directories in LIBPATH if there
9821 # are no directories specified by -L.
9822 hardcode_minus_L=yes
9823 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9824 # Neither direct hardcoding nor static linking is supported with a
9825 # broken collect2.
9826 hardcode_direct=unsupported
9827 fi
9828 ;;
9829
9830 aix[4-9]*)
9831 if test ia64 = "$host_cpu"; then
9832 # On IA64, the linker does run time linking by default, so we don't
9833 # have to do anything special.
9834 aix_use_runtimelinking=no
9835 exp_sym_flag='-Bexport'
9836 no_entry_flag=
9837 else
9838 # If we're using GNU nm, then we don't want the "-C" option.
9839 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9840 # Without the "-l" option, or with the "-B" option, AIX nm treats
9841 # weak defined symbols like other global defined symbols, whereas
9842 # GNU nm marks them as "W".
9843 # While the 'weak' keyword is ignored in the Export File, we need
9844 # it in the Import File for the 'aix-soname' feature, so we have
9845 # to replace the "-B" option with "-P" for AIX nm.
9846 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9847 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'
9848 else
9849 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9850 fi
9851 aix_use_runtimelinking=no
9852
9853 # Test if we are trying to use run time linking or normal
9854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9855 # have runtime linking enabled, and use it for executables.
9856 # For shared libraries, we enable/disable runtime linking
9857 # depending on the kind of the shared library created -
9858 # when "with_aix_soname,aix_use_runtimelinking" is:
9859 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9860 # "aix,yes" lib.so shared, rtl:yes, for executables
9861 # lib.a static archive
9862 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9863 # lib.a(lib.so.V) shared, rtl:no, for executables
9864 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9865 # lib.a(lib.so.V) shared, rtl:no
9866 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9867 # lib.a static archive
9868 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9869 for ld_flag in $LDFLAGS; do
9870 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9871 aix_use_runtimelinking=yes
9872 break
9873 fi
9874 done
9875 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9876 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9877 # so we don't have lib.a shared libs to link our executables.
9878 # We have to force runtime linking in this case.
9879 aix_use_runtimelinking=yes
9880 LDFLAGS="$LDFLAGS -Wl,-brtl"
9881 fi
9882 ;;
9883 esac
9884
9885 exp_sym_flag='-bexport'
9886 no_entry_flag='-bnoentry'
9887 fi
9888
9889 # When large executables or shared objects are built, AIX ld can
9890 # have problems creating the table of contents. If linking a library
9891 # or program results in "error TOC overflow" add -mminimal-toc to
9892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9894
9895 archive_cmds=''
9896 hardcode_direct=yes
9897 hardcode_direct_absolute=yes
9898 hardcode_libdir_separator=':'
9899 link_all_deplibs=yes
9900 file_list_spec='$wl-f,'
9901 case $with_aix_soname,$aix_use_runtimelinking in
9902 aix,*) ;; # traditional, no import file
9903 svr4,* | *,yes) # use import file
9904 # The Import File defines what to hardcode.
9905 hardcode_direct=no
9906 hardcode_direct_absolute=no
9907 ;;
9908 esac
9909
9910 if test yes = "$GCC"; then
9911 case $host_os in aix4.[012]|aix4.[012].*)
9912 # We only want to do this on AIX 4.2 and lower, the check
9913 # below for broken collect2 doesn't work under 4.3+
9914 collect2name=`$CC -print-prog-name=collect2`
9915 if test -f "$collect2name" &&
9916 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9917 then
9918 # We have reworked collect2
9919 :
9920 else
9921 # We have old collect2
9922 hardcode_direct=unsupported
9923 # It fails to find uninstalled libraries when the uninstalled
9924 # path is not listed in the libpath. Setting hardcode_minus_L
9925 # to unsupported forces relinking
9926 hardcode_minus_L=yes
9927 hardcode_libdir_flag_spec='-L$libdir'
9928 hardcode_libdir_separator=
9929 fi
9930 ;;
9931 esac
9932 shared_flag='-shared'
9933 if test yes = "$aix_use_runtimelinking"; then
9934 shared_flag="$shared_flag "'$wl-G'
9935 fi
9936 # Need to ensure runtime linking is disabled for the traditional
9937 # shared library, or the linker may eventually find shared libraries
9938 # /with/ Import File - we do not want to mix them.
9939 shared_flag_aix='-shared'
9940 shared_flag_svr4='-shared $wl-G'
9941 else
9942 # not using gcc
9943 if test ia64 = "$host_cpu"; then
9944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9945 # chokes on -Wl,-G. The following line is correct:
9946 shared_flag='-G'
9947 else
9948 if test yes = "$aix_use_runtimelinking"; then
9949 shared_flag='$wl-G'
9950 else
9951 shared_flag='$wl-bM:SRE'
9952 fi
9953 shared_flag_aix='$wl-bM:SRE'
9954 shared_flag_svr4='$wl-G'
9955 fi
9956 fi
9957
9958 export_dynamic_flag_spec='$wl-bexpall'
9959 # It seems that -bexpall does not export symbols beginning with
9960 # underscore (_), so it is better to generate a list of symbols to export.
9961 always_export_symbols=yes
9962 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9963 # Warning - without using the other runtime loading flags (-brtl),
9964 # -berok will link without error, but may produce a broken library.
9965 allow_undefined_flag='-berok'
9966 # Determine the default libpath from the value encoded in an
9967 # empty executable.
9968 if test set = "${lt_cv_aix_libpath+set}"; then
9969 aix_libpath=$lt_cv_aix_libpath
9970 else
9971 if ${lt_cv_aix_libpath_+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976
9977 int
9978 main ()
9979 {
9980
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 if ac_fn_c_try_link "$LINENO"; then :
9986
9987 lt_aix_libpath_sed='
9988 /Import File Strings/,/^$/ {
9989 /^0/ {
9990 s/^0 *\([^ ]*\) *$/\1/
9991 p
9992 }
9993 }'
9994 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9995 # Check for a 64-bit object if we didn't find anything.
9996 if test -z "$lt_cv_aix_libpath_"; then
9997 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9998 fi
9999 fi
10000 rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 if test -z "$lt_cv_aix_libpath_"; then
10003 lt_cv_aix_libpath_=/usr/lib:/lib
10004 fi
10005
10006 fi
10007
10008 aix_libpath=$lt_cv_aix_libpath_
10009 fi
10010
10011 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10012 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
10013 else
10014 if test ia64 = "$host_cpu"; then
10015 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10016 allow_undefined_flag="-z nodefs"
10017 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"
10018 else
10019 # Determine the default libpath from the value encoded in an
10020 # empty executable.
10021 if test set = "${lt_cv_aix_libpath+set}"; then
10022 aix_libpath=$lt_cv_aix_libpath
10023 else
10024 if ${lt_cv_aix_libpath_+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029
10030 int
10031 main ()
10032 {
10033
10034 ;
10035 return 0;
10036 }
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10039
10040 lt_aix_libpath_sed='
10041 /Import File Strings/,/^$/ {
10042 /^0/ {
10043 s/^0 *\([^ ]*\) *$/\1/
10044 p
10045 }
10046 }'
10047 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10048 # Check for a 64-bit object if we didn't find anything.
10049 if test -z "$lt_cv_aix_libpath_"; then
10050 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10051 fi
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055 if test -z "$lt_cv_aix_libpath_"; then
10056 lt_cv_aix_libpath_=/usr/lib:/lib
10057 fi
10058
10059 fi
10060
10061 aix_libpath=$lt_cv_aix_libpath_
10062 fi
10063
10064 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10065 # Warning - without using the other run time loading flags,
10066 # -berok will link without error, but may produce a broken library.
10067 no_undefined_flag=' $wl-bernotok'
10068 allow_undefined_flag=' $wl-berok'
10069 if test yes = "$with_gnu_ld"; then
10070 # We only use this code for GNU lds that support --whole-archive.
10071 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10072 else
10073 # Exported symbols can be pulled into shared objects from archives
10074 whole_archive_flag_spec='$convenience'
10075 fi
10076 archive_cmds_need_lc=yes
10077 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10078 # -brtl affects multiple linker settings, -berok does not and is overridden later
10079 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10080 if test svr4 != "$with_aix_soname"; then
10081 # This is similar to how AIX traditionally builds its shared libraries.
10082 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'
10083 fi
10084 if test aix != "$with_aix_soname"; then
10085 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'
10086 else
10087 # used by -dlpreopen to get the symbols
10088 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10089 fi
10090 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10091 fi
10092 fi
10093 ;;
10094
10095 amigaos*)
10096 case $host_cpu in
10097 powerpc)
10098 # see comment about AmigaOS4 .so support
10099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10100 archive_expsym_cmds=''
10101 ;;
10102 m68k)
10103 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)'
10104 hardcode_libdir_flag_spec='-L$libdir'
10105 hardcode_minus_L=yes
10106 ;;
10107 esac
10108 ;;
10109
10110 bsdi[45]*)
10111 export_dynamic_flag_spec=-rdynamic
10112 ;;
10113
10114 cygwin* | mingw* | pw32* | cegcc*)
10115 # When not using gcc, we currently assume that we are using
10116 # Microsoft Visual C++.
10117 # hardcode_libdir_flag_spec is actually meaningless, as there is
10118 # no search path for DLLs.
10119 case $cc_basename in
10120 cl*)
10121 # Native MSVC
10122 hardcode_libdir_flag_spec=' '
10123 allow_undefined_flag=unsupported
10124 always_export_symbols=yes
10125 file_list_spec='@'
10126 # Tell ltmain to make .lib files, not .a files.
10127 libext=lib
10128 # Tell ltmain to make .dll files, not .so files.
10129 shrext_cmds=.dll
10130 # FIXME: Setting linknames here is a bad hack.
10131 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10132 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10133 cp "$export_symbols" "$output_objdir/$soname.def";
10134 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10135 else
10136 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10137 fi~
10138 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10139 linknames='
10140 # The linker will not automatically build a static lib if we build a DLL.
10141 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10142 enable_shared_with_static_runtimes=yes
10143 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10145 # Don't use ranlib
10146 old_postinstall_cmds='chmod 644 $oldlib'
10147 postlink_cmds='lt_outputfile="@OUTPUT@"~
10148 lt_tool_outputfile="@TOOL_OUTPUT@"~
10149 case $lt_outputfile in
10150 *.exe|*.EXE) ;;
10151 *)
10152 lt_outputfile=$lt_outputfile.exe
10153 lt_tool_outputfile=$lt_tool_outputfile.exe
10154 ;;
10155 esac~
10156 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10157 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10158 $RM "$lt_outputfile.manifest";
10159 fi'
10160 ;;
10161 *)
10162 # Assume MSVC wrapper
10163 hardcode_libdir_flag_spec=' '
10164 allow_undefined_flag=unsupported
10165 # Tell ltmain to make .lib files, not .a files.
10166 libext=lib
10167 # Tell ltmain to make .dll files, not .so files.
10168 shrext_cmds=.dll
10169 # FIXME: Setting linknames here is a bad hack.
10170 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10171 # The linker will automatically build a .lib file if we build a DLL.
10172 old_archive_from_new_cmds='true'
10173 # FIXME: Should let the user specify the lib program.
10174 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10175 enable_shared_with_static_runtimes=yes
10176 ;;
10177 esac
10178 ;;
10179
10180 darwin* | rhapsody*)
10181
10182
10183 archive_cmds_need_lc=no
10184 hardcode_direct=no
10185 hardcode_automatic=yes
10186 hardcode_shlibpath_var=unsupported
10187 if test yes = "$lt_cv_ld_force_load"; then
10188 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\"`'
10189
10190 else
10191 whole_archive_flag_spec=''
10192 fi
10193 link_all_deplibs=yes
10194 allow_undefined_flag=$_lt_dar_allow_undefined
10195 case $cc_basename in
10196 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10197 *) _lt_dar_can_shared=$GCC ;;
10198 esac
10199 if test yes = "$_lt_dar_can_shared"; then
10200 output_verbose_link_cmd=func_echo_all
10201 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10202 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10203 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"
10204 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"
10205
10206 else
10207 ld_shlibs=no
10208 fi
10209
10210 ;;
10211
10212 dgux*)
10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 hardcode_shlibpath_var=no
10216 ;;
10217
10218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10219 # support. Future versions do this automatically, but an explicit c++rt0.o
10220 # does not break anything, and helps significantly (at the cost of a little
10221 # extra space).
10222 freebsd2.2*)
10223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10224 hardcode_libdir_flag_spec='-R$libdir'
10225 hardcode_direct=yes
10226 hardcode_shlibpath_var=no
10227 ;;
10228
10229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10230 freebsd2.*)
10231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_direct=yes
10233 hardcode_minus_L=yes
10234 hardcode_shlibpath_var=no
10235 ;;
10236
10237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10238 freebsd* | dragonfly*)
10239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10240 hardcode_libdir_flag_spec='-R$libdir'
10241 hardcode_direct=yes
10242 hardcode_shlibpath_var=no
10243 ;;
10244
10245 hpux9*)
10246 if test yes = "$GCC"; then
10247 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'
10248 else
10249 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'
10250 fi
10251 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10252 hardcode_libdir_separator=:
10253 hardcode_direct=yes
10254
10255 # hardcode_minus_L: Not really in the search PATH,
10256 # but as the default location of the library.
10257 hardcode_minus_L=yes
10258 export_dynamic_flag_spec='$wl-E'
10259 ;;
10260
10261 hpux10*)
10262 if test yes,no = "$GCC,$with_gnu_ld"; then
10263 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10264 else
10265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10266 fi
10267 if test no = "$with_gnu_ld"; then
10268 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10269 hardcode_libdir_separator=:
10270 hardcode_direct=yes
10271 hardcode_direct_absolute=yes
10272 export_dynamic_flag_spec='$wl-E'
10273 # hardcode_minus_L: Not really in the search PATH,
10274 # but as the default location of the library.
10275 hardcode_minus_L=yes
10276 fi
10277 ;;
10278
10279 hpux11*)
10280 if test yes,no = "$GCC,$with_gnu_ld"; then
10281 case $host_cpu in
10282 hppa*64*)
10283 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 ;;
10285 ia64*)
10286 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10287 ;;
10288 *)
10289 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10290 ;;
10291 esac
10292 else
10293 case $host_cpu in
10294 hppa*64*)
10295 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 ;;
10297 ia64*)
10298 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10299 ;;
10300 *)
10301
10302 # Older versions of the 11.00 compiler do not understand -b yet
10303 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10305 $as_echo_n "checking if $CC understands -b... " >&6; }
10306 if ${lt_cv_prog_compiler__b+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 lt_cv_prog_compiler__b=no
10310 save_LDFLAGS=$LDFLAGS
10311 LDFLAGS="$LDFLAGS -b"
10312 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10314 # The linker can only warn and ignore the option if not recognized
10315 # So say no if there are warnings
10316 if test -s conftest.err; then
10317 # Append any errors to the config.log.
10318 cat conftest.err 1>&5
10319 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10321 if diff conftest.exp conftest.er2 >/dev/null; then
10322 lt_cv_prog_compiler__b=yes
10323 fi
10324 else
10325 lt_cv_prog_compiler__b=yes
10326 fi
10327 fi
10328 $RM -r conftest*
10329 LDFLAGS=$save_LDFLAGS
10330
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10333 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10334
10335 if test yes = "$lt_cv_prog_compiler__b"; then
10336 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10337 else
10338 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10339 fi
10340
10341 ;;
10342 esac
10343 fi
10344 if test no = "$with_gnu_ld"; then
10345 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10346 hardcode_libdir_separator=:
10347
10348 case $host_cpu in
10349 hppa*64*|ia64*)
10350 hardcode_direct=no
10351 hardcode_shlibpath_var=no
10352 ;;
10353 *)
10354 hardcode_direct=yes
10355 hardcode_direct_absolute=yes
10356 export_dynamic_flag_spec='$wl-E'
10357
10358 # hardcode_minus_L: Not really in the search PATH,
10359 # but as the default location of the library.
10360 hardcode_minus_L=yes
10361 ;;
10362 esac
10363 fi
10364 ;;
10365
10366 irix5* | irix6* | nonstopux*)
10367 if test yes = "$GCC"; then
10368 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'
10369 # Try to use the -exported_symbol ld option, if it does not
10370 # work, assume that -exports_file does not work either and
10371 # implicitly export all symbols.
10372 # This should be the same for all languages, so no per-tag cache variable.
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10374 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10375 if ${lt_cv_irix_exported_symbol+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 save_LDFLAGS=$LDFLAGS
10379 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 int foo (void) { return 0; }
10383 _ACEOF
10384 if ac_fn_c_try_link "$LINENO"; then :
10385 lt_cv_irix_exported_symbol=yes
10386 else
10387 lt_cv_irix_exported_symbol=no
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext conftest.$ac_ext
10391 LDFLAGS=$save_LDFLAGS
10392 fi
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10394 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10395 if test yes = "$lt_cv_irix_exported_symbol"; then
10396 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'
10397 fi
10398 link_all_deplibs=no
10399 else
10400 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'
10401 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'
10402 fi
10403 archive_cmds_need_lc='no'
10404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10405 hardcode_libdir_separator=:
10406 inherit_rpath=yes
10407 link_all_deplibs=yes
10408 ;;
10409
10410 linux*)
10411 case $cc_basename in
10412 tcc*)
10413 # Fabrice Bellard et al's Tiny C Compiler
10414 ld_shlibs=yes
10415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416 ;;
10417 esac
10418 ;;
10419
10420 netbsd* | netbsdelf*-gnu)
10421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10423 else
10424 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10425 fi
10426 hardcode_libdir_flag_spec='-R$libdir'
10427 hardcode_direct=yes
10428 hardcode_shlibpath_var=no
10429 ;;
10430
10431 newsos6)
10432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433 hardcode_direct=yes
10434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10435 hardcode_libdir_separator=:
10436 hardcode_shlibpath_var=no
10437 ;;
10438
10439 *nto* | *qnx*)
10440 ;;
10441
10442 openbsd* | bitrig*)
10443 if test -f /usr/libexec/ld.so; then
10444 hardcode_direct=yes
10445 hardcode_shlibpath_var=no
10446 hardcode_direct_absolute=yes
10447 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10448 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10449 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10450 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10451 export_dynamic_flag_spec='$wl-E'
10452 else
10453 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10454 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10455 fi
10456 else
10457 ld_shlibs=no
10458 fi
10459 ;;
10460
10461 os2*)
10462 hardcode_libdir_flag_spec='-L$libdir'
10463 hardcode_minus_L=yes
10464 allow_undefined_flag=unsupported
10465 shrext_cmds=.dll
10466 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10467 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10468 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10469 $ECHO EXPORTS >> $output_objdir/$libname.def~
10470 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10471 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10472 emximp -o $lib $output_objdir/$libname.def'
10473 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10474 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10475 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10476 $ECHO EXPORTS >> $output_objdir/$libname.def~
10477 prefix_cmds="$SED"~
10478 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10479 prefix_cmds="$prefix_cmds -e 1d";
10480 fi~
10481 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10482 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10483 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10484 emximp -o $lib $output_objdir/$libname.def'
10485 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10486 enable_shared_with_static_runtimes=yes
10487 ;;
10488
10489 osf3*)
10490 if test yes = "$GCC"; then
10491 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10492 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'
10493 else
10494 allow_undefined_flag=' -expect_unresolved \*'
10495 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'
10496 fi
10497 archive_cmds_need_lc='no'
10498 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10499 hardcode_libdir_separator=:
10500 ;;
10501
10502 osf4* | osf5*) # as osf3* with the addition of -msym flag
10503 if test yes = "$GCC"; then
10504 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10505 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'
10506 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10507 else
10508 allow_undefined_flag=' -expect_unresolved \*'
10509 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'
10510 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~
10511 $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'
10512
10513 # Both c and cxx compiler support -rpath directly
10514 hardcode_libdir_flag_spec='-rpath $libdir'
10515 fi
10516 archive_cmds_need_lc='no'
10517 hardcode_libdir_separator=:
10518 ;;
10519
10520 solaris*)
10521 no_undefined_flag=' -z defs'
10522 if test yes = "$GCC"; then
10523 wlarc='$wl'
10524 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10526 $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'
10527 else
10528 case `$CC -V 2>&1` in
10529 *"Compilers 5.0"*)
10530 wlarc=''
10531 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10532 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10533 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10534 ;;
10535 *)
10536 wlarc='$wl'
10537 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10538 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10539 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10540 ;;
10541 esac
10542 fi
10543 hardcode_libdir_flag_spec='-R$libdir'
10544 hardcode_shlibpath_var=no
10545 case $host_os in
10546 solaris2.[0-5] | solaris2.[0-5].*) ;;
10547 *)
10548 # The compiler driver will combine and reorder linker options,
10549 # but understands '-z linker_flag'. GCC discards it without '$wl',
10550 # but is careful enough not to reorder.
10551 # Supported since Solaris 2.6 (maybe 2.5.1?)
10552 if test yes = "$GCC"; then
10553 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10554 else
10555 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10556 fi
10557 ;;
10558 esac
10559 link_all_deplibs=yes
10560 ;;
10561
10562 sunos4*)
10563 if test sequent = "$host_vendor"; then
10564 # Use $CC to link under sequent, because it throws in some extra .o
10565 # files that make .init and .fini sections work.
10566 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10567 else
10568 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10569 fi
10570 hardcode_libdir_flag_spec='-L$libdir'
10571 hardcode_direct=yes
10572 hardcode_minus_L=yes
10573 hardcode_shlibpath_var=no
10574 ;;
10575
10576 sysv4)
10577 case $host_vendor in
10578 sni)
10579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10580 hardcode_direct=yes # is this really true???
10581 ;;
10582 siemens)
10583 ## LD is ld it makes a PLAMLIB
10584 ## CC just makes a GrossModule.
10585 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10586 reload_cmds='$CC -r -o $output$reload_objs'
10587 hardcode_direct=no
10588 ;;
10589 motorola)
10590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10592 ;;
10593 esac
10594 runpath_var='LD_RUN_PATH'
10595 hardcode_shlibpath_var=no
10596 ;;
10597
10598 sysv4.3*)
10599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_shlibpath_var=no
10601 export_dynamic_flag_spec='-Bexport'
10602 ;;
10603
10604 sysv4*MP*)
10605 if test -d /usr/nec; then
10606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10607 hardcode_shlibpath_var=no
10608 runpath_var=LD_RUN_PATH
10609 hardcode_runpath_var=yes
10610 ld_shlibs=yes
10611 fi
10612 ;;
10613
10614 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10615 no_undefined_flag='$wl-z,text'
10616 archive_cmds_need_lc=no
10617 hardcode_shlibpath_var=no
10618 runpath_var='LD_RUN_PATH'
10619
10620 if test yes = "$GCC"; then
10621 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 else
10624 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626 fi
10627 ;;
10628
10629 sysv5* | sco3.2v5* | sco5v6*)
10630 # Note: We CANNOT use -z defs as we might desire, because we do not
10631 # link with -lc, and that would cause any symbols used from libc to
10632 # always be unresolved, which means just about no library would
10633 # ever link correctly. If we're not using GNU ld we use -z text
10634 # though, which does catch some bad symbols but isn't as heavy-handed
10635 # as -z defs.
10636 no_undefined_flag='$wl-z,text'
10637 allow_undefined_flag='$wl-z,nodefs'
10638 archive_cmds_need_lc=no
10639 hardcode_shlibpath_var=no
10640 hardcode_libdir_flag_spec='$wl-R,$libdir'
10641 hardcode_libdir_separator=':'
10642 link_all_deplibs=yes
10643 export_dynamic_flag_spec='$wl-Bexport'
10644 runpath_var='LD_RUN_PATH'
10645
10646 if test yes = "$GCC"; then
10647 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 else
10650 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652 fi
10653 ;;
10654
10655 uts4*)
10656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10657 hardcode_libdir_flag_spec='-L$libdir'
10658 hardcode_shlibpath_var=no
10659 ;;
10660
10661 *)
10662 ld_shlibs=no
10663 ;;
10664 esac
10665
10666 if test sni = "$host_vendor"; then
10667 case $host in
10668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10669 export_dynamic_flag_spec='$wl-Blargedynsym'
10670 ;;
10671 esac
10672 fi
10673 fi
10674
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10676 $as_echo "$ld_shlibs" >&6; }
10677 test no = "$ld_shlibs" && can_build_shared=no
10678
10679 with_gnu_ld=$with_gnu_ld
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695 #
10696 # Do we need to explicitly link libc?
10697 #
10698 case "x$archive_cmds_need_lc" in
10699 x|xyes)
10700 # Assume -lc should be added
10701 archive_cmds_need_lc=yes
10702
10703 if test yes,yes = "$GCC,$enable_shared"; then
10704 case $archive_cmds in
10705 *'~'*)
10706 # FIXME: we may have to deal with multi-command sequences.
10707 ;;
10708 '$CC '*)
10709 # Test whether the compiler implicitly links with -lc since on some
10710 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10711 # to ld, don't add -lc before -lgcc.
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10713 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10714 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 $RM conftest*
10718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10719
10720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10721 (eval $ac_compile) 2>&5
10722 ac_status=$?
10723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10724 test $ac_status = 0; } 2>conftest.err; then
10725 soname=conftest
10726 lib=conftest
10727 libobjs=conftest.$ac_objext
10728 deplibs=
10729 wl=$lt_prog_compiler_wl
10730 pic_flag=$lt_prog_compiler_pic
10731 compiler_flags=-v
10732 linker_flags=-v
10733 verstring=
10734 output_objdir=.
10735 libname=conftest
10736 lt_save_allow_undefined_flag=$allow_undefined_flag
10737 allow_undefined_flag=
10738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10739 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10740 ac_status=$?
10741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742 test $ac_status = 0; }
10743 then
10744 lt_cv_archive_cmds_need_lc=no
10745 else
10746 lt_cv_archive_cmds_need_lc=yes
10747 fi
10748 allow_undefined_flag=$lt_save_allow_undefined_flag
10749 else
10750 cat conftest.err 1>&5
10751 fi
10752 $RM conftest*
10753
10754 fi
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10756 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10757 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10758 ;;
10759 esac
10760 fi
10761 ;;
10762 esac
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10916 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10917
10918 if test yes = "$GCC"; then
10919 case $host_os in
10920 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10921 *) lt_awk_arg='/^libraries:/' ;;
10922 esac
10923 case $host_os in
10924 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10925 *) lt_sed_strip_eq='s|=/|/|g' ;;
10926 esac
10927 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10928 case $lt_search_path_spec in
10929 *\;*)
10930 # if the path contains ";" then we assume it to be the separator
10931 # otherwise default to the standard path separator (i.e. ":") - it is
10932 # assumed that no part of a normal pathname contains ";" but that should
10933 # okay in the real world where ";" in dirpaths is itself problematic.
10934 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10935 ;;
10936 *)
10937 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10938 ;;
10939 esac
10940 # Ok, now we have the path, separated by spaces, we can step through it
10941 # and add multilib dir if necessary...
10942 lt_tmp_lt_search_path_spec=
10943 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10944 # ...but if some path component already ends with the multilib dir we assume
10945 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10946 case "$lt_multi_os_dir; $lt_search_path_spec " in
10947 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10948 lt_multi_os_dir=
10949 ;;
10950 esac
10951 for lt_sys_path in $lt_search_path_spec; do
10952 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10953 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10954 elif test -n "$lt_multi_os_dir"; then
10955 test -d "$lt_sys_path" && \
10956 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10957 fi
10958 done
10959 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10960 BEGIN {RS = " "; FS = "/|\n";} {
10961 lt_foo = "";
10962 lt_count = 0;
10963 for (lt_i = NF; lt_i > 0; lt_i--) {
10964 if ($lt_i != "" && $lt_i != ".") {
10965 if ($lt_i == "..") {
10966 lt_count++;
10967 } else {
10968 if (lt_count == 0) {
10969 lt_foo = "/" $lt_i lt_foo;
10970 } else {
10971 lt_count--;
10972 }
10973 }
10974 }
10975 }
10976 if (lt_foo != "") { lt_freq[lt_foo]++; }
10977 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10978 }'`
10979 # AWK program above erroneously prepends '/' to C:/dos/paths
10980 # for these hosts.
10981 case $host_os in
10982 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10983 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10984 esac
10985 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10986 else
10987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10988 fi
10989 library_names_spec=
10990 libname_spec='lib$name'
10991 soname_spec=
10992 shrext_cmds=.so
10993 postinstall_cmds=
10994 postuninstall_cmds=
10995 finish_cmds=
10996 finish_eval=
10997 shlibpath_var=
10998 shlibpath_overrides_runpath=unknown
10999 version_type=none
11000 dynamic_linker="$host_os ld.so"
11001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11002 need_lib_prefix=unknown
11003 hardcode_into_libs=no
11004
11005 # when you set need_version to no, make sure it does not cause -set_version
11006 # flags to be left without arguments
11007 need_version=unknown
11008
11009
11010
11011 case $host_os in
11012 aix3*)
11013 version_type=linux # correct to gnu/linux during the next big refactor
11014 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11015 shlibpath_var=LIBPATH
11016
11017 # AIX 3 has no versioning support, so we append a major version to the name.
11018 soname_spec='$libname$release$shared_ext$major'
11019 ;;
11020
11021 aix[4-9]*)
11022 version_type=linux # correct to gnu/linux during the next big refactor
11023 need_lib_prefix=no
11024 need_version=no
11025 hardcode_into_libs=yes
11026 if test ia64 = "$host_cpu"; then
11027 # AIX 5 supports IA64
11028 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 else
11031 # With GCC up to 2.95.x, collect2 would create an import file
11032 # for dependence libraries. The import file would start with
11033 # the line '#! .'. This would cause the generated library to
11034 # depend on '.', always an invalid library. This was fixed in
11035 # development snapshots of GCC prior to 3.0.
11036 case $host_os in
11037 aix4 | aix4.[01] | aix4.[01].*)
11038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11039 echo ' yes '
11040 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11041 :
11042 else
11043 can_build_shared=no
11044 fi
11045 ;;
11046 esac
11047 # Using Import Files as archive members, it is possible to support
11048 # filename-based versioning of shared library archives on AIX. While
11049 # this would work for both with and without runtime linking, it will
11050 # prevent static linking of such archives. So we do filename-based
11051 # shared library versioning with .so extension only, which is used
11052 # when both runtime linking and shared linking is enabled.
11053 # Unfortunately, runtime linking may impact performance, so we do
11054 # not want this to be the default eventually. Also, we use the
11055 # versioned .so libs for executables only if there is the -brtl
11056 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11057 # To allow for filename-based versioning support, we need to create
11058 # libNAME.so.V as an archive file, containing:
11059 # *) an Import File, referring to the versioned filename of the
11060 # archive as well as the shared archive member, telling the
11061 # bitwidth (32 or 64) of that shared object, and providing the
11062 # list of exported symbols of that shared object, eventually
11063 # decorated with the 'weak' keyword
11064 # *) the shared object with the F_LOADONLY flag set, to really avoid
11065 # it being seen by the linker.
11066 # At run time we better use the real file rather than another symlink,
11067 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11068
11069 case $with_aix_soname,$aix_use_runtimelinking in
11070 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11071 # soname into executable. Probably we can add versioning support to
11072 # collect2, so additional links can be useful in future.
11073 aix,yes) # traditional libtool
11074 dynamic_linker='AIX unversionable lib.so'
11075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11076 # instead of lib<name>.a to let people know that these are not
11077 # typical AIX shared libraries.
11078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 ;;
11080 aix,no) # traditional AIX only
11081 dynamic_linker='AIX lib.a(lib.so.V)'
11082 # We preserve .a as extension for shared libraries through AIX4.2
11083 # and later when we are not doing run time linking.
11084 library_names_spec='$libname$release.a $libname.a'
11085 soname_spec='$libname$release$shared_ext$major'
11086 ;;
11087 svr4,*) # full svr4 only
11088 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11089 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11090 # We do not specify a path in Import Files, so LIBPATH fires.
11091 shlibpath_overrides_runpath=yes
11092 ;;
11093 *,yes) # both, prefer svr4
11094 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11095 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11096 # unpreferred sharedlib libNAME.a needs extra handling
11097 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"'
11098 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"'
11099 # We do not specify a path in Import Files, so LIBPATH fires.
11100 shlibpath_overrides_runpath=yes
11101 ;;
11102 *,no) # both, prefer aix
11103 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11104 library_names_spec='$libname$release.a $libname.a'
11105 soname_spec='$libname$release$shared_ext$major'
11106 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11107 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)'
11108 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"'
11109 ;;
11110 esac
11111 shlibpath_var=LIBPATH
11112 fi
11113 ;;
11114
11115 amigaos*)
11116 case $host_cpu in
11117 powerpc)
11118 # Since July 2007 AmigaOS4 officially supports .so libraries.
11119 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121 ;;
11122 m68k)
11123 library_names_spec='$libname.ixlibrary $libname.a'
11124 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11125 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'
11126 ;;
11127 esac
11128 ;;
11129
11130 beos*)
11131 library_names_spec='$libname$shared_ext'
11132 dynamic_linker="$host_os ld.so"
11133 shlibpath_var=LIBRARY_PATH
11134 ;;
11135
11136 bsdi[45]*)
11137 version_type=linux # correct to gnu/linux during the next big refactor
11138 need_version=no
11139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11140 soname_spec='$libname$release$shared_ext$major'
11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11145 # the default ld.so.conf also contains /usr/contrib/lib and
11146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11147 # libtool to hard-code these into programs
11148 ;;
11149
11150 cygwin* | mingw* | pw32* | cegcc*)
11151 version_type=windows
11152 shrext_cmds=.dll
11153 need_version=no
11154 need_lib_prefix=no
11155
11156 case $GCC,$cc_basename in
11157 yes,*)
11158 # gcc
11159 library_names_spec='$libname.dll.a'
11160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11161 postinstall_cmds='base_file=`basename \$file`~
11162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11163 dldir=$destdir/`dirname \$dlpath`~
11164 test -d \$dldir || mkdir -p \$dldir~
11165 $install_prog $dir/$dlname \$dldir/$dlname~
11166 chmod a+x \$dldir/$dlname~
11167 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11168 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11169 fi'
11170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11171 dlpath=$dir/\$dldll~
11172 $RM \$dlpath'
11173 shlibpath_overrides_runpath=yes
11174
11175 case $host_os in
11176 cygwin*)
11177 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11178 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11179
11180 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11181 ;;
11182 mingw* | cegcc*)
11183 # MinGW DLLs use traditional 'lib' prefix
11184 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11185 ;;
11186 pw32*)
11187 # pw32 DLLs use 'pw' prefix rather than 'lib'
11188 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11189 ;;
11190 esac
11191 dynamic_linker='Win32 ld.exe'
11192 ;;
11193
11194 *,cl*)
11195 # Native MSVC
11196 libname_spec='$name'
11197 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11198 library_names_spec='$libname.dll.lib'
11199
11200 case $build_os in
11201 mingw*)
11202 sys_lib_search_path_spec=
11203 lt_save_ifs=$IFS
11204 IFS=';'
11205 for lt_path in $LIB
11206 do
11207 IFS=$lt_save_ifs
11208 # Let DOS variable expansion print the short 8.3 style file name.
11209 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11210 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11211 done
11212 IFS=$lt_save_ifs
11213 # Convert to MSYS style.
11214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11215 ;;
11216 cygwin*)
11217 # Convert to unix form, then to dos form, then back to unix form
11218 # but this time dos style (no spaces!) so that the unix form looks
11219 # like /cygdrive/c/PROGRA~1:/cygdr...
11220 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11221 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11222 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11223 ;;
11224 *)
11225 sys_lib_search_path_spec=$LIB
11226 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11227 # It is most probably a Windows format PATH.
11228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11229 else
11230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11231 fi
11232 # FIXME: find the short name or the path components, as spaces are
11233 # common. (e.g. "Program Files" -> "PROGRA~1")
11234 ;;
11235 esac
11236
11237 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11238 postinstall_cmds='base_file=`basename \$file`~
11239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11240 dldir=$destdir/`dirname \$dlpath`~
11241 test -d \$dldir || mkdir -p \$dldir~
11242 $install_prog $dir/$dlname \$dldir/$dlname'
11243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11244 dlpath=$dir/\$dldll~
11245 $RM \$dlpath'
11246 shlibpath_overrides_runpath=yes
11247 dynamic_linker='Win32 link.exe'
11248 ;;
11249
11250 *)
11251 # Assume MSVC wrapper
11252 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11253 dynamic_linker='Win32 ld.exe'
11254 ;;
11255 esac
11256 # FIXME: first we should search . and the directory the executable is in
11257 shlibpath_var=PATH
11258 ;;
11259
11260 darwin* | rhapsody*)
11261 dynamic_linker="$host_os dyld"
11262 version_type=darwin
11263 need_lib_prefix=no
11264 need_version=no
11265 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11266 soname_spec='$libname$release$major$shared_ext'
11267 shlibpath_overrides_runpath=yes
11268 shlibpath_var=DYLD_LIBRARY_PATH
11269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11270
11271 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11272 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11273 ;;
11274
11275 dgux*)
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 need_lib_prefix=no
11278 need_version=no
11279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11280 soname_spec='$libname$release$shared_ext$major'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 ;;
11283
11284 freebsd* | dragonfly*)
11285 # DragonFly does not have aout. When/if they implement a new
11286 # versioning mechanism, adjust this.
11287 if test -x /usr/bin/objformat; then
11288 objformat=`/usr/bin/objformat`
11289 else
11290 case $host_os in
11291 freebsd[23].*) objformat=aout ;;
11292 *) objformat=elf ;;
11293 esac
11294 fi
11295 version_type=freebsd-$objformat
11296 case $version_type in
11297 freebsd-elf*)
11298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11299 soname_spec='$libname$release$shared_ext$major'
11300 need_version=no
11301 need_lib_prefix=no
11302 ;;
11303 freebsd-*)
11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11305 need_version=yes
11306 ;;
11307 esac
11308 shlibpath_var=LD_LIBRARY_PATH
11309 case $host_os in
11310 freebsd2.*)
11311 shlibpath_overrides_runpath=yes
11312 ;;
11313 freebsd3.[01]* | freebsdelf3.[01]*)
11314 shlibpath_overrides_runpath=yes
11315 hardcode_into_libs=yes
11316 ;;
11317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11319 shlibpath_overrides_runpath=no
11320 hardcode_into_libs=yes
11321 ;;
11322 *) # from 4.6 on, and DragonFly
11323 shlibpath_overrides_runpath=yes
11324 hardcode_into_libs=yes
11325 ;;
11326 esac
11327 ;;
11328
11329 haiku*)
11330 version_type=linux # correct to gnu/linux during the next big refactor
11331 need_lib_prefix=no
11332 need_version=no
11333 dynamic_linker="$host_os runtime_loader"
11334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11335 soname_spec='$libname$release$shared_ext$major'
11336 shlibpath_var=LIBRARY_PATH
11337 shlibpath_overrides_runpath=no
11338 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11339 hardcode_into_libs=yes
11340 ;;
11341
11342 hpux9* | hpux10* | hpux11*)
11343 # Give a soname corresponding to the major version so that dld.sl refuses to
11344 # link against other versions.
11345 version_type=sunos
11346 need_lib_prefix=no
11347 need_version=no
11348 case $host_cpu in
11349 ia64*)
11350 shrext_cmds='.so'
11351 hardcode_into_libs=yes
11352 dynamic_linker="$host_os dld.so"
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356 soname_spec='$libname$release$shared_ext$major'
11357 if test 32 = "$HPUX_IA64_MODE"; then
11358 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11359 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11360 else
11361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11362 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11363 fi
11364 ;;
11365 hppa*64*)
11366 shrext_cmds='.sl'
11367 hardcode_into_libs=yes
11368 dynamic_linker="$host_os dld.sl"
11369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11372 soname_spec='$libname$release$shared_ext$major'
11373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375 ;;
11376 *)
11377 shrext_cmds='.sl'
11378 dynamic_linker="$host_os dld.sl"
11379 shlibpath_var=SHLIB_PATH
11380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382 soname_spec='$libname$release$shared_ext$major'
11383 ;;
11384 esac
11385 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11386 postinstall_cmds='chmod 555 $lib'
11387 # or fails outright, so override atomically:
11388 install_override_mode=555
11389 ;;
11390
11391 interix[3-9]*)
11392 version_type=linux # correct to gnu/linux during the next big refactor
11393 need_lib_prefix=no
11394 need_version=no
11395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11396 soname_spec='$libname$release$shared_ext$major'
11397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=no
11400 hardcode_into_libs=yes
11401 ;;
11402
11403 irix5* | irix6* | nonstopux*)
11404 case $host_os in
11405 nonstopux*) version_type=nonstopux ;;
11406 *)
11407 if test yes = "$lt_cv_prog_gnu_ld"; then
11408 version_type=linux # correct to gnu/linux during the next big refactor
11409 else
11410 version_type=irix
11411 fi ;;
11412 esac
11413 need_lib_prefix=no
11414 need_version=no
11415 soname_spec='$libname$release$shared_ext$major'
11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11417 case $host_os in
11418 irix5* | nonstopux*)
11419 libsuff= shlibsuff=
11420 ;;
11421 *)
11422 case $LD in # libtool.m4 will add one of these switches to LD
11423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11424 libsuff= shlibsuff= libmagic=32-bit;;
11425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11426 libsuff=32 shlibsuff=N32 libmagic=N32;;
11427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11429 *) libsuff= shlibsuff= libmagic=never-match;;
11430 esac
11431 ;;
11432 esac
11433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11434 shlibpath_overrides_runpath=no
11435 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11436 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11437 hardcode_into_libs=yes
11438 ;;
11439
11440 # No shared lib support for Linux oldld, aout, or coff.
11441 linux*oldld* | linux*aout* | linux*coff*)
11442 dynamic_linker=no
11443 ;;
11444
11445 linux*android*)
11446 version_type=none # Android doesn't support versioned libraries.
11447 need_lib_prefix=no
11448 need_version=no
11449 library_names_spec='$libname$release$shared_ext'
11450 soname_spec='$libname$release$shared_ext'
11451 finish_cmds=
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes
11454
11455 # This implies no fast_install, which is unacceptable.
11456 # Some rework will be needed to allow for fast_install
11457 # before this can be enabled.
11458 hardcode_into_libs=yes
11459
11460 dynamic_linker='Android linker'
11461 # Don't embed -rpath directories since the linker doesn't support them.
11462 hardcode_libdir_flag_spec='-L$libdir'
11463 ;;
11464
11465 # This must be glibc/ELF.
11466 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11467 version_type=linux # correct to gnu/linux during the next big refactor
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 soname_spec='$libname$release$shared_ext$major'
11472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=no
11475
11476 # Some binutils ld are patched to set DT_RUNPATH
11477 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 lt_cv_shlibpath_overrides_runpath=no
11481 save_LDFLAGS=$LDFLAGS
11482 save_libdir=$libdir
11483 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11484 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11487
11488 int
11489 main ()
11490 {
11491
11492 ;
11493 return 0;
11494 }
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11498 lt_cv_shlibpath_overrides_runpath=yes
11499 fi
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LDFLAGS=$save_LDFLAGS
11504 libdir=$save_libdir
11505
11506 fi
11507
11508 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11509
11510 # This implies no fast_install, which is unacceptable.
11511 # Some rework will be needed to allow for fast_install
11512 # before this can be enabled.
11513 hardcode_into_libs=yes
11514
11515 # Ideally, we could use ldconfig to report *all* directores which are
11516 # searched for libraries, however this is still not possible. Aside from not
11517 # being certain /sbin/ldconfig is available, command
11518 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11519 # even though it is searched at run-time. Try to do the best guess by
11520 # appending ld.so.conf contents (and includes) to the search path.
11521 if test -f /etc/ld.so.conf; then
11522 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' ' '`
11523 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11524 fi
11525
11526 # We used to test for /lib/ld.so.1 and disable shared libraries on
11527 # powerpc, because MkLinux only supported shared libraries with the
11528 # GNU dynamic linker. Since this was broken with cross compilers,
11529 # most powerpc-linux boxes support dynamic linking these days and
11530 # people can always --disable-shared, the test was removed, and we
11531 # assume the GNU/Linux dynamic linker is in use.
11532 dynamic_linker='GNU/Linux ld.so'
11533 ;;
11534
11535 netbsdelf*-gnu)
11536 version_type=linux
11537 need_lib_prefix=no
11538 need_version=no
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=no
11543 hardcode_into_libs=yes
11544 dynamic_linker='NetBSD ld.elf_so'
11545 ;;
11546
11547 netbsd*)
11548 version_type=sunos
11549 need_lib_prefix=no
11550 need_version=no
11551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11554 dynamic_linker='NetBSD (a.out) ld.so'
11555 else
11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11557 soname_spec='$libname$release$shared_ext$major'
11558 dynamic_linker='NetBSD ld.elf_so'
11559 fi
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 ;;
11564
11565 newsos6)
11566 version_type=linux # correct to gnu/linux during the next big refactor
11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes
11570 ;;
11571
11572 *nto* | *qnx*)
11573 version_type=qnx
11574 need_lib_prefix=no
11575 need_version=no
11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11577 soname_spec='$libname$release$shared_ext$major'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=no
11580 hardcode_into_libs=yes
11581 dynamic_linker='ldqnx.so'
11582 ;;
11583
11584 openbsd* | bitrig*)
11585 version_type=sunos
11586 sys_lib_dlsearch_path_spec=/usr/lib
11587 need_lib_prefix=no
11588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11589 need_version=no
11590 else
11591 need_version=yes
11592 fi
11593 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=yes
11597 ;;
11598
11599 os2*)
11600 libname_spec='$name'
11601 version_type=windows
11602 shrext_cmds=.dll
11603 need_version=no
11604 need_lib_prefix=no
11605 # OS/2 can only load a DLL with a base name of 8 characters or less.
11606 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11607 v=$($ECHO $release$versuffix | tr -d .-);
11608 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11609 $ECHO $n$v`$shared_ext'
11610 library_names_spec='${libname}_dll.$libext'
11611 dynamic_linker='OS/2 ld.exe'
11612 shlibpath_var=BEGINLIBPATH
11613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11615 postinstall_cmds='base_file=`basename \$file`~
11616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11617 dldir=$destdir/`dirname \$dlpath`~
11618 test -d \$dldir || mkdir -p \$dldir~
11619 $install_prog $dir/$dlname \$dldir/$dlname~
11620 chmod a+x \$dldir/$dlname~
11621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11623 fi'
11624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11625 dlpath=$dir/\$dldll~
11626 $RM \$dlpath'
11627 ;;
11628
11629 osf3* | osf4* | osf5*)
11630 version_type=osf
11631 need_lib_prefix=no
11632 need_version=no
11633 soname_spec='$libname$release$shared_ext$major'
11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 ;;
11639
11640 rdos*)
11641 dynamic_linker=no
11642 ;;
11643
11644 solaris*)
11645 version_type=linux # correct to gnu/linux during the next big refactor
11646 need_lib_prefix=no
11647 need_version=no
11648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11649 soname_spec='$libname$release$shared_ext$major'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=yes
11652 hardcode_into_libs=yes
11653 # ldd complains unless libraries are executable
11654 postinstall_cmds='chmod +x $lib'
11655 ;;
11656
11657 sunos4*)
11658 version_type=sunos
11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11660 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 if test yes = "$with_gnu_ld"; then
11664 need_lib_prefix=no
11665 fi
11666 need_version=yes
11667 ;;
11668
11669 sysv4 | sysv4.3*)
11670 version_type=linux # correct to gnu/linux during the next big refactor
11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11672 soname_spec='$libname$release$shared_ext$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 case $host_vendor in
11675 sni)
11676 shlibpath_overrides_runpath=no
11677 need_lib_prefix=no
11678 runpath_var=LD_RUN_PATH
11679 ;;
11680 siemens)
11681 need_lib_prefix=no
11682 ;;
11683 motorola)
11684 need_lib_prefix=no
11685 need_version=no
11686 shlibpath_overrides_runpath=no
11687 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11688 ;;
11689 esac
11690 ;;
11691
11692 sysv4*MP*)
11693 if test -d /usr/nec; then
11694 version_type=linux # correct to gnu/linux during the next big refactor
11695 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11696 soname_spec='$libname$shared_ext.$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 fi
11699 ;;
11700
11701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11702 version_type=sco
11703 need_lib_prefix=no
11704 need_version=no
11705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11706 soname_spec='$libname$release$shared_ext$major'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=yes
11709 hardcode_into_libs=yes
11710 if test yes = "$with_gnu_ld"; then
11711 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11712 else
11713 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11714 case $host_os in
11715 sco3.2v5*)
11716 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11717 ;;
11718 esac
11719 fi
11720 sys_lib_dlsearch_path_spec='/usr/lib'
11721 ;;
11722
11723 tpf*)
11724 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11725 version_type=linux # correct to gnu/linux during the next big refactor
11726 need_lib_prefix=no
11727 need_version=no
11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11729 shlibpath_var=LD_LIBRARY_PATH
11730 shlibpath_overrides_runpath=no
11731 hardcode_into_libs=yes
11732 ;;
11733
11734 uts4*)
11735 version_type=linux # correct to gnu/linux during the next big refactor
11736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737 soname_spec='$libname$release$shared_ext$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 ;;
11740
11741 *)
11742 dynamic_linker=no
11743 ;;
11744 esac
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11746 $as_echo "$dynamic_linker" >&6; }
11747 test no = "$dynamic_linker" && can_build_shared=no
11748
11749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11750 if test yes = "$GCC"; then
11751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11752 fi
11753
11754 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11755 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11756 fi
11757
11758 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11759 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11760 fi
11761
11762 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11763 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11764
11765 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11766 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11767
11768 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11769 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11868 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11869 hardcode_action=
11870 if test -n "$hardcode_libdir_flag_spec" ||
11871 test -n "$runpath_var" ||
11872 test yes = "$hardcode_automatic"; then
11873
11874 # We can hardcode non-existent directories.
11875 if test no != "$hardcode_direct" &&
11876 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11877 # have to relink, otherwise we might link with an installed library
11878 # when we should be linking with a yet-to-be-installed one
11879 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11880 test no != "$hardcode_minus_L"; then
11881 # Linking always hardcodes the temporary library directory.
11882 hardcode_action=relink
11883 else
11884 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11885 hardcode_action=immediate
11886 fi
11887 else
11888 # We cannot hardcode anything, or else we can only hardcode existing
11889 # directories.
11890 hardcode_action=unsupported
11891 fi
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11893 $as_echo "$hardcode_action" >&6; }
11894
11895 if test relink = "$hardcode_action" ||
11896 test yes = "$inherit_rpath"; then
11897 # Fast installation is not supported
11898 enable_fast_install=no
11899 elif test yes = "$shlibpath_overrides_runpath" ||
11900 test no = "$enable_shared"; then
11901 # Fast installation is not necessary
11902 enable_fast_install=needless
11903 fi
11904
11905
11906
11907
11908
11909
11910 if test yes != "$enable_dlopen"; then
11911 enable_dlopen=unknown
11912 enable_dlopen_self=unknown
11913 enable_dlopen_self_static=unknown
11914 else
11915 lt_cv_dlopen=no
11916 lt_cv_dlopen_libs=
11917
11918 case $host_os in
11919 beos*)
11920 lt_cv_dlopen=load_add_on
11921 lt_cv_dlopen_libs=
11922 lt_cv_dlopen_self=yes
11923 ;;
11924
11925 mingw* | pw32* | cegcc*)
11926 lt_cv_dlopen=LoadLibrary
11927 lt_cv_dlopen_libs=
11928 ;;
11929
11930 cygwin*)
11931 lt_cv_dlopen=dlopen
11932 lt_cv_dlopen_libs=
11933 ;;
11934
11935 darwin*)
11936 # if libdl is installed we need to link against it
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11938 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11939 if ${ac_cv_lib_dl_dlopen+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 ac_check_lib_save_LIBS=$LIBS
11943 LIBS="-ldl $LIBS"
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11946
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 char dlopen ();
11954 int
11955 main ()
11956 {
11957 return dlopen ();
11958 ;
11959 return 0;
11960 }
11961 _ACEOF
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 ac_cv_lib_dl_dlopen=yes
11964 else
11965 ac_cv_lib_dl_dlopen=no
11966 fi
11967 rm -f core conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11970 fi
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11972 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11973 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11974 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11975 else
11976
11977 lt_cv_dlopen=dyld
11978 lt_cv_dlopen_libs=
11979 lt_cv_dlopen_self=yes
11980
11981 fi
11982
11983 ;;
11984
11985 tpf*)
11986 # Don't try to run any link tests for TPF. We know it's impossible
11987 # because TPF is a cross-compiler, and we know how we open DSOs.
11988 lt_cv_dlopen=dlopen
11989 lt_cv_dlopen_libs=
11990 lt_cv_dlopen_self=no
11991 ;;
11992
11993 *)
11994 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11995 if test "x$ac_cv_func_shl_load" = xyes; then :
11996 lt_cv_dlopen=shl_load
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11999 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12000 if ${ac_cv_lib_dld_shl_load+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-ldld $LIBS"
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007
12008 /* Override any GCC internal prototype to avoid an error.
12009 Use char because int might match the return type of a GCC
12010 builtin and then its argument prototype would still apply. */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 char shl_load ();
12015 int
12016 main ()
12017 {
12018 return shl_load ();
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 if ac_fn_c_try_link "$LINENO"; then :
12024 ac_cv_lib_dld_shl_load=yes
12025 else
12026 ac_cv_lib_dld_shl_load=no
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12033 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12034 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12035 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12036 else
12037 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12038 if test "x$ac_cv_func_dlopen" = xyes; then :
12039 lt_cv_dlopen=dlopen
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12042 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12043 if ${ac_cv_lib_dl_dlopen+:} false; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 ac_check_lib_save_LIBS=$LIBS
12047 LIBS="-ldl $LIBS"
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050
12051 /* Override any GCC internal prototype to avoid an error.
12052 Use char because int might match the return type of a GCC
12053 builtin and then its argument prototype would still apply. */
12054 #ifdef __cplusplus
12055 extern "C"
12056 #endif
12057 char dlopen ();
12058 int
12059 main ()
12060 {
12061 return dlopen ();
12062 ;
12063 return 0;
12064 }
12065 _ACEOF
12066 if ac_fn_c_try_link "$LINENO"; then :
12067 ac_cv_lib_dl_dlopen=yes
12068 else
12069 ac_cv_lib_dl_dlopen=no
12070 fi
12071 rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12076 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12077 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12078 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12081 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12082 if ${ac_cv_lib_svld_dlopen+:} false; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 ac_check_lib_save_LIBS=$LIBS
12086 LIBS="-lsvld $LIBS"
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089
12090 /* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 char dlopen ();
12097 int
12098 main ()
12099 {
12100 return dlopen ();
12101 ;
12102 return 0;
12103 }
12104 _ACEOF
12105 if ac_fn_c_try_link "$LINENO"; then :
12106 ac_cv_lib_svld_dlopen=yes
12107 else
12108 ac_cv_lib_svld_dlopen=no
12109 fi
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112 LIBS=$ac_check_lib_save_LIBS
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12115 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12116 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12117 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12118 else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12120 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12121 if ${ac_cv_lib_dld_dld_link+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 ac_check_lib_save_LIBS=$LIBS
12125 LIBS="-ldld $LIBS"
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128
12129 /* Override any GCC internal prototype to avoid an error.
12130 Use char because int might match the return type of a GCC
12131 builtin and then its argument prototype would still apply. */
12132 #ifdef __cplusplus
12133 extern "C"
12134 #endif
12135 char dld_link ();
12136 int
12137 main ()
12138 {
12139 return dld_link ();
12140 ;
12141 return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"; then :
12145 ac_cv_lib_dld_dld_link=yes
12146 else
12147 ac_cv_lib_dld_dld_link=no
12148 fi
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12152 fi
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12154 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12155 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12156 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12157 fi
12158
12159
12160 fi
12161
12162
12163 fi
12164
12165
12166 fi
12167
12168
12169 fi
12170
12171
12172 fi
12173
12174 ;;
12175 esac
12176
12177 if test no = "$lt_cv_dlopen"; then
12178 enable_dlopen=no
12179 else
12180 enable_dlopen=yes
12181 fi
12182
12183 case $lt_cv_dlopen in
12184 dlopen)
12185 save_CPPFLAGS=$CPPFLAGS
12186 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12187
12188 save_LDFLAGS=$LDFLAGS
12189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12190
12191 save_LIBS=$LIBS
12192 LIBS="$lt_cv_dlopen_libs $LIBS"
12193
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12195 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12196 if ${lt_cv_dlopen_self+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 if test yes = "$cross_compiling"; then :
12200 lt_cv_dlopen_self=cross
12201 else
12202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12203 lt_status=$lt_dlunknown
12204 cat > conftest.$ac_ext <<_LT_EOF
12205 #line $LINENO "configure"
12206 #include "confdefs.h"
12207
12208 #if HAVE_DLFCN_H
12209 #include <dlfcn.h>
12210 #endif
12211
12212 #include <stdio.h>
12213
12214 #ifdef RTLD_GLOBAL
12215 # define LT_DLGLOBAL RTLD_GLOBAL
12216 #else
12217 # ifdef DL_GLOBAL
12218 # define LT_DLGLOBAL DL_GLOBAL
12219 # else
12220 # define LT_DLGLOBAL 0
12221 # endif
12222 #endif
12223
12224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12225 find out it does not work in some platform. */
12226 #ifndef LT_DLLAZY_OR_NOW
12227 # ifdef RTLD_LAZY
12228 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12229 # else
12230 # ifdef DL_LAZY
12231 # define LT_DLLAZY_OR_NOW DL_LAZY
12232 # else
12233 # ifdef RTLD_NOW
12234 # define LT_DLLAZY_OR_NOW RTLD_NOW
12235 # else
12236 # ifdef DL_NOW
12237 # define LT_DLLAZY_OR_NOW DL_NOW
12238 # else
12239 # define LT_DLLAZY_OR_NOW 0
12240 # endif
12241 # endif
12242 # endif
12243 # endif
12244 #endif
12245
12246 /* When -fvisibility=hidden is used, assume the code has been annotated
12247 correspondingly for the symbols needed. */
12248 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12249 int fnord () __attribute__((visibility("default")));
12250 #endif
12251
12252 int fnord () { return 42; }
12253 int main ()
12254 {
12255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12256 int status = $lt_dlunknown;
12257
12258 if (self)
12259 {
12260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12261 else
12262 {
12263 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12264 else puts (dlerror ());
12265 }
12266 /* dlclose (self); */
12267 }
12268 else
12269 puts (dlerror ());
12270
12271 return status;
12272 }
12273 _LT_EOF
12274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12275 (eval $ac_link) 2>&5
12276 ac_status=$?
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12279 (./conftest; exit; ) >&5 2>/dev/null
12280 lt_status=$?
12281 case x$lt_status in
12282 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12283 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12284 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12285 esac
12286 else :
12287 # compilation failed
12288 lt_cv_dlopen_self=no
12289 fi
12290 fi
12291 rm -fr conftest*
12292
12293
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12296 $as_echo "$lt_cv_dlopen_self" >&6; }
12297
12298 if test yes = "$lt_cv_dlopen_self"; then
12299 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12301 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12302 if ${lt_cv_dlopen_self_static+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 if test yes = "$cross_compiling"; then :
12306 lt_cv_dlopen_self_static=cross
12307 else
12308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12309 lt_status=$lt_dlunknown
12310 cat > conftest.$ac_ext <<_LT_EOF
12311 #line $LINENO "configure"
12312 #include "confdefs.h"
12313
12314 #if HAVE_DLFCN_H
12315 #include <dlfcn.h>
12316 #endif
12317
12318 #include <stdio.h>
12319
12320 #ifdef RTLD_GLOBAL
12321 # define LT_DLGLOBAL RTLD_GLOBAL
12322 #else
12323 # ifdef DL_GLOBAL
12324 # define LT_DLGLOBAL DL_GLOBAL
12325 # else
12326 # define LT_DLGLOBAL 0
12327 # endif
12328 #endif
12329
12330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12331 find out it does not work in some platform. */
12332 #ifndef LT_DLLAZY_OR_NOW
12333 # ifdef RTLD_LAZY
12334 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12335 # else
12336 # ifdef DL_LAZY
12337 # define LT_DLLAZY_OR_NOW DL_LAZY
12338 # else
12339 # ifdef RTLD_NOW
12340 # define LT_DLLAZY_OR_NOW RTLD_NOW
12341 # else
12342 # ifdef DL_NOW
12343 # define LT_DLLAZY_OR_NOW DL_NOW
12344 # else
12345 # define LT_DLLAZY_OR_NOW 0
12346 # endif
12347 # endif
12348 # endif
12349 # endif
12350 #endif
12351
12352 /* When -fvisibility=hidden is used, assume the code has been annotated
12353 correspondingly for the symbols needed. */
12354 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12355 int fnord () __attribute__((visibility("default")));
12356 #endif
12357
12358 int fnord () { return 42; }
12359 int main ()
12360 {
12361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12362 int status = $lt_dlunknown;
12363
12364 if (self)
12365 {
12366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12367 else
12368 {
12369 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12370 else puts (dlerror ());
12371 }
12372 /* dlclose (self); */
12373 }
12374 else
12375 puts (dlerror ());
12376
12377 return status;
12378 }
12379 _LT_EOF
12380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12381 (eval $ac_link) 2>&5
12382 ac_status=$?
12383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12384 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12385 (./conftest; exit; ) >&5 2>/dev/null
12386 lt_status=$?
12387 case x$lt_status in
12388 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12389 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12390 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12391 esac
12392 else :
12393 # compilation failed
12394 lt_cv_dlopen_self_static=no
12395 fi
12396 fi
12397 rm -fr conftest*
12398
12399
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12402 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12403 fi
12404
12405 CPPFLAGS=$save_CPPFLAGS
12406 LDFLAGS=$save_LDFLAGS
12407 LIBS=$save_LIBS
12408 ;;
12409 esac
12410
12411 case $lt_cv_dlopen_self in
12412 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12413 *) enable_dlopen_self=unknown ;;
12414 esac
12415
12416 case $lt_cv_dlopen_self_static in
12417 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12418 *) enable_dlopen_self_static=unknown ;;
12419 esac
12420 fi
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438 striplib=
12439 old_striplib=
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12441 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12442 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12443 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12444 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12446 $as_echo "yes" >&6; }
12447 else
12448 # FIXME - insert some real tests, host_os isn't really good enough
12449 case $host_os in
12450 darwin*)
12451 if test -n "$STRIP"; then
12452 striplib="$STRIP -x"
12453 old_striplib="$STRIP -S"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455 $as_echo "yes" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 fi
12460 ;;
12461 *)
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12464 ;;
12465 esac
12466 fi
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479 # Report what library types will actually be built
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12481 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12483 $as_echo "$can_build_shared" >&6; }
12484
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12486 $as_echo_n "checking whether to build shared libraries... " >&6; }
12487 test no = "$can_build_shared" && enable_shared=no
12488
12489 # On AIX, shared libraries and static libraries use the same namespace, and
12490 # are all built from PIC.
12491 case $host_os in
12492 aix3*)
12493 test yes = "$enable_shared" && enable_static=no
12494 if test -n "$RANLIB"; then
12495 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12496 postinstall_cmds='$RANLIB $lib'
12497 fi
12498 ;;
12499
12500 aix[4-9]*)
12501 if test ia64 != "$host_cpu"; then
12502 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12503 yes,aix,yes) ;; # shared object as lib.so file only
12504 yes,svr4,*) ;; # shared object as lib.so archive member only
12505 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12506 esac
12507 fi
12508 ;;
12509 esac
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12511 $as_echo "$enable_shared" >&6; }
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12514 $as_echo_n "checking whether to build static libraries... " >&6; }
12515 # Make sure either enable_shared or enable_static is yes.
12516 test yes = "$enable_shared" || enable_static=yes
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12518 $as_echo "$enable_static" >&6; }
12519
12520
12521
12522
12523 fi
12524 ac_ext=c
12525 ac_cpp='$CPP $CPPFLAGS'
12526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12529
12530 CC=$lt_save_CC
12531
12532 if test -n "$CXX" && ( test no != "$CXX" &&
12533 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12534 (test g++ != "$CXX"))); then
12535 ac_ext=cpp
12536 ac_cpp='$CXXCPP $CPPFLAGS'
12537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12541 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12542 if test -z "$CXXCPP"; then
12543 if ${ac_cv_prog_CXXCPP+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 # Double quotes because CXXCPP needs to be expanded
12547 for CXXCPP in "$CXX -E" "/lib/cpp"
12548 do
12549 ac_preproc_ok=false
12550 for ac_cxx_preproc_warn_flag in '' yes
12551 do
12552 # Use a header file that comes with gcc, so configuring glibc
12553 # with a fresh cross-compiler works.
12554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12555 # <limits.h> exists even on freestanding compilers.
12556 # On the NeXT, cc -E runs the code through the compiler's parser,
12557 # not just through cpp. "Syntax error" is here to catch this case.
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 #ifdef __STDC__
12561 # include <limits.h>
12562 #else
12563 # include <assert.h>
12564 #endif
12565 Syntax error
12566 _ACEOF
12567 if ac_fn_cxx_try_cpp "$LINENO"; then :
12568
12569 else
12570 # Broken: fails on valid input.
12571 continue
12572 fi
12573 rm -f conftest.err conftest.i conftest.$ac_ext
12574
12575 # OK, works on sane cases. Now check whether nonexistent headers
12576 # can be detected and how.
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #include <ac_nonexistent.h>
12580 _ACEOF
12581 if ac_fn_cxx_try_cpp "$LINENO"; then :
12582 # Broken: success on invalid input.
12583 continue
12584 else
12585 # Passes both tests.
12586 ac_preproc_ok=:
12587 break
12588 fi
12589 rm -f conftest.err conftest.i conftest.$ac_ext
12590
12591 done
12592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12593 rm -f conftest.i conftest.err conftest.$ac_ext
12594 if $ac_preproc_ok; then :
12595 break
12596 fi
12597
12598 done
12599 ac_cv_prog_CXXCPP=$CXXCPP
12600
12601 fi
12602 CXXCPP=$ac_cv_prog_CXXCPP
12603 else
12604 ac_cv_prog_CXXCPP=$CXXCPP
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12607 $as_echo "$CXXCPP" >&6; }
12608 ac_preproc_ok=false
12609 for ac_cxx_preproc_warn_flag in '' yes
12610 do
12611 # Use a header file that comes with gcc, so configuring glibc
12612 # with a fresh cross-compiler works.
12613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12614 # <limits.h> exists even on freestanding compilers.
12615 # On the NeXT, cc -E runs the code through the compiler's parser,
12616 # not just through cpp. "Syntax error" is here to catch this case.
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619 #ifdef __STDC__
12620 # include <limits.h>
12621 #else
12622 # include <assert.h>
12623 #endif
12624 Syntax error
12625 _ACEOF
12626 if ac_fn_cxx_try_cpp "$LINENO"; then :
12627
12628 else
12629 # Broken: fails on valid input.
12630 continue
12631 fi
12632 rm -f conftest.err conftest.i conftest.$ac_ext
12633
12634 # OK, works on sane cases. Now check whether nonexistent headers
12635 # can be detected and how.
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12638 #include <ac_nonexistent.h>
12639 _ACEOF
12640 if ac_fn_cxx_try_cpp "$LINENO"; then :
12641 # Broken: success on invalid input.
12642 continue
12643 else
12644 # Passes both tests.
12645 ac_preproc_ok=:
12646 break
12647 fi
12648 rm -f conftest.err conftest.i conftest.$ac_ext
12649
12650 done
12651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12652 rm -f conftest.i conftest.err conftest.$ac_ext
12653 if $ac_preproc_ok; then :
12654
12655 else
12656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12658 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12659 See \`config.log' for more details" "$LINENO" 5; }
12660 fi
12661
12662 ac_ext=c
12663 ac_cpp='$CPP $CPPFLAGS'
12664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12667
12668 else
12669 _lt_caught_CXX_error=yes
12670 fi
12671
12672 ac_ext=cpp
12673 ac_cpp='$CXXCPP $CPPFLAGS'
12674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12677
12678 archive_cmds_need_lc_CXX=no
12679 allow_undefined_flag_CXX=
12680 always_export_symbols_CXX=no
12681 archive_expsym_cmds_CXX=
12682 compiler_needs_object_CXX=no
12683 export_dynamic_flag_spec_CXX=
12684 hardcode_direct_CXX=no
12685 hardcode_direct_absolute_CXX=no
12686 hardcode_libdir_flag_spec_CXX=
12687 hardcode_libdir_separator_CXX=
12688 hardcode_minus_L_CXX=no
12689 hardcode_shlibpath_var_CXX=unsupported
12690 hardcode_automatic_CXX=no
12691 inherit_rpath_CXX=no
12692 module_cmds_CXX=
12693 module_expsym_cmds_CXX=
12694 link_all_deplibs_CXX=unknown
12695 old_archive_cmds_CXX=$old_archive_cmds
12696 reload_flag_CXX=$reload_flag
12697 reload_cmds_CXX=$reload_cmds
12698 no_undefined_flag_CXX=
12699 whole_archive_flag_spec_CXX=
12700 enable_shared_with_static_runtimes_CXX=no
12701
12702 # Source file extension for C++ test sources.
12703 ac_ext=cpp
12704
12705 # Object file extension for compiled C++ test sources.
12706 objext=o
12707 objext_CXX=$objext
12708
12709 # No sense in running all these tests if we already determined that
12710 # the CXX compiler isn't working. Some variables (like enable_shared)
12711 # are currently assumed to apply to all compilers on this platform,
12712 # and will be corrupted by setting them based on a non-working compiler.
12713 if test yes != "$_lt_caught_CXX_error"; then
12714 # Code to be used in simple compile tests
12715 lt_simple_compile_test_code="int some_variable = 0;"
12716
12717 # Code to be used in simple link tests
12718 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12719
12720 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12721
12722
12723
12724
12725
12726
12727 # If no C compiler was specified, use CC.
12728 LTCC=${LTCC-"$CC"}
12729
12730 # If no C compiler flags were specified, use CFLAGS.
12731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12732
12733 # Allow CC to be a program name with arguments.
12734 compiler=$CC
12735
12736
12737 # save warnings/boilerplate of simple test code
12738 ac_outfile=conftest.$ac_objext
12739 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12741 _lt_compiler_boilerplate=`cat conftest.err`
12742 $RM conftest*
12743
12744 ac_outfile=conftest.$ac_objext
12745 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12747 _lt_linker_boilerplate=`cat conftest.err`
12748 $RM -r conftest*
12749
12750
12751 # Allow CC to be a program name with arguments.
12752 lt_save_CC=$CC
12753 lt_save_CFLAGS=$CFLAGS
12754 lt_save_LD=$LD
12755 lt_save_GCC=$GCC
12756 GCC=$GXX
12757 lt_save_with_gnu_ld=$with_gnu_ld
12758 lt_save_path_LD=$lt_cv_path_LD
12759 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12760 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12761 else
12762 $as_unset lt_cv_prog_gnu_ld
12763 fi
12764 if test -n "${lt_cv_path_LDCXX+set}"; then
12765 lt_cv_path_LD=$lt_cv_path_LDCXX
12766 else
12767 $as_unset lt_cv_path_LD
12768 fi
12769 test -z "${LDCXX+set}" || LD=$LDCXX
12770 CC=${CXX-"c++"}
12771 CFLAGS=$CXXFLAGS
12772 compiler=$CC
12773 compiler_CXX=$CC
12774 func_cc_basename $compiler
12775 cc_basename=$func_cc_basename_result
12776
12777
12778 if test -n "$compiler"; then
12779 # We don't want -fno-exception when compiling C++ code, so set the
12780 # no_builtin_flag separately
12781 if test yes = "$GXX"; then
12782 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12783 else
12784 lt_prog_compiler_no_builtin_flag_CXX=
12785 fi
12786
12787 if test yes = "$GXX"; then
12788 # Set up default GNU C++ configuration
12789
12790
12791
12792 # Check whether --with-gnu-ld was given.
12793 if test "${with_gnu_ld+set}" = set; then :
12794 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12795 else
12796 with_gnu_ld=no
12797 fi
12798
12799 ac_prog=ld
12800 if test yes = "$GCC"; then
12801 # Check if gcc -print-prog-name=ld gives a path.
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12803 $as_echo_n "checking for ld used by $CC... " >&6; }
12804 case $host in
12805 *-*-mingw*)
12806 # gcc leaves a trailing carriage return, which upsets mingw
12807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12808 *)
12809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12810 esac
12811 case $ac_prog in
12812 # Accept absolute paths.
12813 [\\/]* | ?:[\\/]*)
12814 re_direlt='/[^/][^/]*/\.\./'
12815 # Canonicalize the pathname of ld
12816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12819 done
12820 test -z "$LD" && LD=$ac_prog
12821 ;;
12822 "")
12823 # If it fails, then pretend we aren't using GCC.
12824 ac_prog=ld
12825 ;;
12826 *)
12827 # If it is relative, then search for the first ld in PATH.
12828 with_gnu_ld=unknown
12829 ;;
12830 esac
12831 elif test yes = "$with_gnu_ld"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12833 $as_echo_n "checking for GNU ld... " >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12836 $as_echo_n "checking for non-GNU ld... " >&6; }
12837 fi
12838 if ${lt_cv_path_LD+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test -z "$LD"; then
12842 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12843 for ac_dir in $PATH; do
12844 IFS=$lt_save_ifs
12845 test -z "$ac_dir" && ac_dir=.
12846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12847 lt_cv_path_LD=$ac_dir/$ac_prog
12848 # Check to see if the program is GNU ld. I'd rather use --version,
12849 # but apparently some variants of GNU ld only accept -v.
12850 # Break only if it was the GNU/non-GNU ld that we prefer.
12851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12852 *GNU* | *'with BFD'*)
12853 test no != "$with_gnu_ld" && break
12854 ;;
12855 *)
12856 test yes != "$with_gnu_ld" && break
12857 ;;
12858 esac
12859 fi
12860 done
12861 IFS=$lt_save_ifs
12862 else
12863 lt_cv_path_LD=$LD # Let the user override the test with a path.
12864 fi
12865 fi
12866
12867 LD=$lt_cv_path_LD
12868 if test -n "$LD"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12870 $as_echo "$LD" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874 fi
12875 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12877 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12878 if ${lt_cv_prog_gnu_ld+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12882 case `$LD -v 2>&1 </dev/null` in
12883 *GNU* | *'with BFD'*)
12884 lt_cv_prog_gnu_ld=yes
12885 ;;
12886 *)
12887 lt_cv_prog_gnu_ld=no
12888 ;;
12889 esac
12890 fi
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12892 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12893 with_gnu_ld=$lt_cv_prog_gnu_ld
12894
12895
12896
12897
12898
12899
12900
12901 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12902 # archiving commands below assume that GNU ld is being used.
12903 if test yes = "$with_gnu_ld"; then
12904 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12905 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'
12906
12907 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12908 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12909
12910 # If archive_cmds runs LD, not CC, wlarc should be empty
12911 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12912 # investigate it a little bit more. (MM)
12913 wlarc='$wl'
12914
12915 # ancient GNU ld didn't support --whole-archive et. al.
12916 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12917 $GREP 'no-whole-archive' > /dev/null; then
12918 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12919 else
12920 whole_archive_flag_spec_CXX=
12921 fi
12922 else
12923 with_gnu_ld=no
12924 wlarc=
12925
12926 # A generic and very simple default shared library creation
12927 # command for GNU C++ for the case where it uses the native
12928 # linker, instead of GNU ld. If possible, this setting should
12929 # overridden to take advantage of the native linker features on
12930 # the platform it is being used on.
12931 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12932 fi
12933
12934 # Commands to make compiler produce verbose output that lists
12935 # what "hidden" libraries, object files and flags are used when
12936 # linking a shared library.
12937 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12938
12939 else
12940 GXX=no
12941 with_gnu_ld=no
12942 wlarc=
12943 fi
12944
12945 # PORTME: fill in a description of your system's C++ link characteristics
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12947 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12948 ld_shlibs_CXX=yes
12949 case $host_os in
12950 aix3*)
12951 # FIXME: insert proper C++ library support
12952 ld_shlibs_CXX=no
12953 ;;
12954 aix[4-9]*)
12955 if test ia64 = "$host_cpu"; then
12956 # On IA64, the linker does run time linking by default, so we don't
12957 # have to do anything special.
12958 aix_use_runtimelinking=no
12959 exp_sym_flag='-Bexport'
12960 no_entry_flag=
12961 else
12962 aix_use_runtimelinking=no
12963
12964 # Test if we are trying to use run time linking or normal
12965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12966 # have runtime linking enabled, and use it for executables.
12967 # For shared libraries, we enable/disable runtime linking
12968 # depending on the kind of the shared library created -
12969 # when "with_aix_soname,aix_use_runtimelinking" is:
12970 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12971 # "aix,yes" lib.so shared, rtl:yes, for executables
12972 # lib.a static archive
12973 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12974 # lib.a(lib.so.V) shared, rtl:no, for executables
12975 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12976 # lib.a(lib.so.V) shared, rtl:no
12977 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12978 # lib.a static archive
12979 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12980 for ld_flag in $LDFLAGS; do
12981 case $ld_flag in
12982 *-brtl*)
12983 aix_use_runtimelinking=yes
12984 break
12985 ;;
12986 esac
12987 done
12988 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12989 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12990 # so we don't have lib.a shared libs to link our executables.
12991 # We have to force runtime linking in this case.
12992 aix_use_runtimelinking=yes
12993 LDFLAGS="$LDFLAGS -Wl,-brtl"
12994 fi
12995 ;;
12996 esac
12997
12998 exp_sym_flag='-bexport'
12999 no_entry_flag='-bnoentry'
13000 fi
13001
13002 # When large executables or shared objects are built, AIX ld can
13003 # have problems creating the table of contents. If linking a library
13004 # or program results in "error TOC overflow" add -mminimal-toc to
13005 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13007
13008 archive_cmds_CXX=''
13009 hardcode_direct_CXX=yes
13010 hardcode_direct_absolute_CXX=yes
13011 hardcode_libdir_separator_CXX=':'
13012 link_all_deplibs_CXX=yes
13013 file_list_spec_CXX='$wl-f,'
13014 case $with_aix_soname,$aix_use_runtimelinking in
13015 aix,*) ;; # no import file
13016 svr4,* | *,yes) # use import file
13017 # The Import File defines what to hardcode.
13018 hardcode_direct_CXX=no
13019 hardcode_direct_absolute_CXX=no
13020 ;;
13021 esac
13022
13023 if test yes = "$GXX"; then
13024 case $host_os in aix4.[012]|aix4.[012].*)
13025 # We only want to do this on AIX 4.2 and lower, the check
13026 # below for broken collect2 doesn't work under 4.3+
13027 collect2name=`$CC -print-prog-name=collect2`
13028 if test -f "$collect2name" &&
13029 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13030 then
13031 # We have reworked collect2
13032 :
13033 else
13034 # We have old collect2
13035 hardcode_direct_CXX=unsupported
13036 # It fails to find uninstalled libraries when the uninstalled
13037 # path is not listed in the libpath. Setting hardcode_minus_L
13038 # to unsupported forces relinking
13039 hardcode_minus_L_CXX=yes
13040 hardcode_libdir_flag_spec_CXX='-L$libdir'
13041 hardcode_libdir_separator_CXX=
13042 fi
13043 esac
13044 shared_flag='-shared'
13045 if test yes = "$aix_use_runtimelinking"; then
13046 shared_flag=$shared_flag' $wl-G'
13047 fi
13048 # Need to ensure runtime linking is disabled for the traditional
13049 # shared library, or the linker may eventually find shared libraries
13050 # /with/ Import File - we do not want to mix them.
13051 shared_flag_aix='-shared'
13052 shared_flag_svr4='-shared $wl-G'
13053 else
13054 # not using gcc
13055 if test ia64 = "$host_cpu"; then
13056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057 # chokes on -Wl,-G. The following line is correct:
13058 shared_flag='-G'
13059 else
13060 if test yes = "$aix_use_runtimelinking"; then
13061 shared_flag='$wl-G'
13062 else
13063 shared_flag='$wl-bM:SRE'
13064 fi
13065 shared_flag_aix='$wl-bM:SRE'
13066 shared_flag_svr4='$wl-G'
13067 fi
13068 fi
13069
13070 export_dynamic_flag_spec_CXX='$wl-bexpall'
13071 # It seems that -bexpall does not export symbols beginning with
13072 # underscore (_), so it is better to generate a list of symbols to
13073 # export.
13074 always_export_symbols_CXX=yes
13075 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13076 # Warning - without using the other runtime loading flags (-brtl),
13077 # -berok will link without error, but may produce a broken library.
13078 # The "-G" linker flag allows undefined symbols.
13079 no_undefined_flag_CXX='-bernotok'
13080 # Determine the default libpath from the value encoded in an empty
13081 # executable.
13082 if test set = "${lt_cv_aix_libpath+set}"; then
13083 aix_libpath=$lt_cv_aix_libpath
13084 else
13085 if ${lt_cv_aix_libpath__CXX+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090
13091 int
13092 main ()
13093 {
13094
13095 ;
13096 return 0;
13097 }
13098 _ACEOF
13099 if ac_fn_cxx_try_link "$LINENO"; then :
13100
13101 lt_aix_libpath_sed='
13102 /Import File Strings/,/^$/ {
13103 /^0/ {
13104 s/^0 *\([^ ]*\) *$/\1/
13105 p
13106 }
13107 }'
13108 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13109 # Check for a 64-bit object if we didn't find anything.
13110 if test -z "$lt_cv_aix_libpath__CXX"; then
13111 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13112 fi
13113 fi
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13116 if test -z "$lt_cv_aix_libpath__CXX"; then
13117 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13118 fi
13119
13120 fi
13121
13122 aix_libpath=$lt_cv_aix_libpath__CXX
13123 fi
13124
13125 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13126
13127 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
13128 else
13129 if test ia64 = "$host_cpu"; then
13130 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13131 allow_undefined_flag_CXX="-z nodefs"
13132 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"
13133 else
13134 # Determine the default libpath from the value encoded in an
13135 # empty executable.
13136 if test set = "${lt_cv_aix_libpath+set}"; then
13137 aix_libpath=$lt_cv_aix_libpath
13138 else
13139 if ${lt_cv_aix_libpath__CXX+:} false; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144
13145 int
13146 main ()
13147 {
13148
13149 ;
13150 return 0;
13151 }
13152 _ACEOF
13153 if ac_fn_cxx_try_link "$LINENO"; then :
13154
13155 lt_aix_libpath_sed='
13156 /Import File Strings/,/^$/ {
13157 /^0/ {
13158 s/^0 *\([^ ]*\) *$/\1/
13159 p
13160 }
13161 }'
13162 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13163 # Check for a 64-bit object if we didn't find anything.
13164 if test -z "$lt_cv_aix_libpath__CXX"; then
13165 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13166 fi
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 if test -z "$lt_cv_aix_libpath__CXX"; then
13171 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13172 fi
13173
13174 fi
13175
13176 aix_libpath=$lt_cv_aix_libpath__CXX
13177 fi
13178
13179 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13180 # Warning - without using the other run time loading flags,
13181 # -berok will link without error, but may produce a broken library.
13182 no_undefined_flag_CXX=' $wl-bernotok'
13183 allow_undefined_flag_CXX=' $wl-berok'
13184 if test yes = "$with_gnu_ld"; then
13185 # We only use this code for GNU lds that support --whole-archive.
13186 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13187 else
13188 # Exported symbols can be pulled into shared objects from archives
13189 whole_archive_flag_spec_CXX='$convenience'
13190 fi
13191 archive_cmds_need_lc_CXX=yes
13192 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13193 # -brtl affects multiple linker settings, -berok does not and is overridden later
13194 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13195 if test svr4 != "$with_aix_soname"; then
13196 # This is similar to how AIX traditionally builds its shared
13197 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13198 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'
13199 fi
13200 if test aix != "$with_aix_soname"; then
13201 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'
13202 else
13203 # used by -dlpreopen to get the symbols
13204 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13205 fi
13206 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13207 fi
13208 fi
13209 ;;
13210
13211 beos*)
13212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13213 allow_undefined_flag_CXX=unsupported
13214 # Joseph Beckenbach <[email protected]> says some releases of gcc
13215 # support --undefined. This deserves some investigation. FIXME
13216 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13217 else
13218 ld_shlibs_CXX=no
13219 fi
13220 ;;
13221
13222 chorus*)
13223 case $cc_basename in
13224 *)
13225 # FIXME: insert proper C++ library support
13226 ld_shlibs_CXX=no
13227 ;;
13228 esac
13229 ;;
13230
13231 cygwin* | mingw* | pw32* | cegcc*)
13232 case $GXX,$cc_basename in
13233 ,cl* | no,cl*)
13234 # Native MSVC
13235 # hardcode_libdir_flag_spec is actually meaningless, as there is
13236 # no search path for DLLs.
13237 hardcode_libdir_flag_spec_CXX=' '
13238 allow_undefined_flag_CXX=unsupported
13239 always_export_symbols_CXX=yes
13240 file_list_spec_CXX='@'
13241 # Tell ltmain to make .lib files, not .a files.
13242 libext=lib
13243 # Tell ltmain to make .dll files, not .so files.
13244 shrext_cmds=.dll
13245 # FIXME: Setting linknames here is a bad hack.
13246 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13247 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13248 cp "$export_symbols" "$output_objdir/$soname.def";
13249 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13250 else
13251 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13252 fi~
13253 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13254 linknames='
13255 # The linker will not automatically build a static lib if we build a DLL.
13256 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13257 enable_shared_with_static_runtimes_CXX=yes
13258 # Don't use ranlib
13259 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13260 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13261 lt_tool_outputfile="@TOOL_OUTPUT@"~
13262 case $lt_outputfile in
13263 *.exe|*.EXE) ;;
13264 *)
13265 lt_outputfile=$lt_outputfile.exe
13266 lt_tool_outputfile=$lt_tool_outputfile.exe
13267 ;;
13268 esac~
13269 func_to_tool_file "$lt_outputfile"~
13270 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13271 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13272 $RM "$lt_outputfile.manifest";
13273 fi'
13274 ;;
13275 *)
13276 # g++
13277 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13278 # as there is no search path for DLLs.
13279 hardcode_libdir_flag_spec_CXX='-L$libdir'
13280 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13281 allow_undefined_flag_CXX=unsupported
13282 always_export_symbols_CXX=no
13283 enable_shared_with_static_runtimes_CXX=yes
13284
13285 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13286 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'
13287 # If the export-symbols file already is a .def file, use it as
13288 # is; otherwise, prepend EXPORTS...
13289 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13290 cp $export_symbols $output_objdir/$soname.def;
13291 else
13292 echo EXPORTS > $output_objdir/$soname.def;
13293 cat $export_symbols >> $output_objdir/$soname.def;
13294 fi~
13295 $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'
13296 else
13297 ld_shlibs_CXX=no
13298 fi
13299 ;;
13300 esac
13301 ;;
13302 darwin* | rhapsody*)
13303
13304
13305 archive_cmds_need_lc_CXX=no
13306 hardcode_direct_CXX=no
13307 hardcode_automatic_CXX=yes
13308 hardcode_shlibpath_var_CXX=unsupported
13309 if test yes = "$lt_cv_ld_force_load"; then
13310 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\"`'
13311
13312 else
13313 whole_archive_flag_spec_CXX=''
13314 fi
13315 link_all_deplibs_CXX=yes
13316 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13317 case $cc_basename in
13318 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13319 *) _lt_dar_can_shared=$GCC ;;
13320 esac
13321 if test yes = "$_lt_dar_can_shared"; then
13322 output_verbose_link_cmd=func_echo_all
13323 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"
13324 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13325 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"
13326 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"
13327 if test yes != "$lt_cv_apple_cc_single_mod"; then
13328 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"
13329 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"
13330 fi
13331
13332 else
13333 ld_shlibs_CXX=no
13334 fi
13335
13336 ;;
13337
13338 os2*)
13339 hardcode_libdir_flag_spec_CXX='-L$libdir'
13340 hardcode_minus_L_CXX=yes
13341 allow_undefined_flag_CXX=unsupported
13342 shrext_cmds=.dll
13343 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13344 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13345 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13346 $ECHO EXPORTS >> $output_objdir/$libname.def~
13347 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13348 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13349 emximp -o $lib $output_objdir/$libname.def'
13350 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13351 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13352 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13353 $ECHO EXPORTS >> $output_objdir/$libname.def~
13354 prefix_cmds="$SED"~
13355 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13356 prefix_cmds="$prefix_cmds -e 1d";
13357 fi~
13358 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13359 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13360 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13361 emximp -o $lib $output_objdir/$libname.def'
13362 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13363 enable_shared_with_static_runtimes_CXX=yes
13364 ;;
13365
13366 dgux*)
13367 case $cc_basename in
13368 ec++*)
13369 # FIXME: insert proper C++ library support
13370 ld_shlibs_CXX=no
13371 ;;
13372 ghcx*)
13373 # Green Hills C++ Compiler
13374 # FIXME: insert proper C++ library support
13375 ld_shlibs_CXX=no
13376 ;;
13377 *)
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13380 ;;
13381 esac
13382 ;;
13383
13384 freebsd2.*)
13385 # C++ shared libraries reported to be fairly broken before
13386 # switch to ELF
13387 ld_shlibs_CXX=no
13388 ;;
13389
13390 freebsd-elf*)
13391 archive_cmds_need_lc_CXX=no
13392 ;;
13393
13394 freebsd* | dragonfly*)
13395 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13396 # conventions
13397 ld_shlibs_CXX=yes
13398 ;;
13399
13400 haiku*)
13401 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13402 link_all_deplibs_CXX=yes
13403 ;;
13404
13405 hpux9*)
13406 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13407 hardcode_libdir_separator_CXX=:
13408 export_dynamic_flag_spec_CXX='$wl-E'
13409 hardcode_direct_CXX=yes
13410 hardcode_minus_L_CXX=yes # Not in the search PATH,
13411 # but as the default
13412 # location of the library.
13413
13414 case $cc_basename in
13415 CC*)
13416 # FIXME: insert proper C++ library support
13417 ld_shlibs_CXX=no
13418 ;;
13419 aCC*)
13420 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'
13421 # Commands to make compiler produce verbose output that lists
13422 # what "hidden" libraries, object files and flags are used when
13423 # linking a shared library.
13424 #
13425 # There doesn't appear to be a way to prevent this compiler from
13426 # explicitly linking system object files so we need to strip them
13427 # from the output so that they don't get included in the library
13428 # dependencies.
13429 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"'
13430 ;;
13431 *)
13432 if test yes = "$GXX"; then
13433 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'
13434 else
13435 # FIXME: insert proper C++ library support
13436 ld_shlibs_CXX=no
13437 fi
13438 ;;
13439 esac
13440 ;;
13441
13442 hpux10*|hpux11*)
13443 if test no = "$with_gnu_ld"; then
13444 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13445 hardcode_libdir_separator_CXX=:
13446
13447 case $host_cpu in
13448 hppa*64*|ia64*)
13449 ;;
13450 *)
13451 export_dynamic_flag_spec_CXX='$wl-E'
13452 ;;
13453 esac
13454 fi
13455 case $host_cpu in
13456 hppa*64*|ia64*)
13457 hardcode_direct_CXX=no
13458 hardcode_shlibpath_var_CXX=no
13459 ;;
13460 *)
13461 hardcode_direct_CXX=yes
13462 hardcode_direct_absolute_CXX=yes
13463 hardcode_minus_L_CXX=yes # Not in the search PATH,
13464 # but as the default
13465 # location of the library.
13466 ;;
13467 esac
13468
13469 case $cc_basename in
13470 CC*)
13471 # FIXME: insert proper C++ library support
13472 ld_shlibs_CXX=no
13473 ;;
13474 aCC*)
13475 case $host_cpu in
13476 hppa*64*)
13477 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13478 ;;
13479 ia64*)
13480 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13481 ;;
13482 *)
13483 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13484 ;;
13485 esac
13486 # Commands to make compiler produce verbose output that lists
13487 # what "hidden" libraries, object files and flags are used when
13488 # linking a shared library.
13489 #
13490 # There doesn't appear to be a way to prevent this compiler from
13491 # explicitly linking system object files so we need to strip them
13492 # from the output so that they don't get included in the library
13493 # dependencies.
13494 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"'
13495 ;;
13496 *)
13497 if test yes = "$GXX"; then
13498 if test no = "$with_gnu_ld"; then
13499 case $host_cpu in
13500 hppa*64*)
13501 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13502 ;;
13503 ia64*)
13504 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13505 ;;
13506 *)
13507 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'
13508 ;;
13509 esac
13510 fi
13511 else
13512 # FIXME: insert proper C++ library support
13513 ld_shlibs_CXX=no
13514 fi
13515 ;;
13516 esac
13517 ;;
13518
13519 interix[3-9]*)
13520 hardcode_direct_CXX=no
13521 hardcode_shlibpath_var_CXX=no
13522 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13523 export_dynamic_flag_spec_CXX='$wl-E'
13524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13525 # Instead, shared libraries are loaded at an image base (0x10000000 by
13526 # default) and relocated if they conflict, which is a slow very memory
13527 # consuming and fragmenting process. To avoid this, we pick a random,
13528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13530 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'
13531 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'
13532 ;;
13533 irix5* | irix6*)
13534 case $cc_basename in
13535 CC*)
13536 # SGI C++
13537 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'
13538
13539 # Archives containing C++ object files must be created using
13540 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13541 # necessary to make sure instantiated templates are included
13542 # in the archive.
13543 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13544 ;;
13545 *)
13546 if test yes = "$GXX"; then
13547 if test no = "$with_gnu_ld"; then
13548 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'
13549 else
13550 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'
13551 fi
13552 fi
13553 link_all_deplibs_CXX=yes
13554 ;;
13555 esac
13556 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13557 hardcode_libdir_separator_CXX=:
13558 inherit_rpath_CXX=yes
13559 ;;
13560
13561 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13562 case $cc_basename in
13563 KCC*)
13564 # Kuck and Associates, Inc. (KAI) C++ Compiler
13565
13566 # KCC will only create a shared library if the output file
13567 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13568 # to its proper name (with version) after linking.
13569 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'
13570 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'
13571 # Commands to make compiler produce verbose output that lists
13572 # what "hidden" libraries, object files and flags are used when
13573 # linking a shared library.
13574 #
13575 # There doesn't appear to be a way to prevent this compiler from
13576 # explicitly linking system object files so we need to strip them
13577 # from the output so that they don't get included in the library
13578 # dependencies.
13579 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"'
13580
13581 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13582 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13583
13584 # Archives containing C++ object files must be created using
13585 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13586 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13587 ;;
13588 icpc* | ecpc* )
13589 # Intel C++
13590 with_gnu_ld=yes
13591 # version 8.0 and above of icpc choke on multiply defined symbols
13592 # if we add $predep_objects and $postdep_objects, however 7.1 and
13593 # earlier do not add the objects themselves.
13594 case `$CC -V 2>&1` in
13595 *"Version 7."*)
13596 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13597 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'
13598 ;;
13599 *) # Version 8.0 or newer
13600 tmp_idyn=
13601 case $host_cpu in
13602 ia64*) tmp_idyn=' -i_dynamic';;
13603 esac
13604 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13605 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'
13606 ;;
13607 esac
13608 archive_cmds_need_lc_CXX=no
13609 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13610 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13611 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13612 ;;
13613 pgCC* | pgcpp*)
13614 # Portland Group C++ compiler
13615 case `$CC -V` in
13616 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13617 prelink_cmds_CXX='tpldir=Template.dir~
13618 rm -rf $tpldir~
13619 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13620 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13621 old_archive_cmds_CXX='tpldir=Template.dir~
13622 rm -rf $tpldir~
13623 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13624 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13625 $RANLIB $oldlib'
13626 archive_cmds_CXX='tpldir=Template.dir~
13627 rm -rf $tpldir~
13628 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13629 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13630 archive_expsym_cmds_CXX='tpldir=Template.dir~
13631 rm -rf $tpldir~
13632 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13633 $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'
13634 ;;
13635 *) # Version 6 and above use weak symbols
13636 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13637 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'
13638 ;;
13639 esac
13640
13641 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13642 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13643 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'
13644 ;;
13645 cxx*)
13646 # Compaq C++
13647 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13648 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'
13649
13650 runpath_var=LD_RUN_PATH
13651 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13652 hardcode_libdir_separator_CXX=:
13653
13654 # Commands to make compiler produce verbose output that lists
13655 # what "hidden" libraries, object files and flags are used when
13656 # linking a shared library.
13657 #
13658 # There doesn't appear to be a way to prevent this compiler from
13659 # explicitly linking system object files so we need to strip them
13660 # from the output so that they don't get included in the library
13661 # dependencies.
13662 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'
13663 ;;
13664 xl* | mpixl* | bgxl*)
13665 # IBM XL 8.0 on PPC, with GNU ld
13666 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13667 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13668 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13669 if test yes = "$supports_anon_versioning"; then
13670 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13672 echo "local: *; };" >> $output_objdir/$libname.ver~
13673 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13674 fi
13675 ;;
13676 *)
13677 case `$CC -V 2>&1 | sed 5q` in
13678 *Sun\ C*)
13679 # Sun C++ 5.9
13680 no_undefined_flag_CXX=' -zdefs'
13681 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13682 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'
13683 hardcode_libdir_flag_spec_CXX='-R$libdir'
13684 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'
13685 compiler_needs_object_CXX=yes
13686
13687 # Not sure whether something based on
13688 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13689 # would be better.
13690 output_verbose_link_cmd='func_echo_all'
13691
13692 # Archives containing C++ object files must be created using
13693 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13694 # necessary to make sure instantiated templates are included
13695 # in the archive.
13696 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13697 ;;
13698 esac
13699 ;;
13700 esac
13701 ;;
13702
13703 lynxos*)
13704 # FIXME: insert proper C++ library support
13705 ld_shlibs_CXX=no
13706 ;;
13707
13708 m88k*)
13709 # FIXME: insert proper C++ library support
13710 ld_shlibs_CXX=no
13711 ;;
13712
13713 mvs*)
13714 case $cc_basename in
13715 cxx*)
13716 # FIXME: insert proper C++ library support
13717 ld_shlibs_CXX=no
13718 ;;
13719 *)
13720 # FIXME: insert proper C++ library support
13721 ld_shlibs_CXX=no
13722 ;;
13723 esac
13724 ;;
13725
13726 netbsd*)
13727 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13728 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13729 wlarc=
13730 hardcode_libdir_flag_spec_CXX='-R$libdir'
13731 hardcode_direct_CXX=yes
13732 hardcode_shlibpath_var_CXX=no
13733 fi
13734 # Workaround some broken pre-1.5 toolchains
13735 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13736 ;;
13737
13738 *nto* | *qnx*)
13739 ld_shlibs_CXX=yes
13740 ;;
13741
13742 openbsd* | bitrig*)
13743 if test -f /usr/libexec/ld.so; then
13744 hardcode_direct_CXX=yes
13745 hardcode_shlibpath_var_CXX=no
13746 hardcode_direct_absolute_CXX=yes
13747 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13748 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13750 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13751 export_dynamic_flag_spec_CXX='$wl-E'
13752 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13753 fi
13754 output_verbose_link_cmd=func_echo_all
13755 else
13756 ld_shlibs_CXX=no
13757 fi
13758 ;;
13759
13760 osf3* | osf4* | osf5*)
13761 case $cc_basename in
13762 KCC*)
13763 # Kuck and Associates, Inc. (KAI) C++ Compiler
13764
13765 # KCC will only create a shared library if the output file
13766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13767 # to its proper name (with version) after linking.
13768 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'
13769
13770 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13771 hardcode_libdir_separator_CXX=:
13772
13773 # Archives containing C++ object files must be created using
13774 # the KAI C++ compiler.
13775 case $host in
13776 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13777 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13778 esac
13779 ;;
13780 RCC*)
13781 # Rational C++ 2.4.1
13782 # FIXME: insert proper C++ library support
13783 ld_shlibs_CXX=no
13784 ;;
13785 cxx*)
13786 case $host in
13787 osf3*)
13788 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13789 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'
13790 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13791 ;;
13792 *)
13793 allow_undefined_flag_CXX=' -expect_unresolved \*'
13794 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'
13795 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13796 echo "-hidden">> $lib.exp~
13797 $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~
13798 $RM $lib.exp'
13799 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13800 ;;
13801 esac
13802
13803 hardcode_libdir_separator_CXX=:
13804
13805 # Commands to make compiler produce verbose output that lists
13806 # what "hidden" libraries, object files and flags are used when
13807 # linking a shared library.
13808 #
13809 # There doesn't appear to be a way to prevent this compiler from
13810 # explicitly linking system object files so we need to strip them
13811 # from the output so that they don't get included in the library
13812 # dependencies.
13813 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"'
13814 ;;
13815 *)
13816 if test yes,no = "$GXX,$with_gnu_ld"; then
13817 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13818 case $host in
13819 osf3*)
13820 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'
13821 ;;
13822 *)
13823 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'
13824 ;;
13825 esac
13826
13827 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13828 hardcode_libdir_separator_CXX=:
13829
13830 # Commands to make compiler produce verbose output that lists
13831 # what "hidden" libraries, object files and flags are used when
13832 # linking a shared library.
13833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13834
13835 else
13836 # FIXME: insert proper C++ library support
13837 ld_shlibs_CXX=no
13838 fi
13839 ;;
13840 esac
13841 ;;
13842
13843 psos*)
13844 # FIXME: insert proper C++ library support
13845 ld_shlibs_CXX=no
13846 ;;
13847
13848 sunos4*)
13849 case $cc_basename in
13850 CC*)
13851 # Sun C++ 4.x
13852 # FIXME: insert proper C++ library support
13853 ld_shlibs_CXX=no
13854 ;;
13855 lcc*)
13856 # Lucid
13857 # FIXME: insert proper C++ library support
13858 ld_shlibs_CXX=no
13859 ;;
13860 *)
13861 # FIXME: insert proper C++ library support
13862 ld_shlibs_CXX=no
13863 ;;
13864 esac
13865 ;;
13866
13867 solaris*)
13868 case $cc_basename in
13869 CC* | sunCC*)
13870 # Sun C++ 4.2, 5.x and Centerline C++
13871 archive_cmds_need_lc_CXX=yes
13872 no_undefined_flag_CXX=' -zdefs'
13873 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13874 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13875 $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'
13876
13877 hardcode_libdir_flag_spec_CXX='-R$libdir'
13878 hardcode_shlibpath_var_CXX=no
13879 case $host_os in
13880 solaris2.[0-5] | solaris2.[0-5].*) ;;
13881 *)
13882 # The compiler driver will combine and reorder linker options,
13883 # but understands '-z linker_flag'.
13884 # Supported since Solaris 2.6 (maybe 2.5.1?)
13885 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13886 ;;
13887 esac
13888 link_all_deplibs_CXX=yes
13889
13890 output_verbose_link_cmd='func_echo_all'
13891
13892 # Archives containing C++ object files must be created using
13893 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13894 # necessary to make sure instantiated templates are included
13895 # in the archive.
13896 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13897 ;;
13898 gcx*)
13899 # Green Hills C++ Compiler
13900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13901
13902 # The C++ compiler must be used to create the archive.
13903 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13904 ;;
13905 *)
13906 # GNU C++ compiler with Solaris linker
13907 if test yes,no = "$GXX,$with_gnu_ld"; then
13908 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13909 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13910 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13911 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13912 $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'
13913
13914 # Commands to make compiler produce verbose output that lists
13915 # what "hidden" libraries, object files and flags are used when
13916 # linking a shared library.
13917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13918 else
13919 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13920 # platform.
13921 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13922 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13923 $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'
13924
13925 # Commands to make compiler produce verbose output that lists
13926 # what "hidden" libraries, object files and flags are used when
13927 # linking a shared library.
13928 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13929 fi
13930
13931 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13932 case $host_os in
13933 solaris2.[0-5] | solaris2.[0-5].*) ;;
13934 *)
13935 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13936 ;;
13937 esac
13938 fi
13939 ;;
13940 esac
13941 ;;
13942
13943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13944 no_undefined_flag_CXX='$wl-z,text'
13945 archive_cmds_need_lc_CXX=no
13946 hardcode_shlibpath_var_CXX=no
13947 runpath_var='LD_RUN_PATH'
13948
13949 case $cc_basename in
13950 CC*)
13951 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13953 ;;
13954 *)
13955 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13957 ;;
13958 esac
13959 ;;
13960
13961 sysv5* | sco3.2v5* | sco5v6*)
13962 # Note: We CANNOT use -z defs as we might desire, because we do not
13963 # link with -lc, and that would cause any symbols used from libc to
13964 # always be unresolved, which means just about no library would
13965 # ever link correctly. If we're not using GNU ld we use -z text
13966 # though, which does catch some bad symbols but isn't as heavy-handed
13967 # as -z defs.
13968 no_undefined_flag_CXX='$wl-z,text'
13969 allow_undefined_flag_CXX='$wl-z,nodefs'
13970 archive_cmds_need_lc_CXX=no
13971 hardcode_shlibpath_var_CXX=no
13972 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13973 hardcode_libdir_separator_CXX=':'
13974 link_all_deplibs_CXX=yes
13975 export_dynamic_flag_spec_CXX='$wl-Bexport'
13976 runpath_var='LD_RUN_PATH'
13977
13978 case $cc_basename in
13979 CC*)
13980 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13981 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13982 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13983 '"$old_archive_cmds_CXX"
13984 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13985 '"$reload_cmds_CXX"
13986 ;;
13987 *)
13988 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13989 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13990 ;;
13991 esac
13992 ;;
13993
13994 tandem*)
13995 case $cc_basename in
13996 NCC*)
13997 # NonStop-UX NCC 3.20
13998 # FIXME: insert proper C++ library support
13999 ld_shlibs_CXX=no
14000 ;;
14001 *)
14002 # FIXME: insert proper C++ library support
14003 ld_shlibs_CXX=no
14004 ;;
14005 esac
14006 ;;
14007
14008 vxworks*)
14009 # FIXME: insert proper C++ library support
14010 ld_shlibs_CXX=no
14011 ;;
14012
14013 *)
14014 # FIXME: insert proper C++ library support
14015 ld_shlibs_CXX=no
14016 ;;
14017 esac
14018
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14020 $as_echo "$ld_shlibs_CXX" >&6; }
14021 test no = "$ld_shlibs_CXX" && can_build_shared=no
14022
14023 GCC_CXX=$GXX
14024 LD_CXX=$LD
14025
14026 ## CAVEAT EMPTOR:
14027 ## There is no encapsulation within the following macros, do not change
14028 ## the running order or otherwise move them around unless you know exactly
14029 ## what you are doing...
14030 # Dependencies to place before and after the object being linked:
14031 predep_objects_CXX=
14032 postdep_objects_CXX=
14033 predeps_CXX=
14034 postdeps_CXX=
14035 compiler_lib_search_path_CXX=
14036
14037 cat > conftest.$ac_ext <<_LT_EOF
14038 class Foo
14039 {
14040 public:
14041 Foo (void) { a = 0; }
14042 private:
14043 int a;
14044 };
14045 _LT_EOF
14046
14047
14048 _lt_libdeps_save_CFLAGS=$CFLAGS
14049 case "$CC $CFLAGS " in #(
14050 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14051 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14052 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14053 esac
14054
14055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14056 (eval $ac_compile) 2>&5
14057 ac_status=$?
14058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14059 test $ac_status = 0; }; then
14060 # Parse the compiler output and extract the necessary
14061 # objects, libraries and library flags.
14062
14063 # Sentinel used to keep track of whether or not we are before
14064 # the conftest object file.
14065 pre_test_object_deps_done=no
14066
14067 for p in `eval "$output_verbose_link_cmd"`; do
14068 case $prev$p in
14069
14070 -L* | -R* | -l*)
14071 # Some compilers place space between "-{L,R}" and the path.
14072 # Remove the space.
14073 if test x-L = "$p" ||
14074 test x-R = "$p"; then
14075 prev=$p
14076 continue
14077 fi
14078
14079 # Expand the sysroot to ease extracting the directories later.
14080 if test -z "$prev"; then
14081 case $p in
14082 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14083 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14084 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14085 esac
14086 fi
14087 case $p in
14088 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14089 esac
14090 if test no = "$pre_test_object_deps_done"; then
14091 case $prev in
14092 -L | -R)
14093 # Internal compiler library paths should come after those
14094 # provided the user. The postdeps already come after the
14095 # user supplied libs so there is no need to process them.
14096 if test -z "$compiler_lib_search_path_CXX"; then
14097 compiler_lib_search_path_CXX=$prev$p
14098 else
14099 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14100 fi
14101 ;;
14102 # The "-l" case would never come before the object being
14103 # linked, so don't bother handling this case.
14104 esac
14105 else
14106 if test -z "$postdeps_CXX"; then
14107 postdeps_CXX=$prev$p
14108 else
14109 postdeps_CXX="${postdeps_CXX} $prev$p"
14110 fi
14111 fi
14112 prev=
14113 ;;
14114
14115 *.lto.$objext) ;; # Ignore GCC LTO objects
14116 *.$objext)
14117 # This assumes that the test object file only shows up
14118 # once in the compiler output.
14119 if test "$p" = "conftest.$objext"; then
14120 pre_test_object_deps_done=yes
14121 continue
14122 fi
14123
14124 if test no = "$pre_test_object_deps_done"; then
14125 if test -z "$predep_objects_CXX"; then
14126 predep_objects_CXX=$p
14127 else
14128 predep_objects_CXX="$predep_objects_CXX $p"
14129 fi
14130 else
14131 if test -z "$postdep_objects_CXX"; then
14132 postdep_objects_CXX=$p
14133 else
14134 postdep_objects_CXX="$postdep_objects_CXX $p"
14135 fi
14136 fi
14137 ;;
14138
14139 *) ;; # Ignore the rest.
14140
14141 esac
14142 done
14143
14144 # Clean up.
14145 rm -f a.out a.exe
14146 else
14147 echo "libtool.m4: error: problem compiling CXX test program"
14148 fi
14149
14150 $RM -f confest.$objext
14151 CFLAGS=$_lt_libdeps_save_CFLAGS
14152
14153 # PORTME: override above test on systems where it is broken
14154 case $host_os in
14155 interix[3-9]*)
14156 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14157 # hack all around it, let's just trust "g++" to DTRT.
14158 predep_objects_CXX=
14159 postdep_objects_CXX=
14160 postdeps_CXX=
14161 ;;
14162 esac
14163
14164
14165 case " $postdeps_CXX " in
14166 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14167 esac
14168 compiler_lib_search_dirs_CXX=
14169 if test -n "${compiler_lib_search_path_CXX}"; then
14170 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14171 fi
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203 lt_prog_compiler_wl_CXX=
14204 lt_prog_compiler_pic_CXX=
14205 lt_prog_compiler_static_CXX=
14206
14207
14208 # C++ specific cases for pic, static, wl, etc.
14209 if test yes = "$GXX"; then
14210 lt_prog_compiler_wl_CXX='-Wl,'
14211 lt_prog_compiler_static_CXX='-static'
14212
14213 case $host_os in
14214 aix*)
14215 # All AIX code is PIC.
14216 if test ia64 = "$host_cpu"; then
14217 # AIX 5 now supports IA64 processor
14218 lt_prog_compiler_static_CXX='-Bstatic'
14219 fi
14220 lt_prog_compiler_pic_CXX='-fPIC'
14221 ;;
14222
14223 amigaos*)
14224 case $host_cpu in
14225 powerpc)
14226 # see comment about AmigaOS4 .so support
14227 lt_prog_compiler_pic_CXX='-fPIC'
14228 ;;
14229 m68k)
14230 # FIXME: we need at least 68020 code to build shared libraries, but
14231 # adding the '-m68020' flag to GCC prevents building anything better,
14232 # like '-m68040'.
14233 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14234 ;;
14235 esac
14236 ;;
14237
14238 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14239 # PIC is the default for these OSes.
14240 ;;
14241 mingw* | cygwin* | os2* | pw32* | cegcc*)
14242 # This hack is so that the source file can tell whether it is being
14243 # built for inclusion in a dll (and should export symbols for example).
14244 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14245 # (--disable-auto-import) libraries
14246 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14247 case $host_os in
14248 os2*)
14249 lt_prog_compiler_static_CXX='$wl-static'
14250 ;;
14251 esac
14252 ;;
14253 darwin* | rhapsody*)
14254 # PIC is the default on this platform
14255 # Common symbols not allowed in MH_DYLIB files
14256 lt_prog_compiler_pic_CXX='-fno-common'
14257 ;;
14258 *djgpp*)
14259 # DJGPP does not support shared libraries at all
14260 lt_prog_compiler_pic_CXX=
14261 ;;
14262 haiku*)
14263 # PIC is the default for Haiku.
14264 # The "-static" flag exists, but is broken.
14265 lt_prog_compiler_static_CXX=
14266 ;;
14267 interix[3-9]*)
14268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14269 # Instead, we relocate shared libraries at runtime.
14270 ;;
14271 sysv4*MP*)
14272 if test -d /usr/nec; then
14273 lt_prog_compiler_pic_CXX=-Kconform_pic
14274 fi
14275 ;;
14276 hpux*)
14277 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14278 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14279 # sets the default TLS model and affects inlining.
14280 case $host_cpu in
14281 hppa*64*)
14282 ;;
14283 *)
14284 lt_prog_compiler_pic_CXX='-fPIC'
14285 ;;
14286 esac
14287 ;;
14288 *qnx* | *nto*)
14289 # QNX uses GNU C++, but need to define -shared option too, otherwise
14290 # it will coredump.
14291 lt_prog_compiler_pic_CXX='-fPIC -shared'
14292 ;;
14293 *)
14294 lt_prog_compiler_pic_CXX='-fPIC'
14295 ;;
14296 esac
14297 else
14298 case $host_os in
14299 aix[4-9]*)
14300 # All AIX code is PIC.
14301 if test ia64 = "$host_cpu"; then
14302 # AIX 5 now supports IA64 processor
14303 lt_prog_compiler_static_CXX='-Bstatic'
14304 else
14305 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14306 fi
14307 ;;
14308 chorus*)
14309 case $cc_basename in
14310 cxch68*)
14311 # Green Hills C++ Compiler
14312 # _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"
14313 ;;
14314 esac
14315 ;;
14316 mingw* | cygwin* | os2* | pw32* | cegcc*)
14317 # This hack is so that the source file can tell whether it is being
14318 # built for inclusion in a dll (and should export symbols for example).
14319 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14320 ;;
14321 dgux*)
14322 case $cc_basename in
14323 ec++*)
14324 lt_prog_compiler_pic_CXX='-KPIC'
14325 ;;
14326 ghcx*)
14327 # Green Hills C++ Compiler
14328 lt_prog_compiler_pic_CXX='-pic'
14329 ;;
14330 *)
14331 ;;
14332 esac
14333 ;;
14334 freebsd* | dragonfly*)
14335 # FreeBSD uses GNU C++
14336 ;;
14337 hpux9* | hpux10* | hpux11*)
14338 case $cc_basename in
14339 CC*)
14340 lt_prog_compiler_wl_CXX='-Wl,'
14341 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14342 if test ia64 != "$host_cpu"; then
14343 lt_prog_compiler_pic_CXX='+Z'
14344 fi
14345 ;;
14346 aCC*)
14347 lt_prog_compiler_wl_CXX='-Wl,'
14348 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14349 case $host_cpu in
14350 hppa*64*|ia64*)
14351 # +Z the default
14352 ;;
14353 *)
14354 lt_prog_compiler_pic_CXX='+Z'
14355 ;;
14356 esac
14357 ;;
14358 *)
14359 ;;
14360 esac
14361 ;;
14362 interix*)
14363 # This is c89, which is MS Visual C++ (no shared libs)
14364 # Anyone wants to do a port?
14365 ;;
14366 irix5* | irix6* | nonstopux*)
14367 case $cc_basename in
14368 CC*)
14369 lt_prog_compiler_wl_CXX='-Wl,'
14370 lt_prog_compiler_static_CXX='-non_shared'
14371 # CC pic flag -KPIC is the default.
14372 ;;
14373 *)
14374 ;;
14375 esac
14376 ;;
14377 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14378 case $cc_basename in
14379 KCC*)
14380 # KAI C++ Compiler
14381 lt_prog_compiler_wl_CXX='--backend -Wl,'
14382 lt_prog_compiler_pic_CXX='-fPIC'
14383 ;;
14384 ecpc* )
14385 # old Intel C++ for x86_64, which still supported -KPIC.
14386 lt_prog_compiler_wl_CXX='-Wl,'
14387 lt_prog_compiler_pic_CXX='-KPIC'
14388 lt_prog_compiler_static_CXX='-static'
14389 ;;
14390 icpc* )
14391 # Intel C++, used to be incompatible with GCC.
14392 # ICC 10 doesn't accept -KPIC any more.
14393 lt_prog_compiler_wl_CXX='-Wl,'
14394 lt_prog_compiler_pic_CXX='-fPIC'
14395 lt_prog_compiler_static_CXX='-static'
14396 ;;
14397 pgCC* | pgcpp*)
14398 # Portland Group C++ compiler
14399 lt_prog_compiler_wl_CXX='-Wl,'
14400 lt_prog_compiler_pic_CXX='-fpic'
14401 lt_prog_compiler_static_CXX='-Bstatic'
14402 ;;
14403 cxx*)
14404 # Compaq C++
14405 # Make sure the PIC flag is empty. It appears that all Alpha
14406 # Linux and Compaq Tru64 Unix objects are PIC.
14407 lt_prog_compiler_pic_CXX=
14408 lt_prog_compiler_static_CXX='-non_shared'
14409 ;;
14410 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14411 # IBM XL 8.0, 9.0 on PPC and BlueGene
14412 lt_prog_compiler_wl_CXX='-Wl,'
14413 lt_prog_compiler_pic_CXX='-qpic'
14414 lt_prog_compiler_static_CXX='-qstaticlink'
14415 ;;
14416 *)
14417 case `$CC -V 2>&1 | sed 5q` in
14418 *Sun\ C*)
14419 # Sun C++ 5.9
14420 lt_prog_compiler_pic_CXX='-KPIC'
14421 lt_prog_compiler_static_CXX='-Bstatic'
14422 lt_prog_compiler_wl_CXX='-Qoption ld '
14423 ;;
14424 esac
14425 ;;
14426 esac
14427 ;;
14428 lynxos*)
14429 ;;
14430 m88k*)
14431 ;;
14432 mvs*)
14433 case $cc_basename in
14434 cxx*)
14435 lt_prog_compiler_pic_CXX='-W c,exportall'
14436 ;;
14437 *)
14438 ;;
14439 esac
14440 ;;
14441 netbsd* | netbsdelf*-gnu)
14442 ;;
14443 *qnx* | *nto*)
14444 # QNX uses GNU C++, but need to define -shared option too, otherwise
14445 # it will coredump.
14446 lt_prog_compiler_pic_CXX='-fPIC -shared'
14447 ;;
14448 osf3* | osf4* | osf5*)
14449 case $cc_basename in
14450 KCC*)
14451 lt_prog_compiler_wl_CXX='--backend -Wl,'
14452 ;;
14453 RCC*)
14454 # Rational C++ 2.4.1
14455 lt_prog_compiler_pic_CXX='-pic'
14456 ;;
14457 cxx*)
14458 # Digital/Compaq C++
14459 lt_prog_compiler_wl_CXX='-Wl,'
14460 # Make sure the PIC flag is empty. It appears that all Alpha
14461 # Linux and Compaq Tru64 Unix objects are PIC.
14462 lt_prog_compiler_pic_CXX=
14463 lt_prog_compiler_static_CXX='-non_shared'
14464 ;;
14465 *)
14466 ;;
14467 esac
14468 ;;
14469 psos*)
14470 ;;
14471 solaris*)
14472 case $cc_basename in
14473 CC* | sunCC*)
14474 # Sun C++ 4.2, 5.x and Centerline C++
14475 lt_prog_compiler_pic_CXX='-KPIC'
14476 lt_prog_compiler_static_CXX='-Bstatic'
14477 lt_prog_compiler_wl_CXX='-Qoption ld '
14478 ;;
14479 gcx*)
14480 # Green Hills C++ Compiler
14481 lt_prog_compiler_pic_CXX='-PIC'
14482 ;;
14483 *)
14484 ;;
14485 esac
14486 ;;
14487 sunos4*)
14488 case $cc_basename in
14489 CC*)
14490 # Sun C++ 4.x
14491 lt_prog_compiler_pic_CXX='-pic'
14492 lt_prog_compiler_static_CXX='-Bstatic'
14493 ;;
14494 lcc*)
14495 # Lucid
14496 lt_prog_compiler_pic_CXX='-pic'
14497 ;;
14498 *)
14499 ;;
14500 esac
14501 ;;
14502 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14503 case $cc_basename in
14504 CC*)
14505 lt_prog_compiler_wl_CXX='-Wl,'
14506 lt_prog_compiler_pic_CXX='-KPIC'
14507 lt_prog_compiler_static_CXX='-Bstatic'
14508 ;;
14509 esac
14510 ;;
14511 tandem*)
14512 case $cc_basename in
14513 NCC*)
14514 # NonStop-UX NCC 3.20
14515 lt_prog_compiler_pic_CXX='-KPIC'
14516 ;;
14517 *)
14518 ;;
14519 esac
14520 ;;
14521 vxworks*)
14522 ;;
14523 *)
14524 lt_prog_compiler_can_build_shared_CXX=no
14525 ;;
14526 esac
14527 fi
14528
14529 case $host_os in
14530 # For platforms that do not support PIC, -DPIC is meaningless:
14531 *djgpp*)
14532 lt_prog_compiler_pic_CXX=
14533 ;;
14534 *)
14535 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14536 ;;
14537 esac
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14540 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14541 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14547 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14548 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14549
14550 #
14551 # Check to make sure the PIC flag actually works.
14552 #
14553 if test -n "$lt_prog_compiler_pic_CXX"; then
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14555 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14556 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14557 $as_echo_n "(cached) " >&6
14558 else
14559 lt_cv_prog_compiler_pic_works_CXX=no
14560 ac_outfile=conftest.$ac_objext
14561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14562 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14563 # Insert the option either (1) after the last *FLAGS variable, or
14564 # (2) before a word containing "conftest.", or (3) at the end.
14565 # Note that $ac_compile itself does not contain backslashes and begins
14566 # with a dollar sign (not a hyphen), so the echo should work correctly.
14567 # The option is referenced via a variable to avoid confusing sed.
14568 lt_compile=`echo "$ac_compile" | $SED \
14569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14571 -e 's:$: $lt_compiler_flag:'`
14572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14573 (eval "$lt_compile" 2>conftest.err)
14574 ac_status=$?
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 if (exit $ac_status) && test -s "$ac_outfile"; then
14578 # The compiler can only warn and ignore the option if not recognized
14579 # So say no if there are warnings other than the usual output.
14580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14582 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14583 lt_cv_prog_compiler_pic_works_CXX=yes
14584 fi
14585 fi
14586 $RM conftest*
14587
14588 fi
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14590 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14591
14592 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14593 case $lt_prog_compiler_pic_CXX in
14594 "" | " "*) ;;
14595 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14596 esac
14597 else
14598 lt_prog_compiler_pic_CXX=
14599 lt_prog_compiler_can_build_shared_CXX=no
14600 fi
14601
14602 fi
14603
14604
14605
14606
14607
14608 #
14609 # Check to make sure the static flag actually works.
14610 #
14611 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14613 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14614 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617 lt_cv_prog_compiler_static_works_CXX=no
14618 save_LDFLAGS=$LDFLAGS
14619 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14620 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14621 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14622 # The linker can only warn and ignore the option if not recognized
14623 # So say no if there are warnings
14624 if test -s conftest.err; then
14625 # Append any errors to the config.log.
14626 cat conftest.err 1>&5
14627 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14629 if diff conftest.exp conftest.er2 >/dev/null; then
14630 lt_cv_prog_compiler_static_works_CXX=yes
14631 fi
14632 else
14633 lt_cv_prog_compiler_static_works_CXX=yes
14634 fi
14635 fi
14636 $RM -r conftest*
14637 LDFLAGS=$save_LDFLAGS
14638
14639 fi
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14641 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14642
14643 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14644 :
14645 else
14646 lt_prog_compiler_static_CXX=
14647 fi
14648
14649
14650
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14653 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14654 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14655 $as_echo_n "(cached) " >&6
14656 else
14657 lt_cv_prog_compiler_c_o_CXX=no
14658 $RM -r conftest 2>/dev/null
14659 mkdir conftest
14660 cd conftest
14661 mkdir out
14662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14663
14664 lt_compiler_flag="-o out/conftest2.$ac_objext"
14665 # Insert the option either (1) after the last *FLAGS variable, or
14666 # (2) before a word containing "conftest.", or (3) at the end.
14667 # Note that $ac_compile itself does not contain backslashes and begins
14668 # with a dollar sign (not a hyphen), so the echo should work correctly.
14669 lt_compile=`echo "$ac_compile" | $SED \
14670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14672 -e 's:$: $lt_compiler_flag:'`
14673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14674 (eval "$lt_compile" 2>out/conftest.err)
14675 ac_status=$?
14676 cat out/conftest.err >&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14679 then
14680 # The compiler can only warn and ignore the option if not recognized
14681 # So say no if there are warnings
14682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14685 lt_cv_prog_compiler_c_o_CXX=yes
14686 fi
14687 fi
14688 chmod u+w . 2>&5
14689 $RM conftest*
14690 # SGI C++ compiler will create directory out/ii_files/ for
14691 # template instantiation
14692 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14693 $RM out/* && rmdir out
14694 cd ..
14695 $RM -r conftest
14696 $RM conftest*
14697
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14700 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14701
14702
14703
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14705 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14706 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14707 $as_echo_n "(cached) " >&6
14708 else
14709 lt_cv_prog_compiler_c_o_CXX=no
14710 $RM -r conftest 2>/dev/null
14711 mkdir conftest
14712 cd conftest
14713 mkdir out
14714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14715
14716 lt_compiler_flag="-o out/conftest2.$ac_objext"
14717 # Insert the option either (1) after the last *FLAGS variable, or
14718 # (2) before a word containing "conftest.", or (3) at the end.
14719 # Note that $ac_compile itself does not contain backslashes and begins
14720 # with a dollar sign (not a hyphen), so the echo should work correctly.
14721 lt_compile=`echo "$ac_compile" | $SED \
14722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14724 -e 's:$: $lt_compiler_flag:'`
14725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14726 (eval "$lt_compile" 2>out/conftest.err)
14727 ac_status=$?
14728 cat out/conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14731 then
14732 # The compiler can only warn and ignore the option if not recognized
14733 # So say no if there are warnings
14734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14737 lt_cv_prog_compiler_c_o_CXX=yes
14738 fi
14739 fi
14740 chmod u+w . 2>&5
14741 $RM conftest*
14742 # SGI C++ compiler will create directory out/ii_files/ for
14743 # template instantiation
14744 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14745 $RM out/* && rmdir out
14746 cd ..
14747 $RM -r conftest
14748 $RM conftest*
14749
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14752 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14753
14754
14755
14756
14757 hard_links=nottested
14758 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14759 # do not overwrite the value of need_locks provided by the user
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14761 $as_echo_n "checking if we can lock with hard links... " >&6; }
14762 hard_links=yes
14763 $RM conftest*
14764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14765 touch conftest.a
14766 ln conftest.a conftest.b 2>&5 || hard_links=no
14767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14769 $as_echo "$hard_links" >&6; }
14770 if test no = "$hard_links"; then
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14772 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14773 need_locks=warn
14774 fi
14775 else
14776 need_locks=no
14777 fi
14778
14779
14780
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14782 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14783
14784 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14785 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14786 case $host_os in
14787 aix[4-9]*)
14788 # If we're using GNU nm, then we don't want the "-C" option.
14789 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14790 # Without the "-l" option, or with the "-B" option, AIX nm treats
14791 # weak defined symbols like other global defined symbols, whereas
14792 # GNU nm marks them as "W".
14793 # While the 'weak' keyword is ignored in the Export File, we need
14794 # it in the Import File for the 'aix-soname' feature, so we have
14795 # to replace the "-B" option with "-P" for AIX nm.
14796 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14797 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'
14798 else
14799 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14800 fi
14801 ;;
14802 pw32*)
14803 export_symbols_cmds_CXX=$ltdll_cmds
14804 ;;
14805 cygwin* | mingw* | cegcc*)
14806 case $cc_basename in
14807 cl*)
14808 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14809 ;;
14810 *)
14811 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'
14812 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14813 ;;
14814 esac
14815 ;;
14816 linux* | k*bsd*-gnu | gnu*)
14817 link_all_deplibs_CXX=no
14818 ;;
14819 *)
14820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14821 ;;
14822 esac
14823
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14825 $as_echo "$ld_shlibs_CXX" >&6; }
14826 test no = "$ld_shlibs_CXX" && can_build_shared=no
14827
14828 with_gnu_ld_CXX=$with_gnu_ld
14829
14830
14831
14832
14833
14834
14835 #
14836 # Do we need to explicitly link libc?
14837 #
14838 case "x$archive_cmds_need_lc_CXX" in
14839 x|xyes)
14840 # Assume -lc should be added
14841 archive_cmds_need_lc_CXX=yes
14842
14843 if test yes,yes = "$GCC,$enable_shared"; then
14844 case $archive_cmds_CXX in
14845 *'~'*)
14846 # FIXME: we may have to deal with multi-command sequences.
14847 ;;
14848 '$CC '*)
14849 # Test whether the compiler implicitly links with -lc since on some
14850 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14851 # to ld, don't add -lc before -lgcc.
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14853 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14854 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 $RM conftest*
14858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14859
14860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14861 (eval $ac_compile) 2>&5
14862 ac_status=$?
14863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14864 test $ac_status = 0; } 2>conftest.err; then
14865 soname=conftest
14866 lib=conftest
14867 libobjs=conftest.$ac_objext
14868 deplibs=
14869 wl=$lt_prog_compiler_wl_CXX
14870 pic_flag=$lt_prog_compiler_pic_CXX
14871 compiler_flags=-v
14872 linker_flags=-v
14873 verstring=
14874 output_objdir=.
14875 libname=conftest
14876 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14877 allow_undefined_flag_CXX=
14878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14879 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14880 ac_status=$?
14881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14882 test $ac_status = 0; }
14883 then
14884 lt_cv_archive_cmds_need_lc_CXX=no
14885 else
14886 lt_cv_archive_cmds_need_lc_CXX=yes
14887 fi
14888 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14889 else
14890 cat conftest.err 1>&5
14891 fi
14892 $RM conftest*
14893
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14896 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14897 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14898 ;;
14899 esac
14900 fi
14901 ;;
14902 esac
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14966 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14967
14968 library_names_spec=
14969 libname_spec='lib$name'
14970 soname_spec=
14971 shrext_cmds=.so
14972 postinstall_cmds=
14973 postuninstall_cmds=
14974 finish_cmds=
14975 finish_eval=
14976 shlibpath_var=
14977 shlibpath_overrides_runpath=unknown
14978 version_type=none
14979 dynamic_linker="$host_os ld.so"
14980 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14981 need_lib_prefix=unknown
14982 hardcode_into_libs=no
14983
14984 # when you set need_version to no, make sure it does not cause -set_version
14985 # flags to be left without arguments
14986 need_version=unknown
14987
14988
14989
14990 case $host_os in
14991 aix3*)
14992 version_type=linux # correct to gnu/linux during the next big refactor
14993 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14994 shlibpath_var=LIBPATH
14995
14996 # AIX 3 has no versioning support, so we append a major version to the name.
14997 soname_spec='$libname$release$shared_ext$major'
14998 ;;
14999
15000 aix[4-9]*)
15001 version_type=linux # correct to gnu/linux during the next big refactor
15002 need_lib_prefix=no
15003 need_version=no
15004 hardcode_into_libs=yes
15005 if test ia64 = "$host_cpu"; then
15006 # AIX 5 supports IA64
15007 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 else
15010 # With GCC up to 2.95.x, collect2 would create an import file
15011 # for dependence libraries. The import file would start with
15012 # the line '#! .'. This would cause the generated library to
15013 # depend on '.', always an invalid library. This was fixed in
15014 # development snapshots of GCC prior to 3.0.
15015 case $host_os in
15016 aix4 | aix4.[01] | aix4.[01].*)
15017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15018 echo ' yes '
15019 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15020 :
15021 else
15022 can_build_shared=no
15023 fi
15024 ;;
15025 esac
15026 # Using Import Files as archive members, it is possible to support
15027 # filename-based versioning of shared library archives on AIX. While
15028 # this would work for both with and without runtime linking, it will
15029 # prevent static linking of such archives. So we do filename-based
15030 # shared library versioning with .so extension only, which is used
15031 # when both runtime linking and shared linking is enabled.
15032 # Unfortunately, runtime linking may impact performance, so we do
15033 # not want this to be the default eventually. Also, we use the
15034 # versioned .so libs for executables only if there is the -brtl
15035 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15036 # To allow for filename-based versioning support, we need to create
15037 # libNAME.so.V as an archive file, containing:
15038 # *) an Import File, referring to the versioned filename of the
15039 # archive as well as the shared archive member, telling the
15040 # bitwidth (32 or 64) of that shared object, and providing the
15041 # list of exported symbols of that shared object, eventually
15042 # decorated with the 'weak' keyword
15043 # *) the shared object with the F_LOADONLY flag set, to really avoid
15044 # it being seen by the linker.
15045 # At run time we better use the real file rather than another symlink,
15046 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15047
15048 case $with_aix_soname,$aix_use_runtimelinking in
15049 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15050 # soname into executable. Probably we can add versioning support to
15051 # collect2, so additional links can be useful in future.
15052 aix,yes) # traditional libtool
15053 dynamic_linker='AIX unversionable lib.so'
15054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15055 # instead of lib<name>.a to let people know that these are not
15056 # typical AIX shared libraries.
15057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15058 ;;
15059 aix,no) # traditional AIX only
15060 dynamic_linker='AIX lib.a(lib.so.V)'
15061 # We preserve .a as extension for shared libraries through AIX4.2
15062 # and later when we are not doing run time linking.
15063 library_names_spec='$libname$release.a $libname.a'
15064 soname_spec='$libname$release$shared_ext$major'
15065 ;;
15066 svr4,*) # full svr4 only
15067 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15068 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15069 # We do not specify a path in Import Files, so LIBPATH fires.
15070 shlibpath_overrides_runpath=yes
15071 ;;
15072 *,yes) # both, prefer svr4
15073 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15074 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15075 # unpreferred sharedlib libNAME.a needs extra handling
15076 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"'
15077 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"'
15078 # We do not specify a path in Import Files, so LIBPATH fires.
15079 shlibpath_overrides_runpath=yes
15080 ;;
15081 *,no) # both, prefer aix
15082 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15083 library_names_spec='$libname$release.a $libname.a'
15084 soname_spec='$libname$release$shared_ext$major'
15085 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15086 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)'
15087 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"'
15088 ;;
15089 esac
15090 shlibpath_var=LIBPATH
15091 fi
15092 ;;
15093
15094 amigaos*)
15095 case $host_cpu in
15096 powerpc)
15097 # Since July 2007 AmigaOS4 officially supports .so libraries.
15098 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15100 ;;
15101 m68k)
15102 library_names_spec='$libname.ixlibrary $libname.a'
15103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15104 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'
15105 ;;
15106 esac
15107 ;;
15108
15109 beos*)
15110 library_names_spec='$libname$shared_ext'
15111 dynamic_linker="$host_os ld.so"
15112 shlibpath_var=LIBRARY_PATH
15113 ;;
15114
15115 bsdi[45]*)
15116 version_type=linux # correct to gnu/linux during the next big refactor
15117 need_version=no
15118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15119 soname_spec='$libname$release$shared_ext$major'
15120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15124 # the default ld.so.conf also contains /usr/contrib/lib and
15125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15126 # libtool to hard-code these into programs
15127 ;;
15128
15129 cygwin* | mingw* | pw32* | cegcc*)
15130 version_type=windows
15131 shrext_cmds=.dll
15132 need_version=no
15133 need_lib_prefix=no
15134
15135 case $GCC,$cc_basename in
15136 yes,*)
15137 # gcc
15138 library_names_spec='$libname.dll.a'
15139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15140 postinstall_cmds='base_file=`basename \$file`~
15141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15142 dldir=$destdir/`dirname \$dlpath`~
15143 test -d \$dldir || mkdir -p \$dldir~
15144 $install_prog $dir/$dlname \$dldir/$dlname~
15145 chmod a+x \$dldir/$dlname~
15146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15148 fi'
15149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15150 dlpath=$dir/\$dldll~
15151 $RM \$dlpath'
15152 shlibpath_overrides_runpath=yes
15153
15154 case $host_os in
15155 cygwin*)
15156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15157 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15158
15159 ;;
15160 mingw* | cegcc*)
15161 # MinGW DLLs use traditional 'lib' prefix
15162 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15163 ;;
15164 pw32*)
15165 # pw32 DLLs use 'pw' prefix rather than 'lib'
15166 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15167 ;;
15168 esac
15169 dynamic_linker='Win32 ld.exe'
15170 ;;
15171
15172 *,cl*)
15173 # Native MSVC
15174 libname_spec='$name'
15175 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15176 library_names_spec='$libname.dll.lib'
15177
15178 case $build_os in
15179 mingw*)
15180 sys_lib_search_path_spec=
15181 lt_save_ifs=$IFS
15182 IFS=';'
15183 for lt_path in $LIB
15184 do
15185 IFS=$lt_save_ifs
15186 # Let DOS variable expansion print the short 8.3 style file name.
15187 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15188 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15189 done
15190 IFS=$lt_save_ifs
15191 # Convert to MSYS style.
15192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15193 ;;
15194 cygwin*)
15195 # Convert to unix form, then to dos form, then back to unix form
15196 # but this time dos style (no spaces!) so that the unix form looks
15197 # like /cygdrive/c/PROGRA~1:/cygdr...
15198 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15199 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15200 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15201 ;;
15202 *)
15203 sys_lib_search_path_spec=$LIB
15204 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15205 # It is most probably a Windows format PATH.
15206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15207 else
15208 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15209 fi
15210 # FIXME: find the short name or the path components, as spaces are
15211 # common. (e.g. "Program Files" -> "PROGRA~1")
15212 ;;
15213 esac
15214
15215 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15216 postinstall_cmds='base_file=`basename \$file`~
15217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15218 dldir=$destdir/`dirname \$dlpath`~
15219 test -d \$dldir || mkdir -p \$dldir~
15220 $install_prog $dir/$dlname \$dldir/$dlname'
15221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15222 dlpath=$dir/\$dldll~
15223 $RM \$dlpath'
15224 shlibpath_overrides_runpath=yes
15225 dynamic_linker='Win32 link.exe'
15226 ;;
15227
15228 *)
15229 # Assume MSVC wrapper
15230 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15231 dynamic_linker='Win32 ld.exe'
15232 ;;
15233 esac
15234 # FIXME: first we should search . and the directory the executable is in
15235 shlibpath_var=PATH
15236 ;;
15237
15238 darwin* | rhapsody*)
15239 dynamic_linker="$host_os dyld"
15240 version_type=darwin
15241 need_lib_prefix=no
15242 need_version=no
15243 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15244 soname_spec='$libname$release$major$shared_ext'
15245 shlibpath_overrides_runpath=yes
15246 shlibpath_var=DYLD_LIBRARY_PATH
15247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15248
15249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15250 ;;
15251
15252 dgux*)
15253 version_type=linux # correct to gnu/linux during the next big refactor
15254 need_lib_prefix=no
15255 need_version=no
15256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15257 soname_spec='$libname$release$shared_ext$major'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 ;;
15260
15261 freebsd* | dragonfly*)
15262 # DragonFly does not have aout. When/if they implement a new
15263 # versioning mechanism, adjust this.
15264 if test -x /usr/bin/objformat; then
15265 objformat=`/usr/bin/objformat`
15266 else
15267 case $host_os in
15268 freebsd[23].*) objformat=aout ;;
15269 *) objformat=elf ;;
15270 esac
15271 fi
15272 version_type=freebsd-$objformat
15273 case $version_type in
15274 freebsd-elf*)
15275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15276 soname_spec='$libname$release$shared_ext$major'
15277 need_version=no
15278 need_lib_prefix=no
15279 ;;
15280 freebsd-*)
15281 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15282 need_version=yes
15283 ;;
15284 esac
15285 shlibpath_var=LD_LIBRARY_PATH
15286 case $host_os in
15287 freebsd2.*)
15288 shlibpath_overrides_runpath=yes
15289 ;;
15290 freebsd3.[01]* | freebsdelf3.[01]*)
15291 shlibpath_overrides_runpath=yes
15292 hardcode_into_libs=yes
15293 ;;
15294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15296 shlibpath_overrides_runpath=no
15297 hardcode_into_libs=yes
15298 ;;
15299 *) # from 4.6 on, and DragonFly
15300 shlibpath_overrides_runpath=yes
15301 hardcode_into_libs=yes
15302 ;;
15303 esac
15304 ;;
15305
15306 haiku*)
15307 version_type=linux # correct to gnu/linux during the next big refactor
15308 need_lib_prefix=no
15309 need_version=no
15310 dynamic_linker="$host_os runtime_loader"
15311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15312 soname_spec='$libname$release$shared_ext$major'
15313 shlibpath_var=LIBRARY_PATH
15314 shlibpath_overrides_runpath=no
15315 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15316 hardcode_into_libs=yes
15317 ;;
15318
15319 hpux9* | hpux10* | hpux11*)
15320 # Give a soname corresponding to the major version so that dld.sl refuses to
15321 # link against other versions.
15322 version_type=sunos
15323 need_lib_prefix=no
15324 need_version=no
15325 case $host_cpu in
15326 ia64*)
15327 shrext_cmds='.so'
15328 hardcode_into_libs=yes
15329 dynamic_linker="$host_os dld.so"
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15333 soname_spec='$libname$release$shared_ext$major'
15334 if test 32 = "$HPUX_IA64_MODE"; then
15335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15336 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15337 else
15338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15339 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15340 fi
15341 ;;
15342 hppa*64*)
15343 shrext_cmds='.sl'
15344 hardcode_into_libs=yes
15345 dynamic_linker="$host_os dld.sl"
15346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15349 soname_spec='$libname$release$shared_ext$major'
15350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15352 ;;
15353 *)
15354 shrext_cmds='.sl'
15355 dynamic_linker="$host_os dld.sl"
15356 shlibpath_var=SHLIB_PATH
15357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15359 soname_spec='$libname$release$shared_ext$major'
15360 ;;
15361 esac
15362 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15363 postinstall_cmds='chmod 555 $lib'
15364 # or fails outright, so override atomically:
15365 install_override_mode=555
15366 ;;
15367
15368 interix[3-9]*)
15369 version_type=linux # correct to gnu/linux during the next big refactor
15370 need_lib_prefix=no
15371 need_version=no
15372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15373 soname_spec='$libname$release$shared_ext$major'
15374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 shlibpath_overrides_runpath=no
15377 hardcode_into_libs=yes
15378 ;;
15379
15380 irix5* | irix6* | nonstopux*)
15381 case $host_os in
15382 nonstopux*) version_type=nonstopux ;;
15383 *)
15384 if test yes = "$lt_cv_prog_gnu_ld"; then
15385 version_type=linux # correct to gnu/linux during the next big refactor
15386 else
15387 version_type=irix
15388 fi ;;
15389 esac
15390 need_lib_prefix=no
15391 need_version=no
15392 soname_spec='$libname$release$shared_ext$major'
15393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15394 case $host_os in
15395 irix5* | nonstopux*)
15396 libsuff= shlibsuff=
15397 ;;
15398 *)
15399 case $LD in # libtool.m4 will add one of these switches to LD
15400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15401 libsuff= shlibsuff= libmagic=32-bit;;
15402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15403 libsuff=32 shlibsuff=N32 libmagic=N32;;
15404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15406 *) libsuff= shlibsuff= libmagic=never-match;;
15407 esac
15408 ;;
15409 esac
15410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15411 shlibpath_overrides_runpath=no
15412 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15413 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15414 hardcode_into_libs=yes
15415 ;;
15416
15417 # No shared lib support for Linux oldld, aout, or coff.
15418 linux*oldld* | linux*aout* | linux*coff*)
15419 dynamic_linker=no
15420 ;;
15421
15422 linux*android*)
15423 version_type=none # Android doesn't support versioned libraries.
15424 need_lib_prefix=no
15425 need_version=no
15426 library_names_spec='$libname$release$shared_ext'
15427 soname_spec='$libname$release$shared_ext'
15428 finish_cmds=
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15431
15432 # This implies no fast_install, which is unacceptable.
15433 # Some rework will be needed to allow for fast_install
15434 # before this can be enabled.
15435 hardcode_into_libs=yes
15436
15437 dynamic_linker='Android linker'
15438 # Don't embed -rpath directories since the linker doesn't support them.
15439 hardcode_libdir_flag_spec_CXX='-L$libdir'
15440 ;;
15441
15442 # This must be glibc/ELF.
15443 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15444 version_type=linux # correct to gnu/linux during the next big refactor
15445 need_lib_prefix=no
15446 need_version=no
15447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15448 soname_spec='$libname$release$shared_ext$major'
15449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 shlibpath_overrides_runpath=no
15452
15453 # Some binutils ld are patched to set DT_RUNPATH
15454 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15455 $as_echo_n "(cached) " >&6
15456 else
15457 lt_cv_shlibpath_overrides_runpath=no
15458 save_LDFLAGS=$LDFLAGS
15459 save_libdir=$libdir
15460 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15461 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15464
15465 int
15466 main ()
15467 {
15468
15469 ;
15470 return 0;
15471 }
15472 _ACEOF
15473 if ac_fn_cxx_try_link "$LINENO"; then :
15474 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15475 lt_cv_shlibpath_overrides_runpath=yes
15476 fi
15477 fi
15478 rm -f core conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15480 LDFLAGS=$save_LDFLAGS
15481 libdir=$save_libdir
15482
15483 fi
15484
15485 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15486
15487 # This implies no fast_install, which is unacceptable.
15488 # Some rework will be needed to allow for fast_install
15489 # before this can be enabled.
15490 hardcode_into_libs=yes
15491
15492 # Ideally, we could use ldconfig to report *all* directores which are
15493 # searched for libraries, however this is still not possible. Aside from not
15494 # being certain /sbin/ldconfig is available, command
15495 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15496 # even though it is searched at run-time. Try to do the best guess by
15497 # appending ld.so.conf contents (and includes) to the search path.
15498 if test -f /etc/ld.so.conf; then
15499 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' ' '`
15500 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15501 fi
15502
15503 # We used to test for /lib/ld.so.1 and disable shared libraries on
15504 # powerpc, because MkLinux only supported shared libraries with the
15505 # GNU dynamic linker. Since this was broken with cross compilers,
15506 # most powerpc-linux boxes support dynamic linking these days and
15507 # people can always --disable-shared, the test was removed, and we
15508 # assume the GNU/Linux dynamic linker is in use.
15509 dynamic_linker='GNU/Linux ld.so'
15510 ;;
15511
15512 netbsdelf*-gnu)
15513 version_type=linux
15514 need_lib_prefix=no
15515 need_version=no
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 shlibpath_var=LD_LIBRARY_PATH
15519 shlibpath_overrides_runpath=no
15520 hardcode_into_libs=yes
15521 dynamic_linker='NetBSD ld.elf_so'
15522 ;;
15523
15524 netbsd*)
15525 version_type=sunos
15526 need_lib_prefix=no
15527 need_version=no
15528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15529 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15531 dynamic_linker='NetBSD (a.out) ld.so'
15532 else
15533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15534 soname_spec='$libname$release$shared_ext$major'
15535 dynamic_linker='NetBSD ld.elf_so'
15536 fi
15537 shlibpath_var=LD_LIBRARY_PATH
15538 shlibpath_overrides_runpath=yes
15539 hardcode_into_libs=yes
15540 ;;
15541
15542 newsos6)
15543 version_type=linux # correct to gnu/linux during the next big refactor
15544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 shlibpath_overrides_runpath=yes
15547 ;;
15548
15549 *nto* | *qnx*)
15550 version_type=qnx
15551 need_lib_prefix=no
15552 need_version=no
15553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15554 soname_spec='$libname$release$shared_ext$major'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=no
15557 hardcode_into_libs=yes
15558 dynamic_linker='ldqnx.so'
15559 ;;
15560
15561 openbsd* | bitrig*)
15562 version_type=sunos
15563 sys_lib_dlsearch_path_spec=/usr/lib
15564 need_lib_prefix=no
15565 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15566 need_version=no
15567 else
15568 need_version=yes
15569 fi
15570 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 shlibpath_overrides_runpath=yes
15574 ;;
15575
15576 os2*)
15577 libname_spec='$name'
15578 version_type=windows
15579 shrext_cmds=.dll
15580 need_version=no
15581 need_lib_prefix=no
15582 # OS/2 can only load a DLL with a base name of 8 characters or less.
15583 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15584 v=$($ECHO $release$versuffix | tr -d .-);
15585 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15586 $ECHO $n$v`$shared_ext'
15587 library_names_spec='${libname}_dll.$libext'
15588 dynamic_linker='OS/2 ld.exe'
15589 shlibpath_var=BEGINLIBPATH
15590 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15591 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15592 postinstall_cmds='base_file=`basename \$file`~
15593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15594 dldir=$destdir/`dirname \$dlpath`~
15595 test -d \$dldir || mkdir -p \$dldir~
15596 $install_prog $dir/$dlname \$dldir/$dlname~
15597 chmod a+x \$dldir/$dlname~
15598 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15599 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15600 fi'
15601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15602 dlpath=$dir/\$dldll~
15603 $RM \$dlpath'
15604 ;;
15605
15606 osf3* | osf4* | osf5*)
15607 version_type=osf
15608 need_lib_prefix=no
15609 need_version=no
15610 soname_spec='$libname$release$shared_ext$major'
15611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15615 ;;
15616
15617 rdos*)
15618 dynamic_linker=no
15619 ;;
15620
15621 solaris*)
15622 version_type=linux # correct to gnu/linux during the next big refactor
15623 need_lib_prefix=no
15624 need_version=no
15625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15626 soname_spec='$libname$release$shared_ext$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes
15629 hardcode_into_libs=yes
15630 # ldd complains unless libraries are executable
15631 postinstall_cmds='chmod +x $lib'
15632 ;;
15633
15634 sunos4*)
15635 version_type=sunos
15636 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 shlibpath_overrides_runpath=yes
15640 if test yes = "$with_gnu_ld"; then
15641 need_lib_prefix=no
15642 fi
15643 need_version=yes
15644 ;;
15645
15646 sysv4 | sysv4.3*)
15647 version_type=linux # correct to gnu/linux during the next big refactor
15648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15649 soname_spec='$libname$release$shared_ext$major'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 case $host_vendor in
15652 sni)
15653 shlibpath_overrides_runpath=no
15654 need_lib_prefix=no
15655 runpath_var=LD_RUN_PATH
15656 ;;
15657 siemens)
15658 need_lib_prefix=no
15659 ;;
15660 motorola)
15661 need_lib_prefix=no
15662 need_version=no
15663 shlibpath_overrides_runpath=no
15664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15665 ;;
15666 esac
15667 ;;
15668
15669 sysv4*MP*)
15670 if test -d /usr/nec; then
15671 version_type=linux # correct to gnu/linux during the next big refactor
15672 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15673 soname_spec='$libname$shared_ext.$major'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 fi
15676 ;;
15677
15678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15679 version_type=sco
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15683 soname_spec='$libname$release$shared_ext$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=yes
15686 hardcode_into_libs=yes
15687 if test yes = "$with_gnu_ld"; then
15688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15689 else
15690 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15691 case $host_os in
15692 sco3.2v5*)
15693 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15694 ;;
15695 esac
15696 fi
15697 sys_lib_dlsearch_path_spec='/usr/lib'
15698 ;;
15699
15700 tpf*)
15701 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15702 version_type=linux # correct to gnu/linux during the next big refactor
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=no
15708 hardcode_into_libs=yes
15709 ;;
15710
15711 uts4*)
15712 version_type=linux # correct to gnu/linux during the next big refactor
15713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15714 soname_spec='$libname$release$shared_ext$major'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 ;;
15717
15718 *)
15719 dynamic_linker=no
15720 ;;
15721 esac
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15723 $as_echo "$dynamic_linker" >&6; }
15724 test no = "$dynamic_linker" && can_build_shared=no
15725
15726 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15727 if test yes = "$GCC"; then
15728 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15729 fi
15730
15731 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15732 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15733 fi
15734
15735 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15736 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15737 fi
15738
15739 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15740 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15741
15742 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15743 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15744
15745 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15746 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15788 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15789 hardcode_action_CXX=
15790 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15791 test -n "$runpath_var_CXX" ||
15792 test yes = "$hardcode_automatic_CXX"; then
15793
15794 # We can hardcode non-existent directories.
15795 if test no != "$hardcode_direct_CXX" &&
15796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15797 # have to relink, otherwise we might link with an installed library
15798 # when we should be linking with a yet-to-be-installed one
15799 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15800 test no != "$hardcode_minus_L_CXX"; then
15801 # Linking always hardcodes the temporary library directory.
15802 hardcode_action_CXX=relink
15803 else
15804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15805 hardcode_action_CXX=immediate
15806 fi
15807 else
15808 # We cannot hardcode anything, or else we can only hardcode existing
15809 # directories.
15810 hardcode_action_CXX=unsupported
15811 fi
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15813 $as_echo "$hardcode_action_CXX" >&6; }
15814
15815 if test relink = "$hardcode_action_CXX" ||
15816 test yes = "$inherit_rpath_CXX"; then
15817 # Fast installation is not supported
15818 enable_fast_install=no
15819 elif test yes = "$shlibpath_overrides_runpath" ||
15820 test no = "$enable_shared"; then
15821 # Fast installation is not necessary
15822 enable_fast_install=needless
15823 fi
15824
15825
15826
15827
15828
15829
15830
15831 fi # test -n "$compiler"
15832
15833 CC=$lt_save_CC
15834 CFLAGS=$lt_save_CFLAGS
15835 LDCXX=$LD
15836 LD=$lt_save_LD
15837 GCC=$lt_save_GCC
15838 with_gnu_ld=$lt_save_with_gnu_ld
15839 lt_cv_path_LDCXX=$lt_cv_path_LD
15840 lt_cv_path_LD=$lt_save_path_LD
15841 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15842 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15843 fi # test yes != "$_lt_caught_CXX_error"
15844
15845 ac_ext=c
15846 ac_cpp='$CPP $CPPFLAGS'
15847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865 ac_config_commands="$ac_config_commands libtool"
15866
15867
15868
15869
15870 # Only expand once:
15871
15872
15873
15874 # Checks for libraries.
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
15876 $as_echo_n "checking for main in -lm... " >&6; }
15877 if ${ac_cv_lib_m_main+:} false; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 ac_check_lib_save_LIBS=$LIBS
15881 LIBS="-lm $LIBS"
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884
15885
15886 int
15887 main ()
15888 {
15889 return main ();
15890 ;
15891 return 0;
15892 }
15893 _ACEOF
15894 if ac_fn_c_try_link "$LINENO"; then :
15895 ac_cv_lib_m_main=yes
15896 else
15897 ac_cv_lib_m_main=no
15898 fi
15899 rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15901 LIBS=$ac_check_lib_save_LIBS
15902 fi
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
15904 $as_echo "$ac_cv_lib_m_main" >&6; }
15905 if test "x$ac_cv_lib_m_main" = xyes; then :
15906 cat >>confdefs.h <<_ACEOF
15907 #define HAVE_LIBM 1
15908 _ACEOF
15909
15910 LIBS="-lm $LIBS"
15911
15912 fi
15913
15914 # FIXME: Replace `main' with a function in `-lrt':
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
15916 $as_echo_n "checking for main in -lrt... " >&6; }
15917 if ${ac_cv_lib_rt_main+:} false; then :
15918 $as_echo_n "(cached) " >&6
15919 else
15920 ac_check_lib_save_LIBS=$LIBS
15921 LIBS="-lrt $LIBS"
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15924
15925
15926 int
15927 main ()
15928 {
15929 return main ();
15930 ;
15931 return 0;
15932 }
15933 _ACEOF
15934 if ac_fn_c_try_link "$LINENO"; then :
15935 ac_cv_lib_rt_main=yes
15936 else
15937 ac_cv_lib_rt_main=no
15938 fi
15939 rm -f core conftest.err conftest.$ac_objext \
15940 conftest$ac_exeext conftest.$ac_ext
15941 LIBS=$ac_check_lib_save_LIBS
15942 fi
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
15944 $as_echo "$ac_cv_lib_rt_main" >&6; }
15945 if test "x$ac_cv_lib_rt_main" = xyes; then :
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_LIBRT 1
15948 _ACEOF
15949
15950 LIBS="-lrt $LIBS"
15951
15952 fi
15953
15954
15955 # Checks for header files.
15956 for ac_header in float.h stdlib.h string.h unistd.h
15957 do :
15958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15959 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15961 cat >>confdefs.h <<_ACEOF
15962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15963 _ACEOF
15964
15965 fi
15966
15967 done
15968
15969
15970 # Checks for typedefs, structures, and compiler characteristics.
15971 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15972 if test "x$ac_cv_type_size_t" = xyes; then :
15973
15974 else
15975
15976 cat >>confdefs.h <<_ACEOF
15977 #define size_t unsigned int
15978 _ACEOF
15979
15980 fi
15981
15982
15983 # Checks for library functions.
15984 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15985 if test "x$ac_cv_type_pid_t" = xyes; then :
15986
15987 else
15988
15989 cat >>confdefs.h <<_ACEOF
15990 #define pid_t int
15991 _ACEOF
15992
15993 fi
15994
15995 for ac_header in vfork.h
15996 do :
15997 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15998 if test "x$ac_cv_header_vfork_h" = xyes; then :
15999 cat >>confdefs.h <<_ACEOF
16000 #define HAVE_VFORK_H 1
16001 _ACEOF
16002
16003 fi
16004
16005 done
16006
16007 for ac_func in fork vfork
16008 do :
16009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16010 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16011 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16012 cat >>confdefs.h <<_ACEOF
16013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16014 _ACEOF
16015
16016 fi
16017 done
16018
16019 if test "x$ac_cv_func_fork" = xyes; then
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16021 $as_echo_n "checking for working fork... " >&6; }
16022 if ${ac_cv_func_fork_works+:} false; then :
16023 $as_echo_n "(cached) " >&6
16024 else
16025 if test "$cross_compiling" = yes; then :
16026 ac_cv_func_fork_works=cross
16027 else
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030 $ac_includes_default
16031 int
16032 main ()
16033 {
16034
16035 /* By Ruediger Kuhlmann. */
16036 return fork () < 0;
16037
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 if ac_fn_c_try_run "$LINENO"; then :
16043 ac_cv_func_fork_works=yes
16044 else
16045 ac_cv_func_fork_works=no
16046 fi
16047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16048 conftest.$ac_objext conftest.beam conftest.$ac_ext
16049 fi
16050
16051 fi
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16053 $as_echo "$ac_cv_func_fork_works" >&6; }
16054
16055 else
16056 ac_cv_func_fork_works=$ac_cv_func_fork
16057 fi
16058 if test "x$ac_cv_func_fork_works" = xcross; then
16059 case $host in
16060 *-*-amigaos* | *-*-msdosdjgpp*)
16061 # Override, as these systems have only a dummy fork() stub
16062 ac_cv_func_fork_works=no
16063 ;;
16064 *)
16065 ac_cv_func_fork_works=yes
16066 ;;
16067 esac
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16069 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16070 fi
16071 ac_cv_func_vfork_works=$ac_cv_func_vfork
16072 if test "x$ac_cv_func_vfork" = xyes; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16074 $as_echo_n "checking for working vfork... " >&6; }
16075 if ${ac_cv_func_vfork_works+:} false; then :
16076 $as_echo_n "(cached) " >&6
16077 else
16078 if test "$cross_compiling" = yes; then :
16079 ac_cv_func_vfork_works=cross
16080 else
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 /* Thanks to Paul Eggert for this test. */
16084 $ac_includes_default
16085 #include <sys/wait.h>
16086 #ifdef HAVE_VFORK_H
16087 # include <vfork.h>
16088 #endif
16089 /* On some sparc systems, changes by the child to local and incoming
16090 argument registers are propagated back to the parent. The compiler
16091 is told about this with #include <vfork.h>, but some compilers
16092 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16093 static variable whose address is put into a register that is
16094 clobbered by the vfork. */
16095 static void
16096 #ifdef __cplusplus
16097 sparc_address_test (int arg)
16098 # else
16099 sparc_address_test (arg) int arg;
16100 #endif
16101 {
16102 static pid_t child;
16103 if (!child) {
16104 child = vfork ();
16105 if (child < 0) {
16106 perror ("vfork");
16107 _exit(2);
16108 }
16109 if (!child) {
16110 arg = getpid();
16111 write(-1, "", 0);
16112 _exit (arg);
16113 }
16114 }
16115 }
16116
16117 int
16118 main ()
16119 {
16120 pid_t parent = getpid ();
16121 pid_t child;
16122
16123 sparc_address_test (0);
16124
16125 child = vfork ();
16126
16127 if (child == 0) {
16128 /* Here is another test for sparc vfork register problems. This
16129 test uses lots of local variables, at least as many local
16130 variables as main has allocated so far including compiler
16131 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16132 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16133 reuse the register of parent for one of the local variables,
16134 since it will think that parent can't possibly be used any more
16135 in this routine. Assigning to the local variable will thus
16136 munge parent in the parent process. */
16137 pid_t
16138 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16139 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16140 /* Convince the compiler that p..p7 are live; otherwise, it might
16141 use the same hardware register for all 8 local variables. */
16142 if (p != p1 || p != p2 || p != p3 || p != p4
16143 || p != p5 || p != p6 || p != p7)
16144 _exit(1);
16145
16146 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16147 from child file descriptors. If the child closes a descriptor
16148 before it execs or exits, this munges the parent's descriptor
16149 as well. Test for this by closing stdout in the child. */
16150 _exit(close(fileno(stdout)) != 0);
16151 } else {
16152 int status;
16153 struct stat st;
16154
16155 while (wait(&status) != child)
16156 ;
16157 return (
16158 /* Was there some problem with vforking? */
16159 child < 0
16160
16161 /* Did the child fail? (This shouldn't happen.) */
16162 || status
16163
16164 /* Did the vfork/compiler bug occur? */
16165 || parent != getpid()
16166
16167 /* Did the file descriptor bug occur? */
16168 || fstat(fileno(stdout), &st) != 0
16169 );
16170 }
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_run "$LINENO"; then :
16174 ac_cv_func_vfork_works=yes
16175 else
16176 ac_cv_func_vfork_works=no
16177 fi
16178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16179 conftest.$ac_objext conftest.beam conftest.$ac_ext
16180 fi
16181
16182 fi
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16184 $as_echo "$ac_cv_func_vfork_works" >&6; }
16185
16186 fi;
16187 if test "x$ac_cv_func_fork_works" = xcross; then
16188 ac_cv_func_vfork_works=$ac_cv_func_vfork
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16190 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16191 fi
16192
16193 if test "x$ac_cv_func_vfork_works" = xyes; then
16194
16195 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16196
16197 else
16198
16199 $as_echo "#define vfork fork" >>confdefs.h
16200
16201 fi
16202 if test "x$ac_cv_func_fork_works" = xyes; then
16203
16204 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16205
16206 fi
16207
16208 for ac_func in clock_gettime
16209 do :
16210 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
16211 if test "x$ac_cv_func_clock_gettime" = xyes; then :
16212 cat >>confdefs.h <<_ACEOF
16213 #define HAVE_CLOCK_GETTIME 1
16214 _ACEOF
16215
16216 fi
16217 done
16218
16219
16220
16221 CFLAGS="$CCD_FPUARCH_FLAGS $CFLAGS"
16222 CXXFLAGS="$CCD_FPUARCH_FLAGS $CXXFLAGS"
16223
16224 use_double=no
16225 # Check whether --enable-double-precision was given.
16226 if test "${enable_double_precision+set}" = set; then :
16227 enableval=$enable_double_precision; use_double=$enableval
16228 fi
16229
16230 if test x$use_double = xno
16231 then
16232 CCD_PRECISION=CCD_SINGLE
16233 else
16234 CCD_PRECISION=CCD_DOUBLE
16235 fi
16236
16237
16238 ac_config_files="$ac_config_files Makefile src/Makefile src/ccd/precision.h src/testsuites/Makefile src/testsuites/cu/Makefile"
16239
16240 cat >confcache <<\_ACEOF
16241 # This file is a shell script that caches the results of configure
16242 # tests run on this system so they can be shared between configure
16243 # scripts and configure runs, see configure's option --config-cache.
16244 # It is not useful on other systems. If it contains results you don't
16245 # want to keep, you may remove or edit it.
16246 #
16247 # config.status only pays attention to the cache file if you give it
16248 # the --recheck option to rerun configure.
16249 #
16250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16252 # following values.
16253
16254 _ACEOF
16255
16256 # The following way of writing the cache mishandles newlines in values,
16257 # but we know of no workaround that is simple, portable, and efficient.
16258 # So, we kill variables containing newlines.
16259 # Ultrix sh set writes to stderr and can't be redirected directly,
16260 # and sets the high bit in the cache file unless we assign to the vars.
16261 (
16262 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16263 eval ac_val=\$$ac_var
16264 case $ac_val in #(
16265 *${as_nl}*)
16266 case $ac_var in #(
16267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16269 esac
16270 case $ac_var in #(
16271 _ | IFS | as_nl) ;; #(
16272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16273 *) { eval $ac_var=; unset $ac_var;} ;;
16274 esac ;;
16275 esac
16276 done
16277
16278 (set) 2>&1 |
16279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16280 *${as_nl}ac_space=\ *)
16281 # `set' does not quote correctly, so add quotes: double-quote
16282 # substitution turns \\\\ into \\, and sed turns \\ into \.
16283 sed -n \
16284 "s/'/'\\\\''/g;
16285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16286 ;; #(
16287 *)
16288 # `set' quotes correctly as required by POSIX, so do not add quotes.
16289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16290 ;;
16291 esac |
16292 sort
16293 ) |
16294 sed '
16295 /^ac_cv_env_/b end
16296 t clear
16297 :clear
16298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16299 t end
16300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16301 :end' >>confcache
16302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16303 if test -w "$cache_file"; then
16304 if test "x$cache_file" != "x/dev/null"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16306 $as_echo "$as_me: updating cache $cache_file" >&6;}
16307 if test ! -f "$cache_file" || test -h "$cache_file"; then
16308 cat confcache >"$cache_file"
16309 else
16310 case $cache_file in #(
16311 */* | ?:*)
16312 mv -f confcache "$cache_file"$$ &&
16313 mv -f "$cache_file"$$ "$cache_file" ;; #(
16314 *)
16315 mv -f confcache "$cache_file" ;;
16316 esac
16317 fi
16318 fi
16319 else
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16321 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16322 fi
16323 fi
16324 rm -f confcache
16325
16326 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16327 # Let make expand exec_prefix.
16328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16329
16330 DEFS=-DHAVE_CONFIG_H
16331
16332 ac_libobjs=
16333 ac_ltlibobjs=
16334 U=
16335 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16336 # 1. Remove the extension, and $U if already installed.
16337 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16338 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16339 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16340 # will be set to the directory where LIBOBJS objects are built.
16341 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16342 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16343 done
16344 LIBOBJS=$ac_libobjs
16345
16346 LTLIBOBJS=$ac_ltlibobjs
16347
16348
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16350 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16351 if test -n "$am_sleep_pid"; then
16352 # Hide warnings about reused PIDs.
16353 wait $am_sleep_pid 2>/dev/null
16354 fi
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16356 $as_echo "done" >&6; }
16357 if test -n "$EXEEXT"; then
16358 am__EXEEXT_TRUE=
16359 am__EXEEXT_FALSE='#'
16360 else
16361 am__EXEEXT_TRUE='#'
16362 am__EXEEXT_FALSE=
16363 fi
16364
16365 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16366 as_fn_error $? "conditional \"AMDEP\" was never defined.
16367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16368 fi
16369 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16370 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16372 fi
16373 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16374 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16376 fi
16377
16378 : "${CONFIG_STATUS=./config.status}"
16379 ac_write_fail=0
16380 ac_clean_files_save=$ac_clean_files
16381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16383 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16384 as_write_fail=0
16385 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16386 #! $SHELL
16387 # Generated by $as_me.
16388 # Run this file to recreate the current configuration.
16389 # Compiler output produced by configure, useful for debugging
16390 # configure, is in config.log if it exists.
16391
16392 debug=false
16393 ac_cs_recheck=false
16394 ac_cs_silent=false
16395
16396 SHELL=\${CONFIG_SHELL-$SHELL}
16397 export SHELL
16398 _ASEOF
16399 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16400 ## -------------------- ##
16401 ## M4sh Initialization. ##
16402 ## -------------------- ##
16403
16404 # Be more Bourne compatible
16405 DUALCASE=1; export DUALCASE # for MKS sh
16406 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16407 emulate sh
16408 NULLCMD=:
16409 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16410 # is contrary to our usage. Disable this feature.
16411 alias -g '${1+"$@"}'='"$@"'
16412 setopt NO_GLOB_SUBST
16413 else
16414 case `(set -o) 2>/dev/null` in #(
16415 *posix*) :
16416 set -o posix ;; #(
16417 *) :
16418 ;;
16419 esac
16420 fi
16421
16422
16423 as_nl='
16424 '
16425 export as_nl
16426 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16427 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16430 # Prefer a ksh shell builtin over an external printf program on Solaris,
16431 # but without wasting forks for bash or zsh.
16432 if test -z "$BASH_VERSION$ZSH_VERSION" \
16433 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16434 as_echo='print -r --'
16435 as_echo_n='print -rn --'
16436 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16437 as_echo='printf %s\n'
16438 as_echo_n='printf %s'
16439 else
16440 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16441 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16442 as_echo_n='/usr/ucb/echo -n'
16443 else
16444 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16445 as_echo_n_body='eval
16446 arg=$1;
16447 case $arg in #(
16448 *"$as_nl"*)
16449 expr "X$arg" : "X\\(.*\\)$as_nl";
16450 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16451 esac;
16452 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16453 '
16454 export as_echo_n_body
16455 as_echo_n='sh -c $as_echo_n_body as_echo'
16456 fi
16457 export as_echo_body
16458 as_echo='sh -c $as_echo_body as_echo'
16459 fi
16460
16461 # The user is always right.
16462 if test "${PATH_SEPARATOR+set}" != set; then
16463 PATH_SEPARATOR=:
16464 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16465 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16466 PATH_SEPARATOR=';'
16467 }
16468 fi
16469
16470
16471 # IFS
16472 # We need space, tab and new line, in precisely that order. Quoting is
16473 # there to prevent editors from complaining about space-tab.
16474 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16475 # splitting by setting IFS to empty value.)
16476 IFS=" "" $as_nl"
16477
16478 # Find who we are. Look in the path if we contain no directory separator.
16479 as_myself=
16480 case $0 in #((
16481 *[\\/]* ) as_myself=$0 ;;
16482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16483 for as_dir in $PATH
16484 do
16485 IFS=$as_save_IFS
16486 test -z "$as_dir" && as_dir=.
16487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16488 done
16489 IFS=$as_save_IFS
16490
16491 ;;
16492 esac
16493 # We did not find ourselves, most probably we were run as `sh COMMAND'
16494 # in which case we are not to be found in the path.
16495 if test "x$as_myself" = x; then
16496 as_myself=$0
16497 fi
16498 if test ! -f "$as_myself"; then
16499 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16500 exit 1
16501 fi
16502
16503 # Unset variables that we do not need and which cause bugs (e.g. in
16504 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16505 # suppresses any "Segmentation fault" message there. '((' could
16506 # trigger a bug in pdksh 5.2.14.
16507 for as_var in BASH_ENV ENV MAIL MAILPATH
16508 do eval test x\${$as_var+set} = xset \
16509 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16510 done
16511 PS1='$ '
16512 PS2='> '
16513 PS4='+ '
16514
16515 # NLS nuisances.
16516 LC_ALL=C
16517 export LC_ALL
16518 LANGUAGE=C
16519 export LANGUAGE
16520
16521 # CDPATH.
16522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16523
16524
16525 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16526 # ----------------------------------------
16527 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16528 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16529 # script with STATUS, using 1 if that was 0.
16530 as_fn_error ()
16531 {
16532 as_status=$1; test $as_status -eq 0 && as_status=1
16533 if test "$4"; then
16534 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16535 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16536 fi
16537 $as_echo "$as_me: error: $2" >&2
16538 as_fn_exit $as_status
16539 } # as_fn_error
16540
16541
16542 # as_fn_set_status STATUS
16543 # -----------------------
16544 # Set $? to STATUS, without forking.
16545 as_fn_set_status ()
16546 {
16547 return $1
16548 } # as_fn_set_status
16549
16550 # as_fn_exit STATUS
16551 # -----------------
16552 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16553 as_fn_exit ()
16554 {
16555 set +e
16556 as_fn_set_status $1
16557 exit $1
16558 } # as_fn_exit
16559
16560 # as_fn_unset VAR
16561 # ---------------
16562 # Portably unset VAR.
16563 as_fn_unset ()
16564 {
16565 { eval $1=; unset $1;}
16566 }
16567 as_unset=as_fn_unset
16568 # as_fn_append VAR VALUE
16569 # ----------------------
16570 # Append the text in VALUE to the end of the definition contained in VAR. Take
16571 # advantage of any shell optimizations that allow amortized linear growth over
16572 # repeated appends, instead of the typical quadratic growth present in naive
16573 # implementations.
16574 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16575 eval 'as_fn_append ()
16576 {
16577 eval $1+=\$2
16578 }'
16579 else
16580 as_fn_append ()
16581 {
16582 eval $1=\$$1\$2
16583 }
16584 fi # as_fn_append
16585
16586 # as_fn_arith ARG...
16587 # ------------------
16588 # Perform arithmetic evaluation on the ARGs, and store the result in the
16589 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16590 # must be portable across $(()) and expr.
16591 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16592 eval 'as_fn_arith ()
16593 {
16594 as_val=$(( $* ))
16595 }'
16596 else
16597 as_fn_arith ()
16598 {
16599 as_val=`expr "$@" || test $? -eq 1`
16600 }
16601 fi # as_fn_arith
16602
16603
16604 if expr a : '\(a\)' >/dev/null 2>&1 &&
16605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16606 as_expr=expr
16607 else
16608 as_expr=false
16609 fi
16610
16611 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16612 as_basename=basename
16613 else
16614 as_basename=false
16615 fi
16616
16617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16618 as_dirname=dirname
16619 else
16620 as_dirname=false
16621 fi
16622
16623 as_me=`$as_basename -- "$0" ||
16624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16625 X"$0" : 'X\(//\)$' \| \
16626 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16627 $as_echo X/"$0" |
16628 sed '/^.*\/\([^/][^/]*\)\/*$/{
16629 s//\1/
16630 q
16631 }
16632 /^X\/\(\/\/\)$/{
16633 s//\1/
16634 q
16635 }
16636 /^X\/\(\/\).*/{
16637 s//\1/
16638 q
16639 }
16640 s/.*/./; q'`
16641
16642 # Avoid depending upon Character Ranges.
16643 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16644 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16645 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16646 as_cr_digits='0123456789'
16647 as_cr_alnum=$as_cr_Letters$as_cr_digits
16648
16649 ECHO_C= ECHO_N= ECHO_T=
16650 case `echo -n x` in #(((((
16651 -n*)
16652 case `echo 'xy\c'` in
16653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16654 xy) ECHO_C='\c';;
16655 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16656 ECHO_T=' ';;
16657 esac;;
16658 *)
16659 ECHO_N='-n';;
16660 esac
16661
16662 rm -f conf$$ conf$$.exe conf$$.file
16663 if test -d conf$$.dir; then
16664 rm -f conf$$.dir/conf$$.file
16665 else
16666 rm -f conf$$.dir
16667 mkdir conf$$.dir 2>/dev/null
16668 fi
16669 if (echo >conf$$.file) 2>/dev/null; then
16670 if ln -s conf$$.file conf$$ 2>/dev/null; then
16671 as_ln_s='ln -s'
16672 # ... but there are two gotchas:
16673 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16674 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16675 # In both cases, we have to default to `cp -pR'.
16676 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16677 as_ln_s='cp -pR'
16678 elif ln conf$$.file conf$$ 2>/dev/null; then
16679 as_ln_s=ln
16680 else
16681 as_ln_s='cp -pR'
16682 fi
16683 else
16684 as_ln_s='cp -pR'
16685 fi
16686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16687 rmdir conf$$.dir 2>/dev/null
16688
16689
16690 # as_fn_mkdir_p
16691 # -------------
16692 # Create "$as_dir" as a directory, including parents if necessary.
16693 as_fn_mkdir_p ()
16694 {
16695
16696 case $as_dir in #(
16697 -*) as_dir=./$as_dir;;
16698 esac
16699 test -d "$as_dir" || eval $as_mkdir_p || {
16700 as_dirs=
16701 while :; do
16702 case $as_dir in #(
16703 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16704 *) as_qdir=$as_dir;;
16705 esac
16706 as_dirs="'$as_qdir' $as_dirs"
16707 as_dir=`$as_dirname -- "$as_dir" ||
16708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16709 X"$as_dir" : 'X\(//\)[^/]' \| \
16710 X"$as_dir" : 'X\(//\)$' \| \
16711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16712 $as_echo X"$as_dir" |
16713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16714 s//\1/
16715 q
16716 }
16717 /^X\(\/\/\)[^/].*/{
16718 s//\1/
16719 q
16720 }
16721 /^X\(\/\/\)$/{
16722 s//\1/
16723 q
16724 }
16725 /^X\(\/\).*/{
16726 s//\1/
16727 q
16728 }
16729 s/.*/./; q'`
16730 test -d "$as_dir" && break
16731 done
16732 test -z "$as_dirs" || eval "mkdir $as_dirs"
16733 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16734
16735
16736 } # as_fn_mkdir_p
16737 if mkdir -p . 2>/dev/null; then
16738 as_mkdir_p='mkdir -p "$as_dir"'
16739 else
16740 test -d ./-p && rmdir ./-p
16741 as_mkdir_p=false
16742 fi
16743
16744
16745 # as_fn_executable_p FILE
16746 # -----------------------
16747 # Test if FILE is an executable regular file.
16748 as_fn_executable_p ()
16749 {
16750 test -f "$1" && test -x "$1"
16751 } # as_fn_executable_p
16752 as_test_x='test -x'
16753 as_executable_p=as_fn_executable_p
16754
16755 # Sed expression to map a string onto a valid CPP name.
16756 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16757
16758 # Sed expression to map a string onto a valid variable name.
16759 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16760
16761
16762 exec 6>&1
16763 ## ----------------------------------- ##
16764 ## Main body of $CONFIG_STATUS script. ##
16765 ## ----------------------------------- ##
16766 _ASEOF
16767 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16768
16769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16770 # Save the log message, to keep $0 and so on meaningful, and to
16771 # report actual input values of CONFIG_FILES etc. instead of their
16772 # values after options handling.
16773 ac_log="
16774 This file was extended by libccd $as_me 1.0, which was
16775 generated by GNU Autoconf 2.69. Invocation command line was
16776
16777 CONFIG_FILES = $CONFIG_FILES
16778 CONFIG_HEADERS = $CONFIG_HEADERS
16779 CONFIG_LINKS = $CONFIG_LINKS
16780 CONFIG_COMMANDS = $CONFIG_COMMANDS
16781 $ $0 $@
16782
16783 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16784 "
16785
16786 _ACEOF
16787
16788 case $ac_config_files in *"
16789 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16790 esac
16791
16792 case $ac_config_headers in *"
16793 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16794 esac
16795
16796
16797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16798 # Files that config.status was made for.
16799 config_files="$ac_config_files"
16800 config_headers="$ac_config_headers"
16801 config_commands="$ac_config_commands"
16802
16803 _ACEOF
16804
16805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16806 ac_cs_usage="\
16807 \`$as_me' instantiates files and other configuration actions
16808 from templates according to the current configuration. Unless the files
16809 and actions are specified as TAGs, all are instantiated by default.
16810
16811 Usage: $0 [OPTION]... [TAG]...
16812
16813 -h, --help print this help, then exit
16814 -V, --version print version number and configuration settings, then exit
16815 --config print configuration, then exit
16816 -q, --quiet, --silent
16817 do not print progress messages
16818 -d, --debug don't remove temporary files
16819 --recheck update $as_me by reconfiguring in the same conditions
16820 --file=FILE[:TEMPLATE]
16821 instantiate the configuration file FILE
16822 --header=FILE[:TEMPLATE]
16823 instantiate the configuration header FILE
16824
16825 Configuration files:
16826 $config_files
16827
16828 Configuration headers:
16829 $config_headers
16830
16831 Configuration commands:
16832 $config_commands
16833
16834 Report bugs to <[email protected]>."
16835
16836 _ACEOF
16837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16838 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16839 ac_cs_version="\\
16840 libccd config.status 1.0
16841 configured by $0, generated by GNU Autoconf 2.69,
16842 with options \\"\$ac_cs_config\\"
16843
16844 Copyright (C) 2012 Free Software Foundation, Inc.
16845 This config.status script is free software; the Free Software Foundation
16846 gives unlimited permission to copy, distribute and modify it."
16847
16848 ac_pwd='$ac_pwd'
16849 srcdir='$srcdir'
16850 INSTALL='$INSTALL'
16851 MKDIR_P='$MKDIR_P'
16852 AWK='$AWK'
16853 test -n "\$AWK" || AWK=awk
16854 _ACEOF
16855
16856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16857 # The default lists apply if the user does not specify any file.
16858 ac_need_defaults=:
16859 while test $# != 0
16860 do
16861 case $1 in
16862 --*=?*)
16863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16865 ac_shift=:
16866 ;;
16867 --*=)
16868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16869 ac_optarg=
16870 ac_shift=:
16871 ;;
16872 *)
16873 ac_option=$1
16874 ac_optarg=$2
16875 ac_shift=shift
16876 ;;
16877 esac
16878
16879 case $ac_option in
16880 # Handling of the options.
16881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16882 ac_cs_recheck=: ;;
16883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16884 $as_echo "$ac_cs_version"; exit ;;
16885 --config | --confi | --conf | --con | --co | --c )
16886 $as_echo "$ac_cs_config"; exit ;;
16887 --debug | --debu | --deb | --de | --d | -d )
16888 debug=: ;;
16889 --file | --fil | --fi | --f )
16890 $ac_shift
16891 case $ac_optarg in
16892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16893 '') as_fn_error $? "missing file argument" ;;
16894 esac
16895 as_fn_append CONFIG_FILES " '$ac_optarg'"
16896 ac_need_defaults=false;;
16897 --header | --heade | --head | --hea )
16898 $ac_shift
16899 case $ac_optarg in
16900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16901 esac
16902 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16903 ac_need_defaults=false;;
16904 --he | --h)
16905 # Conflict between --help and --header
16906 as_fn_error $? "ambiguous option: \`$1'
16907 Try \`$0 --help' for more information.";;
16908 --help | --hel | -h )
16909 $as_echo "$ac_cs_usage"; exit ;;
16910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16911 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16912 ac_cs_silent=: ;;
16913
16914 # This is an error.
16915 -*) as_fn_error $? "unrecognized option: \`$1'
16916 Try \`$0 --help' for more information." ;;
16917
16918 *) as_fn_append ac_config_targets " $1"
16919 ac_need_defaults=false ;;
16920
16921 esac
16922 shift
16923 done
16924
16925 ac_configure_extra_args=
16926
16927 if $ac_cs_silent; then
16928 exec 6>/dev/null
16929 ac_configure_extra_args="$ac_configure_extra_args --silent"
16930 fi
16931
16932 _ACEOF
16933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16934 if \$ac_cs_recheck; then
16935 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16936 shift
16937 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16938 CONFIG_SHELL='$SHELL'
16939 export CONFIG_SHELL
16940 exec "\$@"
16941 fi
16942
16943 _ACEOF
16944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16945 exec 5>>config.log
16946 {
16947 echo
16948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16949 ## Running $as_me. ##
16950 _ASBOX
16951 $as_echo "$ac_log"
16952 } >&5
16953
16954 _ACEOF
16955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16956 #
16957 # INIT-COMMANDS
16958 #
16959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16960
16961
16962 # The HP-UX ksh and POSIX shell print the target directory to stdout
16963 # if CDPATH is set.
16964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16965
16966 sed_quote_subst='$sed_quote_subst'
16967 double_quote_subst='$double_quote_subst'
16968 delay_variable_subst='$delay_variable_subst'
16969 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16970 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16971 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16972 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16973 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16974 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16975 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16976 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16977 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16978 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16979 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16980 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16981 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16982 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16983 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16984 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16985 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16986 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16987 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16988 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16989 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16990 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16991 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16992 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16993 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16994 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16995 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16996 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16997 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16998 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16999 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17000 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17001 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17002 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17003 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17004 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17005 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17006 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17007 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17008 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17009 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17010 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17011 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17012 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17013 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17014 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17015 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17016 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17017 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17018 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17019 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17020 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17021 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17022 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17023 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17024 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17025 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17026 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17027 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"`'
17028 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17029 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17030 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17031 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17032 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17033 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17034 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17035 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17036 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17037 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17038 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17039 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17040 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17041 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17042 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17043 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17044 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17045 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17046 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17047 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17048 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17049 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17050 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17051 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17052 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17053 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17054 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17055 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17056 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17057 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17058 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17059 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17060 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17061 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17062 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17063 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17064 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17065 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17066 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17067 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17068 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17069 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17070 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17071 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17072 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17073 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17074 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17075 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17076 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17077 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17078 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17079 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17080 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17081 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17082 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17083 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17084 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17085 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17086 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17087 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17088 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17089 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17090 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17091 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17092 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17093 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17094 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17095 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17096 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17097 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17098 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17099 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17100 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17101 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17102 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17103 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17104 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17105 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17106 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17107 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17108 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17109 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17110 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17111 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17112 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17113 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17114 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17115 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17116 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17117 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17118 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17119 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17120 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17121 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17122 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17123 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17124 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17125 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17126 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17127 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17128 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17129 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17130 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17131 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17132 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17133 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17134 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17135 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17136 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17137 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17138 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17139 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17140 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17141 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17142 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17143 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17144 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17145 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17146 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17147 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17148 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17149 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17150 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17151 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17152 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17153 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17154 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17155 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17156 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17157 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17158
17159 LTCC='$LTCC'
17160 LTCFLAGS='$LTCFLAGS'
17161 compiler='$compiler_DEFAULT'
17162
17163 # A function that is used when there is no print builtin or printf.
17164 func_fallback_echo ()
17165 {
17166 eval 'cat <<_LTECHO_EOF
17167 \$1
17168 _LTECHO_EOF'
17169 }
17170
17171 # Quote evaled strings.
17172 for var in SHELL \
17173 ECHO \
17174 PATH_SEPARATOR \
17175 SED \
17176 GREP \
17177 EGREP \
17178 FGREP \
17179 LD \
17180 NM \
17181 LN_S \
17182 lt_SP2NL \
17183 lt_NL2SP \
17184 reload_flag \
17185 OBJDUMP \
17186 deplibs_check_method \
17187 file_magic_cmd \
17188 file_magic_glob \
17189 want_nocaseglob \
17190 DLLTOOL \
17191 sharedlib_from_linklib_cmd \
17192 AR \
17193 AR_FLAGS \
17194 archiver_list_spec \
17195 STRIP \
17196 RANLIB \
17197 CC \
17198 CFLAGS \
17199 compiler \
17200 lt_cv_sys_global_symbol_pipe \
17201 lt_cv_sys_global_symbol_to_cdecl \
17202 lt_cv_sys_global_symbol_to_import \
17203 lt_cv_sys_global_symbol_to_c_name_address \
17204 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17205 lt_cv_nm_interface \
17206 nm_file_list_spec \
17207 lt_cv_truncate_bin \
17208 lt_prog_compiler_no_builtin_flag \
17209 lt_prog_compiler_pic \
17210 lt_prog_compiler_wl \
17211 lt_prog_compiler_static \
17212 lt_cv_prog_compiler_c_o \
17213 need_locks \
17214 MANIFEST_TOOL \
17215 DSYMUTIL \
17216 NMEDIT \
17217 LIPO \
17218 OTOOL \
17219 OTOOL64 \
17220 shrext_cmds \
17221 export_dynamic_flag_spec \
17222 whole_archive_flag_spec \
17223 compiler_needs_object \
17224 with_gnu_ld \
17225 allow_undefined_flag \
17226 no_undefined_flag \
17227 hardcode_libdir_flag_spec \
17228 hardcode_libdir_separator \
17229 exclude_expsyms \
17230 include_expsyms \
17231 file_list_spec \
17232 variables_saved_for_relink \
17233 libname_spec \
17234 library_names_spec \
17235 soname_spec \
17236 install_override_mode \
17237 finish_eval \
17238 old_striplib \
17239 striplib \
17240 compiler_lib_search_dirs \
17241 predep_objects \
17242 postdep_objects \
17243 predeps \
17244 postdeps \
17245 compiler_lib_search_path \
17246 LD_CXX \
17247 reload_flag_CXX \
17248 compiler_CXX \
17249 lt_prog_compiler_no_builtin_flag_CXX \
17250 lt_prog_compiler_pic_CXX \
17251 lt_prog_compiler_wl_CXX \
17252 lt_prog_compiler_static_CXX \
17253 lt_cv_prog_compiler_c_o_CXX \
17254 export_dynamic_flag_spec_CXX \
17255 whole_archive_flag_spec_CXX \
17256 compiler_needs_object_CXX \
17257 with_gnu_ld_CXX \
17258 allow_undefined_flag_CXX \
17259 no_undefined_flag_CXX \
17260 hardcode_libdir_flag_spec_CXX \
17261 hardcode_libdir_separator_CXX \
17262 exclude_expsyms_CXX \
17263 include_expsyms_CXX \
17264 file_list_spec_CXX \
17265 compiler_lib_search_dirs_CXX \
17266 predep_objects_CXX \
17267 postdep_objects_CXX \
17268 predeps_CXX \
17269 postdeps_CXX \
17270 compiler_lib_search_path_CXX; do
17271 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17272 *[\\\\\\\`\\"\\\$]*)
17273 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17274 ;;
17275 *)
17276 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17277 ;;
17278 esac
17279 done
17280
17281 # Double-quote double-evaled strings.
17282 for var in reload_cmds \
17283 old_postinstall_cmds \
17284 old_postuninstall_cmds \
17285 old_archive_cmds \
17286 extract_expsyms_cmds \
17287 old_archive_from_new_cmds \
17288 old_archive_from_expsyms_cmds \
17289 archive_cmds \
17290 archive_expsym_cmds \
17291 module_cmds \
17292 module_expsym_cmds \
17293 export_symbols_cmds \
17294 prelink_cmds \
17295 postlink_cmds \
17296 postinstall_cmds \
17297 postuninstall_cmds \
17298 finish_cmds \
17299 sys_lib_search_path_spec \
17300 configure_time_dlsearch_path \
17301 configure_time_lt_sys_library_path \
17302 reload_cmds_CXX \
17303 old_archive_cmds_CXX \
17304 old_archive_from_new_cmds_CXX \
17305 old_archive_from_expsyms_cmds_CXX \
17306 archive_cmds_CXX \
17307 archive_expsym_cmds_CXX \
17308 module_cmds_CXX \
17309 module_expsym_cmds_CXX \
17310 export_symbols_cmds_CXX \
17311 prelink_cmds_CXX \
17312 postlink_cmds_CXX; do
17313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17314 *[\\\\\\\`\\"\\\$]*)
17315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17316 ;;
17317 *)
17318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17319 ;;
17320 esac
17321 done
17322
17323 ac_aux_dir='$ac_aux_dir'
17324
17325 # See if we are running on zsh, and set the options that allow our
17326 # commands through without removal of \ escapes INIT.
17327 if test -n "\${ZSH_VERSION+set}"; then
17328 setopt NO_GLOB_SUBST
17329 fi
17330
17331
17332 PACKAGE='$PACKAGE'
17333 VERSION='$VERSION'
17334 RM='$RM'
17335 ofile='$ofile'
17336
17337
17338
17339
17340
17341
17342 _ACEOF
17343
17344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17345
17346 # Handling of arguments.
17347 for ac_config_target in $ac_config_targets
17348 do
17349 case $ac_config_target in
17350 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17351 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17352 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17353 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17354 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17355 "src/ccd/precision.h") CONFIG_FILES="$CONFIG_FILES src/ccd/precision.h" ;;
17356 "src/testsuites/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuites/Makefile" ;;
17357 "src/testsuites/cu/Makefile") CONFIG_FILES="$CONFIG_FILES src/testsuites/cu/Makefile" ;;
17358
17359 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17360 esac
17361 done
17362
17363
17364 # If the user did not use the arguments to specify the items to instantiate,
17365 # then the envvar interface is used. Set only those that are not.
17366 # We use the long form for the default assignment because of an extremely
17367 # bizarre bug on SunOS 4.1.3.
17368 if $ac_need_defaults; then
17369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17372 fi
17373
17374 # Have a temporary directory for convenience. Make it in the build tree
17375 # simply because there is no reason against having it here, and in addition,
17376 # creating and moving files from /tmp can sometimes cause problems.
17377 # Hook for its removal unless debugging.
17378 # Note that there is a small window in which the directory will not be cleaned:
17379 # after its creation but before its name has been assigned to `$tmp'.
17380 $debug ||
17381 {
17382 tmp= ac_tmp=
17383 trap 'exit_status=$?
17384 : "${ac_tmp:=$tmp}"
17385 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17386 ' 0
17387 trap 'as_fn_exit 1' 1 2 13 15
17388 }
17389 # Create a (secure) tmp directory for tmp files.
17390
17391 {
17392 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17393 test -d "$tmp"
17394 } ||
17395 {
17396 tmp=./conf$$-$RANDOM
17397 (umask 077 && mkdir "$tmp")
17398 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17399 ac_tmp=$tmp
17400
17401 # Set up the scripts for CONFIG_FILES section.
17402 # No need to generate them if there are no CONFIG_FILES.
17403 # This happens for instance with `./config.status config.h'.
17404 if test -n "$CONFIG_FILES"; then
17405
17406
17407 ac_cr=`echo X | tr X '\015'`
17408 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17409 # But we know of no other shell where ac_cr would be empty at this
17410 # point, so we can use a bashism as a fallback.
17411 if test "x$ac_cr" = x; then
17412 eval ac_cr=\$\'\\r\'
17413 fi
17414 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17415 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17416 ac_cs_awk_cr='\\r'
17417 else
17418 ac_cs_awk_cr=$ac_cr
17419 fi
17420
17421 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17422 _ACEOF
17423
17424
17425 {
17426 echo "cat >conf$$subs.awk <<_ACEOF" &&
17427 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17428 echo "_ACEOF"
17429 } >conf$$subs.sh ||
17430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17431 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17432 ac_delim='%!_!# '
17433 for ac_last_try in false false false false false :; do
17434 . ./conf$$subs.sh ||
17435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17436
17437 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17438 if test $ac_delim_n = $ac_delim_num; then
17439 break
17440 elif $ac_last_try; then
17441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17442 else
17443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17444 fi
17445 done
17446 rm -f conf$$subs.sh
17447
17448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17449 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17450 _ACEOF
17451 sed -n '
17452 h
17453 s/^/S["/; s/!.*/"]=/
17454 p
17455 g
17456 s/^[^!]*!//
17457 :repl
17458 t repl
17459 s/'"$ac_delim"'$//
17460 t delim
17461 :nl
17462 h
17463 s/\(.\{148\}\)..*/\1/
17464 t more1
17465 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17466 p
17467 n
17468 b repl
17469 :more1
17470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17471 p
17472 g
17473 s/.\{148\}//
17474 t nl
17475 :delim
17476 h
17477 s/\(.\{148\}\)..*/\1/
17478 t more2
17479 s/["\\]/\\&/g; s/^/"/; s/$/"/
17480 p
17481 b
17482 :more2
17483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17484 p
17485 g
17486 s/.\{148\}//
17487 t delim
17488 ' <conf$$subs.awk | sed '
17489 /^[^""]/{
17490 N
17491 s/\n//
17492 }
17493 ' >>$CONFIG_STATUS || ac_write_fail=1
17494 rm -f conf$$subs.awk
17495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17496 _ACAWK
17497 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17498 for (key in S) S_is_set[key] = 1
17499 FS = ""
17500
17501 }
17502 {
17503 line = $ 0
17504 nfields = split(line, field, "@")
17505 substed = 0
17506 len = length(field[1])
17507 for (i = 2; i < nfields; i++) {
17508 key = field[i]
17509 keylen = length(key)
17510 if (S_is_set[key]) {
17511 value = S[key]
17512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17513 len += length(value) + length(field[++i])
17514 substed = 1
17515 } else
17516 len += 1 + keylen
17517 }
17518
17519 print line
17520 }
17521
17522 _ACAWK
17523 _ACEOF
17524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17525 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17526 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17527 else
17528 cat
17529 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17530 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17531 _ACEOF
17532
17533 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17534 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17535 # trailing colons and then remove the whole line if VPATH becomes empty
17536 # (actually we leave an empty line to preserve line numbers).
17537 if test "x$srcdir" = x.; then
17538 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17539 h
17540 s///
17541 s/^/:/
17542 s/[ ]*$/:/
17543 s/:\$(srcdir):/:/g
17544 s/:\${srcdir}:/:/g
17545 s/:@srcdir@:/:/g
17546 s/^:*//
17547 s/:*$//
17548 x
17549 s/\(=[ ]*\).*/\1/
17550 G
17551 s/\n//
17552 s/^[^=]*=[ ]*$//
17553 }'
17554 fi
17555
17556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17557 fi # test -n "$CONFIG_FILES"
17558
17559 # Set up the scripts for CONFIG_HEADERS section.
17560 # No need to generate them if there are no CONFIG_HEADERS.
17561 # This happens for instance with `./config.status Makefile'.
17562 if test -n "$CONFIG_HEADERS"; then
17563 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17564 BEGIN {
17565 _ACEOF
17566
17567 # Transform confdefs.h into an awk script `defines.awk', embedded as
17568 # here-document in config.status, that substitutes the proper values into
17569 # config.h.in to produce config.h.
17570
17571 # Create a delimiter string that does not exist in confdefs.h, to ease
17572 # handling of long lines.
17573 ac_delim='%!_!# '
17574 for ac_last_try in false false :; do
17575 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17576 if test -z "$ac_tt"; then
17577 break
17578 elif $ac_last_try; then
17579 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17580 else
17581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17582 fi
17583 done
17584
17585 # For the awk script, D is an array of macro values keyed by name,
17586 # likewise P contains macro parameters if any. Preserve backslash
17587 # newline sequences.
17588
17589 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17590 sed -n '
17591 s/.\{148\}/&'"$ac_delim"'/g
17592 t rset
17593 :rset
17594 s/^[ ]*#[ ]*define[ ][ ]*/ /
17595 t def
17596 d
17597 :def
17598 s/\\$//
17599 t bsnl
17600 s/["\\]/\\&/g
17601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17602 D["\1"]=" \3"/p
17603 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17604 d
17605 :bsnl
17606 s/["\\]/\\&/g
17607 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17608 D["\1"]=" \3\\\\\\n"\\/p
17609 t cont
17610 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17611 t cont
17612 d
17613 :cont
17614 n
17615 s/.\{148\}/&'"$ac_delim"'/g
17616 t clear
17617 :clear
17618 s/\\$//
17619 t bsnlc
17620 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17621 d
17622 :bsnlc
17623 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17624 b cont
17625 ' <confdefs.h | sed '
17626 s/'"$ac_delim"'/"\\\
17627 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17628
17629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17630 for (key in D) D_is_set[key] = 1
17631 FS = ""
17632 }
17633 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17634 line = \$ 0
17635 split(line, arg, " ")
17636 if (arg[1] == "#") {
17637 defundef = arg[2]
17638 mac1 = arg[3]
17639 } else {
17640 defundef = substr(arg[1], 2)
17641 mac1 = arg[2]
17642 }
17643 split(mac1, mac2, "(") #)
17644 macro = mac2[1]
17645 prefix = substr(line, 1, index(line, defundef) - 1)
17646 if (D_is_set[macro]) {
17647 # Preserve the white space surrounding the "#".
17648 print prefix "define", macro P[macro] D[macro]
17649 next
17650 } else {
17651 # Replace #undef with comments. This is necessary, for example,
17652 # in the case of _POSIX_SOURCE, which is predefined and required
17653 # on some systems where configure will not decide to define it.
17654 if (defundef == "undef") {
17655 print "/*", prefix defundef, macro, "*/"
17656 next
17657 }
17658 }
17659 }
17660 { print }
17661 _ACAWK
17662 _ACEOF
17663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17664 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17665 fi # test -n "$CONFIG_HEADERS"
17666
17667
17668 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17669 shift
17670 for ac_tag
17671 do
17672 case $ac_tag in
17673 :[FHLC]) ac_mode=$ac_tag; continue;;
17674 esac
17675 case $ac_mode$ac_tag in
17676 :[FHL]*:*);;
17677 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17678 :[FH]-) ac_tag=-:-;;
17679 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17680 esac
17681 ac_save_IFS=$IFS
17682 IFS=:
17683 set x $ac_tag
17684 IFS=$ac_save_IFS
17685 shift
17686 ac_file=$1
17687 shift
17688
17689 case $ac_mode in
17690 :L) ac_source=$1;;
17691 :[FH])
17692 ac_file_inputs=
17693 for ac_f
17694 do
17695 case $ac_f in
17696 -) ac_f="$ac_tmp/stdin";;
17697 *) # Look for the file first in the build tree, then in the source tree
17698 # (if the path is not absolute). The absolute path cannot be DOS-style,
17699 # because $ac_f cannot contain `:'.
17700 test -f "$ac_f" ||
17701 case $ac_f in
17702 [\\/$]*) false;;
17703 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17704 esac ||
17705 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17706 esac
17707 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17708 as_fn_append ac_file_inputs " '$ac_f'"
17709 done
17710
17711 # Let's still pretend it is `configure' which instantiates (i.e., don't
17712 # use $as_me), people would be surprised to read:
17713 # /* config.h. Generated by config.status. */
17714 configure_input='Generated from '`
17715 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17716 `' by configure.'
17717 if test x"$ac_file" != x-; then
17718 configure_input="$ac_file. $configure_input"
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17720 $as_echo "$as_me: creating $ac_file" >&6;}
17721 fi
17722 # Neutralize special characters interpreted by sed in replacement strings.
17723 case $configure_input in #(
17724 *\&* | *\|* | *\\* )
17725 ac_sed_conf_input=`$as_echo "$configure_input" |
17726 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17727 *) ac_sed_conf_input=$configure_input;;
17728 esac
17729
17730 case $ac_tag in
17731 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17733 esac
17734 ;;
17735 esac
17736
17737 ac_dir=`$as_dirname -- "$ac_file" ||
17738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17739 X"$ac_file" : 'X\(//\)[^/]' \| \
17740 X"$ac_file" : 'X\(//\)$' \| \
17741 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17742 $as_echo X"$ac_file" |
17743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17744 s//\1/
17745 q
17746 }
17747 /^X\(\/\/\)[^/].*/{
17748 s//\1/
17749 q
17750 }
17751 /^X\(\/\/\)$/{
17752 s//\1/
17753 q
17754 }
17755 /^X\(\/\).*/{
17756 s//\1/
17757 q
17758 }
17759 s/.*/./; q'`
17760 as_dir="$ac_dir"; as_fn_mkdir_p
17761 ac_builddir=.
17762
17763 case "$ac_dir" in
17764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17765 *)
17766 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17767 # A ".." for each directory in $ac_dir_suffix.
17768 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17769 case $ac_top_builddir_sub in
17770 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17771 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17772 esac ;;
17773 esac
17774 ac_abs_top_builddir=$ac_pwd
17775 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17776 # for backward compatibility:
17777 ac_top_builddir=$ac_top_build_prefix
17778
17779 case $srcdir in
17780 .) # We are building in place.
17781 ac_srcdir=.
17782 ac_top_srcdir=$ac_top_builddir_sub
17783 ac_abs_top_srcdir=$ac_pwd ;;
17784 [\\/]* | ?:[\\/]* ) # Absolute name.
17785 ac_srcdir=$srcdir$ac_dir_suffix;
17786 ac_top_srcdir=$srcdir
17787 ac_abs_top_srcdir=$srcdir ;;
17788 *) # Relative name.
17789 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17790 ac_top_srcdir=$ac_top_build_prefix$srcdir
17791 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17792 esac
17793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17794
17795
17796 case $ac_mode in
17797 :F)
17798 #
17799 # CONFIG_FILE
17800 #
17801
17802 case $INSTALL in
17803 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17804 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17805 esac
17806 ac_MKDIR_P=$MKDIR_P
17807 case $MKDIR_P in
17808 [\\/$]* | ?:[\\/]* ) ;;
17809 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17810 esac
17811 _ACEOF
17812
17813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814 # If the template does not know about datarootdir, expand it.
17815 # FIXME: This hack should be removed a few years after 2.60.
17816 ac_datarootdir_hack=; ac_datarootdir_seen=
17817 ac_sed_dataroot='
17818 /datarootdir/ {
17819 p
17820 q
17821 }
17822 /@datadir@/p
17823 /@docdir@/p
17824 /@infodir@/p
17825 /@localedir@/p
17826 /@mandir@/p'
17827 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17828 *datarootdir*) ac_datarootdir_seen=yes;;
17829 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17831 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17832 _ACEOF
17833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17834 ac_datarootdir_hack='
17835 s&@datadir@&$datadir&g
17836 s&@docdir@&$docdir&g
17837 s&@infodir@&$infodir&g
17838 s&@localedir@&$localedir&g
17839 s&@mandir@&$mandir&g
17840 s&\\\${datarootdir}&$datarootdir&g' ;;
17841 esac
17842 _ACEOF
17843
17844 # Neutralize VPATH when `$srcdir' = `.'.
17845 # Shell code in configure.ac might set extrasub.
17846 # FIXME: do we really want to maintain this feature?
17847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17848 ac_sed_extra="$ac_vpsub
17849 $extrasub
17850 _ACEOF
17851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17852 :t
17853 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17854 s|@configure_input@|$ac_sed_conf_input|;t t
17855 s&@top_builddir@&$ac_top_builddir_sub&;t t
17856 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17857 s&@srcdir@&$ac_srcdir&;t t
17858 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17859 s&@top_srcdir@&$ac_top_srcdir&;t t
17860 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17861 s&@builddir@&$ac_builddir&;t t
17862 s&@abs_builddir@&$ac_abs_builddir&;t t
17863 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17864 s&@INSTALL@&$ac_INSTALL&;t t
17865 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17866 $ac_datarootdir_hack
17867 "
17868 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17869 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17870
17871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17872 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17874 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17876 which seems to be undefined. Please make sure it is defined" >&5
17877 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17878 which seems to be undefined. Please make sure it is defined" >&2;}
17879
17880 rm -f "$ac_tmp/stdin"
17881 case $ac_file in
17882 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17883 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17884 esac \
17885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17886 ;;
17887 :H)
17888 #
17889 # CONFIG_HEADER
17890 #
17891 if test x"$ac_file" != x-; then
17892 {
17893 $as_echo "/* $configure_input */" \
17894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17895 } >"$ac_tmp/config.h" \
17896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17897 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17899 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17900 else
17901 rm -f "$ac_file"
17902 mv "$ac_tmp/config.h" "$ac_file" \
17903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17904 fi
17905 else
17906 $as_echo "/* $configure_input */" \
17907 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17908 || as_fn_error $? "could not create -" "$LINENO" 5
17909 fi
17910 # Compute "$ac_file"'s index in $config_headers.
17911 _am_arg="$ac_file"
17912 _am_stamp_count=1
17913 for _am_header in $config_headers :; do
17914 case $_am_header in
17915 $_am_arg | $_am_arg:* )
17916 break ;;
17917 * )
17918 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17919 esac
17920 done
17921 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17922 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17923 X"$_am_arg" : 'X\(//\)[^/]' \| \
17924 X"$_am_arg" : 'X\(//\)$' \| \
17925 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17926 $as_echo X"$_am_arg" |
17927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17928 s//\1/
17929 q
17930 }
17931 /^X\(\/\/\)[^/].*/{
17932 s//\1/
17933 q
17934 }
17935 /^X\(\/\/\)$/{
17936 s//\1/
17937 q
17938 }
17939 /^X\(\/\).*/{
17940 s//\1/
17941 q
17942 }
17943 s/.*/./; q'`/stamp-h$_am_stamp_count
17944 ;;
17945
17946 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17947 $as_echo "$as_me: executing $ac_file commands" >&6;}
17948 ;;
17949 esac
17950
17951
17952 case $ac_file$ac_mode in
17953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17954 # Older Autoconf quotes --file arguments for eval, but not when files
17955 # are listed without --file. Let's play safe and only enable the eval
17956 # if we detect the quoting.
17957 case $CONFIG_FILES in
17958 *\'*) eval set x "$CONFIG_FILES" ;;
17959 *) set x $CONFIG_FILES ;;
17960 esac
17961 shift
17962 for mf
17963 do
17964 # Strip MF so we end up with the name of the file.
17965 mf=`echo "$mf" | sed -e 's/:.*$//'`
17966 # Check whether this is an Automake generated Makefile or not.
17967 # We used to match only the files named 'Makefile.in', but
17968 # some people rename them; so instead we look at the file content.
17969 # Grep'ing the first line is not enough: some people post-process
17970 # each Makefile.in and add a new line on top of each file to say so.
17971 # Grep'ing the whole file is not good either: AIX grep has a line
17972 # limit of 2048, but all sed's we know have understand at least 4000.
17973 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17974 dirpart=`$as_dirname -- "$mf" ||
17975 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17976 X"$mf" : 'X\(//\)[^/]' \| \
17977 X"$mf" : 'X\(//\)$' \| \
17978 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17979 $as_echo X"$mf" |
17980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17981 s//\1/
17982 q
17983 }
17984 /^X\(\/\/\)[^/].*/{
17985 s//\1/
17986 q
17987 }
17988 /^X\(\/\/\)$/{
17989 s//\1/
17990 q
17991 }
17992 /^X\(\/\).*/{
17993 s//\1/
17994 q
17995 }
17996 s/.*/./; q'`
17997 else
17998 continue
17999 fi
18000 # Extract the definition of DEPDIR, am__include, and am__quote
18001 # from the Makefile without running 'make'.
18002 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18003 test -z "$DEPDIR" && continue
18004 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18005 test -z "$am__include" && continue
18006 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18007 # Find all dependency output files, they are included files with
18008 # $(DEPDIR) in their names. We invoke sed twice because it is the
18009 # simplest approach to changing $(DEPDIR) to its actual value in the
18010 # expansion.
18011 for file in `sed -n "
18012 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18013 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18014 # Make sure the directory exists.
18015 test -f "$dirpart/$file" && continue
18016 fdir=`$as_dirname -- "$file" ||
18017 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18018 X"$file" : 'X\(//\)[^/]' \| \
18019 X"$file" : 'X\(//\)$' \| \
18020 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18021 $as_echo X"$file" |
18022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18023 s//\1/
18024 q
18025 }
18026 /^X\(\/\/\)[^/].*/{
18027 s//\1/
18028 q
18029 }
18030 /^X\(\/\/\)$/{
18031 s//\1/
18032 q
18033 }
18034 /^X\(\/\).*/{
18035 s//\1/
18036 q
18037 }
18038 s/.*/./; q'`
18039 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18040 # echo "creating $dirpart/$file"
18041 echo '# dummy' > "$dirpart/$file"
18042 done
18043 done
18044 }
18045 ;;
18046 "libtool":C)
18047
18048 # See if we are running on zsh, and set the options that allow our
18049 # commands through without removal of \ escapes.
18050 if test -n "${ZSH_VERSION+set}"; then
18051 setopt NO_GLOB_SUBST
18052 fi
18053
18054 cfgfile=${ofile}T
18055 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18056 $RM "$cfgfile"
18057
18058 cat <<_LT_EOF >> "$cfgfile"
18059 #! $SHELL
18060 # Generated automatically by $as_me ($PACKAGE) $VERSION
18061 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18062 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18063
18064 # Provide generalized library-building support services.
18065 # Written by Gordon Matzigkeit, 1996
18066
18067 # Copyright (C) 2014 Free Software Foundation, Inc.
18068 # This is free software; see the source for copying conditions. There is NO
18069 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18070
18071 # GNU Libtool is free software; you can redistribute it and/or modify
18072 # it under the terms of the GNU General Public License as published by
18073 # the Free Software Foundation; either version 2 of of the License, or
18074 # (at your option) any later version.
18075 #
18076 # As a special exception to the GNU General Public License, if you
18077 # distribute this file as part of a program or library that is built
18078 # using GNU Libtool, you may include this file under the same
18079 # distribution terms that you use for the rest of that program.
18080 #
18081 # GNU Libtool is distributed in the hope that it will be useful, but
18082 # WITHOUT ANY WARRANTY; without even the implied warranty of
18083 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18084 # GNU General Public License for more details.
18085 #
18086 # You should have received a copy of the GNU General Public License
18087 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18088
18089
18090 # The names of the tagged configurations supported by this script.
18091 available_tags='CXX '
18092
18093 # Configured defaults for sys_lib_dlsearch_path munging.
18094 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18095
18096 # ### BEGIN LIBTOOL CONFIG
18097
18098 # Whether or not to build shared libraries.
18099 build_libtool_libs=$enable_shared
18100
18101 # Which release of libtool.m4 was used?
18102 macro_version=$macro_version
18103 macro_revision=$macro_revision
18104
18105 # Whether or not to build static libraries.
18106 build_old_libs=$enable_static
18107
18108 # What type of objects to build.
18109 pic_mode=$pic_mode
18110
18111 # Whether or not to optimize for fast installation.
18112 fast_install=$enable_fast_install
18113
18114 # Shared archive member basename,for filename based shared library versioning on AIX.
18115 shared_archive_member_spec=$shared_archive_member_spec
18116
18117 # Shell to use when invoking shell scripts.
18118 SHELL=$lt_SHELL
18119
18120 # An echo program that protects backslashes.
18121 ECHO=$lt_ECHO
18122
18123 # The PATH separator for the build system.
18124 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18125
18126 # The host system.
18127 host_alias=$host_alias
18128 host=$host
18129 host_os=$host_os
18130
18131 # The build system.
18132 build_alias=$build_alias
18133 build=$build
18134 build_os=$build_os
18135
18136 # A sed program that does not truncate output.
18137 SED=$lt_SED
18138
18139 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18140 Xsed="\$SED -e 1s/^X//"
18141
18142 # A grep program that handles long lines.
18143 GREP=$lt_GREP
18144
18145 # An ERE matcher.
18146 EGREP=$lt_EGREP
18147
18148 # A literal string matcher.
18149 FGREP=$lt_FGREP
18150
18151 # A BSD- or MS-compatible name lister.
18152 NM=$lt_NM
18153
18154 # Whether we need soft or hard links.
18155 LN_S=$lt_LN_S
18156
18157 # What is the maximum length of a command?
18158 max_cmd_len=$max_cmd_len
18159
18160 # Object file suffix (normally "o").
18161 objext=$ac_objext
18162
18163 # Executable file suffix (normally "").
18164 exeext=$exeext
18165
18166 # whether the shell understands "unset".
18167 lt_unset=$lt_unset
18168
18169 # turn spaces into newlines.
18170 SP2NL=$lt_lt_SP2NL
18171
18172 # turn newlines into spaces.
18173 NL2SP=$lt_lt_NL2SP
18174
18175 # convert \$build file names to \$host format.
18176 to_host_file_cmd=$lt_cv_to_host_file_cmd
18177
18178 # convert \$build files to toolchain format.
18179 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18180
18181 # An object symbol dumper.
18182 OBJDUMP=$lt_OBJDUMP
18183
18184 # Method to check whether dependent libraries are shared objects.
18185 deplibs_check_method=$lt_deplibs_check_method
18186
18187 # Command to use when deplibs_check_method = "file_magic".
18188 file_magic_cmd=$lt_file_magic_cmd
18189
18190 # How to find potential files when deplibs_check_method = "file_magic".
18191 file_magic_glob=$lt_file_magic_glob
18192
18193 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18194 want_nocaseglob=$lt_want_nocaseglob
18195
18196 # DLL creation program.
18197 DLLTOOL=$lt_DLLTOOL
18198
18199 # Command to associate shared and link libraries.
18200 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18201
18202 # The archiver.
18203 AR=$lt_AR
18204
18205 # Flags to create an archive.
18206 AR_FLAGS=$lt_AR_FLAGS
18207
18208 # How to feed a file listing to the archiver.
18209 archiver_list_spec=$lt_archiver_list_spec
18210
18211 # A symbol stripping program.
18212 STRIP=$lt_STRIP
18213
18214 # Commands used to install an old-style archive.
18215 RANLIB=$lt_RANLIB
18216 old_postinstall_cmds=$lt_old_postinstall_cmds
18217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18218
18219 # Whether to use a lock for old archive extraction.
18220 lock_old_archive_extraction=$lock_old_archive_extraction
18221
18222 # A C compiler.
18223 LTCC=$lt_CC
18224
18225 # LTCC compiler flags.
18226 LTCFLAGS=$lt_CFLAGS
18227
18228 # Take the output of nm and produce a listing of raw symbols and C names.
18229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18230
18231 # Transform the output of nm in a proper C declaration.
18232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18233
18234 # Transform the output of nm into a list of symbols to manually relocate.
18235 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18236
18237 # Transform the output of nm in a C name address pair.
18238 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18239
18240 # Transform the output of nm in a C name address pair when lib prefix is needed.
18241 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18242
18243 # The name lister interface.
18244 nm_interface=$lt_lt_cv_nm_interface
18245
18246 # Specify filename containing input files for \$NM.
18247 nm_file_list_spec=$lt_nm_file_list_spec
18248
18249 # The root where to search for dependent libraries,and where our libraries should be installed.
18250 lt_sysroot=$lt_sysroot
18251
18252 # Command to truncate a binary pipe.
18253 lt_truncate_bin=$lt_lt_cv_truncate_bin
18254
18255 # The name of the directory that contains temporary libtool files.
18256 objdir=$objdir
18257
18258 # Used to examine libraries when file_magic_cmd begins with "file".
18259 MAGIC_CMD=$MAGIC_CMD
18260
18261 # Must we lock files when doing compilation?
18262 need_locks=$lt_need_locks
18263
18264 # Manifest tool.
18265 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18266
18267 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18268 DSYMUTIL=$lt_DSYMUTIL
18269
18270 # Tool to change global to local symbols on Mac OS X.
18271 NMEDIT=$lt_NMEDIT
18272
18273 # Tool to manipulate fat objects and archives on Mac OS X.
18274 LIPO=$lt_LIPO
18275
18276 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18277 OTOOL=$lt_OTOOL
18278
18279 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18280 OTOOL64=$lt_OTOOL64
18281
18282 # Old archive suffix (normally "a").
18283 libext=$libext
18284
18285 # Shared library suffix (normally ".so").
18286 shrext_cmds=$lt_shrext_cmds
18287
18288 # The commands to extract the exported symbol list from a shared archive.
18289 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18290
18291 # Variables whose values should be saved in libtool wrapper scripts and
18292 # restored at link time.
18293 variables_saved_for_relink=$lt_variables_saved_for_relink
18294
18295 # Do we need the "lib" prefix for modules?
18296 need_lib_prefix=$need_lib_prefix
18297
18298 # Do we need a version for libraries?
18299 need_version=$need_version
18300
18301 # Library versioning type.
18302 version_type=$version_type
18303
18304 # Shared library runtime path variable.
18305 runpath_var=$runpath_var
18306
18307 # Shared library path variable.
18308 shlibpath_var=$shlibpath_var
18309
18310 # Is shlibpath searched before the hard-coded library search path?
18311 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18312
18313 # Format of library name prefix.
18314 libname_spec=$lt_libname_spec
18315
18316 # List of archive names. First name is the real one, the rest are links.
18317 # The last name is the one that the linker finds with -lNAME
18318 library_names_spec=$lt_library_names_spec
18319
18320 # The coded name of the library, if different from the real name.
18321 soname_spec=$lt_soname_spec
18322
18323 # Permission mode override for installation of shared libraries.
18324 install_override_mode=$lt_install_override_mode
18325
18326 # Command to use after installation of a shared archive.
18327 postinstall_cmds=$lt_postinstall_cmds
18328
18329 # Command to use after uninstallation of a shared archive.
18330 postuninstall_cmds=$lt_postuninstall_cmds
18331
18332 # Commands used to finish a libtool library installation in a directory.
18333 finish_cmds=$lt_finish_cmds
18334
18335 # As "finish_cmds", except a single script fragment to be evaled but
18336 # not shown.
18337 finish_eval=$lt_finish_eval
18338
18339 # Whether we should hardcode library paths into libraries.
18340 hardcode_into_libs=$hardcode_into_libs
18341
18342 # Compile-time system search path for libraries.
18343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18344
18345 # Detected run-time system search path for libraries.
18346 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18347
18348 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18349 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18350
18351 # Whether dlopen is supported.
18352 dlopen_support=$enable_dlopen
18353
18354 # Whether dlopen of programs is supported.
18355 dlopen_self=$enable_dlopen_self
18356
18357 # Whether dlopen of statically linked programs is supported.
18358 dlopen_self_static=$enable_dlopen_self_static
18359
18360 # Commands to strip libraries.
18361 old_striplib=$lt_old_striplib
18362 striplib=$lt_striplib
18363
18364
18365 # The linker used to build libraries.
18366 LD=$lt_LD
18367
18368 # How to create reloadable object files.
18369 reload_flag=$lt_reload_flag
18370 reload_cmds=$lt_reload_cmds
18371
18372 # Commands used to build an old-style archive.
18373 old_archive_cmds=$lt_old_archive_cmds
18374
18375 # A language specific compiler.
18376 CC=$lt_compiler
18377
18378 # Is the compiler the GNU compiler?
18379 with_gcc=$GCC
18380
18381 # Compiler flag to turn off builtin functions.
18382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18383
18384 # Additional compiler flags for building library objects.
18385 pic_flag=$lt_lt_prog_compiler_pic
18386
18387 # How to pass a linker flag through the compiler.
18388 wl=$lt_lt_prog_compiler_wl
18389
18390 # Compiler flag to prevent dynamic linking.
18391 link_static_flag=$lt_lt_prog_compiler_static
18392
18393 # Does compiler simultaneously support -c and -o options?
18394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18395
18396 # Whether or not to add -lc for building shared libraries.
18397 build_libtool_need_lc=$archive_cmds_need_lc
18398
18399 # Whether or not to disallow shared libs when runtime libs are static.
18400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18401
18402 # Compiler flag to allow reflexive dlopens.
18403 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18404
18405 # Compiler flag to generate shared objects directly from archives.
18406 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18407
18408 # Whether the compiler copes with passing no objects directly.
18409 compiler_needs_object=$lt_compiler_needs_object
18410
18411 # Create an old-style archive from a shared archive.
18412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18413
18414 # Create a temporary old-style archive to link instead of a shared archive.
18415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18416
18417 # Commands used to build a shared archive.
18418 archive_cmds=$lt_archive_cmds
18419 archive_expsym_cmds=$lt_archive_expsym_cmds
18420
18421 # Commands used to build a loadable module if different from building
18422 # a shared archive.
18423 module_cmds=$lt_module_cmds
18424 module_expsym_cmds=$lt_module_expsym_cmds
18425
18426 # Whether we are building with GNU ld or not.
18427 with_gnu_ld=$lt_with_gnu_ld
18428
18429 # Flag that allows shared libraries with undefined symbols to be built.
18430 allow_undefined_flag=$lt_allow_undefined_flag
18431
18432 # Flag that enforces no undefined symbols.
18433 no_undefined_flag=$lt_no_undefined_flag
18434
18435 # Flag to hardcode \$libdir into a binary during linking.
18436 # This must work even if \$libdir does not exist
18437 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18438
18439 # Whether we need a single "-rpath" flag with a separated argument.
18440 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18441
18442 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18443 # DIR into the resulting binary.
18444 hardcode_direct=$hardcode_direct
18445
18446 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18447 # DIR into the resulting binary and the resulting library dependency is
18448 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18449 # library is relocated.
18450 hardcode_direct_absolute=$hardcode_direct_absolute
18451
18452 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18453 # into the resulting binary.
18454 hardcode_minus_L=$hardcode_minus_L
18455
18456 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18457 # into the resulting binary.
18458 hardcode_shlibpath_var=$hardcode_shlibpath_var
18459
18460 # Set to "yes" if building a shared library automatically hardcodes DIR
18461 # into the library and all subsequent libraries and executables linked
18462 # against it.
18463 hardcode_automatic=$hardcode_automatic
18464
18465 # Set to yes if linker adds runtime paths of dependent libraries
18466 # to runtime path list.
18467 inherit_rpath=$inherit_rpath
18468
18469 # Whether libtool must link a program against all its dependency libraries.
18470 link_all_deplibs=$link_all_deplibs
18471
18472 # Set to "yes" if exported symbols are required.
18473 always_export_symbols=$always_export_symbols
18474
18475 # The commands to list exported symbols.
18476 export_symbols_cmds=$lt_export_symbols_cmds
18477
18478 # Symbols that should not be listed in the preloaded symbols.
18479 exclude_expsyms=$lt_exclude_expsyms
18480
18481 # Symbols that must always be exported.
18482 include_expsyms=$lt_include_expsyms
18483
18484 # Commands necessary for linking programs (against libraries) with templates.
18485 prelink_cmds=$lt_prelink_cmds
18486
18487 # Commands necessary for finishing linking programs.
18488 postlink_cmds=$lt_postlink_cmds
18489
18490 # Specify filename containing input files.
18491 file_list_spec=$lt_file_list_spec
18492
18493 # How to hardcode a shared library path into an executable.
18494 hardcode_action=$hardcode_action
18495
18496 # The directories searched by this compiler when creating a shared library.
18497 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18498
18499 # Dependencies to place before and after the objects being linked to
18500 # create a shared library.
18501 predep_objects=$lt_predep_objects
18502 postdep_objects=$lt_postdep_objects
18503 predeps=$lt_predeps
18504 postdeps=$lt_postdeps
18505
18506 # The library search path used internally by the compiler when linking
18507 # a shared library.
18508 compiler_lib_search_path=$lt_compiler_lib_search_path
18509
18510 # ### END LIBTOOL CONFIG
18511
18512 _LT_EOF
18513
18514 cat <<'_LT_EOF' >> "$cfgfile"
18515
18516 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18517
18518 # func_munge_path_list VARIABLE PATH
18519 # -----------------------------------
18520 # VARIABLE is name of variable containing _space_ separated list of
18521 # directories to be munged by the contents of PATH, which is string
18522 # having a format:
18523 # "DIR[:DIR]:"
18524 # string "DIR[ DIR]" will be prepended to VARIABLE
18525 # ":DIR[:DIR]"
18526 # string "DIR[ DIR]" will be appended to VARIABLE
18527 # "DIRP[:DIRP]::[DIRA:]DIRA"
18528 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18529 # "DIRA[ DIRA]" will be appended to VARIABLE
18530 # "DIR[:DIR]"
18531 # VARIABLE will be replaced by "DIR[ DIR]"
18532 func_munge_path_list ()
18533 {
18534 case x$2 in
18535 x)
18536 ;;
18537 *:)
18538 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18539 ;;
18540 x:*)
18541 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18542 ;;
18543 *::*)
18544 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18545 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18546 ;;
18547 *)
18548 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18549 ;;
18550 esac
18551 }
18552
18553
18554 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18555 func_cc_basename ()
18556 {
18557 for cc_temp in $*""; do
18558 case $cc_temp in
18559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18561 \-*) ;;
18562 *) break;;
18563 esac
18564 done
18565 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18566 }
18567
18568
18569 # ### END FUNCTIONS SHARED WITH CONFIGURE
18570
18571 _LT_EOF
18572
18573 case $host_os in
18574 aix3*)
18575 cat <<\_LT_EOF >> "$cfgfile"
18576 # AIX sometimes has problems with the GCC collect2 program. For some
18577 # reason, if we set the COLLECT_NAMES environment variable, the problems
18578 # vanish in a puff of smoke.
18579 if test set != "${COLLECT_NAMES+set}"; then
18580 COLLECT_NAMES=
18581 export COLLECT_NAMES
18582 fi
18583 _LT_EOF
18584 ;;
18585 esac
18586
18587
18588 ltmain=$ac_aux_dir/ltmain.sh
18589
18590
18591 # We use sed instead of cat because bash on DJGPP gets confused if
18592 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18593 # text mode, it properly converts lines to CR/LF. This bash problem
18594 # is reportedly fixed, but why not run on old versions too?
18595 sed '$q' "$ltmain" >> "$cfgfile" \
18596 || (rm -f "$cfgfile"; exit 1)
18597
18598 mv -f "$cfgfile" "$ofile" ||
18599 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18600 chmod +x "$ofile"
18601
18602
18603 cat <<_LT_EOF >> "$ofile"
18604
18605 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18606
18607 # The linker used to build libraries.
18608 LD=$lt_LD_CXX
18609
18610 # How to create reloadable object files.
18611 reload_flag=$lt_reload_flag_CXX
18612 reload_cmds=$lt_reload_cmds_CXX
18613
18614 # Commands used to build an old-style archive.
18615 old_archive_cmds=$lt_old_archive_cmds_CXX
18616
18617 # A language specific compiler.
18618 CC=$lt_compiler_CXX
18619
18620 # Is the compiler the GNU compiler?
18621 with_gcc=$GCC_CXX
18622
18623 # Compiler flag to turn off builtin functions.
18624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18625
18626 # Additional compiler flags for building library objects.
18627 pic_flag=$lt_lt_prog_compiler_pic_CXX
18628
18629 # How to pass a linker flag through the compiler.
18630 wl=$lt_lt_prog_compiler_wl_CXX
18631
18632 # Compiler flag to prevent dynamic linking.
18633 link_static_flag=$lt_lt_prog_compiler_static_CXX
18634
18635 # Does compiler simultaneously support -c and -o options?
18636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18637
18638 # Whether or not to add -lc for building shared libraries.
18639 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18640
18641 # Whether or not to disallow shared libs when runtime libs are static.
18642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18643
18644 # Compiler flag to allow reflexive dlopens.
18645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18646
18647 # Compiler flag to generate shared objects directly from archives.
18648 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18649
18650 # Whether the compiler copes with passing no objects directly.
18651 compiler_needs_object=$lt_compiler_needs_object_CXX
18652
18653 # Create an old-style archive from a shared archive.
18654 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18655
18656 # Create a temporary old-style archive to link instead of a shared archive.
18657 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18658
18659 # Commands used to build a shared archive.
18660 archive_cmds=$lt_archive_cmds_CXX
18661 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18662
18663 # Commands used to build a loadable module if different from building
18664 # a shared archive.
18665 module_cmds=$lt_module_cmds_CXX
18666 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18667
18668 # Whether we are building with GNU ld or not.
18669 with_gnu_ld=$lt_with_gnu_ld_CXX
18670
18671 # Flag that allows shared libraries with undefined symbols to be built.
18672 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18673
18674 # Flag that enforces no undefined symbols.
18675 no_undefined_flag=$lt_no_undefined_flag_CXX
18676
18677 # Flag to hardcode \$libdir into a binary during linking.
18678 # This must work even if \$libdir does not exist
18679 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18680
18681 # Whether we need a single "-rpath" flag with a separated argument.
18682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18683
18684 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18685 # DIR into the resulting binary.
18686 hardcode_direct=$hardcode_direct_CXX
18687
18688 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18689 # DIR into the resulting binary and the resulting library dependency is
18690 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18691 # library is relocated.
18692 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18693
18694 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18695 # into the resulting binary.
18696 hardcode_minus_L=$hardcode_minus_L_CXX
18697
18698 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18699 # into the resulting binary.
18700 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18701
18702 # Set to "yes" if building a shared library automatically hardcodes DIR
18703 # into the library and all subsequent libraries and executables linked
18704 # against it.
18705 hardcode_automatic=$hardcode_automatic_CXX
18706
18707 # Set to yes if linker adds runtime paths of dependent libraries
18708 # to runtime path list.
18709 inherit_rpath=$inherit_rpath_CXX
18710
18711 # Whether libtool must link a program against all its dependency libraries.
18712 link_all_deplibs=$link_all_deplibs_CXX
18713
18714 # Set to "yes" if exported symbols are required.
18715 always_export_symbols=$always_export_symbols_CXX
18716
18717 # The commands to list exported symbols.
18718 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18719
18720 # Symbols that should not be listed in the preloaded symbols.
18721 exclude_expsyms=$lt_exclude_expsyms_CXX
18722
18723 # Symbols that must always be exported.
18724 include_expsyms=$lt_include_expsyms_CXX
18725
18726 # Commands necessary for linking programs (against libraries) with templates.
18727 prelink_cmds=$lt_prelink_cmds_CXX
18728
18729 # Commands necessary for finishing linking programs.
18730 postlink_cmds=$lt_postlink_cmds_CXX
18731
18732 # Specify filename containing input files.
18733 file_list_spec=$lt_file_list_spec_CXX
18734
18735 # How to hardcode a shared library path into an executable.
18736 hardcode_action=$hardcode_action_CXX
18737
18738 # The directories searched by this compiler when creating a shared library.
18739 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18740
18741 # Dependencies to place before and after the objects being linked to
18742 # create a shared library.
18743 predep_objects=$lt_predep_objects_CXX
18744 postdep_objects=$lt_postdep_objects_CXX
18745 predeps=$lt_predeps_CXX
18746 postdeps=$lt_postdeps_CXX
18747
18748 # The library search path used internally by the compiler when linking
18749 # a shared library.
18750 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18751
18752 # ### END LIBTOOL TAG CONFIG: CXX
18753 _LT_EOF
18754
18755 ;;
18756
18757 esac
18758 done # for ac_tag
18759
18760
18761 as_fn_exit 0
18762 _ACEOF
18763 ac_clean_files=$ac_clean_files_save
18764
18765 test $ac_write_fail = 0 ||
18766 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18767
18768
18769 # configure is writing to config.log, and then calls config.status.
18770 # config.status does its own redirection, appending to config.log.
18771 # Unfortunately, on DOS this fails, as config.log is still kept open
18772 # by configure, so config.status won't be able to write to it; its
18773 # output is simply discarded. So we exec the FD to /dev/null,
18774 # effectively closing config.log, so it can be properly (re)opened and
18775 # appended to by config.status. When coming back to configure, we
18776 # need to make the FD available again.
18777 if test "$no_create" != yes; then
18778 ac_cs_success=:
18779 ac_config_status_args=
18780 test "$silent" = yes &&
18781 ac_config_status_args="$ac_config_status_args --quiet"
18782 exec 5>/dev/null
18783 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18784 exec 5>>config.log
18785 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18786 # would make configure fail if this is the last instruction.
18787 $ac_cs_success || as_fn_exit 1
18788 fi
18789 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18791 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18792 fi
18793