comparison src/portaudio_20140130/bindings/cpp/configure @ 124:e3d5853d5918

Current stable PortAudio source
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 18 Oct 2016 13:11:05 +0100
parents
children
comparison
equal deleted inserted replaced
123:0cef3a1bd1ae 124:e3d5853d5918
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for PortAudioCpp 12.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251 fi
252 exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477 *)
478 ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='PortAudioCpp'
569 PACKAGE_TARNAME='portaudiocpp'
570 PACKAGE_VERSION='12'
571 PACKAGE_STRING='PortAudioCpp 12'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_unique_file="include/portaudiocpp/PortAudioCpp.hxx"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 # include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 # include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 LIBOBJS
616 LT_VERSION_INFO
617 PORTAUDIO_ROOT
618 DEFAULT_INCLUDES
619 CXXCPP
620 CPP
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
626 MANIFEST_TOOL
627 RANLIB
628 ac_ct_AR
629 AR
630 LN_S
631 NM
632 ac_ct_DUMPBIN
633 DUMPBIN
634 LD
635 FGREP
636 EGREP
637 GREP
638 SED
639 LIBTOOL
640 OBJDUMP
641 DLLTOOL
642 AS
643 host_os
644 host_vendor
645 host_cpu
646 host
647 build_os
648 build_vendor
649 build_cpu
650 build
651 am__fastdepCXX_FALSE
652 am__fastdepCXX_TRUE
653 CXXDEPMODE
654 ac_ct_CXX
655 CXXFLAGS
656 CXX
657 am__fastdepCC_FALSE
658 am__fastdepCC_TRUE
659 CCDEPMODE
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__quote
664 am__include
665 DEPDIR
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 MAINT
674 MAINTAINER_MODE_FALSE
675 MAINTAINER_MODE_TRUE
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
681 AWK
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files=''
738 ac_user_opts='
739 enable_option_checking
740 enable_maintainer_mode
741 enable_dependency_tracking
742 enable_shared
743 enable_static
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 with_sysroot
748 enable_libtool_lock
749 '
750 ac_precious_vars='build_alias
751 host_alias
752 target_alias
753 CC
754 CFLAGS
755 LDFLAGS
756 LIBS
757 CPPFLAGS
758 CXX
759 CXXFLAGS
760 CCC
761 CPP
762 CXXCPP'
763
764
765 # Initialize some variables set by options.
766 ac_init_help=
767 ac_init_version=false
768 ac_unrecognized_opts=
769 ac_unrecognized_sep=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
772 cache_file=/dev/null
773 exec_prefix=NONE
774 no_create=
775 no_recursion=
776 prefix=NONE
777 program_prefix=NONE
778 program_suffix=NONE
779 program_transform_name=s,x,x,
780 silent=
781 site=
782 srcdir=
783 verbose=
784 x_includes=NONE
785 x_libraries=NONE
786
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804 infodir='${datarootdir}/info'
805 htmldir='${docdir}'
806 dvidir='${docdir}'
807 pdfdir='${docdir}'
808 psdir='${docdir}'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
812
813 ac_prev=
814 ac_dashdash=
815 for ac_option
816 do
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
820 ac_prev=
821 continue
822 fi
823
824 case $ac_option in
825 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *=) ac_optarg= ;;
827 *) ac_optarg=yes ;;
828 esac
829
830 # Accept the important Cygnus configure options, so we can diagnose typos.
831
832 case $ac_dashdash$ac_option in
833 --)
834 ac_dashdash=yes ;;
835
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 ac_prev=bindir ;;
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839 bindir=$ac_optarg ;;
840
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
845
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
852
853 --config-cache | -C)
854 cache_file=config.cache ;;
855
856 -datadir | --datadir | --datadi | --datad)
857 ac_prev=datadir ;;
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
860
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
867
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error $? "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877 "enable_$ac_useropt"
878 "*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=no ;;
883
884 -docdir | --docdir | --docdi | --doc | --do)
885 ac_prev=docdir ;;
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 docdir=$ac_optarg ;;
888
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 ac_prev=dvidir ;;
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 dvidir=$ac_optarg ;;
893
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error $? "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=\$ac_optarg ;;
909
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
918
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
921 with_gas=yes ;;
922
923 -help | --help | --hel | --he | -h)
924 ac_init_help=long ;;
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
929
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
934
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 ac_prev=htmldir ;;
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 | --ht=*)
939 htmldir=$ac_optarg ;;
940
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
947
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 ac_prev=infodir ;;
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
952
953 -libdir | --libdir | --libdi | --libd)
954 ac_prev=libdir ;;
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 libdir=$ac_optarg ;;
957
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
964
965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
969
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
976
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 ac_prev=mandir ;;
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 mandir=$ac_optarg ;;
981
982 -nfp | --nfp | --nf)
983 # Obsolete; use --without-fp.
984 with_fp=no ;;
985
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
988 no_create=yes ;;
989
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 no_recursion=yes ;;
993
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1002
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 ac_prev=prefix ;;
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1007
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1014
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1021
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1038
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 ac_prev=pdfdir ;;
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1043
1044 -psdir | --psdir | --psdi | --psd | --ps)
1045 ac_prev=psdir ;;
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 psdir=$ac_optarg ;;
1048
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 silent=yes ;;
1052
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 ac_prev=sbindir ;;
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 | --sbi=* | --sb=*)
1057 sbindir=$ac_optarg ;;
1058
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1062 | --sha | --sh)
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 | --sha=* | --sh=*)
1068 sharedstatedir=$ac_optarg ;;
1069
1070 -site | --site | --sit)
1071 ac_prev=site ;;
1072 -site=* | --site=* | --sit=*)
1073 site=$ac_optarg ;;
1074
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 ac_prev=srcdir ;;
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1079
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1086
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1091
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 verbose=yes ;;
1094
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1097
1098 -with-* | --with-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=\$ac_optarg ;;
1113
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=no ;;
1129
1130 --x)
1131 # Obsolete; use --with-x.
1132 with_x=yes ;;
1133
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1140
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1147
1148 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1149 Try \`$0 --help' for more information"
1150 ;;
1151
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 case $ac_envvar in #(
1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
1157 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1158 esac
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1161
1162 *)
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1168 ;;
1169
1170 esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 as_fn_error $? "missing argument to $ac_option"
1176 fi
1177
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1180 no) ;;
1181 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 esac
1184 fi
1185
1186 # Check all directory arguments for consistency.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1191 do
1192 eval ac_val=\$$ac_var
1193 # Remove trailing slashes.
1194 case $ac_val in
1195 */ )
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197 eval $ac_var=\$ac_val;;
1198 esac
1199 # Be sure to have absolute directory names.
1200 case $ac_val in
1201 [\\/$]* | ?:[\\/]* ) continue;;
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 esac
1204 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1205 done
1206
1207 # There might be people who depend on the old broken behavior: `$host'
1208 # used to hold the argument of --host etc.
1209 # FIXME: To remove some day.
1210 build=$build_alias
1211 host=$host_alias
1212 target=$target_alias
1213
1214 # FIXME: To remove some day.
1215 if test "x$host_alias" != x; then
1216 if test "x$build_alias" = x; then
1217 cross_compiling=maybe
1218 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1219 If a cross compiler is detected then cross compile mode will be used" >&2
1220 elif test "x$build_alias" != "x$host_alias"; then
1221 cross_compiling=yes
1222 fi
1223 fi
1224
1225 ac_tool_prefix=
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228 test "$silent" = yes && exec 6>/dev/null
1229
1230
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error $? "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error $? "pwd does not report name of working directory"
1237
1238
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\).*/{
1262 s//\1/
1263 q
1264 }
1265 s/.*/./; q'`
1266 srcdir=$ac_confdir
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 srcdir=..
1269 fi
1270 else
1271 ac_srcdir_defaulted=no
1272 fi
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305 \`configure' configures PortAudioCpp 12 to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking ...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/portaudiocpp]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1358 _ACEOF
1359
1360 cat <<\_ACEOF
1361
1362 Program names:
1363 --program-prefix=PREFIX prepend PREFIX to installed program names
1364 --program-suffix=SUFFIX append SUFFIX to installed program names
1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366
1367 System types:
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 _ACEOF
1371 fi
1372
1373 if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of PortAudioCpp 12:";;
1376 esac
1377 cat <<\_ACEOF
1378
1379 Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --enable-maintainer-mode enable make rules and dependencies not useful
1384 (and sometimes confusing) to the casual installer
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-shared[=PKGS] build shared libraries [default=yes]
1388 --enable-static[=PKGS] build static libraries [default=yes]
1389 --enable-fast-install[=PKGS]
1390 optimize for fast installation [default=yes]
1391 --disable-libtool-lock avoid locking (might break parallel builds)
1392
1393 Optional Packages:
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-pic try to use only PIC/non-PIC objects [default=use
1397 both]
1398 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1399 --with-sysroot=DIR Search for dependent libraries within DIR
1400 (or the compiler's sysroot if not specified).
1401
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CXX C++ compiler command
1411 CXXFLAGS C++ compiler flags
1412 CPP C preprocessor
1413 CXXCPP C++ preprocessor
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 Report bugs to the package provider.
1419 _ACEOF
1420 ac_status=$?
1421 fi
1422
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428 continue
1429 ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448 .) # We are building in place.
1449 ac_srcdir=.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1456 *) # Relative name.
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1471 else
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 fi || ac_status=$?
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1475 done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480 cat <<\_ACEOF
1481 PortAudioCpp configure 12
1482 generated by GNU Autoconf 2.68
1483
1484 Copyright (C) 2010 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488 exit
1489 fi
1490
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1494
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1499 {
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526 ac_retval=1
1527 fi
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_compile
1532
1533 # ac_fn_cxx_try_compile LINENO
1534 # ----------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_cxx_try_compile ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_cxx_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565 fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569 } # ac_fn_cxx_try_compile
1570
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_link
1616
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1628 else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 $4
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636 else
1637 eval "$3=no"
1638 fi
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 fi
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646 } # ac_fn_c_check_header_compile
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720 fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_run
1726
1727 # ac_fn_c_check_func LINENO FUNC VAR
1728 # ----------------------------------
1729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1730 ac_fn_c_check_func ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1743
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1748
1749 #ifdef __STDC__
1750 # include <limits.h>
1751 #else
1752 # include <assert.h>
1753 #endif
1754
1755 #undef $2
1756
1757 /* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760 #ifdef __cplusplus
1761 extern "C"
1762 #endif
1763 char $2 ();
1764 /* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767 #if defined __stub_$2 || defined __stub___$2
1768 choke me
1769 #endif
1770
1771 int
1772 main ()
1773 {
1774 return $2 ();
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_func
1793
1794 # ac_fn_cxx_try_cpp LINENO
1795 # ------------------------
1796 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_cpp ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { { ac_try="$ac_cpp conftest.$ac_ext"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } > conftest.i && {
1816 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1823
1824 ac_retval=1
1825 fi
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_cxx_try_cpp
1830
1831 # ac_fn_cxx_try_link LINENO
1832 # -------------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_link ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext conftest$ac_exeext
1838 if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1851 fi
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest$ac_exeext && {
1857 test "$cross_compiling" = yes ||
1858 $as_test_x conftest$ac_exeext
1859 }; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=1
1866 fi
1867 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869 # interfere with the next link command; also delete a directory that is
1870 # left behind by Apple's compiler. We do this before executing the actions.
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1874
1875 } # ac_fn_cxx_try_link
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by PortAudioCpp $as_me 12, which was
1881 generated by GNU Autoconf 2.68. Invocation command line was
1882
1883 $ $0 $@
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1918 done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944 for ac_arg
1945 do
1946 case $ac_arg in
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1950 continue ;;
1951 *\'*)
1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 esac
1954 case $ac_pass in
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 2)
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1960 else
1961 case $ac_arg in
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968 esac
1969 ;;
1970 -* ) ac_must_keep_next=true ;;
1971 esac
1972 fi
1973 as_fn_append ac_configure_args " '$ac_arg'"
1974 ;;
1975 esac
1976 done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1988 {
1989 echo
1990
1991 $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
1996 (
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
2012 (set) 2>&1 |
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2015 sed -n \
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
2019 *)
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 ;;
2022 esac |
2023 sort
2024 )
2025 echo
2026
2027 $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2030 echo
2031 for ac_var in $ac_subst_vars
2032 do
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2040
2041 if test -n "$ac_subst_files"; then
2042 $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2045 echo
2046 for ac_var in $ac_subst_files
2047 do
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2055 fi
2056
2057 if test -s confdefs.h; then
2058 $as_echo "## ----------- ##
2059 ## confdefs.h. ##
2060 ## ----------- ##"
2061 echo
2062 cat confdefs.h
2063 echo
2064 fi
2065 test "$ac_signal" != 0 &&
2066 $as_echo "$as_me: caught signal $ac_signal"
2067 $as_echo "$as_me: exit $exit_status"
2068 } >&5
2069 rm -f core *.core core.conftest.* &&
2070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2071 exit $exit_status
2072 ' 0
2073 for ac_signal in 1 2 13 15; do
2074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2075 done
2076 ac_signal=0
2077
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2080
2081 $as_echo "/* confdefs.h */" > confdefs.h
2082
2083 # Predefined preprocessor variables.
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2107 _ACEOF
2108
2109
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2112 ac_site_file1=NONE
2113 ac_site_file2=NONE
2114 if test -n "$CONFIG_SITE"; then
2115 # We do not want a PATH search for config.site.
2116 case $CONFIG_SITE in #((
2117 -*) ac_site_file1=./$CONFIG_SITE;;
2118 */*) ac_site_file1=$CONFIG_SITE;;
2119 *) ac_site_file1=./$CONFIG_SITE;;
2120 esac
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2124 else
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2127 fi
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 do
2130 test "x$ac_site_file" = xNONE && continue
2131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2135 . "$ac_site_file" \
2136 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site script $ac_site_file
2139 See \`config.log' for more details" "$LINENO" 5; }
2140 fi
2141 done
2142
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special files
2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149 case $cache_file in
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2152 esac
2153 fi
2154 else
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157 >$cache_file
2158 fi
2159
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2169 set,)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,set)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,);;
2178 *)
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2191 fi
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2196 fi;;
2197 esac
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2200 case $ac_new_val in
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2203 esac
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207 esac
2208 fi
2209 done
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2220
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228
2229 am__api_version='1.11'
2230
2231 ac_aux_dir=
2232 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2233 if test -f "$ac_dir/install-sh"; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/install-sh -c"
2236 break
2237 elif test -f "$ac_dir/install.sh"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install.sh -c"
2240 break
2241 elif test -f "$ac_dir/shtool"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/shtool install -c"
2244 break
2245 fi
2246 done
2247 if test -z "$ac_aux_dir"; then
2248 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2249 fi
2250
2251 # These three variables are undocumented and unsupported,
2252 # and are intended to be withdrawn in a future Autoconf release.
2253 # They can cause serious problems if a builder's source tree is in a directory
2254 # whose full name contains unusual characters.
2255 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2256 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2257 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2258
2259
2260 # Find a good install program. We prefer a C program (faster),
2261 # so one script is as good as another. But avoid the broken or
2262 # incompatible versions:
2263 # SysV /etc/install, /usr/sbin/install
2264 # SunOS /usr/etc/install
2265 # IRIX /sbin/install
2266 # AIX /bin/install
2267 # AmigaOS /C/install, which installs bootblocks on floppy discs
2268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2271 # OS/2's system install, which has a completely different semantic
2272 # ./install, which can be erroneously created by make from ./install.sh.
2273 # Reject install programs that cannot install multiple files.
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2275 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2276 if test -z "$INSTALL"; then
2277 if ${ac_cv_path_install+:} false; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 # Account for people who put trailing slashes in PATH elements.
2286 case $as_dir/ in #((
2287 ./ | .// | /[cC]/* | \
2288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2289 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2290 /usr/ucb/* ) ;;
2291 *)
2292 # OSF1 and SCO ODT 3.0 have their own names for install.
2293 # Don't use installbsd from OSF since it installs stuff as root
2294 # by default.
2295 for ac_prog in ginstall scoinst install; do
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2298 if test $ac_prog = install &&
2299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2300 # AIX install. It has an incompatible calling convention.
2301 :
2302 elif test $ac_prog = install &&
2303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304 # program-specific install script used by HP pwplus--don't use.
2305 :
2306 else
2307 rm -rf conftest.one conftest.two conftest.dir
2308 echo one > conftest.one
2309 echo two > conftest.two
2310 mkdir conftest.dir
2311 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2312 test -s conftest.one && test -s conftest.two &&
2313 test -s conftest.dir/conftest.one &&
2314 test -s conftest.dir/conftest.two
2315 then
2316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2317 break 3
2318 fi
2319 fi
2320 fi
2321 done
2322 done
2323 ;;
2324 esac
2325
2326 done
2327 IFS=$as_save_IFS
2328
2329 rm -rf conftest.one conftest.two conftest.dir
2330
2331 fi
2332 if test "${ac_cv_path_install+set}" = set; then
2333 INSTALL=$ac_cv_path_install
2334 else
2335 # As a last resort, use the slow shell script. Don't cache a
2336 # value for INSTALL within a source directory, because that will
2337 # break other packages using the cache if that directory is
2338 # removed, or if the value is a relative name.
2339 INSTALL=$ac_install_sh
2340 fi
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2343 $as_echo "$INSTALL" >&6; }
2344
2345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2346 # It thinks the first close brace ends the variable substitution.
2347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348
2349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350
2351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2354 $as_echo_n "checking whether build environment is sane... " >&6; }
2355 # Just in case
2356 sleep 1
2357 echo timestamp > conftest.file
2358 # Reject unsafe characters in $srcdir or the absolute working directory
2359 # name. Accept space and tab only in the latter.
2360 am_lf='
2361 '
2362 case `pwd` in
2363 *[\\\"\#\$\&\'\`$am_lf]*)
2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2365 esac
2366 case $srcdir in
2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2368 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2369 esac
2370
2371 # Do `set' in a subshell so we don't clobber the current shell's
2372 # arguments. Must try -L first in case configure is actually a
2373 # symlink; some systems play weird games with the mod time of symlinks
2374 # (eg FreeBSD returns the mod time of the symlink's containing
2375 # directory).
2376 if (
2377 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2378 if test "$*" = "X"; then
2379 # -L didn't work.
2380 set X `ls -t "$srcdir/configure" conftest.file`
2381 fi
2382 rm -f conftest.file
2383 if test "$*" != "X $srcdir/configure conftest.file" \
2384 && test "$*" != "X conftest.file $srcdir/configure"; then
2385
2386 # If neither matched, then we have a broken ls. This can happen
2387 # if, for instance, CONFIG_SHELL is bash and it inherits a
2388 # broken ls alias from the environment. This has actually
2389 # happened. Such a system could not be considered "sane".
2390 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2391 alias in your environment" "$LINENO" 5
2392 fi
2393
2394 test "$2" = conftest.file
2395 )
2396 then
2397 # Ok.
2398 :
2399 else
2400 as_fn_error $? "newly created file is older than distributed files!
2401 Check your system clock" "$LINENO" 5
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2404 $as_echo "yes" >&6; }
2405 test "$program_prefix" != NONE &&
2406 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2407 # Use a double $ so make ignores it.
2408 test "$program_suffix" != NONE &&
2409 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2410 # Double any \ or $.
2411 # By default was `s,x,x', remove it if useless.
2412 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2413 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2414
2415 # expand $ac_aux_dir to an absolute path
2416 am_aux_dir=`cd $ac_aux_dir && pwd`
2417
2418 if test x"${MISSING+set}" != xset; then
2419 case $am_aux_dir in
2420 *\ * | *\ *)
2421 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2422 *)
2423 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2424 esac
2425 fi
2426 # Use eval to expand $SHELL
2427 if eval "$MISSING --run true"; then
2428 am_missing_run="$MISSING --run "
2429 else
2430 am_missing_run=
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2432 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2433 fi
2434
2435 if test x"${install_sh}" != xset; then
2436 case $am_aux_dir in
2437 *\ * | *\ *)
2438 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2439 *)
2440 install_sh="\${SHELL} $am_aux_dir/install-sh"
2441 esac
2442 fi
2443
2444 # Installed binaries are usually stripped using `strip' when the user
2445 # run `make install-strip'. However `strip' might not be the right
2446 # tool to use in cross-compilation environments, therefore Automake
2447 # will honor the `STRIP' environment variable to overrule this program.
2448 if test "$cross_compiling" != no; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}strip; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$STRIP"; then
2458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 STRIP=$ac_cv_prog_STRIP
2478 if test -n "$STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2480 $as_echo "$STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486
2487 fi
2488 if test -z "$ac_cv_prog_STRIP"; then
2489 ac_ct_STRIP=$STRIP
2490 # Extract the first word of "strip", so it can be a program name with args.
2491 set dummy strip; ac_word=$2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test -n "$ac_ct_STRIP"; then
2498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_ac_ct_STRIP="strip"
2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2518 if test -n "$ac_ct_STRIP"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2520 $as_echo "$ac_ct_STRIP" >&6; }
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523 $as_echo "no" >&6; }
2524 fi
2525
2526 if test "x$ac_ct_STRIP" = x; then
2527 STRIP=":"
2528 else
2529 case $cross_compiling:$ac_tool_warned in
2530 yes:)
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533 ac_tool_warned=yes ;;
2534 esac
2535 STRIP=$ac_ct_STRIP
2536 fi
2537 else
2538 STRIP="$ac_cv_prog_STRIP"
2539 fi
2540
2541 fi
2542 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2543
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2545 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2546 if test -z "$MKDIR_P"; then
2547 if ${ac_cv_path_mkdir+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_prog in mkdir gmkdir; do
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2558 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2559 'mkdir (GNU coreutils) '* | \
2560 'mkdir (coreutils) '* | \
2561 'mkdir (fileutils) '4.1*)
2562 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2563 break 3;;
2564 esac
2565 done
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571
2572 test -d ./--version && rmdir ./--version
2573 if test "${ac_cv_path_mkdir+set}" = set; then
2574 MKDIR_P="$ac_cv_path_mkdir -p"
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for MKDIR_P within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 MKDIR_P="$ac_install_sh -d"
2581 fi
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2584 $as_echo "$MKDIR_P" >&6; }
2585
2586 mkdir_p="$MKDIR_P"
2587 case $mkdir_p in
2588 [\\/$]* | ?:[\\/]*) ;;
2589 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2590 esac
2591
2592 for ac_prog in gawk mawk nawk awk
2593 do
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_AWK+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$AWK"; then
2602 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_AWK="$ac_prog"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 AWK=$ac_cv_prog_AWK
2622 if test -n "$AWK"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2624 $as_echo "$AWK" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 test -n "$AWK" && break
2632 done
2633
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2635 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2636 set x ${MAKE-make}
2637 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2638 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 cat >conftest.make <<\_ACEOF
2642 SHELL = /bin/sh
2643 all:
2644 @echo '@@@%%%=$(MAKE)=@@@%%%'
2645 _ACEOF
2646 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2648 *@@@%%%=?*=@@@%%%*)
2649 eval ac_cv_prog_make_${ac_make}_set=yes;;
2650 *)
2651 eval ac_cv_prog_make_${ac_make}_set=no;;
2652 esac
2653 rm -f conftest.make
2654 fi
2655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2658 SET_MAKE=
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 SET_MAKE="MAKE=${MAKE-make}"
2663 fi
2664
2665 rm -rf .tst 2>/dev/null
2666 mkdir .tst 2>/dev/null
2667 if test -d .tst; then
2668 am__leading_dot=.
2669 else
2670 am__leading_dot=_
2671 fi
2672 rmdir .tst 2>/dev/null
2673
2674 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2675 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2676 # is not polluted with repeated "-I."
2677 am__isrc=' -I$(srcdir)'
2678 # test to see if srcdir already configured
2679 if test -f $srcdir/config.status; then
2680 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2681 fi
2682 fi
2683
2684 # test whether we have cygpath
2685 if test -z "$CYGPATH_W"; then
2686 if (cygpath --version) >/dev/null 2>/dev/null; then
2687 CYGPATH_W='cygpath -w'
2688 else
2689 CYGPATH_W=echo
2690 fi
2691 fi
2692
2693
2694 # Define the identity of the package.
2695 PACKAGE='portaudiocpp'
2696 VERSION='12'
2697
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE "$PACKAGE"
2701 _ACEOF
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define VERSION "$VERSION"
2706 _ACEOF
2707
2708 # Some tools Automake needs.
2709
2710 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2711
2712
2713 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2714
2715
2716 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2717
2718
2719 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2720
2721
2722 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2723
2724 # We need awk for the "check" target. The system "awk" is bad on
2725 # some platforms.
2726 # Always define AMTAR for backward compatibility.
2727
2728 AMTAR=${AMTAR-"${am_missing_run}tar"}
2729
2730 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2731
2732
2733
2734
2735
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2738 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2739 # Check whether --enable-maintainer-mode was given.
2740 if test "${enable_maintainer_mode+set}" = set; then :
2741 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2742 else
2743 USE_MAINTAINER_MODE=no
2744 fi
2745
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2747 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2748 if test $USE_MAINTAINER_MODE = yes; then
2749 MAINTAINER_MODE_TRUE=
2750 MAINTAINER_MODE_FALSE='#'
2751 else
2752 MAINTAINER_MODE_TRUE='#'
2753 MAINTAINER_MODE_FALSE=
2754 fi
2755
2756 MAINT=$MAINTAINER_MODE_TRUE
2757
2758
2759
2760 ###### Top-level directory of pacpp
2761 ###### This makes it easy to shuffle the build directories
2762 ###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
2763 PACPP_ROOT="\$(top_srcdir)"
2764 PORTAUDIO_ROOT="../.."
2765
2766 # Various other variables and flags
2767 DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
2768 CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
2769 CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
2770
2771 LT_VERSION_INFO="0:12:0"
2772
2773 # Checks for programs
2774
2775 ac_ext=c
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if ${ac_cv_prog_CC+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794 IFS=$as_save_IFS
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 break 2
2801 fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 CC=$ac_cv_prog_CC
2809 if test -n "$CC"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2812 else
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 fi
2816
2817
2818 fi
2819 if test -z "$ac_cv_prog_CC"; then
2820 ac_ct_CC=$CC
2821 # Extract the first word of "gcc", so it can be a program name with args.
2822 set dummy gcc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CC="gcc"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849 if test -n "$ac_ct_CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851 $as_echo "$ac_ct_CC" >&6; }
2852 else
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866 CC=$ac_ct_CC
2867 fi
2868 else
2869 CC="$ac_cv_prog_CC"
2870 fi
2871
2872 if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}cc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC="${ac_tool_prefix}cc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 fi
2909
2910
2911 fi
2912 fi
2913 if test -z "$CC"; then
2914 # Extract the first word of "cc", so it can be a program name with args.
2915 set dummy cc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_CC+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 ac_prog_rejected=no
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2933 ac_prog_rejected=yes
2934 continue
2935 fi
2936 ac_cv_prog_CC="cc"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 if test $ac_prog_rejected = yes; then
2945 # We found a bogon in the path, so make sure we never use it.
2946 set dummy $ac_cv_prog_CC
2947 shift
2948 if test $# != 0; then
2949 # We chose a different compiler from the bogus one.
2950 # However, it has the same basename, so the bogon will be chosen
2951 # first if we set CC to just the basename; use the full file name.
2952 shift
2953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2954 fi
2955 fi
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 fi
2969 if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
2971 for ac_prog in cl.exe
2972 do
2973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010 test -n "$CC" && break
3011 done
3012 fi
3013 if test -z "$CC"; then
3014 ac_ct_CC=$CC
3015 for ac_prog in cl.exe
3016 do
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034 ac_cv_prog_ac_ct_CC="$ac_prog"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045 if test -n "$ac_ct_CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047 $as_echo "$ac_ct_CC" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054 test -n "$ac_ct_CC" && break
3055 done
3056
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 CC=$ac_ct_CC
3067 fi
3068 fi
3069
3070 fi
3071
3072
3073 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error $? "no acceptable C compiler found in \$PATH
3076 See \`config.log' for more details" "$LINENO" 5; }
3077
3078 # Provide some information about the compiler.
3079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3080 set X $ac_compile
3081 ac_compiler=$2
3082 for ac_option in --version -v -V -qversion; do
3083 { { ac_try="$ac_compiler $ac_option >&5"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3091 ac_status=$?
3092 if test -s conftest.err; then
3093 sed '10a\
3094 ... rest of stderr output deleted ...
3095 10q' conftest.err >conftest.er1
3096 cat conftest.er1 >&5
3097 fi
3098 rm -f conftest.er1 conftest.err
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }
3101 done
3102
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3105
3106 int
3107 main ()
3108 {
3109
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 ac_clean_files_save=$ac_clean_files
3115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3116 # Try to create an executable without -o first, disregard a.out.
3117 # It will help us diagnose broken compilers, and finding out an intuition
3118 # of exeext.
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3120 $as_echo_n "checking whether the C compiler works... " >&6; }
3121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3122
3123 # The possible output files:
3124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3125
3126 ac_rmfiles=
3127 for ac_file in $ac_files
3128 do
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3132 esac
3133 done
3134 rm -f $ac_rmfiles
3135
3136 if { { ac_try="$ac_link_default"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_link_default") 2>&5
3144 ac_status=$?
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3150 # so that the user can short-circuit this test for compilers unknown to
3151 # Autoconf.
3152 for ac_file in $ac_files ''
3153 do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3157 ;;
3158 [ab].out )
3159 # We found the default executable, but exeext='' is most
3160 # certainly right.
3161 break;;
3162 *.* )
3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3164 then :; else
3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 fi
3167 # We set ac_cv_exeext here because the later test for it is not
3168 # safe: cross compilers may not add the suffix if given an `-o'
3169 # argument, so we may need to know it at that point already.
3170 # Even if this section looks crufty: it has the advantage of
3171 # actually working.
3172 break;;
3173 * )
3174 break;;
3175 esac
3176 done
3177 test "$ac_cv_exeext" = no && ac_cv_exeext=
3178
3179 else
3180 ac_file=''
3181 fi
3182 if test -z "$ac_file"; then :
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 $as_echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error 77 "C compiler cannot create executables
3191 See \`config.log' for more details" "$LINENO" 5; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3197 $as_echo_n "checking for C compiler default output file name... " >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3199 $as_echo "$ac_file" >&6; }
3200 ac_exeext=$ac_cv_exeext
3201
3202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3203 ac_clean_files=$ac_clean_files_save
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3205 $as_echo_n "checking for suffix of executables... " >&6; }
3206 if { { ac_try="$ac_link"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_link") 2>&5
3214 ac_status=$?
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; then :
3217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3219 # work properly (i.e., refer to `conftest.exe'), while it won't with
3220 # `rm'.
3221 for ac_file in conftest.exe conftest conftest.*; do
3222 test -f "$ac_file" || continue
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 break;;
3227 * ) break;;
3228 esac
3229 done
3230 else
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3234 See \`config.log' for more details" "$LINENO" 5; }
3235 fi
3236 rm -f conftest conftest$ac_cv_exeext
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3238 $as_echo "$ac_cv_exeext" >&6; }
3239
3240 rm -f conftest.$ac_ext
3241 EXEEXT=$ac_cv_exeext
3242 ac_exeext=$EXEEXT
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3245 #include <stdio.h>
3246 int
3247 main ()
3248 {
3249 FILE *f = fopen ("conftest.out", "w");
3250 return ferror (f) || fclose (f) != 0;
3251
3252 ;
3253 return 0;
3254 }
3255 _ACEOF
3256 ac_clean_files="$ac_clean_files conftest.out"
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3260 $as_echo_n "checking whether we are cross compiling... " >&6; }
3261 if test "$cross_compiling" != yes; then
3262 { { ac_try="$ac_link"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }
3273 if { ac_try='./conftest$ac_cv_exeext'
3274 { { case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_try") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; }; then
3284 cross_compiling=no
3285 else
3286 if test "$cross_compiling" = maybe; then
3287 cross_compiling=yes
3288 else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot run C compiled programs.
3292 If you meant to cross compile, use \`--host'.
3293 See \`config.log' for more details" "$LINENO" 5; }
3294 fi
3295 fi
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3298 $as_echo "$cross_compiling" >&6; }
3299
3300 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3301 ac_clean_files=$ac_clean_files_save
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3303 $as_echo_n "checking for suffix of object files... " >&6; }
3304 if ${ac_cv_objext+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309
3310 int
3311 main ()
3312 {
3313
3314 ;
3315 return 0;
3316 }
3317 _ACEOF
3318 rm -f conftest.o conftest.obj
3319 if { { ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_compile") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 for ac_file in conftest.o conftest.obj conftest.*; do
3331 test -f "$ac_file" || continue;
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3335 break;;
3336 esac
3337 done
3338 else
3339 $as_echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot compute suffix of object files: cannot compile
3345 See \`config.log' for more details" "$LINENO" 5; }
3346 fi
3347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3350 $as_echo "$ac_cv_objext" >&6; }
3351 OBJEXT=$ac_cv_objext
3352 ac_objext=$OBJEXT
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3354 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3355 if ${ac_cv_c_compiler_gnu+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360
3361 int
3362 main ()
3363 {
3364 #ifndef __GNUC__
3365 choke me
3366 #endif
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 if ac_fn_c_try_compile "$LINENO"; then :
3373 ac_compiler_gnu=yes
3374 else
3375 ac_compiler_gnu=no
3376 fi
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3379
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3382 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3383 if test $ac_compiler_gnu = yes; then
3384 GCC=yes
3385 else
3386 GCC=
3387 fi
3388 ac_test_CFLAGS=${CFLAGS+set}
3389 ac_save_CFLAGS=$CFLAGS
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3391 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3392 if ${ac_cv_prog_cc_g+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 ac_save_c_werror_flag=$ac_c_werror_flag
3396 ac_c_werror_flag=yes
3397 ac_cv_prog_cc_g=no
3398 CFLAGS="-g"
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401
3402 int
3403 main ()
3404 {
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_g=yes
3412 else
3413 CFLAGS=""
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416
3417 int
3418 main ()
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426
3427 else
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3429 CFLAGS="-g"
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442 ac_cv_prog_cc_g=yes
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 fi
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 fi
3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 ac_c_werror_flag=$ac_save_c_werror_flag
3450 fi
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3452 $as_echo "$ac_cv_prog_cc_g" >&6; }
3453 if test "$ac_test_CFLAGS" = set; then
3454 CFLAGS=$ac_save_CFLAGS
3455 elif test $ac_cv_prog_cc_g = yes; then
3456 if test "$GCC" = yes; then
3457 CFLAGS="-g -O2"
3458 else
3459 CFLAGS="-g"
3460 fi
3461 else
3462 if test "$GCC" = yes; then
3463 CFLAGS="-O2"
3464 else
3465 CFLAGS=
3466 fi
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3469 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3470 if ${ac_cv_prog_cc_c89+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 ac_cv_prog_cc_c89=no
3474 ac_save_CC=$CC
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477 #include <stdarg.h>
3478 #include <stdio.h>
3479 #include <sys/types.h>
3480 #include <sys/stat.h>
3481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3482 struct buf { int x; };
3483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484 static char *e (p, i)
3485 char **p;
3486 int i;
3487 {
3488 return p[i];
3489 }
3490 static char *f (char * (*g) (char **, int), char **p, ...)
3491 {
3492 char *s;
3493 va_list v;
3494 va_start (v,p);
3495 s = g (p, va_arg (v,int));
3496 va_end (v);
3497 return s;
3498 }
3499
3500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3501 function prototypes and stuff, but not '\xHH' hex character constants.
3502 These don't provoke an error unfortunately, instead are silently treated
3503 as 'x'. The following induces an error, until -std is added to get
3504 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3505 array size at least. It's necessary to write '\x00'==0 to get something
3506 that's true only with -std. */
3507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3508
3509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3510 inside strings and character constants. */
3511 #define FOO(x) 'x'
3512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3513
3514 int test (int i, double x);
3515 struct s1 {int (*f) (int a);};
3516 struct s2 {int (*f) (double a);};
3517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518 int argc;
3519 char **argv;
3520 int
3521 main ()
3522 {
3523 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3529 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3530 do
3531 CC="$ac_save_CC $ac_arg"
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_c89=$ac_arg
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext
3536 test "x$ac_cv_prog_cc_c89" != "xno" && break
3537 done
3538 rm -f conftest.$ac_ext
3539 CC=$ac_save_CC
3540
3541 fi
3542 # AC_CACHE_VAL
3543 case "x$ac_cv_prog_cc_c89" in
3544 x)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3546 $as_echo "none needed" >&6; } ;;
3547 xno)
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3549 $as_echo "unsupported" >&6; } ;;
3550 *)
3551 CC="$CC $ac_cv_prog_cc_c89"
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3553 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3554 esac
3555 if test "x$ac_cv_prog_cc_c89" != xno; then :
3556
3557 fi
3558
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 DEPDIR="${am__leading_dot}deps"
3565
3566 ac_config_commands="$ac_config_commands depfiles"
3567
3568
3569 am_make=${MAKE-make}
3570 cat > confinc << 'END'
3571 am__doit:
3572 @echo this is the am__doit target
3573 .PHONY: am__doit
3574 END
3575 # If we don't find an include directive, just comment out the code.
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3577 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3578 am__include="#"
3579 am__quote=
3580 _am_result=none
3581 # First try GNU make style include.
3582 echo "include confinc" > confmf
3583 # Ignore all kinds of additional output from `make'.
3584 case `$am_make -s -f confmf 2> /dev/null` in #(
3585 *the\ am__doit\ target*)
3586 am__include=include
3587 am__quote=
3588 _am_result=GNU
3589 ;;
3590 esac
3591 # Now try BSD make style include.
3592 if test "$am__include" = "#"; then
3593 echo '.include "confinc"' > confmf
3594 case `$am_make -s -f confmf 2> /dev/null` in #(
3595 *the\ am__doit\ target*)
3596 am__include=.include
3597 am__quote="\""
3598 _am_result=BSD
3599 ;;
3600 esac
3601 fi
3602
3603
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3605 $as_echo "$_am_result" >&6; }
3606 rm -f confinc confmf
3607
3608 # Check whether --enable-dependency-tracking was given.
3609 if test "${enable_dependency_tracking+set}" = set; then :
3610 enableval=$enable_dependency_tracking;
3611 fi
3612
3613 if test "x$enable_dependency_tracking" != xno; then
3614 am_depcomp="$ac_aux_dir/depcomp"
3615 AMDEPBACKSLASH='\'
3616 fi
3617 if test "x$enable_dependency_tracking" != xno; then
3618 AMDEP_TRUE=
3619 AMDEP_FALSE='#'
3620 else
3621 AMDEP_TRUE='#'
3622 AMDEP_FALSE=
3623 fi
3624
3625
3626
3627 depcc="$CC" am_compiler_list=
3628
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3630 $as_echo_n "checking dependency style of $depcc... " >&6; }
3631 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3635 # We make a subdir and do the tests there. Otherwise we can end up
3636 # making bogus files that we don't know about and never remove. For
3637 # instance it was reported that on HP-UX the gcc test will end up
3638 # making a dummy file named `D' -- because `-MD' means `put the output
3639 # in D'.
3640 mkdir conftest.dir
3641 # Copy depcomp to subdir because otherwise we won't find it if we're
3642 # using a relative directory.
3643 cp "$am_depcomp" conftest.dir
3644 cd conftest.dir
3645 # We will build objects and dependencies in a subdirectory because
3646 # it helps to detect inapplicable dependency modes. For instance
3647 # both Tru64's cc and ICC support -MD to output dependencies as a
3648 # side effect of compilation, but ICC will put the dependencies in
3649 # the current directory while Tru64 will put them in the object
3650 # directory.
3651 mkdir sub
3652
3653 am_cv_CC_dependencies_compiler_type=none
3654 if test "$am_compiler_list" = ""; then
3655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3656 fi
3657 am__universal=false
3658 case " $depcc " in #(
3659 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3660 esac
3661
3662 for depmode in $am_compiler_list; do
3663 # Setup a source with many dependencies, because some compilers
3664 # like to wrap large dependency lists on column 80 (with \), and
3665 # we should not choose a depcomp mode which is confused by this.
3666 #
3667 # We need to recreate these files for each test, as the compiler may
3668 # overwrite some of them when testing with obscure command lines.
3669 # This happens at least with the AIX C compiler.
3670 : > sub/conftest.c
3671 for i in 1 2 3 4 5 6; do
3672 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3673 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3674 # Solaris 8's {/usr,}/bin/sh.
3675 touch sub/conftst$i.h
3676 done
3677 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3678
3679 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3680 # mode. It turns out that the SunPro C++ compiler does not properly
3681 # handle `-M -o', and we need to detect this. Also, some Intel
3682 # versions had trouble with output in subdirs
3683 am__obj=sub/conftest.${OBJEXT-o}
3684 am__minus_obj="-o $am__obj"
3685 case $depmode in
3686 gcc)
3687 # This depmode causes a compiler race in universal mode.
3688 test "$am__universal" = false || continue
3689 ;;
3690 nosideeffect)
3691 # after this tag, mechanisms are not by side-effect, so they'll
3692 # only be used when explicitly requested
3693 if test "x$enable_dependency_tracking" = xyes; then
3694 continue
3695 else
3696 break
3697 fi
3698 ;;
3699 msvisualcpp | msvcmsys)
3700 # This compiler won't grok `-c -o', but also, the minuso test has
3701 # not run yet. These depmodes are late enough in the game, and
3702 # so weak that their functioning should not be impacted.
3703 am__obj=conftest.${OBJEXT-o}
3704 am__minus_obj=
3705 ;;
3706 none) break ;;
3707 esac
3708 if depmode=$depmode \
3709 source=sub/conftest.c object=$am__obj \
3710 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3711 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3712 >/dev/null 2>conftest.err &&
3713 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3714 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3715 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3716 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3717 # icc doesn't choke on unknown options, it will just issue warnings
3718 # or remarks (even with -Werror). So we grep stderr for any message
3719 # that says an option was ignored or not supported.
3720 # When given -MP, icc 7.0 and 7.1 complain thusly:
3721 # icc: Command line warning: ignoring option '-M'; no argument required
3722 # The diagnosis changed in icc 8.0:
3723 # icc: Command line remark: option '-MP' not supported
3724 if (grep 'ignoring option' conftest.err ||
3725 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3726 am_cv_CC_dependencies_compiler_type=$depmode
3727 break
3728 fi
3729 fi
3730 done
3731
3732 cd ..
3733 rm -rf conftest.dir
3734 else
3735 am_cv_CC_dependencies_compiler_type=none
3736 fi
3737
3738 fi
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3740 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3741 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3742
3743 if
3744 test "x$enable_dependency_tracking" != xno \
3745 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3746 am__fastdepCC_TRUE=
3747 am__fastdepCC_FALSE='#'
3748 else
3749 am__fastdepCC_TRUE='#'
3750 am__fastdepCC_FALSE=
3751 fi
3752
3753
3754 ac_ext=cpp
3755 ac_cpp='$CXXCPP $CPPFLAGS'
3756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 if test -z "$CXX"; then
3760 if test -n "$CCC"; then
3761 CXX=$CCC
3762 else
3763 if test -n "$ac_tool_prefix"; then
3764 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3765 do
3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_CXX+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -n "$CXX"; then
3774 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787 done
3788 done
3789 IFS=$as_save_IFS
3790
3791 fi
3792 fi
3793 CXX=$ac_cv_prog_CXX
3794 if test -n "$CXX"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3796 $as_echo "$CXX" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 fi
3801
3802
3803 test -n "$CXX" && break
3804 done
3805 fi
3806 if test -z "$CXX"; then
3807 ac_ct_CXX=$CXX
3808 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3809 do
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$ac_ct_CXX"; then
3818 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_ac_ct_CXX="$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3830 fi
3831 done
3832 done
3833 IFS=$as_save_IFS
3834
3835 fi
3836 fi
3837 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3838 if test -n "$ac_ct_CXX"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3840 $as_echo "$ac_ct_CXX" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 fi
3845
3846
3847 test -n "$ac_ct_CXX" && break
3848 done
3849
3850 if test "x$ac_ct_CXX" = x; then
3851 CXX="g++"
3852 else
3853 case $cross_compiling:$ac_tool_warned in
3854 yes:)
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859 CXX=$ac_ct_CXX
3860 fi
3861 fi
3862
3863 fi
3864 fi
3865 # Provide some information about the compiler.
3866 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3867 set X $ac_compile
3868 ac_compiler=$2
3869 for ac_option in --version -v -V -qversion; do
3870 { { ac_try="$ac_compiler $ac_option >&5"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3878 ac_status=$?
3879 if test -s conftest.err; then
3880 sed '10a\
3881 ... rest of stderr output deleted ...
3882 10q' conftest.err >conftest.er1
3883 cat conftest.er1 >&5
3884 fi
3885 rm -f conftest.er1 conftest.err
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3888 done
3889
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3891 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3892 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897
3898 int
3899 main ()
3900 {
3901 #ifndef __GNUC__
3902 choke me
3903 #endif
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 if ac_fn_cxx_try_compile "$LINENO"; then :
3910 ac_compiler_gnu=yes
3911 else
3912 ac_compiler_gnu=no
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3916
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3919 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3920 if test $ac_compiler_gnu = yes; then
3921 GXX=yes
3922 else
3923 GXX=
3924 fi
3925 ac_test_CXXFLAGS=${CXXFLAGS+set}
3926 ac_save_CXXFLAGS=$CXXFLAGS
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3928 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3929 if ${ac_cv_prog_cxx_g+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3933 ac_cxx_werror_flag=yes
3934 ac_cv_prog_cxx_g=no
3935 CXXFLAGS="-g"
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938
3939 int
3940 main ()
3941 {
3942
3943 ;
3944 return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_cxx_try_compile "$LINENO"; then :
3948 ac_cv_prog_cxx_g=yes
3949 else
3950 CXXFLAGS=""
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953
3954 int
3955 main ()
3956 {
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 if ac_fn_cxx_try_compile "$LINENO"; then :
3963
3964 else
3965 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3966 CXXFLAGS="-g"
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969
3970 int
3971 main ()
3972 {
3973
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 if ac_fn_cxx_try_compile "$LINENO"; then :
3979 ac_cv_prog_cxx_g=yes
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3989 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3990 if test "$ac_test_CXXFLAGS" = set; then
3991 CXXFLAGS=$ac_save_CXXFLAGS
3992 elif test $ac_cv_prog_cxx_g = yes; then
3993 if test "$GXX" = yes; then
3994 CXXFLAGS="-g -O2"
3995 else
3996 CXXFLAGS="-g"
3997 fi
3998 else
3999 if test "$GXX" = yes; then
4000 CXXFLAGS="-O2"
4001 else
4002 CXXFLAGS=
4003 fi
4004 fi
4005 ac_ext=c
4006 ac_cpp='$CPP $CPPFLAGS'
4007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010
4011 depcc="$CXX" am_compiler_list=
4012
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4014 $as_echo_n "checking dependency style of $depcc... " >&6; }
4015 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4019 # We make a subdir and do the tests there. Otherwise we can end up
4020 # making bogus files that we don't know about and never remove. For
4021 # instance it was reported that on HP-UX the gcc test will end up
4022 # making a dummy file named `D' -- because `-MD' means `put the output
4023 # in D'.
4024 mkdir conftest.dir
4025 # Copy depcomp to subdir because otherwise we won't find it if we're
4026 # using a relative directory.
4027 cp "$am_depcomp" conftest.dir
4028 cd conftest.dir
4029 # We will build objects and dependencies in a subdirectory because
4030 # it helps to detect inapplicable dependency modes. For instance
4031 # both Tru64's cc and ICC support -MD to output dependencies as a
4032 # side effect of compilation, but ICC will put the dependencies in
4033 # the current directory while Tru64 will put them in the object
4034 # directory.
4035 mkdir sub
4036
4037 am_cv_CXX_dependencies_compiler_type=none
4038 if test "$am_compiler_list" = ""; then
4039 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4040 fi
4041 am__universal=false
4042 case " $depcc " in #(
4043 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4044 esac
4045
4046 for depmode in $am_compiler_list; do
4047 # Setup a source with many dependencies, because some compilers
4048 # like to wrap large dependency lists on column 80 (with \), and
4049 # we should not choose a depcomp mode which is confused by this.
4050 #
4051 # We need to recreate these files for each test, as the compiler may
4052 # overwrite some of them when testing with obscure command lines.
4053 # This happens at least with the AIX C compiler.
4054 : > sub/conftest.c
4055 for i in 1 2 3 4 5 6; do
4056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4057 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4058 # Solaris 8's {/usr,}/bin/sh.
4059 touch sub/conftst$i.h
4060 done
4061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4062
4063 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4064 # mode. It turns out that the SunPro C++ compiler does not properly
4065 # handle `-M -o', and we need to detect this. Also, some Intel
4066 # versions had trouble with output in subdirs
4067 am__obj=sub/conftest.${OBJEXT-o}
4068 am__minus_obj="-o $am__obj"
4069 case $depmode in
4070 gcc)
4071 # This depmode causes a compiler race in universal mode.
4072 test "$am__universal" = false || continue
4073 ;;
4074 nosideeffect)
4075 # after this tag, mechanisms are not by side-effect, so they'll
4076 # only be used when explicitly requested
4077 if test "x$enable_dependency_tracking" = xyes; then
4078 continue
4079 else
4080 break
4081 fi
4082 ;;
4083 msvisualcpp | msvcmsys)
4084 # This compiler won't grok `-c -o', but also, the minuso test has
4085 # not run yet. These depmodes are late enough in the game, and
4086 # so weak that their functioning should not be impacted.
4087 am__obj=conftest.${OBJEXT-o}
4088 am__minus_obj=
4089 ;;
4090 none) break ;;
4091 esac
4092 if depmode=$depmode \
4093 source=sub/conftest.c object=$am__obj \
4094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4095 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4096 >/dev/null 2>conftest.err &&
4097 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4098 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4100 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4101 # icc doesn't choke on unknown options, it will just issue warnings
4102 # or remarks (even with -Werror). So we grep stderr for any message
4103 # that says an option was ignored or not supported.
4104 # When given -MP, icc 7.0 and 7.1 complain thusly:
4105 # icc: Command line warning: ignoring option '-M'; no argument required
4106 # The diagnosis changed in icc 8.0:
4107 # icc: Command line remark: option '-MP' not supported
4108 if (grep 'ignoring option' conftest.err ||
4109 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4110 am_cv_CXX_dependencies_compiler_type=$depmode
4111 break
4112 fi
4113 fi
4114 done
4115
4116 cd ..
4117 rm -rf conftest.dir
4118 else
4119 am_cv_CXX_dependencies_compiler_type=none
4120 fi
4121
4122 fi
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4124 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4125 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4126
4127 if
4128 test "x$enable_dependency_tracking" != xno \
4129 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4130 am__fastdepCXX_TRUE=
4131 am__fastdepCXX_FALSE='#'
4132 else
4133 am__fastdepCXX_TRUE='#'
4134 am__fastdepCXX_FALSE=
4135 fi
4136
4137
4138 # Make sure we can run config.sub.
4139 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4140 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4143 $as_echo_n "checking build system type... " >&6; }
4144 if ${ac_cv_build+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 ac_build_alias=$build_alias
4148 test "x$ac_build_alias" = x &&
4149 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4150 test "x$ac_build_alias" = x &&
4151 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4152 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4153 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4154
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4157 $as_echo "$ac_cv_build" >&6; }
4158 case $ac_cv_build in
4159 *-*-*) ;;
4160 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4161 esac
4162 build=$ac_cv_build
4163 ac_save_IFS=$IFS; IFS='-'
4164 set x $ac_cv_build
4165 shift
4166 build_cpu=$1
4167 build_vendor=$2
4168 shift; shift
4169 # Remember, the first character of IFS is used to create $*,
4170 # except with old shells:
4171 build_os=$*
4172 IFS=$ac_save_IFS
4173 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4174
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4177 $as_echo_n "checking host system type... " >&6; }
4178 if ${ac_cv_host+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test "x$host_alias" = x; then
4182 ac_cv_host=$ac_cv_build
4183 else
4184 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4185 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4186 fi
4187
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4190 $as_echo "$ac_cv_host" >&6; }
4191 case $ac_cv_host in
4192 *-*-*) ;;
4193 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4194 esac
4195 host=$ac_cv_host
4196 ac_save_IFS=$IFS; IFS='-'
4197 set x $ac_cv_host
4198 shift
4199 host_cpu=$1
4200 host_vendor=$2
4201 shift; shift
4202 # Remember, the first character of IFS is used to create $*,
4203 # except with old shells:
4204 host_os=$*
4205 IFS=$ac_save_IFS
4206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4207
4208
4209 enable_win32_dll=yes
4210
4211 case $host in
4212 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}as; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_prog_AS+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if test -n "$AS"; then
4222 ac_cv_prog_AS="$AS" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231 ac_cv_prog_AS="${ac_tool_prefix}as"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235 done
4236 done
4237 IFS=$as_save_IFS
4238
4239 fi
4240 fi
4241 AS=$ac_cv_prog_AS
4242 if test -n "$AS"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4244 $as_echo "$AS" >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 fi
4249
4250
4251 fi
4252 if test -z "$ac_cv_prog_AS"; then
4253 ac_ct_AS=$AS
4254 # Extract the first word of "as", so it can be a program name with args.
4255 set dummy as; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$ac_ct_AS"; then
4262 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4266 do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_prog_ac_ct_AS="as"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275 done
4276 done
4277 IFS=$as_save_IFS
4278
4279 fi
4280 fi
4281 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4282 if test -n "$ac_ct_AS"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4284 $as_echo "$ac_ct_AS" >&6; }
4285 else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4288 fi
4289
4290 if test "x$ac_ct_AS" = x; then
4291 AS="false"
4292 else
4293 case $cross_compiling:$ac_tool_warned in
4294 yes:)
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4297 ac_tool_warned=yes ;;
4298 esac
4299 AS=$ac_ct_AS
4300 fi
4301 else
4302 AS="$ac_cv_prog_AS"
4303 fi
4304
4305 if test -n "$ac_tool_prefix"; then
4306 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4307 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_DLLTOOL+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$DLLTOOL"; then
4314 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 DLLTOOL=$ac_cv_prog_DLLTOOL
4334 if test -n "$DLLTOOL"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4336 $as_echo "$DLLTOOL" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342
4343 fi
4344 if test -z "$ac_cv_prog_DLLTOOL"; then
4345 ac_ct_DLLTOOL=$DLLTOOL
4346 # Extract the first word of "dlltool", so it can be a program name with args.
4347 set dummy dlltool; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -n "$ac_ct_DLLTOOL"; then
4354 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4358 do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367 done
4368 done
4369 IFS=$as_save_IFS
4370
4371 fi
4372 fi
4373 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4374 if test -n "$ac_ct_DLLTOOL"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4376 $as_echo "$ac_ct_DLLTOOL" >&6; }
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4380 fi
4381
4382 if test "x$ac_ct_DLLTOOL" = x; then
4383 DLLTOOL="false"
4384 else
4385 case $cross_compiling:$ac_tool_warned in
4386 yes:)
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4389 ac_tool_warned=yes ;;
4390 esac
4391 DLLTOOL=$ac_ct_DLLTOOL
4392 fi
4393 else
4394 DLLTOOL="$ac_cv_prog_DLLTOOL"
4395 fi
4396
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if ${ac_cv_prog_OBJDUMP+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$OBJDUMP"; then
4406 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 OBJDUMP=$ac_cv_prog_OBJDUMP
4426 if test -n "$OBJDUMP"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4428 $as_echo "$OBJDUMP" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435 fi
4436 if test -z "$ac_cv_prog_OBJDUMP"; then
4437 ac_ct_OBJDUMP=$OBJDUMP
4438 # Extract the first word of "objdump", so it can be a program name with args.
4439 set dummy objdump; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_OBJDUMP"; then
4446 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4466 if test -n "$ac_ct_OBJDUMP"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4468 $as_echo "$ac_ct_OBJDUMP" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474 if test "x$ac_ct_OBJDUMP" = x; then
4475 OBJDUMP="false"
4476 else
4477 case $cross_compiling:$ac_tool_warned in
4478 yes:)
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4481 ac_tool_warned=yes ;;
4482 esac
4483 OBJDUMP=$ac_ct_OBJDUMP
4484 fi
4485 else
4486 OBJDUMP="$ac_cv_prog_OBJDUMP"
4487 fi
4488
4489 ;;
4490 esac
4491
4492 test -z "$AS" && AS=as
4493
4494
4495
4496
4497
4498 test -z "$DLLTOOL" && DLLTOOL=dlltool
4499
4500
4501
4502
4503
4504 test -z "$OBJDUMP" && OBJDUMP=objdump
4505
4506
4507
4508
4509
4510
4511
4512 case `pwd` in
4513 *\ * | *\ *)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4515 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4516 esac
4517
4518
4519
4520 macro_version='2.4'
4521 macro_revision='1.3293'
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535 ltmain="$ac_aux_dir/ltmain.sh"
4536
4537 # Backslashify metacharacters that are still active within
4538 # double-quoted strings.
4539 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4540
4541 # Same as above, but do not quote variable references.
4542 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4543
4544 # Sed substitution to delay expansion of an escaped shell variable in a
4545 # double_quote_subst'ed string.
4546 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4547
4548 # Sed substitution to delay expansion of an escaped single quote.
4549 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4550
4551 # Sed substitution to avoid accidental globbing in evaled expressions
4552 no_glob_subst='s/\*/\\\*/g'
4553
4554 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4555 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4556 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4559 $as_echo_n "checking how to print strings... " >&6; }
4560 # Test print first, because it will be a builtin if present.
4561 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4562 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4563 ECHO='print -r --'
4564 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4565 ECHO='printf %s\n'
4566 else
4567 # Use this function as a fallback that always works.
4568 func_fallback_echo ()
4569 {
4570 eval 'cat <<_LTECHO_EOF
4571 $1
4572 _LTECHO_EOF'
4573 }
4574 ECHO='func_fallback_echo'
4575 fi
4576
4577 # func_echo_all arg...
4578 # Invoke $ECHO with all args, space-separated.
4579 func_echo_all ()
4580 {
4581 $ECHO ""
4582 }
4583
4584 case "$ECHO" in
4585 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4586 $as_echo "printf" >&6; } ;;
4587 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4588 $as_echo "print -r" >&6; } ;;
4589 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4590 $as_echo "cat" >&6; } ;;
4591 esac
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4607 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4608 if ${ac_cv_path_SED+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4612 for ac_i in 1 2 3 4 5 6 7; do
4613 ac_script="$ac_script$as_nl$ac_script"
4614 done
4615 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4616 { ac_script=; unset ac_script;}
4617 if test -z "$SED"; then
4618 ac_path_SED_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_prog in sed gsed; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4628 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4629 # Check for GNU ac_path_SED and select it if it is found.
4630 # Check for GNU $ac_path_SED
4631 case `"$ac_path_SED" --version 2>&1` in
4632 *GNU*)
4633 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4634 *)
4635 ac_count=0
4636 $as_echo_n 0123456789 >"conftest.in"
4637 while :
4638 do
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo '' >> "conftest.nl"
4643 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_SED_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_SED="$ac_path_SED"
4649 ac_path_SED_max=$ac_count
4650 fi
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4653 done
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655 esac
4656
4657 $ac_path_SED_found && break 3
4658 done
4659 done
4660 done
4661 IFS=$as_save_IFS
4662 if test -z "$ac_cv_path_SED"; then
4663 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4664 fi
4665 else
4666 ac_cv_path_SED=$SED
4667 fi
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4671 $as_echo "$ac_cv_path_SED" >&6; }
4672 SED="$ac_cv_path_SED"
4673 rm -f conftest.sed
4674
4675 test -z "$SED" && SED=sed
4676 Xsed="$SED -e 1s/^X//"
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4689 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4690 if ${ac_cv_path_GREP+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -z "$GREP"; then
4694 ac_path_GREP_found=false
4695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_prog in grep ggrep; do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4704 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4705 # Check for GNU ac_path_GREP and select it if it is found.
4706 # Check for GNU $ac_path_GREP
4707 case `"$ac_path_GREP" --version 2>&1` in
4708 *GNU*)
4709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4710 *)
4711 ac_count=0
4712 $as_echo_n 0123456789 >"conftest.in"
4713 while :
4714 do
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 $as_echo 'GREP' >> "conftest.nl"
4719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
4722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_GREP="$ac_path_GREP"
4725 ac_path_GREP_max=$ac_count
4726 fi
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4729 done
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 esac
4732
4733 $ac_path_GREP_found && break 3
4734 done
4735 done
4736 done
4737 IFS=$as_save_IFS
4738 if test -z "$ac_cv_path_GREP"; then
4739 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740 fi
4741 else
4742 ac_cv_path_GREP=$GREP
4743 fi
4744
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4747 $as_echo "$ac_cv_path_GREP" >&6; }
4748 GREP="$ac_cv_path_GREP"
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4752 $as_echo_n "checking for egrep... " >&6; }
4753 if ${ac_cv_path_EGREP+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4757 then ac_cv_path_EGREP="$GREP -E"
4758 else
4759 if test -z "$EGREP"; then
4760 ac_path_EGREP_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in egrep; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4770 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4771 # Check for GNU ac_path_EGREP and select it if it is found.
4772 # Check for GNU $ac_path_EGREP
4773 case `"$ac_path_EGREP" --version 2>&1` in
4774 *GNU*)
4775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4776 *)
4777 ac_count=0
4778 $as_echo_n 0123456789 >"conftest.in"
4779 while :
4780 do
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo 'EGREP' >> "conftest.nl"
4785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_EGREP="$ac_path_EGREP"
4791 ac_path_EGREP_max=$ac_count
4792 fi
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4795 done
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797 esac
4798
4799 $ac_path_EGREP_found && break 3
4800 done
4801 done
4802 done
4803 IFS=$as_save_IFS
4804 if test -z "$ac_cv_path_EGREP"; then
4805 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4806 fi
4807 else
4808 ac_cv_path_EGREP=$EGREP
4809 fi
4810
4811 fi
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4814 $as_echo "$ac_cv_path_EGREP" >&6; }
4815 EGREP="$ac_cv_path_EGREP"
4816
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4819 $as_echo_n "checking for fgrep... " >&6; }
4820 if ${ac_cv_path_FGREP+:} false; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4824 then ac_cv_path_FGREP="$GREP -F"
4825 else
4826 if test -z "$FGREP"; then
4827 ac_path_FGREP_found=false
4828 # Loop through the user's path and test for each of PROGNAME-LIST
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4831 do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_prog in fgrep; do
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4837 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4838 # Check for GNU ac_path_FGREP and select it if it is found.
4839 # Check for GNU $ac_path_FGREP
4840 case `"$ac_path_FGREP" --version 2>&1` in
4841 *GNU*)
4842 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4843 *)
4844 ac_count=0
4845 $as_echo_n 0123456789 >"conftest.in"
4846 while :
4847 do
4848 cat "conftest.in" "conftest.in" >"conftest.tmp"
4849 mv "conftest.tmp" "conftest.in"
4850 cp "conftest.in" "conftest.nl"
4851 $as_echo 'FGREP' >> "conftest.nl"
4852 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854 as_fn_arith $ac_count + 1 && ac_count=$as_val
4855 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4856 # Best one so far, save it but keep looking for a better one
4857 ac_cv_path_FGREP="$ac_path_FGREP"
4858 ac_path_FGREP_max=$ac_count
4859 fi
4860 # 10*(2^10) chars as input seems more than enough
4861 test $ac_count -gt 10 && break
4862 done
4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4864 esac
4865
4866 $ac_path_FGREP_found && break 3
4867 done
4868 done
4869 done
4870 IFS=$as_save_IFS
4871 if test -z "$ac_cv_path_FGREP"; then
4872 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4873 fi
4874 else
4875 ac_cv_path_FGREP=$FGREP
4876 fi
4877
4878 fi
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4881 $as_echo "$ac_cv_path_FGREP" >&6; }
4882 FGREP="$ac_cv_path_FGREP"
4883
4884
4885 test -z "$GREP" && GREP=grep
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905 # Check whether --with-gnu-ld was given.
4906 if test "${with_gnu_ld+set}" = set; then :
4907 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4908 else
4909 with_gnu_ld=no
4910 fi
4911
4912 ac_prog=ld
4913 if test "$GCC" = yes; then
4914 # Check if gcc -print-prog-name=ld gives a path.
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4916 $as_echo_n "checking for ld used by $CC... " >&6; }
4917 case $host in
4918 *-*-mingw*)
4919 # gcc leaves a trailing carriage return which upsets mingw
4920 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4921 *)
4922 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4923 esac
4924 case $ac_prog in
4925 # Accept absolute paths.
4926 [\\/]* | ?:[\\/]*)
4927 re_direlt='/[^/][^/]*/\.\./'
4928 # Canonicalize the pathname of ld
4929 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4930 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4931 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4932 done
4933 test -z "$LD" && LD="$ac_prog"
4934 ;;
4935 "")
4936 # If it fails, then pretend we aren't using GCC.
4937 ac_prog=ld
4938 ;;
4939 *)
4940 # If it is relative, then search for the first ld in PATH.
4941 with_gnu_ld=unknown
4942 ;;
4943 esac
4944 elif test "$with_gnu_ld" = yes; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4946 $as_echo_n "checking for GNU ld... " >&6; }
4947 else
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4949 $as_echo_n "checking for non-GNU ld... " >&6; }
4950 fi
4951 if ${lt_cv_path_LD+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -z "$LD"; then
4955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4956 for ac_dir in $PATH; do
4957 IFS="$lt_save_ifs"
4958 test -z "$ac_dir" && ac_dir=.
4959 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4960 lt_cv_path_LD="$ac_dir/$ac_prog"
4961 # Check to see if the program is GNU ld. I'd rather use --version,
4962 # but apparently some variants of GNU ld only accept -v.
4963 # Break only if it was the GNU/non-GNU ld that we prefer.
4964 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4965 *GNU* | *'with BFD'*)
4966 test "$with_gnu_ld" != no && break
4967 ;;
4968 *)
4969 test "$with_gnu_ld" != yes && break
4970 ;;
4971 esac
4972 fi
4973 done
4974 IFS="$lt_save_ifs"
4975 else
4976 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4977 fi
4978 fi
4979
4980 LD="$lt_cv_path_LD"
4981 if test -n "$LD"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4983 $as_echo "$LD" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4988 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4990 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4991 if ${lt_cv_prog_gnu_ld+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4995 case `$LD -v 2>&1 </dev/null` in
4996 *GNU* | *'with BFD'*)
4997 lt_cv_prog_gnu_ld=yes
4998 ;;
4999 *)
5000 lt_cv_prog_gnu_ld=no
5001 ;;
5002 esac
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5005 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5006 with_gnu_ld=$lt_cv_prog_gnu_ld
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5017 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5018 if ${lt_cv_path_NM+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -n "$NM"; then
5022 # Let the user override the test.
5023 lt_cv_path_NM="$NM"
5024 else
5025 lt_nm_to_check="${ac_tool_prefix}nm"
5026 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5027 lt_nm_to_check="$lt_nm_to_check nm"
5028 fi
5029 for lt_tmp_nm in $lt_nm_to_check; do
5030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5032 IFS="$lt_save_ifs"
5033 test -z "$ac_dir" && ac_dir=.
5034 tmp_nm="$ac_dir/$lt_tmp_nm"
5035 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5036 # Check to see if the nm accepts a BSD-compat flag.
5037 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5038 # nm: unknown option "B" ignored
5039 # Tru64's nm complains that /dev/null is an invalid object file
5040 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5041 */dev/null* | *'Invalid file or object type'*)
5042 lt_cv_path_NM="$tmp_nm -B"
5043 break
5044 ;;
5045 *)
5046 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5047 */dev/null*)
5048 lt_cv_path_NM="$tmp_nm -p"
5049 break
5050 ;;
5051 *)
5052 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5053 continue # so that we can try to find one that supports BSD flags
5054 ;;
5055 esac
5056 ;;
5057 esac
5058 fi
5059 done
5060 IFS="$lt_save_ifs"
5061 done
5062 : ${lt_cv_path_NM=no}
5063 fi
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5066 $as_echo "$lt_cv_path_NM" >&6; }
5067 if test "$lt_cv_path_NM" != "no"; then
5068 NM="$lt_cv_path_NM"
5069 else
5070 # Didn't find any BSD compatible name lister, look for dumpbin.
5071 if test -n "$DUMPBIN"; then :
5072 # Let the user override the test.
5073 else
5074 if test -n "$ac_tool_prefix"; then
5075 for ac_prog in dumpbin "link -dump"
5076 do
5077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_DUMPBIN+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$DUMPBIN"; then
5085 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098 done
5099 done
5100 IFS=$as_save_IFS
5101
5102 fi
5103 fi
5104 DUMPBIN=$ac_cv_prog_DUMPBIN
5105 if test -n "$DUMPBIN"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5107 $as_echo "$DUMPBIN" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113
5114 test -n "$DUMPBIN" && break
5115 done
5116 fi
5117 if test -z "$DUMPBIN"; then
5118 ac_ct_DUMPBIN=$DUMPBIN
5119 for ac_prog in dumpbin "link -dump"
5120 do
5121 # Extract the first word of "$ac_prog", so it can be a program name with args.
5122 set dummy $ac_prog; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$ac_ct_DUMPBIN"; then
5129 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146 fi
5147 fi
5148 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5149 if test -n "$ac_ct_DUMPBIN"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5151 $as_echo "$ac_ct_DUMPBIN" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156
5157
5158 test -n "$ac_ct_DUMPBIN" && break
5159 done
5160
5161 if test "x$ac_ct_DUMPBIN" = x; then
5162 DUMPBIN=":"
5163 else
5164 case $cross_compiling:$ac_tool_warned in
5165 yes:)
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168 ac_tool_warned=yes ;;
5169 esac
5170 DUMPBIN=$ac_ct_DUMPBIN
5171 fi
5172 fi
5173
5174 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5175 *COFF*)
5176 DUMPBIN="$DUMPBIN -symbols"
5177 ;;
5178 *)
5179 DUMPBIN=:
5180 ;;
5181 esac
5182 fi
5183
5184 if test "$DUMPBIN" != ":"; then
5185 NM="$DUMPBIN"
5186 fi
5187 fi
5188 test -z "$NM" && NM=nm
5189
5190
5191
5192
5193
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5196 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5197 if ${lt_cv_nm_interface+:} false; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 lt_cv_nm_interface="BSD nm"
5201 echo "int some_variable = 0;" > conftest.$ac_ext
5202 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5203 (eval "$ac_compile" 2>conftest.err)
5204 cat conftest.err >&5
5205 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5206 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5207 cat conftest.err >&5
5208 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5209 cat conftest.out >&5
5210 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5211 lt_cv_nm_interface="MS dumpbin"
5212 fi
5213 rm -f conftest*
5214 fi
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5216 $as_echo "$lt_cv_nm_interface" >&6; }
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5219 $as_echo_n "checking whether ln -s works... " >&6; }
5220 LN_S=$as_ln_s
5221 if test "$LN_S" = "ln -s"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5226 $as_echo "no, using $LN_S" >&6; }
5227 fi
5228
5229 # find the maximum length of command line arguments
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5231 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5232 if ${lt_cv_sys_max_cmd_len+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 i=0
5236 teststring="ABCD"
5237
5238 case $build_os in
5239 msdosdjgpp*)
5240 # On DJGPP, this test can blow up pretty badly due to problems in libc
5241 # (any single argument exceeding 2000 bytes causes a buffer overrun
5242 # during glob expansion). Even if it were fixed, the result of this
5243 # check would be larger than it should be.
5244 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5245 ;;
5246
5247 gnu*)
5248 # Under GNU Hurd, this test is not required because there is
5249 # no limit to the length of command line arguments.
5250 # Libtool will interpret -1 as no limit whatsoever
5251 lt_cv_sys_max_cmd_len=-1;
5252 ;;
5253
5254 cygwin* | mingw* | cegcc*)
5255 # On Win9x/ME, this test blows up -- it succeeds, but takes
5256 # about 5 minutes as the teststring grows exponentially.
5257 # Worse, since 9x/ME are not pre-emptively multitasking,
5258 # you end up with a "frozen" computer, even though with patience
5259 # the test eventually succeeds (with a max line length of 256k).
5260 # Instead, let's just punt: use the minimum linelength reported by
5261 # all of the supported platforms: 8192 (on NT/2K/XP).
5262 lt_cv_sys_max_cmd_len=8192;
5263 ;;
5264
5265 mint*)
5266 # On MiNT this can take a long time and run out of memory.
5267 lt_cv_sys_max_cmd_len=8192;
5268 ;;
5269
5270 amigaos*)
5271 # On AmigaOS with pdksh, this test takes hours, literally.
5272 # So we just punt and use a minimum line length of 8192.
5273 lt_cv_sys_max_cmd_len=8192;
5274 ;;
5275
5276 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5277 # This has been around since 386BSD, at least. Likely further.
5278 if test -x /sbin/sysctl; then
5279 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5280 elif test -x /usr/sbin/sysctl; then
5281 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5282 else
5283 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5284 fi
5285 # And add a safety zone
5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5288 ;;
5289
5290 interix*)
5291 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5292 lt_cv_sys_max_cmd_len=196608
5293 ;;
5294
5295 osf*)
5296 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5297 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5298 # nice to cause kernel panics so lets avoid the loop below.
5299 # First set a reasonable default.
5300 lt_cv_sys_max_cmd_len=16384
5301 #
5302 if test -x /sbin/sysconfig; then
5303 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5304 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5305 esac
5306 fi
5307 ;;
5308 sco3.2v5*)
5309 lt_cv_sys_max_cmd_len=102400
5310 ;;
5311 sysv5* | sco5v6* | sysv4.2uw2*)
5312 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5313 if test -n "$kargmax"; then
5314 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5315 else
5316 lt_cv_sys_max_cmd_len=32768
5317 fi
5318 ;;
5319 *)
5320 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5321 if test -n "$lt_cv_sys_max_cmd_len"; then
5322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5324 else
5325 # Make teststring a little bigger before we do anything with it.
5326 # a 1K string should be a reasonable start.
5327 for i in 1 2 3 4 5 6 7 8 ; do
5328 teststring=$teststring$teststring
5329 done
5330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5331 # If test is not a shell built-in, we'll probably end up computing a
5332 # maximum length that is only half of the actual maximum length, but
5333 # we can't tell.
5334 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5335 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5336 test $i != 17 # 1/2 MB should be enough
5337 do
5338 i=`expr $i + 1`
5339 teststring=$teststring$teststring
5340 done
5341 # Only check the string length outside the loop.
5342 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5343 teststring=
5344 # Add a significant safety factor because C++ compilers can tack on
5345 # massive amounts of additional arguments before passing them to the
5346 # linker. It appears as though 1/2 is a usable value.
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5348 fi
5349 ;;
5350 esac
5351
5352 fi
5353
5354 if test -n $lt_cv_sys_max_cmd_len ; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5356 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5359 $as_echo "none" >&6; }
5360 fi
5361 max_cmd_len=$lt_cv_sys_max_cmd_len
5362
5363
5364
5365
5366
5367
5368 : ${CP="cp -f"}
5369 : ${MV="mv -f"}
5370 : ${RM="rm -f"}
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5373 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5374 # Try some XSI features
5375 xsi_shell=no
5376 ( _lt_dummy="a/b/c"
5377 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5378 = c,a/b,b/c, \
5379 && eval 'test $(( 1 + 1 )) -eq 2 \
5380 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5381 && xsi_shell=yes
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5383 $as_echo "$xsi_shell" >&6; }
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5387 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5388 lt_shell_append=no
5389 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5390 >/dev/null 2>&1 \
5391 && lt_shell_append=yes
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5393 $as_echo "$lt_shell_append" >&6; }
5394
5395
5396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5397 lt_unset=unset
5398 else
5399 lt_unset=false
5400 fi
5401
5402
5403
5404
5405
5406 # test EBCDIC or ASCII
5407 case `echo X|tr X '\101'` in
5408 A) # ASCII based system
5409 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5410 lt_SP2NL='tr \040 \012'
5411 lt_NL2SP='tr \015\012 \040\040'
5412 ;;
5413 *) # EBCDIC based system
5414 lt_SP2NL='tr \100 \n'
5415 lt_NL2SP='tr \r\n \100\100'
5416 ;;
5417 esac
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5428 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5429 if ${lt_cv_to_host_file_cmd+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 case $host in
5433 *-*-mingw* )
5434 case $build in
5435 *-*-mingw* ) # actually msys
5436 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5437 ;;
5438 *-*-cygwin* )
5439 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5440 ;;
5441 * ) # otherwise, assume *nix
5442 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5443 ;;
5444 esac
5445 ;;
5446 *-*-cygwin* )
5447 case $build in
5448 *-*-mingw* ) # actually msys
5449 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5450 ;;
5451 *-*-cygwin* )
5452 lt_cv_to_host_file_cmd=func_convert_file_noop
5453 ;;
5454 * ) # otherwise, assume *nix
5455 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5456 ;;
5457 esac
5458 ;;
5459 * ) # unhandled hosts (and "normal" native builds)
5460 lt_cv_to_host_file_cmd=func_convert_file_noop
5461 ;;
5462 esac
5463
5464 fi
5465
5466 to_host_file_cmd=$lt_cv_to_host_file_cmd
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5468 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5469
5470
5471
5472
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5475 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5476 if ${lt_cv_to_tool_file_cmd+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 #assume ordinary cross tools, or native build.
5480 lt_cv_to_tool_file_cmd=func_convert_file_noop
5481 case $host in
5482 *-*-mingw* )
5483 case $build in
5484 *-*-mingw* ) # actually msys
5485 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5486 ;;
5487 esac
5488 ;;
5489 esac
5490
5491 fi
5492
5493 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5495 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5496
5497
5498
5499
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5502 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5503 if ${lt_cv_ld_reload_flag+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 lt_cv_ld_reload_flag='-r'
5507 fi
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5509 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5510 reload_flag=$lt_cv_ld_reload_flag
5511 case $reload_flag in
5512 "" | " "*) ;;
5513 *) reload_flag=" $reload_flag" ;;
5514 esac
5515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5516 case $host_os in
5517 cygwin* | mingw* | pw32* | cegcc*)
5518 if test "$GCC" != yes; then
5519 reload_cmds=false
5520 fi
5521 ;;
5522 darwin*)
5523 if test "$GCC" = yes; then
5524 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5525 else
5526 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5527 fi
5528 ;;
5529 esac
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539 if test -n "$ac_tool_prefix"; then
5540 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5541 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_OBJDUMP+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$OBJDUMP"; then
5548 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561 done
5562 done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 OBJDUMP=$ac_cv_prog_OBJDUMP
5568 if test -n "$OBJDUMP"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5570 $as_echo "$OBJDUMP" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576
5577 fi
5578 if test -z "$ac_cv_prog_OBJDUMP"; then
5579 ac_ct_OBJDUMP=$OBJDUMP
5580 # Extract the first word of "objdump", so it can be a program name with args.
5581 set dummy objdump; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$ac_ct_OBJDUMP"; then
5588 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5608 if test -n "$ac_ct_OBJDUMP"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5610 $as_echo "$ac_ct_OBJDUMP" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616 if test "x$ac_ct_OBJDUMP" = x; then
5617 OBJDUMP="false"
5618 else
5619 case $cross_compiling:$ac_tool_warned in
5620 yes:)
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623 ac_tool_warned=yes ;;
5624 esac
5625 OBJDUMP=$ac_ct_OBJDUMP
5626 fi
5627 else
5628 OBJDUMP="$ac_cv_prog_OBJDUMP"
5629 fi
5630
5631 test -z "$OBJDUMP" && OBJDUMP=objdump
5632
5633
5634
5635
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5639 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5640 if ${lt_cv_deplibs_check_method+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 lt_cv_file_magic_cmd='$MAGIC_CMD'
5644 lt_cv_file_magic_test_file=
5645 lt_cv_deplibs_check_method='unknown'
5646 # Need to set the preceding variable on all platforms that support
5647 # interlibrary dependencies.
5648 # 'none' -- dependencies not supported.
5649 # `unknown' -- same as none, but documents that we really don't know.
5650 # 'pass_all' -- all dependencies passed with no checks.
5651 # 'test_compile' -- check by making test program.
5652 # 'file_magic [[regex]]' -- check by looking for files in library path
5653 # which responds to the $file_magic_cmd with a given extended regex.
5654 # If you have `file' or equivalent on your system and you're not sure
5655 # whether `pass_all' will *always* work, you probably want this one.
5656
5657 case $host_os in
5658 aix[4-9]*)
5659 lt_cv_deplibs_check_method=pass_all
5660 ;;
5661
5662 beos*)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665
5666 bsdi[45]*)
5667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5668 lt_cv_file_magic_cmd='/usr/bin/file -L'
5669 lt_cv_file_magic_test_file=/shlib/libc.so
5670 ;;
5671
5672 cygwin*)
5673 # func_win32_libid is a shell function defined in ltmain.sh
5674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675 lt_cv_file_magic_cmd='func_win32_libid'
5676 ;;
5677
5678 mingw* | pw32*)
5679 # Base MSYS/MinGW do not provide the 'file' command needed by
5680 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5681 # unless we find 'file', for example because we are cross-compiling.
5682 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5683 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5684 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5685 lt_cv_file_magic_cmd='func_win32_libid'
5686 else
5687 # Keep this pattern in sync with the one in func_win32_libid.
5688 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5689 lt_cv_file_magic_cmd='$OBJDUMP -f'
5690 fi
5691 ;;
5692
5693 cegcc*)
5694 # use the weaker test based on 'objdump'. See mingw*.
5695 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5696 lt_cv_file_magic_cmd='$OBJDUMP -f'
5697 ;;
5698
5699 darwin* | rhapsody*)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702
5703 freebsd* | dragonfly*)
5704 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5705 case $host_cpu in
5706 i*86 )
5707 # Not sure whether the presence of OpenBSD here was a mistake.
5708 # Let's accept both of them until this is cleared up.
5709 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5710 lt_cv_file_magic_cmd=/usr/bin/file
5711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5712 ;;
5713 esac
5714 else
5715 lt_cv_deplibs_check_method=pass_all
5716 fi
5717 ;;
5718
5719 gnu*)
5720 lt_cv_deplibs_check_method=pass_all
5721 ;;
5722
5723 haiku*)
5724 lt_cv_deplibs_check_method=pass_all
5725 ;;
5726
5727 hpux10.20* | hpux11*)
5728 lt_cv_file_magic_cmd=/usr/bin/file
5729 case $host_cpu in
5730 ia64*)
5731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5732 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5733 ;;
5734 hppa*64*)
5735 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]'
5736 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5737 ;;
5738 *)
5739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5740 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5741 ;;
5742 esac
5743 ;;
5744
5745 interix[3-9]*)
5746 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5748 ;;
5749
5750 irix5* | irix6* | nonstopux*)
5751 case $LD in
5752 *-32|*"-32 ") libmagic=32-bit;;
5753 *-n32|*"-n32 ") libmagic=N32;;
5754 *-64|*"-64 ") libmagic=64-bit;;
5755 *) libmagic=never-match;;
5756 esac
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759
5760 # This must be Linux ELF.
5761 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764
5765 netbsd* | netbsdelf*-gnu)
5766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5768 else
5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5770 fi
5771 ;;
5772
5773 newos6*)
5774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5775 lt_cv_file_magic_cmd=/usr/bin/file
5776 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5777 ;;
5778
5779 *nto* | *qnx*)
5780 lt_cv_deplibs_check_method=pass_all
5781 ;;
5782
5783 openbsd*)
5784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5786 else
5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5788 fi
5789 ;;
5790
5791 osf3* | osf4* | osf5*)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794
5795 rdos*)
5796 lt_cv_deplibs_check_method=pass_all
5797 ;;
5798
5799 solaris*)
5800 lt_cv_deplibs_check_method=pass_all
5801 ;;
5802
5803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806
5807 sysv4 | sysv4.3*)
5808 case $host_vendor in
5809 motorola)
5810 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]'
5811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5812 ;;
5813 ncr)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816 sequent)
5817 lt_cv_file_magic_cmd='/bin/file'
5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5819 ;;
5820 sni)
5821 lt_cv_file_magic_cmd='/bin/file'
5822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5823 lt_cv_file_magic_test_file=/lib/libc.so
5824 ;;
5825 siemens)
5826 lt_cv_deplibs_check_method=pass_all
5827 ;;
5828 pc)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831 esac
5832 ;;
5833
5834 tpf*)
5835 lt_cv_deplibs_check_method=pass_all
5836 ;;
5837 esac
5838
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5841 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5842
5843 file_magic_glob=
5844 want_nocaseglob=no
5845 if test "$build" = "$host"; then
5846 case $host_os in
5847 mingw* | pw32*)
5848 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5849 want_nocaseglob=yes
5850 else
5851 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5852 fi
5853 ;;
5854 esac
5855 fi
5856
5857 file_magic_cmd=$lt_cv_file_magic_cmd
5858 deplibs_check_method=$lt_cv_deplibs_check_method
5859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5884 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_DLLTOOL+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$DLLTOOL"; then
5891 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 DLLTOOL=$ac_cv_prog_DLLTOOL
5911 if test -n "$DLLTOOL"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5913 $as_echo "$DLLTOOL" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919
5920 fi
5921 if test -z "$ac_cv_prog_DLLTOOL"; then
5922 ac_ct_DLLTOOL=$DLLTOOL
5923 # Extract the first word of "dlltool", so it can be a program name with args.
5924 set dummy dlltool; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if test -n "$ac_ct_DLLTOOL"; then
5931 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5951 if test -n "$ac_ct_DLLTOOL"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5953 $as_echo "$ac_ct_DLLTOOL" >&6; }
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959 if test "x$ac_ct_DLLTOOL" = x; then
5960 DLLTOOL="false"
5961 else
5962 case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968 DLLTOOL=$ac_ct_DLLTOOL
5969 fi
5970 else
5971 DLLTOOL="$ac_cv_prog_DLLTOOL"
5972 fi
5973
5974 test -z "$DLLTOOL" && DLLTOOL=dlltool
5975
5976
5977
5978
5979
5980
5981
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5983 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5984 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 lt_cv_sharedlib_from_linklib_cmd='unknown'
5988
5989 case $host_os in
5990 cygwin* | mingw* | pw32* | cegcc*)
5991 # two different shell functions defined in ltmain.sh
5992 # decide which to use based on capabilities of $DLLTOOL
5993 case `$DLLTOOL --help 2>&1` in
5994 *--identify-strict*)
5995 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5996 ;;
5997 *)
5998 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5999 ;;
6000 esac
6001 ;;
6002 *)
6003 # fallback: assume linklib IS sharedlib
6004 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6005 ;;
6006 esac
6007
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6010 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6011 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6012 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6013
6014
6015
6016
6017
6018
6019
6020
6021 if test -n "$ac_tool_prefix"; then
6022 for ac_prog in ar
6023 do
6024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_AR+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 if test -n "$AR"; then
6032 ac_cv_prog_AR="$AR" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037 IFS=$as_save_IFS
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 break 2
6044 fi
6045 done
6046 done
6047 IFS=$as_save_IFS
6048
6049 fi
6050 fi
6051 AR=$ac_cv_prog_AR
6052 if test -n "$AR"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6054 $as_echo "$AR" >&6; }
6055 else
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059
6060
6061 test -n "$AR" && break
6062 done
6063 fi
6064 if test -z "$AR"; then
6065 ac_ct_AR=$AR
6066 for ac_prog in ar
6067 do
6068 # Extract the first word of "$ac_prog", so it can be a program name with args.
6069 set dummy $ac_prog; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$ac_ct_AR"; then
6076 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_ac_ct_AR="$ac_prog"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6096 if test -n "$ac_ct_AR"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6098 $as_echo "$ac_ct_AR" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105 test -n "$ac_ct_AR" && break
6106 done
6107
6108 if test "x$ac_ct_AR" = x; then
6109 AR="false"
6110 else
6111 case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117 AR=$ac_ct_AR
6118 fi
6119 fi
6120
6121 : ${AR=ar}
6122 : ${AR_FLAGS=cru}
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6135 $as_echo_n "checking for archiver @FILE support... " >&6; }
6136 if ${lt_cv_ar_at_file+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 lt_cv_ar_at_file=no
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142
6143 int
6144 main ()
6145 {
6146
6147 ;
6148 return 0;
6149 }
6150 _ACEOF
6151 if ac_fn_c_try_compile "$LINENO"; then :
6152 echo conftest.$ac_objext > conftest.lst
6153 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6155 (eval $lt_ar_try) 2>&5
6156 ac_status=$?
6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158 test $ac_status = 0; }
6159 if test "$ac_status" -eq 0; then
6160 # Ensure the archiver fails upon bogus file names.
6161 rm -f conftest.$ac_objext libconftest.a
6162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6163 (eval $lt_ar_try) 2>&5
6164 ac_status=$?
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }
6167 if test "$ac_status" -ne 0; then
6168 lt_cv_ar_at_file=@
6169 fi
6170 fi
6171 rm -f conftest.* libconftest.a
6172
6173 fi
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6178 $as_echo "$lt_cv_ar_at_file" >&6; }
6179
6180 if test "x$lt_cv_ar_at_file" = xno; then
6181 archiver_list_spec=
6182 else
6183 archiver_list_spec=$lt_cv_ar_at_file
6184 fi
6185
6186
6187
6188
6189
6190
6191
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}strip; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_prog_STRIP+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$STRIP"; then
6201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 STRIP=$ac_cv_prog_STRIP
6221 if test -n "$STRIP"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6223 $as_echo "$STRIP" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6227 fi
6228
6229
6230 fi
6231 if test -z "$ac_cv_prog_STRIP"; then
6232 ac_ct_STRIP=$STRIP
6233 # Extract the first word of "strip", so it can be a program name with args.
6234 set dummy strip; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -n "$ac_ct_STRIP"; then
6241 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_STRIP="strip"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6261 if test -n "$ac_ct_STRIP"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6263 $as_echo "$ac_ct_STRIP" >&6; }
6264 else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6267 fi
6268
6269 if test "x$ac_ct_STRIP" = x; then
6270 STRIP=":"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 STRIP=$ac_ct_STRIP
6279 fi
6280 else
6281 STRIP="$ac_cv_prog_STRIP"
6282 fi
6283
6284 test -z "$STRIP" && STRIP=:
6285
6286
6287
6288
6289
6290
6291 if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_RANLIB+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 if test -n "$RANLIB"; then
6300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 RANLIB=$ac_cv_prog_RANLIB
6320 if test -n "$RANLIB"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6322 $as_echo "$RANLIB" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327
6328
6329 fi
6330 if test -z "$ac_cv_prog_RANLIB"; then
6331 ac_ct_RANLIB=$RANLIB
6332 # Extract the first word of "ranlib", so it can be a program name with args.
6333 set dummy ranlib; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 if test -n "$ac_ct_RANLIB"; then
6340 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_ac_ct_RANLIB="ranlib"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6360 if test -n "$ac_ct_RANLIB"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6362 $as_echo "$ac_ct_RANLIB" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368 if test "x$ac_ct_RANLIB" = x; then
6369 RANLIB=":"
6370 else
6371 case $cross_compiling:$ac_tool_warned in
6372 yes:)
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6376 esac
6377 RANLIB=$ac_ct_RANLIB
6378 fi
6379 else
6380 RANLIB="$ac_cv_prog_RANLIB"
6381 fi
6382
6383 test -z "$RANLIB" && RANLIB=:
6384
6385
6386
6387
6388
6389
6390 # Determine commands to create old-style static archives.
6391 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6392 old_postinstall_cmds='chmod 644 $oldlib'
6393 old_postuninstall_cmds=
6394
6395 if test -n "$RANLIB"; then
6396 case $host_os in
6397 openbsd*)
6398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6399 ;;
6400 *)
6401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6402 ;;
6403 esac
6404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6405 fi
6406
6407 case $host_os in
6408 darwin*)
6409 lock_old_archive_extraction=yes ;;
6410 *)
6411 lock_old_archive_extraction=no ;;
6412 esac
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452 # If no C compiler was specified, use CC.
6453 LTCC=${LTCC-"$CC"}
6454
6455 # If no C compiler flags were specified, use CFLAGS.
6456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6457
6458 # Allow CC to be a program name with arguments.
6459 compiler=$CC
6460
6461
6462 # Check for command to grab the raw symbol name followed by C symbol from nm.
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6464 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6465 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468
6469 # These are sane defaults that work on at least a few old systems.
6470 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6471
6472 # Character class describing NM global symbol codes.
6473 symcode='[BCDEGRST]'
6474
6475 # Regexp to match symbols that can be accessed directly from C.
6476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6477
6478 # Define system-specific variables.
6479 case $host_os in
6480 aix*)
6481 symcode='[BCDT]'
6482 ;;
6483 cygwin* | mingw* | pw32* | cegcc*)
6484 symcode='[ABCDGISTW]'
6485 ;;
6486 hpux*)
6487 if test "$host_cpu" = ia64; then
6488 symcode='[ABCDEGRST]'
6489 fi
6490 ;;
6491 irix* | nonstopux*)
6492 symcode='[BCDEGRST]'
6493 ;;
6494 osf*)
6495 symcode='[BCDEGQRST]'
6496 ;;
6497 solaris*)
6498 symcode='[BDRT]'
6499 ;;
6500 sco3.2v5*)
6501 symcode='[DT]'
6502 ;;
6503 sysv4.2uw2*)
6504 symcode='[DT]'
6505 ;;
6506 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6507 symcode='[ABDT]'
6508 ;;
6509 sysv4)
6510 symcode='[DFNSTU]'
6511 ;;
6512 esac
6513
6514 # If we're using GNU nm, then use its standard symbol codes.
6515 case `$NM -V 2>&1` in
6516 *GNU* | *'with BFD'*)
6517 symcode='[ABCDGIRSTW]' ;;
6518 esac
6519
6520 # Transform an extracted symbol line into a proper C declaration.
6521 # Some systems (esp. on ia64) link data and code symbols differently,
6522 # so use this general approach.
6523 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6524
6525 # Transform an extracted symbol line into symbol name and symbol address
6526 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6527 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6528
6529 # Handle CRLF in mingw tool chain
6530 opt_cr=
6531 case $build_os in
6532 mingw*)
6533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6534 ;;
6535 esac
6536
6537 # Try without a prefix underscore, then with it.
6538 for ac_symprfx in "" "_"; do
6539
6540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6541 symxfrm="\\1 $ac_symprfx\\2 \\2"
6542
6543 # Write the raw and C identifiers.
6544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6545 # Fake it for dumpbin and say T for any non-static function
6546 # and D for any global variable.
6547 # Also find C++ and __fastcall symbols from MSVC++,
6548 # which start with @ or ?.
6549 lt_cv_sys_global_symbol_pipe="$AWK '"\
6550 " {last_section=section; section=\$ 3};"\
6551 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6552 " \$ 0!~/External *\|/{next};"\
6553 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6554 " {if(hide[section]) next};"\
6555 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6556 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6557 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6558 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6559 " ' prfx=^$ac_symprfx"
6560 else
6561 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6562 fi
6563 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6564
6565 # Check to see that the pipe works correctly.
6566 pipe_works=no
6567
6568 rm -f conftest*
6569 cat > conftest.$ac_ext <<_LT_EOF
6570 #ifdef __cplusplus
6571 extern "C" {
6572 #endif
6573 char nm_test_var;
6574 void nm_test_func(void);
6575 void nm_test_func(void){}
6576 #ifdef __cplusplus
6577 }
6578 #endif
6579 int main(){nm_test_var='a';nm_test_func();return(0);}
6580 _LT_EOF
6581
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583 (eval $ac_compile) 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; }; then
6587 # Now try to grab the symbols.
6588 nlist=conftest.nm
6589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6590 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6591 ac_status=$?
6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; } && test -s "$nlist"; then
6594 # Try sorting and uniquifying the output.
6595 if sort "$nlist" | uniq > "$nlist"T; then
6596 mv -f "$nlist"T "$nlist"
6597 else
6598 rm -f "$nlist"T
6599 fi
6600
6601 # Make sure that we snagged all the symbols we need.
6602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6604 cat <<_LT_EOF > conftest.$ac_ext
6605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6606 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6607 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6608 relocations are performed -- see ld's documentation on pseudo-relocs. */
6609 # define LT_DLSYM_CONST
6610 #elif defined(__osf__)
6611 /* This system does not cope well with relocations in const data. */
6612 # define LT_DLSYM_CONST
6613 #else
6614 # define LT_DLSYM_CONST const
6615 #endif
6616
6617 #ifdef __cplusplus
6618 extern "C" {
6619 #endif
6620
6621 _LT_EOF
6622 # Now generate the symbol file.
6623 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6624
6625 cat <<_LT_EOF >> conftest.$ac_ext
6626
6627 /* The mapping between symbol names and symbols. */
6628 LT_DLSYM_CONST struct {
6629 const char *name;
6630 void *address;
6631 }
6632 lt__PROGRAM__LTX_preloaded_symbols[] =
6633 {
6634 { "@PROGRAM@", (void *) 0 },
6635 _LT_EOF
6636 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6637 cat <<\_LT_EOF >> conftest.$ac_ext
6638 {0, (void *) 0}
6639 };
6640
6641 /* This works around a problem in FreeBSD linker */
6642 #ifdef FREEBSD_WORKAROUND
6643 static const void *lt_preloaded_setup() {
6644 return lt__PROGRAM__LTX_preloaded_symbols;
6645 }
6646 #endif
6647
6648 #ifdef __cplusplus
6649 }
6650 #endif
6651 _LT_EOF
6652 # Now try linking the two files.
6653 mv conftest.$ac_objext conftstm.$ac_objext
6654 lt_globsym_save_LIBS=$LIBS
6655 lt_globsym_save_CFLAGS=$CFLAGS
6656 LIBS="conftstm.$ac_objext"
6657 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6659 (eval $ac_link) 2>&5
6660 ac_status=$?
6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6663 pipe_works=yes
6664 fi
6665 LIBS=$lt_globsym_save_LIBS
6666 CFLAGS=$lt_globsym_save_CFLAGS
6667 else
6668 echo "cannot find nm_test_func in $nlist" >&5
6669 fi
6670 else
6671 echo "cannot find nm_test_var in $nlist" >&5
6672 fi
6673 else
6674 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6675 fi
6676 else
6677 echo "$progname: failed program was:" >&5
6678 cat conftest.$ac_ext >&5
6679 fi
6680 rm -rf conftest* conftst*
6681
6682 # Do not use the global_symbol_pipe unless it works.
6683 if test "$pipe_works" = yes; then
6684 break
6685 else
6686 lt_cv_sys_global_symbol_pipe=
6687 fi
6688 done
6689
6690 fi
6691
6692 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6693 lt_cv_sys_global_symbol_to_cdecl=
6694 fi
6695 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6697 $as_echo "failed" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6700 $as_echo "ok" >&6; }
6701 fi
6702
6703 # Response file support.
6704 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6705 nm_file_list_spec='@'
6706 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6707 nm_file_list_spec='@'
6708 fi
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6737 $as_echo_n "checking for sysroot... " >&6; }
6738
6739 # Check whether --with-sysroot was given.
6740 if test "${with_sysroot+set}" = set; then :
6741 withval=$with_sysroot;
6742 else
6743 with_sysroot=no
6744 fi
6745
6746
6747 lt_sysroot=
6748 case ${with_sysroot} in #(
6749 yes)
6750 if test "$GCC" = yes; then
6751 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6752 fi
6753 ;; #(
6754 /*)
6755 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6756 ;; #(
6757 no|'')
6758 ;; #(
6759 *)
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6761 $as_echo "${with_sysroot}" >&6; }
6762 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6763 ;;
6764 esac
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6767 $as_echo "${lt_sysroot:-no}" >&6; }
6768
6769
6770
6771
6772
6773 # Check whether --enable-libtool-lock was given.
6774 if test "${enable_libtool_lock+set}" = set; then :
6775 enableval=$enable_libtool_lock;
6776 fi
6777
6778 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6779
6780 # Some flags need to be propagated to the compiler or linker for good
6781 # libtool support.
6782 case $host in
6783 ia64-*-hpux*)
6784 # Find out which ABI we are using.
6785 echo 'int i;' > conftest.$ac_ext
6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6787 (eval $ac_compile) 2>&5
6788 ac_status=$?
6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790 test $ac_status = 0; }; then
6791 case `/usr/bin/file conftest.$ac_objext` in
6792 *ELF-32*)
6793 HPUX_IA64_MODE="32"
6794 ;;
6795 *ELF-64*)
6796 HPUX_IA64_MODE="64"
6797 ;;
6798 esac
6799 fi
6800 rm -rf conftest*
6801 ;;
6802 *-*-irix6*)
6803 # Find out which ABI we are using.
6804 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6806 (eval $ac_compile) 2>&5
6807 ac_status=$?
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; }; then
6810 if test "$lt_cv_prog_gnu_ld" = yes; then
6811 case `/usr/bin/file conftest.$ac_objext` in
6812 *32-bit*)
6813 LD="${LD-ld} -melf32bsmip"
6814 ;;
6815 *N32*)
6816 LD="${LD-ld} -melf32bmipn32"
6817 ;;
6818 *64-bit*)
6819 LD="${LD-ld} -melf64bmip"
6820 ;;
6821 esac
6822 else
6823 case `/usr/bin/file conftest.$ac_objext` in
6824 *32-bit*)
6825 LD="${LD-ld} -32"
6826 ;;
6827 *N32*)
6828 LD="${LD-ld} -n32"
6829 ;;
6830 *64-bit*)
6831 LD="${LD-ld} -64"
6832 ;;
6833 esac
6834 fi
6835 fi
6836 rm -rf conftest*
6837 ;;
6838
6839 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6840 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6841 # Find out which ABI we are using.
6842 echo 'int i;' > conftest.$ac_ext
6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6844 (eval $ac_compile) 2>&5
6845 ac_status=$?
6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847 test $ac_status = 0; }; then
6848 case `/usr/bin/file conftest.o` in
6849 *32-bit*)
6850 case $host in
6851 x86_64-*kfreebsd*-gnu)
6852 LD="${LD-ld} -m elf_i386_fbsd"
6853 ;;
6854 x86_64-*linux*)
6855 LD="${LD-ld} -m elf_i386"
6856 ;;
6857 ppc64-*linux*|powerpc64-*linux*)
6858 LD="${LD-ld} -m elf32ppclinux"
6859 ;;
6860 s390x-*linux*)
6861 LD="${LD-ld} -m elf_s390"
6862 ;;
6863 sparc64-*linux*)
6864 LD="${LD-ld} -m elf32_sparc"
6865 ;;
6866 esac
6867 ;;
6868 *64-bit*)
6869 case $host in
6870 x86_64-*kfreebsd*-gnu)
6871 LD="${LD-ld} -m elf_x86_64_fbsd"
6872 ;;
6873 x86_64-*linux*)
6874 LD="${LD-ld} -m elf_x86_64"
6875 ;;
6876 ppc*-*linux*|powerpc*-*linux*)
6877 LD="${LD-ld} -m elf64ppc"
6878 ;;
6879 s390*-*linux*|s390*-*tpf*)
6880 LD="${LD-ld} -m elf64_s390"
6881 ;;
6882 sparc*-*linux*)
6883 LD="${LD-ld} -m elf64_sparc"
6884 ;;
6885 esac
6886 ;;
6887 esac
6888 fi
6889 rm -rf conftest*
6890 ;;
6891
6892 *-*-sco3.2v5*)
6893 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6894 SAVE_CFLAGS="$CFLAGS"
6895 CFLAGS="$CFLAGS -belf"
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6897 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6898 if ${lt_cv_cc_needs_belf+:} false; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 ac_ext=c
6902 ac_cpp='$CPP $CPPFLAGS'
6903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6906
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909
6910 int
6911 main ()
6912 {
6913
6914 ;
6915 return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_link "$LINENO"; then :
6919 lt_cv_cc_needs_belf=yes
6920 else
6921 lt_cv_cc_needs_belf=no
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext \
6924 conftest$ac_exeext conftest.$ac_ext
6925 ac_ext=c
6926 ac_cpp='$CPP $CPPFLAGS'
6927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6930
6931 fi
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6933 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6934 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6935 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6936 CFLAGS="$SAVE_CFLAGS"
6937 fi
6938 ;;
6939 sparc*-*solaris*)
6940 # Find out which ABI we are using.
6941 echo 'int i;' > conftest.$ac_ext
6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6943 (eval $ac_compile) 2>&5
6944 ac_status=$?
6945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946 test $ac_status = 0; }; then
6947 case `/usr/bin/file conftest.o` in
6948 *64-bit*)
6949 case $lt_cv_prog_gnu_ld in
6950 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6951 *)
6952 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6953 LD="${LD-ld} -64"
6954 fi
6955 ;;
6956 esac
6957 ;;
6958 esac
6959 fi
6960 rm -rf conftest*
6961 ;;
6962 esac
6963
6964 need_locks="$enable_libtool_lock"
6965
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}mt; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$MANIFEST_TOOL"; then
6975 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6995 if test -n "$MANIFEST_TOOL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6997 $as_echo "$MANIFEST_TOOL" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7006 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7007 # Extract the first word of "mt", so it can be a program name with args.
7008 set dummy mt; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$ac_ct_MANIFEST_TOOL"; then
7015 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7035 if test -n "$ac_ct_MANIFEST_TOOL"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7037 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7044 MANIFEST_TOOL=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7053 fi
7054 else
7055 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7056 fi
7057
7058 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7060 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7061 if ${lt_cv_path_mainfest_tool+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 lt_cv_path_mainfest_tool=no
7065 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7066 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7067 cat conftest.err >&5
7068 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7069 lt_cv_path_mainfest_tool=yes
7070 fi
7071 rm -f conftest*
7072 fi
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7074 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7075 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7076 MANIFEST_TOOL=:
7077 fi
7078
7079
7080
7081
7082
7083
7084 case $host_os in
7085 rhapsody* | darwin*)
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$DSYMUTIL"; then
7095 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7115 if test -n "$DSYMUTIL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7117 $as_echo "$DSYMUTIL" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 fi
7125 if test -z "$ac_cv_prog_DSYMUTIL"; then
7126 ac_ct_DSYMUTIL=$DSYMUTIL
7127 # Extract the first word of "dsymutil", so it can be a program name with args.
7128 set dummy dsymutil; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$ac_ct_DSYMUTIL"; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7155 if test -n "$ac_ct_DSYMUTIL"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7157 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163 if test "x$ac_ct_DSYMUTIL" = x; then
7164 DSYMUTIL=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 DSYMUTIL=$ac_ct_DSYMUTIL
7173 fi
7174 else
7175 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7176 fi
7177
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_NMEDIT+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$NMEDIT"; then
7187 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 NMEDIT=$ac_cv_prog_NMEDIT
7207 if test -n "$NMEDIT"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7209 $as_echo "$NMEDIT" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_NMEDIT"; then
7218 ac_ct_NMEDIT=$NMEDIT
7219 # Extract the first word of "nmedit", so it can be a program name with args.
7220 set dummy nmedit; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$ac_ct_NMEDIT"; then
7227 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7247 if test -n "$ac_ct_NMEDIT"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7249 $as_echo "$ac_ct_NMEDIT" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255 if test "x$ac_ct_NMEDIT" = x; then
7256 NMEDIT=":"
7257 else
7258 case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264 NMEDIT=$ac_ct_NMEDIT
7265 fi
7266 else
7267 NMEDIT="$ac_cv_prog_NMEDIT"
7268 fi
7269
7270 if test -n "$ac_tool_prefix"; then
7271 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7272 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_LIPO+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$LIPO"; then
7279 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 LIPO=$ac_cv_prog_LIPO
7299 if test -n "$LIPO"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7301 $as_echo "$LIPO" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_LIPO"; then
7310 ac_ct_LIPO=$LIPO
7311 # Extract the first word of "lipo", so it can be a program name with args.
7312 set dummy lipo; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$ac_ct_LIPO"; then
7319 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_prog_ac_ct_LIPO="lipo"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7339 if test -n "$ac_ct_LIPO"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7341 $as_echo "$ac_ct_LIPO" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347 if test "x$ac_ct_LIPO" = x; then
7348 LIPO=":"
7349 else
7350 case $cross_compiling:$ac_tool_warned in
7351 yes:)
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7354 ac_tool_warned=yes ;;
7355 esac
7356 LIPO=$ac_ct_LIPO
7357 fi
7358 else
7359 LIPO="$ac_cv_prog_LIPO"
7360 fi
7361
7362 if test -n "$ac_tool_prefix"; then
7363 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7364 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$OTOOL"; then
7371 ac_cv_prog_OTOOL="$OTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7380 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
7391 if test -n "$OTOOL"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7393 $as_echo "$OTOOL" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399
7400 fi
7401 if test -z "$ac_cv_prog_OTOOL"; then
7402 ac_ct_OTOOL=$OTOOL
7403 # Extract the first word of "otool", so it can be a program name with args.
7404 set dummy otool; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$ac_ct_OTOOL"; then
7411 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_prog_ac_ct_OTOOL="otool"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7431 if test -n "$ac_ct_OTOOL"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7433 $as_echo "$ac_ct_OTOOL" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439 if test "x$ac_ct_OTOOL" = x; then
7440 OTOOL=":"
7441 else
7442 case $cross_compiling:$ac_tool_warned in
7443 yes:)
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7446 ac_tool_warned=yes ;;
7447 esac
7448 OTOOL=$ac_ct_OTOOL
7449 fi
7450 else
7451 OTOOL="$ac_cv_prog_OTOOL"
7452 fi
7453
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$OTOOL64"; then
7463 ac_cv_prog_OTOOL64="$OTOOL64" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
7483 if test -n "$OTOOL64"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7485 $as_echo "$OTOOL64" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491
7492 fi
7493 if test -z "$ac_cv_prog_OTOOL64"; then
7494 ac_ct_OTOOL64=$OTOOL64
7495 # Extract the first word of "otool64", so it can be a program name with args.
7496 set dummy otool64; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$ac_ct_OTOOL64"; then
7503 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_prog_ac_ct_OTOOL64="otool64"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7523 if test -n "$ac_ct_OTOOL64"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7525 $as_echo "$ac_ct_OTOOL64" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531 if test "x$ac_ct_OTOOL64" = x; then
7532 OTOOL64=":"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 OTOOL64=$ac_ct_OTOOL64
7541 fi
7542 else
7543 OTOOL64="$ac_cv_prog_OTOOL64"
7544 fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7573 $as_echo_n "checking for -single_module linker flag... " >&6; }
7574 if ${lt_cv_apple_cc_single_mod+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 lt_cv_apple_cc_single_mod=no
7578 if test -z "${LT_MULTI_MODULE}"; then
7579 # By default we will add the -single_module flag. You can override
7580 # by either setting the environment variable LT_MULTI_MODULE
7581 # non-empty at configure time, or by adding -multi_module to the
7582 # link flags.
7583 rm -rf libconftest.dylib*
7584 echo "int foo(void){return 1;}" > conftest.c
7585 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7586 -dynamiclib -Wl,-single_module conftest.c" >&5
7587 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7588 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7589 _lt_result=$?
7590 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7591 lt_cv_apple_cc_single_mod=yes
7592 else
7593 cat conftest.err >&5
7594 fi
7595 rm -rf libconftest.dylib*
7596 rm -f conftest.*
7597 fi
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7600 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7602 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7603 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 lt_cv_ld_exported_symbols_list=no
7607 save_LDFLAGS=$LDFLAGS
7608 echo "_main" > conftest.sym
7609 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7612
7613 int
7614 main ()
7615 {
7616
7617 ;
7618 return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_link "$LINENO"; then :
7622 lt_cv_ld_exported_symbols_list=yes
7623 else
7624 lt_cv_ld_exported_symbols_list=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext \
7627 conftest$ac_exeext conftest.$ac_ext
7628 LDFLAGS="$save_LDFLAGS"
7629
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7632 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7634 $as_echo_n "checking for -force_load linker flag... " >&6; }
7635 if ${lt_cv_ld_force_load+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 lt_cv_ld_force_load=no
7639 cat > conftest.c << _LT_EOF
7640 int forced_loaded() { return 2;}
7641 _LT_EOF
7642 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7643 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7644 echo "$AR cru libconftest.a conftest.o" >&5
7645 $AR cru libconftest.a conftest.o 2>&5
7646 echo "$RANLIB libconftest.a" >&5
7647 $RANLIB libconftest.a 2>&5
7648 cat > conftest.c << _LT_EOF
7649 int main() { return 0;}
7650 _LT_EOF
7651 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7652 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7653 _lt_result=$?
7654 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7655 lt_cv_ld_force_load=yes
7656 else
7657 cat conftest.err >&5
7658 fi
7659 rm -f conftest.err libconftest.a conftest conftest.c
7660 rm -rf conftest.dSYM
7661
7662 fi
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7664 $as_echo "$lt_cv_ld_force_load" >&6; }
7665 case $host_os in
7666 rhapsody* | darwin1.[012])
7667 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7668 darwin1.*)
7669 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7670 darwin*) # darwin 5.x on
7671 # if running on 10.5 or later, the deployment target defaults
7672 # to the OS version, if on x86, and 10.4, the deployment
7673 # target defaults to 10.4. Don't you love it?
7674 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7675 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7676 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7677 10.[012]*)
7678 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7679 10.*)
7680 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7681 esac
7682 ;;
7683 esac
7684 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7685 _lt_dar_single_mod='$single_module'
7686 fi
7687 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7688 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7689 else
7690 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7691 fi
7692 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7693 _lt_dsymutil='~$DSYMUTIL $lib || :'
7694 else
7695 _lt_dsymutil=
7696 fi
7697 ;;
7698 esac
7699
7700 ac_ext=c
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7706 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7707 # On Suns, sometimes $CPP names a directory.
7708 if test -n "$CPP" && test -d "$CPP"; then
7709 CPP=
7710 fi
7711 if test -z "$CPP"; then
7712 if ${ac_cv_prog_CPP+:} false; then :
7713 $as_echo_n "(cached) " >&6
7714 else
7715 # Double quotes because CPP needs to be expanded
7716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7717 do
7718 ac_preproc_ok=false
7719 for ac_c_preproc_warn_flag in '' yes
7720 do
7721 # Use a header file that comes with gcc, so configuring glibc
7722 # with a fresh cross-compiler works.
7723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7724 # <limits.h> exists even on freestanding compilers.
7725 # On the NeXT, cc -E runs the code through the compiler's parser,
7726 # not just through cpp. "Syntax error" is here to catch this case.
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729 #ifdef __STDC__
7730 # include <limits.h>
7731 #else
7732 # include <assert.h>
7733 #endif
7734 Syntax error
7735 _ACEOF
7736 if ac_fn_c_try_cpp "$LINENO"; then :
7737
7738 else
7739 # Broken: fails on valid input.
7740 continue
7741 fi
7742 rm -f conftest.err conftest.i conftest.$ac_ext
7743
7744 # OK, works on sane cases. Now check whether nonexistent headers
7745 # can be detected and how.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #include <ac_nonexistent.h>
7749 _ACEOF
7750 if ac_fn_c_try_cpp "$LINENO"; then :
7751 # Broken: success on invalid input.
7752 continue
7753 else
7754 # Passes both tests.
7755 ac_preproc_ok=:
7756 break
7757 fi
7758 rm -f conftest.err conftest.i conftest.$ac_ext
7759
7760 done
7761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7762 rm -f conftest.i conftest.err conftest.$ac_ext
7763 if $ac_preproc_ok; then :
7764 break
7765 fi
7766
7767 done
7768 ac_cv_prog_CPP=$CPP
7769
7770 fi
7771 CPP=$ac_cv_prog_CPP
7772 else
7773 ac_cv_prog_CPP=$CPP
7774 fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7776 $as_echo "$CPP" >&6; }
7777 ac_preproc_ok=false
7778 for ac_c_preproc_warn_flag in '' yes
7779 do
7780 # Use a header file that comes with gcc, so configuring glibc
7781 # with a fresh cross-compiler works.
7782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7783 # <limits.h> exists even on freestanding compilers.
7784 # On the NeXT, cc -E runs the code through the compiler's parser,
7785 # not just through cpp. "Syntax error" is here to catch this case.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #ifdef __STDC__
7789 # include <limits.h>
7790 #else
7791 # include <assert.h>
7792 #endif
7793 Syntax error
7794 _ACEOF
7795 if ac_fn_c_try_cpp "$LINENO"; then :
7796
7797 else
7798 # Broken: fails on valid input.
7799 continue
7800 fi
7801 rm -f conftest.err conftest.i conftest.$ac_ext
7802
7803 # OK, works on sane cases. Now check whether nonexistent headers
7804 # can be detected and how.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #include <ac_nonexistent.h>
7808 _ACEOF
7809 if ac_fn_c_try_cpp "$LINENO"; then :
7810 # Broken: success on invalid input.
7811 continue
7812 else
7813 # Passes both tests.
7814 ac_preproc_ok=:
7815 break
7816 fi
7817 rm -f conftest.err conftest.i conftest.$ac_ext
7818
7819 done
7820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7821 rm -f conftest.i conftest.err conftest.$ac_ext
7822 if $ac_preproc_ok; then :
7823
7824 else
7825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7827 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7828 See \`config.log' for more details" "$LINENO" 5; }
7829 fi
7830
7831 ac_ext=c
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836
7837
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7839 $as_echo_n "checking for ANSI C header files... " >&6; }
7840 if ${ac_cv_header_stdc+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #include <stdlib.h>
7846 #include <stdarg.h>
7847 #include <string.h>
7848 #include <float.h>
7849
7850 int
7851 main ()
7852 {
7853
7854 ;
7855 return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_compile "$LINENO"; then :
7859 ac_cv_header_stdc=yes
7860 else
7861 ac_cv_header_stdc=no
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864
7865 if test $ac_cv_header_stdc = yes; then
7866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7869 #include <string.h>
7870
7871 _ACEOF
7872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7873 $EGREP "memchr" >/dev/null 2>&1; then :
7874
7875 else
7876 ac_cv_header_stdc=no
7877 fi
7878 rm -f conftest*
7879
7880 fi
7881
7882 if test $ac_cv_header_stdc = yes; then
7883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886 #include <stdlib.h>
7887
7888 _ACEOF
7889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7890 $EGREP "free" >/dev/null 2>&1; then :
7891
7892 else
7893 ac_cv_header_stdc=no
7894 fi
7895 rm -f conftest*
7896
7897 fi
7898
7899 if test $ac_cv_header_stdc = yes; then
7900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7901 if test "$cross_compiling" = yes; then :
7902 :
7903 else
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #include <ctype.h>
7907 #include <stdlib.h>
7908 #if ((' ' & 0x0FF) == 0x020)
7909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7911 #else
7912 # define ISLOWER(c) \
7913 (('a' <= (c) && (c) <= 'i') \
7914 || ('j' <= (c) && (c) <= 'r') \
7915 || ('s' <= (c) && (c) <= 'z'))
7916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7917 #endif
7918
7919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7920 int
7921 main ()
7922 {
7923 int i;
7924 for (i = 0; i < 256; i++)
7925 if (XOR (islower (i), ISLOWER (i))
7926 || toupper (i) != TOUPPER (i))
7927 return 2;
7928 return 0;
7929 }
7930 _ACEOF
7931 if ac_fn_c_try_run "$LINENO"; then :
7932
7933 else
7934 ac_cv_header_stdc=no
7935 fi
7936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7937 conftest.$ac_objext conftest.beam conftest.$ac_ext
7938 fi
7939
7940 fi
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7943 $as_echo "$ac_cv_header_stdc" >&6; }
7944 if test $ac_cv_header_stdc = yes; then
7945
7946 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7947
7948 fi
7949
7950 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7951 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7952 inttypes.h stdint.h unistd.h
7953 do :
7954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7955 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7956 "
7957 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7958 cat >>confdefs.h <<_ACEOF
7959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7960 _ACEOF
7961
7962 fi
7963
7964 done
7965
7966
7967 for ac_header in dlfcn.h
7968 do :
7969 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7970 "
7971 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7972 cat >>confdefs.h <<_ACEOF
7973 #define HAVE_DLFCN_H 1
7974 _ACEOF
7975
7976 fi
7977
7978 done
7979
7980
7981
7982
7983 func_stripname_cnf ()
7984 {
7985 case ${2} in
7986 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7987 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7988 esac
7989 } # func_stripname_cnf
7990
7991
7992
7993
7994
7995 # Set options
7996
7997
7998
7999 enable_dlopen=no
8000
8001
8002
8003 # Check whether --enable-shared was given.
8004 if test "${enable_shared+set}" = set; then :
8005 enableval=$enable_shared; p=${PACKAGE-default}
8006 case $enableval in
8007 yes) enable_shared=yes ;;
8008 no) enable_shared=no ;;
8009 *)
8010 enable_shared=no
8011 # Look at the argument we got. We use all the common list separators.
8012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8013 for pkg in $enableval; do
8014 IFS="$lt_save_ifs"
8015 if test "X$pkg" = "X$p"; then
8016 enable_shared=yes
8017 fi
8018 done
8019 IFS="$lt_save_ifs"
8020 ;;
8021 esac
8022 else
8023 enable_shared=yes
8024 fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 # Check whether --enable-static was given.
8035 if test "${enable_static+set}" = set; then :
8036 enableval=$enable_static; p=${PACKAGE-default}
8037 case $enableval in
8038 yes) enable_static=yes ;;
8039 no) enable_static=no ;;
8040 *)
8041 enable_static=no
8042 # Look at the argument we got. We use all the common list separators.
8043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8044 for pkg in $enableval; do
8045 IFS="$lt_save_ifs"
8046 if test "X$pkg" = "X$p"; then
8047 enable_static=yes
8048 fi
8049 done
8050 IFS="$lt_save_ifs"
8051 ;;
8052 esac
8053 else
8054 enable_static=yes
8055 fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066 # Check whether --with-pic was given.
8067 if test "${with_pic+set}" = set; then :
8068 withval=$with_pic; pic_mode="$withval"
8069 else
8070 pic_mode=default
8071 fi
8072
8073
8074 test -z "$pic_mode" && pic_mode=default
8075
8076
8077
8078
8079
8080
8081
8082 # Check whether --enable-fast-install was given.
8083 if test "${enable_fast_install+set}" = set; then :
8084 enableval=$enable_fast_install; p=${PACKAGE-default}
8085 case $enableval in
8086 yes) enable_fast_install=yes ;;
8087 no) enable_fast_install=no ;;
8088 *)
8089 enable_fast_install=no
8090 # Look at the argument we got. We use all the common list separators.
8091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8092 for pkg in $enableval; do
8093 IFS="$lt_save_ifs"
8094 if test "X$pkg" = "X$p"; then
8095 enable_fast_install=yes
8096 fi
8097 done
8098 IFS="$lt_save_ifs"
8099 ;;
8100 esac
8101 else
8102 enable_fast_install=yes
8103 fi
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115 # This can be used to rebuild libtool when needed
8116 LIBTOOL_DEPS="$ltmain"
8117
8118 # Always use our own libtool.
8119 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146 test -z "$LN_S" && LN_S="ln -s"
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161 if test -n "${ZSH_VERSION+set}" ; then
8162 setopt NO_GLOB_SUBST
8163 fi
8164
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8166 $as_echo_n "checking for objdir... " >&6; }
8167 if ${lt_cv_objdir+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 rm -f .libs 2>/dev/null
8171 mkdir .libs 2>/dev/null
8172 if test -d .libs; then
8173 lt_cv_objdir=.libs
8174 else
8175 # MS-DOS does not allow filenames that begin with a dot.
8176 lt_cv_objdir=_libs
8177 fi
8178 rmdir .libs 2>/dev/null
8179 fi
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8181 $as_echo "$lt_cv_objdir" >&6; }
8182 objdir=$lt_cv_objdir
8183
8184
8185
8186
8187
8188 cat >>confdefs.h <<_ACEOF
8189 #define LT_OBJDIR "$lt_cv_objdir/"
8190 _ACEOF
8191
8192
8193
8194
8195 case $host_os in
8196 aix3*)
8197 # AIX sometimes has problems with the GCC collect2 program. For some
8198 # reason, if we set the COLLECT_NAMES environment variable, the problems
8199 # vanish in a puff of smoke.
8200 if test "X${COLLECT_NAMES+set}" != Xset; then
8201 COLLECT_NAMES=
8202 export COLLECT_NAMES
8203 fi
8204 ;;
8205 esac
8206
8207 # Global variables:
8208 ofile=libtool
8209 can_build_shared=yes
8210
8211 # All known linkers require a `.a' archive for static linking (except MSVC,
8212 # which needs '.lib').
8213 libext=a
8214
8215 with_gnu_ld="$lt_cv_prog_gnu_ld"
8216
8217 old_CC="$CC"
8218 old_CFLAGS="$CFLAGS"
8219
8220 # Set sane defaults for various variables
8221 test -z "$CC" && CC=cc
8222 test -z "$LTCC" && LTCC=$CC
8223 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8224 test -z "$LD" && LD=ld
8225 test -z "$ac_objext" && ac_objext=o
8226
8227 for cc_temp in $compiler""; do
8228 case $cc_temp in
8229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8231 \-*) ;;
8232 *) break;;
8233 esac
8234 done
8235 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8236
8237
8238 # Only perform the check for file, if the check method requires it
8239 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8240 case $deplibs_check_method in
8241 file_magic*)
8242 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8244 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8245 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 case $MAGIC_CMD in
8249 [\\/*] | ?:[\\/]*)
8250 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8251 ;;
8252 *)
8253 lt_save_MAGIC_CMD="$MAGIC_CMD"
8254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8256 for ac_dir in $ac_dummy; do
8257 IFS="$lt_save_ifs"
8258 test -z "$ac_dir" && ac_dir=.
8259 if test -f $ac_dir/${ac_tool_prefix}file; then
8260 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8261 if test -n "$file_magic_test_file"; then
8262 case $deplibs_check_method in
8263 "file_magic "*)
8264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8267 $EGREP "$file_magic_regex" > /dev/null; then
8268 :
8269 else
8270 cat <<_LT_EOF 1>&2
8271
8272 *** Warning: the command libtool uses to detect shared libraries,
8273 *** $file_magic_cmd, produces output that libtool cannot recognize.
8274 *** The result is that libtool may fail to recognize shared libraries
8275 *** as such. This will affect the creation of libtool libraries that
8276 *** depend on shared libraries, but programs linked with such libtool
8277 *** libraries will work regardless of this problem. Nevertheless, you
8278 *** may want to report the problem to your system manager and/or to
8279 *** bug-libtool@gnu.org
8280
8281 _LT_EOF
8282 fi ;;
8283 esac
8284 fi
8285 break
8286 fi
8287 done
8288 IFS="$lt_save_ifs"
8289 MAGIC_CMD="$lt_save_MAGIC_CMD"
8290 ;;
8291 esac
8292 fi
8293
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if test -n "$MAGIC_CMD"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8297 $as_echo "$MAGIC_CMD" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8301 fi
8302
8303
8304
8305
8306
8307 if test -z "$lt_cv_path_MAGIC_CMD"; then
8308 if test -n "$ac_tool_prefix"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8310 $as_echo_n "checking for file... " >&6; }
8311 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 case $MAGIC_CMD in
8315 [\\/*] | ?:[\\/]*)
8316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8317 ;;
8318 *)
8319 lt_save_MAGIC_CMD="$MAGIC_CMD"
8320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8322 for ac_dir in $ac_dummy; do
8323 IFS="$lt_save_ifs"
8324 test -z "$ac_dir" && ac_dir=.
8325 if test -f $ac_dir/file; then
8326 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8327 if test -n "$file_magic_test_file"; then
8328 case $deplibs_check_method in
8329 "file_magic "*)
8330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8333 $EGREP "$file_magic_regex" > /dev/null; then
8334 :
8335 else
8336 cat <<_LT_EOF 1>&2
8337
8338 *** Warning: the command libtool uses to detect shared libraries,
8339 *** $file_magic_cmd, produces output that libtool cannot recognize.
8340 *** The result is that libtool may fail to recognize shared libraries
8341 *** as such. This will affect the creation of libtool libraries that
8342 *** depend on shared libraries, but programs linked with such libtool
8343 *** libraries will work regardless of this problem. Nevertheless, you
8344 *** may want to report the problem to your system manager and/or to
8345 *** bug-libtool@gnu.org
8346
8347 _LT_EOF
8348 fi ;;
8349 esac
8350 fi
8351 break
8352 fi
8353 done
8354 IFS="$lt_save_ifs"
8355 MAGIC_CMD="$lt_save_MAGIC_CMD"
8356 ;;
8357 esac
8358 fi
8359
8360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8361 if test -n "$MAGIC_CMD"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8363 $as_echo "$MAGIC_CMD" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370 else
8371 MAGIC_CMD=:
8372 fi
8373 fi
8374
8375 fi
8376 ;;
8377 esac
8378
8379 # Use C for the default configuration in the libtool script
8380
8381 lt_save_CC="$CC"
8382 ac_ext=c
8383 ac_cpp='$CPP $CPPFLAGS'
8384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8387
8388
8389 # Source file extension for C test sources.
8390 ac_ext=c
8391
8392 # Object file extension for compiled C test sources.
8393 objext=o
8394 objext=$objext
8395
8396 # Code to be used in simple compile tests
8397 lt_simple_compile_test_code="int some_variable = 0;"
8398
8399 # Code to be used in simple link tests
8400 lt_simple_link_test_code='int main(){return(0);}'
8401
8402
8403
8404
8405
8406
8407
8408 # If no C compiler was specified, use CC.
8409 LTCC=${LTCC-"$CC"}
8410
8411 # If no C compiler flags were specified, use CFLAGS.
8412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8413
8414 # Allow CC to be a program name with arguments.
8415 compiler=$CC
8416
8417 # Save the default compiler, since it gets overwritten when the other
8418 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8419 compiler_DEFAULT=$CC
8420
8421 # save warnings/boilerplate of simple test code
8422 ac_outfile=conftest.$ac_objext
8423 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8424 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8425 _lt_compiler_boilerplate=`cat conftest.err`
8426 $RM conftest*
8427
8428 ac_outfile=conftest.$ac_objext
8429 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8430 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8431 _lt_linker_boilerplate=`cat conftest.err`
8432 $RM -r conftest*
8433
8434
8435 if test -n "$compiler"; then
8436
8437 lt_prog_compiler_no_builtin_flag=
8438
8439 if test "$GCC" = yes; then
8440 case $cc_basename in
8441 nvcc*)
8442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8443 *)
8444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8445 esac
8446
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8448 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8449 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 lt_cv_prog_compiler_rtti_exceptions=no
8453 ac_outfile=conftest.$ac_objext
8454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455 lt_compiler_flag="-fno-rtti -fno-exceptions"
8456 # Insert the option either (1) after the last *FLAGS variable, or
8457 # (2) before a word containing "conftest.", or (3) at the end.
8458 # Note that $ac_compile itself does not contain backslashes and begins
8459 # with a dollar sign (not a hyphen), so the echo should work correctly.
8460 # The option is referenced via a variable to avoid confusing sed.
8461 lt_compile=`echo "$ac_compile" | $SED \
8462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464 -e 's:$: $lt_compiler_flag:'`
8465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8466 (eval "$lt_compile" 2>conftest.err)
8467 ac_status=$?
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 if (exit $ac_status) && test -s "$ac_outfile"; then
8471 # The compiler can only warn and ignore the option if not recognized
8472 # So say no if there are warnings other than the usual output.
8473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8476 lt_cv_prog_compiler_rtti_exceptions=yes
8477 fi
8478 fi
8479 $RM conftest*
8480
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8484
8485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8487 else
8488 :
8489 fi
8490
8491 fi
8492
8493
8494
8495
8496
8497
8498 lt_prog_compiler_wl=
8499 lt_prog_compiler_pic=
8500 lt_prog_compiler_static=
8501
8502
8503 if test "$GCC" = yes; then
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_static='-static'
8506
8507 case $host_os in
8508 aix*)
8509 # All AIX code is PIC.
8510 if test "$host_cpu" = ia64; then
8511 # AIX 5 now supports IA64 processor
8512 lt_prog_compiler_static='-Bstatic'
8513 fi
8514 ;;
8515
8516 amigaos*)
8517 case $host_cpu in
8518 powerpc)
8519 # see comment about AmigaOS4 .so support
8520 lt_prog_compiler_pic='-fPIC'
8521 ;;
8522 m68k)
8523 # FIXME: we need at least 68020 code to build shared libraries, but
8524 # adding the `-m68020' flag to GCC prevents building anything better,
8525 # like `-m68040'.
8526 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8527 ;;
8528 esac
8529 ;;
8530
8531 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8532 # PIC is the default for these OSes.
8533 ;;
8534
8535 mingw* | cygwin* | pw32* | os2* | cegcc*)
8536 # This hack is so that the source file can tell whether it is being
8537 # built for inclusion in a dll (and should export symbols for example).
8538 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8539 # (--disable-auto-import) libraries
8540 lt_prog_compiler_pic='-DDLL_EXPORT'
8541 ;;
8542
8543 darwin* | rhapsody*)
8544 # PIC is the default on this platform
8545 # Common symbols not allowed in MH_DYLIB files
8546 lt_prog_compiler_pic='-fno-common'
8547 ;;
8548
8549 haiku*)
8550 # PIC is the default for Haiku.
8551 # The "-static" flag exists, but is broken.
8552 lt_prog_compiler_static=
8553 ;;
8554
8555 hpux*)
8556 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8557 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8558 # sets the default TLS model and affects inlining.
8559 case $host_cpu in
8560 hppa*64*)
8561 # +Z the default
8562 ;;
8563 *)
8564 lt_prog_compiler_pic='-fPIC'
8565 ;;
8566 esac
8567 ;;
8568
8569 interix[3-9]*)
8570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8571 # Instead, we relocate shared libraries at runtime.
8572 ;;
8573
8574 msdosdjgpp*)
8575 # Just because we use GCC doesn't mean we suddenly get shared libraries
8576 # on systems that don't support them.
8577 lt_prog_compiler_can_build_shared=no
8578 enable_shared=no
8579 ;;
8580
8581 *nto* | *qnx*)
8582 # QNX uses GNU C++, but need to define -shared option too, otherwise
8583 # it will coredump.
8584 lt_prog_compiler_pic='-fPIC -shared'
8585 ;;
8586
8587 sysv4*MP*)
8588 if test -d /usr/nec; then
8589 lt_prog_compiler_pic=-Kconform_pic
8590 fi
8591 ;;
8592
8593 *)
8594 lt_prog_compiler_pic='-fPIC'
8595 ;;
8596 esac
8597
8598 case $cc_basename in
8599 nvcc*) # Cuda Compiler Driver 2.2
8600 lt_prog_compiler_wl='-Xlinker '
8601 lt_prog_compiler_pic='-Xcompiler -fPIC'
8602 ;;
8603 esac
8604 else
8605 # PORTME Check for flag to pass linker flags through the system compiler.
8606 case $host_os in
8607 aix*)
8608 lt_prog_compiler_wl='-Wl,'
8609 if test "$host_cpu" = ia64; then
8610 # AIX 5 now supports IA64 processor
8611 lt_prog_compiler_static='-Bstatic'
8612 else
8613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8614 fi
8615 ;;
8616
8617 mingw* | cygwin* | pw32* | os2* | cegcc*)
8618 # This hack is so that the source file can tell whether it is being
8619 # built for inclusion in a dll (and should export symbols for example).
8620 lt_prog_compiler_pic='-DDLL_EXPORT'
8621 ;;
8622
8623 hpux9* | hpux10* | hpux11*)
8624 lt_prog_compiler_wl='-Wl,'
8625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8626 # not for PA HP-UX.
8627 case $host_cpu in
8628 hppa*64*|ia64*)
8629 # +Z the default
8630 ;;
8631 *)
8632 lt_prog_compiler_pic='+Z'
8633 ;;
8634 esac
8635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8636 lt_prog_compiler_static='${wl}-a ${wl}archive'
8637 ;;
8638
8639 irix5* | irix6* | nonstopux*)
8640 lt_prog_compiler_wl='-Wl,'
8641 # PIC (with -KPIC) is the default.
8642 lt_prog_compiler_static='-non_shared'
8643 ;;
8644
8645 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8646 case $cc_basename in
8647 # old Intel for x86_64 which still supported -KPIC.
8648 ecc*)
8649 lt_prog_compiler_wl='-Wl,'
8650 lt_prog_compiler_pic='-KPIC'
8651 lt_prog_compiler_static='-static'
8652 ;;
8653 # icc used to be incompatible with GCC.
8654 # ICC 10 doesn't accept -KPIC any more.
8655 icc* | ifort*)
8656 lt_prog_compiler_wl='-Wl,'
8657 lt_prog_compiler_pic='-fPIC'
8658 lt_prog_compiler_static='-static'
8659 ;;
8660 # Lahey Fortran 8.1.
8661 lf95*)
8662 lt_prog_compiler_wl='-Wl,'
8663 lt_prog_compiler_pic='--shared'
8664 lt_prog_compiler_static='--static'
8665 ;;
8666 nagfor*)
8667 # NAG Fortran compiler
8668 lt_prog_compiler_wl='-Wl,-Wl,,'
8669 lt_prog_compiler_pic='-PIC'
8670 lt_prog_compiler_static='-Bstatic'
8671 ;;
8672 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8673 # Portland Group compilers (*not* the Pentium gcc compiler,
8674 # which looks to be a dead project)
8675 lt_prog_compiler_wl='-Wl,'
8676 lt_prog_compiler_pic='-fpic'
8677 lt_prog_compiler_static='-Bstatic'
8678 ;;
8679 ccc*)
8680 lt_prog_compiler_wl='-Wl,'
8681 # All Alpha code is PIC.
8682 lt_prog_compiler_static='-non_shared'
8683 ;;
8684 xl* | bgxl* | bgf* | mpixl*)
8685 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='-qpic'
8688 lt_prog_compiler_static='-qstaticlink'
8689 ;;
8690 *)
8691 case `$CC -V 2>&1 | sed 5q` in
8692 *Sun\ F* | *Sun*Fortran*)
8693 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-Bstatic'
8696 lt_prog_compiler_wl=''
8697 ;;
8698 *Sun\ C*)
8699 # Sun C 5.9
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8702 lt_prog_compiler_wl='-Wl,'
8703 ;;
8704 esac
8705 ;;
8706 esac
8707 ;;
8708
8709 newsos6)
8710 lt_prog_compiler_pic='-KPIC'
8711 lt_prog_compiler_static='-Bstatic'
8712 ;;
8713
8714 *nto* | *qnx*)
8715 # QNX uses GNU C++, but need to define -shared option too, otherwise
8716 # it will coredump.
8717 lt_prog_compiler_pic='-fPIC -shared'
8718 ;;
8719
8720 osf3* | osf4* | osf5*)
8721 lt_prog_compiler_wl='-Wl,'
8722 # All OSF/1 code is PIC.
8723 lt_prog_compiler_static='-non_shared'
8724 ;;
8725
8726 rdos*)
8727 lt_prog_compiler_static='-non_shared'
8728 ;;
8729
8730 solaris*)
8731 lt_prog_compiler_pic='-KPIC'
8732 lt_prog_compiler_static='-Bstatic'
8733 case $cc_basename in
8734 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8735 lt_prog_compiler_wl='-Qoption ld ';;
8736 *)
8737 lt_prog_compiler_wl='-Wl,';;
8738 esac
8739 ;;
8740
8741 sunos4*)
8742 lt_prog_compiler_wl='-Qoption ld '
8743 lt_prog_compiler_pic='-PIC'
8744 lt_prog_compiler_static='-Bstatic'
8745 ;;
8746
8747 sysv4 | sysv4.2uw2* | sysv4.3*)
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_pic='-KPIC'
8750 lt_prog_compiler_static='-Bstatic'
8751 ;;
8752
8753 sysv4*MP*)
8754 if test -d /usr/nec ;then
8755 lt_prog_compiler_pic='-Kconform_pic'
8756 lt_prog_compiler_static='-Bstatic'
8757 fi
8758 ;;
8759
8760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='-KPIC'
8763 lt_prog_compiler_static='-Bstatic'
8764 ;;
8765
8766 unicos*)
8767 lt_prog_compiler_wl='-Wl,'
8768 lt_prog_compiler_can_build_shared=no
8769 ;;
8770
8771 uts4*)
8772 lt_prog_compiler_pic='-pic'
8773 lt_prog_compiler_static='-Bstatic'
8774 ;;
8775
8776 *)
8777 lt_prog_compiler_can_build_shared=no
8778 ;;
8779 esac
8780 fi
8781
8782 case $host_os in
8783 # For platforms which do not support PIC, -DPIC is meaningless:
8784 *djgpp*)
8785 lt_prog_compiler_pic=
8786 ;;
8787 *)
8788 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8789 ;;
8790 esac
8791
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8793 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8794 if ${lt_cv_prog_compiler_pic+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8800 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8801 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8802
8803 #
8804 # Check to make sure the PIC flag actually works.
8805 #
8806 if test -n "$lt_prog_compiler_pic"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8808 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8809 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 lt_cv_prog_compiler_pic_works=no
8813 ac_outfile=conftest.$ac_objext
8814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8816 # Insert the option either (1) after the last *FLAGS variable, or
8817 # (2) before a word containing "conftest.", or (3) at the end.
8818 # Note that $ac_compile itself does not contain backslashes and begins
8819 # with a dollar sign (not a hyphen), so the echo should work correctly.
8820 # The option is referenced via a variable to avoid confusing sed.
8821 lt_compile=`echo "$ac_compile" | $SED \
8822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824 -e 's:$: $lt_compiler_flag:'`
8825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8826 (eval "$lt_compile" 2>conftest.err)
8827 ac_status=$?
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 if (exit $ac_status) && test -s "$ac_outfile"; then
8831 # The compiler can only warn and ignore the option if not recognized
8832 # So say no if there are warnings other than the usual output.
8833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8836 lt_cv_prog_compiler_pic_works=yes
8837 fi
8838 fi
8839 $RM conftest*
8840
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8843 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8844
8845 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8846 case $lt_prog_compiler_pic in
8847 "" | " "*) ;;
8848 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8849 esac
8850 else
8851 lt_prog_compiler_pic=
8852 lt_prog_compiler_can_build_shared=no
8853 fi
8854
8855 fi
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867 #
8868 # Check to make sure the static flag actually works.
8869 #
8870 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8872 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8873 if ${lt_cv_prog_compiler_static_works+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 lt_cv_prog_compiler_static_works=no
8877 save_LDFLAGS="$LDFLAGS"
8878 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8879 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8880 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8881 # The linker can only warn and ignore the option if not recognized
8882 # So say no if there are warnings
8883 if test -s conftest.err; then
8884 # Append any errors to the config.log.
8885 cat conftest.err 1>&5
8886 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8888 if diff conftest.exp conftest.er2 >/dev/null; then
8889 lt_cv_prog_compiler_static_works=yes
8890 fi
8891 else
8892 lt_cv_prog_compiler_static_works=yes
8893 fi
8894 fi
8895 $RM -r conftest*
8896 LDFLAGS="$save_LDFLAGS"
8897
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8900 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8901
8902 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8903 :
8904 else
8905 lt_prog_compiler_static=
8906 fi
8907
8908
8909
8910
8911
8912
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8916 if ${lt_cv_prog_compiler_c_o+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 lt_cv_prog_compiler_c_o=no
8920 $RM -r conftest 2>/dev/null
8921 mkdir conftest
8922 cd conftest
8923 mkdir out
8924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925
8926 lt_compiler_flag="-o out/conftest2.$ac_objext"
8927 # Insert the option either (1) after the last *FLAGS variable, or
8928 # (2) before a word containing "conftest.", or (3) at the end.
8929 # Note that $ac_compile itself does not contain backslashes and begins
8930 # with a dollar sign (not a hyphen), so the echo should work correctly.
8931 lt_compile=`echo "$ac_compile" | $SED \
8932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934 -e 's:$: $lt_compiler_flag:'`
8935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8936 (eval "$lt_compile" 2>out/conftest.err)
8937 ac_status=$?
8938 cat out/conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8941 then
8942 # The compiler can only warn and ignore the option if not recognized
8943 # So say no if there are warnings
8944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8947 lt_cv_prog_compiler_c_o=yes
8948 fi
8949 fi
8950 chmod u+w . 2>&5
8951 $RM conftest*
8952 # SGI C++ compiler will create directory out/ii_files/ for
8953 # template instantiation
8954 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8955 $RM out/* && rmdir out
8956 cd ..
8957 $RM -r conftest
8958 $RM conftest*
8959
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8962 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8963
8964
8965
8966
8967
8968
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8971 if ${lt_cv_prog_compiler_c_o+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 lt_cv_prog_compiler_c_o=no
8975 $RM -r conftest 2>/dev/null
8976 mkdir conftest
8977 cd conftest
8978 mkdir out
8979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8980
8981 lt_compiler_flag="-o out/conftest2.$ac_objext"
8982 # Insert the option either (1) after the last *FLAGS variable, or
8983 # (2) before a word containing "conftest.", or (3) at the end.
8984 # Note that $ac_compile itself does not contain backslashes and begins
8985 # with a dollar sign (not a hyphen), so the echo should work correctly.
8986 lt_compile=`echo "$ac_compile" | $SED \
8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989 -e 's:$: $lt_compiler_flag:'`
8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991 (eval "$lt_compile" 2>out/conftest.err)
8992 ac_status=$?
8993 cat out/conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8996 then
8997 # The compiler can only warn and ignore the option if not recognized
8998 # So say no if there are warnings
8999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9002 lt_cv_prog_compiler_c_o=yes
9003 fi
9004 fi
9005 chmod u+w . 2>&5
9006 $RM conftest*
9007 # SGI C++ compiler will create directory out/ii_files/ for
9008 # template instantiation
9009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9010 $RM out/* && rmdir out
9011 cd ..
9012 $RM -r conftest
9013 $RM conftest*
9014
9015 fi
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9017 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9018
9019
9020
9021
9022 hard_links="nottested"
9023 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9024 # do not overwrite the value of need_locks provided by the user
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9026 $as_echo_n "checking if we can lock with hard links... " >&6; }
9027 hard_links=yes
9028 $RM conftest*
9029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9030 touch conftest.a
9031 ln conftest.a conftest.b 2>&5 || hard_links=no
9032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9034 $as_echo "$hard_links" >&6; }
9035 if test "$hard_links" = no; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9037 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9038 need_locks=warn
9039 fi
9040 else
9041 need_locks=no
9042 fi
9043
9044
9045
9046
9047
9048
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9050 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9051
9052 runpath_var=
9053 allow_undefined_flag=
9054 always_export_symbols=no
9055 archive_cmds=
9056 archive_expsym_cmds=
9057 compiler_needs_object=no
9058 enable_shared_with_static_runtimes=no
9059 export_dynamic_flag_spec=
9060 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9061 hardcode_automatic=no
9062 hardcode_direct=no
9063 hardcode_direct_absolute=no
9064 hardcode_libdir_flag_spec=
9065 hardcode_libdir_flag_spec_ld=
9066 hardcode_libdir_separator=
9067 hardcode_minus_L=no
9068 hardcode_shlibpath_var=unsupported
9069 inherit_rpath=no
9070 link_all_deplibs=unknown
9071 module_cmds=
9072 module_expsym_cmds=
9073 old_archive_from_new_cmds=
9074 old_archive_from_expsyms_cmds=
9075 thread_safe_flag_spec=
9076 whole_archive_flag_spec=
9077 # include_expsyms should be a list of space-separated symbols to be *always*
9078 # included in the symbol list
9079 include_expsyms=
9080 # exclude_expsyms can be an extended regexp of symbols to exclude
9081 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9082 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9083 # as well as any symbol that contains `d'.
9084 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9086 # platforms (ab)use it in PIC code, but their linkers get confused if
9087 # the symbol is explicitly referenced. Since portable code cannot
9088 # rely on this symbol name, it's probably fine to never include it in
9089 # preloaded symbol tables.
9090 # Exclude shared library initialization/finalization symbols.
9091 extract_expsyms_cmds=
9092
9093 case $host_os in
9094 cygwin* | mingw* | pw32* | cegcc*)
9095 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9096 # When not using gcc, we currently assume that we are using
9097 # Microsoft Visual C++.
9098 if test "$GCC" != yes; then
9099 with_gnu_ld=no
9100 fi
9101 ;;
9102 interix*)
9103 # we just hope/assume this is gcc and not c89 (= MSVC++)
9104 with_gnu_ld=yes
9105 ;;
9106 openbsd*)
9107 with_gnu_ld=no
9108 ;;
9109 linux* | k*bsd*-gnu | gnu*)
9110 link_all_deplibs=no
9111 ;;
9112 esac
9113
9114 ld_shlibs=yes
9115
9116 # On some targets, GNU ld is compatible enough with the native linker
9117 # that we're better off using the native interface for both.
9118 lt_use_gnu_ld_interface=no
9119 if test "$with_gnu_ld" = yes; then
9120 case $host_os in
9121 aix*)
9122 # The AIX port of GNU ld has always aspired to compatibility
9123 # with the native linker. However, as the warning in the GNU ld
9124 # block says, versions before 2.19.5* couldn't really create working
9125 # shared libraries, regardless of the interface used.
9126 case `$LD -v 2>&1` in
9127 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9128 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9129 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9130 *)
9131 lt_use_gnu_ld_interface=yes
9132 ;;
9133 esac
9134 ;;
9135 *)
9136 lt_use_gnu_ld_interface=yes
9137 ;;
9138 esac
9139 fi
9140
9141 if test "$lt_use_gnu_ld_interface" = yes; then
9142 # If archive_cmds runs LD, not CC, wlarc should be empty
9143 wlarc='${wl}'
9144
9145 # Set some defaults for GNU ld with shared library support. These
9146 # are reset later if shared libraries are not supported. Putting them
9147 # here allows them to be overridden if necessary.
9148 runpath_var=LD_RUN_PATH
9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150 export_dynamic_flag_spec='${wl}--export-dynamic'
9151 # ancient GNU ld didn't support --whole-archive et. al.
9152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9153 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9154 else
9155 whole_archive_flag_spec=
9156 fi
9157 supports_anon_versioning=no
9158 case `$LD -v 2>&1` in
9159 *GNU\ gold*) supports_anon_versioning=yes ;;
9160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9163 *\ 2.11.*) ;; # other 2.11 versions
9164 *) supports_anon_versioning=yes ;;
9165 esac
9166
9167 # See if GNU ld supports shared libraries.
9168 case $host_os in
9169 aix[3-9]*)
9170 # On AIX/PPC, the GNU linker is very broken
9171 if test "$host_cpu" != ia64; then
9172 ld_shlibs=no
9173 cat <<_LT_EOF 1>&2
9174
9175 *** Warning: the GNU linker, at least up to release 2.19, is reported
9176 *** to be unable to reliably create shared libraries on AIX.
9177 *** Therefore, libtool is disabling shared libraries support. If you
9178 *** really care for shared libraries, you may want to install binutils
9179 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9180 *** You will then need to restart the configuration process.
9181
9182 _LT_EOF
9183 fi
9184 ;;
9185
9186 amigaos*)
9187 case $host_cpu in
9188 powerpc)
9189 # see comment about AmigaOS4 .so support
9190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9191 archive_expsym_cmds=''
9192 ;;
9193 m68k)
9194 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)'
9195 hardcode_libdir_flag_spec='-L$libdir'
9196 hardcode_minus_L=yes
9197 ;;
9198 esac
9199 ;;
9200
9201 beos*)
9202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9203 allow_undefined_flag=unsupported
9204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9205 # support --undefined. This deserves some investigation. FIXME
9206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207 else
9208 ld_shlibs=no
9209 fi
9210 ;;
9211
9212 cygwin* | mingw* | pw32* | cegcc*)
9213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9214 # as there is no search path for DLLs.
9215 hardcode_libdir_flag_spec='-L$libdir'
9216 export_dynamic_flag_spec='${wl}--export-all-symbols'
9217 allow_undefined_flag=unsupported
9218 always_export_symbols=no
9219 enable_shared_with_static_runtimes=yes
9220 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'
9221 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9222
9223 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9225 # If the export-symbols file already is a .def file (1st line
9226 # is EXPORTS), use it as is; otherwise, prepend...
9227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9228 cp $export_symbols $output_objdir/$soname.def;
9229 else
9230 echo EXPORTS > $output_objdir/$soname.def;
9231 cat $export_symbols >> $output_objdir/$soname.def;
9232 fi~
9233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9234 else
9235 ld_shlibs=no
9236 fi
9237 ;;
9238
9239 haiku*)
9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241 link_all_deplibs=yes
9242 ;;
9243
9244 interix[3-9]*)
9245 hardcode_direct=no
9246 hardcode_shlibpath_var=no
9247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9248 export_dynamic_flag_spec='${wl}-E'
9249 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9250 # Instead, shared libraries are loaded at an image base (0x10000000 by
9251 # default) and relocated if they conflict, which is a slow very memory
9252 # consuming and fragmenting process. To avoid this, we pick a random,
9253 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9254 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9256 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'
9257 ;;
9258
9259 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9260 tmp_diet=no
9261 if test "$host_os" = linux-dietlibc; then
9262 case $cc_basename in
9263 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9264 esac
9265 fi
9266 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9267 && test "$tmp_diet" = no
9268 then
9269 tmp_addflag=' $pic_flag'
9270 tmp_sharedflag='-shared'
9271 case $cc_basename,$host_cpu in
9272 pgcc*) # Portland Group C compiler
9273 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'
9274 tmp_addflag=' $pic_flag'
9275 ;;
9276 pgf77* | pgf90* | pgf95* | pgfortran*)
9277 # Portland Group f77 and f90 compilers
9278 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'
9279 tmp_addflag=' $pic_flag -Mnomain' ;;
9280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9281 tmp_addflag=' -i_dynamic' ;;
9282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9283 tmp_addflag=' -i_dynamic -nofor_main' ;;
9284 ifc* | ifort*) # Intel Fortran compiler
9285 tmp_addflag=' -nofor_main' ;;
9286 lf95*) # Lahey Fortran 8.1
9287 whole_archive_flag_spec=
9288 tmp_sharedflag='--shared' ;;
9289 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9290 tmp_sharedflag='-qmkshrobj'
9291 tmp_addflag= ;;
9292 nvcc*) # Cuda Compiler Driver 2.2
9293 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'
9294 compiler_needs_object=yes
9295 ;;
9296 esac
9297 case `$CC -V 2>&1 | sed 5q` in
9298 *Sun\ C*) # Sun C 5.9
9299 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'
9300 compiler_needs_object=yes
9301 tmp_sharedflag='-G' ;;
9302 *Sun\ F*) # Sun Fortran 8.3
9303 tmp_sharedflag='-G' ;;
9304 esac
9305 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306
9307 if test "x$supports_anon_versioning" = xyes; then
9308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9310 echo "local: *; };" >> $output_objdir/$libname.ver~
9311 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9312 fi
9313
9314 case $cc_basename in
9315 xlf* | bgf* | bgxlf* | mpixlf*)
9316 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9317 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9318 hardcode_libdir_flag_spec=
9319 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9320 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9321 if test "x$supports_anon_versioning" = xyes; then
9322 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9324 echo "local: *; };" >> $output_objdir/$libname.ver~
9325 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9326 fi
9327 ;;
9328 esac
9329 else
9330 ld_shlibs=no
9331 fi
9332 ;;
9333
9334 netbsd* | netbsdelf*-gnu)
9335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9337 wlarc=
9338 else
9339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9341 fi
9342 ;;
9343
9344 solaris*)
9345 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9346 ld_shlibs=no
9347 cat <<_LT_EOF 1>&2
9348
9349 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9350 *** create shared libraries on Solaris systems. Therefore, libtool
9351 *** is disabling shared libraries support. We urge you to upgrade GNU
9352 *** binutils to release 2.9.1 or newer. Another option is to modify
9353 *** your PATH or compiler configuration so that the native linker is
9354 *** used, and then restart.
9355
9356 _LT_EOF
9357 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9360 else
9361 ld_shlibs=no
9362 fi
9363 ;;
9364
9365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9366 case `$LD -v 2>&1` in
9367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9368 ld_shlibs=no
9369 cat <<_LT_EOF 1>&2
9370
9371 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9372 *** reliably create shared libraries on SCO systems. Therefore, libtool
9373 *** is disabling shared libraries support. We urge you to upgrade GNU
9374 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9375 *** your PATH or compiler configuration so that the native linker is
9376 *** used, and then restart.
9377
9378 _LT_EOF
9379 ;;
9380 *)
9381 # For security reasons, it is highly recommended that you always
9382 # use absolute paths for naming shared libraries, and exclude the
9383 # DT_RUNPATH tag from executables and libraries. But doing so
9384 # requires that you compile everything twice, which is a pain.
9385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9389 else
9390 ld_shlibs=no
9391 fi
9392 ;;
9393 esac
9394 ;;
9395
9396 sunos4*)
9397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9398 wlarc=
9399 hardcode_direct=yes
9400 hardcode_shlibpath_var=no
9401 ;;
9402
9403 *)
9404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9406 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9407 else
9408 ld_shlibs=no
9409 fi
9410 ;;
9411 esac
9412
9413 if test "$ld_shlibs" = no; then
9414 runpath_var=
9415 hardcode_libdir_flag_spec=
9416 export_dynamic_flag_spec=
9417 whole_archive_flag_spec=
9418 fi
9419 else
9420 # PORTME fill in a description of your system's linker (not GNU ld)
9421 case $host_os in
9422 aix3*)
9423 allow_undefined_flag=unsupported
9424 always_export_symbols=yes
9425 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'
9426 # Note: this linker hardcodes the directories in LIBPATH if there
9427 # are no directories specified by -L.
9428 hardcode_minus_L=yes
9429 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9430 # Neither direct hardcoding nor static linking is supported with a
9431 # broken collect2.
9432 hardcode_direct=unsupported
9433 fi
9434 ;;
9435
9436 aix[4-9]*)
9437 if test "$host_cpu" = ia64; then
9438 # On IA64, the linker does run time linking by default, so we don't
9439 # have to do anything special.
9440 aix_use_runtimelinking=no
9441 exp_sym_flag='-Bexport'
9442 no_entry_flag=""
9443 else
9444 # If we're using GNU nm, then we don't want the "-C" option.
9445 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9446 # Also, AIX nm treats weak defined symbols like other global
9447 # defined symbols, whereas GNU nm marks them as "W".
9448 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9449 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9450 else
9451 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9452 fi
9453 aix_use_runtimelinking=no
9454
9455 # Test if we are trying to use run time linking or normal
9456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9457 # need to do runtime linking.
9458 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9459 for ld_flag in $LDFLAGS; do
9460 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9461 aix_use_runtimelinking=yes
9462 break
9463 fi
9464 done
9465 ;;
9466 esac
9467
9468 exp_sym_flag='-bexport'
9469 no_entry_flag='-bnoentry'
9470 fi
9471
9472 # When large executables or shared objects are built, AIX ld can
9473 # have problems creating the table of contents. If linking a library
9474 # or program results in "error TOC overflow" add -mminimal-toc to
9475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9477
9478 archive_cmds=''
9479 hardcode_direct=yes
9480 hardcode_direct_absolute=yes
9481 hardcode_libdir_separator=':'
9482 link_all_deplibs=yes
9483 file_list_spec='${wl}-f,'
9484
9485 if test "$GCC" = yes; then
9486 case $host_os in aix4.[012]|aix4.[012].*)
9487 # We only want to do this on AIX 4.2 and lower, the check
9488 # below for broken collect2 doesn't work under 4.3+
9489 collect2name=`${CC} -print-prog-name=collect2`
9490 if test -f "$collect2name" &&
9491 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9492 then
9493 # We have reworked collect2
9494 :
9495 else
9496 # We have old collect2
9497 hardcode_direct=unsupported
9498 # It fails to find uninstalled libraries when the uninstalled
9499 # path is not listed in the libpath. Setting hardcode_minus_L
9500 # to unsupported forces relinking
9501 hardcode_minus_L=yes
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 hardcode_libdir_separator=
9504 fi
9505 ;;
9506 esac
9507 shared_flag='-shared'
9508 if test "$aix_use_runtimelinking" = yes; then
9509 shared_flag="$shared_flag "'${wl}-G'
9510 fi
9511 link_all_deplibs=no
9512 else
9513 # not using gcc
9514 if test "$host_cpu" = ia64; then
9515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9516 # chokes on -Wl,-G. The following line is correct:
9517 shared_flag='-G'
9518 else
9519 if test "$aix_use_runtimelinking" = yes; then
9520 shared_flag='${wl}-G'
9521 else
9522 shared_flag='${wl}-bM:SRE'
9523 fi
9524 fi
9525 fi
9526
9527 export_dynamic_flag_spec='${wl}-bexpall'
9528 # It seems that -bexpall does not export symbols beginning with
9529 # underscore (_), so it is better to generate a list of symbols to export.
9530 always_export_symbols=yes
9531 if test "$aix_use_runtimelinking" = yes; then
9532 # Warning - without using the other runtime loading flags (-brtl),
9533 # -berok will link without error, but may produce a broken library.
9534 allow_undefined_flag='-berok'
9535 # Determine the default libpath from the value encoded in an
9536 # empty executable.
9537 if test "${lt_cv_aix_libpath+set}" = set; then
9538 aix_libpath=$lt_cv_aix_libpath
9539 else
9540 if ${lt_cv_aix_libpath_+:} false; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545
9546 int
9547 main ()
9548 {
9549
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_link "$LINENO"; then :
9555
9556 lt_aix_libpath_sed='
9557 /Import File Strings/,/^$/ {
9558 /^0/ {
9559 s/^0 *\([^ ]*\) *$/\1/
9560 p
9561 }
9562 }'
9563 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9564 # Check for a 64-bit object if we didn't find anything.
9565 if test -z "$lt_cv_aix_libpath_"; then
9566 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 fi
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571 if test -z "$lt_cv_aix_libpath_"; then
9572 lt_cv_aix_libpath_="/usr/lib:/lib"
9573 fi
9574
9575 fi
9576
9577 aix_libpath=$lt_cv_aix_libpath_
9578 fi
9579
9580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9581 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9582 else
9583 if test "$host_cpu" = ia64; then
9584 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9585 allow_undefined_flag="-z nodefs"
9586 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"
9587 else
9588 # Determine the default libpath from the value encoded in an
9589 # empty executable.
9590 if test "${lt_cv_aix_libpath+set}" = set; then
9591 aix_libpath=$lt_cv_aix_libpath
9592 else
9593 if ${lt_cv_aix_libpath_+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598
9599 int
9600 main ()
9601 {
9602
9603 ;
9604 return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_c_try_link "$LINENO"; then :
9608
9609 lt_aix_libpath_sed='
9610 /Import File Strings/,/^$/ {
9611 /^0/ {
9612 s/^0 *\([^ ]*\) *$/\1/
9613 p
9614 }
9615 }'
9616 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9617 # Check for a 64-bit object if we didn't find anything.
9618 if test -z "$lt_cv_aix_libpath_"; then
9619 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9620 fi
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 if test -z "$lt_cv_aix_libpath_"; then
9625 lt_cv_aix_libpath_="/usr/lib:/lib"
9626 fi
9627
9628 fi
9629
9630 aix_libpath=$lt_cv_aix_libpath_
9631 fi
9632
9633 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9634 # Warning - without using the other run time loading flags,
9635 # -berok will link without error, but may produce a broken library.
9636 no_undefined_flag=' ${wl}-bernotok'
9637 allow_undefined_flag=' ${wl}-berok'
9638 if test "$with_gnu_ld" = yes; then
9639 # We only use this code for GNU lds that support --whole-archive.
9640 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9641 else
9642 # Exported symbols can be pulled into shared objects from archives
9643 whole_archive_flag_spec='$convenience'
9644 fi
9645 archive_cmds_need_lc=yes
9646 # This is similar to how AIX traditionally builds its shared libraries.
9647 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9648 fi
9649 fi
9650 ;;
9651
9652 amigaos*)
9653 case $host_cpu in
9654 powerpc)
9655 # see comment about AmigaOS4 .so support
9656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657 archive_expsym_cmds=''
9658 ;;
9659 m68k)
9660 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)'
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_minus_L=yes
9663 ;;
9664 esac
9665 ;;
9666
9667 bsdi[45]*)
9668 export_dynamic_flag_spec=-rdynamic
9669 ;;
9670
9671 cygwin* | mingw* | pw32* | cegcc*)
9672 # When not using gcc, we currently assume that we are using
9673 # Microsoft Visual C++.
9674 # hardcode_libdir_flag_spec is actually meaningless, as there is
9675 # no search path for DLLs.
9676 case $cc_basename in
9677 cl*)
9678 # Native MSVC
9679 hardcode_libdir_flag_spec=' '
9680 allow_undefined_flag=unsupported
9681 always_export_symbols=yes
9682 file_list_spec='@'
9683 # Tell ltmain to make .lib files, not .a files.
9684 libext=lib
9685 # Tell ltmain to make .dll files, not .so files.
9686 shrext_cmds=".dll"
9687 # FIXME: Setting linknames here is a bad hack.
9688 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9689 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9690 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9691 else
9692 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9693 fi~
9694 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9695 linknames='
9696 # The linker will not automatically build a static lib if we build a DLL.
9697 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9698 enable_shared_with_static_runtimes=yes
9699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9700 # Don't use ranlib
9701 old_postinstall_cmds='chmod 644 $oldlib'
9702 postlink_cmds='lt_outputfile="@OUTPUT@"~
9703 lt_tool_outputfile="@TOOL_OUTPUT@"~
9704 case $lt_outputfile in
9705 *.exe|*.EXE) ;;
9706 *)
9707 lt_outputfile="$lt_outputfile.exe"
9708 lt_tool_outputfile="$lt_tool_outputfile.exe"
9709 ;;
9710 esac~
9711 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9712 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9713 $RM "$lt_outputfile.manifest";
9714 fi'
9715 ;;
9716 *)
9717 # Assume MSVC wrapper
9718 hardcode_libdir_flag_spec=' '
9719 allow_undefined_flag=unsupported
9720 # Tell ltmain to make .lib files, not .a files.
9721 libext=lib
9722 # Tell ltmain to make .dll files, not .so files.
9723 shrext_cmds=".dll"
9724 # FIXME: Setting linknames here is a bad hack.
9725 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9726 # The linker will automatically build a .lib file if we build a DLL.
9727 old_archive_from_new_cmds='true'
9728 # FIXME: Should let the user specify the lib program.
9729 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9730 enable_shared_with_static_runtimes=yes
9731 ;;
9732 esac
9733 ;;
9734
9735 darwin* | rhapsody*)
9736
9737
9738 archive_cmds_need_lc=no
9739 hardcode_direct=no
9740 hardcode_automatic=yes
9741 hardcode_shlibpath_var=unsupported
9742 if test "$lt_cv_ld_force_load" = "yes"; then
9743 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\"`'
9744 else
9745 whole_archive_flag_spec=''
9746 fi
9747 link_all_deplibs=yes
9748 allow_undefined_flag="$_lt_dar_allow_undefined"
9749 case $cc_basename in
9750 ifort*) _lt_dar_can_shared=yes ;;
9751 *) _lt_dar_can_shared=$GCC ;;
9752 esac
9753 if test "$_lt_dar_can_shared" = "yes"; then
9754 output_verbose_link_cmd=func_echo_all
9755 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9756 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9757 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}"
9758 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}"
9759
9760 else
9761 ld_shlibs=no
9762 fi
9763
9764 ;;
9765
9766 dgux*)
9767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9768 hardcode_libdir_flag_spec='-L$libdir'
9769 hardcode_shlibpath_var=no
9770 ;;
9771
9772 freebsd1*)
9773 ld_shlibs=no
9774 ;;
9775
9776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9777 # support. Future versions do this automatically, but an explicit c++rt0.o
9778 # does not break anything, and helps significantly (at the cost of a little
9779 # extra space).
9780 freebsd2.2*)
9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9782 hardcode_libdir_flag_spec='-R$libdir'
9783 hardcode_direct=yes
9784 hardcode_shlibpath_var=no
9785 ;;
9786
9787 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9788 freebsd2*)
9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_direct=yes
9791 hardcode_minus_L=yes
9792 hardcode_shlibpath_var=no
9793 ;;
9794
9795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9796 freebsd* | dragonfly*)
9797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9798 hardcode_libdir_flag_spec='-R$libdir'
9799 hardcode_direct=yes
9800 hardcode_shlibpath_var=no
9801 ;;
9802
9803 hpux9*)
9804 if test "$GCC" = yes; then
9805 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9806 else
9807 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9808 fi
9809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9810 hardcode_libdir_separator=:
9811 hardcode_direct=yes
9812
9813 # hardcode_minus_L: Not really in the search PATH,
9814 # but as the default location of the library.
9815 hardcode_minus_L=yes
9816 export_dynamic_flag_spec='${wl}-E'
9817 ;;
9818
9819 hpux10*)
9820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9821 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9822 else
9823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9824 fi
9825 if test "$with_gnu_ld" = no; then
9826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9827 hardcode_libdir_flag_spec_ld='+b $libdir'
9828 hardcode_libdir_separator=:
9829 hardcode_direct=yes
9830 hardcode_direct_absolute=yes
9831 export_dynamic_flag_spec='${wl}-E'
9832 # hardcode_minus_L: Not really in the search PATH,
9833 # but as the default location of the library.
9834 hardcode_minus_L=yes
9835 fi
9836 ;;
9837
9838 hpux11*)
9839 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9840 case $host_cpu in
9841 hppa*64*)
9842 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 ia64*)
9845 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9846 ;;
9847 *)
9848 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9849 ;;
9850 esac
9851 else
9852 case $host_cpu in
9853 hppa*64*)
9854 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 ;;
9856 ia64*)
9857 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9858 ;;
9859 *)
9860
9861 # Older versions of the 11.00 compiler do not understand -b yet
9862 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9864 $as_echo_n "checking if $CC understands -b... " >&6; }
9865 if ${lt_cv_prog_compiler__b+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 lt_cv_prog_compiler__b=no
9869 save_LDFLAGS="$LDFLAGS"
9870 LDFLAGS="$LDFLAGS -b"
9871 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9873 # The linker can only warn and ignore the option if not recognized
9874 # So say no if there are warnings
9875 if test -s conftest.err; then
9876 # Append any errors to the config.log.
9877 cat conftest.err 1>&5
9878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9880 if diff conftest.exp conftest.er2 >/dev/null; then
9881 lt_cv_prog_compiler__b=yes
9882 fi
9883 else
9884 lt_cv_prog_compiler__b=yes
9885 fi
9886 fi
9887 $RM -r conftest*
9888 LDFLAGS="$save_LDFLAGS"
9889
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9892 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9893
9894 if test x"$lt_cv_prog_compiler__b" = xyes; then
9895 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896 else
9897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9898 fi
9899
9900 ;;
9901 esac
9902 fi
9903 if test "$with_gnu_ld" = no; then
9904 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9905 hardcode_libdir_separator=:
9906
9907 case $host_cpu in
9908 hppa*64*|ia64*)
9909 hardcode_direct=no
9910 hardcode_shlibpath_var=no
9911 ;;
9912 *)
9913 hardcode_direct=yes
9914 hardcode_direct_absolute=yes
9915 export_dynamic_flag_spec='${wl}-E'
9916
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9920 ;;
9921 esac
9922 fi
9923 ;;
9924
9925 irix5* | irix6* | nonstopux*)
9926 if test "$GCC" = yes; then
9927 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'
9928 # Try to use the -exported_symbol ld option, if it does not
9929 # work, assume that -exports_file does not work either and
9930 # implicitly export all symbols.
9931 # This should be the same for all languages, so no per-tag cache variable.
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9933 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9934 if ${lt_cv_irix_exported_symbol+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 save_LDFLAGS="$LDFLAGS"
9938 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941 int foo (void) { return 0; }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944 lt_cv_irix_exported_symbol=yes
9945 else
9946 lt_cv_irix_exported_symbol=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LDFLAGS="$save_LDFLAGS"
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9953 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9954 if test "$lt_cv_irix_exported_symbol" = yes; then
9955 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'
9956 fi
9957 else
9958 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'
9959 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'
9960 fi
9961 archive_cmds_need_lc='no'
9962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9963 hardcode_libdir_separator=:
9964 inherit_rpath=yes
9965 link_all_deplibs=yes
9966 ;;
9967
9968 netbsd* | netbsdelf*-gnu)
9969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9971 else
9972 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9973 fi
9974 hardcode_libdir_flag_spec='-R$libdir'
9975 hardcode_direct=yes
9976 hardcode_shlibpath_var=no
9977 ;;
9978
9979 newsos6)
9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_direct=yes
9982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983 hardcode_libdir_separator=:
9984 hardcode_shlibpath_var=no
9985 ;;
9986
9987 *nto* | *qnx*)
9988 ;;
9989
9990 openbsd*)
9991 if test -f /usr/libexec/ld.so; then
9992 hardcode_direct=yes
9993 hardcode_shlibpath_var=no
9994 hardcode_direct_absolute=yes
9995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9999 export_dynamic_flag_spec='${wl}-E'
10000 else
10001 case $host_os in
10002 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10003 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10004 hardcode_libdir_flag_spec='-R$libdir'
10005 ;;
10006 *)
10007 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10009 ;;
10010 esac
10011 fi
10012 else
10013 ld_shlibs=no
10014 fi
10015 ;;
10016
10017 os2*)
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_minus_L=yes
10020 allow_undefined_flag=unsupported
10021 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10022 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10023 ;;
10024
10025 osf3*)
10026 if test "$GCC" = yes; then
10027 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10028 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'
10029 else
10030 allow_undefined_flag=' -expect_unresolved \*'
10031 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'
10032 fi
10033 archive_cmds_need_lc='no'
10034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10035 hardcode_libdir_separator=:
10036 ;;
10037
10038 osf4* | osf5*) # as osf3* with the addition of -msym flag
10039 if test "$GCC" = yes; then
10040 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10041 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'
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 else
10044 allow_undefined_flag=' -expect_unresolved \*'
10045 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'
10046 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~
10047 $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'
10048
10049 # Both c and cxx compiler support -rpath directly
10050 hardcode_libdir_flag_spec='-rpath $libdir'
10051 fi
10052 archive_cmds_need_lc='no'
10053 hardcode_libdir_separator=:
10054 ;;
10055
10056 solaris*)
10057 no_undefined_flag=' -z defs'
10058 if test "$GCC" = yes; then
10059 wlarc='${wl}'
10060 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10062 $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'
10063 else
10064 case `$CC -V 2>&1` in
10065 *"Compilers 5.0"*)
10066 wlarc=''
10067 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10070 ;;
10071 *)
10072 wlarc='${wl}'
10073 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10075 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10076 ;;
10077 esac
10078 fi
10079 hardcode_libdir_flag_spec='-R$libdir'
10080 hardcode_shlibpath_var=no
10081 case $host_os in
10082 solaris2.[0-5] | solaris2.[0-5].*) ;;
10083 *)
10084 # The compiler driver will combine and reorder linker options,
10085 # but understands `-z linker_flag'. GCC discards it without `$wl',
10086 # but is careful enough not to reorder.
10087 # Supported since Solaris 2.6 (maybe 2.5.1?)
10088 if test "$GCC" = yes; then
10089 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10090 else
10091 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10092 fi
10093 ;;
10094 esac
10095 link_all_deplibs=yes
10096 ;;
10097
10098 sunos4*)
10099 if test "x$host_vendor" = xsequent; then
10100 # Use $CC to link under sequent, because it throws in some extra .o
10101 # files that make .init and .fini sections work.
10102 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10103 else
10104 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10105 fi
10106 hardcode_libdir_flag_spec='-L$libdir'
10107 hardcode_direct=yes
10108 hardcode_minus_L=yes
10109 hardcode_shlibpath_var=no
10110 ;;
10111
10112 sysv4)
10113 case $host_vendor in
10114 sni)
10115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_direct=yes # is this really true???
10117 ;;
10118 siemens)
10119 ## LD is ld it makes a PLAMLIB
10120 ## CC just makes a GrossModule.
10121 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10122 reload_cmds='$CC -r -o $output$reload_objs'
10123 hardcode_direct=no
10124 ;;
10125 motorola)
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10128 ;;
10129 esac
10130 runpath_var='LD_RUN_PATH'
10131 hardcode_shlibpath_var=no
10132 ;;
10133
10134 sysv4.3*)
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_shlibpath_var=no
10137 export_dynamic_flag_spec='-Bexport'
10138 ;;
10139
10140 sysv4*MP*)
10141 if test -d /usr/nec; then
10142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143 hardcode_shlibpath_var=no
10144 runpath_var=LD_RUN_PATH
10145 hardcode_runpath_var=yes
10146 ld_shlibs=yes
10147 fi
10148 ;;
10149
10150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10151 no_undefined_flag='${wl}-z,text'
10152 archive_cmds_need_lc=no
10153 hardcode_shlibpath_var=no
10154 runpath_var='LD_RUN_PATH'
10155
10156 if test "$GCC" = yes; then
10157 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 else
10160 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 fi
10163 ;;
10164
10165 sysv5* | sco3.2v5* | sco5v6*)
10166 # Note: We can NOT use -z defs as we might desire, because we do not
10167 # link with -lc, and that would cause any symbols used from libc to
10168 # always be unresolved, which means just about no library would
10169 # ever link correctly. If we're not using GNU ld we use -z text
10170 # though, which does catch some bad symbols but isn't as heavy-handed
10171 # as -z defs.
10172 no_undefined_flag='${wl}-z,text'
10173 allow_undefined_flag='${wl}-z,nodefs'
10174 archive_cmds_need_lc=no
10175 hardcode_shlibpath_var=no
10176 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10177 hardcode_libdir_separator=':'
10178 link_all_deplibs=yes
10179 export_dynamic_flag_spec='${wl}-Bexport'
10180 runpath_var='LD_RUN_PATH'
10181
10182 if test "$GCC" = yes; then
10183 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 else
10186 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 fi
10189 ;;
10190
10191 uts4*)
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_shlibpath_var=no
10195 ;;
10196
10197 *)
10198 ld_shlibs=no
10199 ;;
10200 esac
10201
10202 if test x$host_vendor = xsni; then
10203 case $host in
10204 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10205 export_dynamic_flag_spec='${wl}-Blargedynsym'
10206 ;;
10207 esac
10208 fi
10209 fi
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10212 $as_echo "$ld_shlibs" >&6; }
10213 test "$ld_shlibs" = no && can_build_shared=no
10214
10215 with_gnu_ld=$with_gnu_ld
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231 #
10232 # Do we need to explicitly link libc?
10233 #
10234 case "x$archive_cmds_need_lc" in
10235 x|xyes)
10236 # Assume -lc should be added
10237 archive_cmds_need_lc=yes
10238
10239 if test "$enable_shared" = yes && test "$GCC" = yes; then
10240 case $archive_cmds in
10241 *'~'*)
10242 # FIXME: we may have to deal with multi-command sequences.
10243 ;;
10244 '$CC '*)
10245 # Test whether the compiler implicitly links with -lc since on some
10246 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10247 # to ld, don't add -lc before -lgcc.
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10249 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10250 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 $RM conftest*
10254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10255
10256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10257 (eval $ac_compile) 2>&5
10258 ac_status=$?
10259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10260 test $ac_status = 0; } 2>conftest.err; then
10261 soname=conftest
10262 lib=conftest
10263 libobjs=conftest.$ac_objext
10264 deplibs=
10265 wl=$lt_prog_compiler_wl
10266 pic_flag=$lt_prog_compiler_pic
10267 compiler_flags=-v
10268 linker_flags=-v
10269 verstring=
10270 output_objdir=.
10271 libname=conftest
10272 lt_save_allow_undefined_flag=$allow_undefined_flag
10273 allow_undefined_flag=
10274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10275 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10276 ac_status=$?
10277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10278 test $ac_status = 0; }
10279 then
10280 lt_cv_archive_cmds_need_lc=no
10281 else
10282 lt_cv_archive_cmds_need_lc=yes
10283 fi
10284 allow_undefined_flag=$lt_save_allow_undefined_flag
10285 else
10286 cat conftest.err 1>&5
10287 fi
10288 $RM conftest*
10289
10290 fi
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10292 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10293 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10294 ;;
10295 esac
10296 fi
10297 ;;
10298 esac
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10457 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10458
10459 if test "$GCC" = yes; then
10460 case $host_os in
10461 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10462 *) lt_awk_arg="/^libraries:/" ;;
10463 esac
10464 case $host_os in
10465 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10466 *) lt_sed_strip_eq="s,=/,/,g" ;;
10467 esac
10468 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10469 case $lt_search_path_spec in
10470 *\;*)
10471 # if the path contains ";" then we assume it to be the separator
10472 # otherwise default to the standard path separator (i.e. ":") - it is
10473 # assumed that no part of a normal pathname contains ";" but that should
10474 # okay in the real world where ";" in dirpaths is itself problematic.
10475 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10476 ;;
10477 *)
10478 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10479 ;;
10480 esac
10481 # Ok, now we have the path, separated by spaces, we can step through it
10482 # and add multilib dir if necessary.
10483 lt_tmp_lt_search_path_spec=
10484 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10485 for lt_sys_path in $lt_search_path_spec; do
10486 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10487 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10488 else
10489 test -d "$lt_sys_path" && \
10490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10491 fi
10492 done
10493 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10494 BEGIN {RS=" "; FS="/|\n";} {
10495 lt_foo="";
10496 lt_count=0;
10497 for (lt_i = NF; lt_i > 0; lt_i--) {
10498 if ($lt_i != "" && $lt_i != ".") {
10499 if ($lt_i == "..") {
10500 lt_count++;
10501 } else {
10502 if (lt_count == 0) {
10503 lt_foo="/" $lt_i lt_foo;
10504 } else {
10505 lt_count--;
10506 }
10507 }
10508 }
10509 }
10510 if (lt_foo != "") { lt_freq[lt_foo]++; }
10511 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10512 }'`
10513 # AWK program above erroneously prepends '/' to C:/dos/paths
10514 # for these hosts.
10515 case $host_os in
10516 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10517 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10518 esac
10519 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10520 else
10521 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10522 fi
10523 library_names_spec=
10524 libname_spec='lib$name'
10525 soname_spec=
10526 shrext_cmds=".so"
10527 postinstall_cmds=
10528 postuninstall_cmds=
10529 finish_cmds=
10530 finish_eval=
10531 shlibpath_var=
10532 shlibpath_overrides_runpath=unknown
10533 version_type=none
10534 dynamic_linker="$host_os ld.so"
10535 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10536 need_lib_prefix=unknown
10537 hardcode_into_libs=no
10538
10539 # when you set need_version to no, make sure it does not cause -set_version
10540 # flags to be left without arguments
10541 need_version=unknown
10542
10543 case $host_os in
10544 aix3*)
10545 version_type=linux
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10547 shlibpath_var=LIBPATH
10548
10549 # AIX 3 has no versioning support, so we append a major version to the name.
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 ;;
10552
10553 aix[4-9]*)
10554 version_type=linux
10555 need_lib_prefix=no
10556 need_version=no
10557 hardcode_into_libs=yes
10558 if test "$host_cpu" = ia64; then
10559 # AIX 5 supports IA64
10560 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 else
10563 # With GCC up to 2.95.x, collect2 would create an import file
10564 # for dependence libraries. The import file would start with
10565 # the line `#! .'. This would cause the generated library to
10566 # depend on `.', always an invalid library. This was fixed in
10567 # development snapshots of GCC prior to 3.0.
10568 case $host_os in
10569 aix4 | aix4.[01] | aix4.[01].*)
10570 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10571 echo ' yes '
10572 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10573 :
10574 else
10575 can_build_shared=no
10576 fi
10577 ;;
10578 esac
10579 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10580 # soname into executable. Probably we can add versioning support to
10581 # collect2, so additional links can be useful in future.
10582 if test "$aix_use_runtimelinking" = yes; then
10583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10584 # instead of lib<name>.a to let people know that these are not
10585 # typical AIX shared libraries.
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587 else
10588 # We preserve .a as extension for shared libraries through AIX4.2
10589 # and later when we are not doing run time linking.
10590 library_names_spec='${libname}${release}.a $libname.a'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 fi
10593 shlibpath_var=LIBPATH
10594 fi
10595 ;;
10596
10597 amigaos*)
10598 case $host_cpu in
10599 powerpc)
10600 # Since July 2007 AmigaOS4 officially supports .so libraries.
10601 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 ;;
10604 m68k)
10605 library_names_spec='$libname.ixlibrary $libname.a'
10606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10607 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10608 ;;
10609 esac
10610 ;;
10611
10612 beos*)
10613 library_names_spec='${libname}${shared_ext}'
10614 dynamic_linker="$host_os ld.so"
10615 shlibpath_var=LIBRARY_PATH
10616 ;;
10617
10618 bsdi[45]*)
10619 version_type=linux
10620 need_version=no
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10627 # the default ld.so.conf also contains /usr/contrib/lib and
10628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10629 # libtool to hard-code these into programs
10630 ;;
10631
10632 cygwin* | mingw* | pw32* | cegcc*)
10633 version_type=windows
10634 shrext_cmds=".dll"
10635 need_version=no
10636 need_lib_prefix=no
10637
10638 case $GCC,$cc_basename in
10639 yes,*)
10640 # gcc
10641 library_names_spec='$libname.dll.a'
10642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10643 postinstall_cmds='base_file=`basename \${file}`~
10644 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10645 dldir=$destdir/`dirname \$dlpath`~
10646 test -d \$dldir || mkdir -p \$dldir~
10647 $install_prog $dir/$dlname \$dldir/$dlname~
10648 chmod a+x \$dldir/$dlname~
10649 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10650 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10651 fi'
10652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10653 dlpath=$dir/\$dldll~
10654 $RM \$dlpath'
10655 shlibpath_overrides_runpath=yes
10656
10657 case $host_os in
10658 cygwin*)
10659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661
10662 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10663 ;;
10664 mingw* | cegcc*)
10665 # MinGW DLLs use traditional 'lib' prefix
10666 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10667 ;;
10668 pw32*)
10669 # pw32 DLLs use 'pw' prefix rather than 'lib'
10670 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10671 ;;
10672 esac
10673 dynamic_linker='Win32 ld.exe'
10674 ;;
10675
10676 *,cl*)
10677 # Native MSVC
10678 libname_spec='$name'
10679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10680 library_names_spec='${libname}.dll.lib'
10681
10682 case $build_os in
10683 mingw*)
10684 sys_lib_search_path_spec=
10685 lt_save_ifs=$IFS
10686 IFS=';'
10687 for lt_path in $LIB
10688 do
10689 IFS=$lt_save_ifs
10690 # Let DOS variable expansion print the short 8.3 style file name.
10691 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10692 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10693 done
10694 IFS=$lt_save_ifs
10695 # Convert to MSYS style.
10696 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10697 ;;
10698 cygwin*)
10699 # Convert to unix form, then to dos form, then back to unix form
10700 # but this time dos style (no spaces!) so that the unix form looks
10701 # like /cygdrive/c/PROGRA~1:/cygdr...
10702 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10703 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10704 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10705 ;;
10706 *)
10707 sys_lib_search_path_spec="$LIB"
10708 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10709 # It is most probably a Windows format PATH.
10710 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10711 else
10712 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10713 fi
10714 # FIXME: find the short name or the path components, as spaces are
10715 # common. (e.g. "Program Files" -> "PROGRA~1")
10716 ;;
10717 esac
10718
10719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10720 postinstall_cmds='base_file=`basename \${file}`~
10721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10722 dldir=$destdir/`dirname \$dlpath`~
10723 test -d \$dldir || mkdir -p \$dldir~
10724 $install_prog $dir/$dlname \$dldir/$dlname'
10725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10726 dlpath=$dir/\$dldll~
10727 $RM \$dlpath'
10728 shlibpath_overrides_runpath=yes
10729 dynamic_linker='Win32 link.exe'
10730 ;;
10731
10732 *)
10733 # Assume MSVC wrapper
10734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10735 dynamic_linker='Win32 ld.exe'
10736 ;;
10737 esac
10738 # FIXME: first we should search . and the directory the executable is in
10739 shlibpath_var=PATH
10740 ;;
10741
10742 darwin* | rhapsody*)
10743 dynamic_linker="$host_os dyld"
10744 version_type=darwin
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10748 soname_spec='${libname}${release}${major}$shared_ext'
10749 shlibpath_overrides_runpath=yes
10750 shlibpath_var=DYLD_LIBRARY_PATH
10751 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10752
10753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10755 ;;
10756
10757 dgux*)
10758 version_type=linux
10759 need_lib_prefix=no
10760 need_version=no
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 ;;
10765
10766 freebsd1*)
10767 dynamic_linker=no
10768 ;;
10769
10770 freebsd* | dragonfly*)
10771 # DragonFly does not have aout. When/if they implement a new
10772 # versioning mechanism, adjust this.
10773 if test -x /usr/bin/objformat; then
10774 objformat=`/usr/bin/objformat`
10775 else
10776 case $host_os in
10777 freebsd[123]*) objformat=aout ;;
10778 *) objformat=elf ;;
10779 esac
10780 fi
10781 version_type=freebsd-$objformat
10782 case $version_type in
10783 freebsd-elf*)
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10785 need_version=no
10786 need_lib_prefix=no
10787 ;;
10788 freebsd-*)
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10790 need_version=yes
10791 ;;
10792 esac
10793 shlibpath_var=LD_LIBRARY_PATH
10794 case $host_os in
10795 freebsd2*)
10796 shlibpath_overrides_runpath=yes
10797 ;;
10798 freebsd3.[01]* | freebsdelf3.[01]*)
10799 shlibpath_overrides_runpath=yes
10800 hardcode_into_libs=yes
10801 ;;
10802 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10803 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10804 shlibpath_overrides_runpath=no
10805 hardcode_into_libs=yes
10806 ;;
10807 *) # from 4.6 on, and DragonFly
10808 shlibpath_overrides_runpath=yes
10809 hardcode_into_libs=yes
10810 ;;
10811 esac
10812 ;;
10813
10814 gnu*)
10815 version_type=linux
10816 need_lib_prefix=no
10817 need_version=no
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=no
10822 hardcode_into_libs=yes
10823 ;;
10824
10825 haiku*)
10826 version_type=linux
10827 need_lib_prefix=no
10828 need_version=no
10829 dynamic_linker="$host_os runtime_loader"
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 shlibpath_var=LIBRARY_PATH
10833 shlibpath_overrides_runpath=yes
10834 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10835 hardcode_into_libs=yes
10836 ;;
10837
10838 hpux9* | hpux10* | hpux11*)
10839 # Give a soname corresponding to the major version so that dld.sl refuses to
10840 # link against other versions.
10841 version_type=sunos
10842 need_lib_prefix=no
10843 need_version=no
10844 case $host_cpu in
10845 ia64*)
10846 shrext_cmds='.so'
10847 hardcode_into_libs=yes
10848 dynamic_linker="$host_os dld.so"
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 if test "X$HPUX_IA64_MODE" = X32; then
10854 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10855 else
10856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10857 fi
10858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10859 ;;
10860 hppa*64*)
10861 shrext_cmds='.sl'
10862 hardcode_into_libs=yes
10863 dynamic_linker="$host_os dld.sl"
10864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870 ;;
10871 *)
10872 shrext_cmds='.sl'
10873 dynamic_linker="$host_os dld.sl"
10874 shlibpath_var=SHLIB_PATH
10875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877 soname_spec='${libname}${release}${shared_ext}$major'
10878 ;;
10879 esac
10880 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10881 postinstall_cmds='chmod 555 $lib'
10882 # or fails outright, so override atomically:
10883 install_override_mode=555
10884 ;;
10885
10886 interix[3-9]*)
10887 version_type=linux
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10896 ;;
10897
10898 irix5* | irix6* | nonstopux*)
10899 case $host_os in
10900 nonstopux*) version_type=nonstopux ;;
10901 *)
10902 if test "$lt_cv_prog_gnu_ld" = yes; then
10903 version_type=linux
10904 else
10905 version_type=irix
10906 fi ;;
10907 esac
10908 need_lib_prefix=no
10909 need_version=no
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10912 case $host_os in
10913 irix5* | nonstopux*)
10914 libsuff= shlibsuff=
10915 ;;
10916 *)
10917 case $LD in # libtool.m4 will add one of these switches to LD
10918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10919 libsuff= shlibsuff= libmagic=32-bit;;
10920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10921 libsuff=32 shlibsuff=N32 libmagic=N32;;
10922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10924 *) libsuff= shlibsuff= libmagic=never-match;;
10925 esac
10926 ;;
10927 esac
10928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10929 shlibpath_overrides_runpath=no
10930 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10931 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10932 hardcode_into_libs=yes
10933 ;;
10934
10935 # No shared lib support for Linux oldld, aout, or coff.
10936 linux*oldld* | linux*aout* | linux*coff*)
10937 dynamic_linker=no
10938 ;;
10939
10940 # This must be Linux ELF.
10941 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10942 version_type=linux
10943 need_lib_prefix=no
10944 need_version=no
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 soname_spec='${libname}${release}${shared_ext}$major'
10947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=no
10950
10951 # Some binutils ld are patched to set DT_RUNPATH
10952 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 lt_cv_shlibpath_overrides_runpath=no
10956 save_LDFLAGS=$LDFLAGS
10957 save_libdir=$libdir
10958 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10959 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962
10963 int
10964 main ()
10965 {
10966
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_c_try_link "$LINENO"; then :
10972 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10973 lt_cv_shlibpath_overrides_runpath=yes
10974 fi
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
10978 LDFLAGS=$save_LDFLAGS
10979 libdir=$save_libdir
10980
10981 fi
10982
10983 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10984
10985 # This implies no fast_install, which is unacceptable.
10986 # Some rework will be needed to allow for fast_install
10987 # before this can be enabled.
10988 hardcode_into_libs=yes
10989
10990 # Append ld.so.conf contents to the search path
10991 if test -f /etc/ld.so.conf; then
10992 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' ' '`
10993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10994 fi
10995
10996 # We used to test for /lib/ld.so.1 and disable shared libraries on
10997 # powerpc, because MkLinux only supported shared libraries with the
10998 # GNU dynamic linker. Since this was broken with cross compilers,
10999 # most powerpc-linux boxes support dynamic linking these days and
11000 # people can always --disable-shared, the test was removed, and we
11001 # assume the GNU/Linux dynamic linker is in use.
11002 dynamic_linker='GNU/Linux ld.so'
11003 ;;
11004
11005 netbsdelf*-gnu)
11006 version_type=linux
11007 need_lib_prefix=no
11008 need_version=no
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11010 soname_spec='${libname}${release}${shared_ext}$major'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=no
11013 hardcode_into_libs=yes
11014 dynamic_linker='NetBSD ld.elf_so'
11015 ;;
11016
11017 netbsd*)
11018 version_type=sunos
11019 need_lib_prefix=no
11020 need_version=no
11021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11024 dynamic_linker='NetBSD (a.out) ld.so'
11025 else
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 dynamic_linker='NetBSD ld.elf_so'
11029 fi
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=yes
11032 hardcode_into_libs=yes
11033 ;;
11034
11035 newsos6)
11036 version_type=linux
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=yes
11040 ;;
11041
11042 *nto* | *qnx*)
11043 version_type=qnx
11044 need_lib_prefix=no
11045 need_version=no
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=no
11050 hardcode_into_libs=yes
11051 dynamic_linker='ldqnx.so'
11052 ;;
11053
11054 openbsd*)
11055 version_type=sunos
11056 sys_lib_dlsearch_path_spec="/usr/lib"
11057 need_lib_prefix=no
11058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11059 case $host_os in
11060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11061 *) need_version=no ;;
11062 esac
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11067 case $host_os in
11068 openbsd2.[89] | openbsd2.[89].*)
11069 shlibpath_overrides_runpath=no
11070 ;;
11071 *)
11072 shlibpath_overrides_runpath=yes
11073 ;;
11074 esac
11075 else
11076 shlibpath_overrides_runpath=yes
11077 fi
11078 ;;
11079
11080 os2*)
11081 libname_spec='$name'
11082 shrext_cmds=".dll"
11083 need_lib_prefix=no
11084 library_names_spec='$libname${shared_ext} $libname.a'
11085 dynamic_linker='OS/2 ld.exe'
11086 shlibpath_var=LIBPATH
11087 ;;
11088
11089 osf3* | osf4* | osf5*)
11090 version_type=osf
11091 need_lib_prefix=no
11092 need_version=no
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11098 ;;
11099
11100 rdos*)
11101 dynamic_linker=no
11102 ;;
11103
11104 solaris*)
11105 version_type=linux
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=yes
11112 hardcode_into_libs=yes
11113 # ldd complains unless libraries are executable
11114 postinstall_cmds='chmod +x $lib'
11115 ;;
11116
11117 sunos4*)
11118 version_type=sunos
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 if test "$with_gnu_ld" = yes; then
11124 need_lib_prefix=no
11125 fi
11126 need_version=yes
11127 ;;
11128
11129 sysv4 | sysv4.3*)
11130 version_type=linux
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 case $host_vendor in
11135 sni)
11136 shlibpath_overrides_runpath=no
11137 need_lib_prefix=no
11138 runpath_var=LD_RUN_PATH
11139 ;;
11140 siemens)
11141 need_lib_prefix=no
11142 ;;
11143 motorola)
11144 need_lib_prefix=no
11145 need_version=no
11146 shlibpath_overrides_runpath=no
11147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11148 ;;
11149 esac
11150 ;;
11151
11152 sysv4*MP*)
11153 if test -d /usr/nec ;then
11154 version_type=linux
11155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11156 soname_spec='$libname${shared_ext}.$major'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 fi
11159 ;;
11160
11161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11162 version_type=freebsd-elf
11163 need_lib_prefix=no
11164 need_version=no
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=yes
11169 hardcode_into_libs=yes
11170 if test "$with_gnu_ld" = yes; then
11171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11172 else
11173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11174 case $host_os in
11175 sco3.2v5*)
11176 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11177 ;;
11178 esac
11179 fi
11180 sys_lib_dlsearch_path_spec='/usr/lib'
11181 ;;
11182
11183 tpf*)
11184 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11185 version_type=linux
11186 need_lib_prefix=no
11187 need_version=no
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 shlibpath_overrides_runpath=no
11191 hardcode_into_libs=yes
11192 ;;
11193
11194 uts4*)
11195 version_type=linux
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 ;;
11200
11201 *)
11202 dynamic_linker=no
11203 ;;
11204 esac
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11206 $as_echo "$dynamic_linker" >&6; }
11207 test "$dynamic_linker" = no && can_build_shared=no
11208
11209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11210 if test "$GCC" = yes; then
11211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11212 fi
11213
11214 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11215 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11216 fi
11217 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11218 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11219 fi
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11313 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11314 hardcode_action=
11315 if test -n "$hardcode_libdir_flag_spec" ||
11316 test -n "$runpath_var" ||
11317 test "X$hardcode_automatic" = "Xyes" ; then
11318
11319 # We can hardcode non-existent directories.
11320 if test "$hardcode_direct" != no &&
11321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11322 # have to relink, otherwise we might link with an installed library
11323 # when we should be linking with a yet-to-be-installed one
11324 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11325 test "$hardcode_minus_L" != no; then
11326 # Linking always hardcodes the temporary library directory.
11327 hardcode_action=relink
11328 else
11329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11330 hardcode_action=immediate
11331 fi
11332 else
11333 # We cannot hardcode anything, or else we can only hardcode existing
11334 # directories.
11335 hardcode_action=unsupported
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11338 $as_echo "$hardcode_action" >&6; }
11339
11340 if test "$hardcode_action" = relink ||
11341 test "$inherit_rpath" = yes; then
11342 # Fast installation is not supported
11343 enable_fast_install=no
11344 elif test "$shlibpath_overrides_runpath" = yes ||
11345 test "$enable_shared" = no; then
11346 # Fast installation is not necessary
11347 enable_fast_install=needless
11348 fi
11349
11350
11351
11352
11353
11354
11355 if test "x$enable_dlopen" != xyes; then
11356 enable_dlopen=unknown
11357 enable_dlopen_self=unknown
11358 enable_dlopen_self_static=unknown
11359 else
11360 lt_cv_dlopen=no
11361 lt_cv_dlopen_libs=
11362
11363 case $host_os in
11364 beos*)
11365 lt_cv_dlopen="load_add_on"
11366 lt_cv_dlopen_libs=
11367 lt_cv_dlopen_self=yes
11368 ;;
11369
11370 mingw* | pw32* | cegcc*)
11371 lt_cv_dlopen="LoadLibrary"
11372 lt_cv_dlopen_libs=
11373 ;;
11374
11375 cygwin*)
11376 lt_cv_dlopen="dlopen"
11377 lt_cv_dlopen_libs=
11378 ;;
11379
11380 darwin*)
11381 # if libdl is installed we need to link against it
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11383 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11384 if ${ac_cv_lib_dl_dlopen+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-ldl $LIBS"
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11391
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char dlopen ();
11399 int
11400 main ()
11401 {
11402 return dlopen ();
11403 ;
11404 return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 ac_cv_lib_dl_dlopen=yes
11409 else
11410 ac_cv_lib_dl_dlopen=no
11411 fi
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_lib_save_LIBS
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11417 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11418 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11420 else
11421
11422 lt_cv_dlopen="dyld"
11423 lt_cv_dlopen_libs=
11424 lt_cv_dlopen_self=yes
11425
11426 fi
11427
11428 ;;
11429
11430 *)
11431 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11432 if test "x$ac_cv_func_shl_load" = xyes; then :
11433 lt_cv_dlopen="shl_load"
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11436 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11437 if ${ac_cv_lib_dld_shl_load+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 ac_check_lib_save_LIBS=$LIBS
11441 LIBS="-ldld $LIBS"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444
11445 /* Override any GCC internal prototype to avoid an error.
11446 Use char because int might match the return type of a GCC
11447 builtin and then its argument prototype would still apply. */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 char shl_load ();
11452 int
11453 main ()
11454 {
11455 return shl_load ();
11456 ;
11457 return 0;
11458 }
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461 ac_cv_lib_dld_shl_load=yes
11462 else
11463 ac_cv_lib_dld_shl_load=no
11464 fi
11465 rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467 LIBS=$ac_check_lib_save_LIBS
11468 fi
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11470 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11471 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11472 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11473 else
11474 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11475 if test "x$ac_cv_func_dlopen" = xyes; then :
11476 lt_cv_dlopen="dlopen"
11477 else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11479 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11480 if ${ac_cv_lib_dl_dlopen+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-ldl $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11487
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char dlopen ();
11495 int
11496 main ()
11497 {
11498 return dlopen ();
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504 ac_cv_lib_dl_dlopen=yes
11505 else
11506 ac_cv_lib_dl_dlopen=no
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11513 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11514 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11518 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11519 if ${ac_cv_lib_svld_dlopen+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-lsvld $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char dlopen ();
11534 int
11535 main ()
11536 {
11537 return dlopen ();
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_link "$LINENO"; then :
11543 ac_cv_lib_svld_dlopen=yes
11544 else
11545 ac_cv_lib_svld_dlopen=no
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11552 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11553 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11557 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11558 if ${ac_cv_lib_dld_dld_link+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 ac_check_lib_save_LIBS=$LIBS
11562 LIBS="-ldld $LIBS"
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11565
11566 /* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 char dld_link ();
11573 int
11574 main ()
11575 {
11576 return dld_link ();
11577 ;
11578 return 0;
11579 }
11580 _ACEOF
11581 if ac_fn_c_try_link "$LINENO"; then :
11582 ac_cv_lib_dld_dld_link=yes
11583 else
11584 ac_cv_lib_dld_dld_link=no
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11589 fi
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11591 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11592 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11593 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11594 fi
11595
11596
11597 fi
11598
11599
11600 fi
11601
11602
11603 fi
11604
11605
11606 fi
11607
11608
11609 fi
11610
11611 ;;
11612 esac
11613
11614 if test "x$lt_cv_dlopen" != xno; then
11615 enable_dlopen=yes
11616 else
11617 enable_dlopen=no
11618 fi
11619
11620 case $lt_cv_dlopen in
11621 dlopen)
11622 save_CPPFLAGS="$CPPFLAGS"
11623 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11624
11625 save_LDFLAGS="$LDFLAGS"
11626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11627
11628 save_LIBS="$LIBS"
11629 LIBS="$lt_cv_dlopen_libs $LIBS"
11630
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11632 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11633 if ${lt_cv_dlopen_self+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 if test "$cross_compiling" = yes; then :
11637 lt_cv_dlopen_self=cross
11638 else
11639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11640 lt_status=$lt_dlunknown
11641 cat > conftest.$ac_ext <<_LT_EOF
11642 #line $LINENO "configure"
11643 #include "confdefs.h"
11644
11645 #if HAVE_DLFCN_H
11646 #include <dlfcn.h>
11647 #endif
11648
11649 #include <stdio.h>
11650
11651 #ifdef RTLD_GLOBAL
11652 # define LT_DLGLOBAL RTLD_GLOBAL
11653 #else
11654 # ifdef DL_GLOBAL
11655 # define LT_DLGLOBAL DL_GLOBAL
11656 # else
11657 # define LT_DLGLOBAL 0
11658 # endif
11659 #endif
11660
11661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11662 find out it does not work in some platform. */
11663 #ifndef LT_DLLAZY_OR_NOW
11664 # ifdef RTLD_LAZY
11665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11666 # else
11667 # ifdef DL_LAZY
11668 # define LT_DLLAZY_OR_NOW DL_LAZY
11669 # else
11670 # ifdef RTLD_NOW
11671 # define LT_DLLAZY_OR_NOW RTLD_NOW
11672 # else
11673 # ifdef DL_NOW
11674 # define LT_DLLAZY_OR_NOW DL_NOW
11675 # else
11676 # define LT_DLLAZY_OR_NOW 0
11677 # endif
11678 # endif
11679 # endif
11680 # endif
11681 #endif
11682
11683 /* When -fvisbility=hidden is used, assume the code has been annotated
11684 correspondingly for the symbols needed. */
11685 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11686 int fnord () __attribute__((visibility("default")));
11687 #endif
11688
11689 int fnord () { return 42; }
11690 int main ()
11691 {
11692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11693 int status = $lt_dlunknown;
11694
11695 if (self)
11696 {
11697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11698 else
11699 {
11700 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11701 else puts (dlerror ());
11702 }
11703 /* dlclose (self); */
11704 }
11705 else
11706 puts (dlerror ());
11707
11708 return status;
11709 }
11710 _LT_EOF
11711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11712 (eval $ac_link) 2>&5
11713 ac_status=$?
11714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11715 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11716 (./conftest; exit; ) >&5 2>/dev/null
11717 lt_status=$?
11718 case x$lt_status in
11719 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11720 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11721 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11722 esac
11723 else :
11724 # compilation failed
11725 lt_cv_dlopen_self=no
11726 fi
11727 fi
11728 rm -fr conftest*
11729
11730
11731 fi
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11733 $as_echo "$lt_cv_dlopen_self" >&6; }
11734
11735 if test "x$lt_cv_dlopen_self" = xyes; then
11736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11738 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11739 if ${lt_cv_dlopen_self_static+:} false; then :
11740 $as_echo_n "(cached) " >&6
11741 else
11742 if test "$cross_compiling" = yes; then :
11743 lt_cv_dlopen_self_static=cross
11744 else
11745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746 lt_status=$lt_dlunknown
11747 cat > conftest.$ac_ext <<_LT_EOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11750
11751 #if HAVE_DLFCN_H
11752 #include <dlfcn.h>
11753 #endif
11754
11755 #include <stdio.h>
11756
11757 #ifdef RTLD_GLOBAL
11758 # define LT_DLGLOBAL RTLD_GLOBAL
11759 #else
11760 # ifdef DL_GLOBAL
11761 # define LT_DLGLOBAL DL_GLOBAL
11762 # else
11763 # define LT_DLGLOBAL 0
11764 # endif
11765 #endif
11766
11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768 find out it does not work in some platform. */
11769 #ifndef LT_DLLAZY_OR_NOW
11770 # ifdef RTLD_LAZY
11771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11772 # else
11773 # ifdef DL_LAZY
11774 # define LT_DLLAZY_OR_NOW DL_LAZY
11775 # else
11776 # ifdef RTLD_NOW
11777 # define LT_DLLAZY_OR_NOW RTLD_NOW
11778 # else
11779 # ifdef DL_NOW
11780 # define LT_DLLAZY_OR_NOW DL_NOW
11781 # else
11782 # define LT_DLLAZY_OR_NOW 0
11783 # endif
11784 # endif
11785 # endif
11786 # endif
11787 #endif
11788
11789 /* When -fvisbility=hidden is used, assume the code has been annotated
11790 correspondingly for the symbols needed. */
11791 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11792 int fnord () __attribute__((visibility("default")));
11793 #endif
11794
11795 int fnord () { return 42; }
11796 int main ()
11797 {
11798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11799 int status = $lt_dlunknown;
11800
11801 if (self)
11802 {
11803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11804 else
11805 {
11806 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11807 else puts (dlerror ());
11808 }
11809 /* dlclose (self); */
11810 }
11811 else
11812 puts (dlerror ());
11813
11814 return status;
11815 }
11816 _LT_EOF
11817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11818 (eval $ac_link) 2>&5
11819 ac_status=$?
11820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11822 (./conftest; exit; ) >&5 2>/dev/null
11823 lt_status=$?
11824 case x$lt_status in
11825 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11826 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11827 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11828 esac
11829 else :
11830 # compilation failed
11831 lt_cv_dlopen_self_static=no
11832 fi
11833 fi
11834 rm -fr conftest*
11835
11836
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11839 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11840 fi
11841
11842 CPPFLAGS="$save_CPPFLAGS"
11843 LDFLAGS="$save_LDFLAGS"
11844 LIBS="$save_LIBS"
11845 ;;
11846 esac
11847
11848 case $lt_cv_dlopen_self in
11849 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11850 *) enable_dlopen_self=unknown ;;
11851 esac
11852
11853 case $lt_cv_dlopen_self_static in
11854 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11855 *) enable_dlopen_self_static=unknown ;;
11856 esac
11857 fi
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875 striplib=
11876 old_striplib=
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11878 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11879 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11880 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11881 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11883 $as_echo "yes" >&6; }
11884 else
11885 # FIXME - insert some real tests, host_os isn't really good enough
11886 case $host_os in
11887 darwin*)
11888 if test -n "$STRIP" ; then
11889 striplib="$STRIP -x"
11890 old_striplib="$STRIP -S"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892 $as_echo "yes" >&6; }
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 fi
11897 ;;
11898 *)
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901 ;;
11902 esac
11903 fi
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916 # Report which library types will actually be built
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11918 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11920 $as_echo "$can_build_shared" >&6; }
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11923 $as_echo_n "checking whether to build shared libraries... " >&6; }
11924 test "$can_build_shared" = "no" && enable_shared=no
11925
11926 # On AIX, shared libraries and static libraries use the same namespace, and
11927 # are all built from PIC.
11928 case $host_os in
11929 aix3*)
11930 test "$enable_shared" = yes && enable_static=no
11931 if test -n "$RANLIB"; then
11932 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11933 postinstall_cmds='$RANLIB $lib'
11934 fi
11935 ;;
11936
11937 aix[4-9]*)
11938 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11939 test "$enable_shared" = yes && enable_static=no
11940 fi
11941 ;;
11942 esac
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11944 $as_echo "$enable_shared" >&6; }
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11947 $as_echo_n "checking whether to build static libraries... " >&6; }
11948 # Make sure either enable_shared or enable_static is yes.
11949 test "$enable_shared" = yes || enable_static=yes
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11951 $as_echo "$enable_static" >&6; }
11952
11953
11954
11955
11956 fi
11957 ac_ext=c
11958 ac_cpp='$CPP $CPPFLAGS'
11959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962
11963 CC="$lt_save_CC"
11964
11965 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11966 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11967 (test "X$CXX" != "Xg++"))) ; then
11968 ac_ext=cpp
11969 ac_cpp='$CXXCPP $CPPFLAGS'
11970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11974 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11975 if test -z "$CXXCPP"; then
11976 if ${ac_cv_prog_CXXCPP+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 # Double quotes because CXXCPP needs to be expanded
11980 for CXXCPP in "$CXX -E" "/lib/cpp"
11981 do
11982 ac_preproc_ok=false
11983 for ac_cxx_preproc_warn_flag in '' yes
11984 do
11985 # Use a header file that comes with gcc, so configuring glibc
11986 # with a fresh cross-compiler works.
11987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988 # <limits.h> exists even on freestanding compilers.
11989 # On the NeXT, cc -E runs the code through the compiler's parser,
11990 # not just through cpp. "Syntax error" is here to catch this case.
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #ifdef __STDC__
11994 # include <limits.h>
11995 #else
11996 # include <assert.h>
11997 #endif
11998 Syntax error
11999 _ACEOF
12000 if ac_fn_cxx_try_cpp "$LINENO"; then :
12001
12002 else
12003 # Broken: fails on valid input.
12004 continue
12005 fi
12006 rm -f conftest.err conftest.i conftest.$ac_ext
12007
12008 # OK, works on sane cases. Now check whether nonexistent headers
12009 # can be detected and how.
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012 #include <ac_nonexistent.h>
12013 _ACEOF
12014 if ac_fn_cxx_try_cpp "$LINENO"; then :
12015 # Broken: success on invalid input.
12016 continue
12017 else
12018 # Passes both tests.
12019 ac_preproc_ok=:
12020 break
12021 fi
12022 rm -f conftest.err conftest.i conftest.$ac_ext
12023
12024 done
12025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12026 rm -f conftest.i conftest.err conftest.$ac_ext
12027 if $ac_preproc_ok; then :
12028 break
12029 fi
12030
12031 done
12032 ac_cv_prog_CXXCPP=$CXXCPP
12033
12034 fi
12035 CXXCPP=$ac_cv_prog_CXXCPP
12036 else
12037 ac_cv_prog_CXXCPP=$CXXCPP
12038 fi
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12040 $as_echo "$CXXCPP" >&6; }
12041 ac_preproc_ok=false
12042 for ac_cxx_preproc_warn_flag in '' yes
12043 do
12044 # Use a header file that comes with gcc, so configuring glibc
12045 # with a fresh cross-compiler works.
12046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12047 # <limits.h> exists even on freestanding compilers.
12048 # On the NeXT, cc -E runs the code through the compiler's parser,
12049 # not just through cpp. "Syntax error" is here to catch this case.
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052 #ifdef __STDC__
12053 # include <limits.h>
12054 #else
12055 # include <assert.h>
12056 #endif
12057 Syntax error
12058 _ACEOF
12059 if ac_fn_cxx_try_cpp "$LINENO"; then :
12060
12061 else
12062 # Broken: fails on valid input.
12063 continue
12064 fi
12065 rm -f conftest.err conftest.i conftest.$ac_ext
12066
12067 # OK, works on sane cases. Now check whether nonexistent headers
12068 # can be detected and how.
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12071 #include <ac_nonexistent.h>
12072 _ACEOF
12073 if ac_fn_cxx_try_cpp "$LINENO"; then :
12074 # Broken: success on invalid input.
12075 continue
12076 else
12077 # Passes both tests.
12078 ac_preproc_ok=:
12079 break
12080 fi
12081 rm -f conftest.err conftest.i conftest.$ac_ext
12082
12083 done
12084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12085 rm -f conftest.i conftest.err conftest.$ac_ext
12086 if $ac_preproc_ok; then :
12087
12088 else
12089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12091 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12092 See \`config.log' for more details" "$LINENO" 5; }
12093 fi
12094
12095 ac_ext=c
12096 ac_cpp='$CPP $CPPFLAGS'
12097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12100
12101 else
12102 _lt_caught_CXX_error=yes
12103 fi
12104
12105 ac_ext=cpp
12106 ac_cpp='$CXXCPP $CPPFLAGS'
12107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12110
12111 archive_cmds_need_lc_CXX=no
12112 allow_undefined_flag_CXX=
12113 always_export_symbols_CXX=no
12114 archive_expsym_cmds_CXX=
12115 compiler_needs_object_CXX=no
12116 export_dynamic_flag_spec_CXX=
12117 hardcode_direct_CXX=no
12118 hardcode_direct_absolute_CXX=no
12119 hardcode_libdir_flag_spec_CXX=
12120 hardcode_libdir_flag_spec_ld_CXX=
12121 hardcode_libdir_separator_CXX=
12122 hardcode_minus_L_CXX=no
12123 hardcode_shlibpath_var_CXX=unsupported
12124 hardcode_automatic_CXX=no
12125 inherit_rpath_CXX=no
12126 module_cmds_CXX=
12127 module_expsym_cmds_CXX=
12128 link_all_deplibs_CXX=unknown
12129 old_archive_cmds_CXX=$old_archive_cmds
12130 reload_flag_CXX=$reload_flag
12131 reload_cmds_CXX=$reload_cmds
12132 no_undefined_flag_CXX=
12133 whole_archive_flag_spec_CXX=
12134 enable_shared_with_static_runtimes_CXX=no
12135
12136 # Source file extension for C++ test sources.
12137 ac_ext=cpp
12138
12139 # Object file extension for compiled C++ test sources.
12140 objext=o
12141 objext_CXX=$objext
12142
12143 # No sense in running all these tests if we already determined that
12144 # the CXX compiler isn't working. Some variables (like enable_shared)
12145 # are currently assumed to apply to all compilers on this platform,
12146 # and will be corrupted by setting them based on a non-working compiler.
12147 if test "$_lt_caught_CXX_error" != yes; then
12148 # Code to be used in simple compile tests
12149 lt_simple_compile_test_code="int some_variable = 0;"
12150
12151 # Code to be used in simple link tests
12152 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12153
12154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12155
12156
12157
12158
12159
12160
12161 # If no C compiler was specified, use CC.
12162 LTCC=${LTCC-"$CC"}
12163
12164 # If no C compiler flags were specified, use CFLAGS.
12165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12166
12167 # Allow CC to be a program name with arguments.
12168 compiler=$CC
12169
12170
12171 # save warnings/boilerplate of simple test code
12172 ac_outfile=conftest.$ac_objext
12173 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12174 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12175 _lt_compiler_boilerplate=`cat conftest.err`
12176 $RM conftest*
12177
12178 ac_outfile=conftest.$ac_objext
12179 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12180 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12181 _lt_linker_boilerplate=`cat conftest.err`
12182 $RM -r conftest*
12183
12184
12185 # Allow CC to be a program name with arguments.
12186 lt_save_CC=$CC
12187 lt_save_CFLAGS=$CFLAGS
12188 lt_save_LD=$LD
12189 lt_save_GCC=$GCC
12190 GCC=$GXX
12191 lt_save_with_gnu_ld=$with_gnu_ld
12192 lt_save_path_LD=$lt_cv_path_LD
12193 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12194 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12195 else
12196 $as_unset lt_cv_prog_gnu_ld
12197 fi
12198 if test -n "${lt_cv_path_LDCXX+set}"; then
12199 lt_cv_path_LD=$lt_cv_path_LDCXX
12200 else
12201 $as_unset lt_cv_path_LD
12202 fi
12203 test -z "${LDCXX+set}" || LD=$LDCXX
12204 CC=${CXX-"c++"}
12205 CFLAGS=$CXXFLAGS
12206 compiler=$CC
12207 compiler_CXX=$CC
12208 for cc_temp in $compiler""; do
12209 case $cc_temp in
12210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12212 \-*) ;;
12213 *) break;;
12214 esac
12215 done
12216 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12217
12218
12219 if test -n "$compiler"; then
12220 # We don't want -fno-exception when compiling C++ code, so set the
12221 # no_builtin_flag separately
12222 if test "$GXX" = yes; then
12223 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12224 else
12225 lt_prog_compiler_no_builtin_flag_CXX=
12226 fi
12227
12228 if test "$GXX" = yes; then
12229 # Set up default GNU C++ configuration
12230
12231
12232
12233 # Check whether --with-gnu-ld was given.
12234 if test "${with_gnu_ld+set}" = set; then :
12235 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12236 else
12237 with_gnu_ld=no
12238 fi
12239
12240 ac_prog=ld
12241 if test "$GCC" = yes; then
12242 # Check if gcc -print-prog-name=ld gives a path.
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12244 $as_echo_n "checking for ld used by $CC... " >&6; }
12245 case $host in
12246 *-*-mingw*)
12247 # gcc leaves a trailing carriage return which upsets mingw
12248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12249 *)
12250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12251 esac
12252 case $ac_prog in
12253 # Accept absolute paths.
12254 [\\/]* | ?:[\\/]*)
12255 re_direlt='/[^/][^/]*/\.\./'
12256 # Canonicalize the pathname of ld
12257 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12258 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12259 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12260 done
12261 test -z "$LD" && LD="$ac_prog"
12262 ;;
12263 "")
12264 # If it fails, then pretend we aren't using GCC.
12265 ac_prog=ld
12266 ;;
12267 *)
12268 # If it is relative, then search for the first ld in PATH.
12269 with_gnu_ld=unknown
12270 ;;
12271 esac
12272 elif test "$with_gnu_ld" = yes; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12274 $as_echo_n "checking for GNU ld... " >&6; }
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12277 $as_echo_n "checking for non-GNU ld... " >&6; }
12278 fi
12279 if ${lt_cv_path_LD+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 if test -z "$LD"; then
12283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12284 for ac_dir in $PATH; do
12285 IFS="$lt_save_ifs"
12286 test -z "$ac_dir" && ac_dir=.
12287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12288 lt_cv_path_LD="$ac_dir/$ac_prog"
12289 # Check to see if the program is GNU ld. I'd rather use --version,
12290 # but apparently some variants of GNU ld only accept -v.
12291 # Break only if it was the GNU/non-GNU ld that we prefer.
12292 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12293 *GNU* | *'with BFD'*)
12294 test "$with_gnu_ld" != no && break
12295 ;;
12296 *)
12297 test "$with_gnu_ld" != yes && break
12298 ;;
12299 esac
12300 fi
12301 done
12302 IFS="$lt_save_ifs"
12303 else
12304 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12305 fi
12306 fi
12307
12308 LD="$lt_cv_path_LD"
12309 if test -n "$LD"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12311 $as_echo "$LD" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315 fi
12316 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12318 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12319 if ${lt_cv_prog_gnu_ld+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12323 case `$LD -v 2>&1 </dev/null` in
12324 *GNU* | *'with BFD'*)
12325 lt_cv_prog_gnu_ld=yes
12326 ;;
12327 *)
12328 lt_cv_prog_gnu_ld=no
12329 ;;
12330 esac
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12333 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12334 with_gnu_ld=$lt_cv_prog_gnu_ld
12335
12336
12337
12338
12339
12340
12341
12342 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12343 # archiving commands below assume that GNU ld is being used.
12344 if test "$with_gnu_ld" = yes; then
12345 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12346 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'
12347
12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12350
12351 # If archive_cmds runs LD, not CC, wlarc should be empty
12352 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12353 # investigate it a little bit more. (MM)
12354 wlarc='${wl}'
12355
12356 # ancient GNU ld didn't support --whole-archive et. al.
12357 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12358 $GREP 'no-whole-archive' > /dev/null; then
12359 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12360 else
12361 whole_archive_flag_spec_CXX=
12362 fi
12363 else
12364 with_gnu_ld=no
12365 wlarc=
12366
12367 # A generic and very simple default shared library creation
12368 # command for GNU C++ for the case where it uses the native
12369 # linker, instead of GNU ld. If possible, this setting should
12370 # overridden to take advantage of the native linker features on
12371 # the platform it is being used on.
12372 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12373 fi
12374
12375 # Commands to make compiler produce verbose output that lists
12376 # what "hidden" libraries, object files and flags are used when
12377 # linking a shared library.
12378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12379
12380 else
12381 GXX=no
12382 with_gnu_ld=no
12383 wlarc=
12384 fi
12385
12386 # PORTME: fill in a description of your system's C++ link characteristics
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12388 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12389 ld_shlibs_CXX=yes
12390 case $host_os in
12391 aix3*)
12392 # FIXME: insert proper C++ library support
12393 ld_shlibs_CXX=no
12394 ;;
12395 aix[4-9]*)
12396 if test "$host_cpu" = ia64; then
12397 # On IA64, the linker does run time linking by default, so we don't
12398 # have to do anything special.
12399 aix_use_runtimelinking=no
12400 exp_sym_flag='-Bexport'
12401 no_entry_flag=""
12402 else
12403 aix_use_runtimelinking=no
12404
12405 # Test if we are trying to use run time linking or normal
12406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12407 # need to do runtime linking.
12408 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12409 for ld_flag in $LDFLAGS; do
12410 case $ld_flag in
12411 *-brtl*)
12412 aix_use_runtimelinking=yes
12413 break
12414 ;;
12415 esac
12416 done
12417 ;;
12418 esac
12419
12420 exp_sym_flag='-bexport'
12421 no_entry_flag='-bnoentry'
12422 fi
12423
12424 # When large executables or shared objects are built, AIX ld can
12425 # have problems creating the table of contents. If linking a library
12426 # or program results in "error TOC overflow" add -mminimal-toc to
12427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12429
12430 archive_cmds_CXX=''
12431 hardcode_direct_CXX=yes
12432 hardcode_direct_absolute_CXX=yes
12433 hardcode_libdir_separator_CXX=':'
12434 link_all_deplibs_CXX=yes
12435 file_list_spec_CXX='${wl}-f,'
12436
12437 if test "$GXX" = yes; then
12438 case $host_os in aix4.[012]|aix4.[012].*)
12439 # We only want to do this on AIX 4.2 and lower, the check
12440 # below for broken collect2 doesn't work under 4.3+
12441 collect2name=`${CC} -print-prog-name=collect2`
12442 if test -f "$collect2name" &&
12443 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12444 then
12445 # We have reworked collect2
12446 :
12447 else
12448 # We have old collect2
12449 hardcode_direct_CXX=unsupported
12450 # It fails to find uninstalled libraries when the uninstalled
12451 # path is not listed in the libpath. Setting hardcode_minus_L
12452 # to unsupported forces relinking
12453 hardcode_minus_L_CXX=yes
12454 hardcode_libdir_flag_spec_CXX='-L$libdir'
12455 hardcode_libdir_separator_CXX=
12456 fi
12457 esac
12458 shared_flag='-shared'
12459 if test "$aix_use_runtimelinking" = yes; then
12460 shared_flag="$shared_flag "'${wl}-G'
12461 fi
12462 else
12463 # not using gcc
12464 if test "$host_cpu" = ia64; then
12465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12466 # chokes on -Wl,-G. The following line is correct:
12467 shared_flag='-G'
12468 else
12469 if test "$aix_use_runtimelinking" = yes; then
12470 shared_flag='${wl}-G'
12471 else
12472 shared_flag='${wl}-bM:SRE'
12473 fi
12474 fi
12475 fi
12476
12477 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12478 # It seems that -bexpall does not export symbols beginning with
12479 # underscore (_), so it is better to generate a list of symbols to
12480 # export.
12481 always_export_symbols_CXX=yes
12482 if test "$aix_use_runtimelinking" = yes; then
12483 # Warning - without using the other runtime loading flags (-brtl),
12484 # -berok will link without error, but may produce a broken library.
12485 allow_undefined_flag_CXX='-berok'
12486 # Determine the default libpath from the value encoded in an empty
12487 # executable.
12488 if test "${lt_cv_aix_libpath+set}" = set; then
12489 aix_libpath=$lt_cv_aix_libpath
12490 else
12491 if ${lt_cv_aix_libpath__CXX+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12496
12497 int
12498 main ()
12499 {
12500
12501 ;
12502 return 0;
12503 }
12504 _ACEOF
12505 if ac_fn_cxx_try_link "$LINENO"; then :
12506
12507 lt_aix_libpath_sed='
12508 /Import File Strings/,/^$/ {
12509 /^0/ {
12510 s/^0 *\([^ ]*\) *$/\1/
12511 p
12512 }
12513 }'
12514 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12515 # Check for a 64-bit object if we didn't find anything.
12516 if test -z "$lt_cv_aix_libpath__CXX"; then
12517 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12518 fi
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12522 if test -z "$lt_cv_aix_libpath__CXX"; then
12523 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12524 fi
12525
12526 fi
12527
12528 aix_libpath=$lt_cv_aix_libpath__CXX
12529 fi
12530
12531 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12532
12533 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12534 else
12535 if test "$host_cpu" = ia64; then
12536 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12537 allow_undefined_flag_CXX="-z nodefs"
12538 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"
12539 else
12540 # Determine the default libpath from the value encoded in an
12541 # empty executable.
12542 if test "${lt_cv_aix_libpath+set}" = set; then
12543 aix_libpath=$lt_cv_aix_libpath
12544 else
12545 if ${lt_cv_aix_libpath__CXX+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12550
12551 int
12552 main ()
12553 {
12554
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_cxx_try_link "$LINENO"; then :
12560
12561 lt_aix_libpath_sed='
12562 /Import File Strings/,/^$/ {
12563 /^0/ {
12564 s/^0 *\([^ ]*\) *$/\1/
12565 p
12566 }
12567 }'
12568 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12569 # Check for a 64-bit object if we didn't find anything.
12570 if test -z "$lt_cv_aix_libpath__CXX"; then
12571 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12572 fi
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 if test -z "$lt_cv_aix_libpath__CXX"; then
12577 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12578 fi
12579
12580 fi
12581
12582 aix_libpath=$lt_cv_aix_libpath__CXX
12583 fi
12584
12585 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12586 # Warning - without using the other run time loading flags,
12587 # -berok will link without error, but may produce a broken library.
12588 no_undefined_flag_CXX=' ${wl}-bernotok'
12589 allow_undefined_flag_CXX=' ${wl}-berok'
12590 if test "$with_gnu_ld" = yes; then
12591 # We only use this code for GNU lds that support --whole-archive.
12592 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12593 else
12594 # Exported symbols can be pulled into shared objects from archives
12595 whole_archive_flag_spec_CXX='$convenience'
12596 fi
12597 archive_cmds_need_lc_CXX=yes
12598 # This is similar to how AIX traditionally builds its shared
12599 # libraries.
12600 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12601 fi
12602 fi
12603 ;;
12604
12605 beos*)
12606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12607 allow_undefined_flag_CXX=unsupported
12608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12609 # support --undefined. This deserves some investigation. FIXME
12610 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12611 else
12612 ld_shlibs_CXX=no
12613 fi
12614 ;;
12615
12616 chorus*)
12617 case $cc_basename in
12618 *)
12619 # FIXME: insert proper C++ library support
12620 ld_shlibs_CXX=no
12621 ;;
12622 esac
12623 ;;
12624
12625 cygwin* | mingw* | pw32* | cegcc*)
12626 case $GXX,$cc_basename in
12627 ,cl* | no,cl*)
12628 # Native MSVC
12629 # hardcode_libdir_flag_spec is actually meaningless, as there is
12630 # no search path for DLLs.
12631 hardcode_libdir_flag_spec_CXX=' '
12632 allow_undefined_flag_CXX=unsupported
12633 always_export_symbols_CXX=yes
12634 file_list_spec_CXX='@'
12635 # Tell ltmain to make .lib files, not .a files.
12636 libext=lib
12637 # Tell ltmain to make .dll files, not .so files.
12638 shrext_cmds=".dll"
12639 # FIXME: Setting linknames here is a bad hack.
12640 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12641 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12642 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12643 else
12644 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12645 fi~
12646 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12647 linknames='
12648 # The linker will not automatically build a static lib if we build a DLL.
12649 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12650 enable_shared_with_static_runtimes_CXX=yes
12651 # Don't use ranlib
12652 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12653 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12654 lt_tool_outputfile="@TOOL_OUTPUT@"~
12655 case $lt_outputfile in
12656 *.exe|*.EXE) ;;
12657 *)
12658 lt_outputfile="$lt_outputfile.exe"
12659 lt_tool_outputfile="$lt_tool_outputfile.exe"
12660 ;;
12661 esac~
12662 func_to_tool_file "$lt_outputfile"~
12663 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12664 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12665 $RM "$lt_outputfile.manifest";
12666 fi'
12667 ;;
12668 *)
12669 # g++
12670 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12671 # as there is no search path for DLLs.
12672 hardcode_libdir_flag_spec_CXX='-L$libdir'
12673 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12674 allow_undefined_flag_CXX=unsupported
12675 always_export_symbols_CXX=no
12676 enable_shared_with_static_runtimes_CXX=yes
12677
12678 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12679 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'
12680 # If the export-symbols file already is a .def file (1st line
12681 # is EXPORTS), use it as is; otherwise, prepend...
12682 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12683 cp $export_symbols $output_objdir/$soname.def;
12684 else
12685 echo EXPORTS > $output_objdir/$soname.def;
12686 cat $export_symbols >> $output_objdir/$soname.def;
12687 fi~
12688 $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'
12689 else
12690 ld_shlibs_CXX=no
12691 fi
12692 ;;
12693 esac
12694 ;;
12695 darwin* | rhapsody*)
12696
12697
12698 archive_cmds_need_lc_CXX=no
12699 hardcode_direct_CXX=no
12700 hardcode_automatic_CXX=yes
12701 hardcode_shlibpath_var_CXX=unsupported
12702 if test "$lt_cv_ld_force_load" = "yes"; then
12703 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\"`'
12704 else
12705 whole_archive_flag_spec_CXX=''
12706 fi
12707 link_all_deplibs_CXX=yes
12708 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12709 case $cc_basename in
12710 ifort*) _lt_dar_can_shared=yes ;;
12711 *) _lt_dar_can_shared=$GCC ;;
12712 esac
12713 if test "$_lt_dar_can_shared" = "yes"; then
12714 output_verbose_link_cmd=func_echo_all
12715 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}"
12716 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12717 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}"
12718 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}"
12719 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12720 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}"
12721 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}"
12722 fi
12723
12724 else
12725 ld_shlibs_CXX=no
12726 fi
12727
12728 ;;
12729
12730 dgux*)
12731 case $cc_basename in
12732 ec++*)
12733 # FIXME: insert proper C++ library support
12734 ld_shlibs_CXX=no
12735 ;;
12736 ghcx*)
12737 # Green Hills C++ Compiler
12738 # FIXME: insert proper C++ library support
12739 ld_shlibs_CXX=no
12740 ;;
12741 *)
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12744 ;;
12745 esac
12746 ;;
12747
12748 freebsd[12]*)
12749 # C++ shared libraries reported to be fairly broken before
12750 # switch to ELF
12751 ld_shlibs_CXX=no
12752 ;;
12753
12754 freebsd-elf*)
12755 archive_cmds_need_lc_CXX=no
12756 ;;
12757
12758 freebsd* | dragonfly*)
12759 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12760 # conventions
12761 ld_shlibs_CXX=yes
12762 ;;
12763
12764 gnu*)
12765 ;;
12766
12767 haiku*)
12768 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12769 link_all_deplibs_CXX=yes
12770 ;;
12771
12772 hpux9*)
12773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12774 hardcode_libdir_separator_CXX=:
12775 export_dynamic_flag_spec_CXX='${wl}-E'
12776 hardcode_direct_CXX=yes
12777 hardcode_minus_L_CXX=yes # Not in the search PATH,
12778 # but as the default
12779 # location of the library.
12780
12781 case $cc_basename in
12782 CC*)
12783 # FIXME: insert proper C++ library support
12784 ld_shlibs_CXX=no
12785 ;;
12786 aCC*)
12787 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12788 # Commands to make compiler produce verbose output that lists
12789 # what "hidden" libraries, object files and flags are used when
12790 # linking a shared library.
12791 #
12792 # There doesn't appear to be a way to prevent this compiler from
12793 # explicitly linking system object files so we need to strip them
12794 # from the output so that they don't get included in the library
12795 # dependencies.
12796 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"'
12797 ;;
12798 *)
12799 if test "$GXX" = yes; then
12800 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12801 else
12802 # FIXME: insert proper C++ library support
12803 ld_shlibs_CXX=no
12804 fi
12805 ;;
12806 esac
12807 ;;
12808
12809 hpux10*|hpux11*)
12810 if test $with_gnu_ld = no; then
12811 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12812 hardcode_libdir_separator_CXX=:
12813
12814 case $host_cpu in
12815 hppa*64*|ia64*)
12816 ;;
12817 *)
12818 export_dynamic_flag_spec_CXX='${wl}-E'
12819 ;;
12820 esac
12821 fi
12822 case $host_cpu in
12823 hppa*64*|ia64*)
12824 hardcode_direct_CXX=no
12825 hardcode_shlibpath_var_CXX=no
12826 ;;
12827 *)
12828 hardcode_direct_CXX=yes
12829 hardcode_direct_absolute_CXX=yes
12830 hardcode_minus_L_CXX=yes # Not in the search PATH,
12831 # but as the default
12832 # location of the library.
12833 ;;
12834 esac
12835
12836 case $cc_basename in
12837 CC*)
12838 # FIXME: insert proper C++ library support
12839 ld_shlibs_CXX=no
12840 ;;
12841 aCC*)
12842 case $host_cpu in
12843 hppa*64*)
12844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12845 ;;
12846 ia64*)
12847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12848 ;;
12849 *)
12850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12851 ;;
12852 esac
12853 # Commands to make compiler produce verbose output that lists
12854 # what "hidden" libraries, object files and flags are used when
12855 # linking a shared library.
12856 #
12857 # There doesn't appear to be a way to prevent this compiler from
12858 # explicitly linking system object files so we need to strip them
12859 # from the output so that they don't get included in the library
12860 # dependencies.
12861 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"'
12862 ;;
12863 *)
12864 if test "$GXX" = yes; then
12865 if test $with_gnu_ld = no; then
12866 case $host_cpu in
12867 hppa*64*)
12868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12869 ;;
12870 ia64*)
12871 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12872 ;;
12873 *)
12874 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'
12875 ;;
12876 esac
12877 fi
12878 else
12879 # FIXME: insert proper C++ library support
12880 ld_shlibs_CXX=no
12881 fi
12882 ;;
12883 esac
12884 ;;
12885
12886 interix[3-9]*)
12887 hardcode_direct_CXX=no
12888 hardcode_shlibpath_var_CXX=no
12889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12890 export_dynamic_flag_spec_CXX='${wl}-E'
12891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12892 # Instead, shared libraries are loaded at an image base (0x10000000 by
12893 # default) and relocated if they conflict, which is a slow very memory
12894 # consuming and fragmenting process. To avoid this, we pick a random,
12895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12897 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'
12898 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'
12899 ;;
12900 irix5* | irix6*)
12901 case $cc_basename in
12902 CC*)
12903 # SGI C++
12904 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'
12905
12906 # Archives containing C++ object files must be created using
12907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12908 # necessary to make sure instantiated templates are included
12909 # in the archive.
12910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12911 ;;
12912 *)
12913 if test "$GXX" = yes; then
12914 if test "$with_gnu_ld" = no; then
12915 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'
12916 else
12917 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'
12918 fi
12919 fi
12920 link_all_deplibs_CXX=yes
12921 ;;
12922 esac
12923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12924 hardcode_libdir_separator_CXX=:
12925 inherit_rpath_CXX=yes
12926 ;;
12927
12928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12929 case $cc_basename in
12930 KCC*)
12931 # Kuck and Associates, Inc. (KAI) C++ Compiler
12932
12933 # KCC will only create a shared library if the output file
12934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12935 # to its proper name (with version) after linking.
12936 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'
12937 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'
12938 # Commands to make compiler produce verbose output that lists
12939 # what "hidden" libraries, object files and flags are used when
12940 # linking a shared library.
12941 #
12942 # There doesn't appear to be a way to prevent this compiler from
12943 # explicitly linking system object files so we need to strip them
12944 # from the output so that they don't get included in the library
12945 # dependencies.
12946 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"'
12947
12948 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12950
12951 # Archives containing C++ object files must be created using
12952 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12954 ;;
12955 icpc* | ecpc* )
12956 # Intel C++
12957 with_gnu_ld=yes
12958 # version 8.0 and above of icpc choke on multiply defined symbols
12959 # if we add $predep_objects and $postdep_objects, however 7.1 and
12960 # earlier do not add the objects themselves.
12961 case `$CC -V 2>&1` in
12962 *"Version 7."*)
12963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12964 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'
12965 ;;
12966 *) # Version 8.0 or newer
12967 tmp_idyn=
12968 case $host_cpu in
12969 ia64*) tmp_idyn=' -i_dynamic';;
12970 esac
12971 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12972 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'
12973 ;;
12974 esac
12975 archive_cmds_need_lc_CXX=no
12976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12978 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12979 ;;
12980 pgCC* | pgcpp*)
12981 # Portland Group C++ compiler
12982 case `$CC -V` in
12983 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12984 prelink_cmds_CXX='tpldir=Template.dir~
12985 rm -rf $tpldir~
12986 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12987 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12988 old_archive_cmds_CXX='tpldir=Template.dir~
12989 rm -rf $tpldir~
12990 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12991 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12992 $RANLIB $oldlib'
12993 archive_cmds_CXX='tpldir=Template.dir~
12994 rm -rf $tpldir~
12995 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12996 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12997 archive_expsym_cmds_CXX='tpldir=Template.dir~
12998 rm -rf $tpldir~
12999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13000 $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'
13001 ;;
13002 *) # Version 6 and above use weak symbols
13003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13004 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'
13005 ;;
13006 esac
13007
13008 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13010 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'
13011 ;;
13012 cxx*)
13013 # Compaq C++
13014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13015 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'
13016
13017 runpath_var=LD_RUN_PATH
13018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13019 hardcode_libdir_separator_CXX=:
13020
13021 # Commands to make compiler produce verbose output that lists
13022 # what "hidden" libraries, object files and flags are used when
13023 # linking a shared library.
13024 #
13025 # There doesn't appear to be a way to prevent this compiler from
13026 # explicitly linking system object files so we need to strip them
13027 # from the output so that they don't get included in the library
13028 # dependencies.
13029 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'
13030 ;;
13031 xl* | mpixl* | bgxl*)
13032 # IBM XL 8.0 on PPC, with GNU ld
13033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13035 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13036 if test "x$supports_anon_versioning" = xyes; then
13037 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13039 echo "local: *; };" >> $output_objdir/$libname.ver~
13040 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13041 fi
13042 ;;
13043 *)
13044 case `$CC -V 2>&1 | sed 5q` in
13045 *Sun\ C*)
13046 # Sun C++ 5.9
13047 no_undefined_flag_CXX=' -zdefs'
13048 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13049 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'
13050 hardcode_libdir_flag_spec_CXX='-R$libdir'
13051 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'
13052 compiler_needs_object_CXX=yes
13053
13054 # Not sure whether something based on
13055 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13056 # would be better.
13057 output_verbose_link_cmd='func_echo_all'
13058
13059 # Archives containing C++ object files must be created using
13060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13061 # necessary to make sure instantiated templates are included
13062 # in the archive.
13063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13064 ;;
13065 esac
13066 ;;
13067 esac
13068 ;;
13069
13070 lynxos*)
13071 # FIXME: insert proper C++ library support
13072 ld_shlibs_CXX=no
13073 ;;
13074
13075 m88k*)
13076 # FIXME: insert proper C++ library support
13077 ld_shlibs_CXX=no
13078 ;;
13079
13080 mvs*)
13081 case $cc_basename in
13082 cxx*)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086 *)
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 esac
13091 ;;
13092
13093 netbsd*)
13094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13095 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13096 wlarc=
13097 hardcode_libdir_flag_spec_CXX='-R$libdir'
13098 hardcode_direct_CXX=yes
13099 hardcode_shlibpath_var_CXX=no
13100 fi
13101 # Workaround some broken pre-1.5 toolchains
13102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13103 ;;
13104
13105 *nto* | *qnx*)
13106 ld_shlibs_CXX=yes
13107 ;;
13108
13109 openbsd2*)
13110 # C++ shared libraries are fairly broken
13111 ld_shlibs_CXX=no
13112 ;;
13113
13114 openbsd*)
13115 if test -f /usr/libexec/ld.so; then
13116 hardcode_direct_CXX=yes
13117 hardcode_shlibpath_var_CXX=no
13118 hardcode_direct_absolute_CXX=yes
13119 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13122 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13123 export_dynamic_flag_spec_CXX='${wl}-E'
13124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13125 fi
13126 output_verbose_link_cmd=func_echo_all
13127 else
13128 ld_shlibs_CXX=no
13129 fi
13130 ;;
13131
13132 osf3* | osf4* | osf5*)
13133 case $cc_basename in
13134 KCC*)
13135 # Kuck and Associates, Inc. (KAI) C++ Compiler
13136
13137 # KCC will only create a shared library if the output file
13138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13139 # to its proper name (with version) after linking.
13140 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'
13141
13142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13143 hardcode_libdir_separator_CXX=:
13144
13145 # Archives containing C++ object files must be created using
13146 # the KAI C++ compiler.
13147 case $host in
13148 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13149 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13150 esac
13151 ;;
13152 RCC*)
13153 # Rational C++ 2.4.1
13154 # FIXME: insert proper C++ library support
13155 ld_shlibs_CXX=no
13156 ;;
13157 cxx*)
13158 case $host in
13159 osf3*)
13160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13161 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'
13162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13163 ;;
13164 *)
13165 allow_undefined_flag_CXX=' -expect_unresolved \*'
13166 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'
13167 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13168 echo "-hidden">> $lib.exp~
13169 $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~
13170 $RM $lib.exp'
13171 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13172 ;;
13173 esac
13174
13175 hardcode_libdir_separator_CXX=:
13176
13177 # Commands to make compiler produce verbose output that lists
13178 # what "hidden" libraries, object files and flags are used when
13179 # linking a shared library.
13180 #
13181 # There doesn't appear to be a way to prevent this compiler from
13182 # explicitly linking system object files so we need to strip them
13183 # from the output so that they don't get included in the library
13184 # dependencies.
13185 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"'
13186 ;;
13187 *)
13188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13190 case $host in
13191 osf3*)
13192 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'
13193 ;;
13194 *)
13195 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'
13196 ;;
13197 esac
13198
13199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13200 hardcode_libdir_separator_CXX=:
13201
13202 # Commands to make compiler produce verbose output that lists
13203 # what "hidden" libraries, object files and flags are used when
13204 # linking a shared library.
13205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13206
13207 else
13208 # FIXME: insert proper C++ library support
13209 ld_shlibs_CXX=no
13210 fi
13211 ;;
13212 esac
13213 ;;
13214
13215 psos*)
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13218 ;;
13219
13220 sunos4*)
13221 case $cc_basename in
13222 CC*)
13223 # Sun C++ 4.x
13224 # FIXME: insert proper C++ library support
13225 ld_shlibs_CXX=no
13226 ;;
13227 lcc*)
13228 # Lucid
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13231 ;;
13232 *)
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 ;;
13236 esac
13237 ;;
13238
13239 solaris*)
13240 case $cc_basename in
13241 CC* | sunCC*)
13242 # Sun C++ 4.2, 5.x and Centerline C++
13243 archive_cmds_need_lc_CXX=yes
13244 no_undefined_flag_CXX=' -zdefs'
13245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13247 $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'
13248
13249 hardcode_libdir_flag_spec_CXX='-R$libdir'
13250 hardcode_shlibpath_var_CXX=no
13251 case $host_os in
13252 solaris2.[0-5] | solaris2.[0-5].*) ;;
13253 *)
13254 # The compiler driver will combine and reorder linker options,
13255 # but understands `-z linker_flag'.
13256 # Supported since Solaris 2.6 (maybe 2.5.1?)
13257 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13258 ;;
13259 esac
13260 link_all_deplibs_CXX=yes
13261
13262 output_verbose_link_cmd='func_echo_all'
13263
13264 # Archives containing C++ object files must be created using
13265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13266 # necessary to make sure instantiated templates are included
13267 # in the archive.
13268 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13269 ;;
13270 gcx*)
13271 # Green Hills C++ Compiler
13272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13273
13274 # The C++ compiler must be used to create the archive.
13275 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13276 ;;
13277 *)
13278 # GNU C++ compiler with Solaris linker
13279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13280 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13281 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13282 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13283 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13284 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13285
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13290 else
13291 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13292 # platform.
13293 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13294 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13296
13297 # Commands to make compiler produce verbose output that lists
13298 # what "hidden" libraries, object files and flags are used when
13299 # linking a shared library.
13300 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13301 fi
13302
13303 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13304 case $host_os in
13305 solaris2.[0-5] | solaris2.[0-5].*) ;;
13306 *)
13307 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13308 ;;
13309 esac
13310 fi
13311 ;;
13312 esac
13313 ;;
13314
13315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13316 no_undefined_flag_CXX='${wl}-z,text'
13317 archive_cmds_need_lc_CXX=no
13318 hardcode_shlibpath_var_CXX=no
13319 runpath_var='LD_RUN_PATH'
13320
13321 case $cc_basename in
13322 CC*)
13323 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13325 ;;
13326 *)
13327 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 ;;
13330 esac
13331 ;;
13332
13333 sysv5* | sco3.2v5* | sco5v6*)
13334 # Note: We can NOT use -z defs as we might desire, because we do not
13335 # link with -lc, and that would cause any symbols used from libc to
13336 # always be unresolved, which means just about no library would
13337 # ever link correctly. If we're not using GNU ld we use -z text
13338 # though, which does catch some bad symbols but isn't as heavy-handed
13339 # as -z defs.
13340 no_undefined_flag_CXX='${wl}-z,text'
13341 allow_undefined_flag_CXX='${wl}-z,nodefs'
13342 archive_cmds_need_lc_CXX=no
13343 hardcode_shlibpath_var_CXX=no
13344 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13345 hardcode_libdir_separator_CXX=':'
13346 link_all_deplibs_CXX=yes
13347 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13348 runpath_var='LD_RUN_PATH'
13349
13350 case $cc_basename in
13351 CC*)
13352 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13355 '"$old_archive_cmds_CXX"
13356 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13357 '"$reload_cmds_CXX"
13358 ;;
13359 *)
13360 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13361 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13362 ;;
13363 esac
13364 ;;
13365
13366 tandem*)
13367 case $cc_basename in
13368 NCC*)
13369 # NonStop-UX NCC 3.20
13370 # FIXME: insert proper C++ library support
13371 ld_shlibs_CXX=no
13372 ;;
13373 *)
13374 # FIXME: insert proper C++ library support
13375 ld_shlibs_CXX=no
13376 ;;
13377 esac
13378 ;;
13379
13380 vxworks*)
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13383 ;;
13384
13385 *)
13386 # FIXME: insert proper C++ library support
13387 ld_shlibs_CXX=no
13388 ;;
13389 esac
13390
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13392 $as_echo "$ld_shlibs_CXX" >&6; }
13393 test "$ld_shlibs_CXX" = no && can_build_shared=no
13394
13395 GCC_CXX="$GXX"
13396 LD_CXX="$LD"
13397
13398 ## CAVEAT EMPTOR:
13399 ## There is no encapsulation within the following macros, do not change
13400 ## the running order or otherwise move them around unless you know exactly
13401 ## what you are doing...
13402 # Dependencies to place before and after the object being linked:
13403 predep_objects_CXX=
13404 postdep_objects_CXX=
13405 predeps_CXX=
13406 postdeps_CXX=
13407 compiler_lib_search_path_CXX=
13408
13409 cat > conftest.$ac_ext <<_LT_EOF
13410 class Foo
13411 {
13412 public:
13413 Foo (void) { a = 0; }
13414 private:
13415 int a;
13416 };
13417 _LT_EOF
13418
13419
13420 _lt_libdeps_save_CFLAGS=$CFLAGS
13421 case "$CC $CFLAGS " in #(
13422 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13423 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13424 esac
13425
13426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13427 (eval $ac_compile) 2>&5
13428 ac_status=$?
13429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13430 test $ac_status = 0; }; then
13431 # Parse the compiler output and extract the necessary
13432 # objects, libraries and library flags.
13433
13434 # Sentinel used to keep track of whether or not we are before
13435 # the conftest object file.
13436 pre_test_object_deps_done=no
13437
13438 for p in `eval "$output_verbose_link_cmd"`; do
13439 case ${prev}${p} in
13440
13441 -L* | -R* | -l*)
13442 # Some compilers place space between "-{L,R}" and the path.
13443 # Remove the space.
13444 if test $p = "-L" ||
13445 test $p = "-R"; then
13446 prev=$p
13447 continue
13448 fi
13449
13450 # Expand the sysroot to ease extracting the directories later.
13451 if test -z "$prev"; then
13452 case $p in
13453 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13454 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13455 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13456 esac
13457 fi
13458 case $p in
13459 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13460 esac
13461 if test "$pre_test_object_deps_done" = no; then
13462 case ${prev} in
13463 -L | -R)
13464 # Internal compiler library paths should come after those
13465 # provided the user. The postdeps already come after the
13466 # user supplied libs so there is no need to process them.
13467 if test -z "$compiler_lib_search_path_CXX"; then
13468 compiler_lib_search_path_CXX="${prev}${p}"
13469 else
13470 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13471 fi
13472 ;;
13473 # The "-l" case would never come before the object being
13474 # linked, so don't bother handling this case.
13475 esac
13476 else
13477 if test -z "$postdeps_CXX"; then
13478 postdeps_CXX="${prev}${p}"
13479 else
13480 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13481 fi
13482 fi
13483 prev=
13484 ;;
13485
13486 *.lto.$objext) ;; # Ignore GCC LTO objects
13487 *.$objext)
13488 # This assumes that the test object file only shows up
13489 # once in the compiler output.
13490 if test "$p" = "conftest.$objext"; then
13491 pre_test_object_deps_done=yes
13492 continue
13493 fi
13494
13495 if test "$pre_test_object_deps_done" = no; then
13496 if test -z "$predep_objects_CXX"; then
13497 predep_objects_CXX="$p"
13498 else
13499 predep_objects_CXX="$predep_objects_CXX $p"
13500 fi
13501 else
13502 if test -z "$postdep_objects_CXX"; then
13503 postdep_objects_CXX="$p"
13504 else
13505 postdep_objects_CXX="$postdep_objects_CXX $p"
13506 fi
13507 fi
13508 ;;
13509
13510 *) ;; # Ignore the rest.
13511
13512 esac
13513 done
13514
13515 # Clean up.
13516 rm -f a.out a.exe
13517 else
13518 echo "libtool.m4: error: problem compiling CXX test program"
13519 fi
13520
13521 $RM -f confest.$objext
13522 CFLAGS=$_lt_libdeps_save_CFLAGS
13523
13524 # PORTME: override above test on systems where it is broken
13525 case $host_os in
13526 interix[3-9]*)
13527 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13528 # hack all around it, let's just trust "g++" to DTRT.
13529 predep_objects_CXX=
13530 postdep_objects_CXX=
13531 postdeps_CXX=
13532 ;;
13533
13534 linux*)
13535 case `$CC -V 2>&1 | sed 5q` in
13536 *Sun\ C*)
13537 # Sun C++ 5.9
13538
13539 # The more standards-conforming stlport4 library is
13540 # incompatible with the Cstd library. Avoid specifying
13541 # it if it's in CXXFLAGS. Ignore libCrun as
13542 # -library=stlport4 depends on it.
13543 case " $CXX $CXXFLAGS " in
13544 *" -library=stlport4 "*)
13545 solaris_use_stlport4=yes
13546 ;;
13547 esac
13548
13549 if test "$solaris_use_stlport4" != yes; then
13550 postdeps_CXX='-library=Cstd -library=Crun'
13551 fi
13552 ;;
13553 esac
13554 ;;
13555
13556 solaris*)
13557 case $cc_basename in
13558 CC* | sunCC*)
13559 # The more standards-conforming stlport4 library is
13560 # incompatible with the Cstd library. Avoid specifying
13561 # it if it's in CXXFLAGS. Ignore libCrun as
13562 # -library=stlport4 depends on it.
13563 case " $CXX $CXXFLAGS " in
13564 *" -library=stlport4 "*)
13565 solaris_use_stlport4=yes
13566 ;;
13567 esac
13568
13569 # Adding this requires a known-good setup of shared libraries for
13570 # Sun compiler versions before 5.6, else PIC objects from an old
13571 # archive will be linked into the output, leading to subtle bugs.
13572 if test "$solaris_use_stlport4" != yes; then
13573 postdeps_CXX='-library=Cstd -library=Crun'
13574 fi
13575 ;;
13576 esac
13577 ;;
13578 esac
13579
13580
13581 case " $postdeps_CXX " in
13582 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13583 esac
13584 compiler_lib_search_dirs_CXX=
13585 if test -n "${compiler_lib_search_path_CXX}"; then
13586 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13587 fi
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619 lt_prog_compiler_wl_CXX=
13620 lt_prog_compiler_pic_CXX=
13621 lt_prog_compiler_static_CXX=
13622
13623
13624 # C++ specific cases for pic, static, wl, etc.
13625 if test "$GXX" = yes; then
13626 lt_prog_compiler_wl_CXX='-Wl,'
13627 lt_prog_compiler_static_CXX='-static'
13628
13629 case $host_os in
13630 aix*)
13631 # All AIX code is PIC.
13632 if test "$host_cpu" = ia64; then
13633 # AIX 5 now supports IA64 processor
13634 lt_prog_compiler_static_CXX='-Bstatic'
13635 fi
13636 ;;
13637
13638 amigaos*)
13639 case $host_cpu in
13640 powerpc)
13641 # see comment about AmigaOS4 .so support
13642 lt_prog_compiler_pic_CXX='-fPIC'
13643 ;;
13644 m68k)
13645 # FIXME: we need at least 68020 code to build shared libraries, but
13646 # adding the `-m68020' flag to GCC prevents building anything better,
13647 # like `-m68040'.
13648 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13649 ;;
13650 esac
13651 ;;
13652
13653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13654 # PIC is the default for these OSes.
13655 ;;
13656 mingw* | cygwin* | os2* | pw32* | cegcc*)
13657 # This hack is so that the source file can tell whether it is being
13658 # built for inclusion in a dll (and should export symbols for example).
13659 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13660 # (--disable-auto-import) libraries
13661 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13662 ;;
13663 darwin* | rhapsody*)
13664 # PIC is the default on this platform
13665 # Common symbols not allowed in MH_DYLIB files
13666 lt_prog_compiler_pic_CXX='-fno-common'
13667 ;;
13668 *djgpp*)
13669 # DJGPP does not support shared libraries at all
13670 lt_prog_compiler_pic_CXX=
13671 ;;
13672 haiku*)
13673 # PIC is the default for Haiku.
13674 # The "-static" flag exists, but is broken.
13675 lt_prog_compiler_static_CXX=
13676 ;;
13677 interix[3-9]*)
13678 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13679 # Instead, we relocate shared libraries at runtime.
13680 ;;
13681 sysv4*MP*)
13682 if test -d /usr/nec; then
13683 lt_prog_compiler_pic_CXX=-Kconform_pic
13684 fi
13685 ;;
13686 hpux*)
13687 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13688 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13689 # sets the default TLS model and affects inlining.
13690 case $host_cpu in
13691 hppa*64*)
13692 ;;
13693 *)
13694 lt_prog_compiler_pic_CXX='-fPIC'
13695 ;;
13696 esac
13697 ;;
13698 *qnx* | *nto*)
13699 # QNX uses GNU C++, but need to define -shared option too, otherwise
13700 # it will coredump.
13701 lt_prog_compiler_pic_CXX='-fPIC -shared'
13702 ;;
13703 *)
13704 lt_prog_compiler_pic_CXX='-fPIC'
13705 ;;
13706 esac
13707 else
13708 case $host_os in
13709 aix[4-9]*)
13710 # All AIX code is PIC.
13711 if test "$host_cpu" = ia64; then
13712 # AIX 5 now supports IA64 processor
13713 lt_prog_compiler_static_CXX='-Bstatic'
13714 else
13715 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13716 fi
13717 ;;
13718 chorus*)
13719 case $cc_basename in
13720 cxch68*)
13721 # Green Hills C++ Compiler
13722 # _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"
13723 ;;
13724 esac
13725 ;;
13726 mingw* | cygwin* | os2* | pw32* | cegcc*)
13727 # This hack is so that the source file can tell whether it is being
13728 # built for inclusion in a dll (and should export symbols for example).
13729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13730 ;;
13731 dgux*)
13732 case $cc_basename in
13733 ec++*)
13734 lt_prog_compiler_pic_CXX='-KPIC'
13735 ;;
13736 ghcx*)
13737 # Green Hills C++ Compiler
13738 lt_prog_compiler_pic_CXX='-pic'
13739 ;;
13740 *)
13741 ;;
13742 esac
13743 ;;
13744 freebsd* | dragonfly*)
13745 # FreeBSD uses GNU C++
13746 ;;
13747 hpux9* | hpux10* | hpux11*)
13748 case $cc_basename in
13749 CC*)
13750 lt_prog_compiler_wl_CXX='-Wl,'
13751 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13752 if test "$host_cpu" != ia64; then
13753 lt_prog_compiler_pic_CXX='+Z'
13754 fi
13755 ;;
13756 aCC*)
13757 lt_prog_compiler_wl_CXX='-Wl,'
13758 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13759 case $host_cpu in
13760 hppa*64*|ia64*)
13761 # +Z the default
13762 ;;
13763 *)
13764 lt_prog_compiler_pic_CXX='+Z'
13765 ;;
13766 esac
13767 ;;
13768 *)
13769 ;;
13770 esac
13771 ;;
13772 interix*)
13773 # This is c89, which is MS Visual C++ (no shared libs)
13774 # Anyone wants to do a port?
13775 ;;
13776 irix5* | irix6* | nonstopux*)
13777 case $cc_basename in
13778 CC*)
13779 lt_prog_compiler_wl_CXX='-Wl,'
13780 lt_prog_compiler_static_CXX='-non_shared'
13781 # CC pic flag -KPIC is the default.
13782 ;;
13783 *)
13784 ;;
13785 esac
13786 ;;
13787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13788 case $cc_basename in
13789 KCC*)
13790 # KAI C++ Compiler
13791 lt_prog_compiler_wl_CXX='--backend -Wl,'
13792 lt_prog_compiler_pic_CXX='-fPIC'
13793 ;;
13794 ecpc* )
13795 # old Intel C++ for x86_64 which still supported -KPIC.
13796 lt_prog_compiler_wl_CXX='-Wl,'
13797 lt_prog_compiler_pic_CXX='-KPIC'
13798 lt_prog_compiler_static_CXX='-static'
13799 ;;
13800 icpc* )
13801 # Intel C++, used to be incompatible with GCC.
13802 # ICC 10 doesn't accept -KPIC any more.
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 lt_prog_compiler_pic_CXX='-fPIC'
13805 lt_prog_compiler_static_CXX='-static'
13806 ;;
13807 pgCC* | pgcpp*)
13808 # Portland Group C++ compiler
13809 lt_prog_compiler_wl_CXX='-Wl,'
13810 lt_prog_compiler_pic_CXX='-fpic'
13811 lt_prog_compiler_static_CXX='-Bstatic'
13812 ;;
13813 cxx*)
13814 # Compaq C++
13815 # Make sure the PIC flag is empty. It appears that all Alpha
13816 # Linux and Compaq Tru64 Unix objects are PIC.
13817 lt_prog_compiler_pic_CXX=
13818 lt_prog_compiler_static_CXX='-non_shared'
13819 ;;
13820 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13821 # IBM XL 8.0, 9.0 on PPC and BlueGene
13822 lt_prog_compiler_wl_CXX='-Wl,'
13823 lt_prog_compiler_pic_CXX='-qpic'
13824 lt_prog_compiler_static_CXX='-qstaticlink'
13825 ;;
13826 *)
13827 case `$CC -V 2>&1 | sed 5q` in
13828 *Sun\ C*)
13829 # Sun C++ 5.9
13830 lt_prog_compiler_pic_CXX='-KPIC'
13831 lt_prog_compiler_static_CXX='-Bstatic'
13832 lt_prog_compiler_wl_CXX='-Qoption ld '
13833 ;;
13834 esac
13835 ;;
13836 esac
13837 ;;
13838 lynxos*)
13839 ;;
13840 m88k*)
13841 ;;
13842 mvs*)
13843 case $cc_basename in
13844 cxx*)
13845 lt_prog_compiler_pic_CXX='-W c,exportall'
13846 ;;
13847 *)
13848 ;;
13849 esac
13850 ;;
13851 netbsd* | netbsdelf*-gnu)
13852 ;;
13853 *qnx* | *nto*)
13854 # QNX uses GNU C++, but need to define -shared option too, otherwise
13855 # it will coredump.
13856 lt_prog_compiler_pic_CXX='-fPIC -shared'
13857 ;;
13858 osf3* | osf4* | osf5*)
13859 case $cc_basename in
13860 KCC*)
13861 lt_prog_compiler_wl_CXX='--backend -Wl,'
13862 ;;
13863 RCC*)
13864 # Rational C++ 2.4.1
13865 lt_prog_compiler_pic_CXX='-pic'
13866 ;;
13867 cxx*)
13868 # Digital/Compaq C++
13869 lt_prog_compiler_wl_CXX='-Wl,'
13870 # Make sure the PIC flag is empty. It appears that all Alpha
13871 # Linux and Compaq Tru64 Unix objects are PIC.
13872 lt_prog_compiler_pic_CXX=
13873 lt_prog_compiler_static_CXX='-non_shared'
13874 ;;
13875 *)
13876 ;;
13877 esac
13878 ;;
13879 psos*)
13880 ;;
13881 solaris*)
13882 case $cc_basename in
13883 CC* | sunCC*)
13884 # Sun C++ 4.2, 5.x and Centerline C++
13885 lt_prog_compiler_pic_CXX='-KPIC'
13886 lt_prog_compiler_static_CXX='-Bstatic'
13887 lt_prog_compiler_wl_CXX='-Qoption ld '
13888 ;;
13889 gcx*)
13890 # Green Hills C++ Compiler
13891 lt_prog_compiler_pic_CXX='-PIC'
13892 ;;
13893 *)
13894 ;;
13895 esac
13896 ;;
13897 sunos4*)
13898 case $cc_basename in
13899 CC*)
13900 # Sun C++ 4.x
13901 lt_prog_compiler_pic_CXX='-pic'
13902 lt_prog_compiler_static_CXX='-Bstatic'
13903 ;;
13904 lcc*)
13905 # Lucid
13906 lt_prog_compiler_pic_CXX='-pic'
13907 ;;
13908 *)
13909 ;;
13910 esac
13911 ;;
13912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13913 case $cc_basename in
13914 CC*)
13915 lt_prog_compiler_wl_CXX='-Wl,'
13916 lt_prog_compiler_pic_CXX='-KPIC'
13917 lt_prog_compiler_static_CXX='-Bstatic'
13918 ;;
13919 esac
13920 ;;
13921 tandem*)
13922 case $cc_basename in
13923 NCC*)
13924 # NonStop-UX NCC 3.20
13925 lt_prog_compiler_pic_CXX='-KPIC'
13926 ;;
13927 *)
13928 ;;
13929 esac
13930 ;;
13931 vxworks*)
13932 ;;
13933 *)
13934 lt_prog_compiler_can_build_shared_CXX=no
13935 ;;
13936 esac
13937 fi
13938
13939 case $host_os in
13940 # For platforms which do not support PIC, -DPIC is meaningless:
13941 *djgpp*)
13942 lt_prog_compiler_pic_CXX=
13943 ;;
13944 *)
13945 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13946 ;;
13947 esac
13948
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13951 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13955 fi
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13957 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13958 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13959
13960 #
13961 # Check to make sure the PIC flag actually works.
13962 #
13963 if test -n "$lt_prog_compiler_pic_CXX"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13965 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13966 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 lt_cv_prog_compiler_pic_works_CXX=no
13970 ac_outfile=conftest.$ac_objext
13971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13972 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13973 # Insert the option either (1) after the last *FLAGS variable, or
13974 # (2) before a word containing "conftest.", or (3) at the end.
13975 # Note that $ac_compile itself does not contain backslashes and begins
13976 # with a dollar sign (not a hyphen), so the echo should work correctly.
13977 # The option is referenced via a variable to avoid confusing sed.
13978 lt_compile=`echo "$ac_compile" | $SED \
13979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13981 -e 's:$: $lt_compiler_flag:'`
13982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13983 (eval "$lt_compile" 2>conftest.err)
13984 ac_status=$?
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 if (exit $ac_status) && test -s "$ac_outfile"; then
13988 # The compiler can only warn and ignore the option if not recognized
13989 # So say no if there are warnings other than the usual output.
13990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13993 lt_cv_prog_compiler_pic_works_CXX=yes
13994 fi
13995 fi
13996 $RM conftest*
13997
13998 fi
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14000 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14001
14002 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14003 case $lt_prog_compiler_pic_CXX in
14004 "" | " "*) ;;
14005 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14006 esac
14007 else
14008 lt_prog_compiler_pic_CXX=
14009 lt_prog_compiler_can_build_shared_CXX=no
14010 fi
14011
14012 fi
14013
14014
14015
14016
14017
14018 #
14019 # Check to make sure the static flag actually works.
14020 #
14021 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14024 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 lt_cv_prog_compiler_static_works_CXX=no
14028 save_LDFLAGS="$LDFLAGS"
14029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14032 # The linker can only warn and ignore the option if not recognized
14033 # So say no if there are warnings
14034 if test -s conftest.err; then
14035 # Append any errors to the config.log.
14036 cat conftest.err 1>&5
14037 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14039 if diff conftest.exp conftest.er2 >/dev/null; then
14040 lt_cv_prog_compiler_static_works_CXX=yes
14041 fi
14042 else
14043 lt_cv_prog_compiler_static_works_CXX=yes
14044 fi
14045 fi
14046 $RM -r conftest*
14047 LDFLAGS="$save_LDFLAGS"
14048
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14051 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14052
14053 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14054 :
14055 else
14056 lt_prog_compiler_static_CXX=
14057 fi
14058
14059
14060
14061
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14064 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 lt_cv_prog_compiler_c_o_CXX=no
14068 $RM -r conftest 2>/dev/null
14069 mkdir conftest
14070 cd conftest
14071 mkdir out
14072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14073
14074 lt_compiler_flag="-o out/conftest2.$ac_objext"
14075 # Insert the option either (1) after the last *FLAGS variable, or
14076 # (2) before a word containing "conftest.", or (3) at the end.
14077 # Note that $ac_compile itself does not contain backslashes and begins
14078 # with a dollar sign (not a hyphen), so the echo should work correctly.
14079 lt_compile=`echo "$ac_compile" | $SED \
14080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14082 -e 's:$: $lt_compiler_flag:'`
14083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14084 (eval "$lt_compile" 2>out/conftest.err)
14085 ac_status=$?
14086 cat out/conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14089 then
14090 # The compiler can only warn and ignore the option if not recognized
14091 # So say no if there are warnings
14092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14095 lt_cv_prog_compiler_c_o_CXX=yes
14096 fi
14097 fi
14098 chmod u+w . 2>&5
14099 $RM conftest*
14100 # SGI C++ compiler will create directory out/ii_files/ for
14101 # template instantiation
14102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14103 $RM out/* && rmdir out
14104 cd ..
14105 $RM -r conftest
14106 $RM conftest*
14107
14108 fi
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14110 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14111
14112
14113
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14116 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14117 $as_echo_n "(cached) " >&6
14118 else
14119 lt_cv_prog_compiler_c_o_CXX=no
14120 $RM -r conftest 2>/dev/null
14121 mkdir conftest
14122 cd conftest
14123 mkdir out
14124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14125
14126 lt_compiler_flag="-o out/conftest2.$ac_objext"
14127 # Insert the option either (1) after the last *FLAGS variable, or
14128 # (2) before a word containing "conftest.", or (3) at the end.
14129 # Note that $ac_compile itself does not contain backslashes and begins
14130 # with a dollar sign (not a hyphen), so the echo should work correctly.
14131 lt_compile=`echo "$ac_compile" | $SED \
14132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14134 -e 's:$: $lt_compiler_flag:'`
14135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14136 (eval "$lt_compile" 2>out/conftest.err)
14137 ac_status=$?
14138 cat out/conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14141 then
14142 # The compiler can only warn and ignore the option if not recognized
14143 # So say no if there are warnings
14144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14147 lt_cv_prog_compiler_c_o_CXX=yes
14148 fi
14149 fi
14150 chmod u+w . 2>&5
14151 $RM conftest*
14152 # SGI C++ compiler will create directory out/ii_files/ for
14153 # template instantiation
14154 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14155 $RM out/* && rmdir out
14156 cd ..
14157 $RM -r conftest
14158 $RM conftest*
14159
14160 fi
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14162 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14163
14164
14165
14166
14167 hard_links="nottested"
14168 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14169 # do not overwrite the value of need_locks provided by the user
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14171 $as_echo_n "checking if we can lock with hard links... " >&6; }
14172 hard_links=yes
14173 $RM conftest*
14174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175 touch conftest.a
14176 ln conftest.a conftest.b 2>&5 || hard_links=no
14177 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14179 $as_echo "$hard_links" >&6; }
14180 if test "$hard_links" = no; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14182 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14183 need_locks=warn
14184 fi
14185 else
14186 need_locks=no
14187 fi
14188
14189
14190
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14192 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14193
14194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14195 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14196 case $host_os in
14197 aix[4-9]*)
14198 # If we're using GNU nm, then we don't want the "-C" option.
14199 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14200 # Also, AIX nm treats weak defined symbols like other global defined
14201 # symbols, whereas GNU nm marks them as "W".
14202 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14203 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14204 else
14205 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14206 fi
14207 ;;
14208 pw32*)
14209 export_symbols_cmds_CXX="$ltdll_cmds"
14210 ;;
14211 cygwin* | mingw* | cegcc*)
14212 case $cc_basename in
14213 cl*) ;;
14214 *)
14215 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'
14216 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14217 ;;
14218 esac
14219 ;;
14220 linux* | k*bsd*-gnu | gnu*)
14221 link_all_deplibs_CXX=no
14222 ;;
14223 *)
14224 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14225 ;;
14226 esac
14227
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14229 $as_echo "$ld_shlibs_CXX" >&6; }
14230 test "$ld_shlibs_CXX" = no && can_build_shared=no
14231
14232 with_gnu_ld_CXX=$with_gnu_ld
14233
14234
14235
14236
14237
14238
14239 #
14240 # Do we need to explicitly link libc?
14241 #
14242 case "x$archive_cmds_need_lc_CXX" in
14243 x|xyes)
14244 # Assume -lc should be added
14245 archive_cmds_need_lc_CXX=yes
14246
14247 if test "$enable_shared" = yes && test "$GCC" = yes; then
14248 case $archive_cmds_CXX in
14249 *'~'*)
14250 # FIXME: we may have to deal with multi-command sequences.
14251 ;;
14252 '$CC '*)
14253 # Test whether the compiler implicitly links with -lc since on some
14254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14255 # to ld, don't add -lc before -lgcc.
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14257 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14258 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 $RM conftest*
14262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14263
14264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14265 (eval $ac_compile) 2>&5
14266 ac_status=$?
14267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14268 test $ac_status = 0; } 2>conftest.err; then
14269 soname=conftest
14270 lib=conftest
14271 libobjs=conftest.$ac_objext
14272 deplibs=
14273 wl=$lt_prog_compiler_wl_CXX
14274 pic_flag=$lt_prog_compiler_pic_CXX
14275 compiler_flags=-v
14276 linker_flags=-v
14277 verstring=
14278 output_objdir=.
14279 libname=conftest
14280 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14281 allow_undefined_flag_CXX=
14282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14283 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14284 ac_status=$?
14285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286 test $ac_status = 0; }
14287 then
14288 lt_cv_archive_cmds_need_lc_CXX=no
14289 else
14290 lt_cv_archive_cmds_need_lc_CXX=yes
14291 fi
14292 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14293 else
14294 cat conftest.err 1>&5
14295 fi
14296 $RM conftest*
14297
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14300 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14301 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14302 ;;
14303 esac
14304 fi
14305 ;;
14306 esac
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14372 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14373
14374 library_names_spec=
14375 libname_spec='lib$name'
14376 soname_spec=
14377 shrext_cmds=".so"
14378 postinstall_cmds=
14379 postuninstall_cmds=
14380 finish_cmds=
14381 finish_eval=
14382 shlibpath_var=
14383 shlibpath_overrides_runpath=unknown
14384 version_type=none
14385 dynamic_linker="$host_os ld.so"
14386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14387 need_lib_prefix=unknown
14388 hardcode_into_libs=no
14389
14390 # when you set need_version to no, make sure it does not cause -set_version
14391 # flags to be left without arguments
14392 need_version=unknown
14393
14394 case $host_os in
14395 aix3*)
14396 version_type=linux
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14398 shlibpath_var=LIBPATH
14399
14400 # AIX 3 has no versioning support, so we append a major version to the name.
14401 soname_spec='${libname}${release}${shared_ext}$major'
14402 ;;
14403
14404 aix[4-9]*)
14405 version_type=linux
14406 need_lib_prefix=no
14407 need_version=no
14408 hardcode_into_libs=yes
14409 if test "$host_cpu" = ia64; then
14410 # AIX 5 supports IA64
14411 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 else
14414 # With GCC up to 2.95.x, collect2 would create an import file
14415 # for dependence libraries. The import file would start with
14416 # the line `#! .'. This would cause the generated library to
14417 # depend on `.', always an invalid library. This was fixed in
14418 # development snapshots of GCC prior to 3.0.
14419 case $host_os in
14420 aix4 | aix4.[01] | aix4.[01].*)
14421 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14422 echo ' yes '
14423 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14424 :
14425 else
14426 can_build_shared=no
14427 fi
14428 ;;
14429 esac
14430 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14431 # soname into executable. Probably we can add versioning support to
14432 # collect2, so additional links can be useful in future.
14433 if test "$aix_use_runtimelinking" = yes; then
14434 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14435 # instead of lib<name>.a to let people know that these are not
14436 # typical AIX shared libraries.
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 else
14439 # We preserve .a as extension for shared libraries through AIX4.2
14440 # and later when we are not doing run time linking.
14441 library_names_spec='${libname}${release}.a $libname.a'
14442 soname_spec='${libname}${release}${shared_ext}$major'
14443 fi
14444 shlibpath_var=LIBPATH
14445 fi
14446 ;;
14447
14448 amigaos*)
14449 case $host_cpu in
14450 powerpc)
14451 # Since July 2007 AmigaOS4 officially supports .so libraries.
14452 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 ;;
14455 m68k)
14456 library_names_spec='$libname.ixlibrary $libname.a'
14457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14458 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14459 ;;
14460 esac
14461 ;;
14462
14463 beos*)
14464 library_names_spec='${libname}${shared_ext}'
14465 dynamic_linker="$host_os ld.so"
14466 shlibpath_var=LIBRARY_PATH
14467 ;;
14468
14469 bsdi[45]*)
14470 version_type=linux
14471 need_version=no
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14477 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14478 # the default ld.so.conf also contains /usr/contrib/lib and
14479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14480 # libtool to hard-code these into programs
14481 ;;
14482
14483 cygwin* | mingw* | pw32* | cegcc*)
14484 version_type=windows
14485 shrext_cmds=".dll"
14486 need_version=no
14487 need_lib_prefix=no
14488
14489 case $GCC,$cc_basename in
14490 yes,*)
14491 # gcc
14492 library_names_spec='$libname.dll.a'
14493 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14494 postinstall_cmds='base_file=`basename \${file}`~
14495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14496 dldir=$destdir/`dirname \$dlpath`~
14497 test -d \$dldir || mkdir -p \$dldir~
14498 $install_prog $dir/$dlname \$dldir/$dlname~
14499 chmod a+x \$dldir/$dlname~
14500 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14501 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14502 fi'
14503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14504 dlpath=$dir/\$dldll~
14505 $RM \$dlpath'
14506 shlibpath_overrides_runpath=yes
14507
14508 case $host_os in
14509 cygwin*)
14510 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14511 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14512
14513 ;;
14514 mingw* | cegcc*)
14515 # MinGW DLLs use traditional 'lib' prefix
14516 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14517 ;;
14518 pw32*)
14519 # pw32 DLLs use 'pw' prefix rather than 'lib'
14520 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14521 ;;
14522 esac
14523 dynamic_linker='Win32 ld.exe'
14524 ;;
14525
14526 *,cl*)
14527 # Native MSVC
14528 libname_spec='$name'
14529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14530 library_names_spec='${libname}.dll.lib'
14531
14532 case $build_os in
14533 mingw*)
14534 sys_lib_search_path_spec=
14535 lt_save_ifs=$IFS
14536 IFS=';'
14537 for lt_path in $LIB
14538 do
14539 IFS=$lt_save_ifs
14540 # Let DOS variable expansion print the short 8.3 style file name.
14541 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14542 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14543 done
14544 IFS=$lt_save_ifs
14545 # Convert to MSYS style.
14546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14547 ;;
14548 cygwin*)
14549 # Convert to unix form, then to dos form, then back to unix form
14550 # but this time dos style (no spaces!) so that the unix form looks
14551 # like /cygdrive/c/PROGRA~1:/cygdr...
14552 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14553 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14554 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14555 ;;
14556 *)
14557 sys_lib_search_path_spec="$LIB"
14558 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14559 # It is most probably a Windows format PATH.
14560 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14561 else
14562 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14563 fi
14564 # FIXME: find the short name or the path components, as spaces are
14565 # common. (e.g. "Program Files" -> "PROGRA~1")
14566 ;;
14567 esac
14568
14569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14570 postinstall_cmds='base_file=`basename \${file}`~
14571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14572 dldir=$destdir/`dirname \$dlpath`~
14573 test -d \$dldir || mkdir -p \$dldir~
14574 $install_prog $dir/$dlname \$dldir/$dlname'
14575 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14576 dlpath=$dir/\$dldll~
14577 $RM \$dlpath'
14578 shlibpath_overrides_runpath=yes
14579 dynamic_linker='Win32 link.exe'
14580 ;;
14581
14582 *)
14583 # Assume MSVC wrapper
14584 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14585 dynamic_linker='Win32 ld.exe'
14586 ;;
14587 esac
14588 # FIXME: first we should search . and the directory the executable is in
14589 shlibpath_var=PATH
14590 ;;
14591
14592 darwin* | rhapsody*)
14593 dynamic_linker="$host_os dyld"
14594 version_type=darwin
14595 need_lib_prefix=no
14596 need_version=no
14597 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14598 soname_spec='${libname}${release}${major}$shared_ext'
14599 shlibpath_overrides_runpath=yes
14600 shlibpath_var=DYLD_LIBRARY_PATH
14601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14602
14603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14604 ;;
14605
14606 dgux*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 shlibpath_var=LD_LIBRARY_PATH
14613 ;;
14614
14615 freebsd1*)
14616 dynamic_linker=no
14617 ;;
14618
14619 freebsd* | dragonfly*)
14620 # DragonFly does not have aout. When/if they implement a new
14621 # versioning mechanism, adjust this.
14622 if test -x /usr/bin/objformat; then
14623 objformat=`/usr/bin/objformat`
14624 else
14625 case $host_os in
14626 freebsd[123]*) objformat=aout ;;
14627 *) objformat=elf ;;
14628 esac
14629 fi
14630 version_type=freebsd-$objformat
14631 case $version_type in
14632 freebsd-elf*)
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14634 need_version=no
14635 need_lib_prefix=no
14636 ;;
14637 freebsd-*)
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14639 need_version=yes
14640 ;;
14641 esac
14642 shlibpath_var=LD_LIBRARY_PATH
14643 case $host_os in
14644 freebsd2*)
14645 shlibpath_overrides_runpath=yes
14646 ;;
14647 freebsd3.[01]* | freebsdelf3.[01]*)
14648 shlibpath_overrides_runpath=yes
14649 hardcode_into_libs=yes
14650 ;;
14651 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14652 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14653 shlibpath_overrides_runpath=no
14654 hardcode_into_libs=yes
14655 ;;
14656 *) # from 4.6 on, and DragonFly
14657 shlibpath_overrides_runpath=yes
14658 hardcode_into_libs=yes
14659 ;;
14660 esac
14661 ;;
14662
14663 gnu*)
14664 version_type=linux
14665 need_lib_prefix=no
14666 need_version=no
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=no
14671 hardcode_into_libs=yes
14672 ;;
14673
14674 haiku*)
14675 version_type=linux
14676 need_lib_prefix=no
14677 need_version=no
14678 dynamic_linker="$host_os runtime_loader"
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14684 hardcode_into_libs=yes
14685 ;;
14686
14687 hpux9* | hpux10* | hpux11*)
14688 # Give a soname corresponding to the major version so that dld.sl refuses to
14689 # link against other versions.
14690 version_type=sunos
14691 need_lib_prefix=no
14692 need_version=no
14693 case $host_cpu in
14694 ia64*)
14695 shrext_cmds='.so'
14696 hardcode_into_libs=yes
14697 dynamic_linker="$host_os dld.so"
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 if test "X$HPUX_IA64_MODE" = X32; then
14703 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14704 else
14705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14706 fi
14707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14708 ;;
14709 hppa*64*)
14710 shrext_cmds='.sl'
14711 hardcode_into_libs=yes
14712 dynamic_linker="$host_os dld.sl"
14713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14719 ;;
14720 *)
14721 shrext_cmds='.sl'
14722 dynamic_linker="$host_os dld.sl"
14723 shlibpath_var=SHLIB_PATH
14724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 ;;
14728 esac
14729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14730 postinstall_cmds='chmod 555 $lib'
14731 # or fails outright, so override atomically:
14732 install_override_mode=555
14733 ;;
14734
14735 interix[3-9]*)
14736 version_type=linux
14737 need_lib_prefix=no
14738 need_version=no
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14740 soname_spec='${libname}${release}${shared_ext}$major'
14741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 shlibpath_overrides_runpath=no
14744 hardcode_into_libs=yes
14745 ;;
14746
14747 irix5* | irix6* | nonstopux*)
14748 case $host_os in
14749 nonstopux*) version_type=nonstopux ;;
14750 *)
14751 if test "$lt_cv_prog_gnu_ld" = yes; then
14752 version_type=linux
14753 else
14754 version_type=irix
14755 fi ;;
14756 esac
14757 need_lib_prefix=no
14758 need_version=no
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14761 case $host_os in
14762 irix5* | nonstopux*)
14763 libsuff= shlibsuff=
14764 ;;
14765 *)
14766 case $LD in # libtool.m4 will add one of these switches to LD
14767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14768 libsuff= shlibsuff= libmagic=32-bit;;
14769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14770 libsuff=32 shlibsuff=N32 libmagic=N32;;
14771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14773 *) libsuff= shlibsuff= libmagic=never-match;;
14774 esac
14775 ;;
14776 esac
14777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14778 shlibpath_overrides_runpath=no
14779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14781 hardcode_into_libs=yes
14782 ;;
14783
14784 # No shared lib support for Linux oldld, aout, or coff.
14785 linux*oldld* | linux*aout* | linux*coff*)
14786 dynamic_linker=no
14787 ;;
14788
14789 # This must be Linux ELF.
14790 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14791 version_type=linux
14792 need_lib_prefix=no
14793 need_version=no
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795 soname_spec='${libname}${release}${shared_ext}$major'
14796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 shlibpath_overrides_runpath=no
14799
14800 # Some binutils ld are patched to set DT_RUNPATH
14801 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14802 $as_echo_n "(cached) " >&6
14803 else
14804 lt_cv_shlibpath_overrides_runpath=no
14805 save_LDFLAGS=$LDFLAGS
14806 save_libdir=$libdir
14807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811
14812 int
14813 main ()
14814 {
14815
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_cxx_try_link "$LINENO"; then :
14821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14822 lt_cv_shlibpath_overrides_runpath=yes
14823 fi
14824 fi
14825 rm -f core conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14827 LDFLAGS=$save_LDFLAGS
14828 libdir=$save_libdir
14829
14830 fi
14831
14832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14833
14834 # This implies no fast_install, which is unacceptable.
14835 # Some rework will be needed to allow for fast_install
14836 # before this can be enabled.
14837 hardcode_into_libs=yes
14838
14839 # Append ld.so.conf contents to the search path
14840 if test -f /etc/ld.so.conf; then
14841 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' ' '`
14842 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14843 fi
14844
14845 # We used to test for /lib/ld.so.1 and disable shared libraries on
14846 # powerpc, because MkLinux only supported shared libraries with the
14847 # GNU dynamic linker. Since this was broken with cross compilers,
14848 # most powerpc-linux boxes support dynamic linking these days and
14849 # people can always --disable-shared, the test was removed, and we
14850 # assume the GNU/Linux dynamic linker is in use.
14851 dynamic_linker='GNU/Linux ld.so'
14852 ;;
14853
14854 netbsdelf*-gnu)
14855 version_type=linux
14856 need_lib_prefix=no
14857 need_version=no
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14859 soname_spec='${libname}${release}${shared_ext}$major'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=no
14862 hardcode_into_libs=yes
14863 dynamic_linker='NetBSD ld.elf_so'
14864 ;;
14865
14866 netbsd*)
14867 version_type=sunos
14868 need_lib_prefix=no
14869 need_version=no
14870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14873 dynamic_linker='NetBSD (a.out) ld.so'
14874 else
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 dynamic_linker='NetBSD ld.elf_so'
14878 fi
14879 shlibpath_var=LD_LIBRARY_PATH
14880 shlibpath_overrides_runpath=yes
14881 hardcode_into_libs=yes
14882 ;;
14883
14884 newsos6)
14885 version_type=linux
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 shlibpath_overrides_runpath=yes
14889 ;;
14890
14891 *nto* | *qnx*)
14892 version_type=qnx
14893 need_lib_prefix=no
14894 need_version=no
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=no
14899 hardcode_into_libs=yes
14900 dynamic_linker='ldqnx.so'
14901 ;;
14902
14903 openbsd*)
14904 version_type=sunos
14905 sys_lib_dlsearch_path_spec="/usr/lib"
14906 need_lib_prefix=no
14907 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14908 case $host_os in
14909 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14910 *) need_version=no ;;
14911 esac
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14914 shlibpath_var=LD_LIBRARY_PATH
14915 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14916 case $host_os in
14917 openbsd2.[89] | openbsd2.[89].*)
14918 shlibpath_overrides_runpath=no
14919 ;;
14920 *)
14921 shlibpath_overrides_runpath=yes
14922 ;;
14923 esac
14924 else
14925 shlibpath_overrides_runpath=yes
14926 fi
14927 ;;
14928
14929 os2*)
14930 libname_spec='$name'
14931 shrext_cmds=".dll"
14932 need_lib_prefix=no
14933 library_names_spec='$libname${shared_ext} $libname.a'
14934 dynamic_linker='OS/2 ld.exe'
14935 shlibpath_var=LIBPATH
14936 ;;
14937
14938 osf3* | osf4* | osf5*)
14939 version_type=osf
14940 need_lib_prefix=no
14941 need_version=no
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14946 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14947 ;;
14948
14949 rdos*)
14950 dynamic_linker=no
14951 ;;
14952
14953 solaris*)
14954 version_type=linux
14955 need_lib_prefix=no
14956 need_version=no
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 shlibpath_overrides_runpath=yes
14961 hardcode_into_libs=yes
14962 # ldd complains unless libraries are executable
14963 postinstall_cmds='chmod +x $lib'
14964 ;;
14965
14966 sunos4*)
14967 version_type=sunos
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 shlibpath_overrides_runpath=yes
14972 if test "$with_gnu_ld" = yes; then
14973 need_lib_prefix=no
14974 fi
14975 need_version=yes
14976 ;;
14977
14978 sysv4 | sysv4.3*)
14979 version_type=linux
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 case $host_vendor in
14984 sni)
14985 shlibpath_overrides_runpath=no
14986 need_lib_prefix=no
14987 runpath_var=LD_RUN_PATH
14988 ;;
14989 siemens)
14990 need_lib_prefix=no
14991 ;;
14992 motorola)
14993 need_lib_prefix=no
14994 need_version=no
14995 shlibpath_overrides_runpath=no
14996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14997 ;;
14998 esac
14999 ;;
15000
15001 sysv4*MP*)
15002 if test -d /usr/nec ;then
15003 version_type=linux
15004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15005 soname_spec='$libname${shared_ext}.$major'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 fi
15008 ;;
15009
15010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15011 version_type=freebsd-elf
15012 need_lib_prefix=no
15013 need_version=no
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=yes
15018 hardcode_into_libs=yes
15019 if test "$with_gnu_ld" = yes; then
15020 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15021 else
15022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15023 case $host_os in
15024 sco3.2v5*)
15025 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15026 ;;
15027 esac
15028 fi
15029 sys_lib_dlsearch_path_spec='/usr/lib'
15030 ;;
15031
15032 tpf*)
15033 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15034 version_type=linux
15035 need_lib_prefix=no
15036 need_version=no
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=no
15040 hardcode_into_libs=yes
15041 ;;
15042
15043 uts4*)
15044 version_type=linux
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 ;;
15049
15050 *)
15051 dynamic_linker=no
15052 ;;
15053 esac
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15055 $as_echo "$dynamic_linker" >&6; }
15056 test "$dynamic_linker" = no && can_build_shared=no
15057
15058 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15059 if test "$GCC" = yes; then
15060 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15061 fi
15062
15063 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15064 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15065 fi
15066 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15067 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15068 fi
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15109 hardcode_action_CXX=
15110 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15111 test -n "$runpath_var_CXX" ||
15112 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15113
15114 # We can hardcode non-existent directories.
15115 if test "$hardcode_direct_CXX" != no &&
15116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15117 # have to relink, otherwise we might link with an installed library
15118 # when we should be linking with a yet-to-be-installed one
15119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15120 test "$hardcode_minus_L_CXX" != no; then
15121 # Linking always hardcodes the temporary library directory.
15122 hardcode_action_CXX=relink
15123 else
15124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15125 hardcode_action_CXX=immediate
15126 fi
15127 else
15128 # We cannot hardcode anything, or else we can only hardcode existing
15129 # directories.
15130 hardcode_action_CXX=unsupported
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15133 $as_echo "$hardcode_action_CXX" >&6; }
15134
15135 if test "$hardcode_action_CXX" = relink ||
15136 test "$inherit_rpath_CXX" = yes; then
15137 # Fast installation is not supported
15138 enable_fast_install=no
15139 elif test "$shlibpath_overrides_runpath" = yes ||
15140 test "$enable_shared" = no; then
15141 # Fast installation is not necessary
15142 enable_fast_install=needless
15143 fi
15144
15145
15146
15147
15148
15149
15150
15151 fi # test -n "$compiler"
15152
15153 CC=$lt_save_CC
15154 CFLAGS=$lt_save_CFLAGS
15155 LDCXX=$LD
15156 LD=$lt_save_LD
15157 GCC=$lt_save_GCC
15158 with_gnu_ld=$lt_save_with_gnu_ld
15159 lt_cv_path_LDCXX=$lt_cv_path_LD
15160 lt_cv_path_LD=$lt_save_path_LD
15161 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15162 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15163 fi # test "$_lt_caught_CXX_error" != yes
15164
15165 ac_ext=c
15166 ac_cpp='$CPP $CPPFLAGS'
15167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183 ac_config_commands="$ac_config_commands libtool"
15184
15185
15186
15187
15188 # Only expand once:
15189
15190
15191
15192 # Transfer these variables to the Makefile
15193
15194
15195
15196
15197
15198 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile bin/Makefile doc/Makefile portaudiocpp.pc"
15199
15200 cat >confcache <<\_ACEOF
15201 # This file is a shell script that caches the results of configure
15202 # tests run on this system so they can be shared between configure
15203 # scripts and configure runs, see configure's option --config-cache.
15204 # It is not useful on other systems. If it contains results you don't
15205 # want to keep, you may remove or edit it.
15206 #
15207 # config.status only pays attention to the cache file if you give it
15208 # the --recheck option to rerun configure.
15209 #
15210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15212 # following values.
15213
15214 _ACEOF
15215
15216 # The following way of writing the cache mishandles newlines in values,
15217 # but we know of no workaround that is simple, portable, and efficient.
15218 # So, we kill variables containing newlines.
15219 # Ultrix sh set writes to stderr and can't be redirected directly,
15220 # and sets the high bit in the cache file unless we assign to the vars.
15221 (
15222 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15223 eval ac_val=\$$ac_var
15224 case $ac_val in #(
15225 *${as_nl}*)
15226 case $ac_var in #(
15227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15229 esac
15230 case $ac_var in #(
15231 _ | IFS | as_nl) ;; #(
15232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15233 *) { eval $ac_var=; unset $ac_var;} ;;
15234 esac ;;
15235 esac
15236 done
15237
15238 (set) 2>&1 |
15239 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15240 *${as_nl}ac_space=\ *)
15241 # `set' does not quote correctly, so add quotes: double-quote
15242 # substitution turns \\\\ into \\, and sed turns \\ into \.
15243 sed -n \
15244 "s/'/'\\\\''/g;
15245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15246 ;; #(
15247 *)
15248 # `set' quotes correctly as required by POSIX, so do not add quotes.
15249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15250 ;;
15251 esac |
15252 sort
15253 ) |
15254 sed '
15255 /^ac_cv_env_/b end
15256 t clear
15257 :clear
15258 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15259 t end
15260 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15261 :end' >>confcache
15262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15263 if test -w "$cache_file"; then
15264 if test "x$cache_file" != "x/dev/null"; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15266 $as_echo "$as_me: updating cache $cache_file" >&6;}
15267 if test ! -f "$cache_file" || test -h "$cache_file"; then
15268 cat confcache >"$cache_file"
15269 else
15270 case $cache_file in #(
15271 */* | ?:*)
15272 mv -f confcache "$cache_file"$$ &&
15273 mv -f "$cache_file"$$ "$cache_file" ;; #(
15274 *)
15275 mv -f confcache "$cache_file" ;;
15276 esac
15277 fi
15278 fi
15279 else
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15282 fi
15283 fi
15284 rm -f confcache
15285
15286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15287 # Let make expand exec_prefix.
15288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15289
15290 # Transform confdefs.h into DEFS.
15291 # Protect against shell expansion while executing Makefile rules.
15292 # Protect against Makefile macro expansion.
15293 #
15294 # If the first sed substitution is executed (which looks for macros that
15295 # take arguments), then branch to the quote section. Otherwise,
15296 # look for a macro that doesn't take arguments.
15297 ac_script='
15298 :mline
15299 /\\$/{
15300 N
15301 s,\\\n,,
15302 b mline
15303 }
15304 t clear
15305 :clear
15306 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15307 t quote
15308 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15309 t quote
15310 b any
15311 :quote
15312 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15313 s/\[/\\&/g
15314 s/\]/\\&/g
15315 s/\$/$$/g
15316 H
15317 :any
15318 ${
15319 g
15320 s/^\n//
15321 s/\n/ /g
15322 p
15323 }
15324 '
15325 DEFS=`sed -n "$ac_script" confdefs.h`
15326
15327
15328 ac_libobjs=
15329 ac_ltlibobjs=
15330 U=
15331 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15332 # 1. Remove the extension, and $U if already installed.
15333 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15334 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15335 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15336 # will be set to the directory where LIBOBJS objects are built.
15337 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15338 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15339 done
15340 LIBOBJS=$ac_libobjs
15341
15342 LTLIBOBJS=$ac_ltlibobjs
15343
15344
15345 if test -n "$EXEEXT"; then
15346 am__EXEEXT_TRUE=
15347 am__EXEEXT_FALSE='#'
15348 else
15349 am__EXEEXT_TRUE='#'
15350 am__EXEEXT_FALSE=
15351 fi
15352
15353 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15354 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15356 fi
15357 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15358 as_fn_error $? "conditional \"AMDEP\" was never defined.
15359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15360 fi
15361 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15362 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15364 fi
15365 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15366 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15368 fi
15369
15370 : "${CONFIG_STATUS=./config.status}"
15371 ac_write_fail=0
15372 ac_clean_files_save=$ac_clean_files
15373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15375 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15376 as_write_fail=0
15377 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15378 #! $SHELL
15379 # Generated by $as_me.
15380 # Run this file to recreate the current configuration.
15381 # Compiler output produced by configure, useful for debugging
15382 # configure, is in config.log if it exists.
15383
15384 debug=false
15385 ac_cs_recheck=false
15386 ac_cs_silent=false
15387
15388 SHELL=\${CONFIG_SHELL-$SHELL}
15389 export SHELL
15390 _ASEOF
15391 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15392 ## -------------------- ##
15393 ## M4sh Initialization. ##
15394 ## -------------------- ##
15395
15396 # Be more Bourne compatible
15397 DUALCASE=1; export DUALCASE # for MKS sh
15398 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15399 emulate sh
15400 NULLCMD=:
15401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15402 # is contrary to our usage. Disable this feature.
15403 alias -g '${1+"$@"}'='"$@"'
15404 setopt NO_GLOB_SUBST
15405 else
15406 case `(set -o) 2>/dev/null` in #(
15407 *posix*) :
15408 set -o posix ;; #(
15409 *) :
15410 ;;
15411 esac
15412 fi
15413
15414
15415 as_nl='
15416 '
15417 export as_nl
15418 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15419 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15422 # Prefer a ksh shell builtin over an external printf program on Solaris,
15423 # but without wasting forks for bash or zsh.
15424 if test -z "$BASH_VERSION$ZSH_VERSION" \
15425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15426 as_echo='print -r --'
15427 as_echo_n='print -rn --'
15428 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15429 as_echo='printf %s\n'
15430 as_echo_n='printf %s'
15431 else
15432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15434 as_echo_n='/usr/ucb/echo -n'
15435 else
15436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15437 as_echo_n_body='eval
15438 arg=$1;
15439 case $arg in #(
15440 *"$as_nl"*)
15441 expr "X$arg" : "X\\(.*\\)$as_nl";
15442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15443 esac;
15444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15445 '
15446 export as_echo_n_body
15447 as_echo_n='sh -c $as_echo_n_body as_echo'
15448 fi
15449 export as_echo_body
15450 as_echo='sh -c $as_echo_body as_echo'
15451 fi
15452
15453 # The user is always right.
15454 if test "${PATH_SEPARATOR+set}" != set; then
15455 PATH_SEPARATOR=:
15456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15458 PATH_SEPARATOR=';'
15459 }
15460 fi
15461
15462
15463 # IFS
15464 # We need space, tab and new line, in precisely that order. Quoting is
15465 # there to prevent editors from complaining about space-tab.
15466 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15467 # splitting by setting IFS to empty value.)
15468 IFS=" "" $as_nl"
15469
15470 # Find who we are. Look in the path if we contain no directory separator.
15471 as_myself=
15472 case $0 in #((
15473 *[\\/]* ) as_myself=$0 ;;
15474 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15475 for as_dir in $PATH
15476 do
15477 IFS=$as_save_IFS
15478 test -z "$as_dir" && as_dir=.
15479 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15480 done
15481 IFS=$as_save_IFS
15482
15483 ;;
15484 esac
15485 # We did not find ourselves, most probably we were run as `sh COMMAND'
15486 # in which case we are not to be found in the path.
15487 if test "x$as_myself" = x; then
15488 as_myself=$0
15489 fi
15490 if test ! -f "$as_myself"; then
15491 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15492 exit 1
15493 fi
15494
15495 # Unset variables that we do not need and which cause bugs (e.g. in
15496 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15497 # suppresses any "Segmentation fault" message there. '((' could
15498 # trigger a bug in pdksh 5.2.14.
15499 for as_var in BASH_ENV ENV MAIL MAILPATH
15500 do eval test x\${$as_var+set} = xset \
15501 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15502 done
15503 PS1='$ '
15504 PS2='> '
15505 PS4='+ '
15506
15507 # NLS nuisances.
15508 LC_ALL=C
15509 export LC_ALL
15510 LANGUAGE=C
15511 export LANGUAGE
15512
15513 # CDPATH.
15514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15515
15516
15517 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15518 # ----------------------------------------
15519 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15520 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15521 # script with STATUS, using 1 if that was 0.
15522 as_fn_error ()
15523 {
15524 as_status=$1; test $as_status -eq 0 && as_status=1
15525 if test "$4"; then
15526 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15527 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15528 fi
15529 $as_echo "$as_me: error: $2" >&2
15530 as_fn_exit $as_status
15531 } # as_fn_error
15532
15533
15534 # as_fn_set_status STATUS
15535 # -----------------------
15536 # Set $? to STATUS, without forking.
15537 as_fn_set_status ()
15538 {
15539 return $1
15540 } # as_fn_set_status
15541
15542 # as_fn_exit STATUS
15543 # -----------------
15544 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15545 as_fn_exit ()
15546 {
15547 set +e
15548 as_fn_set_status $1
15549 exit $1
15550 } # as_fn_exit
15551
15552 # as_fn_unset VAR
15553 # ---------------
15554 # Portably unset VAR.
15555 as_fn_unset ()
15556 {
15557 { eval $1=; unset $1;}
15558 }
15559 as_unset=as_fn_unset
15560 # as_fn_append VAR VALUE
15561 # ----------------------
15562 # Append the text in VALUE to the end of the definition contained in VAR. Take
15563 # advantage of any shell optimizations that allow amortized linear growth over
15564 # repeated appends, instead of the typical quadratic growth present in naive
15565 # implementations.
15566 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15567 eval 'as_fn_append ()
15568 {
15569 eval $1+=\$2
15570 }'
15571 else
15572 as_fn_append ()
15573 {
15574 eval $1=\$$1\$2
15575 }
15576 fi # as_fn_append
15577
15578 # as_fn_arith ARG...
15579 # ------------------
15580 # Perform arithmetic evaluation on the ARGs, and store the result in the
15581 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15582 # must be portable across $(()) and expr.
15583 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15584 eval 'as_fn_arith ()
15585 {
15586 as_val=$(( $* ))
15587 }'
15588 else
15589 as_fn_arith ()
15590 {
15591 as_val=`expr "$@" || test $? -eq 1`
15592 }
15593 fi # as_fn_arith
15594
15595
15596 if expr a : '\(a\)' >/dev/null 2>&1 &&
15597 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15598 as_expr=expr
15599 else
15600 as_expr=false
15601 fi
15602
15603 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15604 as_basename=basename
15605 else
15606 as_basename=false
15607 fi
15608
15609 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15610 as_dirname=dirname
15611 else
15612 as_dirname=false
15613 fi
15614
15615 as_me=`$as_basename -- "$0" ||
15616 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15617 X"$0" : 'X\(//\)$' \| \
15618 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15619 $as_echo X/"$0" |
15620 sed '/^.*\/\([^/][^/]*\)\/*$/{
15621 s//\1/
15622 q
15623 }
15624 /^X\/\(\/\/\)$/{
15625 s//\1/
15626 q
15627 }
15628 /^X\/\(\/\).*/{
15629 s//\1/
15630 q
15631 }
15632 s/.*/./; q'`
15633
15634 # Avoid depending upon Character Ranges.
15635 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15636 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15637 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15638 as_cr_digits='0123456789'
15639 as_cr_alnum=$as_cr_Letters$as_cr_digits
15640
15641 ECHO_C= ECHO_N= ECHO_T=
15642 case `echo -n x` in #(((((
15643 -n*)
15644 case `echo 'xy\c'` in
15645 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15646 xy) ECHO_C='\c';;
15647 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15648 ECHO_T=' ';;
15649 esac;;
15650 *)
15651 ECHO_N='-n';;
15652 esac
15653
15654 rm -f conf$$ conf$$.exe conf$$.file
15655 if test -d conf$$.dir; then
15656 rm -f conf$$.dir/conf$$.file
15657 else
15658 rm -f conf$$.dir
15659 mkdir conf$$.dir 2>/dev/null
15660 fi
15661 if (echo >conf$$.file) 2>/dev/null; then
15662 if ln -s conf$$.file conf$$ 2>/dev/null; then
15663 as_ln_s='ln -s'
15664 # ... but there are two gotchas:
15665 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15666 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15667 # In both cases, we have to default to `cp -p'.
15668 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15669 as_ln_s='cp -p'
15670 elif ln conf$$.file conf$$ 2>/dev/null; then
15671 as_ln_s=ln
15672 else
15673 as_ln_s='cp -p'
15674 fi
15675 else
15676 as_ln_s='cp -p'
15677 fi
15678 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15679 rmdir conf$$.dir 2>/dev/null
15680
15681
15682 # as_fn_mkdir_p
15683 # -------------
15684 # Create "$as_dir" as a directory, including parents if necessary.
15685 as_fn_mkdir_p ()
15686 {
15687
15688 case $as_dir in #(
15689 -*) as_dir=./$as_dir;;
15690 esac
15691 test -d "$as_dir" || eval $as_mkdir_p || {
15692 as_dirs=
15693 while :; do
15694 case $as_dir in #(
15695 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15696 *) as_qdir=$as_dir;;
15697 esac
15698 as_dirs="'$as_qdir' $as_dirs"
15699 as_dir=`$as_dirname -- "$as_dir" ||
15700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15701 X"$as_dir" : 'X\(//\)[^/]' \| \
15702 X"$as_dir" : 'X\(//\)$' \| \
15703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15704 $as_echo X"$as_dir" |
15705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15706 s//\1/
15707 q
15708 }
15709 /^X\(\/\/\)[^/].*/{
15710 s//\1/
15711 q
15712 }
15713 /^X\(\/\/\)$/{
15714 s//\1/
15715 q
15716 }
15717 /^X\(\/\).*/{
15718 s//\1/
15719 q
15720 }
15721 s/.*/./; q'`
15722 test -d "$as_dir" && break
15723 done
15724 test -z "$as_dirs" || eval "mkdir $as_dirs"
15725 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15726
15727
15728 } # as_fn_mkdir_p
15729 if mkdir -p . 2>/dev/null; then
15730 as_mkdir_p='mkdir -p "$as_dir"'
15731 else
15732 test -d ./-p && rmdir ./-p
15733 as_mkdir_p=false
15734 fi
15735
15736 if test -x / >/dev/null 2>&1; then
15737 as_test_x='test -x'
15738 else
15739 if ls -dL / >/dev/null 2>&1; then
15740 as_ls_L_option=L
15741 else
15742 as_ls_L_option=
15743 fi
15744 as_test_x='
15745 eval sh -c '\''
15746 if test -d "$1"; then
15747 test -d "$1/.";
15748 else
15749 case $1 in #(
15750 -*)set "./$1";;
15751 esac;
15752 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15753 ???[sx]*):;;*)false;;esac;fi
15754 '\'' sh
15755 '
15756 fi
15757 as_executable_p=$as_test_x
15758
15759 # Sed expression to map a string onto a valid CPP name.
15760 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15761
15762 # Sed expression to map a string onto a valid variable name.
15763 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15764
15765
15766 exec 6>&1
15767 ## ----------------------------------- ##
15768 ## Main body of $CONFIG_STATUS script. ##
15769 ## ----------------------------------- ##
15770 _ASEOF
15771 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15772
15773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15774 # Save the log message, to keep $0 and so on meaningful, and to
15775 # report actual input values of CONFIG_FILES etc. instead of their
15776 # values after options handling.
15777 ac_log="
15778 This file was extended by PortAudioCpp $as_me 12, which was
15779 generated by GNU Autoconf 2.68. Invocation command line was
15780
15781 CONFIG_FILES = $CONFIG_FILES
15782 CONFIG_HEADERS = $CONFIG_HEADERS
15783 CONFIG_LINKS = $CONFIG_LINKS
15784 CONFIG_COMMANDS = $CONFIG_COMMANDS
15785 $ $0 $@
15786
15787 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15788 "
15789
15790 _ACEOF
15791
15792 case $ac_config_files in *"
15793 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15794 esac
15795
15796
15797
15798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15799 # Files that config.status was made for.
15800 config_files="$ac_config_files"
15801 config_commands="$ac_config_commands"
15802
15803 _ACEOF
15804
15805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15806 ac_cs_usage="\
15807 \`$as_me' instantiates files and other configuration actions
15808 from templates according to the current configuration. Unless the files
15809 and actions are specified as TAGs, all are instantiated by default.
15810
15811 Usage: $0 [OPTION]... [TAG]...
15812
15813 -h, --help print this help, then exit
15814 -V, --version print version number and configuration settings, then exit
15815 --config print configuration, then exit
15816 -q, --quiet, --silent
15817 do not print progress messages
15818 -d, --debug don't remove temporary files
15819 --recheck update $as_me by reconfiguring in the same conditions
15820 --file=FILE[:TEMPLATE]
15821 instantiate the configuration file FILE
15822
15823 Configuration files:
15824 $config_files
15825
15826 Configuration commands:
15827 $config_commands
15828
15829 Report bugs to the package provider."
15830
15831 _ACEOF
15832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15833 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15834 ac_cs_version="\\
15835 PortAudioCpp config.status 12
15836 configured by $0, generated by GNU Autoconf 2.68,
15837 with options \\"\$ac_cs_config\\"
15838
15839 Copyright (C) 2010 Free Software Foundation, Inc.
15840 This config.status script is free software; the Free Software Foundation
15841 gives unlimited permission to copy, distribute and modify it."
15842
15843 ac_pwd='$ac_pwd'
15844 srcdir='$srcdir'
15845 INSTALL='$INSTALL'
15846 MKDIR_P='$MKDIR_P'
15847 AWK='$AWK'
15848 test -n "\$AWK" || AWK=awk
15849 _ACEOF
15850
15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15852 # The default lists apply if the user does not specify any file.
15853 ac_need_defaults=:
15854 while test $# != 0
15855 do
15856 case $1 in
15857 --*=?*)
15858 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15859 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15860 ac_shift=:
15861 ;;
15862 --*=)
15863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15864 ac_optarg=
15865 ac_shift=:
15866 ;;
15867 *)
15868 ac_option=$1
15869 ac_optarg=$2
15870 ac_shift=shift
15871 ;;
15872 esac
15873
15874 case $ac_option in
15875 # Handling of the options.
15876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15877 ac_cs_recheck=: ;;
15878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15879 $as_echo "$ac_cs_version"; exit ;;
15880 --config | --confi | --conf | --con | --co | --c )
15881 $as_echo "$ac_cs_config"; exit ;;
15882 --debug | --debu | --deb | --de | --d | -d )
15883 debug=: ;;
15884 --file | --fil | --fi | --f )
15885 $ac_shift
15886 case $ac_optarg in
15887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15888 '') as_fn_error $? "missing file argument" ;;
15889 esac
15890 as_fn_append CONFIG_FILES " '$ac_optarg'"
15891 ac_need_defaults=false;;
15892 --he | --h | --help | --hel | -h )
15893 $as_echo "$ac_cs_usage"; exit ;;
15894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15895 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15896 ac_cs_silent=: ;;
15897
15898 # This is an error.
15899 -*) as_fn_error $? "unrecognized option: \`$1'
15900 Try \`$0 --help' for more information." ;;
15901
15902 *) as_fn_append ac_config_targets " $1"
15903 ac_need_defaults=false ;;
15904
15905 esac
15906 shift
15907 done
15908
15909 ac_configure_extra_args=
15910
15911 if $ac_cs_silent; then
15912 exec 6>/dev/null
15913 ac_configure_extra_args="$ac_configure_extra_args --silent"
15914 fi
15915
15916 _ACEOF
15917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15918 if \$ac_cs_recheck; then
15919 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15920 shift
15921 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15922 CONFIG_SHELL='$SHELL'
15923 export CONFIG_SHELL
15924 exec "\$@"
15925 fi
15926
15927 _ACEOF
15928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15929 exec 5>>config.log
15930 {
15931 echo
15932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15933 ## Running $as_me. ##
15934 _ASBOX
15935 $as_echo "$ac_log"
15936 } >&5
15937
15938 _ACEOF
15939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15940 #
15941 # INIT-COMMANDS
15942 #
15943 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15944
15945
15946 # The HP-UX ksh and POSIX shell print the target directory to stdout
15947 # if CDPATH is set.
15948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15949
15950 sed_quote_subst='$sed_quote_subst'
15951 double_quote_subst='$double_quote_subst'
15952 delay_variable_subst='$delay_variable_subst'
15953 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15954 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15955 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15956 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15957 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15958 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15959 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15960 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15961 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15962 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15963 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15964 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15965 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15966 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15967 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15968 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15969 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15970 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15971 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15972 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15973 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15974 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15975 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15976 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15977 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15978 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15979 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15980 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15981 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15982 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15983 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15984 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15985 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15986 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15987 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15988 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15989 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15990 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15991 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15992 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15993 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15994 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15995 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15996 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15997 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15998 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15999 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16000 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16001 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16002 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16003 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16004 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16005 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16006 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16007 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16008 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16009 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"`'
16010 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16011 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16012 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16013 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16014 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16015 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16016 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16017 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16018 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16019 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16020 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16021 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16022 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16023 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16024 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16025 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16026 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16027 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16028 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16029 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16030 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16031 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16032 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16033 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16034 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16035 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16036 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16037 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16038 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16039 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16040 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16041 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16042 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16043 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16044 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16045 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16046 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16047 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16048 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16049 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16050 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16051 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16052 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16053 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16054 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16055 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16056 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16057 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16058 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16059 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16060 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16061 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16062 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16063 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16064 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16065 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16066 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16067 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16068 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16069 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16070 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16071 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16072 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16073 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16074 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16075 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16076 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16077 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16078 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16079 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16080 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16081 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16082 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16083 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16084 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16085 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16086 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16087 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16088 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16089 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16090 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16091 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16092 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16093 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16094 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16095 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16096 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16097 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16098 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16099 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16100 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16101 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16102 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16103 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16104 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16105 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16106 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16107 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16108 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16109 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16110 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16111 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16112 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16113 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16114 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16115 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16116 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16117 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16118 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16119 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16120 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16121 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16122 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16123 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16124 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16125 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16126 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16127 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16128 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16129 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16130 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16131 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16132 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16133 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16134 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16135 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16136 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16137 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16138 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16139
16140 LTCC='$LTCC'
16141 LTCFLAGS='$LTCFLAGS'
16142 compiler='$compiler_DEFAULT'
16143
16144 # A function that is used when there is no print builtin or printf.
16145 func_fallback_echo ()
16146 {
16147 eval 'cat <<_LTECHO_EOF
16148 \$1
16149 _LTECHO_EOF'
16150 }
16151
16152 # Quote evaled strings.
16153 for var in AS \
16154 DLLTOOL \
16155 OBJDUMP \
16156 SHELL \
16157 ECHO \
16158 SED \
16159 GREP \
16160 EGREP \
16161 FGREP \
16162 LD \
16163 NM \
16164 LN_S \
16165 lt_SP2NL \
16166 lt_NL2SP \
16167 reload_flag \
16168 deplibs_check_method \
16169 file_magic_cmd \
16170 file_magic_glob \
16171 want_nocaseglob \
16172 sharedlib_from_linklib_cmd \
16173 AR \
16174 AR_FLAGS \
16175 archiver_list_spec \
16176 STRIP \
16177 RANLIB \
16178 CC \
16179 CFLAGS \
16180 compiler \
16181 lt_cv_sys_global_symbol_pipe \
16182 lt_cv_sys_global_symbol_to_cdecl \
16183 lt_cv_sys_global_symbol_to_c_name_address \
16184 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16185 nm_file_list_spec \
16186 lt_prog_compiler_no_builtin_flag \
16187 lt_prog_compiler_pic \
16188 lt_prog_compiler_wl \
16189 lt_prog_compiler_static \
16190 lt_cv_prog_compiler_c_o \
16191 need_locks \
16192 MANIFEST_TOOL \
16193 DSYMUTIL \
16194 NMEDIT \
16195 LIPO \
16196 OTOOL \
16197 OTOOL64 \
16198 shrext_cmds \
16199 export_dynamic_flag_spec \
16200 whole_archive_flag_spec \
16201 compiler_needs_object \
16202 with_gnu_ld \
16203 allow_undefined_flag \
16204 no_undefined_flag \
16205 hardcode_libdir_flag_spec \
16206 hardcode_libdir_flag_spec_ld \
16207 hardcode_libdir_separator \
16208 exclude_expsyms \
16209 include_expsyms \
16210 file_list_spec \
16211 variables_saved_for_relink \
16212 libname_spec \
16213 library_names_spec \
16214 soname_spec \
16215 install_override_mode \
16216 finish_eval \
16217 old_striplib \
16218 striplib \
16219 compiler_lib_search_dirs \
16220 predep_objects \
16221 postdep_objects \
16222 predeps \
16223 postdeps \
16224 compiler_lib_search_path \
16225 LD_CXX \
16226 reload_flag_CXX \
16227 compiler_CXX \
16228 lt_prog_compiler_no_builtin_flag_CXX \
16229 lt_prog_compiler_pic_CXX \
16230 lt_prog_compiler_wl_CXX \
16231 lt_prog_compiler_static_CXX \
16232 lt_cv_prog_compiler_c_o_CXX \
16233 export_dynamic_flag_spec_CXX \
16234 whole_archive_flag_spec_CXX \
16235 compiler_needs_object_CXX \
16236 with_gnu_ld_CXX \
16237 allow_undefined_flag_CXX \
16238 no_undefined_flag_CXX \
16239 hardcode_libdir_flag_spec_CXX \
16240 hardcode_libdir_flag_spec_ld_CXX \
16241 hardcode_libdir_separator_CXX \
16242 exclude_expsyms_CXX \
16243 include_expsyms_CXX \
16244 file_list_spec_CXX \
16245 compiler_lib_search_dirs_CXX \
16246 predep_objects_CXX \
16247 postdep_objects_CXX \
16248 predeps_CXX \
16249 postdeps_CXX \
16250 compiler_lib_search_path_CXX; do
16251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16252 *[\\\\\\\`\\"\\\$]*)
16253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16254 ;;
16255 *)
16256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16257 ;;
16258 esac
16259 done
16260
16261 # Double-quote double-evaled strings.
16262 for var in reload_cmds \
16263 old_postinstall_cmds \
16264 old_postuninstall_cmds \
16265 old_archive_cmds \
16266 extract_expsyms_cmds \
16267 old_archive_from_new_cmds \
16268 old_archive_from_expsyms_cmds \
16269 archive_cmds \
16270 archive_expsym_cmds \
16271 module_cmds \
16272 module_expsym_cmds \
16273 export_symbols_cmds \
16274 prelink_cmds \
16275 postlink_cmds \
16276 postinstall_cmds \
16277 postuninstall_cmds \
16278 finish_cmds \
16279 sys_lib_search_path_spec \
16280 sys_lib_dlsearch_path_spec \
16281 reload_cmds_CXX \
16282 old_archive_cmds_CXX \
16283 old_archive_from_new_cmds_CXX \
16284 old_archive_from_expsyms_cmds_CXX \
16285 archive_cmds_CXX \
16286 archive_expsym_cmds_CXX \
16287 module_cmds_CXX \
16288 module_expsym_cmds_CXX \
16289 export_symbols_cmds_CXX \
16290 prelink_cmds_CXX \
16291 postlink_cmds_CXX; do
16292 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16293 *[\\\\\\\`\\"\\\$]*)
16294 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16295 ;;
16296 *)
16297 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16298 ;;
16299 esac
16300 done
16301
16302 ac_aux_dir='$ac_aux_dir'
16303 xsi_shell='$xsi_shell'
16304 lt_shell_append='$lt_shell_append'
16305
16306 # See if we are running on zsh, and set the options which allow our
16307 # commands through without removal of \ escapes INIT.
16308 if test -n "\${ZSH_VERSION+set}" ; then
16309 setopt NO_GLOB_SUBST
16310 fi
16311
16312
16313 PACKAGE='$PACKAGE'
16314 VERSION='$VERSION'
16315 TIMESTAMP='$TIMESTAMP'
16316 RM='$RM'
16317 ofile='$ofile'
16318
16319
16320
16321
16322
16323
16324 _ACEOF
16325
16326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16327
16328 # Handling of arguments.
16329 for ac_config_target in $ac_config_targets
16330 do
16331 case $ac_config_target in
16332 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16333 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16334 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16335 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16336 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16337 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
16338 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16339 "portaudiocpp.pc") CONFIG_FILES="$CONFIG_FILES portaudiocpp.pc" ;;
16340
16341 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16342 esac
16343 done
16344
16345
16346 # If the user did not use the arguments to specify the items to instantiate,
16347 # then the envvar interface is used. Set only those that are not.
16348 # We use the long form for the default assignment because of an extremely
16349 # bizarre bug on SunOS 4.1.3.
16350 if $ac_need_defaults; then
16351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16352 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16353 fi
16354
16355 # Have a temporary directory for convenience. Make it in the build tree
16356 # simply because there is no reason against having it here, and in addition,
16357 # creating and moving files from /tmp can sometimes cause problems.
16358 # Hook for its removal unless debugging.
16359 # Note that there is a small window in which the directory will not be cleaned:
16360 # after its creation but before its name has been assigned to `$tmp'.
16361 $debug ||
16362 {
16363 tmp= ac_tmp=
16364 trap 'exit_status=$?
16365 : "${ac_tmp:=$tmp}"
16366 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16367 ' 0
16368 trap 'as_fn_exit 1' 1 2 13 15
16369 }
16370 # Create a (secure) tmp directory for tmp files.
16371
16372 {
16373 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16374 test -d "$tmp"
16375 } ||
16376 {
16377 tmp=./conf$$-$RANDOM
16378 (umask 077 && mkdir "$tmp")
16379 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16380 ac_tmp=$tmp
16381
16382 # Set up the scripts for CONFIG_FILES section.
16383 # No need to generate them if there are no CONFIG_FILES.
16384 # This happens for instance with `./config.status config.h'.
16385 if test -n "$CONFIG_FILES"; then
16386
16387
16388 ac_cr=`echo X | tr X '\015'`
16389 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16390 # But we know of no other shell where ac_cr would be empty at this
16391 # point, so we can use a bashism as a fallback.
16392 if test "x$ac_cr" = x; then
16393 eval ac_cr=\$\'\\r\'
16394 fi
16395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16397 ac_cs_awk_cr='\\r'
16398 else
16399 ac_cs_awk_cr=$ac_cr
16400 fi
16401
16402 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16403 _ACEOF
16404
16405
16406 {
16407 echo "cat >conf$$subs.awk <<_ACEOF" &&
16408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16409 echo "_ACEOF"
16410 } >conf$$subs.sh ||
16411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16413 ac_delim='%!_!# '
16414 for ac_last_try in false false false false false :; do
16415 . ./conf$$subs.sh ||
16416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16417
16418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16419 if test $ac_delim_n = $ac_delim_num; then
16420 break
16421 elif $ac_last_try; then
16422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16423 else
16424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16425 fi
16426 done
16427 rm -f conf$$subs.sh
16428
16429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16430 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16431 _ACEOF
16432 sed -n '
16433 h
16434 s/^/S["/; s/!.*/"]=/
16435 p
16436 g
16437 s/^[^!]*!//
16438 :repl
16439 t repl
16440 s/'"$ac_delim"'$//
16441 t delim
16442 :nl
16443 h
16444 s/\(.\{148\}\)..*/\1/
16445 t more1
16446 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16447 p
16448 n
16449 b repl
16450 :more1
16451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16452 p
16453 g
16454 s/.\{148\}//
16455 t nl
16456 :delim
16457 h
16458 s/\(.\{148\}\)..*/\1/
16459 t more2
16460 s/["\\]/\\&/g; s/^/"/; s/$/"/
16461 p
16462 b
16463 :more2
16464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16465 p
16466 g
16467 s/.\{148\}//
16468 t delim
16469 ' <conf$$subs.awk | sed '
16470 /^[^""]/{
16471 N
16472 s/\n//
16473 }
16474 ' >>$CONFIG_STATUS || ac_write_fail=1
16475 rm -f conf$$subs.awk
16476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16477 _ACAWK
16478 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16479 for (key in S) S_is_set[key] = 1
16480 FS = ""
16481
16482 }
16483 {
16484 line = $ 0
16485 nfields = split(line, field, "@")
16486 substed = 0
16487 len = length(field[1])
16488 for (i = 2; i < nfields; i++) {
16489 key = field[i]
16490 keylen = length(key)
16491 if (S_is_set[key]) {
16492 value = S[key]
16493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16494 len += length(value) + length(field[++i])
16495 substed = 1
16496 } else
16497 len += 1 + keylen
16498 }
16499
16500 print line
16501 }
16502
16503 _ACAWK
16504 _ACEOF
16505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16506 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16507 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16508 else
16509 cat
16510 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16511 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16512 _ACEOF
16513
16514 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16515 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16516 # trailing colons and then remove the whole line if VPATH becomes empty
16517 # (actually we leave an empty line to preserve line numbers).
16518 if test "x$srcdir" = x.; then
16519 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16520 h
16521 s///
16522 s/^/:/
16523 s/[ ]*$/:/
16524 s/:\$(srcdir):/:/g
16525 s/:\${srcdir}:/:/g
16526 s/:@srcdir@:/:/g
16527 s/^:*//
16528 s/:*$//
16529 x
16530 s/\(=[ ]*\).*/\1/
16531 G
16532 s/\n//
16533 s/^[^=]*=[ ]*$//
16534 }'
16535 fi
16536
16537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16538 fi # test -n "$CONFIG_FILES"
16539
16540
16541 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16542 shift
16543 for ac_tag
16544 do
16545 case $ac_tag in
16546 :[FHLC]) ac_mode=$ac_tag; continue;;
16547 esac
16548 case $ac_mode$ac_tag in
16549 :[FHL]*:*);;
16550 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16551 :[FH]-) ac_tag=-:-;;
16552 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16553 esac
16554 ac_save_IFS=$IFS
16555 IFS=:
16556 set x $ac_tag
16557 IFS=$ac_save_IFS
16558 shift
16559 ac_file=$1
16560 shift
16561
16562 case $ac_mode in
16563 :L) ac_source=$1;;
16564 :[FH])
16565 ac_file_inputs=
16566 for ac_f
16567 do
16568 case $ac_f in
16569 -) ac_f="$ac_tmp/stdin";;
16570 *) # Look for the file first in the build tree, then in the source tree
16571 # (if the path is not absolute). The absolute path cannot be DOS-style,
16572 # because $ac_f cannot contain `:'.
16573 test -f "$ac_f" ||
16574 case $ac_f in
16575 [\\/$]*) false;;
16576 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16577 esac ||
16578 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16579 esac
16580 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16581 as_fn_append ac_file_inputs " '$ac_f'"
16582 done
16583
16584 # Let's still pretend it is `configure' which instantiates (i.e., don't
16585 # use $as_me), people would be surprised to read:
16586 # /* config.h. Generated by config.status. */
16587 configure_input='Generated from '`
16588 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16589 `' by configure.'
16590 if test x"$ac_file" != x-; then
16591 configure_input="$ac_file. $configure_input"
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16593 $as_echo "$as_me: creating $ac_file" >&6;}
16594 fi
16595 # Neutralize special characters interpreted by sed in replacement strings.
16596 case $configure_input in #(
16597 *\&* | *\|* | *\\* )
16598 ac_sed_conf_input=`$as_echo "$configure_input" |
16599 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16600 *) ac_sed_conf_input=$configure_input;;
16601 esac
16602
16603 case $ac_tag in
16604 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16606 esac
16607 ;;
16608 esac
16609
16610 ac_dir=`$as_dirname -- "$ac_file" ||
16611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16612 X"$ac_file" : 'X\(//\)[^/]' \| \
16613 X"$ac_file" : 'X\(//\)$' \| \
16614 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16615 $as_echo X"$ac_file" |
16616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16617 s//\1/
16618 q
16619 }
16620 /^X\(\/\/\)[^/].*/{
16621 s//\1/
16622 q
16623 }
16624 /^X\(\/\/\)$/{
16625 s//\1/
16626 q
16627 }
16628 /^X\(\/\).*/{
16629 s//\1/
16630 q
16631 }
16632 s/.*/./; q'`
16633 as_dir="$ac_dir"; as_fn_mkdir_p
16634 ac_builddir=.
16635
16636 case "$ac_dir" in
16637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16638 *)
16639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16640 # A ".." for each directory in $ac_dir_suffix.
16641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16642 case $ac_top_builddir_sub in
16643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16645 esac ;;
16646 esac
16647 ac_abs_top_builddir=$ac_pwd
16648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16649 # for backward compatibility:
16650 ac_top_builddir=$ac_top_build_prefix
16651
16652 case $srcdir in
16653 .) # We are building in place.
16654 ac_srcdir=.
16655 ac_top_srcdir=$ac_top_builddir_sub
16656 ac_abs_top_srcdir=$ac_pwd ;;
16657 [\\/]* | ?:[\\/]* ) # Absolute name.
16658 ac_srcdir=$srcdir$ac_dir_suffix;
16659 ac_top_srcdir=$srcdir
16660 ac_abs_top_srcdir=$srcdir ;;
16661 *) # Relative name.
16662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16663 ac_top_srcdir=$ac_top_build_prefix$srcdir
16664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16665 esac
16666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16667
16668
16669 case $ac_mode in
16670 :F)
16671 #
16672 # CONFIG_FILE
16673 #
16674
16675 case $INSTALL in
16676 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16677 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16678 esac
16679 ac_MKDIR_P=$MKDIR_P
16680 case $MKDIR_P in
16681 [\\/$]* | ?:[\\/]* ) ;;
16682 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16683 esac
16684 _ACEOF
16685
16686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16687 # If the template does not know about datarootdir, expand it.
16688 # FIXME: This hack should be removed a few years after 2.60.
16689 ac_datarootdir_hack=; ac_datarootdir_seen=
16690 ac_sed_dataroot='
16691 /datarootdir/ {
16692 p
16693 q
16694 }
16695 /@datadir@/p
16696 /@docdir@/p
16697 /@infodir@/p
16698 /@localedir@/p
16699 /@mandir@/p'
16700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16701 *datarootdir*) ac_datarootdir_seen=yes;;
16702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16705 _ACEOF
16706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16707 ac_datarootdir_hack='
16708 s&@datadir@&$datadir&g
16709 s&@docdir@&$docdir&g
16710 s&@infodir@&$infodir&g
16711 s&@localedir@&$localedir&g
16712 s&@mandir@&$mandir&g
16713 s&\\\${datarootdir}&$datarootdir&g' ;;
16714 esac
16715 _ACEOF
16716
16717 # Neutralize VPATH when `$srcdir' = `.'.
16718 # Shell code in configure.ac might set extrasub.
16719 # FIXME: do we really want to maintain this feature?
16720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16721 ac_sed_extra="$ac_vpsub
16722 $extrasub
16723 _ACEOF
16724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16725 :t
16726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16727 s|@configure_input@|$ac_sed_conf_input|;t t
16728 s&@top_builddir@&$ac_top_builddir_sub&;t t
16729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16730 s&@srcdir@&$ac_srcdir&;t t
16731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16732 s&@top_srcdir@&$ac_top_srcdir&;t t
16733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16734 s&@builddir@&$ac_builddir&;t t
16735 s&@abs_builddir@&$ac_abs_builddir&;t t
16736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16737 s&@INSTALL@&$ac_INSTALL&;t t
16738 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16739 $ac_datarootdir_hack
16740 "
16741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16742 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16743
16744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16745 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16747 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16749 which seems to be undefined. Please make sure it is defined" >&5
16750 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16751 which seems to be undefined. Please make sure it is defined" >&2;}
16752
16753 rm -f "$ac_tmp/stdin"
16754 case $ac_file in
16755 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16756 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16757 esac \
16758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16759 ;;
16760
16761
16762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16763 $as_echo "$as_me: executing $ac_file commands" >&6;}
16764 ;;
16765 esac
16766
16767
16768 case $ac_file$ac_mode in
16769 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16770 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16771 # are listed without --file. Let's play safe and only enable the eval
16772 # if we detect the quoting.
16773 case $CONFIG_FILES in
16774 *\'*) eval set x "$CONFIG_FILES" ;;
16775 *) set x $CONFIG_FILES ;;
16776 esac
16777 shift
16778 for mf
16779 do
16780 # Strip MF so we end up with the name of the file.
16781 mf=`echo "$mf" | sed -e 's/:.*$//'`
16782 # Check whether this is an Automake generated Makefile or not.
16783 # We used to match only the files named `Makefile.in', but
16784 # some people rename them; so instead we look at the file content.
16785 # Grep'ing the first line is not enough: some people post-process
16786 # each Makefile.in and add a new line on top of each file to say so.
16787 # Grep'ing the whole file is not good either: AIX grep has a line
16788 # limit of 2048, but all sed's we know have understand at least 4000.
16789 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16790 dirpart=`$as_dirname -- "$mf" ||
16791 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16792 X"$mf" : 'X\(//\)[^/]' \| \
16793 X"$mf" : 'X\(//\)$' \| \
16794 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16795 $as_echo X"$mf" |
16796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16797 s//\1/
16798 q
16799 }
16800 /^X\(\/\/\)[^/].*/{
16801 s//\1/
16802 q
16803 }
16804 /^X\(\/\/\)$/{
16805 s//\1/
16806 q
16807 }
16808 /^X\(\/\).*/{
16809 s//\1/
16810 q
16811 }
16812 s/.*/./; q'`
16813 else
16814 continue
16815 fi
16816 # Extract the definition of DEPDIR, am__include, and am__quote
16817 # from the Makefile without running `make'.
16818 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16819 test -z "$DEPDIR" && continue
16820 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16821 test -z "am__include" && continue
16822 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16823 # When using ansi2knr, U may be empty or an underscore; expand it
16824 U=`sed -n 's/^U = //p' < "$mf"`
16825 # Find all dependency output files, they are included files with
16826 # $(DEPDIR) in their names. We invoke sed twice because it is the
16827 # simplest approach to changing $(DEPDIR) to its actual value in the
16828 # expansion.
16829 for file in `sed -n "
16830 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16831 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16832 # Make sure the directory exists.
16833 test -f "$dirpart/$file" && continue
16834 fdir=`$as_dirname -- "$file" ||
16835 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16836 X"$file" : 'X\(//\)[^/]' \| \
16837 X"$file" : 'X\(//\)$' \| \
16838 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16839 $as_echo X"$file" |
16840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16841 s//\1/
16842 q
16843 }
16844 /^X\(\/\/\)[^/].*/{
16845 s//\1/
16846 q
16847 }
16848 /^X\(\/\/\)$/{
16849 s//\1/
16850 q
16851 }
16852 /^X\(\/\).*/{
16853 s//\1/
16854 q
16855 }
16856 s/.*/./; q'`
16857 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16858 # echo "creating $dirpart/$file"
16859 echo '# dummy' > "$dirpart/$file"
16860 done
16861 done
16862 }
16863 ;;
16864 "libtool":C)
16865
16866 # See if we are running on zsh, and set the options which allow our
16867 # commands through without removal of \ escapes.
16868 if test -n "${ZSH_VERSION+set}" ; then
16869 setopt NO_GLOB_SUBST
16870 fi
16871
16872 cfgfile="${ofile}T"
16873 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16874 $RM "$cfgfile"
16875
16876 cat <<_LT_EOF >> "$cfgfile"
16877 #! $SHELL
16878
16879 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16880 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16881 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16882 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16883 #
16884 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16885 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16886 # Inc.
16887 # Written by Gordon Matzigkeit, 1996
16888 #
16889 # This file is part of GNU Libtool.
16890 #
16891 # GNU Libtool is free software; you can redistribute it and/or
16892 # modify it under the terms of the GNU General Public License as
16893 # published by the Free Software Foundation; either version 2 of
16894 # the License, or (at your option) any later version.
16895 #
16896 # As a special exception to the GNU General Public License,
16897 # if you distribute this file as part of a program or library that
16898 # is built using GNU Libtool, you may include this file under the
16899 # same distribution terms that you use for the rest of that program.
16900 #
16901 # GNU Libtool is distributed in the hope that it will be useful,
16902 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16903 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16904 # GNU General Public License for more details.
16905 #
16906 # You should have received a copy of the GNU General Public License
16907 # along with GNU Libtool; see the file COPYING. If not, a copy
16908 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16909 # obtained by writing to the Free Software Foundation, Inc.,
16910 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16911
16912
16913 # The names of the tagged configurations supported by this script.
16914 available_tags="CXX "
16915
16916 # ### BEGIN LIBTOOL CONFIG
16917
16918 # Assembler program.
16919 AS=$lt_AS
16920
16921 # DLL creation program.
16922 DLLTOOL=$lt_DLLTOOL
16923
16924 # Object dumper program.
16925 OBJDUMP=$lt_OBJDUMP
16926
16927 # Which release of libtool.m4 was used?
16928 macro_version=$macro_version
16929 macro_revision=$macro_revision
16930
16931 # Whether or not to build shared libraries.
16932 build_libtool_libs=$enable_shared
16933
16934 # Whether or not to build static libraries.
16935 build_old_libs=$enable_static
16936
16937 # What type of objects to build.
16938 pic_mode=$pic_mode
16939
16940 # Whether or not to optimize for fast installation.
16941 fast_install=$enable_fast_install
16942
16943 # Shell to use when invoking shell scripts.
16944 SHELL=$lt_SHELL
16945
16946 # An echo program that protects backslashes.
16947 ECHO=$lt_ECHO
16948
16949 # The host system.
16950 host_alias=$host_alias
16951 host=$host
16952 host_os=$host_os
16953
16954 # The build system.
16955 build_alias=$build_alias
16956 build=$build
16957 build_os=$build_os
16958
16959 # A sed program that does not truncate output.
16960 SED=$lt_SED
16961
16962 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16963 Xsed="\$SED -e 1s/^X//"
16964
16965 # A grep program that handles long lines.
16966 GREP=$lt_GREP
16967
16968 # An ERE matcher.
16969 EGREP=$lt_EGREP
16970
16971 # A literal string matcher.
16972 FGREP=$lt_FGREP
16973
16974 # A BSD- or MS-compatible name lister.
16975 NM=$lt_NM
16976
16977 # Whether we need soft or hard links.
16978 LN_S=$lt_LN_S
16979
16980 # What is the maximum length of a command?
16981 max_cmd_len=$max_cmd_len
16982
16983 # Object file suffix (normally "o").
16984 objext=$ac_objext
16985
16986 # Executable file suffix (normally "").
16987 exeext=$exeext
16988
16989 # whether the shell understands "unset".
16990 lt_unset=$lt_unset
16991
16992 # turn spaces into newlines.
16993 SP2NL=$lt_lt_SP2NL
16994
16995 # turn newlines into spaces.
16996 NL2SP=$lt_lt_NL2SP
16997
16998 # convert \$build file names to \$host format.
16999 to_host_file_cmd=$lt_cv_to_host_file_cmd
17000
17001 # convert \$build files to toolchain format.
17002 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17003
17004 # Method to check whether dependent libraries are shared objects.
17005 deplibs_check_method=$lt_deplibs_check_method
17006
17007 # Command to use when deplibs_check_method = "file_magic".
17008 file_magic_cmd=$lt_file_magic_cmd
17009
17010 # How to find potential files when deplibs_check_method = "file_magic".
17011 file_magic_glob=$lt_file_magic_glob
17012
17013 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17014 want_nocaseglob=$lt_want_nocaseglob
17015
17016 # Command to associate shared and link libraries.
17017 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17018
17019 # The archiver.
17020 AR=$lt_AR
17021
17022 # Flags to create an archive.
17023 AR_FLAGS=$lt_AR_FLAGS
17024
17025 # How to feed a file listing to the archiver.
17026 archiver_list_spec=$lt_archiver_list_spec
17027
17028 # A symbol stripping program.
17029 STRIP=$lt_STRIP
17030
17031 # Commands used to install an old-style archive.
17032 RANLIB=$lt_RANLIB
17033 old_postinstall_cmds=$lt_old_postinstall_cmds
17034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17035
17036 # Whether to use a lock for old archive extraction.
17037 lock_old_archive_extraction=$lock_old_archive_extraction
17038
17039 # A C compiler.
17040 LTCC=$lt_CC
17041
17042 # LTCC compiler flags.
17043 LTCFLAGS=$lt_CFLAGS
17044
17045 # Take the output of nm and produce a listing of raw symbols and C names.
17046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17047
17048 # Transform the output of nm in a proper C declaration.
17049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17050
17051 # Transform the output of nm in a C name address pair.
17052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17053
17054 # Transform the output of nm in a C name address pair when lib prefix is needed.
17055 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17056
17057 # Specify filename containing input files for \$NM.
17058 nm_file_list_spec=$lt_nm_file_list_spec
17059
17060 # The root where to search for dependent libraries,and in which our libraries should be installed.
17061 lt_sysroot=$lt_sysroot
17062
17063 # The name of the directory that contains temporary libtool files.
17064 objdir=$objdir
17065
17066 # Used to examine libraries when file_magic_cmd begins with "file".
17067 MAGIC_CMD=$MAGIC_CMD
17068
17069 # Must we lock files when doing compilation?
17070 need_locks=$lt_need_locks
17071
17072 # Manifest tool.
17073 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17074
17075 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17076 DSYMUTIL=$lt_DSYMUTIL
17077
17078 # Tool to change global to local symbols on Mac OS X.
17079 NMEDIT=$lt_NMEDIT
17080
17081 # Tool to manipulate fat objects and archives on Mac OS X.
17082 LIPO=$lt_LIPO
17083
17084 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17085 OTOOL=$lt_OTOOL
17086
17087 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17088 OTOOL64=$lt_OTOOL64
17089
17090 # Old archive suffix (normally "a").
17091 libext=$libext
17092
17093 # Shared library suffix (normally ".so").
17094 shrext_cmds=$lt_shrext_cmds
17095
17096 # The commands to extract the exported symbol list from a shared archive.
17097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17098
17099 # Variables whose values should be saved in libtool wrapper scripts and
17100 # restored at link time.
17101 variables_saved_for_relink=$lt_variables_saved_for_relink
17102
17103 # Do we need the "lib" prefix for modules?
17104 need_lib_prefix=$need_lib_prefix
17105
17106 # Do we need a version for libraries?
17107 need_version=$need_version
17108
17109 # Library versioning type.
17110 version_type=$version_type
17111
17112 # Shared library runtime path variable.
17113 runpath_var=$runpath_var
17114
17115 # Shared library path variable.
17116 shlibpath_var=$shlibpath_var
17117
17118 # Is shlibpath searched before the hard-coded library search path?
17119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17120
17121 # Format of library name prefix.
17122 libname_spec=$lt_libname_spec
17123
17124 # List of archive names. First name is the real one, the rest are links.
17125 # The last name is the one that the linker finds with -lNAME
17126 library_names_spec=$lt_library_names_spec
17127
17128 # The coded name of the library, if different from the real name.
17129 soname_spec=$lt_soname_spec
17130
17131 # Permission mode override for installation of shared libraries.
17132 install_override_mode=$lt_install_override_mode
17133
17134 # Command to use after installation of a shared archive.
17135 postinstall_cmds=$lt_postinstall_cmds
17136
17137 # Command to use after uninstallation of a shared archive.
17138 postuninstall_cmds=$lt_postuninstall_cmds
17139
17140 # Commands used to finish a libtool library installation in a directory.
17141 finish_cmds=$lt_finish_cmds
17142
17143 # As "finish_cmds", except a single script fragment to be evaled but
17144 # not shown.
17145 finish_eval=$lt_finish_eval
17146
17147 # Whether we should hardcode library paths into libraries.
17148 hardcode_into_libs=$hardcode_into_libs
17149
17150 # Compile-time system search path for libraries.
17151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17152
17153 # Run-time system search path for libraries.
17154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17155
17156 # Whether dlopen is supported.
17157 dlopen_support=$enable_dlopen
17158
17159 # Whether dlopen of programs is supported.
17160 dlopen_self=$enable_dlopen_self
17161
17162 # Whether dlopen of statically linked programs is supported.
17163 dlopen_self_static=$enable_dlopen_self_static
17164
17165 # Commands to strip libraries.
17166 old_striplib=$lt_old_striplib
17167 striplib=$lt_striplib
17168
17169
17170 # The linker used to build libraries.
17171 LD=$lt_LD
17172
17173 # How to create reloadable object files.
17174 reload_flag=$lt_reload_flag
17175 reload_cmds=$lt_reload_cmds
17176
17177 # Commands used to build an old-style archive.
17178 old_archive_cmds=$lt_old_archive_cmds
17179
17180 # A language specific compiler.
17181 CC=$lt_compiler
17182
17183 # Is the compiler the GNU compiler?
17184 with_gcc=$GCC
17185
17186 # Compiler flag to turn off builtin functions.
17187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17188
17189 # Additional compiler flags for building library objects.
17190 pic_flag=$lt_lt_prog_compiler_pic
17191
17192 # How to pass a linker flag through the compiler.
17193 wl=$lt_lt_prog_compiler_wl
17194
17195 # Compiler flag to prevent dynamic linking.
17196 link_static_flag=$lt_lt_prog_compiler_static
17197
17198 # Does compiler simultaneously support -c and -o options?
17199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17200
17201 # Whether or not to add -lc for building shared libraries.
17202 build_libtool_need_lc=$archive_cmds_need_lc
17203
17204 # Whether or not to disallow shared libs when runtime libs are static.
17205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17206
17207 # Compiler flag to allow reflexive dlopens.
17208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17209
17210 # Compiler flag to generate shared objects directly from archives.
17211 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17212
17213 # Whether the compiler copes with passing no objects directly.
17214 compiler_needs_object=$lt_compiler_needs_object
17215
17216 # Create an old-style archive from a shared archive.
17217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17218
17219 # Create a temporary old-style archive to link instead of a shared archive.
17220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17221
17222 # Commands used to build a shared archive.
17223 archive_cmds=$lt_archive_cmds
17224 archive_expsym_cmds=$lt_archive_expsym_cmds
17225
17226 # Commands used to build a loadable module if different from building
17227 # a shared archive.
17228 module_cmds=$lt_module_cmds
17229 module_expsym_cmds=$lt_module_expsym_cmds
17230
17231 # Whether we are building with GNU ld or not.
17232 with_gnu_ld=$lt_with_gnu_ld
17233
17234 # Flag that allows shared libraries with undefined symbols to be built.
17235 allow_undefined_flag=$lt_allow_undefined_flag
17236
17237 # Flag that enforces no undefined symbols.
17238 no_undefined_flag=$lt_no_undefined_flag
17239
17240 # Flag to hardcode \$libdir into a binary during linking.
17241 # This must work even if \$libdir does not exist
17242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17243
17244 # If ld is used when linking, flag to hardcode \$libdir into a binary
17245 # during linking. This must work even if \$libdir does not exist.
17246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17247
17248 # Whether we need a single "-rpath" flag with a separated argument.
17249 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17250
17251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17252 # DIR into the resulting binary.
17253 hardcode_direct=$hardcode_direct
17254
17255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17256 # DIR into the resulting binary and the resulting library dependency is
17257 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17258 # library is relocated.
17259 hardcode_direct_absolute=$hardcode_direct_absolute
17260
17261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17262 # into the resulting binary.
17263 hardcode_minus_L=$hardcode_minus_L
17264
17265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17266 # into the resulting binary.
17267 hardcode_shlibpath_var=$hardcode_shlibpath_var
17268
17269 # Set to "yes" if building a shared library automatically hardcodes DIR
17270 # into the library and all subsequent libraries and executables linked
17271 # against it.
17272 hardcode_automatic=$hardcode_automatic
17273
17274 # Set to yes if linker adds runtime paths of dependent libraries
17275 # to runtime path list.
17276 inherit_rpath=$inherit_rpath
17277
17278 # Whether libtool must link a program against all its dependency libraries.
17279 link_all_deplibs=$link_all_deplibs
17280
17281 # Set to "yes" if exported symbols are required.
17282 always_export_symbols=$always_export_symbols
17283
17284 # The commands to list exported symbols.
17285 export_symbols_cmds=$lt_export_symbols_cmds
17286
17287 # Symbols that should not be listed in the preloaded symbols.
17288 exclude_expsyms=$lt_exclude_expsyms
17289
17290 # Symbols that must always be exported.
17291 include_expsyms=$lt_include_expsyms
17292
17293 # Commands necessary for linking programs (against libraries) with templates.
17294 prelink_cmds=$lt_prelink_cmds
17295
17296 # Commands necessary for finishing linking programs.
17297 postlink_cmds=$lt_postlink_cmds
17298
17299 # Specify filename containing input files.
17300 file_list_spec=$lt_file_list_spec
17301
17302 # How to hardcode a shared library path into an executable.
17303 hardcode_action=$hardcode_action
17304
17305 # The directories searched by this compiler when creating a shared library.
17306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17307
17308 # Dependencies to place before and after the objects being linked to
17309 # create a shared library.
17310 predep_objects=$lt_predep_objects
17311 postdep_objects=$lt_postdep_objects
17312 predeps=$lt_predeps
17313 postdeps=$lt_postdeps
17314
17315 # The library search path used internally by the compiler when linking
17316 # a shared library.
17317 compiler_lib_search_path=$lt_compiler_lib_search_path
17318
17319 # ### END LIBTOOL CONFIG
17320
17321 _LT_EOF
17322
17323 case $host_os in
17324 aix3*)
17325 cat <<\_LT_EOF >> "$cfgfile"
17326 # AIX sometimes has problems with the GCC collect2 program. For some
17327 # reason, if we set the COLLECT_NAMES environment variable, the problems
17328 # vanish in a puff of smoke.
17329 if test "X${COLLECT_NAMES+set}" != Xset; then
17330 COLLECT_NAMES=
17331 export COLLECT_NAMES
17332 fi
17333 _LT_EOF
17334 ;;
17335 esac
17336
17337
17338 ltmain="$ac_aux_dir/ltmain.sh"
17339
17340
17341 # We use sed instead of cat because bash on DJGPP gets confused if
17342 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17343 # text mode, it properly converts lines to CR/LF. This bash problem
17344 # is reportedly fixed, but why not run on old versions too?
17345 sed '$q' "$ltmain" >> "$cfgfile" \
17346 || (rm -f "$cfgfile"; exit 1)
17347
17348 if test x"$xsi_shell" = xyes; then
17349 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17350 func_dirname ()\
17351 {\
17352 \ case ${1} in\
17353 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17354 \ * ) func_dirname_result="${3}" ;;\
17355 \ esac\
17356 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17357 && mv -f "$cfgfile.tmp" "$cfgfile" \
17358 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17359 test 0 -eq $? || _lt_function_replace_fail=:
17360
17361
17362 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17363 func_basename ()\
17364 {\
17365 \ func_basename_result="${1##*/}"\
17366 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17367 && mv -f "$cfgfile.tmp" "$cfgfile" \
17368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17369 test 0 -eq $? || _lt_function_replace_fail=:
17370
17371
17372 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17373 func_dirname_and_basename ()\
17374 {\
17375 \ case ${1} in\
17376 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17377 \ * ) func_dirname_result="${3}" ;;\
17378 \ esac\
17379 \ func_basename_result="${1##*/}"\
17380 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17381 && mv -f "$cfgfile.tmp" "$cfgfile" \
17382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17383 test 0 -eq $? || _lt_function_replace_fail=:
17384
17385
17386 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17387 func_stripname ()\
17388 {\
17389 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17390 \ # positional parameters, so assign one to ordinary parameter first.\
17391 \ func_stripname_result=${3}\
17392 \ func_stripname_result=${func_stripname_result#"${1}"}\
17393 \ func_stripname_result=${func_stripname_result%"${2}"}\
17394 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17395 && mv -f "$cfgfile.tmp" "$cfgfile" \
17396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17397 test 0 -eq $? || _lt_function_replace_fail=:
17398
17399
17400 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17401 func_split_long_opt ()\
17402 {\
17403 \ func_split_long_opt_name=${1%%=*}\
17404 \ func_split_long_opt_arg=${1#*=}\
17405 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17406 && mv -f "$cfgfile.tmp" "$cfgfile" \
17407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17408 test 0 -eq $? || _lt_function_replace_fail=:
17409
17410
17411 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17412 func_split_short_opt ()\
17413 {\
17414 \ func_split_short_opt_arg=${1#??}\
17415 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17416 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17417 && mv -f "$cfgfile.tmp" "$cfgfile" \
17418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17419 test 0 -eq $? || _lt_function_replace_fail=:
17420
17421
17422 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17423 func_lo2o ()\
17424 {\
17425 \ case ${1} in\
17426 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17427 \ *) func_lo2o_result=${1} ;;\
17428 \ esac\
17429 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17430 && mv -f "$cfgfile.tmp" "$cfgfile" \
17431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17432 test 0 -eq $? || _lt_function_replace_fail=:
17433
17434
17435 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17436 func_xform ()\
17437 {\
17438 func_xform_result=${1%.*}.lo\
17439 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17440 && mv -f "$cfgfile.tmp" "$cfgfile" \
17441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17442 test 0 -eq $? || _lt_function_replace_fail=:
17443
17444
17445 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17446 func_arith ()\
17447 {\
17448 func_arith_result=$(( $* ))\
17449 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17450 && mv -f "$cfgfile.tmp" "$cfgfile" \
17451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17452 test 0 -eq $? || _lt_function_replace_fail=:
17453
17454
17455 sed -e '/^func_len ()$/,/^} # func_len /c\
17456 func_len ()\
17457 {\
17458 func_len_result=${#1}\
17459 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17460 && mv -f "$cfgfile.tmp" "$cfgfile" \
17461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17462 test 0 -eq $? || _lt_function_replace_fail=:
17463
17464 fi
17465
17466 if test x"$lt_shell_append" = xyes; then
17467 sed -e '/^func_append ()$/,/^} # func_append /c\
17468 func_append ()\
17469 {\
17470 eval "${1}+=\\${2}"\
17471 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17472 && mv -f "$cfgfile.tmp" "$cfgfile" \
17473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17474 test 0 -eq $? || _lt_function_replace_fail=:
17475
17476
17477 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17478 func_append_quoted ()\
17479 {\
17480 \ func_quote_for_eval "${2}"\
17481 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17482 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17483 && mv -f "$cfgfile.tmp" "$cfgfile" \
17484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17485 test 0 -eq $? || _lt_function_replace_fail=:
17486
17487
17488 # Save a `func_append' function call where possible by direct use of '+='
17489 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17490 && mv -f "$cfgfile.tmp" "$cfgfile" \
17491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17492 test 0 -eq $? || _lt_function_replace_fail=:
17493 else
17494 # Save a `func_append' function call even when '+=' is not available
17495 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17496 && mv -f "$cfgfile.tmp" "$cfgfile" \
17497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17498 test 0 -eq $? || _lt_function_replace_fail=:
17499 fi
17500
17501 if test x"$_lt_function_replace_fail" = x":"; then
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17503 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17504 fi
17505
17506
17507 mv -f "$cfgfile" "$ofile" ||
17508 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17509 chmod +x "$ofile"
17510
17511
17512 cat <<_LT_EOF >> "$ofile"
17513
17514 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17515
17516 # The linker used to build libraries.
17517 LD=$lt_LD_CXX
17518
17519 # How to create reloadable object files.
17520 reload_flag=$lt_reload_flag_CXX
17521 reload_cmds=$lt_reload_cmds_CXX
17522
17523 # Commands used to build an old-style archive.
17524 old_archive_cmds=$lt_old_archive_cmds_CXX
17525
17526 # A language specific compiler.
17527 CC=$lt_compiler_CXX
17528
17529 # Is the compiler the GNU compiler?
17530 with_gcc=$GCC_CXX
17531
17532 # Compiler flag to turn off builtin functions.
17533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17534
17535 # Additional compiler flags for building library objects.
17536 pic_flag=$lt_lt_prog_compiler_pic_CXX
17537
17538 # How to pass a linker flag through the compiler.
17539 wl=$lt_lt_prog_compiler_wl_CXX
17540
17541 # Compiler flag to prevent dynamic linking.
17542 link_static_flag=$lt_lt_prog_compiler_static_CXX
17543
17544 # Does compiler simultaneously support -c and -o options?
17545 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17546
17547 # Whether or not to add -lc for building shared libraries.
17548 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17549
17550 # Whether or not to disallow shared libs when runtime libs are static.
17551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17552
17553 # Compiler flag to allow reflexive dlopens.
17554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17555
17556 # Compiler flag to generate shared objects directly from archives.
17557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17558
17559 # Whether the compiler copes with passing no objects directly.
17560 compiler_needs_object=$lt_compiler_needs_object_CXX
17561
17562 # Create an old-style archive from a shared archive.
17563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17564
17565 # Create a temporary old-style archive to link instead of a shared archive.
17566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17567
17568 # Commands used to build a shared archive.
17569 archive_cmds=$lt_archive_cmds_CXX
17570 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17571
17572 # Commands used to build a loadable module if different from building
17573 # a shared archive.
17574 module_cmds=$lt_module_cmds_CXX
17575 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17576
17577 # Whether we are building with GNU ld or not.
17578 with_gnu_ld=$lt_with_gnu_ld_CXX
17579
17580 # Flag that allows shared libraries with undefined symbols to be built.
17581 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17582
17583 # Flag that enforces no undefined symbols.
17584 no_undefined_flag=$lt_no_undefined_flag_CXX
17585
17586 # Flag to hardcode \$libdir into a binary during linking.
17587 # This must work even if \$libdir does not exist
17588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17589
17590 # If ld is used when linking, flag to hardcode \$libdir into a binary
17591 # during linking. This must work even if \$libdir does not exist.
17592 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17593
17594 # Whether we need a single "-rpath" flag with a separated argument.
17595 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17596
17597 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17598 # DIR into the resulting binary.
17599 hardcode_direct=$hardcode_direct_CXX
17600
17601 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17602 # DIR into the resulting binary and the resulting library dependency is
17603 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17604 # library is relocated.
17605 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17606
17607 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17608 # into the resulting binary.
17609 hardcode_minus_L=$hardcode_minus_L_CXX
17610
17611 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17612 # into the resulting binary.
17613 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17614
17615 # Set to "yes" if building a shared library automatically hardcodes DIR
17616 # into the library and all subsequent libraries and executables linked
17617 # against it.
17618 hardcode_automatic=$hardcode_automatic_CXX
17619
17620 # Set to yes if linker adds runtime paths of dependent libraries
17621 # to runtime path list.
17622 inherit_rpath=$inherit_rpath_CXX
17623
17624 # Whether libtool must link a program against all its dependency libraries.
17625 link_all_deplibs=$link_all_deplibs_CXX
17626
17627 # Set to "yes" if exported symbols are required.
17628 always_export_symbols=$always_export_symbols_CXX
17629
17630 # The commands to list exported symbols.
17631 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17632
17633 # Symbols that should not be listed in the preloaded symbols.
17634 exclude_expsyms=$lt_exclude_expsyms_CXX
17635
17636 # Symbols that must always be exported.
17637 include_expsyms=$lt_include_expsyms_CXX
17638
17639 # Commands necessary for linking programs (against libraries) with templates.
17640 prelink_cmds=$lt_prelink_cmds_CXX
17641
17642 # Commands necessary for finishing linking programs.
17643 postlink_cmds=$lt_postlink_cmds_CXX
17644
17645 # Specify filename containing input files.
17646 file_list_spec=$lt_file_list_spec_CXX
17647
17648 # How to hardcode a shared library path into an executable.
17649 hardcode_action=$hardcode_action_CXX
17650
17651 # The directories searched by this compiler when creating a shared library.
17652 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17653
17654 # Dependencies to place before and after the objects being linked to
17655 # create a shared library.
17656 predep_objects=$lt_predep_objects_CXX
17657 postdep_objects=$lt_postdep_objects_CXX
17658 predeps=$lt_predeps_CXX
17659 postdeps=$lt_postdeps_CXX
17660
17661 # The library search path used internally by the compiler when linking
17662 # a shared library.
17663 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17664
17665 # ### END LIBTOOL TAG CONFIG: CXX
17666 _LT_EOF
17667
17668 ;;
17669
17670 esac
17671 done # for ac_tag
17672
17673
17674 as_fn_exit 0
17675 _ACEOF
17676 ac_clean_files=$ac_clean_files_save
17677
17678 test $ac_write_fail = 0 ||
17679 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17680
17681
17682 # configure is writing to config.log, and then calls config.status.
17683 # config.status does its own redirection, appending to config.log.
17684 # Unfortunately, on DOS this fails, as config.log is still kept open
17685 # by configure, so config.status won't be able to write to it; its
17686 # output is simply discarded. So we exec the FD to /dev/null,
17687 # effectively closing config.log, so it can be properly (re)opened and
17688 # appended to by config.status. When coming back to configure, we
17689 # need to make the FD available again.
17690 if test "$no_create" != yes; then
17691 ac_cs_success=:
17692 ac_config_status_args=
17693 test "$silent" = yes &&
17694 ac_config_status_args="$ac_config_status_args --quiet"
17695 exec 5>/dev/null
17696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17697 exec 5>>config.log
17698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17699 # would make configure fail if this is the last instruction.
17700 $ac_cs_success || as_fn_exit 1
17701 fi
17702 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17704 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17705 fi
17706