]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
Regenerate configure of target libraries
[thirdparty/gcc.git] / libvtv / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Vtable Verification Runtime Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Vtable Verification Runtime Library'
558 PACKAGE_TARNAME='libvtv'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libvtv/'
563
564 ac_unique_file="vtv_rts.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 get_gcc_base_ver
606 VTV_NO_OBSTACK_FALSE
607 VTV_NO_OBSTACK_TRUE
608 VTV_CYGMIN_FALSE
609 VTV_CYGMIN_TRUE
610 XCFLAGS
611 libtool_VERSION
612 enable_static
613 enable_shared
614 lt_host_flags
615 CXXCPP
616 OTOOL64
617 OTOOL
618 LIPO
619 NMEDIT
620 DSYMUTIL
621 OBJDUMP
622 LN_S
623 NM
624 ac_ct_DUMPBIN
625 DUMPBIN
626 LD
627 FGREP
628 SED
629 LIBTOOL
630 RANLIB
631 AR
632 AS
633 CCASFLAGS
634 CCAS
635 am__fastdepCXX_FALSE
636 am__fastdepCXX_TRUE
637 CXXDEPMODE
638 ac_ct_CXX
639 CXXFLAGS
640 CXX
641 toolexeclibdir
642 toolexecdir
643 toplevel_srcdir
644 toplevel_builddir
645 libvtv_srcdir
646 libvtv_builddir
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 am__nodep
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 am__untar
661 am__tar
662 AMTAR
663 am__leading_dot
664 SET_MAKE
665 AWK
666 mkdir_p
667 MKDIR_P
668 INSTALL_STRIP_PROGRAM
669 STRIP
670 install_sh
671 MAKEINFO
672 AUTOHEADER
673 AUTOMAKE
674 AUTOCONF
675 ACLOCAL
676 VERSION
677 PACKAGE
678 CYGPATH_W
679 am__isrc
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 ENABLE_VTABLE_VERIFY_FALSE
684 ENABLE_VTABLE_VERIFY_TRUE
685 EGREP
686 GREP
687 CPP
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 LIBSTDCXX_RAW_CXX_LDFLAGS
696 LIBSTDCXX_RAW_CXX_CXXFLAGS
697 target_noncanonical
698 target_os
699 target_vendor
700 target_cpu
701 target
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 multi_basedir
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_multilib
753 enable_version_specific_runtime_libs
754 enable_vtable_verify
755 enable_dependency_tracking
756 enable_maintainer_mode
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 enable_libtool_lock
763 enable_cet
764 with_gcc_major_version_only
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 CPP
775 CXXCPP'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
835 fi
836
837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066 ac_prev=sbindir ;;
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068 | --sbi=* | --sb=*)
1069 sbindir=$ac_optarg ;;
1070
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1074 | --sha | --sh)
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079 | --sha=* | --sh=*)
1080 sharedstatedir=$ac_optarg ;;
1081
1082 -site | --site | --sit)
1083 ac_prev=site ;;
1084 -site=* | --site=* | --sit=*)
1085 site=$ac_optarg ;;
1086
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088 ac_prev=srcdir ;;
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1091
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1098
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1103
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 verbose=yes ;;
1106
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1109
1110 -with-* | --with-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=\$ac_optarg ;;
1125
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "with_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval with_$ac_useropt=no ;;
1141
1142 --x)
1143 # Obsolete; use --with-x.
1144 with_x=yes ;;
1145
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1152
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1159
1160 -*) as_fn_error "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1162 ;;
1163
1164 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1170 esac
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1173
1174 *)
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180 ;;
1181
1182 esac
1183 done
1184
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option"
1188 fi
1189
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1192 no) ;;
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac
1196 fi
1197
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1203 do
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1206 case $ac_val in
1207 */ )
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1210 esac
1211 # Be sure to have absolute directory names.
1212 case $ac_val in
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory"
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
1278 srcdir=$ac_confdir
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 srcdir=..
1281 fi
1282 else
1283 ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1292 pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1316 cat <<_ACEOF
1317 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1370 _ACEOF
1371
1372 cat <<\_ACEOF
1373
1374 Program names:
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1378
1379 System types:
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1389 esac
1390 cat <<\_ACEOF
1391
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-multilib build many library versions (default)
1397 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1398 --enable-vtable-verify Enable vtable verification feature
1399 --disable-dependency-tracking speeds up one-time build
1400 --enable-dependency-tracking do not reject slow dependency extractors
1401 --enable-maintainer-mode enable make rules and dependencies not useful
1402 (and sometimes confusing) to the casual installer
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408 --enable-cet enable Intel CET in target libraries [default=no]
1409
1410 Optional Packages:
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-pic try to use only PIC/non-PIC objects [default=use
1414 both]
1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1416 --with-gcc-major-version-only
1417 use only GCC major number in filesystem paths
1418
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 CPP C preprocessor
1428 CXX C++ compiler command
1429 CXXFLAGS C++ compiler flags
1430 CXXCPP C++ preprocessor
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to the package provider.
1436 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1437 General help using GNU software: <http://www.gnu.org/gethelp/>.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1465
1466 case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495 fi
1496
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1499 cat <<\_ACEOF
1500 GNU Vtable Verification Runtime Library configure 1.0
1501 generated by GNU Autoconf 2.64
1502
1503 Copyright (C) 2009 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1506 _ACEOF
1507 exit
1508 fi
1509
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1513
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546 fi
1547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1548 return $ac_retval
1549
1550 } # ac_fn_c_try_compile
1551
1552 # ac_fn_c_try_cpp LINENO
1553 # ----------------------
1554 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_cpp ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { { ac_try="$ac_cpp conftest.$ac_ext"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } >/dev/null && {
1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 }; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583 fi
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 return $ac_retval
1586
1587 } # ac_fn_c_try_cpp
1588
1589 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1590 # -------------------------------------------------------
1591 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1592 # the include files in INCLUDES and setting the cache variable VAR
1593 # accordingly.
1594 ac_fn_c_check_header_mongrel ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 $as_echo_n "checking for $2... " >&6; }
1600 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1601 $as_echo_n "(cached) " >&6
1602 fi
1603 eval ac_res=\$$3
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606 else
1607 # Is the header compilable?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1609 $as_echo_n "checking $2 usability... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 ac_header_compiler=yes
1617 else
1618 ac_header_compiler=no
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1622 $as_echo "$ac_header_compiler" >&6; }
1623
1624 # Is the header present?
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1626 $as_echo_n "checking $2 presence... " >&6; }
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_cpp "$LINENO"; then :
1632 ac_header_preproc=yes
1633 else
1634 ac_header_preproc=no
1635 fi
1636 rm -f conftest.err conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1638 $as_echo "$ac_header_preproc" >&6; }
1639
1640 # So? What about this header?
1641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1642 yes:no: )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1644 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 ;;
1648 no:yes:* )
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1650 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1652 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1654 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1656 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659 ;;
1660 esac
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 eval "$3=\$ac_header_compiler"
1667 fi
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 fi
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673
1674 } # ac_fn_c_check_header_mongrel
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=$ac_status
1711 fi
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 return $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 $4
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"; then :
1736 eval "$3=yes"
1737 else
1738 eval "$3=no"
1739 fi
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741 fi
1742 eval ac_res=\$$3
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746
1747 } # ac_fn_c_check_header_compile
1748
1749 # ac_fn_c_try_link LINENO
1750 # -----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_link ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext conftest$ac_exeext
1756 if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 $as_test_x conftest$ac_exeext
1777 }; then :
1778 ac_retval=0
1779 else
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783 ac_retval=1
1784 fi
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1792
1793 } # ac_fn_c_try_link
1794
1795 # ac_fn_c_check_func LINENO FUNC VAR
1796 # ----------------------------------
1797 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1798 ac_fn_c_check_func ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1810 #define $2 innocuous_$2
1811
1812 /* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $2 (); below.
1814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1815 <limits.h> exists even on freestanding compilers. */
1816
1817 #ifdef __STDC__
1818 # include <limits.h>
1819 #else
1820 # include <assert.h>
1821 #endif
1822
1823 #undef $2
1824
1825 /* Override any GCC internal prototype to avoid an error.
1826 Use char because int might match the return type of a GCC
1827 builtin and then its argument prototype would still apply. */
1828 #ifdef __cplusplus
1829 extern "C"
1830 #endif
1831 char $2 ();
1832 /* The GNU C library defines this for functions which it implements
1833 to always fail with ENOSYS. Some functions are actually named
1834 something starting with __ and the normal name is an alias. */
1835 #if defined __stub_$2 || defined __stub___$2
1836 choke me
1837 #endif
1838
1839 int
1840 main ()
1841 {
1842 return $2 ();
1843 ;
1844 return 0;
1845 }
1846 _ACEOF
1847 if ac_fn_c_try_link "$LINENO"; then :
1848 eval "$3=yes"
1849 else
1850 eval "$3=no"
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext \
1853 conftest$ac_exeext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860 } # ac_fn_c_check_func
1861
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext
1869 if { { ac_try="$ac_compile"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.$ac_objext; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=1
1894 fi
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1897
1898 } # ac_fn_cxx_try_compile
1899
1900 # ac_fn_cxx_try_cpp LINENO
1901 # ------------------------
1902 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_cxx_try_cpp ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_cpp conftest.$ac_ext"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } >/dev/null && {
1922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1923 test ! -s conftest.err
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1929
1930 ac_retval=1
1931 fi
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 return $ac_retval
1934
1935 } # ac_fn_cxx_try_cpp
1936
1937 # ac_fn_cxx_try_link LINENO
1938 # -------------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_cxx_try_link ()
1941 {
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest$ac_exeext
1944 if { { ac_try="$ac_link"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1957 fi
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_cxx_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest$ac_exeext && {
1963 test "$cross_compiling" = yes ||
1964 $as_test_x conftest$ac_exeext
1965 }; then :
1966 ac_retval=0
1967 else
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971 ac_retval=1
1972 fi
1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975 # interfere with the next link command; also delete a directory that is
1976 # left behind by Apple's compiler. We do this before executing the actions.
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 return $ac_retval
1980
1981 } # ac_fn_cxx_try_link
1982 cat >config.log <<_ACEOF
1983 This file contains any messages produced by compilers while
1984 running configure, to aid debugging if configure makes a mistake.
1985
1986 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1987 generated by GNU Autoconf 2.64. Invocation command line was
1988
1989 $ $0 $@
1990
1991 _ACEOF
1992 exec 5>>config.log
1993 {
1994 cat <<_ASUNAME
1995 ## --------- ##
1996 ## Platform. ##
1997 ## --------- ##
1998
1999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2004
2005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2007
2008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2011 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2015
2016 _ASUNAME
2017
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 $as_echo "PATH: $as_dir"
2024 done
2025 IFS=$as_save_IFS
2026
2027 } >&5
2028
2029 cat >&5 <<_ACEOF
2030
2031
2032 ## ----------- ##
2033 ## Core tests. ##
2034 ## ----------- ##
2035
2036 _ACEOF
2037
2038
2039 # Keep a trace of the command line.
2040 # Strip out --no-create and --no-recursion so they do not pile up.
2041 # Strip out --silent because we don't want to record it for future runs.
2042 # Also quote any args containing shell meta-characters.
2043 # Make two passes to allow for proper duplicate-argument suppression.
2044 ac_configure_args=
2045 ac_configure_args0=
2046 ac_configure_args1=
2047 ac_must_keep_next=false
2048 for ac_pass in 1 2
2049 do
2050 for ac_arg
2051 do
2052 case $ac_arg in
2053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2055 | -silent | --silent | --silen | --sile | --sil)
2056 continue ;;
2057 *\'*)
2058 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2059 esac
2060 case $ac_pass in
2061 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2062 2)
2063 as_fn_append ac_configure_args1 " '$ac_arg'"
2064 if test $ac_must_keep_next = true; then
2065 ac_must_keep_next=false # Got value, back to normal.
2066 else
2067 case $ac_arg in
2068 *=* | --config-cache | -C | -disable-* | --disable-* \
2069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2071 | -with-* | --with-* | -without-* | --without-* | --x)
2072 case "$ac_configure_args0 " in
2073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2074 esac
2075 ;;
2076 -* ) ac_must_keep_next=true ;;
2077 esac
2078 fi
2079 as_fn_append ac_configure_args " '$ac_arg'"
2080 ;;
2081 esac
2082 done
2083 done
2084 { ac_configure_args0=; unset ac_configure_args0;}
2085 { ac_configure_args1=; unset ac_configure_args1;}
2086
2087 # When interrupted or exit'd, cleanup temporary files, and complete
2088 # config.log. We remove comments because anyway the quotes in there
2089 # would cause problems or look ugly.
2090 # WARNING: Use '\'' to represent an apostrophe within the trap.
2091 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2092 trap 'exit_status=$?
2093 # Save into config.log some information that might help in debugging.
2094 {
2095 echo
2096
2097 cat <<\_ASBOX
2098 ## ---------------- ##
2099 ## Cache variables. ##
2100 ## ---------------- ##
2101 _ASBOX
2102 echo
2103 # The following way of writing the cache mishandles newlines in values,
2104 (
2105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106 eval ac_val=\$$ac_var
2107 case $ac_val in #(
2108 *${as_nl}*)
2109 case $ac_var in #(
2110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2112 esac
2113 case $ac_var in #(
2114 _ | IFS | as_nl) ;; #(
2115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116 *) { eval $ac_var=; unset $ac_var;} ;;
2117 esac ;;
2118 esac
2119 done
2120 (set) 2>&1 |
2121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122 *${as_nl}ac_space=\ *)
2123 sed -n \
2124 "s/'\''/'\''\\\\'\'''\''/g;
2125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2126 ;; #(
2127 *)
2128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2129 ;;
2130 esac |
2131 sort
2132 )
2133 echo
2134
2135 cat <<\_ASBOX
2136 ## ----------------- ##
2137 ## Output variables. ##
2138 ## ----------------- ##
2139 _ASBOX
2140 echo
2141 for ac_var in $ac_subst_vars
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150
2151 if test -n "$ac_subst_files"; then
2152 cat <<\_ASBOX
2153 ## ------------------- ##
2154 ## File substitutions. ##
2155 ## ------------------- ##
2156 _ASBOX
2157 echo
2158 for ac_var in $ac_subst_files
2159 do
2160 eval ac_val=\$$ac_var
2161 case $ac_val in
2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2163 esac
2164 $as_echo "$ac_var='\''$ac_val'\''"
2165 done | sort
2166 echo
2167 fi
2168
2169 if test -s confdefs.h; then
2170 cat <<\_ASBOX
2171 ## ----------- ##
2172 ## confdefs.h. ##
2173 ## ----------- ##
2174 _ASBOX
2175 echo
2176 cat confdefs.h
2177 echo
2178 fi
2179 test "$ac_signal" != 0 &&
2180 $as_echo "$as_me: caught signal $ac_signal"
2181 $as_echo "$as_me: exit $exit_status"
2182 } >&5
2183 rm -f core *.core core.conftest.* &&
2184 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2185 exit $exit_status
2186 ' 0
2187 for ac_signal in 1 2 13 15; do
2188 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2189 done
2190 ac_signal=0
2191
2192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2193 rm -f -r conftest* confdefs.h
2194
2195 $as_echo "/* confdefs.h */" > confdefs.h
2196
2197 # Predefined preprocessor variables.
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_NAME "$PACKAGE_NAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_STRING "$PACKAGE_STRING"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_URL "$PACKAGE_URL"
2221 _ACEOF
2222
2223
2224 # Let the site file select an alternate cache file if it wants to.
2225 # Prefer an explicitly selected file to automatically selected ones.
2226 ac_site_file1=NONE
2227 ac_site_file2=NONE
2228 if test -n "$CONFIG_SITE"; then
2229 ac_site_file1=$CONFIG_SITE
2230 elif test "x$prefix" != xNONE; then
2231 ac_site_file1=$prefix/share/config.site
2232 ac_site_file2=$prefix/etc/config.site
2233 else
2234 ac_site_file1=$ac_default_prefix/share/config.site
2235 ac_site_file2=$ac_default_prefix/etc/config.site
2236 fi
2237 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2238 do
2239 test "x$ac_site_file" = xNONE && continue
2240 if test -r "$ac_site_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2242 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2243 sed 's/^/| /' "$ac_site_file" >&5
2244 . "$ac_site_file"
2245 fi
2246 done
2247
2248 if test -r "$cache_file"; then
2249 # Some versions of bash will fail to source /dev/null (special
2250 # files actually), so we avoid doing that.
2251 if test -f "$cache_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2253 $as_echo "$as_me: loading cache $cache_file" >&6;}
2254 case $cache_file in
2255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2256 *) . "./$cache_file";;
2257 esac
2258 fi
2259 else
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2261 $as_echo "$as_me: creating cache $cache_file" >&6;}
2262 >$cache_file
2263 fi
2264
2265 # Check that the precious variables saved in the cache have kept the same
2266 # value.
2267 ac_cache_corrupted=false
2268 for ac_var in $ac_precious_vars; do
2269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2270 eval ac_new_set=\$ac_env_${ac_var}_set
2271 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2272 eval ac_new_val=\$ac_env_${ac_var}_value
2273 case $ac_old_set,$ac_new_set in
2274 set,)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2277 ac_cache_corrupted=: ;;
2278 ,set)
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2281 ac_cache_corrupted=: ;;
2282 ,);;
2283 *)
2284 if test "x$ac_old_val" != "x$ac_new_val"; then
2285 # differences in whitespace do not lead to failure.
2286 ac_old_val_w=`echo x $ac_old_val`
2287 ac_new_val_w=`echo x $ac_new_val`
2288 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2291 ac_cache_corrupted=:
2292 else
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2295 eval $ac_var=\$ac_old_val
2296 fi
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2301 fi;;
2302 esac
2303 # Pass precious variables to config.status.
2304 if test "$ac_new_set" = set; then
2305 case $ac_new_val in
2306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2307 *) ac_arg=$ac_var=$ac_new_val ;;
2308 esac
2309 case " $ac_configure_args " in
2310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2311 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2312 esac
2313 fi
2314 done
2315 if $ac_cache_corrupted; then
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2320 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2321 fi
2322 ## -------------------- ##
2323 ## Main body of script. ##
2324 ## -------------------- ##
2325
2326 ac_ext=c
2327 ac_cpp='$CPP $CPPFLAGS'
2328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331
2332
2333
2334
2335
2336 #AC_INIT(package-unused, version-unused, libvtv)
2337
2338
2339 # Default to --enable-multilib
2340 # Check whether --enable-multilib was given.
2341 if test "${enable_multilib+set}" = set; then :
2342 enableval=$enable_multilib; case "$enableval" in
2343 yes) multilib=yes ;;
2344 no) multilib=no ;;
2345 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2346 esac
2347 else
2348 multilib=yes
2349 fi
2350
2351
2352 # We may get other options which we leave undocumented:
2353 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2354 # See config-ml.in if you want the gory details.
2355
2356 if test "$srcdir" = "."; then
2357 if test "$with_target_subdir" != "."; then
2358 multi_basedir="$srcdir/$with_multisrctop../.."
2359 else
2360 multi_basedir="$srcdir/$with_multisrctop.."
2361 fi
2362 else
2363 multi_basedir="$srcdir/.."
2364 fi
2365
2366
2367 # Even if the default multilib is not a cross compilation,
2368 # it may be that some of the other multilibs are.
2369 if test $cross_compiling = no && test $multilib = yes \
2370 && test "x${with_multisubdir}" != x ; then
2371 cross_compiling=maybe
2372 fi
2373
2374 ac_config_commands="$ac_config_commands default-1"
2375
2376
2377 # -------
2378 # Options
2379 # -------
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2381 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2382 # Check whether --enable-version-specific-runtime-libs was given.
2383 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2384 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2385 yes) version_specific_libs=yes ;;
2386 no) version_specific_libs=no ;;
2387 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2388 esac
2389 else
2390 version_specific_libs=no
2391 fi
2392
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2394 $as_echo "$version_specific_libs" >&6; }
2395
2396 # Do not delete or change the following two lines. For why, see
2397 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2398 ac_aux_dir=
2399 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2400 for ac_t in install-sh install.sh shtool; do
2401 if test -f "$ac_dir/$ac_t"; then
2402 ac_aux_dir=$ac_dir
2403 ac_install_sh="$ac_aux_dir/$ac_t -c"
2404 break 2
2405 fi
2406 done
2407 done
2408 if test -z "$ac_aux_dir"; then
2409 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2410 fi
2411
2412 # These three variables are undocumented and unsupported,
2413 # and are intended to be withdrawn in a future Autoconf release.
2414 # They can cause serious problems if a builder's source tree is in a directory
2415 # whose full name contains unusual characters.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2419
2420
2421 # Make sure we can run config.sub.
2422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2423 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2424
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2426 $as_echo_n "checking build system type... " >&6; }
2427 if test "${ac_cv_build+set}" = set; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 ac_build_alias=$build_alias
2431 test "x$ac_build_alias" = x &&
2432 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2433 test "x$ac_build_alias" = x &&
2434 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2437
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2440 $as_echo "$ac_cv_build" >&6; }
2441 case $ac_cv_build in
2442 *-*-*) ;;
2443 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2444 esac
2445 build=$ac_cv_build
2446 ac_save_IFS=$IFS; IFS='-'
2447 set x $ac_cv_build
2448 shift
2449 build_cpu=$1
2450 build_vendor=$2
2451 shift; shift
2452 # Remember, the first character of IFS is used to create $*,
2453 # except with old shells:
2454 build_os=$*
2455 IFS=$ac_save_IFS
2456 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2457
2458
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2460 $as_echo_n "checking host system type... " >&6; }
2461 if test "${ac_cv_host+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 if test "x$host_alias" = x; then
2465 ac_cv_host=$ac_cv_build
2466 else
2467 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2468 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2469 fi
2470
2471 fi
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2473 $as_echo "$ac_cv_host" >&6; }
2474 case $ac_cv_host in
2475 *-*-*) ;;
2476 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2477 esac
2478 host=$ac_cv_host
2479 ac_save_IFS=$IFS; IFS='-'
2480 set x $ac_cv_host
2481 shift
2482 host_cpu=$1
2483 host_vendor=$2
2484 shift; shift
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2487 host_os=$*
2488 IFS=$ac_save_IFS
2489 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2490
2491
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2493 $as_echo_n "checking target system type... " >&6; }
2494 if test "${ac_cv_target+set}" = set; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test "x$target_alias" = x; then
2498 ac_cv_target=$ac_cv_host
2499 else
2500 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2501 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2502 fi
2503
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2506 $as_echo "$ac_cv_target" >&6; }
2507 case $ac_cv_target in
2508 *-*-*) ;;
2509 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2510 esac
2511 target=$ac_cv_target
2512 ac_save_IFS=$IFS; IFS='-'
2513 set x $ac_cv_target
2514 shift
2515 target_cpu=$1
2516 target_vendor=$2
2517 shift; shift
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2520 target_os=$*
2521 IFS=$ac_save_IFS
2522 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2523
2524
2525 # The aliases save the names the user supplied, while $host etc.
2526 # will get canonicalized.
2527 test -n "$target_alias" &&
2528 test "$program_prefix$program_suffix$program_transform_name" = \
2529 NONENONEs,x,x, &&
2530 program_prefix=${target_alias}-
2531
2532 target_alias=${target_alias-$host_alias}
2533
2534 case ${build_alias} in
2535 "") build_noncanonical=${build} ;;
2536 *) build_noncanonical=${build_alias} ;;
2537 esac
2538
2539 case ${host_alias} in
2540 "") host_noncanonical=${build_noncanonical} ;;
2541 *) host_noncanonical=${host_alias} ;;
2542 esac
2543
2544 case ${target_alias} in
2545 "") target_noncanonical=${host_noncanonical} ;;
2546 *) target_noncanonical=${target_alias} ;;
2547 esac
2548
2549
2550
2551
2552
2553 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2554 -I\$(top_builddir)/../libstdc++-v3/include \
2555 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2556 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2557 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2558 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2559
2560
2561
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_CC+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC="$CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 CC=$ac_cv_prog_CC
2597 if test -n "$CC"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2599 $as_echo "$CC" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 fi
2607 if test -z "$ac_cv_prog_CC"; then
2608 ac_ct_CC=$CC
2609 # Extract the first word of "gcc", so it can be a program name with args.
2610 set dummy gcc; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_CC="gcc"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2639 $as_echo "$ac_ct_CC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645 if test "x$ac_ct_CC" = x; then
2646 CC=""
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654 CC=$ac_ct_CC
2655 fi
2656 else
2657 CC="$ac_cv_prog_CC"
2658 fi
2659
2660 if test -z "$CC"; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}cc; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_CC+set}" = set; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_CC="${ac_tool_prefix}cc"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 CC=$ac_cv_prog_CC
2690 if test -n "$CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 fi
2701 if test -z "$CC"; then
2702 # Extract the first word of "cc", so it can be a program name with args.
2703 set dummy cc; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_CC+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$CC"; then
2710 ac_cv_prog_CC="$CC" # Let the user override the test.
2711 else
2712 ac_prog_rejected=no
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2721 ac_prog_rejected=yes
2722 continue
2723 fi
2724 ac_cv_prog_CC="cc"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 if test $ac_prog_rejected = yes; then
2733 # We found a bogon in the path, so make sure we never use it.
2734 set dummy $ac_cv_prog_CC
2735 shift
2736 if test $# != 0; then
2737 # We chose a different compiler from the bogus one.
2738 # However, it has the same basename, so the bogon will be chosen
2739 # first if we set CC to just the basename; use the full file name.
2740 shift
2741 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2742 fi
2743 fi
2744 fi
2745 fi
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2749 $as_echo "$CC" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755
2756 fi
2757 if test -z "$CC"; then
2758 if test -n "$ac_tool_prefix"; then
2759 for ac_prog in cl.exe
2760 do
2761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if test "${ac_cv_prog_CC+set}" = set; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 $as_echo "$CC" >&6; }
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798 test -n "$CC" && break
2799 done
2800 fi
2801 if test -z "$CC"; then
2802 ac_ct_CC=$CC
2803 for ac_prog in cl.exe
2804 do
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$ac_ct_CC"; then
2813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_ac_ct_CC="$ac_prog"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833 if test -n "$ac_ct_CC"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2835 $as_echo "$ac_ct_CC" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842 test -n "$ac_ct_CC" && break
2843 done
2844
2845 if test "x$ac_ct_CC" = x; then
2846 CC=""
2847 else
2848 case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854 CC=$ac_ct_CC
2855 fi
2856 fi
2857
2858 fi
2859
2860
2861 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2863 as_fn_error "no acceptable C compiler found in \$PATH
2864 See \`config.log' for more details." "$LINENO" 5; }
2865
2866 # Provide some information about the compiler.
2867 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2868 set X $ac_compile
2869 ac_compiler=$2
2870 for ac_option in --version -v -V -qversion; do
2871 { { ac_try="$ac_compiler $ac_option >&5"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2879 ac_status=$?
2880 if test -s conftest.err; then
2881 sed '10a\
2882 ... rest of stderr output deleted ...
2883 10q' conftest.err >conftest.er1
2884 cat conftest.er1 >&5
2885 rm -f conftest.er1 conftest.err
2886 fi
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; }
2889 done
2890
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2893
2894 int
2895 main ()
2896 {
2897
2898 ;
2899 return 0;
2900 }
2901 _ACEOF
2902 ac_clean_files_save=$ac_clean_files
2903 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2904 # Try to create an executable without -o first, disregard a.out.
2905 # It will help us diagnose broken compilers, and finding out an intuition
2906 # of exeext.
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2908 $as_echo_n "checking for C compiler default output file name... " >&6; }
2909 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2910
2911 # The possible output files:
2912 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2913
2914 ac_rmfiles=
2915 for ac_file in $ac_files
2916 do
2917 case $ac_file in
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2919 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2920 esac
2921 done
2922 rm -f $ac_rmfiles
2923
2924 if { { ac_try="$ac_link_default"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_link_default") 2>&5
2932 ac_status=$?
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; then :
2935 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2936 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2937 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2938 # so that the user can short-circuit this test for compilers unknown to
2939 # Autoconf.
2940 for ac_file in $ac_files ''
2941 do
2942 test -f "$ac_file" || continue
2943 case $ac_file in
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2945 ;;
2946 [ab].out )
2947 # We found the default executable, but exeext='' is most
2948 # certainly right.
2949 break;;
2950 *.* )
2951 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2952 then :; else
2953 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 fi
2955 # We set ac_cv_exeext here because the later test for it is not
2956 # safe: cross compilers may not add the suffix if given an `-o'
2957 # argument, so we may need to know it at that point already.
2958 # Even if this section looks crufty: it has the advantage of
2959 # actually working.
2960 break;;
2961 * )
2962 break;;
2963 esac
2964 done
2965 test "$ac_cv_exeext" = no && ac_cv_exeext=
2966
2967 else
2968 ac_file=''
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2971 $as_echo "$ac_file" >&6; }
2972 if test -z "$ac_file"; then :
2973 $as_echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978 { as_fn_set_status 77
2979 as_fn_error "C compiler cannot create executables
2980 See \`config.log' for more details." "$LINENO" 5; }; }
2981 fi
2982 ac_exeext=$ac_cv_exeext
2983
2984 # Check that the compiler produces executables we can run. If not, either
2985 # the compiler is broken, or we cross compile.
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2987 $as_echo_n "checking whether the C compiler works... " >&6; }
2988 # If not cross compiling, check that we can run a simple program.
2989 if test "$cross_compiling" != yes; then
2990 if { ac_try='./$ac_file'
2991 { { case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994 esac
2995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_try") 2>&5
2998 ac_status=$?
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; }; then
3001 cross_compiling=no
3002 else
3003 if test "$cross_compiling" = maybe; then
3004 cross_compiling=yes
3005 else
3006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 as_fn_error "cannot run C compiled programs.
3009 If you meant to cross compile, use \`--host'.
3010 See \`config.log' for more details." "$LINENO" 5; }
3011 fi
3012 fi
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015 $as_echo "yes" >&6; }
3016
3017 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3018 ac_clean_files=$ac_clean_files_save
3019 # Check that the compiler produces executables we can run. If not, either
3020 # the compiler is broken, or we cross compile.
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3022 $as_echo_n "checking whether we are cross compiling... " >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3024 $as_echo "$cross_compiling" >&6; }
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3027 $as_echo_n "checking for suffix of executables... " >&6; }
3028 if { { ac_try="$ac_link"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; then :
3039 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3040 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3041 # work properly (i.e., refer to `conftest.exe'), while it won't with
3042 # `rm'.
3043 for ac_file in conftest.exe conftest conftest.*; do
3044 test -f "$ac_file" || continue
3045 case $ac_file in
3046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048 break;;
3049 * ) break;;
3050 esac
3051 done
3052 else
3053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error "cannot compute suffix of executables: cannot compile and link
3056 See \`config.log' for more details." "$LINENO" 5; }
3057 fi
3058 rm -f conftest$ac_cv_exeext
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3060 $as_echo "$ac_cv_exeext" >&6; }
3061
3062 rm -f conftest.$ac_ext
3063 EXEEXT=$ac_cv_exeext
3064 ac_exeext=$EXEEXT
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3066 $as_echo_n "checking for suffix of object files... " >&6; }
3067 if test "${ac_cv_objext+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3072
3073 int
3074 main ()
3075 {
3076
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.o conftest.obj
3082 if { { ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_compile") 2>&5
3090 ac_status=$?
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }; then :
3093 for ac_file in conftest.o conftest.obj conftest.*; do
3094 test -f "$ac_file" || continue;
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3098 break;;
3099 esac
3100 done
3101 else
3102 $as_echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3107 as_fn_error "cannot compute suffix of object files: cannot compile
3108 See \`config.log' for more details." "$LINENO" 5; }
3109 fi
3110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3113 $as_echo "$ac_cv_objext" >&6; }
3114 OBJEXT=$ac_cv_objext
3115 ac_objext=$OBJEXT
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3117 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3118 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3123
3124 int
3125 main ()
3126 {
3127 #ifndef __GNUC__
3128 choke me
3129 #endif
3130
3131 ;
3132 return 0;
3133 }
3134 _ACEOF
3135 if ac_fn_c_try_compile "$LINENO"; then :
3136 ac_compiler_gnu=yes
3137 else
3138 ac_compiler_gnu=no
3139 fi
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3142
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3145 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3146 if test $ac_compiler_gnu = yes; then
3147 GCC=yes
3148 else
3149 GCC=
3150 fi
3151 ac_test_CFLAGS=${CFLAGS+set}
3152 ac_save_CFLAGS=$CFLAGS
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3154 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3155 if test "${ac_cv_prog_cc_g+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 ac_save_c_werror_flag=$ac_c_werror_flag
3159 ac_c_werror_flag=yes
3160 ac_cv_prog_cc_g=no
3161 CFLAGS="-g"
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3164
3165 int
3166 main ()
3167 {
3168
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 if ac_fn_c_try_compile "$LINENO"; then :
3174 ac_cv_prog_cc_g=yes
3175 else
3176 CFLAGS=""
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3179
3180 int
3181 main ()
3182 {
3183
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 if ac_fn_c_try_compile "$LINENO"; then :
3189
3190 else
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3192 CFLAGS="-g"
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3195
3196 int
3197 main ()
3198 {
3199
3200 ;
3201 return 0;
3202 }
3203 _ACEOF
3204 if ac_fn_c_try_compile "$LINENO"; then :
3205 ac_cv_prog_cc_g=yes
3206 fi
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 fi
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 ac_c_werror_flag=$ac_save_c_werror_flag
3213 fi
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3215 $as_echo "$ac_cv_prog_cc_g" >&6; }
3216 if test "$ac_test_CFLAGS" = set; then
3217 CFLAGS=$ac_save_CFLAGS
3218 elif test $ac_cv_prog_cc_g = yes; then
3219 if test "$GCC" = yes; then
3220 CFLAGS="-g -O2"
3221 else
3222 CFLAGS="-g"
3223 fi
3224 else
3225 if test "$GCC" = yes; then
3226 CFLAGS="-O2"
3227 else
3228 CFLAGS=
3229 fi
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3232 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3233 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 ac_cv_prog_cc_c89=no
3237 ac_save_CC=$CC
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239 /* end confdefs.h. */
3240 #include <stdarg.h>
3241 #include <stdio.h>
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3248 char **p;
3249 int i;
3250 {
3251 return p[i];
3252 }
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3254 {
3255 char *s;
3256 va_list v;
3257 va_start (v,p);
3258 s = g (p, va_arg (v,int));
3259 va_end (v);
3260 return s;
3261 }
3262
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3264 function prototypes and stuff, but not '\xHH' hex character constants.
3265 These don't provoke an error unfortunately, instead are silently treated
3266 as 'x'. The following induces an error, until -std is added to get
3267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3268 array size at least. It's necessary to write '\x00'==0 to get something
3269 that's true only with -std. */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3271
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273 inside strings and character constants. */
3274 #define FOO(x) 'x'
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3276
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 int argc;
3282 char **argv;
3283 int
3284 main ()
3285 {
3286 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3293 do
3294 CC="$ac_save_CC $ac_arg"
3295 if ac_fn_c_try_compile "$LINENO"; then :
3296 ac_cv_prog_cc_c89=$ac_arg
3297 fi
3298 rm -f core conftest.err conftest.$ac_objext
3299 test "x$ac_cv_prog_cc_c89" != "xno" && break
3300 done
3301 rm -f conftest.$ac_ext
3302 CC=$ac_save_CC
3303
3304 fi
3305 # AC_CACHE_VAL
3306 case "x$ac_cv_prog_cc_c89" in
3307 x)
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3309 $as_echo "none needed" >&6; } ;;
3310 xno)
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3312 $as_echo "unsupported" >&6; } ;;
3313 *)
3314 CC="$CC $ac_cv_prog_cc_c89"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3316 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3317 esac
3318 if test "x$ac_cv_prog_cc_c89" != xno; then :
3319
3320 fi
3321
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327
3328
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3335 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3336 # On Suns, sometimes $CPP names a directory.
3337 if test -n "$CPP" && test -d "$CPP"; then
3338 CPP=
3339 fi
3340 if test -z "$CPP"; then
3341 if test "${ac_cv_prog_CPP+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 # Double quotes because CPP needs to be expanded
3345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3346 do
3347 ac_preproc_ok=false
3348 for ac_c_preproc_warn_flag in '' yes
3349 do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363 Syntax error
3364 _ACEOF
3365 if ac_fn_c_try_cpp "$LINENO"; then :
3366
3367 else
3368 # Broken: fails on valid input.
3369 continue
3370 fi
3371 rm -f conftest.err conftest.$ac_ext
3372
3373 # OK, works on sane cases. Now check whether nonexistent headers
3374 # can be detected and how.
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3378 _ACEOF
3379 if ac_fn_c_try_cpp "$LINENO"; then :
3380 # Broken: success on invalid input.
3381 continue
3382 else
3383 # Passes both tests.
3384 ac_preproc_ok=:
3385 break
3386 fi
3387 rm -f conftest.err conftest.$ac_ext
3388
3389 done
3390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3391 rm -f conftest.err conftest.$ac_ext
3392 if $ac_preproc_ok; then :
3393 break
3394 fi
3395
3396 done
3397 ac_cv_prog_CPP=$CPP
3398
3399 fi
3400 CPP=$ac_cv_prog_CPP
3401 else
3402 ac_cv_prog_CPP=$CPP
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3405 $as_echo "$CPP" >&6; }
3406 ac_preproc_ok=false
3407 for ac_c_preproc_warn_flag in '' yes
3408 do
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error" is here to catch this case.
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417 #ifdef __STDC__
3418 # include <limits.h>
3419 #else
3420 # include <assert.h>
3421 #endif
3422 Syntax error
3423 _ACEOF
3424 if ac_fn_c_try_cpp "$LINENO"; then :
3425
3426 else
3427 # Broken: fails on valid input.
3428 continue
3429 fi
3430 rm -f conftest.err conftest.$ac_ext
3431
3432 # OK, works on sane cases. Now check whether nonexistent headers
3433 # can be detected and how.
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436 #include <ac_nonexistent.h>
3437 _ACEOF
3438 if ac_fn_c_try_cpp "$LINENO"; then :
3439 # Broken: success on invalid input.
3440 continue
3441 else
3442 # Passes both tests.
3443 ac_preproc_ok=:
3444 break
3445 fi
3446 rm -f conftest.err conftest.$ac_ext
3447
3448 done
3449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450 rm -f conftest.err conftest.$ac_ext
3451 if $ac_preproc_ok; then :
3452
3453 else
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3457 See \`config.log' for more details." "$LINENO" 5; }
3458 fi
3459
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3469 if test "${ac_cv_path_GREP+set}" = set; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 if test -z "$GREP"; then
3473 ac_path_GREP_found=false
3474 # Loop through the user's path and test for each of PROGNAME-LIST
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3477 do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_prog in grep ggrep; do
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3484 # Check for GNU ac_path_GREP and select it if it is found.
3485 # Check for GNU $ac_path_GREP
3486 case `"$ac_path_GREP" --version 2>&1` in
3487 *GNU*)
3488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3489 *)
3490 ac_count=0
3491 $as_echo_n 0123456789 >"conftest.in"
3492 while :
3493 do
3494 cat "conftest.in" "conftest.in" >"conftest.tmp"
3495 mv "conftest.tmp" "conftest.in"
3496 cp "conftest.in" "conftest.nl"
3497 $as_echo 'GREP' >> "conftest.nl"
3498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3500 as_fn_arith $ac_count + 1 && ac_count=$as_val
3501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3502 # Best one so far, save it but keep looking for a better one
3503 ac_cv_path_GREP="$ac_path_GREP"
3504 ac_path_GREP_max=$ac_count
3505 fi
3506 # 10*(2^10) chars as input seems more than enough
3507 test $ac_count -gt 10 && break
3508 done
3509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3510 esac
3511
3512 $ac_path_GREP_found && break 3
3513 done
3514 done
3515 done
3516 IFS=$as_save_IFS
3517 if test -z "$ac_cv_path_GREP"; then
3518 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3519 fi
3520 else
3521 ac_cv_path_GREP=$GREP
3522 fi
3523
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3526 $as_echo "$ac_cv_path_GREP" >&6; }
3527 GREP="$ac_cv_path_GREP"
3528
3529
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3531 $as_echo_n "checking for egrep... " >&6; }
3532 if test "${ac_cv_path_EGREP+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3536 then ac_cv_path_EGREP="$GREP -E"
3537 else
3538 if test -z "$EGREP"; then
3539 ac_path_EGREP_found=false
3540 # Loop through the user's path and test for each of PROGNAME-LIST
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_prog in egrep; do
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3549 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3550 # Check for GNU ac_path_EGREP and select it if it is found.
3551 # Check for GNU $ac_path_EGREP
3552 case `"$ac_path_EGREP" --version 2>&1` in
3553 *GNU*)
3554 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3555 *)
3556 ac_count=0
3557 $as_echo_n 0123456789 >"conftest.in"
3558 while :
3559 do
3560 cat "conftest.in" "conftest.in" >"conftest.tmp"
3561 mv "conftest.tmp" "conftest.in"
3562 cp "conftest.in" "conftest.nl"
3563 $as_echo 'EGREP' >> "conftest.nl"
3564 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3566 as_fn_arith $ac_count + 1 && ac_count=$as_val
3567 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3568 # Best one so far, save it but keep looking for a better one
3569 ac_cv_path_EGREP="$ac_path_EGREP"
3570 ac_path_EGREP_max=$ac_count
3571 fi
3572 # 10*(2^10) chars as input seems more than enough
3573 test $ac_count -gt 10 && break
3574 done
3575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3576 esac
3577
3578 $ac_path_EGREP_found && break 3
3579 done
3580 done
3581 done
3582 IFS=$as_save_IFS
3583 if test -z "$ac_cv_path_EGREP"; then
3584 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3585 fi
3586 else
3587 ac_cv_path_EGREP=$EGREP
3588 fi
3589
3590 fi
3591 fi
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3593 $as_echo "$ac_cv_path_EGREP" >&6; }
3594 EGREP="$ac_cv_path_EGREP"
3595
3596
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3598 $as_echo_n "checking for ANSI C header files... " >&6; }
3599 if test "${ac_cv_header_stdc+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604 #include <stdlib.h>
3605 #include <stdarg.h>
3606 #include <string.h>
3607 #include <float.h>
3608
3609 int
3610 main ()
3611 {
3612
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_header_stdc=yes
3619 else
3620 ac_cv_header_stdc=no
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623
3624 if test $ac_cv_header_stdc = yes; then
3625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <string.h>
3629
3630 _ACEOF
3631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632 $EGREP "memchr" >/dev/null 2>&1; then :
3633
3634 else
3635 ac_cv_header_stdc=no
3636 fi
3637 rm -f conftest*
3638
3639 fi
3640
3641 if test $ac_cv_header_stdc = yes; then
3642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 #include <stdlib.h>
3646
3647 _ACEOF
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 $EGREP "free" >/dev/null 2>&1; then :
3650
3651 else
3652 ac_cv_header_stdc=no
3653 fi
3654 rm -f conftest*
3655
3656 fi
3657
3658 if test $ac_cv_header_stdc = yes; then
3659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3660 if test "$cross_compiling" = yes; then :
3661 :
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665 #include <ctype.h>
3666 #include <stdlib.h>
3667 #if ((' ' & 0x0FF) == 0x020)
3668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3670 #else
3671 # define ISLOWER(c) \
3672 (('a' <= (c) && (c) <= 'i') \
3673 || ('j' <= (c) && (c) <= 'r') \
3674 || ('s' <= (c) && (c) <= 'z'))
3675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3676 #endif
3677
3678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3679 int
3680 main ()
3681 {
3682 int i;
3683 for (i = 0; i < 256; i++)
3684 if (XOR (islower (i), ISLOWER (i))
3685 || toupper (i) != TOUPPER (i))
3686 return 2;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_run "$LINENO"; then :
3691
3692 else
3693 ac_cv_header_stdc=no
3694 fi
3695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3696 conftest.$ac_objext conftest.beam conftest.$ac_ext
3697 fi
3698
3699 fi
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3702 $as_echo "$ac_cv_header_stdc" >&6; }
3703 if test $ac_cv_header_stdc = yes; then
3704
3705 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3706
3707 fi
3708
3709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3711 inttypes.h stdint.h unistd.h
3712 do :
3713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3714 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3715 "
3716 eval as_val=\$$as_ac_Header
3717 if test "x$as_val" = x""yes; then :
3718 cat >>confdefs.h <<_ACEOF
3719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3720 _ACEOF
3721
3722 fi
3723
3724 done
3725
3726
3727
3728 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3729 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3730 MINIX=yes
3731 else
3732 MINIX=
3733 fi
3734
3735
3736 if test "$MINIX" = yes; then
3737
3738 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3739
3740
3741 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3742
3743
3744 $as_echo "#define _MINIX 1" >>confdefs.h
3745
3746 fi
3747
3748
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3750 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3751 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756
3757 # define __EXTENSIONS__ 1
3758 $ac_includes_default
3759 int
3760 main ()
3761 {
3762
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_safe_to_define___extensions__=yes
3769 else
3770 ac_cv_safe_to_define___extensions__=no
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3775 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3776 test $ac_cv_safe_to_define___extensions__ = yes &&
3777 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3778
3779 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3780
3781 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3782
3783 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3784
3785 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3786
3787
3788
3789 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3791 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3792 # Check whether --enable-vtable-verify was given.
3793 if test "${enable_vtable_verify+set}" = set; then :
3794 enableval=$enable_vtable_verify; case "$enableval" in
3795 yes) enable_vtable_verify=yes ;;
3796 no) enable_vtable_verify=no ;;
3797 *) enable_vtable_verify=no;;
3798 esac
3799 else
3800 enable_vtable_verify=no
3801 fi
3802
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3804 $as_echo "$enable_vtable_verify" >&6; }
3805
3806 # See if supported.
3807 unset VTV_SUPPORTED
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3809 $as_echo_n "checking for host support for vtable verification... " >&6; }
3810 . ${srcdir}/configure.tgt
3811 case ${host} in
3812 *-*-solaris2*)
3813 # libvtv requires init priority support, which depends on the linker
3814 # used on Solaris.
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3816 $as_echo_n "checking for init priority support... " >&6; }
3817 if test "${libvtv_cv_init_priority+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823
3824 int
3825 main ()
3826 {
3827 void ip (void) __attribute__ ((constructor (1)));
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 libgcc_cv_init_priority=yes
3834 else
3835 libgcc_cv_init_priority=no
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3840 $as_echo "$libvtv_cv_init_priority" >&6; }
3841 if test x$libvtv_cv_init_priority = xno; then
3842 VTV_SUPPORTED=no
3843 fi
3844 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3845 # configure.tgt restricting to libvtv to Solaris 11+.
3846 ;;
3847 esac
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3849 $as_echo "$VTV_SUPPORTED" >&6; }
3850
3851 # Decide if it's usable.
3852 use_vtable_verify=no
3853 if test "x$VTV_SUPPORTED" = "xyes"; then
3854 if test "x$enable_vtable_verify" = "xyes"; then
3855 use_vtable_verify=yes
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3857 $as_echo "$as_me: using vtable verification" >&6;}
3858 fi
3859 fi
3860 if test $use_vtable_verify = yes; then
3861 ENABLE_VTABLE_VERIFY_TRUE=
3862 ENABLE_VTABLE_VERIFY_FALSE='#'
3863 else
3864 ENABLE_VTABLE_VERIFY_TRUE='#'
3865 ENABLE_VTABLE_VERIFY_FALSE=
3866 fi
3867
3868
3869 am__api_version='1.11'
3870
3871 # Find a good install program. We prefer a C program (faster),
3872 # so one script is as good as another. But avoid the broken or
3873 # incompatible versions:
3874 # SysV /etc/install, /usr/sbin/install
3875 # SunOS /usr/etc/install
3876 # IRIX /sbin/install
3877 # AIX /bin/install
3878 # AmigaOS /C/install, which installs bootblocks on floppy discs
3879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3882 # OS/2's system install, which has a completely different semantic
3883 # ./install, which can be erroneously created by make from ./install.sh.
3884 # Reject install programs that cannot install multiple files.
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3886 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3887 if test -z "$INSTALL"; then
3888 if test "${ac_cv_path_install+set}" = set; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 # Account for people who put trailing slashes in PATH elements.
3897 case $as_dir/ in #((
3898 ./ | .// | /[cC]/* | \
3899 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3900 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3901 /usr/ucb/* ) ;;
3902 *)
3903 # OSF1 and SCO ODT 3.0 have their own names for install.
3904 # Don't use installbsd from OSF since it installs stuff as root
3905 # by default.
3906 for ac_prog in ginstall scoinst install; do
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3909 if test $ac_prog = install &&
3910 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3911 # AIX install. It has an incompatible calling convention.
3912 :
3913 elif test $ac_prog = install &&
3914 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3915 # program-specific install script used by HP pwplus--don't use.
3916 :
3917 else
3918 rm -rf conftest.one conftest.two conftest.dir
3919 echo one > conftest.one
3920 echo two > conftest.two
3921 mkdir conftest.dir
3922 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3923 test -s conftest.one && test -s conftest.two &&
3924 test -s conftest.dir/conftest.one &&
3925 test -s conftest.dir/conftest.two
3926 then
3927 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3928 break 3
3929 fi
3930 fi
3931 fi
3932 done
3933 done
3934 ;;
3935 esac
3936
3937 done
3938 IFS=$as_save_IFS
3939
3940 rm -rf conftest.one conftest.two conftest.dir
3941
3942 fi
3943 if test "${ac_cv_path_install+set}" = set; then
3944 INSTALL=$ac_cv_path_install
3945 else
3946 # As a last resort, use the slow shell script. Don't cache a
3947 # value for INSTALL within a source directory, because that will
3948 # break other packages using the cache if that directory is
3949 # removed, or if the value is a relative name.
3950 INSTALL=$ac_install_sh
3951 fi
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3954 $as_echo "$INSTALL" >&6; }
3955
3956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3957 # It thinks the first close brace ends the variable substitution.
3958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3959
3960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3961
3962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3963
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3965 $as_echo_n "checking whether build environment is sane... " >&6; }
3966 # Just in case
3967 sleep 1
3968 echo timestamp > conftest.file
3969 # Reject unsafe characters in $srcdir or the absolute working directory
3970 # name. Accept space and tab only in the latter.
3971 am_lf='
3972 '
3973 case `pwd` in
3974 *[\\\"\#\$\&\'\`$am_lf]*)
3975 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3976 esac
3977 case $srcdir in
3978 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3979 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3980 esac
3981
3982 # Do `set' in a subshell so we don't clobber the current shell's
3983 # arguments. Must try -L first in case configure is actually a
3984 # symlink; some systems play weird games with the mod time of symlinks
3985 # (eg FreeBSD returns the mod time of the symlink's containing
3986 # directory).
3987 if (
3988 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3989 if test "$*" = "X"; then
3990 # -L didn't work.
3991 set X `ls -t "$srcdir/configure" conftest.file`
3992 fi
3993 rm -f conftest.file
3994 if test "$*" != "X $srcdir/configure conftest.file" \
3995 && test "$*" != "X conftest.file $srcdir/configure"; then
3996
3997 # If neither matched, then we have a broken ls. This can happen
3998 # if, for instance, CONFIG_SHELL is bash and it inherits a
3999 # broken ls alias from the environment. This has actually
4000 # happened. Such a system could not be considered "sane".
4001 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4002 alias in your environment" "$LINENO" 5
4003 fi
4004
4005 test "$2" = conftest.file
4006 )
4007 then
4008 # Ok.
4009 :
4010 else
4011 as_fn_error "newly created file is older than distributed files!
4012 Check your system clock" "$LINENO" 5
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4016 test "$program_prefix" != NONE &&
4017 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4018 # Use a double $ so make ignores it.
4019 test "$program_suffix" != NONE &&
4020 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4021 # Double any \ or $.
4022 # By default was `s,x,x', remove it if useless.
4023 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4024 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4025
4026 # expand $ac_aux_dir to an absolute path
4027 am_aux_dir=`cd $ac_aux_dir && pwd`
4028
4029 if test x"${MISSING+set}" != xset; then
4030 case $am_aux_dir in
4031 *\ * | *\ *)
4032 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4033 *)
4034 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4035 esac
4036 fi
4037 # Use eval to expand $SHELL
4038 if eval "$MISSING --run true"; then
4039 am_missing_run="$MISSING --run "
4040 else
4041 am_missing_run=
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4043 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4044 fi
4045
4046 if test x"${install_sh}" != xset; then
4047 case $am_aux_dir in
4048 *\ * | *\ *)
4049 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4050 *)
4051 install_sh="\${SHELL} $am_aux_dir/install-sh"
4052 esac
4053 fi
4054
4055 # Installed binaries are usually stripped using `strip' when the user
4056 # run `make install-strip'. However `strip' might not be the right
4057 # tool to use in cross-compilation environments, therefore Automake
4058 # will honor the `STRIP' environment variable to overrule this program.
4059 if test "$cross_compiling" != no; then
4060 if test -n "$ac_tool_prefix"; then
4061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4062 set dummy ${ac_tool_prefix}strip; ac_word=$2
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064 $as_echo_n "checking for $ac_word... " >&6; }
4065 if test "${ac_cv_prog_STRIP+set}" = set; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 if test -n "$STRIP"; then
4069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084 IFS=$as_save_IFS
4085
4086 fi
4087 fi
4088 STRIP=$ac_cv_prog_STRIP
4089 if test -n "$STRIP"; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4091 $as_echo "$STRIP" >&6; }
4092 else
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 $as_echo "no" >&6; }
4095 fi
4096
4097
4098 fi
4099 if test -z "$ac_cv_prog_STRIP"; then
4100 ac_ct_STRIP=$STRIP
4101 # Extract the first word of "strip", so it can be a program name with args.
4102 set dummy strip; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$ac_ct_STRIP"; then
4109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_prog_ac_ct_STRIP="strip"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 fi
4127 fi
4128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4129 if test -n "$ac_ct_STRIP"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4131 $as_echo "$ac_ct_STRIP" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4135 fi
4136
4137 if test "x$ac_ct_STRIP" = x; then
4138 STRIP=":"
4139 else
4140 case $cross_compiling:$ac_tool_warned in
4141 yes:)
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4144 ac_tool_warned=yes ;;
4145 esac
4146 STRIP=$ac_ct_STRIP
4147 fi
4148 else
4149 STRIP="$ac_cv_prog_STRIP"
4150 fi
4151
4152 fi
4153 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4156 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4157 if test -z "$MKDIR_P"; then
4158 if test "${ac_cv_path_mkdir+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in mkdir gmkdir; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4170 'mkdir (GNU coreutils) '* | \
4171 'mkdir (coreutils) '* | \
4172 'mkdir (fileutils) '4.1*)
4173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4174 break 3;;
4175 esac
4176 done
4177 done
4178 done
4179 IFS=$as_save_IFS
4180
4181 fi
4182
4183 if test "${ac_cv_path_mkdir+set}" = set; then
4184 MKDIR_P="$ac_cv_path_mkdir -p"
4185 else
4186 # As a last resort, use the slow shell script. Don't cache a
4187 # value for MKDIR_P within a source directory, because that will
4188 # break other packages using the cache if that directory is
4189 # removed, or if the value is a relative name.
4190 test -d ./--version && rmdir ./--version
4191 MKDIR_P="$ac_install_sh -d"
4192 fi
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4195 $as_echo "$MKDIR_P" >&6; }
4196
4197 mkdir_p="$MKDIR_P"
4198 case $mkdir_p in
4199 [\\/$]* | ?:[\\/]*) ;;
4200 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4201 esac
4202
4203 for ac_prog in gawk mawk nawk awk
4204 do
4205 # Extract the first word of "$ac_prog", so it can be a program name with args.
4206 set dummy $ac_prog; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if test "${ac_cv_prog_AWK+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$AWK"; then
4213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_prog_AWK="$ac_prog"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 AWK=$ac_cv_prog_AWK
4233 if test -n "$AWK"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4235 $as_echo "$AWK" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242 test -n "$AWK" && break
4243 done
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4247 set x ${MAKE-make}
4248 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4249 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 cat >conftest.make <<\_ACEOF
4253 SHELL = /bin/sh
4254 all:
4255 @echo '@@@%%%=$(MAKE)=@@@%%%'
4256 _ACEOF
4257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4259 *@@@%%%=?*=@@@%%%*)
4260 eval ac_cv_prog_make_${ac_make}_set=yes;;
4261 *)
4262 eval ac_cv_prog_make_${ac_make}_set=no;;
4263 esac
4264 rm -f conftest.make
4265 fi
4266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4268 $as_echo "yes" >&6; }
4269 SET_MAKE=
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4273 SET_MAKE="MAKE=${MAKE-make}"
4274 fi
4275
4276 rm -rf .tst 2>/dev/null
4277 mkdir .tst 2>/dev/null
4278 if test -d .tst; then
4279 am__leading_dot=.
4280 else
4281 am__leading_dot=_
4282 fi
4283 rmdir .tst 2>/dev/null
4284
4285 DEPDIR="${am__leading_dot}deps"
4286
4287 ac_config_commands="$ac_config_commands depfiles"
4288
4289
4290 am_make=${MAKE-make}
4291 cat > confinc << 'END'
4292 am__doit:
4293 @echo this is the am__doit target
4294 .PHONY: am__doit
4295 END
4296 # If we don't find an include directive, just comment out the code.
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4298 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4299 am__include="#"
4300 am__quote=
4301 _am_result=none
4302 # First try GNU make style include.
4303 echo "include confinc" > confmf
4304 # Ignore all kinds of additional output from `make'.
4305 case `$am_make -s -f confmf 2> /dev/null` in #(
4306 *the\ am__doit\ target*)
4307 am__include=include
4308 am__quote=
4309 _am_result=GNU
4310 ;;
4311 esac
4312 # Now try BSD make style include.
4313 if test "$am__include" = "#"; then
4314 echo '.include "confinc"' > confmf
4315 case `$am_make -s -f confmf 2> /dev/null` in #(
4316 *the\ am__doit\ target*)
4317 am__include=.include
4318 am__quote="\""
4319 _am_result=BSD
4320 ;;
4321 esac
4322 fi
4323
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4326 $as_echo "$_am_result" >&6; }
4327 rm -f confinc confmf
4328
4329 # Check whether --enable-dependency-tracking was given.
4330 if test "${enable_dependency_tracking+set}" = set; then :
4331 enableval=$enable_dependency_tracking;
4332 fi
4333
4334 if test "x$enable_dependency_tracking" != xno; then
4335 am_depcomp="$ac_aux_dir/depcomp"
4336 AMDEPBACKSLASH='\'
4337 am__nodep='_no'
4338 fi
4339 if test "x$enable_dependency_tracking" != xno; then
4340 AMDEP_TRUE=
4341 AMDEP_FALSE='#'
4342 else
4343 AMDEP_TRUE='#'
4344 AMDEP_FALSE=
4345 fi
4346
4347
4348 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4349 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4350 # is not polluted with repeated "-I."
4351 am__isrc=' -I$(srcdir)'
4352 # test to see if srcdir already configured
4353 if test -f $srcdir/config.status; then
4354 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4355 fi
4356 fi
4357
4358 # test whether we have cygpath
4359 if test -z "$CYGPATH_W"; then
4360 if (cygpath --version) >/dev/null 2>/dev/null; then
4361 CYGPATH_W='cygpath -w'
4362 else
4363 CYGPATH_W=echo
4364 fi
4365 fi
4366
4367
4368 # Define the identity of the package.
4369 PACKAGE='libvtv'
4370 VERSION='1.0'
4371
4372
4373 cat >>confdefs.h <<_ACEOF
4374 #define PACKAGE "$PACKAGE"
4375 _ACEOF
4376
4377
4378 cat >>confdefs.h <<_ACEOF
4379 #define VERSION "$VERSION"
4380 _ACEOF
4381
4382 # Some tools Automake needs.
4383
4384 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4385
4386
4387 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4388
4389
4390 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4391
4392
4393 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4394
4395
4396 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4397
4398 # We need awk for the "check" target. The system "awk" is bad on
4399 # some platforms.
4400 # Always define AMTAR for backward compatibility. Yes, it's still used
4401 # in the wild :-( We should find a proper way to deprecate it ...
4402 AMTAR='$${TAR-tar}'
4403
4404 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4405
4406
4407
4408
4409 depcc="$CC" am_compiler_list=
4410
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4412 $as_echo_n "checking dependency style of $depcc... " >&6; }
4413 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4417 # We make a subdir and do the tests there. Otherwise we can end up
4418 # making bogus files that we don't know about and never remove. For
4419 # instance it was reported that on HP-UX the gcc test will end up
4420 # making a dummy file named `D' -- because `-MD' means `put the output
4421 # in D'.
4422 rm -rf conftest.dir
4423 mkdir conftest.dir
4424 # Copy depcomp to subdir because otherwise we won't find it if we're
4425 # using a relative directory.
4426 cp "$am_depcomp" conftest.dir
4427 cd conftest.dir
4428 # We will build objects and dependencies in a subdirectory because
4429 # it helps to detect inapplicable dependency modes. For instance
4430 # both Tru64's cc and ICC support -MD to output dependencies as a
4431 # side effect of compilation, but ICC will put the dependencies in
4432 # the current directory while Tru64 will put them in the object
4433 # directory.
4434 mkdir sub
4435
4436 am_cv_CC_dependencies_compiler_type=none
4437 if test "$am_compiler_list" = ""; then
4438 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4439 fi
4440 am__universal=false
4441 case " $depcc " in #(
4442 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4443 esac
4444
4445 for depmode in $am_compiler_list; do
4446 # Setup a source with many dependencies, because some compilers
4447 # like to wrap large dependency lists on column 80 (with \), and
4448 # we should not choose a depcomp mode which is confused by this.
4449 #
4450 # We need to recreate these files for each test, as the compiler may
4451 # overwrite some of them when testing with obscure command lines.
4452 # This happens at least with the AIX C compiler.
4453 : > sub/conftest.c
4454 for i in 1 2 3 4 5 6; do
4455 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4456 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4457 # Solaris 8's {/usr,}/bin/sh.
4458 touch sub/conftst$i.h
4459 done
4460 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4461
4462 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4463 # mode. It turns out that the SunPro C++ compiler does not properly
4464 # handle `-M -o', and we need to detect this. Also, some Intel
4465 # versions had trouble with output in subdirs
4466 am__obj=sub/conftest.${OBJEXT-o}
4467 am__minus_obj="-o $am__obj"
4468 case $depmode in
4469 gcc)
4470 # This depmode causes a compiler race in universal mode.
4471 test "$am__universal" = false || continue
4472 ;;
4473 nosideeffect)
4474 # after this tag, mechanisms are not by side-effect, so they'll
4475 # only be used when explicitly requested
4476 if test "x$enable_dependency_tracking" = xyes; then
4477 continue
4478 else
4479 break
4480 fi
4481 ;;
4482 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4483 # This compiler won't grok `-c -o', but also, the minuso test has
4484 # not run yet. These depmodes are late enough in the game, and
4485 # so weak that their functioning should not be impacted.
4486 am__obj=conftest.${OBJEXT-o}
4487 am__minus_obj=
4488 ;;
4489 none) break ;;
4490 esac
4491 if depmode=$depmode \
4492 source=sub/conftest.c object=$am__obj \
4493 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4494 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4495 >/dev/null 2>conftest.err &&
4496 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4498 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4500 # icc doesn't choke on unknown options, it will just issue warnings
4501 # or remarks (even with -Werror). So we grep stderr for any message
4502 # that says an option was ignored or not supported.
4503 # When given -MP, icc 7.0 and 7.1 complain thusly:
4504 # icc: Command line warning: ignoring option '-M'; no argument required
4505 # The diagnosis changed in icc 8.0:
4506 # icc: Command line remark: option '-MP' not supported
4507 if (grep 'ignoring option' conftest.err ||
4508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4509 am_cv_CC_dependencies_compiler_type=$depmode
4510 break
4511 fi
4512 fi
4513 done
4514
4515 cd ..
4516 rm -rf conftest.dir
4517 else
4518 am_cv_CC_dependencies_compiler_type=none
4519 fi
4520
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4523 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4524 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4525
4526 if
4527 test "x$enable_dependency_tracking" != xno \
4528 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4529 am__fastdepCC_TRUE=
4530 am__fastdepCC_FALSE='#'
4531 else
4532 am__fastdepCC_TRUE='#'
4533 am__fastdepCC_FALSE=
4534 fi
4535
4536
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4540 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4541 # Check whether --enable-maintainer-mode was given.
4542 if test "${enable_maintainer_mode+set}" = set; then :
4543 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4544 else
4545 USE_MAINTAINER_MODE=no
4546 fi
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4549 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4550 if test $USE_MAINTAINER_MODE = yes; then
4551 MAINTAINER_MODE_TRUE=
4552 MAINTAINER_MODE_FALSE='#'
4553 else
4554 MAINTAINER_MODE_TRUE='#'
4555 MAINTAINER_MODE_FALSE=
4556 fi
4557
4558 MAINT=$MAINTAINER_MODE_TRUE
4559
4560
4561
4562
4563
4564 # These need to be absolute paths, yet at the same time need to
4565 # canonicalize only relative paths, because then amd will not unmount
4566 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4567 libvtv_builddir=`${PWDCMD-pwd}`
4568 case $srcdir in
4569 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4570 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4571 esac
4572 toplevel_builddir=${libvtv_builddir}/..
4573 toplevel_srcdir=${libvtv_srcdir}/..
4574
4575
4576
4577
4578
4579
4580 # Calculate toolexeclibdir
4581 # Also toolexecdir, though it's only used in toolexeclibdir
4582 case ${version_specific_libs} in
4583 yes)
4584 # Need the gcc compiler version to know where to install libraries
4585 # and header files if --enable-version-specific-runtime-libs option
4586 # is selected.
4587 toolexecdir='$(libdir)/gcc/$(target_alias)'
4588 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4589 ;;
4590 no)
4591 if test -n "$with_cross_host" &&
4592 test x"$with_cross_host" != x"no"; then
4593 # Install a library built with a cross compiler in tooldir, not libdir.
4594 toolexecdir='$(exec_prefix)/$(target_alias)'
4595 toolexeclibdir='$(toolexecdir)/lib'
4596 else
4597 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4598 toolexeclibdir='$(libdir)'
4599 fi
4600 multi_os_directory=`$CC -print-multi-os-directory`
4601 case $multi_os_directory in
4602 .) ;; # Avoid trailing /.
4603 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4604 esac
4605 ;;
4606 esac
4607
4608
4609
4610
4611 for ac_func in __secure_getenv
4612 do :
4613 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4614 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4615 cat >>confdefs.h <<_ACEOF
4616 #define HAVE___SECURE_GETENV 1
4617 _ACEOF
4618
4619 fi
4620 done
4621
4622
4623
4624 for ac_func in secure_getenv
4625 do :
4626 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4627 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4628 cat >>confdefs.h <<_ACEOF
4629 #define HAVE_SECURE_GETENV 1
4630 _ACEOF
4631
4632 fi
4633 done
4634
4635
4636 for ac_func in getexecname __fortify_fail
4637 do :
4638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4640 eval as_val=\$$as_ac_var
4641 if test "x$as_val" = x""yes; then :
4642 cat >>confdefs.h <<_ACEOF
4643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4644 _ACEOF
4645
4646 fi
4647 done
4648
4649
4650 # Check for programs.
4651
4652
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 CC=$ac_cv_prog_CC
4687 if test -n "$CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4689 $as_echo "$CC" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695
4696 fi
4697 if test -z "$ac_cv_prog_CC"; then
4698 ac_ct_CC=$CC
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$ac_ct_CC"; then
4707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_prog_ac_ct_CC="gcc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4727 if test -n "$ac_ct_CC"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4729 $as_echo "$ac_ct_CC" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735 if test "x$ac_ct_CC" = x; then
4736 CC=""
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4743 esac
4744 CC=$ac_ct_CC
4745 fi
4746 else
4747 CC="$ac_cv_prog_CC"
4748 fi
4749
4750 if test -z "$CC"; then
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}cc; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_CC+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_CC="${ac_tool_prefix}cc"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773 done
4774 done
4775 IFS=$as_save_IFS
4776
4777 fi
4778 fi
4779 CC=$ac_cv_prog_CC
4780 if test -n "$CC"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4786 fi
4787
4788
4789 fi
4790 fi
4791 if test -z "$CC"; then
4792 # Extract the first word of "cc", so it can be a program name with args.
4793 set dummy cc; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_CC+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC="$CC" # Let the user override the test.
4801 else
4802 ac_prog_rejected=no
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4811 ac_prog_rejected=yes
4812 continue
4813 fi
4814 ac_cv_prog_CC="cc"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 if test $ac_prog_rejected = yes; then
4823 # We found a bogon in the path, so make sure we never use it.
4824 set dummy $ac_cv_prog_CC
4825 shift
4826 if test $# != 0; then
4827 # We chose a different compiler from the bogus one.
4828 # However, it has the same basename, so the bogon will be chosen
4829 # first if we set CC to just the basename; use the full file name.
4830 shift
4831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4832 fi
4833 fi
4834 fi
4835 fi
4836 CC=$ac_cv_prog_CC
4837 if test -n "$CC"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839 $as_echo "$CC" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845
4846 fi
4847 if test -z "$CC"; then
4848 if test -n "$ac_tool_prefix"; then
4849 for ac_prog in cl.exe
4850 do
4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_CC+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC="$CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 CC=$ac_cv_prog_CC
4879 if test -n "$CC"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 test -n "$CC" && break
4889 done
4890 fi
4891 if test -z "$CC"; then
4892 ac_ct_CC=$CC
4893 for ac_prog in cl.exe
4894 do
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_CC"; then
4903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_CC="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4923 if test -n "$ac_ct_CC"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4925 $as_echo "$ac_ct_CC" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932 test -n "$ac_ct_CC" && break
4933 done
4934
4935 if test "x$ac_ct_CC" = x; then
4936 CC=""
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 CC=$ac_ct_CC
4945 fi
4946 fi
4947
4948 fi
4949
4950
4951 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4953 as_fn_error "no acceptable C compiler found in \$PATH
4954 See \`config.log' for more details." "$LINENO" 5; }
4955
4956 # Provide some information about the compiler.
4957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4958 set X $ac_compile
4959 ac_compiler=$2
4960 for ac_option in --version -v -V -qversion; do
4961 { { ac_try="$ac_compiler $ac_option >&5"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4967 $as_echo "$ac_try_echo"; } >&5
4968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4969 ac_status=$?
4970 if test -s conftest.err; then
4971 sed '10a\
4972 ... rest of stderr output deleted ...
4973 10q' conftest.err >conftest.er1
4974 cat conftest.er1 >&5
4975 rm -f conftest.er1 conftest.err
4976 fi
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }
4979 done
4980
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4983 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988
4989 int
4990 main ()
4991 {
4992 #ifndef __GNUC__
4993 choke me
4994 #endif
4995
4996 ;
4997 return 0;
4998 }
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_compiler_gnu=yes
5002 else
5003 ac_compiler_gnu=no
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5007
5008 fi
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5011 if test $ac_compiler_gnu = yes; then
5012 GCC=yes
5013 else
5014 GCC=
5015 fi
5016 ac_test_CFLAGS=${CFLAGS+set}
5017 ac_save_CFLAGS=$CFLAGS
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5020 if test "${ac_cv_prog_cc_g+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 ac_save_c_werror_flag=$ac_c_werror_flag
5024 ac_c_werror_flag=yes
5025 ac_cv_prog_cc_g=no
5026 CFLAGS="-g"
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5029
5030 int
5031 main ()
5032 {
5033
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_prog_cc_g=yes
5040 else
5041 CFLAGS=""
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5044
5045 int
5046 main ()
5047 {
5048
5049 ;
5050 return 0;
5051 }
5052 _ACEOF
5053 if ac_fn_c_try_compile "$LINENO"; then :
5054
5055 else
5056 ac_c_werror_flag=$ac_save_c_werror_flag
5057 CFLAGS="-g"
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060
5061 int
5062 main ()
5063 {
5064
5065 ;
5066 return 0;
5067 }
5068 _ACEOF
5069 if ac_fn_c_try_compile "$LINENO"; then :
5070 ac_cv_prog_cc_g=yes
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_c_werror_flag=$ac_save_c_werror_flag
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5080 $as_echo "$ac_cv_prog_cc_g" >&6; }
5081 if test "$ac_test_CFLAGS" = set; then
5082 CFLAGS=$ac_save_CFLAGS
5083 elif test $ac_cv_prog_cc_g = yes; then
5084 if test "$GCC" = yes; then
5085 CFLAGS="-g -O2"
5086 else
5087 CFLAGS="-g"
5088 fi
5089 else
5090 if test "$GCC" = yes; then
5091 CFLAGS="-O2"
5092 else
5093 CFLAGS=
5094 fi
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5098 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 ac_cv_prog_cc_c89=no
5102 ac_save_CC=$CC
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 #include <stdarg.h>
5106 #include <stdio.h>
5107 #include <sys/types.h>
5108 #include <sys/stat.h>
5109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5110 struct buf { int x; };
5111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5112 static char *e (p, i)
5113 char **p;
5114 int i;
5115 {
5116 return p[i];
5117 }
5118 static char *f (char * (*g) (char **, int), char **p, ...)
5119 {
5120 char *s;
5121 va_list v;
5122 va_start (v,p);
5123 s = g (p, va_arg (v,int));
5124 va_end (v);
5125 return s;
5126 }
5127
5128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5129 function prototypes and stuff, but not '\xHH' hex character constants.
5130 These don't provoke an error unfortunately, instead are silently treated
5131 as 'x'. The following induces an error, until -std is added to get
5132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5133 array size at least. It's necessary to write '\x00'==0 to get something
5134 that's true only with -std. */
5135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5136
5137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5138 inside strings and character constants. */
5139 #define FOO(x) 'x'
5140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5141
5142 int test (int i, double x);
5143 struct s1 {int (*f) (int a);};
5144 struct s2 {int (*f) (double a);};
5145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5146 int argc;
5147 char **argv;
5148 int
5149 main ()
5150 {
5151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5158 do
5159 CC="$ac_save_CC $ac_arg"
5160 if ac_fn_c_try_compile "$LINENO"; then :
5161 ac_cv_prog_cc_c89=$ac_arg
5162 fi
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x$ac_cv_prog_cc_c89" != "xno" && break
5165 done
5166 rm -f conftest.$ac_ext
5167 CC=$ac_save_CC
5168
5169 fi
5170 # AC_CACHE_VAL
5171 case "x$ac_cv_prog_cc_c89" in
5172 x)
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5174 $as_echo "none needed" >&6; } ;;
5175 xno)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5177 $as_echo "unsupported" >&6; } ;;
5178 *)
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5182 esac
5183 if test "x$ac_cv_prog_cc_c89" != xno; then :
5184
5185 fi
5186
5187 ac_ext=c
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192
5193 ac_ext=cpp
5194 ac_cpp='$CXXCPP $CPPFLAGS'
5195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5198 if test -z "$CXX"; then
5199 if test -n "$CCC"; then
5200 CXX=$CCC
5201 else
5202 if test -n "$ac_tool_prefix"; then
5203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5204 do
5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if test "${ac_cv_prog_CXX+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$CXX"; then
5213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 CXX=$ac_cv_prog_CXX
5233 if test -n "$CXX"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5235 $as_echo "$CXX" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 test -n "$CXX" && break
5243 done
5244 fi
5245 if test -z "$CXX"; then
5246 ac_ct_CXX=$CXX
5247 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5248 do
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$ac_ct_CXX"; then
5257 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_ac_ct_CXX="$ac_prog"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5277 if test -n "$ac_ct_CXX"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5279 $as_echo "$ac_ct_CXX" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 fi
5284
5285
5286 test -n "$ac_ct_CXX" && break
5287 done
5288
5289 if test "x$ac_ct_CXX" = x; then
5290 CXX="g++"
5291 else
5292 case $cross_compiling:$ac_tool_warned in
5293 yes:)
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298 CXX=$ac_ct_CXX
5299 fi
5300 fi
5301
5302 fi
5303 fi
5304 # Provide some information about the compiler.
5305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5306 set X $ac_compile
5307 ac_compiler=$2
5308 for ac_option in --version -v -V -qversion; do
5309 { { ac_try="$ac_compiler $ac_option >&5"
5310 case "(($ac_try" in
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5313 esac
5314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5315 $as_echo "$ac_try_echo"; } >&5
5316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5317 ac_status=$?
5318 if test -s conftest.err; then
5319 sed '10a\
5320 ... rest of stderr output deleted ...
5321 10q' conftest.err >conftest.er1
5322 cat conftest.er1 >&5
5323 rm -f conftest.er1 conftest.err
5324 fi
5325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5326 test $ac_status = 0; }
5327 done
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5330 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5331 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336
5337 int
5338 main ()
5339 {
5340 #ifndef __GNUC__
5341 choke me
5342 #endif
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_cxx_try_compile "$LINENO"; then :
5349 ac_compiler_gnu=yes
5350 else
5351 ac_compiler_gnu=no
5352 fi
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5355
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5358 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5359 if test $ac_compiler_gnu = yes; then
5360 GXX=yes
5361 else
5362 GXX=
5363 fi
5364 ac_test_CXXFLAGS=${CXXFLAGS+set}
5365 ac_save_CXXFLAGS=$CXXFLAGS
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5367 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5368 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5372 ac_cxx_werror_flag=yes
5373 ac_cv_prog_cxx_g=no
5374 CXXFLAGS="-g"
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377
5378 int
5379 main ()
5380 {
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_cxx_try_compile "$LINENO"; then :
5387 ac_cv_prog_cxx_g=yes
5388 else
5389 CXXFLAGS=""
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392
5393 int
5394 main ()
5395 {
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_cxx_try_compile "$LINENO"; then :
5402
5403 else
5404 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5405 CXXFLAGS="-g"
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408
5409 int
5410 main ()
5411 {
5412
5413 ;
5414 return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_cxx_try_compile "$LINENO"; then :
5418 ac_cv_prog_cxx_g=yes
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5428 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5429 if test "$ac_test_CXXFLAGS" = set; then
5430 CXXFLAGS=$ac_save_CXXFLAGS
5431 elif test $ac_cv_prog_cxx_g = yes; then
5432 if test "$GXX" = yes; then
5433 CXXFLAGS="-g -O2"
5434 else
5435 CXXFLAGS="-g"
5436 fi
5437 else
5438 if test "$GXX" = yes; then
5439 CXXFLAGS="-O2"
5440 else
5441 CXXFLAGS=
5442 fi
5443 fi
5444 ac_ext=c
5445 ac_cpp='$CPP $CPPFLAGS'
5446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449
5450 depcc="$CXX" am_compiler_list=
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5453 $as_echo_n "checking dependency style of $depcc... " >&6; }
5454 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5458 # We make a subdir and do the tests there. Otherwise we can end up
5459 # making bogus files that we don't know about and never remove. For
5460 # instance it was reported that on HP-UX the gcc test will end up
5461 # making a dummy file named `D' -- because `-MD' means `put the output
5462 # in D'.
5463 rm -rf conftest.dir
5464 mkdir conftest.dir
5465 # Copy depcomp to subdir because otherwise we won't find it if we're
5466 # using a relative directory.
5467 cp "$am_depcomp" conftest.dir
5468 cd conftest.dir
5469 # We will build objects and dependencies in a subdirectory because
5470 # it helps to detect inapplicable dependency modes. For instance
5471 # both Tru64's cc and ICC support -MD to output dependencies as a
5472 # side effect of compilation, but ICC will put the dependencies in
5473 # the current directory while Tru64 will put them in the object
5474 # directory.
5475 mkdir sub
5476
5477 am_cv_CXX_dependencies_compiler_type=none
5478 if test "$am_compiler_list" = ""; then
5479 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5480 fi
5481 am__universal=false
5482 case " $depcc " in #(
5483 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5484 esac
5485
5486 for depmode in $am_compiler_list; do
5487 # Setup a source with many dependencies, because some compilers
5488 # like to wrap large dependency lists on column 80 (with \), and
5489 # we should not choose a depcomp mode which is confused by this.
5490 #
5491 # We need to recreate these files for each test, as the compiler may
5492 # overwrite some of them when testing with obscure command lines.
5493 # This happens at least with the AIX C compiler.
5494 : > sub/conftest.c
5495 for i in 1 2 3 4 5 6; do
5496 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5497 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5498 # Solaris 8's {/usr,}/bin/sh.
5499 touch sub/conftst$i.h
5500 done
5501 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5502
5503 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5504 # mode. It turns out that the SunPro C++ compiler does not properly
5505 # handle `-M -o', and we need to detect this. Also, some Intel
5506 # versions had trouble with output in subdirs
5507 am__obj=sub/conftest.${OBJEXT-o}
5508 am__minus_obj="-o $am__obj"
5509 case $depmode in
5510 gcc)
5511 # This depmode causes a compiler race in universal mode.
5512 test "$am__universal" = false || continue
5513 ;;
5514 nosideeffect)
5515 # after this tag, mechanisms are not by side-effect, so they'll
5516 # only be used when explicitly requested
5517 if test "x$enable_dependency_tracking" = xyes; then
5518 continue
5519 else
5520 break
5521 fi
5522 ;;
5523 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5524 # This compiler won't grok `-c -o', but also, the minuso test has
5525 # not run yet. These depmodes are late enough in the game, and
5526 # so weak that their functioning should not be impacted.
5527 am__obj=conftest.${OBJEXT-o}
5528 am__minus_obj=
5529 ;;
5530 none) break ;;
5531 esac
5532 if depmode=$depmode \
5533 source=sub/conftest.c object=$am__obj \
5534 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5535 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5536 >/dev/null 2>conftest.err &&
5537 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5538 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5539 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5541 # icc doesn't choke on unknown options, it will just issue warnings
5542 # or remarks (even with -Werror). So we grep stderr for any message
5543 # that says an option was ignored or not supported.
5544 # When given -MP, icc 7.0 and 7.1 complain thusly:
5545 # icc: Command line warning: ignoring option '-M'; no argument required
5546 # The diagnosis changed in icc 8.0:
5547 # icc: Command line remark: option '-MP' not supported
5548 if (grep 'ignoring option' conftest.err ||
5549 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5550 am_cv_CXX_dependencies_compiler_type=$depmode
5551 break
5552 fi
5553 fi
5554 done
5555
5556 cd ..
5557 rm -rf conftest.dir
5558 else
5559 am_cv_CXX_dependencies_compiler_type=none
5560 fi
5561
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5564 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5565 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5566
5567 if
5568 test "x$enable_dependency_tracking" != xno \
5569 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5570 am__fastdepCXX_TRUE=
5571 am__fastdepCXX_FALSE='#'
5572 else
5573 am__fastdepCXX_TRUE='#'
5574 am__fastdepCXX_FALSE=
5575 fi
5576
5577
5578
5579
5580 if test "x$CC" != xcc; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5582 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5585 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5586 fi
5587 set dummy $CC; ac_cc=`$as_echo "$2" |
5588 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5589 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594
5595 int
5596 main ()
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 # Make sure it works both with $CC and with simple cc.
5604 # We do the test twice because some compilers refuse to overwrite an
5605 # existing .o file with -o, though they will create one.
5606 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5607 rm -f conftest2.*
5608 if { { case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611 esac
5612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5613 $as_echo "$ac_try_echo"; } >&5
5614 (eval "$ac_try") 2>&5
5615 ac_status=$?
5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5617 test $ac_status = 0; } &&
5618 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5623 $as_echo "$ac_try_echo"; } >&5
5624 (eval "$ac_try") 2>&5
5625 ac_status=$?
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627 test $ac_status = 0; };
5628 then
5629 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5630 if test "x$CC" != xcc; then
5631 # Test first that cc exists at all.
5632 if { ac_try='cc -c conftest.$ac_ext >&5'
5633 { { case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5638 $as_echo "$ac_try_echo"; } >&5
5639 (eval "$ac_try") 2>&5
5640 ac_status=$?
5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642 test $ac_status = 0; }; }; then
5643 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5644 rm -f conftest2.*
5645 if { { case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; } &&
5655 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5660 $as_echo "$ac_try_echo"; } >&5
5661 (eval "$ac_try") 2>&5
5662 ac_status=$?
5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664 test $ac_status = 0; };
5665 then
5666 # cc works too.
5667 :
5668 else
5669 # cc exists but doesn't like -o.
5670 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5671 fi
5672 fi
5673 fi
5674 else
5675 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5676 fi
5677 rm -f core conftest*
5678
5679 fi
5680 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5682 $as_echo "yes" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5686
5687 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5688
5689 fi
5690
5691 # FIXME: we rely on the cache variable name because
5692 # there is no other way.
5693 set dummy $CC
5694 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5695 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5696 if test "$am_t" != yes; then
5697 # Losing compiler, so override with the script.
5698 # FIXME: It is wrong to rewrite CC.
5699 # But if we don't then we get into trouble of one sort or another.
5700 # A longer-term fix would be to have automake use am__CC in this case,
5701 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5702 CC="$am_aux_dir/compile $CC"
5703 fi
5704
5705
5706
5707
5708
5709
5710 # Newer automakes demand CCAS and CCASFLAGS.
5711 : ${CCAS='$(CC)'}
5712 : ${CCASFLAGS='$(CFLAGS)'}
5713
5714
5715
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}as; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_AS+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$AS"; then
5725 ac_cv_prog_AS="$AS" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_AS="${ac_tool_prefix}as"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 AS=$ac_cv_prog_AS
5745 if test -n "$AS"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5747 $as_echo "$AS" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753
5754 fi
5755 if test -z "$ac_cv_prog_AS"; then
5756 ac_ct_AS=$AS
5757 # Extract the first word of "as", so it can be a program name with args.
5758 set dummy as; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$ac_ct_AS"; then
5765 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_ac_ct_AS="as"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778 done
5779 done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5785 if test -n "$ac_ct_AS"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5787 $as_echo "$ac_ct_AS" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793 if test "x$ac_ct_AS" = x; then
5794 AS=""
5795 else
5796 case $cross_compiling:$ac_tool_warned in
5797 yes:)
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800 ac_tool_warned=yes ;;
5801 esac
5802 AS=$ac_ct_AS
5803 fi
5804 else
5805 AS="$ac_cv_prog_AS"
5806 fi
5807
5808 if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5810 set dummy ${ac_tool_prefix}ar; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if test "${ac_cv_prog_AR+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if test -n "$AR"; then
5817 ac_cv_prog_AR="$AR" # Let the user override the test.
5818 else
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_AR="${ac_tool_prefix}ar"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830 done
5831 done
5832 IFS=$as_save_IFS
5833
5834 fi
5835 fi
5836 AR=$ac_cv_prog_AR
5837 if test -n "$AR"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5839 $as_echo "$AR" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844
5845
5846 fi
5847 if test -z "$ac_cv_prog_AR"; then
5848 ac_ct_AR=$AR
5849 # Extract the first word of "ar", so it can be a program name with args.
5850 set dummy ar; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$ac_ct_AR"; then
5857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_AR="ar"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5869 fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5877 if test -n "$ac_ct_AR"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5879 $as_echo "$ac_ct_AR" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885 if test "x$ac_ct_AR" = x; then
5886 AR=""
5887 else
5888 case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894 AR=$ac_ct_AR
5895 fi
5896 else
5897 AR="$ac_cv_prog_AR"
5898 fi
5899
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 if test -n "$RANLIB"; then
5909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5931 $as_echo "$RANLIB" >&6; }
5932 else
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938 fi
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940 ac_ct_RANLIB=$RANLIB
5941 # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 if test -n "$ac_ct_RANLIB"; then
5949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_RANLIB="ranlib"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5961 fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5971 $as_echo "$ac_ct_RANLIB" >&6; }
5972 else
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5975 fi
5976
5977 if test "x$ac_ct_RANLIB" = x; then
5978 RANLIB=":"
5979 else
5980 case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5985 esac
5986 RANLIB=$ac_ct_RANLIB
5987 fi
5988 else
5989 RANLIB="$ac_cv_prog_RANLIB"
5990 fi
5991
5992
5993 # Configure libtool
5994 enable_dlopen=yes
5995
5996
5997
5998 case `pwd` in
5999 *\ * | *\ *)
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6001 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6002 esac
6003
6004
6005
6006 macro_version='2.2.7a'
6007 macro_revision='1.3134'
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 ltmain="$ac_aux_dir/ltmain.sh"
6022
6023 # Backslashify metacharacters that are still active within
6024 # double-quoted strings.
6025 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6026
6027 # Same as above, but do not quote variable references.
6028 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6029
6030 # Sed substitution to delay expansion of an escaped shell variable in a
6031 # double_quote_subst'ed string.
6032 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6033
6034 # Sed substitution to delay expansion of an escaped single quote.
6035 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6036
6037 # Sed substitution to avoid accidental globbing in evaled expressions
6038 no_glob_subst='s/\*/\\\*/g'
6039
6040 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6041 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6042 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6043
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6045 $as_echo_n "checking how to print strings... " >&6; }
6046 # Test print first, because it will be a builtin if present.
6047 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6048 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6049 ECHO='print -r --'
6050 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6051 ECHO='printf %s\n'
6052 else
6053 # Use this function as a fallback that always works.
6054 func_fallback_echo ()
6055 {
6056 eval 'cat <<_LTECHO_EOF
6057 $1
6058 _LTECHO_EOF'
6059 }
6060 ECHO='func_fallback_echo'
6061 fi
6062
6063 # func_echo_all arg...
6064 # Invoke $ECHO with all args, space-separated.
6065 func_echo_all ()
6066 {
6067 $ECHO ""
6068 }
6069
6070 case "$ECHO" in
6071 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6072 $as_echo "printf" >&6; } ;;
6073 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6074 $as_echo "print -r" >&6; } ;;
6075 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6076 $as_echo "cat" >&6; } ;;
6077 esac
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6093 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6094 if test "${ac_cv_path_SED+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6098 for ac_i in 1 2 3 4 5 6 7; do
6099 ac_script="$ac_script$as_nl$ac_script"
6100 done
6101 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6102 { ac_script=; unset ac_script;}
6103 if test -z "$SED"; then
6104 ac_path_SED_found=false
6105 # Loop through the user's path and test for each of PROGNAME-LIST
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_prog in sed gsed; do
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6114 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6115 # Check for GNU ac_path_SED and select it if it is found.
6116 # Check for GNU $ac_path_SED
6117 case `"$ac_path_SED" --version 2>&1` in
6118 *GNU*)
6119 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6120 *)
6121 ac_count=0
6122 $as_echo_n 0123456789 >"conftest.in"
6123 while :
6124 do
6125 cat "conftest.in" "conftest.in" >"conftest.tmp"
6126 mv "conftest.tmp" "conftest.in"
6127 cp "conftest.in" "conftest.nl"
6128 $as_echo '' >> "conftest.nl"
6129 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6131 as_fn_arith $ac_count + 1 && ac_count=$as_val
6132 if test $ac_count -gt ${ac_path_SED_max-0}; then
6133 # Best one so far, save it but keep looking for a better one
6134 ac_cv_path_SED="$ac_path_SED"
6135 ac_path_SED_max=$ac_count
6136 fi
6137 # 10*(2^10) chars as input seems more than enough
6138 test $ac_count -gt 10 && break
6139 done
6140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6141 esac
6142
6143 $ac_path_SED_found && break 3
6144 done
6145 done
6146 done
6147 IFS=$as_save_IFS
6148 if test -z "$ac_cv_path_SED"; then
6149 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6150 fi
6151 else
6152 ac_cv_path_SED=$SED
6153 fi
6154
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6157 $as_echo "$ac_cv_path_SED" >&6; }
6158 SED="$ac_cv_path_SED"
6159 rm -f conftest.sed
6160
6161 test -z "$SED" && SED=sed
6162 Xsed="$SED -e 1s/^X//"
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6175 $as_echo_n "checking for fgrep... " >&6; }
6176 if test "${ac_cv_path_FGREP+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6180 then ac_cv_path_FGREP="$GREP -F"
6181 else
6182 if test -z "$FGREP"; then
6183 ac_path_FGREP_found=false
6184 # Loop through the user's path and test for each of PROGNAME-LIST
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6187 do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_prog in fgrep; do
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6193 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6194 # Check for GNU ac_path_FGREP and select it if it is found.
6195 # Check for GNU $ac_path_FGREP
6196 case `"$ac_path_FGREP" --version 2>&1` in
6197 *GNU*)
6198 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6199 *)
6200 ac_count=0
6201 $as_echo_n 0123456789 >"conftest.in"
6202 while :
6203 do
6204 cat "conftest.in" "conftest.in" >"conftest.tmp"
6205 mv "conftest.tmp" "conftest.in"
6206 cp "conftest.in" "conftest.nl"
6207 $as_echo 'FGREP' >> "conftest.nl"
6208 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6210 as_fn_arith $ac_count + 1 && ac_count=$as_val
6211 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6212 # Best one so far, save it but keep looking for a better one
6213 ac_cv_path_FGREP="$ac_path_FGREP"
6214 ac_path_FGREP_max=$ac_count
6215 fi
6216 # 10*(2^10) chars as input seems more than enough
6217 test $ac_count -gt 10 && break
6218 done
6219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6220 esac
6221
6222 $ac_path_FGREP_found && break 3
6223 done
6224 done
6225 done
6226 IFS=$as_save_IFS
6227 if test -z "$ac_cv_path_FGREP"; then
6228 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6229 fi
6230 else
6231 ac_cv_path_FGREP=$FGREP
6232 fi
6233
6234 fi
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6237 $as_echo "$ac_cv_path_FGREP" >&6; }
6238 FGREP="$ac_cv_path_FGREP"
6239
6240
6241 test -z "$GREP" && GREP=grep
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261 # Check whether --with-gnu-ld was given.
6262 if test "${with_gnu_ld+set}" = set; then :
6263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6264 else
6265 with_gnu_ld=no
6266 fi
6267
6268 ac_prog=ld
6269 if test "$GCC" = yes; then
6270 # Check if gcc -print-prog-name=ld gives a path.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6272 $as_echo_n "checking for ld used by $CC... " >&6; }
6273 case $host in
6274 *-*-mingw*)
6275 # gcc leaves a trailing carriage return which upsets mingw
6276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6277 *)
6278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6279 esac
6280 case $ac_prog in
6281 # Accept absolute paths.
6282 [\\/]* | ?:[\\/]*)
6283 re_direlt='/[^/][^/]*/\.\./'
6284 # Canonicalize the pathname of ld
6285 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6286 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6287 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6288 done
6289 test -z "$LD" && LD="$ac_prog"
6290 ;;
6291 "")
6292 # If it fails, then pretend we aren't using GCC.
6293 ac_prog=ld
6294 ;;
6295 *)
6296 # If it is relative, then search for the first ld in PATH.
6297 with_gnu_ld=unknown
6298 ;;
6299 esac
6300 elif test "$with_gnu_ld" = yes; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6302 $as_echo_n "checking for GNU ld... " >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6305 $as_echo_n "checking for non-GNU ld... " >&6; }
6306 fi
6307 if test "${lt_cv_path_LD+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -z "$LD"; then
6311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6312 for ac_dir in $PATH; do
6313 IFS="$lt_save_ifs"
6314 test -z "$ac_dir" && ac_dir=.
6315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6316 lt_cv_path_LD="$ac_dir/$ac_prog"
6317 # Check to see if the program is GNU ld. I'd rather use --version,
6318 # but apparently some variants of GNU ld only accept -v.
6319 # Break only if it was the GNU/non-GNU ld that we prefer.
6320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6321 *GNU* | *'with BFD'*)
6322 test "$with_gnu_ld" != no && break
6323 ;;
6324 *)
6325 test "$with_gnu_ld" != yes && break
6326 ;;
6327 esac
6328 fi
6329 done
6330 IFS="$lt_save_ifs"
6331 else
6332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6333 fi
6334 fi
6335
6336 LD="$lt_cv_path_LD"
6337 if test -n "$LD"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6339 $as_echo "$LD" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6343 fi
6344 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6347 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6351 case `$LD -v 2>&1 </dev/null` in
6352 *GNU* | *'with BFD'*)
6353 lt_cv_prog_gnu_ld=yes
6354 ;;
6355 *)
6356 lt_cv_prog_gnu_ld=no
6357 ;;
6358 esac
6359 fi
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6361 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6362 with_gnu_ld=$lt_cv_prog_gnu_ld
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6373 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6374 if test "${lt_cv_path_NM+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if test -n "$NM"; then
6378 # Let the user override the test.
6379 lt_cv_path_NM="$NM"
6380 else
6381 lt_nm_to_check="${ac_tool_prefix}nm"
6382 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6383 lt_nm_to_check="$lt_nm_to_check nm"
6384 fi
6385 for lt_tmp_nm in $lt_nm_to_check; do
6386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6387 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6388 IFS="$lt_save_ifs"
6389 test -z "$ac_dir" && ac_dir=.
6390 tmp_nm="$ac_dir/$lt_tmp_nm"
6391 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6392 # Check to see if the nm accepts a BSD-compat flag.
6393 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6394 # nm: unknown option "B" ignored
6395 # Tru64's nm complains that /dev/null is an invalid object file
6396 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6397 */dev/null* | *'Invalid file or object type'*)
6398 lt_cv_path_NM="$tmp_nm -B"
6399 break
6400 ;;
6401 *)
6402 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6403 */dev/null*)
6404 lt_cv_path_NM="$tmp_nm -p"
6405 break
6406 ;;
6407 *)
6408 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6409 continue # so that we can try to find one that supports BSD flags
6410 ;;
6411 esac
6412 ;;
6413 esac
6414 fi
6415 done
6416 IFS="$lt_save_ifs"
6417 done
6418 : ${lt_cv_path_NM=no}
6419 fi
6420 fi
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6422 $as_echo "$lt_cv_path_NM" >&6; }
6423 if test "$lt_cv_path_NM" != "no"; then
6424 NM="$lt_cv_path_NM"
6425 else
6426 # Didn't find any BSD compatible name lister, look for dumpbin.
6427 if test -n "$DUMPBIN"; then :
6428 # Let the user override the test.
6429 else
6430 if test -n "$ac_tool_prefix"; then
6431 for ac_prog in dumpbin "link -dump"
6432 do
6433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 if test -n "$DUMPBIN"; then
6441 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 DUMPBIN=$ac_cv_prog_DUMPBIN
6461 if test -n "$DUMPBIN"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6463 $as_echo "$DUMPBIN" >&6; }
6464 else
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469
6470 test -n "$DUMPBIN" && break
6471 done
6472 fi
6473 if test -z "$DUMPBIN"; then
6474 ac_ct_DUMPBIN=$DUMPBIN
6475 for ac_prog in dumpbin "link -dump"
6476 do
6477 # Extract the first word of "$ac_prog", so it can be a program name with args.
6478 set dummy $ac_prog; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 if test -n "$ac_ct_DUMPBIN"; then
6485 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6505 if test -n "$ac_ct_DUMPBIN"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6507 $as_echo "$ac_ct_DUMPBIN" >&6; }
6508 else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514 test -n "$ac_ct_DUMPBIN" && break
6515 done
6516
6517 if test "x$ac_ct_DUMPBIN" = x; then
6518 DUMPBIN=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 DUMPBIN=$ac_ct_DUMPBIN
6527 fi
6528 fi
6529
6530 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6531 *COFF*)
6532 DUMPBIN="$DUMPBIN -symbols"
6533 ;;
6534 *)
6535 DUMPBIN=:
6536 ;;
6537 esac
6538 fi
6539
6540 if test "$DUMPBIN" != ":"; then
6541 NM="$DUMPBIN"
6542 fi
6543 fi
6544 test -z "$NM" && NM=nm
6545
6546
6547
6548
6549
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6552 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6553 if test "${lt_cv_nm_interface+set}" = set; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 lt_cv_nm_interface="BSD nm"
6557 echo "int some_variable = 0;" > conftest.$ac_ext
6558 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6559 (eval "$ac_compile" 2>conftest.err)
6560 cat conftest.err >&5
6561 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6562 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6563 cat conftest.err >&5
6564 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6565 cat conftest.out >&5
6566 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6567 lt_cv_nm_interface="MS dumpbin"
6568 fi
6569 rm -f conftest*
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6572 $as_echo "$lt_cv_nm_interface" >&6; }
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6575 $as_echo_n "checking whether ln -s works... " >&6; }
6576 LN_S=$as_ln_s
6577 if test "$LN_S" = "ln -s"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6579 $as_echo "yes" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6582 $as_echo "no, using $LN_S" >&6; }
6583 fi
6584
6585 # find the maximum length of command line arguments
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6587 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6588 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 i=0
6592 teststring="ABCD"
6593
6594 case $build_os in
6595 msdosdjgpp*)
6596 # On DJGPP, this test can blow up pretty badly due to problems in libc
6597 # (any single argument exceeding 2000 bytes causes a buffer overrun
6598 # during glob expansion). Even if it were fixed, the result of this
6599 # check would be larger than it should be.
6600 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6601 ;;
6602
6603 gnu*)
6604 # Under GNU Hurd, this test is not required because there is
6605 # no limit to the length of command line arguments.
6606 # Libtool will interpret -1 as no limit whatsoever
6607 lt_cv_sys_max_cmd_len=-1;
6608 ;;
6609
6610 cygwin* | mingw* | cegcc*)
6611 # On Win9x/ME, this test blows up -- it succeeds, but takes
6612 # about 5 minutes as the teststring grows exponentially.
6613 # Worse, since 9x/ME are not pre-emptively multitasking,
6614 # you end up with a "frozen" computer, even though with patience
6615 # the test eventually succeeds (with a max line length of 256k).
6616 # Instead, let's just punt: use the minimum linelength reported by
6617 # all of the supported platforms: 8192 (on NT/2K/XP).
6618 lt_cv_sys_max_cmd_len=8192;
6619 ;;
6620
6621 mint*)
6622 # On MiNT this can take a long time and run out of memory.
6623 lt_cv_sys_max_cmd_len=8192;
6624 ;;
6625
6626 amigaos*)
6627 # On AmigaOS with pdksh, this test takes hours, literally.
6628 # So we just punt and use a minimum line length of 8192.
6629 lt_cv_sys_max_cmd_len=8192;
6630 ;;
6631
6632 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6633 # This has been around since 386BSD, at least. Likely further.
6634 if test -x /sbin/sysctl; then
6635 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6636 elif test -x /usr/sbin/sysctl; then
6637 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6638 else
6639 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6640 fi
6641 # And add a safety zone
6642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6644 ;;
6645
6646 interix*)
6647 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6648 lt_cv_sys_max_cmd_len=196608
6649 ;;
6650
6651 osf*)
6652 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6653 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6654 # nice to cause kernel panics so lets avoid the loop below.
6655 # First set a reasonable default.
6656 lt_cv_sys_max_cmd_len=16384
6657 #
6658 if test -x /sbin/sysconfig; then
6659 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6660 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6661 esac
6662 fi
6663 ;;
6664 sco3.2v5*)
6665 lt_cv_sys_max_cmd_len=102400
6666 ;;
6667 sysv5* | sco5v6* | sysv4.2uw2*)
6668 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6669 if test -n "$kargmax"; then
6670 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6671 else
6672 lt_cv_sys_max_cmd_len=32768
6673 fi
6674 ;;
6675 *)
6676 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6677 if test -n "$lt_cv_sys_max_cmd_len"; then
6678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6680 else
6681 # Make teststring a little bigger before we do anything with it.
6682 # a 1K string should be a reasonable start.
6683 for i in 1 2 3 4 5 6 7 8 ; do
6684 teststring=$teststring$teststring
6685 done
6686 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6687 # If test is not a shell built-in, we'll probably end up computing a
6688 # maximum length that is only half of the actual maximum length, but
6689 # we can't tell.
6690 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6691 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6692 test $i != 17 # 1/2 MB should be enough
6693 do
6694 i=`expr $i + 1`
6695 teststring=$teststring$teststring
6696 done
6697 # Only check the string length outside the loop.
6698 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6699 teststring=
6700 # Add a significant safety factor because C++ compilers can tack on
6701 # massive amounts of additional arguments before passing them to the
6702 # linker. It appears as though 1/2 is a usable value.
6703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6704 fi
6705 ;;
6706 esac
6707
6708 fi
6709
6710 if test -n $lt_cv_sys_max_cmd_len ; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6712 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6713 else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6715 $as_echo "none" >&6; }
6716 fi
6717 max_cmd_len=$lt_cv_sys_max_cmd_len
6718
6719
6720
6721
6722
6723
6724 : ${CP="cp -f"}
6725 : ${MV="mv -f"}
6726 : ${RM="rm -f"}
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6729 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6730 # Try some XSI features
6731 xsi_shell=no
6732 ( _lt_dummy="a/b/c"
6733 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6734 = c,a/b,, \
6735 && eval 'test $(( 1 + 1 )) -eq 2 \
6736 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6737 && xsi_shell=yes
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6739 $as_echo "$xsi_shell" >&6; }
6740
6741
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6743 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6744 lt_shell_append=no
6745 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6746 >/dev/null 2>&1 \
6747 && lt_shell_append=yes
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6749 $as_echo "$lt_shell_append" >&6; }
6750
6751
6752 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6753 lt_unset=unset
6754 else
6755 lt_unset=false
6756 fi
6757
6758
6759
6760
6761
6762 # test EBCDIC or ASCII
6763 case `echo X|tr X '\101'` in
6764 A) # ASCII based system
6765 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6766 lt_SP2NL='tr \040 \012'
6767 lt_NL2SP='tr \015\012 \040\040'
6768 ;;
6769 *) # EBCDIC based system
6770 lt_SP2NL='tr \100 \n'
6771 lt_NL2SP='tr \r\n \100\100'
6772 ;;
6773 esac
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6784 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6785 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 lt_cv_ld_reload_flag='-r'
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6791 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6792 reload_flag=$lt_cv_ld_reload_flag
6793 case $reload_flag in
6794 "" | " "*) ;;
6795 *) reload_flag=" $reload_flag" ;;
6796 esac
6797 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6798 case $host_os in
6799 darwin*)
6800 if test "$GCC" = yes; then
6801 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6802 else
6803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6804 fi
6805 ;;
6806 esac
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$OBJDUMP"; then
6825 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 OBJDUMP=$ac_cv_prog_OBJDUMP
6845 if test -n "$OBJDUMP"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6847 $as_echo "$OBJDUMP" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_OBJDUMP"; then
6856 ac_ct_OBJDUMP=$OBJDUMP
6857 # Extract the first word of "objdump", so it can be a program name with args.
6858 set dummy objdump; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$ac_ct_OBJDUMP"; then
6865 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6885 if test -n "$ac_ct_OBJDUMP"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6887 $as_echo "$ac_ct_OBJDUMP" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893 if test "x$ac_ct_OBJDUMP" = x; then
6894 OBJDUMP="false"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902 OBJDUMP=$ac_ct_OBJDUMP
6903 fi
6904 else
6905 OBJDUMP="$ac_cv_prog_OBJDUMP"
6906 fi
6907
6908 test -z "$OBJDUMP" && OBJDUMP=objdump
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6919 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6920 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 lt_cv_file_magic_cmd='$MAGIC_CMD'
6924 lt_cv_file_magic_test_file=
6925 lt_cv_deplibs_check_method='unknown'
6926 # Need to set the preceding variable on all platforms that support
6927 # interlibrary dependencies.
6928 # 'none' -- dependencies not supported.
6929 # `unknown' -- same as none, but documents that we really don't know.
6930 # 'pass_all' -- all dependencies passed with no checks.
6931 # 'test_compile' -- check by making test program.
6932 # 'file_magic [[regex]]' -- check by looking for files in library path
6933 # which responds to the $file_magic_cmd with a given extended regex.
6934 # If you have `file' or equivalent on your system and you're not sure
6935 # whether `pass_all' will *always* work, you probably want this one.
6936
6937 case $host_os in
6938 aix[4-9]*)
6939 lt_cv_deplibs_check_method=pass_all
6940 ;;
6941
6942 beos*)
6943 lt_cv_deplibs_check_method=pass_all
6944 ;;
6945
6946 bsdi[45]*)
6947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6948 lt_cv_file_magic_cmd='/usr/bin/file -L'
6949 lt_cv_file_magic_test_file=/shlib/libc.so
6950 ;;
6951
6952 cygwin*)
6953 # func_win32_libid is a shell function defined in ltmain.sh
6954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6955 lt_cv_file_magic_cmd='func_win32_libid'
6956 ;;
6957
6958 mingw* | pw32*)
6959 # Base MSYS/MinGW do not provide the 'file' command needed by
6960 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6961 # unless we find 'file', for example because we are cross-compiling.
6962 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6963 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6965 lt_cv_file_magic_cmd='func_win32_libid'
6966 else
6967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6968 lt_cv_file_magic_cmd='$OBJDUMP -f'
6969 fi
6970 ;;
6971
6972 cegcc*)
6973 # use the weaker test based on 'objdump'. See mingw*.
6974 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6975 lt_cv_file_magic_cmd='$OBJDUMP -f'
6976 ;;
6977
6978 darwin* | rhapsody*)
6979 lt_cv_deplibs_check_method=pass_all
6980 ;;
6981
6982 freebsd* | dragonfly*)
6983 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6984 case $host_cpu in
6985 i*86 )
6986 # Not sure whether the presence of OpenBSD here was a mistake.
6987 # Let's accept both of them until this is cleared up.
6988 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6989 lt_cv_file_magic_cmd=/usr/bin/file
6990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6991 ;;
6992 esac
6993 else
6994 lt_cv_deplibs_check_method=pass_all
6995 fi
6996 ;;
6997
6998 gnu*)
6999 lt_cv_deplibs_check_method=pass_all
7000 ;;
7001
7002 haiku*)
7003 lt_cv_deplibs_check_method=pass_all
7004 ;;
7005
7006 hpux10.20* | hpux11*)
7007 lt_cv_file_magic_cmd=/usr/bin/file
7008 case $host_cpu in
7009 ia64*)
7010 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7011 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7012 ;;
7013 hppa*64*)
7014 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]'
7015 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7016 ;;
7017 *)
7018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7019 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7020 ;;
7021 esac
7022 ;;
7023
7024 interix[3-9]*)
7025 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7027 ;;
7028
7029 irix5* | irix6* | nonstopux*)
7030 case $LD in
7031 *-32|*"-32 ") libmagic=32-bit;;
7032 *-n32|*"-n32 ") libmagic=N32;;
7033 *-64|*"-64 ") libmagic=64-bit;;
7034 *) libmagic=never-match;;
7035 esac
7036 lt_cv_deplibs_check_method=pass_all
7037 ;;
7038
7039 # This must be Linux ELF.
7040 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7041 lt_cv_deplibs_check_method=pass_all
7042 ;;
7043
7044 netbsd*)
7045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7047 else
7048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7049 fi
7050 ;;
7051
7052 newos6*)
7053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7054 lt_cv_file_magic_cmd=/usr/bin/file
7055 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7056 ;;
7057
7058 *nto* | *qnx*)
7059 lt_cv_deplibs_check_method=pass_all
7060 ;;
7061
7062 openbsd*)
7063 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7065 else
7066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7067 fi
7068 ;;
7069
7070 osf3* | osf4* | osf5*)
7071 lt_cv_deplibs_check_method=pass_all
7072 ;;
7073
7074 rdos*)
7075 lt_cv_deplibs_check_method=pass_all
7076 ;;
7077
7078 solaris*)
7079 lt_cv_deplibs_check_method=pass_all
7080 ;;
7081
7082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7083 lt_cv_deplibs_check_method=pass_all
7084 ;;
7085
7086 sysv4 | sysv4.3*)
7087 case $host_vendor in
7088 motorola)
7089 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]'
7090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7091 ;;
7092 ncr)
7093 lt_cv_deplibs_check_method=pass_all
7094 ;;
7095 sequent)
7096 lt_cv_file_magic_cmd='/bin/file'
7097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7098 ;;
7099 sni)
7100 lt_cv_file_magic_cmd='/bin/file'
7101 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7102 lt_cv_file_magic_test_file=/lib/libc.so
7103 ;;
7104 siemens)
7105 lt_cv_deplibs_check_method=pass_all
7106 ;;
7107 pc)
7108 lt_cv_deplibs_check_method=pass_all
7109 ;;
7110 esac
7111 ;;
7112
7113 tpf*)
7114 lt_cv_deplibs_check_method=pass_all
7115 ;;
7116 esac
7117
7118 fi
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7120 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7121 file_magic_cmd=$lt_cv_file_magic_cmd
7122 deplibs_check_method=$lt_cv_deplibs_check_method
7123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 if test -n "$ac_tool_prefix"; then
7137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}ar; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if test "${ac_cv_prog_AR+set}" = set; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$AR"; then
7145 ac_cv_prog_AR="$AR" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_AR="${ac_tool_prefix}ar"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 AR=$ac_cv_prog_AR
7165 if test -n "$AR"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7167 $as_echo "$AR" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173
7174 fi
7175 if test -z "$ac_cv_prog_AR"; then
7176 ac_ct_AR=$AR
7177 # Extract the first word of "ar", so it can be a program name with args.
7178 set dummy ar; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$ac_ct_AR"; then
7185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_ac_ct_AR="ar"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202 fi
7203 fi
7204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7205 if test -n "$ac_ct_AR"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7207 $as_echo "$ac_ct_AR" >&6; }
7208 else
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213 if test "x$ac_ct_AR" = x; then
7214 AR="false"
7215 else
7216 case $cross_compiling:$ac_tool_warned in
7217 yes:)
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7220 ac_tool_warned=yes ;;
7221 esac
7222 AR=$ac_ct_AR
7223 fi
7224 else
7225 AR="$ac_cv_prog_AR"
7226 fi
7227
7228 test -z "$AR" && AR=ar
7229 test -z "$AR_FLAGS" && AR_FLAGS=cru
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}strip; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_prog_STRIP+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$STRIP"; then
7250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 STRIP=$ac_cv_prog_STRIP
7270 if test -n "$STRIP"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7272 $as_echo "$STRIP" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278
7279 fi
7280 if test -z "$ac_cv_prog_STRIP"; then
7281 ac_ct_STRIP=$STRIP
7282 # Extract the first word of "strip", so it can be a program name with args.
7283 set dummy strip; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$ac_ct_STRIP"; then
7290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_prog_ac_ct_STRIP="strip"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7310 if test -n "$ac_ct_STRIP"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7312 $as_echo "$ac_ct_STRIP" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7316 fi
7317
7318 if test "x$ac_ct_STRIP" = x; then
7319 STRIP=":"
7320 else
7321 case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327 STRIP=$ac_ct_STRIP
7328 fi
7329 else
7330 STRIP="$ac_cv_prog_STRIP"
7331 fi
7332
7333 test -z "$STRIP" && STRIP=:
7334
7335
7336
7337
7338
7339
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 if test -n "$RANLIB"; then
7349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 RANLIB=$ac_cv_prog_RANLIB
7369 if test -n "$RANLIB"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7371 $as_echo "$RANLIB" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_RANLIB"; then
7380 ac_ct_RANLIB=$RANLIB
7381 # Extract the first word of "ranlib", so it can be a program name with args.
7382 set dummy ranlib; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 if test -n "$ac_ct_RANLIB"; then
7389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_prog_ac_ct_RANLIB="ranlib"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7409 if test -n "$ac_ct_RANLIB"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7411 $as_echo "$ac_ct_RANLIB" >&6; }
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417 if test "x$ac_ct_RANLIB" = x; then
7418 RANLIB=":"
7419 else
7420 case $cross_compiling:$ac_tool_warned in
7421 yes:)
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7425 esac
7426 RANLIB=$ac_ct_RANLIB
7427 fi
7428 else
7429 RANLIB="$ac_cv_prog_RANLIB"
7430 fi
7431
7432 test -z "$RANLIB" && RANLIB=:
7433
7434
7435
7436
7437
7438
7439 # Determine commands to create old-style static archives.
7440 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7441 old_postinstall_cmds='chmod 644 $oldlib'
7442 old_postuninstall_cmds=
7443
7444 if test -n "$RANLIB"; then
7445 case $host_os in
7446 openbsd*)
7447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7448 ;;
7449 *)
7450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7451 ;;
7452 esac
7453 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7454 fi
7455
7456 case $host_os in
7457 darwin*)
7458 lock_old_archive_extraction=yes ;;
7459 *)
7460 lock_old_archive_extraction=no ;;
7461 esac
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501 # If no C compiler was specified, use CC.
7502 LTCC=${LTCC-"$CC"}
7503
7504 # If no C compiler flags were specified, use CFLAGS.
7505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7506
7507 # Allow CC to be a program name with arguments.
7508 compiler=$CC
7509
7510
7511 # Check for command to grab the raw symbol name followed by C symbol from nm.
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7513 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7514 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517
7518 # These are sane defaults that work on at least a few old systems.
7519 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7520
7521 # Character class describing NM global symbol codes.
7522 symcode='[BCDEGRST]'
7523
7524 # Regexp to match symbols that can be accessed directly from C.
7525 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7526
7527 # Define system-specific variables.
7528 case $host_os in
7529 aix*)
7530 symcode='[BCDT]'
7531 ;;
7532 cygwin* | mingw* | pw32* | cegcc*)
7533 symcode='[ABCDGISTW]'
7534 ;;
7535 hpux*)
7536 if test "$host_cpu" = ia64; then
7537 symcode='[ABCDEGRST]'
7538 fi
7539 ;;
7540 irix* | nonstopux*)
7541 symcode='[BCDEGRST]'
7542 ;;
7543 osf*)
7544 symcode='[BCDEGQRST]'
7545 ;;
7546 solaris*)
7547 symcode='[BDRT]'
7548 ;;
7549 sco3.2v5*)
7550 symcode='[DT]'
7551 ;;
7552 sysv4.2uw2*)
7553 symcode='[DT]'
7554 ;;
7555 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7556 symcode='[ABDT]'
7557 ;;
7558 sysv4)
7559 symcode='[DFNSTU]'
7560 ;;
7561 esac
7562
7563 # If we're using GNU nm, then use its standard symbol codes.
7564 case `$NM -V 2>&1` in
7565 *GNU* | *'with BFD'*)
7566 symcode='[ABCDGIRSTW]' ;;
7567 esac
7568
7569 # Transform an extracted symbol line into a proper C declaration.
7570 # Some systems (esp. on ia64) link data and code symbols differently,
7571 # so use this general approach.
7572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7573
7574 # Transform an extracted symbol line into symbol name and symbol address
7575 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7576 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'"
7577
7578 # Handle CRLF in mingw tool chain
7579 opt_cr=
7580 case $build_os in
7581 mingw*)
7582 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7583 ;;
7584 esac
7585
7586 # Try without a prefix underscore, then with it.
7587 for ac_symprfx in "" "_"; do
7588
7589 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7590 symxfrm="\\1 $ac_symprfx\\2 \\2"
7591
7592 # Write the raw and C identifiers.
7593 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7594 # Fake it for dumpbin and say T for any non-static function
7595 # and D for any global variable.
7596 # Also find C++ and __fastcall symbols from MSVC++,
7597 # which start with @ or ?.
7598 lt_cv_sys_global_symbol_pipe="$AWK '"\
7599 " {last_section=section; section=\$ 3};"\
7600 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7601 " \$ 0!~/External *\|/{next};"\
7602 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7603 " {if(hide[section]) next};"\
7604 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7605 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7606 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7607 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7608 " ' prfx=^$ac_symprfx"
7609 else
7610 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7611 fi
7612
7613 # Check to see that the pipe works correctly.
7614 pipe_works=no
7615
7616 rm -f conftest*
7617 cat > conftest.$ac_ext <<_LT_EOF
7618 #ifdef __cplusplus
7619 extern "C" {
7620 #endif
7621 char nm_test_var;
7622 void nm_test_func(void);
7623 void nm_test_func(void){}
7624 #ifdef __cplusplus
7625 }
7626 #endif
7627 int main(){nm_test_var='a';nm_test_func();return(0);}
7628 _LT_EOF
7629
7630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7631 (eval $ac_compile) 2>&5
7632 ac_status=$?
7633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; }; then
7635 # Now try to grab the symbols.
7636 nlist=conftest.nm
7637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7638 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7639 ac_status=$?
7640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641 test $ac_status = 0; } && test -s "$nlist"; then
7642 # Try sorting and uniquifying the output.
7643 if sort "$nlist" | uniq > "$nlist"T; then
7644 mv -f "$nlist"T "$nlist"
7645 else
7646 rm -f "$nlist"T
7647 fi
7648
7649 # Make sure that we snagged all the symbols we need.
7650 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7651 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7652 cat <<_LT_EOF > conftest.$ac_ext
7653 #ifdef __cplusplus
7654 extern "C" {
7655 #endif
7656
7657 _LT_EOF
7658 # Now generate the symbol file.
7659 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7660
7661 cat <<_LT_EOF >> conftest.$ac_ext
7662
7663 /* The mapping between symbol names and symbols. */
7664 const struct {
7665 const char *name;
7666 void *address;
7667 }
7668 lt__PROGRAM__LTX_preloaded_symbols[] =
7669 {
7670 { "@PROGRAM@", (void *) 0 },
7671 _LT_EOF
7672 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7673 cat <<\_LT_EOF >> conftest.$ac_ext
7674 {0, (void *) 0}
7675 };
7676
7677 /* This works around a problem in FreeBSD linker */
7678 #ifdef FREEBSD_WORKAROUND
7679 static const void *lt_preloaded_setup() {
7680 return lt__PROGRAM__LTX_preloaded_symbols;
7681 }
7682 #endif
7683
7684 #ifdef __cplusplus
7685 }
7686 #endif
7687 _LT_EOF
7688 # Now try linking the two files.
7689 mv conftest.$ac_objext conftstm.$ac_objext
7690 lt_save_LIBS="$LIBS"
7691 lt_save_CFLAGS="$CFLAGS"
7692 LIBS="conftstm.$ac_objext"
7693 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7695 (eval $ac_link) 2>&5
7696 ac_status=$?
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7699 pipe_works=yes
7700 fi
7701 LIBS="$lt_save_LIBS"
7702 CFLAGS="$lt_save_CFLAGS"
7703 else
7704 echo "cannot find nm_test_func in $nlist" >&5
7705 fi
7706 else
7707 echo "cannot find nm_test_var in $nlist" >&5
7708 fi
7709 else
7710 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7711 fi
7712 else
7713 echo "$progname: failed program was:" >&5
7714 cat conftest.$ac_ext >&5
7715 fi
7716 rm -rf conftest* conftst*
7717
7718 # Do not use the global_symbol_pipe unless it works.
7719 if test "$pipe_works" = yes; then
7720 break
7721 else
7722 lt_cv_sys_global_symbol_pipe=
7723 fi
7724 done
7725
7726 fi
7727
7728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7729 lt_cv_sys_global_symbol_to_cdecl=
7730 fi
7731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7733 $as_echo "failed" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7736 $as_echo "ok" >&6; }
7737 fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760 # Check whether --enable-libtool-lock was given.
7761 if test "${enable_libtool_lock+set}" = set; then :
7762 enableval=$enable_libtool_lock;
7763 fi
7764
7765 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7766
7767 # Some flags need to be propagated to the compiler or linker for good
7768 # libtool support.
7769 case $host in
7770 ia64-*-hpux*)
7771 # Find out which ABI we are using.
7772 echo 'int i;' > conftest.$ac_ext
7773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7774 (eval $ac_compile) 2>&5
7775 ac_status=$?
7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; }; then
7778 case `/usr/bin/file conftest.$ac_objext` in
7779 *ELF-32*)
7780 HPUX_IA64_MODE="32"
7781 ;;
7782 *ELF-64*)
7783 HPUX_IA64_MODE="64"
7784 ;;
7785 esac
7786 fi
7787 rm -rf conftest*
7788 ;;
7789 *-*-irix6*)
7790 # Find out which ABI we are using.
7791 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7793 (eval $ac_compile) 2>&5
7794 ac_status=$?
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 if test "$lt_cv_prog_gnu_ld" = yes; then
7798 case `/usr/bin/file conftest.$ac_objext` in
7799 *32-bit*)
7800 LD="${LD-ld} -melf32bsmip"
7801 ;;
7802 *N32*)
7803 LD="${LD-ld} -melf32bmipn32"
7804 ;;
7805 *64-bit*)
7806 LD="${LD-ld} -melf64bmip"
7807 ;;
7808 esac
7809 else
7810 case `/usr/bin/file conftest.$ac_objext` in
7811 *32-bit*)
7812 LD="${LD-ld} -32"
7813 ;;
7814 *N32*)
7815 LD="${LD-ld} -n32"
7816 ;;
7817 *64-bit*)
7818 LD="${LD-ld} -64"
7819 ;;
7820 esac
7821 fi
7822 fi
7823 rm -rf conftest*
7824 ;;
7825
7826 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7827 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7828 # Find out which ABI we are using.
7829 echo 'int i;' > conftest.$ac_ext
7830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7831 (eval $ac_compile) 2>&5
7832 ac_status=$?
7833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834 test $ac_status = 0; }; then
7835 case `/usr/bin/file conftest.o` in
7836 *32-bit*)
7837 case $host in
7838 x86_64-*kfreebsd*-gnu)
7839 LD="${LD-ld} -m elf_i386_fbsd"
7840 ;;
7841 x86_64-*linux*)
7842 case `/usr/bin/file conftest.o` in
7843 *x86-64*)
7844 LD="${LD-ld} -m elf32_x86_64"
7845 ;;
7846 *)
7847 LD="${LD-ld} -m elf_i386"
7848 ;;
7849 esac
7850 ;;
7851 powerpc64le-*linux*)
7852 LD="${LD-ld} -m elf32lppclinux"
7853 ;;
7854 powerpc64-*linux*)
7855 LD="${LD-ld} -m elf32ppclinux"
7856 ;;
7857 s390x-*linux*)
7858 LD="${LD-ld} -m elf_s390"
7859 ;;
7860 sparc64-*linux*)
7861 LD="${LD-ld} -m elf32_sparc"
7862 ;;
7863 esac
7864 ;;
7865 *64-bit*)
7866 case $host in
7867 x86_64-*kfreebsd*-gnu)
7868 LD="${LD-ld} -m elf_x86_64_fbsd"
7869 ;;
7870 x86_64-*linux*)
7871 LD="${LD-ld} -m elf_x86_64"
7872 ;;
7873 powerpcle-*linux*)
7874 LD="${LD-ld} -m elf64lppc"
7875 ;;
7876 powerpc-*linux*)
7877 LD="${LD-ld} -m elf64ppc"
7878 ;;
7879 s390*-*linux*|s390*-*tpf*)
7880 LD="${LD-ld} -m elf64_s390"
7881 ;;
7882 sparc*-*linux*)
7883 LD="${LD-ld} -m elf64_sparc"
7884 ;;
7885 esac
7886 ;;
7887 esac
7888 fi
7889 rm -rf conftest*
7890 ;;
7891
7892 *-*-sco3.2v5*)
7893 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7894 SAVE_CFLAGS="$CFLAGS"
7895 CFLAGS="$CFLAGS -belf"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7897 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7898 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 ac_ext=c
7902 ac_cpp='$CPP $CPPFLAGS'
7903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909
7910 int
7911 main ()
7912 {
7913
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 lt_cv_cc_needs_belf=yes
7920 else
7921 lt_cv_cc_needs_belf=no
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 ac_ext=c
7926 ac_cpp='$CPP $CPPFLAGS'
7927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7930
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7933 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7934 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7935 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7936 CFLAGS="$SAVE_CFLAGS"
7937 fi
7938 ;;
7939 sparc*-*solaris*)
7940 # Find out which ABI we are using.
7941 echo 'int i;' > conftest.$ac_ext
7942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7943 (eval $ac_compile) 2>&5
7944 ac_status=$?
7945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7946 test $ac_status = 0; }; then
7947 case `/usr/bin/file conftest.o` in
7948 *64-bit*)
7949 case $lt_cv_prog_gnu_ld in
7950 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7951 *)
7952 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7953 LD="${LD-ld} -64"
7954 fi
7955 ;;
7956 esac
7957 ;;
7958 esac
7959 fi
7960 rm -rf conftest*
7961 ;;
7962 esac
7963
7964 need_locks="$enable_libtool_lock"
7965
7966
7967 case $host_os in
7968 rhapsody* | darwin*)
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7971 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 if test -n "$DSYMUTIL"; then
7978 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991 done
7992 done
7993 IFS=$as_save_IFS
7994
7995 fi
7996 fi
7997 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7998 if test -n "$DSYMUTIL"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8000 $as_echo "$DSYMUTIL" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8004 fi
8005
8006
8007 fi
8008 if test -z "$ac_cv_prog_DSYMUTIL"; then
8009 ac_ct_DSYMUTIL=$DSYMUTIL
8010 # Extract the first word of "dsymutil", so it can be a program name with args.
8011 set dummy dsymutil; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 if test -n "$ac_ct_DSYMUTIL"; then
8018 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031 done
8032 done
8033 IFS=$as_save_IFS
8034
8035 fi
8036 fi
8037 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8038 if test -n "$ac_ct_DSYMUTIL"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8040 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8041 else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8044 fi
8045
8046 if test "x$ac_ct_DSYMUTIL" = x; then
8047 DSYMUTIL=":"
8048 else
8049 case $cross_compiling:$ac_tool_warned in
8050 yes:)
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8053 ac_tool_warned=yes ;;
8054 esac
8055 DSYMUTIL=$ac_ct_DSYMUTIL
8056 fi
8057 else
8058 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8059 fi
8060
8061 if test -n "$ac_tool_prefix"; then
8062 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8063 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 if test -n "$NMEDIT"; then
8070 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8074 do
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8082 fi
8083 done
8084 done
8085 IFS=$as_save_IFS
8086
8087 fi
8088 fi
8089 NMEDIT=$ac_cv_prog_NMEDIT
8090 if test -n "$NMEDIT"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8092 $as_echo "$NMEDIT" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8096 fi
8097
8098
8099 fi
8100 if test -z "$ac_cv_prog_NMEDIT"; then
8101 ac_ct_NMEDIT=$NMEDIT
8102 # Extract the first word of "nmedit", so it can be a program name with args.
8103 set dummy nmedit; ac_word=$2
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 $as_echo_n "checking for $ac_word... " >&6; }
8106 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 if test -n "$ac_ct_NMEDIT"; then
8110 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8122 fi
8123 done
8124 done
8125 IFS=$as_save_IFS
8126
8127 fi
8128 fi
8129 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8130 if test -n "$ac_ct_NMEDIT"; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8132 $as_echo "$ac_ct_NMEDIT" >&6; }
8133 else
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8136 fi
8137
8138 if test "x$ac_ct_NMEDIT" = x; then
8139 NMEDIT=":"
8140 else
8141 case $cross_compiling:$ac_tool_warned in
8142 yes:)
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8145 ac_tool_warned=yes ;;
8146 esac
8147 NMEDIT=$ac_ct_NMEDIT
8148 fi
8149 else
8150 NMEDIT="$ac_cv_prog_NMEDIT"
8151 fi
8152
8153 if test -n "$ac_tool_prefix"; then
8154 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8155 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if test "${ac_cv_prog_LIPO+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 if test -n "$LIPO"; then
8162 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8166 do
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8174 fi
8175 done
8176 done
8177 IFS=$as_save_IFS
8178
8179 fi
8180 fi
8181 LIPO=$ac_cv_prog_LIPO
8182 if test -n "$LIPO"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8184 $as_echo "$LIPO" >&6; }
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8188 fi
8189
8190
8191 fi
8192 if test -z "$ac_cv_prog_LIPO"; then
8193 ac_ct_LIPO=$LIPO
8194 # Extract the first word of "lipo", so it can be a program name with args.
8195 set dummy lipo; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 if test -n "$ac_ct_LIPO"; then
8202 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8211 ac_cv_prog_ac_ct_LIPO="lipo"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8214 fi
8215 done
8216 done
8217 IFS=$as_save_IFS
8218
8219 fi
8220 fi
8221 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8222 if test -n "$ac_ct_LIPO"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8224 $as_echo "$ac_ct_LIPO" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 fi
8229
8230 if test "x$ac_ct_LIPO" = x; then
8231 LIPO=":"
8232 else
8233 case $cross_compiling:$ac_tool_warned in
8234 yes:)
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8237 ac_tool_warned=yes ;;
8238 esac
8239 LIPO=$ac_ct_LIPO
8240 fi
8241 else
8242 LIPO="$ac_cv_prog_LIPO"
8243 fi
8244
8245 if test -n "$ac_tool_prefix"; then
8246 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8247 set dummy ${ac_tool_prefix}otool; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 if test -n "$OTOOL"; then
8254 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267 done
8268 done
8269 IFS=$as_save_IFS
8270
8271 fi
8272 fi
8273 OTOOL=$ac_cv_prog_OTOOL
8274 if test -n "$OTOOL"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8276 $as_echo "$OTOOL" >&6; }
8277 else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8280 fi
8281
8282
8283 fi
8284 if test -z "$ac_cv_prog_OTOOL"; then
8285 ac_ct_OTOOL=$OTOOL
8286 # Extract the first word of "otool", so it can be a program name with args.
8287 set dummy otool; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 if test -n "$ac_ct_OTOOL"; then
8294 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_ac_ct_OTOOL="otool"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8306 fi
8307 done
8308 done
8309 IFS=$as_save_IFS
8310
8311 fi
8312 fi
8313 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8314 if test -n "$ac_ct_OTOOL"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8316 $as_echo "$ac_ct_OTOOL" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322 if test "x$ac_ct_OTOOL" = x; then
8323 OTOOL=":"
8324 else
8325 case $cross_compiling:$ac_tool_warned in
8326 yes:)
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8329 ac_tool_warned=yes ;;
8330 esac
8331 OTOOL=$ac_ct_OTOOL
8332 fi
8333 else
8334 OTOOL="$ac_cv_prog_OTOOL"
8335 fi
8336
8337 if test -n "$ac_tool_prefix"; then
8338 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8339 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 if test -n "$OTOOL64"; then
8346 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359 done
8360 done
8361 IFS=$as_save_IFS
8362
8363 fi
8364 fi
8365 OTOOL64=$ac_cv_prog_OTOOL64
8366 if test -n "$OTOOL64"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8368 $as_echo "$OTOOL64" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 fi
8373
8374
8375 fi
8376 if test -z "$ac_cv_prog_OTOOL64"; then
8377 ac_ct_OTOOL64=$OTOOL64
8378 # Extract the first word of "otool64", so it can be a program name with args.
8379 set dummy otool64; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 if test -n "$ac_ct_OTOOL64"; then
8386 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8387 else
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395 ac_cv_prog_ac_ct_OTOOL64="otool64"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 break 2
8398 fi
8399 done
8400 done
8401 IFS=$as_save_IFS
8402
8403 fi
8404 fi
8405 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8406 if test -n "$ac_ct_OTOOL64"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8408 $as_echo "$ac_ct_OTOOL64" >&6; }
8409 else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8412 fi
8413
8414 if test "x$ac_ct_OTOOL64" = x; then
8415 OTOOL64=":"
8416 else
8417 case $cross_compiling:$ac_tool_warned in
8418 yes:)
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8421 ac_tool_warned=yes ;;
8422 esac
8423 OTOOL64=$ac_ct_OTOOL64
8424 fi
8425 else
8426 OTOOL64="$ac_cv_prog_OTOOL64"
8427 fi
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8456 $as_echo_n "checking for -single_module linker flag... " >&6; }
8457 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 lt_cv_apple_cc_single_mod=no
8461 if test -z "${LT_MULTI_MODULE}"; then
8462 # By default we will add the -single_module flag. You can override
8463 # by either setting the environment variable LT_MULTI_MODULE
8464 # non-empty at configure time, or by adding -multi_module to the
8465 # link flags.
8466 rm -rf libconftest.dylib*
8467 echo "int foo(void){return 1;}" > conftest.c
8468 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8469 -dynamiclib -Wl,-single_module conftest.c" >&5
8470 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8471 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8472 _lt_result=$?
8473 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8474 lt_cv_apple_cc_single_mod=yes
8475 else
8476 cat conftest.err >&5
8477 fi
8478 rm -rf libconftest.dylib*
8479 rm -f conftest.*
8480 fi
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8483 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8485 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8486 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 lt_cv_ld_exported_symbols_list=no
8490 save_LDFLAGS=$LDFLAGS
8491 echo "_main" > conftest.sym
8492 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495
8496 int
8497 main ()
8498 {
8499
8500 ;
8501 return 0;
8502 }
8503 _ACEOF
8504 if ac_fn_c_try_link "$LINENO"; then :
8505 lt_cv_ld_exported_symbols_list=yes
8506 else
8507 lt_cv_ld_exported_symbols_list=no
8508 fi
8509 rm -f core conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 LDFLAGS="$save_LDFLAGS"
8512
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8515 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8517 $as_echo_n "checking for -force_load linker flag... " >&6; }
8518 if test "${lt_cv_ld_force_load+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 lt_cv_ld_force_load=no
8522 cat > conftest.c << _LT_EOF
8523 int forced_loaded() { return 2;}
8524 _LT_EOF
8525 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8526 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8527 echo "$AR cru libconftest.a conftest.o" >&5
8528 $AR cru libconftest.a conftest.o 2>&5
8529 cat > conftest.c << _LT_EOF
8530 int main() { return 0;}
8531 _LT_EOF
8532 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8533 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8534 _lt_result=$?
8535 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8536 lt_cv_ld_force_load=yes
8537 else
8538 cat conftest.err >&5
8539 fi
8540 rm -f conftest.err libconftest.a conftest conftest.c
8541 rm -rf conftest.dSYM
8542
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8545 $as_echo "$lt_cv_ld_force_load" >&6; }
8546 case $host_os in
8547 rhapsody* | darwin1.[012])
8548 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8549 darwin1.*)
8550 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8551 darwin*) # darwin 5.x on
8552 # if running on 10.5 or later, the deployment target defaults
8553 # to the OS version, if on x86, and 10.4, the deployment
8554 # target defaults to 10.4. Don't you love it?
8555 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8556 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8557 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8558 10.[012][,.]*)
8559 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8560 10.*)
8561 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8562 esac
8563 ;;
8564 esac
8565 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8566 _lt_dar_single_mod='$single_module'
8567 fi
8568 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8569 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8570 else
8571 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8572 fi
8573 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8574 _lt_dsymutil='~$DSYMUTIL $lib || :'
8575 else
8576 _lt_dsymutil=
8577 fi
8578 ;;
8579 esac
8580
8581 for ac_header in dlfcn.h
8582 do :
8583 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8584 "
8585 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8586 cat >>confdefs.h <<_ACEOF
8587 #define HAVE_DLFCN_H 1
8588 _ACEOF
8589
8590 fi
8591
8592 done
8593
8594
8595
8596
8597
8598
8599 # Set options
8600
8601
8602
8603
8604 enable_win32_dll=no
8605
8606
8607 # Check whether --enable-shared was given.
8608 if test "${enable_shared+set}" = set; then :
8609 enableval=$enable_shared; p=${PACKAGE-default}
8610 case $enableval in
8611 yes) enable_shared=yes ;;
8612 no) enable_shared=no ;;
8613 *)
8614 enable_shared=no
8615 # Look at the argument we got. We use all the common list separators.
8616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8617 for pkg in $enableval; do
8618 IFS="$lt_save_ifs"
8619 if test "X$pkg" = "X$p"; then
8620 enable_shared=yes
8621 fi
8622 done
8623 IFS="$lt_save_ifs"
8624 ;;
8625 esac
8626 else
8627 enable_shared=yes
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638 # Check whether --enable-static was given.
8639 if test "${enable_static+set}" = set; then :
8640 enableval=$enable_static; p=${PACKAGE-default}
8641 case $enableval in
8642 yes) enable_static=yes ;;
8643 no) enable_static=no ;;
8644 *)
8645 enable_static=no
8646 # Look at the argument we got. We use all the common list separators.
8647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8648 for pkg in $enableval; do
8649 IFS="$lt_save_ifs"
8650 if test "X$pkg" = "X$p"; then
8651 enable_static=yes
8652 fi
8653 done
8654 IFS="$lt_save_ifs"
8655 ;;
8656 esac
8657 else
8658 enable_static=yes
8659 fi
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670 # Check whether --with-pic was given.
8671 if test "${with_pic+set}" = set; then :
8672 withval=$with_pic; pic_mode="$withval"
8673 else
8674 pic_mode=default
8675 fi
8676
8677
8678 test -z "$pic_mode" && pic_mode=default
8679
8680
8681
8682
8683
8684
8685
8686 # Check whether --enable-fast-install was given.
8687 if test "${enable_fast_install+set}" = set; then :
8688 enableval=$enable_fast_install; p=${PACKAGE-default}
8689 case $enableval in
8690 yes) enable_fast_install=yes ;;
8691 no) enable_fast_install=no ;;
8692 *)
8693 enable_fast_install=no
8694 # Look at the argument we got. We use all the common list separators.
8695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8696 for pkg in $enableval; do
8697 IFS="$lt_save_ifs"
8698 if test "X$pkg" = "X$p"; then
8699 enable_fast_install=yes
8700 fi
8701 done
8702 IFS="$lt_save_ifs"
8703 ;;
8704 esac
8705 else
8706 enable_fast_install=yes
8707 fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719 # This can be used to rebuild libtool when needed
8720 LIBTOOL_DEPS="$ltmain"
8721
8722 # Always use our own libtool.
8723 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750 test -z "$LN_S" && LN_S="ln -s"
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765 if test -n "${ZSH_VERSION+set}" ; then
8766 setopt NO_GLOB_SUBST
8767 fi
8768
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8770 $as_echo_n "checking for objdir... " >&6; }
8771 if test "${lt_cv_objdir+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 rm -f .libs 2>/dev/null
8775 mkdir .libs 2>/dev/null
8776 if test -d .libs; then
8777 lt_cv_objdir=.libs
8778 else
8779 # MS-DOS does not allow filenames that begin with a dot.
8780 lt_cv_objdir=_libs
8781 fi
8782 rmdir .libs 2>/dev/null
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8785 $as_echo "$lt_cv_objdir" >&6; }
8786 objdir=$lt_cv_objdir
8787
8788
8789
8790
8791
8792 cat >>confdefs.h <<_ACEOF
8793 #define LT_OBJDIR "$lt_cv_objdir/"
8794 _ACEOF
8795
8796
8797
8798
8799 case $host_os in
8800 aix3*)
8801 # AIX sometimes has problems with the GCC collect2 program. For some
8802 # reason, if we set the COLLECT_NAMES environment variable, the problems
8803 # vanish in a puff of smoke.
8804 if test "X${COLLECT_NAMES+set}" != Xset; then
8805 COLLECT_NAMES=
8806 export COLLECT_NAMES
8807 fi
8808 ;;
8809 esac
8810
8811 # Global variables:
8812 ofile=libtool
8813 can_build_shared=yes
8814
8815 # All known linkers require a `.a' archive for static linking (except MSVC,
8816 # which needs '.lib').
8817 libext=a
8818
8819 with_gnu_ld="$lt_cv_prog_gnu_ld"
8820
8821 old_CC="$CC"
8822 old_CFLAGS="$CFLAGS"
8823
8824 # Set sane defaults for various variables
8825 test -z "$CC" && CC=cc
8826 test -z "$LTCC" && LTCC=$CC
8827 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8828 test -z "$LD" && LD=ld
8829 test -z "$ac_objext" && ac_objext=o
8830
8831 for cc_temp in $compiler""; do
8832 case $cc_temp in
8833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8835 \-*) ;;
8836 *) break;;
8837 esac
8838 done
8839 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8840
8841
8842 # Only perform the check for file, if the check method requires it
8843 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8844 case $deplibs_check_method in
8845 file_magic*)
8846 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8848 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8849 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 case $MAGIC_CMD in
8853 [\\/*] | ?:[\\/]*)
8854 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8855 ;;
8856 *)
8857 lt_save_MAGIC_CMD="$MAGIC_CMD"
8858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8860 for ac_dir in $ac_dummy; do
8861 IFS="$lt_save_ifs"
8862 test -z "$ac_dir" && ac_dir=.
8863 if test -f $ac_dir/${ac_tool_prefix}file; then
8864 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8865 if test -n "$file_magic_test_file"; then
8866 case $deplibs_check_method in
8867 "file_magic "*)
8868 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8871 $EGREP "$file_magic_regex" > /dev/null; then
8872 :
8873 else
8874 cat <<_LT_EOF 1>&2
8875
8876 *** Warning: the command libtool uses to detect shared libraries,
8877 *** $file_magic_cmd, produces output that libtool cannot recognize.
8878 *** The result is that libtool may fail to recognize shared libraries
8879 *** as such. This will affect the creation of libtool libraries that
8880 *** depend on shared libraries, but programs linked with such libtool
8881 *** libraries will work regardless of this problem. Nevertheless, you
8882 *** may want to report the problem to your system manager and/or to
8883 *** bug-libtool@gnu.org
8884
8885 _LT_EOF
8886 fi ;;
8887 esac
8888 fi
8889 break
8890 fi
8891 done
8892 IFS="$lt_save_ifs"
8893 MAGIC_CMD="$lt_save_MAGIC_CMD"
8894 ;;
8895 esac
8896 fi
8897
8898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8899 if test -n "$MAGIC_CMD"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8901 $as_echo "$MAGIC_CMD" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8905 fi
8906
8907
8908
8909
8910
8911 if test -z "$lt_cv_path_MAGIC_CMD"; then
8912 if test -n "$ac_tool_prefix"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8914 $as_echo_n "checking for file... " >&6; }
8915 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 case $MAGIC_CMD in
8919 [\\/*] | ?:[\\/]*)
8920 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8921 ;;
8922 *)
8923 lt_save_MAGIC_CMD="$MAGIC_CMD"
8924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8926 for ac_dir in $ac_dummy; do
8927 IFS="$lt_save_ifs"
8928 test -z "$ac_dir" && ac_dir=.
8929 if test -f $ac_dir/file; then
8930 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8931 if test -n "$file_magic_test_file"; then
8932 case $deplibs_check_method in
8933 "file_magic "*)
8934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8937 $EGREP "$file_magic_regex" > /dev/null; then
8938 :
8939 else
8940 cat <<_LT_EOF 1>&2
8941
8942 *** Warning: the command libtool uses to detect shared libraries,
8943 *** $file_magic_cmd, produces output that libtool cannot recognize.
8944 *** The result is that libtool may fail to recognize shared libraries
8945 *** as such. This will affect the creation of libtool libraries that
8946 *** depend on shared libraries, but programs linked with such libtool
8947 *** libraries will work regardless of this problem. Nevertheless, you
8948 *** may want to report the problem to your system manager and/or to
8949 *** bug-libtool@gnu.org
8950
8951 _LT_EOF
8952 fi ;;
8953 esac
8954 fi
8955 break
8956 fi
8957 done
8958 IFS="$lt_save_ifs"
8959 MAGIC_CMD="$lt_save_MAGIC_CMD"
8960 ;;
8961 esac
8962 fi
8963
8964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8965 if test -n "$MAGIC_CMD"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8967 $as_echo "$MAGIC_CMD" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8971 fi
8972
8973
8974 else
8975 MAGIC_CMD=:
8976 fi
8977 fi
8978
8979 fi
8980 ;;
8981 esac
8982
8983 # Use C for the default configuration in the libtool script
8984
8985 lt_save_CC="$CC"
8986 ac_ext=c
8987 ac_cpp='$CPP $CPPFLAGS'
8988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8991
8992
8993 # Source file extension for C test sources.
8994 ac_ext=c
8995
8996 # Object file extension for compiled C test sources.
8997 objext=o
8998 objext=$objext
8999
9000 # Code to be used in simple compile tests
9001 lt_simple_compile_test_code="int some_variable = 0;"
9002
9003 # Code to be used in simple link tests
9004 lt_simple_link_test_code='int main(){return(0);}'
9005
9006
9007
9008
9009
9010
9011
9012 # If no C compiler was specified, use CC.
9013 LTCC=${LTCC-"$CC"}
9014
9015 # If no C compiler flags were specified, use CFLAGS.
9016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9017
9018 # Allow CC to be a program name with arguments.
9019 compiler=$CC
9020
9021 # Save the default compiler, since it gets overwritten when the other
9022 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9023 compiler_DEFAULT=$CC
9024
9025 # save warnings/boilerplate of simple test code
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9028 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9029 _lt_compiler_boilerplate=`cat conftest.err`
9030 $RM conftest*
9031
9032 ac_outfile=conftest.$ac_objext
9033 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9034 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9035 _lt_linker_boilerplate=`cat conftest.err`
9036 $RM -r conftest*
9037
9038
9039 ## CAVEAT EMPTOR:
9040 ## There is no encapsulation within the following macros, do not change
9041 ## the running order or otherwise move them around unless you know exactly
9042 ## what you are doing...
9043 if test -n "$compiler"; then
9044
9045 lt_prog_compiler_no_builtin_flag=
9046
9047 if test "$GCC" = yes; then
9048 case $cc_basename in
9049 nvcc*)
9050 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9051 *)
9052 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9053 esac
9054
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9056 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9057 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 lt_cv_prog_compiler_rtti_exceptions=no
9061 ac_outfile=conftest.$ac_objext
9062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9063 lt_compiler_flag="-fno-rtti -fno-exceptions"
9064 # Insert the option either (1) after the last *FLAGS variable, or
9065 # (2) before a word containing "conftest.", or (3) at the end.
9066 # Note that $ac_compile itself does not contain backslashes and begins
9067 # with a dollar sign (not a hyphen), so the echo should work correctly.
9068 # The option is referenced via a variable to avoid confusing sed.
9069 lt_compile=`echo "$ac_compile" | $SED \
9070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072 -e 's:$: $lt_compiler_flag:'`
9073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074 (eval "$lt_compile" 2>conftest.err)
9075 ac_status=$?
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 if (exit $ac_status) && test -s "$ac_outfile"; then
9079 # The compiler can only warn and ignore the option if not recognized
9080 # So say no if there are warnings other than the usual output.
9081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9084 lt_cv_prog_compiler_rtti_exceptions=yes
9085 fi
9086 fi
9087 $RM conftest*
9088
9089 fi
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9091 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9092
9093 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9094 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9095 else
9096 :
9097 fi
9098
9099 fi
9100
9101
9102
9103
9104
9105
9106 lt_prog_compiler_wl=
9107 lt_prog_compiler_pic=
9108 lt_prog_compiler_static=
9109
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9111 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9112
9113 if test "$GCC" = yes; then
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_static='-static'
9116
9117 case $host_os in
9118 aix*)
9119 # All AIX code is PIC.
9120 if test "$host_cpu" = ia64; then
9121 # AIX 5 now supports IA64 processor
9122 lt_prog_compiler_static='-Bstatic'
9123 fi
9124 lt_prog_compiler_pic='-fPIC'
9125 ;;
9126
9127 amigaos*)
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 lt_prog_compiler_pic='-fPIC'
9132 ;;
9133 m68k)
9134 # FIXME: we need at least 68020 code to build shared libraries, but
9135 # adding the `-m68020' flag to GCC prevents building anything better,
9136 # like `-m68040'.
9137 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9138 ;;
9139 esac
9140 ;;
9141
9142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9143 # PIC is the default for these OSes.
9144 ;;
9145
9146 mingw* | cygwin* | pw32* | os2* | cegcc*)
9147 # This hack is so that the source file can tell whether it is being
9148 # built for inclusion in a dll (and should export symbols for example).
9149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9150 # (--disable-auto-import) libraries
9151 lt_prog_compiler_pic='-DDLL_EXPORT'
9152 ;;
9153
9154 darwin* | rhapsody*)
9155 # PIC is the default on this platform
9156 # Common symbols not allowed in MH_DYLIB files
9157 lt_prog_compiler_pic='-fno-common'
9158 ;;
9159
9160 haiku*)
9161 # PIC is the default for Haiku.
9162 # The "-static" flag exists, but is broken.
9163 lt_prog_compiler_static=
9164 ;;
9165
9166 hpux*)
9167 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9168 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9169 # sets the default TLS model and affects inlining.
9170 case $host_cpu in
9171 hppa*64*)
9172 # +Z the default
9173 ;;
9174 *)
9175 lt_prog_compiler_pic='-fPIC'
9176 ;;
9177 esac
9178 ;;
9179
9180 interix[3-9]*)
9181 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9182 # Instead, we relocate shared libraries at runtime.
9183 ;;
9184
9185 msdosdjgpp*)
9186 # Just because we use GCC doesn't mean we suddenly get shared libraries
9187 # on systems that don't support them.
9188 lt_prog_compiler_can_build_shared=no
9189 enable_shared=no
9190 ;;
9191
9192 *nto* | *qnx*)
9193 # QNX uses GNU C++, but need to define -shared option too, otherwise
9194 # it will coredump.
9195 lt_prog_compiler_pic='-fPIC -shared'
9196 ;;
9197
9198 sysv4*MP*)
9199 if test -d /usr/nec; then
9200 lt_prog_compiler_pic=-Kconform_pic
9201 fi
9202 ;;
9203
9204 *)
9205 lt_prog_compiler_pic='-fPIC'
9206 ;;
9207 esac
9208
9209 case $cc_basename in
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 lt_prog_compiler_wl='-Xlinker '
9212 lt_prog_compiler_pic='-Xcompiler -fPIC'
9213 ;;
9214 esac
9215 else
9216 # PORTME Check for flag to pass linker flags through the system compiler.
9217 case $host_os in
9218 aix*)
9219 lt_prog_compiler_wl='-Wl,'
9220 if test "$host_cpu" = ia64; then
9221 # AIX 5 now supports IA64 processor
9222 lt_prog_compiler_static='-Bstatic'
9223 else
9224 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9225 fi
9226 ;;
9227
9228 mingw* | cygwin* | pw32* | os2* | cegcc*)
9229 # This hack is so that the source file can tell whether it is being
9230 # built for inclusion in a dll (and should export symbols for example).
9231 lt_prog_compiler_pic='-DDLL_EXPORT'
9232 ;;
9233
9234 hpux9* | hpux10* | hpux11*)
9235 lt_prog_compiler_wl='-Wl,'
9236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9237 # not for PA HP-UX.
9238 case $host_cpu in
9239 hppa*64*|ia64*)
9240 # +Z the default
9241 ;;
9242 *)
9243 lt_prog_compiler_pic='+Z'
9244 ;;
9245 esac
9246 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9247 lt_prog_compiler_static='${wl}-a ${wl}archive'
9248 ;;
9249
9250 irix5* | irix6* | nonstopux*)
9251 lt_prog_compiler_wl='-Wl,'
9252 # PIC (with -KPIC) is the default.
9253 lt_prog_compiler_static='-non_shared'
9254 ;;
9255
9256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9257 case $cc_basename in
9258 # old Intel for x86_64 which still supported -KPIC.
9259 ecc*)
9260 lt_prog_compiler_wl='-Wl,'
9261 lt_prog_compiler_pic='-KPIC'
9262 lt_prog_compiler_static='-static'
9263 ;;
9264 # icc used to be incompatible with GCC.
9265 # ICC 10 doesn't accept -KPIC any more.
9266 icc* | ifort*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='-fPIC'
9269 lt_prog_compiler_static='-static'
9270 ;;
9271 # Lahey Fortran 8.1.
9272 lf95*)
9273 lt_prog_compiler_wl='-Wl,'
9274 lt_prog_compiler_pic='--shared'
9275 lt_prog_compiler_static='--static'
9276 ;;
9277 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9278 # Portland Group compilers (*not* the Pentium gcc compiler,
9279 # which looks to be a dead project)
9280 lt_prog_compiler_wl='-Wl,'
9281 lt_prog_compiler_pic='-fpic'
9282 lt_prog_compiler_static='-Bstatic'
9283 ;;
9284 ccc*)
9285 lt_prog_compiler_wl='-Wl,'
9286 # All Alpha code is PIC.
9287 lt_prog_compiler_static='-non_shared'
9288 ;;
9289 xl* | bgxl* | bgf* | mpixl*)
9290 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='-qpic'
9293 lt_prog_compiler_static='-qstaticlink'
9294 ;;
9295 *)
9296 case `$CC -V 2>&1 | sed 5q` in
9297 *Sun\ F* | *Sun*Fortran*)
9298 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9299 lt_prog_compiler_pic='-KPIC'
9300 lt_prog_compiler_static='-Bstatic'
9301 lt_prog_compiler_wl=''
9302 ;;
9303 *Sun\ C*)
9304 # Sun C 5.9
9305 lt_prog_compiler_pic='-KPIC'
9306 lt_prog_compiler_static='-Bstatic'
9307 lt_prog_compiler_wl='-Wl,'
9308 ;;
9309 esac
9310 ;;
9311 esac
9312 ;;
9313
9314 newsos6)
9315 lt_prog_compiler_pic='-KPIC'
9316 lt_prog_compiler_static='-Bstatic'
9317 ;;
9318
9319 *nto* | *qnx*)
9320 # QNX uses GNU C++, but need to define -shared option too, otherwise
9321 # it will coredump.
9322 lt_prog_compiler_pic='-fPIC -shared'
9323 ;;
9324
9325 osf3* | osf4* | osf5*)
9326 lt_prog_compiler_wl='-Wl,'
9327 # All OSF/1 code is PIC.
9328 lt_prog_compiler_static='-non_shared'
9329 ;;
9330
9331 rdos*)
9332 lt_prog_compiler_static='-non_shared'
9333 ;;
9334
9335 solaris*)
9336 lt_prog_compiler_pic='-KPIC'
9337 lt_prog_compiler_static='-Bstatic'
9338 case $cc_basename in
9339 f77* | f90* | f95*)
9340 lt_prog_compiler_wl='-Qoption ld ';;
9341 *)
9342 lt_prog_compiler_wl='-Wl,';;
9343 esac
9344 ;;
9345
9346 sunos4*)
9347 lt_prog_compiler_wl='-Qoption ld '
9348 lt_prog_compiler_pic='-PIC'
9349 lt_prog_compiler_static='-Bstatic'
9350 ;;
9351
9352 sysv4 | sysv4.2uw2* | sysv4.3*)
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_pic='-KPIC'
9355 lt_prog_compiler_static='-Bstatic'
9356 ;;
9357
9358 sysv4*MP*)
9359 if test -d /usr/nec ;then
9360 lt_prog_compiler_pic='-Kconform_pic'
9361 lt_prog_compiler_static='-Bstatic'
9362 fi
9363 ;;
9364
9365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9369 ;;
9370
9371 unicos*)
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_can_build_shared=no
9374 ;;
9375
9376 uts4*)
9377 lt_prog_compiler_pic='-pic'
9378 lt_prog_compiler_static='-Bstatic'
9379 ;;
9380
9381 *)
9382 lt_prog_compiler_can_build_shared=no
9383 ;;
9384 esac
9385 fi
9386
9387 case $host_os in
9388 # For platforms which do not support PIC, -DPIC is meaningless:
9389 *djgpp*)
9390 lt_prog_compiler_pic=
9391 ;;
9392 *)
9393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9394 ;;
9395 esac
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9397 $as_echo "$lt_prog_compiler_pic" >&6; }
9398
9399
9400
9401
9402
9403
9404 #
9405 # Check to make sure the PIC flag actually works.
9406 #
9407 if test -n "$lt_prog_compiler_pic"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9409 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9410 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 lt_cv_prog_compiler_pic_works=no
9414 ac_outfile=conftest.$ac_objext
9415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9416 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9417 # Insert the option either (1) after the last *FLAGS variable, or
9418 # (2) before a word containing "conftest.", or (3) at the end.
9419 # Note that $ac_compile itself does not contain backslashes and begins
9420 # with a dollar sign (not a hyphen), so the echo should work correctly.
9421 # The option is referenced via a variable to avoid confusing sed.
9422 lt_compile=`echo "$ac_compile" | $SED \
9423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9425 -e 's:$: $lt_compiler_flag:'`
9426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9427 (eval "$lt_compile" 2>conftest.err)
9428 ac_status=$?
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 if (exit $ac_status) && test -s "$ac_outfile"; then
9432 # The compiler can only warn and ignore the option if not recognized
9433 # So say no if there are warnings other than the usual output.
9434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler_pic_works=yes
9438 fi
9439 fi
9440 $RM conftest*
9441
9442 fi
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9444 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9445
9446 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9447 case $lt_prog_compiler_pic in
9448 "" | " "*) ;;
9449 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9450 esac
9451 else
9452 lt_prog_compiler_pic=
9453 lt_prog_compiler_can_build_shared=no
9454 fi
9455
9456 fi
9457
9458
9459
9460
9461
9462
9463 #
9464 # Check to make sure the static flag actually works.
9465 #
9466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9469 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 lt_cv_prog_compiler_static_works=no
9473 save_LDFLAGS="$LDFLAGS"
9474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9477 # The linker can only warn and ignore the option if not recognized
9478 # So say no if there are warnings
9479 if test -s conftest.err; then
9480 # Append any errors to the config.log.
9481 cat conftest.err 1>&5
9482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9484 if diff conftest.exp conftest.er2 >/dev/null; then
9485 lt_cv_prog_compiler_static_works=yes
9486 fi
9487 else
9488 lt_cv_prog_compiler_static_works=yes
9489 fi
9490 fi
9491 $RM -r conftest*
9492 LDFLAGS="$save_LDFLAGS"
9493
9494 fi
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9497
9498 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9499 :
9500 else
9501 lt_prog_compiler_static=
9502 fi
9503
9504
9505
9506
9507
9508
9509
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 lt_cv_prog_compiler_c_o=no
9516 $RM -r conftest 2>/dev/null
9517 mkdir conftest
9518 cd conftest
9519 mkdir out
9520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9521
9522 lt_compiler_flag="-o out/conftest2.$ac_objext"
9523 # Insert the option either (1) after the last *FLAGS variable, or
9524 # (2) before a word containing "conftest.", or (3) at the end.
9525 # Note that $ac_compile itself does not contain backslashes and begins
9526 # with a dollar sign (not a hyphen), so the echo should work correctly.
9527 lt_compile=`echo "$ac_compile" | $SED \
9528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9530 -e 's:$: $lt_compiler_flag:'`
9531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9532 (eval "$lt_compile" 2>out/conftest.err)
9533 ac_status=$?
9534 cat out/conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9537 then
9538 # The compiler can only warn and ignore the option if not recognized
9539 # So say no if there are warnings
9540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9543 lt_cv_prog_compiler_c_o=yes
9544 fi
9545 fi
9546 chmod u+w . 2>&5
9547 $RM conftest*
9548 # SGI C++ compiler will create directory out/ii_files/ for
9549 # template instantiation
9550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9551 $RM out/* && rmdir out
9552 cd ..
9553 $RM -r conftest
9554 $RM conftest*
9555
9556 fi
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9559
9560
9561
9562
9563
9564
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9567 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 lt_cv_prog_compiler_c_o=no
9571 $RM -r conftest 2>/dev/null
9572 mkdir conftest
9573 cd conftest
9574 mkdir out
9575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9576
9577 lt_compiler_flag="-o out/conftest2.$ac_objext"
9578 # Insert the option either (1) after the last *FLAGS variable, or
9579 # (2) before a word containing "conftest.", or (3) at the end.
9580 # Note that $ac_compile itself does not contain backslashes and begins
9581 # with a dollar sign (not a hyphen), so the echo should work correctly.
9582 lt_compile=`echo "$ac_compile" | $SED \
9583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9585 -e 's:$: $lt_compiler_flag:'`
9586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9587 (eval "$lt_compile" 2>out/conftest.err)
9588 ac_status=$?
9589 cat out/conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9592 then
9593 # The compiler can only warn and ignore the option if not recognized
9594 # So say no if there are warnings
9595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9598 lt_cv_prog_compiler_c_o=yes
9599 fi
9600 fi
9601 chmod u+w . 2>&5
9602 $RM conftest*
9603 # SGI C++ compiler will create directory out/ii_files/ for
9604 # template instantiation
9605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9606 $RM out/* && rmdir out
9607 cd ..
9608 $RM -r conftest
9609 $RM conftest*
9610
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9614
9615
9616
9617
9618 hard_links="nottested"
9619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9620 # do not overwrite the value of need_locks provided by the user
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9622 $as_echo_n "checking if we can lock with hard links... " >&6; }
9623 hard_links=yes
9624 $RM conftest*
9625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9626 touch conftest.a
9627 ln conftest.a conftest.b 2>&5 || hard_links=no
9628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9630 $as_echo "$hard_links" >&6; }
9631 if test "$hard_links" = no; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9633 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9634 need_locks=warn
9635 fi
9636 else
9637 need_locks=no
9638 fi
9639
9640
9641
9642
9643
9644
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9647
9648 runpath_var=
9649 allow_undefined_flag=
9650 always_export_symbols=no
9651 archive_cmds=
9652 archive_expsym_cmds=
9653 compiler_needs_object=no
9654 enable_shared_with_static_runtimes=no
9655 export_dynamic_flag_spec=
9656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9657 hardcode_automatic=no
9658 hardcode_direct=no
9659 hardcode_direct_absolute=no
9660 hardcode_libdir_flag_spec=
9661 hardcode_libdir_flag_spec_ld=
9662 hardcode_libdir_separator=
9663 hardcode_minus_L=no
9664 hardcode_shlibpath_var=unsupported
9665 inherit_rpath=no
9666 link_all_deplibs=unknown
9667 module_cmds=
9668 module_expsym_cmds=
9669 old_archive_from_new_cmds=
9670 old_archive_from_expsyms_cmds=
9671 thread_safe_flag_spec=
9672 whole_archive_flag_spec=
9673 # include_expsyms should be a list of space-separated symbols to be *always*
9674 # included in the symbol list
9675 include_expsyms=
9676 # exclude_expsyms can be an extended regexp of symbols to exclude
9677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9679 # as well as any symbol that contains `d'.
9680 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9682 # platforms (ab)use it in PIC code, but their linkers get confused if
9683 # the symbol is explicitly referenced. Since portable code cannot
9684 # rely on this symbol name, it's probably fine to never include it in
9685 # preloaded symbol tables.
9686 # Exclude shared library initialization/finalization symbols.
9687 extract_expsyms_cmds=
9688
9689 case $host_os in
9690 cygwin* | mingw* | pw32* | cegcc*)
9691 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9692 # When not using gcc, we currently assume that we are using
9693 # Microsoft Visual C++.
9694 if test "$GCC" != yes; then
9695 with_gnu_ld=no
9696 fi
9697 ;;
9698 interix*)
9699 # we just hope/assume this is gcc and not c89 (= MSVC++)
9700 with_gnu_ld=yes
9701 ;;
9702 openbsd*)
9703 with_gnu_ld=no
9704 ;;
9705 esac
9706
9707 ld_shlibs=yes
9708
9709 # On some targets, GNU ld is compatible enough with the native linker
9710 # that we're better off using the native interface for both.
9711 lt_use_gnu_ld_interface=no
9712 if test "$with_gnu_ld" = yes; then
9713 case $host_os in
9714 aix*)
9715 # The AIX port of GNU ld has always aspired to compatibility
9716 # with the native linker. However, as the warning in the GNU ld
9717 # block says, versions before 2.19.5* couldn't really create working
9718 # shared libraries, regardless of the interface used.
9719 case `$LD -v 2>&1` in
9720 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9721 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9722 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9723 *)
9724 lt_use_gnu_ld_interface=yes
9725 ;;
9726 esac
9727 ;;
9728 *)
9729 lt_use_gnu_ld_interface=yes
9730 ;;
9731 esac
9732 fi
9733
9734 if test "$lt_use_gnu_ld_interface" = yes; then
9735 # If archive_cmds runs LD, not CC, wlarc should be empty
9736 wlarc='${wl}'
9737
9738 # Set some defaults for GNU ld with shared library support. These
9739 # are reset later if shared libraries are not supported. Putting them
9740 # here allows them to be overridden if necessary.
9741 runpath_var=LD_RUN_PATH
9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743 export_dynamic_flag_spec='${wl}--export-dynamic'
9744 # ancient GNU ld didn't support --whole-archive et. al.
9745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9747 else
9748 whole_archive_flag_spec=
9749 fi
9750 supports_anon_versioning=no
9751 case `$LD -v 2>&1` in
9752 *GNU\ gold*) supports_anon_versioning=yes ;;
9753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9756 *\ 2.11.*) ;; # other 2.11 versions
9757 *) supports_anon_versioning=yes ;;
9758 esac
9759
9760 # See if GNU ld supports shared libraries.
9761 case $host_os in
9762 aix[3-9]*)
9763 # On AIX/PPC, the GNU linker is very broken
9764 if test "$host_cpu" != ia64; then
9765 ld_shlibs=no
9766 cat <<_LT_EOF 1>&2
9767
9768 *** Warning: the GNU linker, at least up to release 2.19, is reported
9769 *** to be unable to reliably create shared libraries on AIX.
9770 *** Therefore, libtool is disabling shared libraries support. If you
9771 *** really care for shared libraries, you may want to install binutils
9772 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9773 *** You will then need to restart the configuration process.
9774
9775 _LT_EOF
9776 fi
9777 ;;
9778
9779 amigaos*)
9780 case $host_cpu in
9781 powerpc)
9782 # see comment about AmigaOS4 .so support
9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784 archive_expsym_cmds=''
9785 ;;
9786 m68k)
9787 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)'
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 hardcode_minus_L=yes
9790 ;;
9791 esac
9792 ;;
9793
9794 beos*)
9795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9796 allow_undefined_flag=unsupported
9797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9798 # support --undefined. This deserves some investigation. FIXME
9799 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800 else
9801 ld_shlibs=no
9802 fi
9803 ;;
9804
9805 cygwin* | mingw* | pw32* | cegcc*)
9806 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9807 # as there is no search path for DLLs.
9808 hardcode_libdir_flag_spec='-L$libdir'
9809 export_dynamic_flag_spec='${wl}--export-all-symbols'
9810 allow_undefined_flag=unsupported
9811 always_export_symbols=no
9812 enable_shared_with_static_runtimes=yes
9813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9814
9815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9817 # If the export-symbols file already is a .def file (1st line
9818 # is EXPORTS), use it as is; otherwise, prepend...
9819 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9820 cp $export_symbols $output_objdir/$soname.def;
9821 else
9822 echo EXPORTS > $output_objdir/$soname.def;
9823 cat $export_symbols >> $output_objdir/$soname.def;
9824 fi~
9825 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9826 else
9827 ld_shlibs=no
9828 fi
9829 ;;
9830
9831 haiku*)
9832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9833 link_all_deplibs=yes
9834 ;;
9835
9836 interix[3-9]*)
9837 hardcode_direct=no
9838 hardcode_shlibpath_var=no
9839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9840 export_dynamic_flag_spec='${wl}-E'
9841 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9842 # Instead, shared libraries are loaded at an image base (0x10000000 by
9843 # default) and relocated if they conflict, which is a slow very memory
9844 # consuming and fragmenting process. To avoid this, we pick a random,
9845 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9846 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9848 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'
9849 ;;
9850
9851 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9852 tmp_diet=no
9853 if test "$host_os" = linux-dietlibc; then
9854 case $cc_basename in
9855 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9856 esac
9857 fi
9858 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9859 && test "$tmp_diet" = no
9860 then
9861 tmp_addflag=' $pic_flag'
9862 tmp_sharedflag='-shared'
9863 case $cc_basename,$host_cpu in
9864 pgcc*) # Portland Group C compiler
9865 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'
9866 tmp_addflag=' $pic_flag'
9867 ;;
9868 pgf77* | pgf90* | pgf95* | pgfortran*)
9869 # Portland Group f77 and f90 compilers
9870 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'
9871 tmp_addflag=' $pic_flag -Mnomain' ;;
9872 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9873 tmp_addflag=' -i_dynamic' ;;
9874 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9875 tmp_addflag=' -i_dynamic -nofor_main' ;;
9876 ifc* | ifort*) # Intel Fortran compiler
9877 tmp_addflag=' -nofor_main' ;;
9878 lf95*) # Lahey Fortran 8.1
9879 whole_archive_flag_spec=
9880 tmp_sharedflag='--shared' ;;
9881 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9882 tmp_sharedflag='-qmkshrobj'
9883 tmp_addflag= ;;
9884 nvcc*) # Cuda Compiler Driver 2.2
9885 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'
9886 compiler_needs_object=yes
9887 ;;
9888 esac
9889 case `$CC -V 2>&1 | sed 5q` in
9890 *Sun\ C*) # Sun C 5.9
9891 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'
9892 compiler_needs_object=yes
9893 tmp_sharedflag='-G' ;;
9894 *Sun\ F*) # Sun Fortran 8.3
9895 tmp_sharedflag='-G' ;;
9896 esac
9897 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9898
9899 if test "x$supports_anon_versioning" = xyes; then
9900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9902 echo "local: *; };" >> $output_objdir/$libname.ver~
9903 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9904 fi
9905
9906 case $cc_basename in
9907 xlf* | bgf* | bgxlf* | mpixlf*)
9908 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9909 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9910 hardcode_libdir_flag_spec=
9911 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9912 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9913 if test "x$supports_anon_versioning" = xyes; then
9914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9915 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9916 echo "local: *; };" >> $output_objdir/$libname.ver~
9917 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9918 fi
9919 ;;
9920 esac
9921 else
9922 ld_shlibs=no
9923 fi
9924 ;;
9925
9926 netbsd*)
9927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9928 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9929 wlarc=
9930 else
9931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9933 fi
9934 ;;
9935
9936 solaris*)
9937 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9938 ld_shlibs=no
9939 cat <<_LT_EOF 1>&2
9940
9941 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9942 *** create shared libraries on Solaris systems. Therefore, libtool
9943 *** is disabling shared libraries support. We urge you to upgrade GNU
9944 *** binutils to release 2.9.1 or newer. Another option is to modify
9945 *** your PATH or compiler configuration so that the native linker is
9946 *** used, and then restart.
9947
9948 _LT_EOF
9949 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9952 else
9953 ld_shlibs=no
9954 fi
9955 ;;
9956
9957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9958 case `$LD -v 2>&1` in
9959 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9960 ld_shlibs=no
9961 cat <<_LT_EOF 1>&2
9962
9963 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9964 *** reliably create shared libraries on SCO systems. Therefore, libtool
9965 *** is disabling shared libraries support. We urge you to upgrade GNU
9966 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9967 *** your PATH or compiler configuration so that the native linker is
9968 *** used, and then restart.
9969
9970 _LT_EOF
9971 ;;
9972 *)
9973 # For security reasons, it is highly recommended that you always
9974 # use absolute paths for naming shared libraries, and exclude the
9975 # DT_RUNPATH tag from executables and libraries. But doing so
9976 # requires that you compile everything twice, which is a pain.
9977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9981 else
9982 ld_shlibs=no
9983 fi
9984 ;;
9985 esac
9986 ;;
9987
9988 sunos4*)
9989 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9990 wlarc=
9991 hardcode_direct=yes
9992 hardcode_shlibpath_var=no
9993 ;;
9994
9995 *)
9996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9999 else
10000 ld_shlibs=no
10001 fi
10002 ;;
10003 esac
10004
10005 if test "$ld_shlibs" = no; then
10006 runpath_var=
10007 hardcode_libdir_flag_spec=
10008 export_dynamic_flag_spec=
10009 whole_archive_flag_spec=
10010 fi
10011 else
10012 # PORTME fill in a description of your system's linker (not GNU ld)
10013 case $host_os in
10014 aix3*)
10015 allow_undefined_flag=unsupported
10016 always_export_symbols=yes
10017 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'
10018 # Note: this linker hardcodes the directories in LIBPATH if there
10019 # are no directories specified by -L.
10020 hardcode_minus_L=yes
10021 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10022 # Neither direct hardcoding nor static linking is supported with a
10023 # broken collect2.
10024 hardcode_direct=unsupported
10025 fi
10026 ;;
10027
10028 aix[4-9]*)
10029 if test "$host_cpu" = ia64; then
10030 # On IA64, the linker does run time linking by default, so we don't
10031 # have to do anything special.
10032 aix_use_runtimelinking=no
10033 exp_sym_flag='-Bexport'
10034 no_entry_flag=""
10035 else
10036 # If we're using GNU nm, then we don't want the "-C" option.
10037 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10038 # Also, AIX nm treats weak defined symbols like other global
10039 # defined symbols, whereas GNU nm marks them as "W".
10040 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10041 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'
10042 else
10043 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10044 fi
10045 aix_use_runtimelinking=no
10046
10047 # Test if we are trying to use run time linking or normal
10048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10049 # need to do runtime linking.
10050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10051 for ld_flag in $LDFLAGS; do
10052 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10053 aix_use_runtimelinking=yes
10054 break
10055 fi
10056 done
10057 ;;
10058 esac
10059
10060 exp_sym_flag='-bexport'
10061 no_entry_flag='-bnoentry'
10062 fi
10063
10064 # When large executables or shared objects are built, AIX ld can
10065 # have problems creating the table of contents. If linking a library
10066 # or program results in "error TOC overflow" add -mminimal-toc to
10067 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10068 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10069
10070 archive_cmds=''
10071 hardcode_direct=yes
10072 hardcode_direct_absolute=yes
10073 hardcode_libdir_separator=':'
10074 link_all_deplibs=yes
10075 file_list_spec='${wl}-f,'
10076
10077 if test "$GCC" = yes; then
10078 case $host_os in aix4.[012]|aix4.[012].*)
10079 # We only want to do this on AIX 4.2 and lower, the check
10080 # below for broken collect2 doesn't work under 4.3+
10081 collect2name=`${CC} -print-prog-name=collect2`
10082 if test -f "$collect2name" &&
10083 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10084 then
10085 # We have reworked collect2
10086 :
10087 else
10088 # We have old collect2
10089 hardcode_direct=unsupported
10090 # It fails to find uninstalled libraries when the uninstalled
10091 # path is not listed in the libpath. Setting hardcode_minus_L
10092 # to unsupported forces relinking
10093 hardcode_minus_L=yes
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_libdir_separator=
10096 fi
10097 ;;
10098 esac
10099 shared_flag='-shared'
10100 if test "$aix_use_runtimelinking" = yes; then
10101 shared_flag="$shared_flag "'${wl}-G'
10102 fi
10103 else
10104 # not using gcc
10105 if test "$host_cpu" = ia64; then
10106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10107 # chokes on -Wl,-G. The following line is correct:
10108 shared_flag='-G'
10109 else
10110 if test "$aix_use_runtimelinking" = yes; then
10111 shared_flag='${wl}-G'
10112 else
10113 shared_flag='${wl}-bM:SRE'
10114 fi
10115 fi
10116 fi
10117
10118 export_dynamic_flag_spec='${wl}-bexpall'
10119 # It seems that -bexpall does not export symbols beginning with
10120 # underscore (_), so it is better to generate a list of symbols to export.
10121 always_export_symbols=yes
10122 if test "$aix_use_runtimelinking" = yes; then
10123 # Warning - without using the other runtime loading flags (-brtl),
10124 # -berok will link without error, but may produce a broken library.
10125 allow_undefined_flag='-berok'
10126 # Determine the default libpath from the value encoded in an
10127 # empty executable.
10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10130
10131 int
10132 main ()
10133 {
10134
10135 ;
10136 return 0;
10137 }
10138 _ACEOF
10139 if ac_fn_c_try_link "$LINENO"; then :
10140
10141 lt_aix_libpath_sed='
10142 /Import File Strings/,/^$/ {
10143 /^0/ {
10144 s/^0 *\(.*\)$/\1/
10145 p
10146 }
10147 }'
10148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149 # Check for a 64-bit object if we didn't find anything.
10150 if test -z "$aix_libpath"; then
10151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152 fi
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10157
10158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10159 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"
10160 else
10161 if test "$host_cpu" = ia64; then
10162 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10163 allow_undefined_flag="-z nodefs"
10164 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"
10165 else
10166 # Determine the default libpath from the value encoded in an
10167 # empty executable.
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170
10171 int
10172 main ()
10173 {
10174
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 if ac_fn_c_try_link "$LINENO"; then :
10180
10181 lt_aix_libpath_sed='
10182 /Import File Strings/,/^$/ {
10183 /^0/ {
10184 s/^0 *\(.*\)$/\1/
10185 p
10186 }
10187 }'
10188 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189 # Check for a 64-bit object if we didn't find anything.
10190 if test -z "$aix_libpath"; then
10191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10192 fi
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10197
10198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10199 # Warning - without using the other run time loading flags,
10200 # -berok will link without error, but may produce a broken library.
10201 no_undefined_flag=' ${wl}-bernotok'
10202 allow_undefined_flag=' ${wl}-berok'
10203 if test "$with_gnu_ld" = yes; then
10204 # We only use this code for GNU lds that support --whole-archive.
10205 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10206 else
10207 # Exported symbols can be pulled into shared objects from archives
10208 whole_archive_flag_spec='$convenience'
10209 fi
10210 archive_cmds_need_lc=yes
10211 # This is similar to how AIX traditionally builds its shared libraries.
10212 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'
10213 fi
10214 fi
10215 ;;
10216
10217 amigaos*)
10218 case $host_cpu in
10219 powerpc)
10220 # see comment about AmigaOS4 .so support
10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10222 archive_expsym_cmds=''
10223 ;;
10224 m68k)
10225 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)'
10226 hardcode_libdir_flag_spec='-L$libdir'
10227 hardcode_minus_L=yes
10228 ;;
10229 esac
10230 ;;
10231
10232 bsdi[45]*)
10233 export_dynamic_flag_spec=-rdynamic
10234 ;;
10235
10236 cygwin* | mingw* | pw32* | cegcc*)
10237 # When not using gcc, we currently assume that we are using
10238 # Microsoft Visual C++.
10239 # hardcode_libdir_flag_spec is actually meaningless, as there is
10240 # no search path for DLLs.
10241 hardcode_libdir_flag_spec=' '
10242 allow_undefined_flag=unsupported
10243 # Tell ltmain to make .lib files, not .a files.
10244 libext=lib
10245 # Tell ltmain to make .dll files, not .so files.
10246 shrext_cmds=".dll"
10247 # FIXME: Setting linknames here is a bad hack.
10248 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10249 # The linker will automatically build a .lib file if we build a DLL.
10250 old_archive_from_new_cmds='true'
10251 # FIXME: Should let the user specify the lib program.
10252 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10253 fix_srcfile_path='`cygpath -w "$srcfile"`'
10254 enable_shared_with_static_runtimes=yes
10255 ;;
10256
10257 darwin* | rhapsody*)
10258
10259
10260 archive_cmds_need_lc=no
10261 hardcode_direct=no
10262 hardcode_automatic=yes
10263 hardcode_shlibpath_var=unsupported
10264 if test "$lt_cv_ld_force_load" = "yes"; then
10265 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\"`'
10266 else
10267 whole_archive_flag_spec=''
10268 fi
10269 link_all_deplibs=yes
10270 allow_undefined_flag="$_lt_dar_allow_undefined"
10271 case $cc_basename in
10272 ifort*) _lt_dar_can_shared=yes ;;
10273 *) _lt_dar_can_shared=$GCC ;;
10274 esac
10275 if test "$_lt_dar_can_shared" = "yes"; then
10276 output_verbose_link_cmd=func_echo_all
10277 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10278 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10279 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}"
10280 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}"
10281
10282 else
10283 ld_shlibs=no
10284 fi
10285
10286 ;;
10287
10288 dgux*)
10289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290 hardcode_libdir_flag_spec='-L$libdir'
10291 hardcode_shlibpath_var=no
10292 ;;
10293
10294 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10295 # support. Future versions do this automatically, but an explicit c++rt0.o
10296 # does not break anything, and helps significantly (at the cost of a little
10297 # extra space).
10298 freebsd2.2*)
10299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10300 hardcode_libdir_flag_spec='-R$libdir'
10301 hardcode_direct=yes
10302 hardcode_shlibpath_var=no
10303 ;;
10304
10305 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10306 freebsd2.*)
10307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10308 hardcode_direct=yes
10309 hardcode_minus_L=yes
10310 hardcode_shlibpath_var=no
10311 ;;
10312
10313 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10314 freebsd* | dragonfly*)
10315 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10316 hardcode_libdir_flag_spec='-R$libdir'
10317 hardcode_direct=yes
10318 hardcode_shlibpath_var=no
10319 ;;
10320
10321 hpux9*)
10322 if test "$GCC" = yes; then
10323 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10324 else
10325 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'
10326 fi
10327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10328 hardcode_libdir_separator=:
10329 hardcode_direct=yes
10330
10331 # hardcode_minus_L: Not really in the search PATH,
10332 # but as the default location of the library.
10333 hardcode_minus_L=yes
10334 export_dynamic_flag_spec='${wl}-E'
10335 ;;
10336
10337 hpux10*)
10338 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10339 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10340 else
10341 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10342 fi
10343 if test "$with_gnu_ld" = no; then
10344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10345 hardcode_libdir_flag_spec_ld='+b $libdir'
10346 hardcode_libdir_separator=:
10347 hardcode_direct=yes
10348 hardcode_direct_absolute=yes
10349 export_dynamic_flag_spec='${wl}-E'
10350 # hardcode_minus_L: Not really in the search PATH,
10351 # but as the default location of the library.
10352 hardcode_minus_L=yes
10353 fi
10354 ;;
10355
10356 hpux11*)
10357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10358 case $host_cpu in
10359 hppa*64*)
10360 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 ;;
10362 ia64*)
10363 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10364 ;;
10365 *)
10366 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10367 ;;
10368 esac
10369 else
10370 case $host_cpu in
10371 hppa*64*)
10372 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10373 ;;
10374 ia64*)
10375 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10376 ;;
10377 *)
10378
10379 # Older versions of the 11.00 compiler do not understand -b yet
10380 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10382 $as_echo_n "checking if $CC understands -b... " >&6; }
10383 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 lt_cv_prog_compiler__b=no
10387 save_LDFLAGS="$LDFLAGS"
10388 LDFLAGS="$LDFLAGS -b"
10389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10391 # The linker can only warn and ignore the option if not recognized
10392 # So say no if there are warnings
10393 if test -s conftest.err; then
10394 # Append any errors to the config.log.
10395 cat conftest.err 1>&5
10396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10398 if diff conftest.exp conftest.er2 >/dev/null; then
10399 lt_cv_prog_compiler__b=yes
10400 fi
10401 else
10402 lt_cv_prog_compiler__b=yes
10403 fi
10404 fi
10405 $RM -r conftest*
10406 LDFLAGS="$save_LDFLAGS"
10407
10408 fi
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10410 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10411
10412 if test x"$lt_cv_prog_compiler__b" = xyes; then
10413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10414 else
10415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10416 fi
10417
10418 ;;
10419 esac
10420 fi
10421 if test "$with_gnu_ld" = no; then
10422 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10423 hardcode_libdir_separator=:
10424
10425 case $host_cpu in
10426 hppa*64*|ia64*)
10427 hardcode_direct=no
10428 hardcode_shlibpath_var=no
10429 ;;
10430 *)
10431 hardcode_direct=yes
10432 hardcode_direct_absolute=yes
10433 export_dynamic_flag_spec='${wl}-E'
10434
10435 # hardcode_minus_L: Not really in the search PATH,
10436 # but as the default location of the library.
10437 hardcode_minus_L=yes
10438 ;;
10439 esac
10440 fi
10441 ;;
10442
10443 irix5* | irix6* | nonstopux*)
10444 if test "$GCC" = yes; then
10445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10446 # Try to use the -exported_symbol ld option, if it does not
10447 # work, assume that -exports_file does not work either and
10448 # implicitly export all symbols.
10449 save_LDFLAGS="$LDFLAGS"
10450 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453 int foo(void) {}
10454 _ACEOF
10455 if ac_fn_c_try_link "$LINENO"; then :
10456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10457
10458 fi
10459 rm -f core conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461 LDFLAGS="$save_LDFLAGS"
10462 else
10463 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'
10464 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'
10465 fi
10466 archive_cmds_need_lc='no'
10467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10468 hardcode_libdir_separator=:
10469 inherit_rpath=yes
10470 link_all_deplibs=yes
10471 ;;
10472
10473 netbsd*)
10474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10476 else
10477 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10478 fi
10479 hardcode_libdir_flag_spec='-R$libdir'
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 newsos6)
10485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10486 hardcode_direct=yes
10487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10488 hardcode_libdir_separator=:
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 *nto* | *qnx*)
10493 ;;
10494
10495 openbsd*)
10496 if test -f /usr/libexec/ld.so; then
10497 hardcode_direct=yes
10498 hardcode_shlibpath_var=no
10499 hardcode_direct_absolute=yes
10500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10502 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10504 export_dynamic_flag_spec='${wl}-E'
10505 else
10506 case $host_os in
10507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10509 hardcode_libdir_flag_spec='-R$libdir'
10510 ;;
10511 *)
10512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10514 ;;
10515 esac
10516 fi
10517 else
10518 ld_shlibs=no
10519 fi
10520 ;;
10521
10522 os2*)
10523 hardcode_libdir_flag_spec='-L$libdir'
10524 hardcode_minus_L=yes
10525 allow_undefined_flag=unsupported
10526 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'
10527 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10528 ;;
10529
10530 osf3*)
10531 if test "$GCC" = yes; then
10532 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10533 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'
10534 else
10535 allow_undefined_flag=' -expect_unresolved \*'
10536 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'
10537 fi
10538 archive_cmds_need_lc='no'
10539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10540 hardcode_libdir_separator=:
10541 ;;
10542
10543 osf4* | osf5*) # as osf3* with the addition of -msym flag
10544 if test "$GCC" = yes; then
10545 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10546 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10548 else
10549 allow_undefined_flag=' -expect_unresolved \*'
10550 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'
10551 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~
10552 $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'
10553
10554 # Both c and cxx compiler support -rpath directly
10555 hardcode_libdir_flag_spec='-rpath $libdir'
10556 fi
10557 archive_cmds_need_lc='no'
10558 hardcode_libdir_separator=:
10559 ;;
10560
10561 solaris*)
10562 no_undefined_flag=' -z defs'
10563 if test "$GCC" = yes; then
10564 wlarc='${wl}'
10565 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10567 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10568 else
10569 case `$CC -V 2>&1` in
10570 *"Compilers 5.0"*)
10571 wlarc=''
10572 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10575 ;;
10576 *)
10577 wlarc='${wl}'
10578 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10579 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10580 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10581 ;;
10582 esac
10583 fi
10584 hardcode_libdir_flag_spec='-R$libdir'
10585 hardcode_shlibpath_var=no
10586 case $host_os in
10587 solaris2.[0-5] | solaris2.[0-5].*) ;;
10588 *)
10589 # The compiler driver will combine and reorder linker options,
10590 # but understands `-z linker_flag'. GCC discards it without `$wl',
10591 # but is careful enough not to reorder.
10592 # Supported since Solaris 2.6 (maybe 2.5.1?)
10593 if test "$GCC" = yes; then
10594 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10595 else
10596 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10597 fi
10598 ;;
10599 esac
10600 link_all_deplibs=yes
10601 ;;
10602
10603 sunos4*)
10604 if test "x$host_vendor" = xsequent; then
10605 # Use $CC to link under sequent, because it throws in some extra .o
10606 # files that make .init and .fini sections work.
10607 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10608 else
10609 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10610 fi
10611 hardcode_libdir_flag_spec='-L$libdir'
10612 hardcode_direct=yes
10613 hardcode_minus_L=yes
10614 hardcode_shlibpath_var=no
10615 ;;
10616
10617 sysv4)
10618 case $host_vendor in
10619 sni)
10620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10621 hardcode_direct=yes # is this really true???
10622 ;;
10623 siemens)
10624 ## LD is ld it makes a PLAMLIB
10625 ## CC just makes a GrossModule.
10626 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10627 reload_cmds='$CC -r -o $output$reload_objs'
10628 hardcode_direct=no
10629 ;;
10630 motorola)
10631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10633 ;;
10634 esac
10635 runpath_var='LD_RUN_PATH'
10636 hardcode_shlibpath_var=no
10637 ;;
10638
10639 sysv4.3*)
10640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641 hardcode_shlibpath_var=no
10642 export_dynamic_flag_spec='-Bexport'
10643 ;;
10644
10645 sysv4*MP*)
10646 if test -d /usr/nec; then
10647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10648 hardcode_shlibpath_var=no
10649 runpath_var=LD_RUN_PATH
10650 hardcode_runpath_var=yes
10651 ld_shlibs=yes
10652 fi
10653 ;;
10654
10655 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10656 no_undefined_flag='${wl}-z,text'
10657 archive_cmds_need_lc=no
10658 hardcode_shlibpath_var=no
10659 runpath_var='LD_RUN_PATH'
10660
10661 if test "$GCC" = yes; then
10662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 else
10665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 fi
10668 ;;
10669
10670 sysv5* | sco3.2v5* | sco5v6*)
10671 # Note: We can NOT use -z defs as we might desire, because we do not
10672 # link with -lc, and that would cause any symbols used from libc to
10673 # always be unresolved, which means just about no library would
10674 # ever link correctly. If we're not using GNU ld we use -z text
10675 # though, which does catch some bad symbols but isn't as heavy-handed
10676 # as -z defs.
10677 no_undefined_flag='${wl}-z,text'
10678 allow_undefined_flag='${wl}-z,nodefs'
10679 archive_cmds_need_lc=no
10680 hardcode_shlibpath_var=no
10681 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10682 hardcode_libdir_separator=':'
10683 link_all_deplibs=yes
10684 export_dynamic_flag_spec='${wl}-Bexport'
10685 runpath_var='LD_RUN_PATH'
10686
10687 if test "$GCC" = yes; then
10688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10690 else
10691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 fi
10694 ;;
10695
10696 uts4*)
10697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698 hardcode_libdir_flag_spec='-L$libdir'
10699 hardcode_shlibpath_var=no
10700 ;;
10701
10702 *)
10703 ld_shlibs=no
10704 ;;
10705 esac
10706
10707 if test x$host_vendor = xsni; then
10708 case $host in
10709 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10710 export_dynamic_flag_spec='${wl}-Blargedynsym'
10711 ;;
10712 esac
10713 fi
10714 fi
10715
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10717 $as_echo "$ld_shlibs" >&6; }
10718 test "$ld_shlibs" = no && can_build_shared=no
10719
10720 with_gnu_ld=$with_gnu_ld
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736 #
10737 # Do we need to explicitly link libc?
10738 #
10739 case "x$archive_cmds_need_lc" in
10740 x|xyes)
10741 # Assume -lc should be added
10742 archive_cmds_need_lc=yes
10743
10744 if test "$enable_shared" = yes && test "$GCC" = yes; then
10745 case $archive_cmds in
10746 *'~'*)
10747 # FIXME: we may have to deal with multi-command sequences.
10748 ;;
10749 '$CC '*)
10750 # Test whether the compiler implicitly links with -lc since on some
10751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10752 # to ld, don't add -lc before -lgcc.
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10754 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10755 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 $RM conftest*
10759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10760
10761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10762 (eval $ac_compile) 2>&5
10763 ac_status=$?
10764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10765 test $ac_status = 0; } 2>conftest.err; then
10766 soname=conftest
10767 lib=conftest
10768 libobjs=conftest.$ac_objext
10769 deplibs=
10770 wl=$lt_prog_compiler_wl
10771 pic_flag=$lt_prog_compiler_pic
10772 compiler_flags=-v
10773 linker_flags=-v
10774 verstring=
10775 output_objdir=.
10776 libname=conftest
10777 lt_save_allow_undefined_flag=$allow_undefined_flag
10778 allow_undefined_flag=
10779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10780 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10781 ac_status=$?
10782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10783 test $ac_status = 0; }
10784 then
10785 lt_cv_archive_cmds_need_lc=no
10786 else
10787 lt_cv_archive_cmds_need_lc=yes
10788 fi
10789 allow_undefined_flag=$lt_save_allow_undefined_flag
10790 else
10791 cat conftest.err 1>&5
10792 fi
10793 $RM conftest*
10794
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10797 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10798 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10799 ;;
10800 esac
10801 fi
10802 ;;
10803 esac
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10963
10964 if test "$GCC" = yes; then
10965 case $host_os in
10966 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10967 *) lt_awk_arg="/^libraries:/" ;;
10968 esac
10969 case $host_os in
10970 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10971 *) lt_sed_strip_eq="s,=/,/,g" ;;
10972 esac
10973 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10974 case $lt_search_path_spec in
10975 *\;*)
10976 # if the path contains ";" then we assume it to be the separator
10977 # otherwise default to the standard path separator (i.e. ":") - it is
10978 # assumed that no part of a normal pathname contains ";" but that should
10979 # okay in the real world where ";" in dirpaths is itself problematic.
10980 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10981 ;;
10982 *)
10983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10984 ;;
10985 esac
10986 # Ok, now we have the path, separated by spaces, we can step through it
10987 # and add multilib dir if necessary.
10988 lt_tmp_lt_search_path_spec=
10989 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10990 for lt_sys_path in $lt_search_path_spec; do
10991 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10993 else
10994 test -d "$lt_sys_path" && \
10995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10996 fi
10997 done
10998 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10999 BEGIN {RS=" "; FS="/|\n";} {
11000 lt_foo="";
11001 lt_count=0;
11002 for (lt_i = NF; lt_i > 0; lt_i--) {
11003 if ($lt_i != "" && $lt_i != ".") {
11004 if ($lt_i == "..") {
11005 lt_count++;
11006 } else {
11007 if (lt_count == 0) {
11008 lt_foo="/" $lt_i lt_foo;
11009 } else {
11010 lt_count--;
11011 }
11012 }
11013 }
11014 }
11015 if (lt_foo != "") { lt_freq[lt_foo]++; }
11016 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11017 }'`
11018 # AWK program above erroneously prepends '/' to C:/dos/paths
11019 # for these hosts.
11020 case $host_os in
11021 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11022 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11023 esac
11024 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11025 else
11026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11027 fi
11028 library_names_spec=
11029 libname_spec='lib$name'
11030 soname_spec=
11031 shrext_cmds=".so"
11032 postinstall_cmds=
11033 postuninstall_cmds=
11034 finish_cmds=
11035 finish_eval=
11036 shlibpath_var=
11037 shlibpath_overrides_runpath=unknown
11038 version_type=none
11039 dynamic_linker="$host_os ld.so"
11040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11041 need_lib_prefix=unknown
11042 hardcode_into_libs=no
11043
11044 # when you set need_version to no, make sure it does not cause -set_version
11045 # flags to be left without arguments
11046 need_version=unknown
11047
11048 case $host_os in
11049 aix3*)
11050 version_type=linux
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11052 shlibpath_var=LIBPATH
11053
11054 # AIX 3 has no versioning support, so we append a major version to the name.
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 ;;
11057
11058 aix[4-9]*)
11059 version_type=linux
11060 need_lib_prefix=no
11061 need_version=no
11062 hardcode_into_libs=yes
11063 if test "$host_cpu" = ia64; then
11064 # AIX 5 supports IA64
11065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 else
11068 # With GCC up to 2.95.x, collect2 would create an import file
11069 # for dependence libraries. The import file would start with
11070 # the line `#! .'. This would cause the generated library to
11071 # depend on `.', always an invalid library. This was fixed in
11072 # development snapshots of GCC prior to 3.0.
11073 case $host_os in
11074 aix4 | aix4.[01] | aix4.[01].*)
11075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11076 echo ' yes '
11077 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11078 :
11079 else
11080 can_build_shared=no
11081 fi
11082 ;;
11083 esac
11084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11085 # soname into executable. Probably we can add versioning support to
11086 # collect2, so additional links can be useful in future.
11087 if test "$aix_use_runtimelinking" = yes; then
11088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11089 # instead of lib<name>.a to let people know that these are not
11090 # typical AIX shared libraries.
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 else
11093 # We preserve .a as extension for shared libraries through AIX4.2
11094 # and later when we are not doing run time linking.
11095 library_names_spec='${libname}${release}.a $libname.a'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 fi
11098 shlibpath_var=LIBPATH
11099 fi
11100 ;;
11101
11102 amigaos*)
11103 case $host_cpu in
11104 powerpc)
11105 # Since July 2007 AmigaOS4 officially supports .so libraries.
11106 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 ;;
11109 m68k)
11110 library_names_spec='$libname.ixlibrary $libname.a'
11111 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11112 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'
11113 ;;
11114 esac
11115 ;;
11116
11117 beos*)
11118 library_names_spec='${libname}${shared_ext}'
11119 dynamic_linker="$host_os ld.so"
11120 shlibpath_var=LIBRARY_PATH
11121 ;;
11122
11123 bsdi[45]*)
11124 version_type=linux
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11131 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11132 # the default ld.so.conf also contains /usr/contrib/lib and
11133 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11134 # libtool to hard-code these into programs
11135 ;;
11136
11137 cygwin* | mingw* | pw32* | cegcc*)
11138 version_type=windows
11139 shrext_cmds=".dll"
11140 need_version=no
11141 need_lib_prefix=no
11142
11143 case $GCC,$host_os in
11144 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11145 library_names_spec='$libname.dll.a'
11146 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11147 postinstall_cmds='base_file=`basename \${file}`~
11148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11149 dldir=$destdir/`dirname \$dlpath`~
11150 test -d \$dldir || mkdir -p \$dldir~
11151 $install_prog $dir/$dlname \$dldir/$dlname~
11152 chmod a+x \$dldir/$dlname~
11153 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11154 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11155 fi'
11156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11157 dlpath=$dir/\$dldll~
11158 $RM \$dlpath'
11159 shlibpath_overrides_runpath=yes
11160
11161 case $host_os in
11162 cygwin*)
11163 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11164 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11165
11166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11167 ;;
11168 mingw* | cegcc*)
11169 # MinGW DLLs use traditional 'lib' prefix
11170 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11171 ;;
11172 pw32*)
11173 # pw32 DLLs use 'pw' prefix rather than 'lib'
11174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11175 ;;
11176 esac
11177 ;;
11178
11179 *)
11180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11181 ;;
11182 esac
11183 dynamic_linker='Win32 ld.exe'
11184 # FIXME: first we should search . and the directory the executable is in
11185 shlibpath_var=PATH
11186 ;;
11187
11188 darwin* | rhapsody*)
11189 dynamic_linker="$host_os dyld"
11190 version_type=darwin
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11194 soname_spec='${libname}${release}${major}$shared_ext'
11195 shlibpath_overrides_runpath=yes
11196 shlibpath_var=DYLD_LIBRARY_PATH
11197 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11198
11199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11201 ;;
11202
11203 dgux*)
11204 version_type=linux
11205 need_lib_prefix=no
11206 need_version=no
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 ;;
11211
11212 freebsd* | dragonfly*)
11213 # DragonFly does not have aout. When/if they implement a new
11214 # versioning mechanism, adjust this.
11215 if test -x /usr/bin/objformat; then
11216 objformat=`/usr/bin/objformat`
11217 else
11218 case $host_os in
11219 freebsd[23].*) objformat=aout ;;
11220 *) objformat=elf ;;
11221 esac
11222 fi
11223 version_type=freebsd-$objformat
11224 case $version_type in
11225 freebsd-elf*)
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11227 need_version=no
11228 need_lib_prefix=no
11229 ;;
11230 freebsd-*)
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11232 need_version=yes
11233 ;;
11234 esac
11235 shlibpath_var=LD_LIBRARY_PATH
11236 case $host_os in
11237 freebsd2.*)
11238 shlibpath_overrides_runpath=yes
11239 ;;
11240 freebsd3.[01]* | freebsdelf3.[01]*)
11241 shlibpath_overrides_runpath=yes
11242 hardcode_into_libs=yes
11243 ;;
11244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11246 shlibpath_overrides_runpath=no
11247 hardcode_into_libs=yes
11248 ;;
11249 *) # from 4.6 on, and DragonFly
11250 shlibpath_overrides_runpath=yes
11251 hardcode_into_libs=yes
11252 ;;
11253 esac
11254 ;;
11255
11256 gnu*)
11257 version_type=linux
11258 need_lib_prefix=no
11259 need_version=no
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 hardcode_into_libs=yes
11264 ;;
11265
11266 haiku*)
11267 version_type=linux
11268 need_lib_prefix=no
11269 need_version=no
11270 dynamic_linker="$host_os runtime_loader"
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LIBRARY_PATH
11274 shlibpath_overrides_runpath=yes
11275 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11276 hardcode_into_libs=yes
11277 ;;
11278
11279 hpux9* | hpux10* | hpux11*)
11280 # Give a soname corresponding to the major version so that dld.sl refuses to
11281 # link against other versions.
11282 version_type=sunos
11283 need_lib_prefix=no
11284 need_version=no
11285 case $host_cpu in
11286 ia64*)
11287 shrext_cmds='.so'
11288 hardcode_into_libs=yes
11289 dynamic_linker="$host_os dld.so"
11290 shlibpath_var=LD_LIBRARY_PATH
11291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293 soname_spec='${libname}${release}${shared_ext}$major'
11294 if test "X$HPUX_IA64_MODE" = X32; then
11295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11296 else
11297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11298 fi
11299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11300 ;;
11301 hppa*64*)
11302 shrext_cmds='.sl'
11303 hardcode_into_libs=yes
11304 dynamic_linker="$host_os dld.sl"
11305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11311 ;;
11312 *)
11313 shrext_cmds='.sl'
11314 dynamic_linker="$host_os dld.sl"
11315 shlibpath_var=SHLIB_PATH
11316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 ;;
11320 esac
11321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11322 postinstall_cmds='chmod 555 $lib'
11323 # or fails outright, so override atomically:
11324 install_override_mode=555
11325 ;;
11326
11327 interix[3-9]*)
11328 version_type=linux
11329 need_lib_prefix=no
11330 need_version=no
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 shlibpath_overrides_runpath=no
11336 hardcode_into_libs=yes
11337 ;;
11338
11339 irix5* | irix6* | nonstopux*)
11340 case $host_os in
11341 nonstopux*) version_type=nonstopux ;;
11342 *)
11343 if test "$lt_cv_prog_gnu_ld" = yes; then
11344 version_type=linux
11345 else
11346 version_type=irix
11347 fi ;;
11348 esac
11349 need_lib_prefix=no
11350 need_version=no
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11353 case $host_os in
11354 irix5* | nonstopux*)
11355 libsuff= shlibsuff=
11356 ;;
11357 *)
11358 case $LD in # libtool.m4 will add one of these switches to LD
11359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11360 libsuff= shlibsuff= libmagic=32-bit;;
11361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11362 libsuff=32 shlibsuff=N32 libmagic=N32;;
11363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11365 *) libsuff= shlibsuff= libmagic=never-match;;
11366 esac
11367 ;;
11368 esac
11369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11370 shlibpath_overrides_runpath=no
11371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11373 hardcode_into_libs=yes
11374 ;;
11375
11376 # No shared lib support for Linux oldld, aout, or coff.
11377 linux*oldld* | linux*aout* | linux*coff*)
11378 dynamic_linker=no
11379 ;;
11380
11381 # This must be Linux ELF.
11382 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11383 version_type=linux
11384 need_lib_prefix=no
11385 need_version=no
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11389 shlibpath_var=LD_LIBRARY_PATH
11390 shlibpath_overrides_runpath=no
11391
11392 # Some binutils ld are patched to set DT_RUNPATH
11393 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 lt_cv_shlibpath_overrides_runpath=no
11397 save_LDFLAGS=$LDFLAGS
11398 save_libdir=$libdir
11399 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11400 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403
11404 int
11405 main ()
11406 {
11407
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11414 lt_cv_shlibpath_overrides_runpath=yes
11415 fi
11416 fi
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 LDFLAGS=$save_LDFLAGS
11420 libdir=$save_libdir
11421
11422 fi
11423
11424 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11425
11426 # This implies no fast_install, which is unacceptable.
11427 # Some rework will be needed to allow for fast_install
11428 # before this can be enabled.
11429 hardcode_into_libs=yes
11430
11431 # Append ld.so.conf contents to the search path
11432 if test -f /etc/ld.so.conf; then
11433 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' ' '`
11434 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11435 fi
11436
11437 # We used to test for /lib/ld.so.1 and disable shared libraries on
11438 # powerpc, because MkLinux only supported shared libraries with the
11439 # GNU dynamic linker. Since this was broken with cross compilers,
11440 # most powerpc-linux boxes support dynamic linking these days and
11441 # people can always --disable-shared, the test was removed, and we
11442 # assume the GNU/Linux dynamic linker is in use.
11443 dynamic_linker='GNU/Linux ld.so'
11444 ;;
11445
11446 netbsd*)
11447 version_type=sunos
11448 need_lib_prefix=no
11449 need_version=no
11450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11453 dynamic_linker='NetBSD (a.out) ld.so'
11454 else
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 dynamic_linker='NetBSD ld.elf_so'
11458 fi
11459 shlibpath_var=LD_LIBRARY_PATH
11460 shlibpath_overrides_runpath=yes
11461 hardcode_into_libs=yes
11462 ;;
11463
11464 newsos6)
11465 version_type=linux
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=yes
11469 ;;
11470
11471 *nto* | *qnx*)
11472 version_type=qnx
11473 need_lib_prefix=no
11474 need_version=no
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 soname_spec='${libname}${release}${shared_ext}$major'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 hardcode_into_libs=yes
11480 dynamic_linker='ldqnx.so'
11481 ;;
11482
11483 openbsd*)
11484 version_type=sunos
11485 sys_lib_dlsearch_path_spec="/usr/lib"
11486 need_lib_prefix=no
11487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11488 case $host_os in
11489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11490 *) need_version=no ;;
11491 esac
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11496 case $host_os in
11497 openbsd2.[89] | openbsd2.[89].*)
11498 shlibpath_overrides_runpath=no
11499 ;;
11500 *)
11501 shlibpath_overrides_runpath=yes
11502 ;;
11503 esac
11504 else
11505 shlibpath_overrides_runpath=yes
11506 fi
11507 ;;
11508
11509 os2*)
11510 libname_spec='$name'
11511 shrext_cmds=".dll"
11512 need_lib_prefix=no
11513 library_names_spec='$libname${shared_ext} $libname.a'
11514 dynamic_linker='OS/2 ld.exe'
11515 shlibpath_var=LIBPATH
11516 ;;
11517
11518 osf3* | osf4* | osf5*)
11519 version_type=osf
11520 need_lib_prefix=no
11521 need_version=no
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11527 ;;
11528
11529 rdos*)
11530 dynamic_linker=no
11531 ;;
11532
11533 solaris*)
11534 version_type=linux
11535 need_lib_prefix=no
11536 need_version=no
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 shlibpath_overrides_runpath=yes
11541 hardcode_into_libs=yes
11542 # ldd complains unless libraries are executable
11543 postinstall_cmds='chmod +x $lib'
11544 ;;
11545
11546 sunos4*)
11547 version_type=sunos
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 shlibpath_overrides_runpath=yes
11552 if test "$with_gnu_ld" = yes; then
11553 need_lib_prefix=no
11554 fi
11555 need_version=yes
11556 ;;
11557
11558 sysv4 | sysv4.3*)
11559 version_type=linux
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 soname_spec='${libname}${release}${shared_ext}$major'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 case $host_vendor in
11564 sni)
11565 shlibpath_overrides_runpath=no
11566 need_lib_prefix=no
11567 runpath_var=LD_RUN_PATH
11568 ;;
11569 siemens)
11570 need_lib_prefix=no
11571 ;;
11572 motorola)
11573 need_lib_prefix=no
11574 need_version=no
11575 shlibpath_overrides_runpath=no
11576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11577 ;;
11578 esac
11579 ;;
11580
11581 sysv4*MP*)
11582 if test -d /usr/nec ;then
11583 version_type=linux
11584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11585 soname_spec='$libname${shared_ext}.$major'
11586 shlibpath_var=LD_LIBRARY_PATH
11587 fi
11588 ;;
11589
11590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11591 version_type=freebsd-elf
11592 need_lib_prefix=no
11593 need_version=no
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 shlibpath_overrides_runpath=yes
11598 hardcode_into_libs=yes
11599 if test "$with_gnu_ld" = yes; then
11600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11601 else
11602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11603 case $host_os in
11604 sco3.2v5*)
11605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11606 ;;
11607 esac
11608 fi
11609 sys_lib_dlsearch_path_spec='/usr/lib'
11610 ;;
11611
11612 tpf*)
11613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11614 version_type=linux
11615 need_lib_prefix=no
11616 need_version=no
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=no
11620 hardcode_into_libs=yes
11621 ;;
11622
11623 uts4*)
11624 version_type=linux
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 ;;
11629
11630 *)
11631 dynamic_linker=no
11632 ;;
11633 esac
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11635 $as_echo "$dynamic_linker" >&6; }
11636 test "$dynamic_linker" = no && can_build_shared=no
11637
11638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11639 if test "$GCC" = yes; then
11640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11641 fi
11642
11643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11645 fi
11646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11648 fi
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11742 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11743 hardcode_action=
11744 if test -n "$hardcode_libdir_flag_spec" ||
11745 test -n "$runpath_var" ||
11746 test "X$hardcode_automatic" = "Xyes" ; then
11747
11748 # We can hardcode non-existent directories.
11749 if test "$hardcode_direct" != no &&
11750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11751 # have to relink, otherwise we might link with an installed library
11752 # when we should be linking with a yet-to-be-installed one
11753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11754 test "$hardcode_minus_L" != no; then
11755 # Linking always hardcodes the temporary library directory.
11756 hardcode_action=relink
11757 else
11758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11759 hardcode_action=immediate
11760 fi
11761 else
11762 # We cannot hardcode anything, or else we can only hardcode existing
11763 # directories.
11764 hardcode_action=unsupported
11765 fi
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11767 $as_echo "$hardcode_action" >&6; }
11768
11769 if test "$hardcode_action" = relink ||
11770 test "$inherit_rpath" = yes; then
11771 # Fast installation is not supported
11772 enable_fast_install=no
11773 elif test "$shlibpath_overrides_runpath" = yes ||
11774 test "$enable_shared" = no; then
11775 # Fast installation is not necessary
11776 enable_fast_install=needless
11777 fi
11778
11779
11780
11781
11782
11783
11784 if test "x$enable_dlopen" != xyes; then
11785 enable_dlopen=unknown
11786 enable_dlopen_self=unknown
11787 enable_dlopen_self_static=unknown
11788 else
11789 lt_cv_dlopen=no
11790 lt_cv_dlopen_libs=
11791
11792 case $host_os in
11793 beos*)
11794 lt_cv_dlopen="load_add_on"
11795 lt_cv_dlopen_libs=
11796 lt_cv_dlopen_self=yes
11797 ;;
11798
11799 mingw* | pw32* | cegcc*)
11800 lt_cv_dlopen="LoadLibrary"
11801 lt_cv_dlopen_libs=
11802 ;;
11803
11804 cygwin*)
11805 lt_cv_dlopen="dlopen"
11806 lt_cv_dlopen_libs=
11807 ;;
11808
11809 darwin*)
11810 # if libdl is installed we need to link against it
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-ldl $LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char dlopen ();
11828 int
11829 main ()
11830 {
11831 return dlopen ();
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"; then :
11837 ac_cv_lib_dl_dlopen=yes
11838 else
11839 ac_cv_lib_dl_dlopen=no
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11849 else
11850
11851 lt_cv_dlopen="dyld"
11852 lt_cv_dlopen_libs=
11853 lt_cv_dlopen_self=yes
11854
11855 fi
11856
11857 ;;
11858
11859 *)
11860 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11861 if test "x$ac_cv_func_shl_load" = x""yes; then :
11862 lt_cv_dlopen="shl_load"
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11865 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11866 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 ac_check_lib_save_LIBS=$LIBS
11870 LIBS="-ldld $LIBS"
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873
11874 /* Override any GCC internal prototype to avoid an error.
11875 Use char because int might match the return type of a GCC
11876 builtin and then its argument prototype would still apply. */
11877 #ifdef __cplusplus
11878 extern "C"
11879 #endif
11880 char shl_load ();
11881 int
11882 main ()
11883 {
11884 return shl_load ();
11885 ;
11886 return 0;
11887 }
11888 _ACEOF
11889 if ac_fn_c_try_link "$LINENO"; then :
11890 ac_cv_lib_dld_shl_load=yes
11891 else
11892 ac_cv_lib_dld_shl_load=no
11893 fi
11894 rm -f core conftest.err conftest.$ac_objext \
11895 conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11897 fi
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11899 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11900 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11902 else
11903 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11904 if test "x$ac_cv_func_dlopen" = x""yes; then :
11905 lt_cv_dlopen="dlopen"
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11908 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-ldl $LIBS"
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char dlopen ();
11924 int
11925 main ()
11926 {
11927 return dlopen ();
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_link "$LINENO"; then :
11933 ac_cv_lib_dl_dlopen=yes
11934 else
11935 ac_cv_lib_dl_dlopen=no
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11943 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11947 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11948 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-lsvld $LIBS"
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char dlopen ();
11963 int
11964 main ()
11965 {
11966 return dlopen ();
11967 ;
11968 return 0;
11969 }
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_svld_dlopen=yes
11973 else
11974 ac_cv_lib_svld_dlopen=no
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11981 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11982 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11986 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11987 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-ldld $LIBS"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char dld_link ();
12002 int
12003 main ()
12004 {
12005 return dld_link ();
12006 ;
12007 return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_dld_dld_link=yes
12012 else
12013 ac_cv_lib_dld_dld_link=no
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12020 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12021 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12022 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12023 fi
12024
12025
12026 fi
12027
12028
12029 fi
12030
12031
12032 fi
12033
12034
12035 fi
12036
12037
12038 fi
12039
12040 ;;
12041 esac
12042
12043 if test "x$lt_cv_dlopen" != xno; then
12044 enable_dlopen=yes
12045 else
12046 enable_dlopen=no
12047 fi
12048
12049 case $lt_cv_dlopen in
12050 dlopen)
12051 save_CPPFLAGS="$CPPFLAGS"
12052 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12053
12054 save_LDFLAGS="$LDFLAGS"
12055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12056
12057 save_LIBS="$LIBS"
12058 LIBS="$lt_cv_dlopen_libs $LIBS"
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12061 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12062 if test "${lt_cv_dlopen_self+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 if test "$cross_compiling" = yes; then :
12066 lt_cv_dlopen_self=cross
12067 else
12068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12069 lt_status=$lt_dlunknown
12070 cat > conftest.$ac_ext <<_LT_EOF
12071 #line 12071 "configure"
12072 #include "confdefs.h"
12073
12074 #if HAVE_DLFCN_H
12075 #include <dlfcn.h>
12076 #endif
12077
12078 #include <stdio.h>
12079
12080 #ifdef RTLD_GLOBAL
12081 # define LT_DLGLOBAL RTLD_GLOBAL
12082 #else
12083 # ifdef DL_GLOBAL
12084 # define LT_DLGLOBAL DL_GLOBAL
12085 # else
12086 # define LT_DLGLOBAL 0
12087 # endif
12088 #endif
12089
12090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12091 find out it does not work in some platform. */
12092 #ifndef LT_DLLAZY_OR_NOW
12093 # ifdef RTLD_LAZY
12094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12095 # else
12096 # ifdef DL_LAZY
12097 # define LT_DLLAZY_OR_NOW DL_LAZY
12098 # else
12099 # ifdef RTLD_NOW
12100 # define LT_DLLAZY_OR_NOW RTLD_NOW
12101 # else
12102 # ifdef DL_NOW
12103 # define LT_DLLAZY_OR_NOW DL_NOW
12104 # else
12105 # define LT_DLLAZY_OR_NOW 0
12106 # endif
12107 # endif
12108 # endif
12109 # endif
12110 #endif
12111
12112 /* When -fvisbility=hidden is used, assume the code has been annotated
12113 correspondingly for the symbols needed. */
12114 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12115 void fnord () __attribute__((visibility("default")));
12116 #endif
12117
12118 void fnord () { int i=42; }
12119 int main ()
12120 {
12121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12122 int status = $lt_dlunknown;
12123
12124 if (self)
12125 {
12126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12127 else
12128 {
12129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12130 else puts (dlerror ());
12131 }
12132 /* dlclose (self); */
12133 }
12134 else
12135 puts (dlerror ());
12136
12137 return status;
12138 }
12139 _LT_EOF
12140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12141 (eval $ac_link) 2>&5
12142 ac_status=$?
12143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12144 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12145 (./conftest; exit; ) >&5 2>/dev/null
12146 lt_status=$?
12147 case x$lt_status in
12148 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12149 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12150 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12151 esac
12152 else :
12153 # compilation failed
12154 lt_cv_dlopen_self=no
12155 fi
12156 fi
12157 rm -fr conftest*
12158
12159
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12162 $as_echo "$lt_cv_dlopen_self" >&6; }
12163
12164 if test "x$lt_cv_dlopen_self" = xyes; then
12165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12167 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12168 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 if test "$cross_compiling" = yes; then :
12172 lt_cv_dlopen_self_static=cross
12173 else
12174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12175 lt_status=$lt_dlunknown
12176 cat > conftest.$ac_ext <<_LT_EOF
12177 #line 12177 "configure"
12178 #include "confdefs.h"
12179
12180 #if HAVE_DLFCN_H
12181 #include <dlfcn.h>
12182 #endif
12183
12184 #include <stdio.h>
12185
12186 #ifdef RTLD_GLOBAL
12187 # define LT_DLGLOBAL RTLD_GLOBAL
12188 #else
12189 # ifdef DL_GLOBAL
12190 # define LT_DLGLOBAL DL_GLOBAL
12191 # else
12192 # define LT_DLGLOBAL 0
12193 # endif
12194 #endif
12195
12196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12197 find out it does not work in some platform. */
12198 #ifndef LT_DLLAZY_OR_NOW
12199 # ifdef RTLD_LAZY
12200 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12201 # else
12202 # ifdef DL_LAZY
12203 # define LT_DLLAZY_OR_NOW DL_LAZY
12204 # else
12205 # ifdef RTLD_NOW
12206 # define LT_DLLAZY_OR_NOW RTLD_NOW
12207 # else
12208 # ifdef DL_NOW
12209 # define LT_DLLAZY_OR_NOW DL_NOW
12210 # else
12211 # define LT_DLLAZY_OR_NOW 0
12212 # endif
12213 # endif
12214 # endif
12215 # endif
12216 #endif
12217
12218 /* When -fvisbility=hidden is used, assume the code has been annotated
12219 correspondingly for the symbols needed. */
12220 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12221 void fnord () __attribute__((visibility("default")));
12222 #endif
12223
12224 void fnord () { int i=42; }
12225 int main ()
12226 {
12227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12228 int status = $lt_dlunknown;
12229
12230 if (self)
12231 {
12232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12233 else
12234 {
12235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12236 else puts (dlerror ());
12237 }
12238 /* dlclose (self); */
12239 }
12240 else
12241 puts (dlerror ());
12242
12243 return status;
12244 }
12245 _LT_EOF
12246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12247 (eval $ac_link) 2>&5
12248 ac_status=$?
12249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12250 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12251 (./conftest; exit; ) >&5 2>/dev/null
12252 lt_status=$?
12253 case x$lt_status in
12254 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12255 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12256 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12257 esac
12258 else :
12259 # compilation failed
12260 lt_cv_dlopen_self_static=no
12261 fi
12262 fi
12263 rm -fr conftest*
12264
12265
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12268 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12269 fi
12270
12271 CPPFLAGS="$save_CPPFLAGS"
12272 LDFLAGS="$save_LDFLAGS"
12273 LIBS="$save_LIBS"
12274 ;;
12275 esac
12276
12277 case $lt_cv_dlopen_self in
12278 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12279 *) enable_dlopen_self=unknown ;;
12280 esac
12281
12282 case $lt_cv_dlopen_self_static in
12283 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12284 *) enable_dlopen_self_static=unknown ;;
12285 esac
12286 fi
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304 striplib=
12305 old_striplib=
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12307 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12308 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12309 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12310 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12312 $as_echo "yes" >&6; }
12313 else
12314 # FIXME - insert some real tests, host_os isn't really good enough
12315 case $host_os in
12316 darwin*)
12317 if test -n "$STRIP" ; then
12318 striplib="$STRIP -x"
12319 old_striplib="$STRIP -S"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 fi
12326 ;;
12327 *)
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12330 ;;
12331 esac
12332 fi
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345 # Report which library types will actually be built
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12349 $as_echo "$can_build_shared" >&6; }
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12352 $as_echo_n "checking whether to build shared libraries... " >&6; }
12353 test "$can_build_shared" = "no" && enable_shared=no
12354
12355 # On AIX, shared libraries and static libraries use the same namespace, and
12356 # are all built from PIC.
12357 case $host_os in
12358 aix3*)
12359 test "$enable_shared" = yes && enable_static=no
12360 if test -n "$RANLIB"; then
12361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12362 postinstall_cmds='$RANLIB $lib'
12363 fi
12364 ;;
12365
12366 aix[4-9]*)
12367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12368 test "$enable_shared" = yes && enable_static=no
12369 fi
12370 ;;
12371 esac
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12373 $as_echo "$enable_shared" >&6; }
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12376 $as_echo_n "checking whether to build static libraries... " >&6; }
12377 # Make sure either enable_shared or enable_static is yes.
12378 test "$enable_shared" = yes || enable_static=yes
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12380 $as_echo "$enable_static" >&6; }
12381
12382
12383
12384
12385 fi
12386 ac_ext=c
12387 ac_cpp='$CPP $CPPFLAGS'
12388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12391
12392 CC="$lt_save_CC"
12393
12394 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12395 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12396 (test "X$CXX" != "Xg++"))) ; then
12397 ac_ext=cpp
12398 ac_cpp='$CXXCPP $CPPFLAGS'
12399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12403 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12404 if test -z "$CXXCPP"; then
12405 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 # Double quotes because CXXCPP needs to be expanded
12409 for CXXCPP in "$CXX -E" "/lib/cpp"
12410 do
12411 ac_preproc_ok=false
12412 for ac_cxx_preproc_warn_flag in '' yes
12413 do
12414 # Use a header file that comes with gcc, so configuring glibc
12415 # with a fresh cross-compiler works.
12416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12417 # <limits.h> exists even on freestanding compilers.
12418 # On the NeXT, cc -E runs the code through the compiler's parser,
12419 # not just through cpp. "Syntax error" is here to catch this case.
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422 #ifdef __STDC__
12423 # include <limits.h>
12424 #else
12425 # include <assert.h>
12426 #endif
12427 Syntax error
12428 _ACEOF
12429 if ac_fn_cxx_try_cpp "$LINENO"; then :
12430
12431 else
12432 # Broken: fails on valid input.
12433 continue
12434 fi
12435 rm -f conftest.err conftest.$ac_ext
12436
12437 # OK, works on sane cases. Now check whether nonexistent headers
12438 # can be detected and how.
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 #include <ac_nonexistent.h>
12442 _ACEOF
12443 if ac_fn_cxx_try_cpp "$LINENO"; then :
12444 # Broken: success on invalid input.
12445 continue
12446 else
12447 # Passes both tests.
12448 ac_preproc_ok=:
12449 break
12450 fi
12451 rm -f conftest.err conftest.$ac_ext
12452
12453 done
12454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12455 rm -f conftest.err conftest.$ac_ext
12456 if $ac_preproc_ok; then :
12457 break
12458 fi
12459
12460 done
12461 ac_cv_prog_CXXCPP=$CXXCPP
12462
12463 fi
12464 CXXCPP=$ac_cv_prog_CXXCPP
12465 else
12466 ac_cv_prog_CXXCPP=$CXXCPP
12467 fi
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12469 $as_echo "$CXXCPP" >&6; }
12470 ac_preproc_ok=false
12471 for ac_cxx_preproc_warn_flag in '' yes
12472 do
12473 # Use a header file that comes with gcc, so configuring glibc
12474 # with a fresh cross-compiler works.
12475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12476 # <limits.h> exists even on freestanding compilers.
12477 # On the NeXT, cc -E runs the code through the compiler's parser,
12478 # not just through cpp. "Syntax error" is here to catch this case.
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12481 #ifdef __STDC__
12482 # include <limits.h>
12483 #else
12484 # include <assert.h>
12485 #endif
12486 Syntax error
12487 _ACEOF
12488 if ac_fn_cxx_try_cpp "$LINENO"; then :
12489
12490 else
12491 # Broken: fails on valid input.
12492 continue
12493 fi
12494 rm -f conftest.err conftest.$ac_ext
12495
12496 # OK, works on sane cases. Now check whether nonexistent headers
12497 # can be detected and how.
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500 #include <ac_nonexistent.h>
12501 _ACEOF
12502 if ac_fn_cxx_try_cpp "$LINENO"; then :
12503 # Broken: success on invalid input.
12504 continue
12505 else
12506 # Passes both tests.
12507 ac_preproc_ok=:
12508 break
12509 fi
12510 rm -f conftest.err conftest.$ac_ext
12511
12512 done
12513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12514 rm -f conftest.err conftest.$ac_ext
12515 if $ac_preproc_ok; then :
12516
12517 else
12518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12520 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12521 See \`config.log' for more details." "$LINENO" 5; }
12522 fi
12523
12524 ac_ext=c
12525 ac_cpp='$CPP $CPPFLAGS'
12526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12529
12530 else
12531 _lt_caught_CXX_error=yes
12532 fi
12533
12534 ac_ext=cpp
12535 ac_cpp='$CXXCPP $CPPFLAGS'
12536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12539
12540 archive_cmds_need_lc_CXX=no
12541 allow_undefined_flag_CXX=
12542 always_export_symbols_CXX=no
12543 archive_expsym_cmds_CXX=
12544 compiler_needs_object_CXX=no
12545 export_dynamic_flag_spec_CXX=
12546 hardcode_direct_CXX=no
12547 hardcode_direct_absolute_CXX=no
12548 hardcode_libdir_flag_spec_CXX=
12549 hardcode_libdir_flag_spec_ld_CXX=
12550 hardcode_libdir_separator_CXX=
12551 hardcode_minus_L_CXX=no
12552 hardcode_shlibpath_var_CXX=unsupported
12553 hardcode_automatic_CXX=no
12554 inherit_rpath_CXX=no
12555 module_cmds_CXX=
12556 module_expsym_cmds_CXX=
12557 link_all_deplibs_CXX=unknown
12558 old_archive_cmds_CXX=$old_archive_cmds
12559 reload_flag_CXX=$reload_flag
12560 reload_cmds_CXX=$reload_cmds
12561 no_undefined_flag_CXX=
12562 whole_archive_flag_spec_CXX=
12563 enable_shared_with_static_runtimes_CXX=no
12564
12565 # Source file extension for C++ test sources.
12566 ac_ext=cpp
12567
12568 # Object file extension for compiled C++ test sources.
12569 objext=o
12570 objext_CXX=$objext
12571
12572 # No sense in running all these tests if we already determined that
12573 # the CXX compiler isn't working. Some variables (like enable_shared)
12574 # are currently assumed to apply to all compilers on this platform,
12575 # and will be corrupted by setting them based on a non-working compiler.
12576 if test "$_lt_caught_CXX_error" != yes; then
12577 # Code to be used in simple compile tests
12578 lt_simple_compile_test_code="int some_variable = 0;"
12579
12580 # Code to be used in simple link tests
12581 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12582
12583 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12584
12585
12586
12587
12588
12589
12590 # If no C compiler was specified, use CC.
12591 LTCC=${LTCC-"$CC"}
12592
12593 # If no C compiler flags were specified, use CFLAGS.
12594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12595
12596 # Allow CC to be a program name with arguments.
12597 compiler=$CC
12598
12599
12600 # save warnings/boilerplate of simple test code
12601 ac_outfile=conftest.$ac_objext
12602 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604 _lt_compiler_boilerplate=`cat conftest.err`
12605 $RM conftest*
12606
12607 ac_outfile=conftest.$ac_objext
12608 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12610 _lt_linker_boilerplate=`cat conftest.err`
12611 $RM -r conftest*
12612
12613
12614 # Allow CC to be a program name with arguments.
12615 lt_save_CC=$CC
12616 lt_save_LD=$LD
12617 lt_save_GCC=$GCC
12618 GCC=$GXX
12619 lt_save_with_gnu_ld=$with_gnu_ld
12620 lt_save_path_LD=$lt_cv_path_LD
12621 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12622 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12623 else
12624 $as_unset lt_cv_prog_gnu_ld
12625 fi
12626 if test -n "${lt_cv_path_LDCXX+set}"; then
12627 lt_cv_path_LD=$lt_cv_path_LDCXX
12628 else
12629 $as_unset lt_cv_path_LD
12630 fi
12631 test -z "${LDCXX+set}" || LD=$LDCXX
12632 CC=${CXX-"c++"}
12633 compiler=$CC
12634 compiler_CXX=$CC
12635 for cc_temp in $compiler""; do
12636 case $cc_temp in
12637 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12638 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12639 \-*) ;;
12640 *) break;;
12641 esac
12642 done
12643 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12644
12645
12646 if test -n "$compiler"; then
12647 # We don't want -fno-exception when compiling C++ code, so set the
12648 # no_builtin_flag separately
12649 if test "$GXX" = yes; then
12650 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12651 else
12652 lt_prog_compiler_no_builtin_flag_CXX=
12653 fi
12654
12655 if test "$GXX" = yes; then
12656 # Set up default GNU C++ configuration
12657
12658
12659
12660 # Check whether --with-gnu-ld was given.
12661 if test "${with_gnu_ld+set}" = set; then :
12662 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12663 else
12664 with_gnu_ld=no
12665 fi
12666
12667 ac_prog=ld
12668 if test "$GCC" = yes; then
12669 # Check if gcc -print-prog-name=ld gives a path.
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12671 $as_echo_n "checking for ld used by $CC... " >&6; }
12672 case $host in
12673 *-*-mingw*)
12674 # gcc leaves a trailing carriage return which upsets mingw
12675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12676 *)
12677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12678 esac
12679 case $ac_prog in
12680 # Accept absolute paths.
12681 [\\/]* | ?:[\\/]*)
12682 re_direlt='/[^/][^/]*/\.\./'
12683 # Canonicalize the pathname of ld
12684 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12685 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12686 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12687 done
12688 test -z "$LD" && LD="$ac_prog"
12689 ;;
12690 "")
12691 # If it fails, then pretend we aren't using GCC.
12692 ac_prog=ld
12693 ;;
12694 *)
12695 # If it is relative, then search for the first ld in PATH.
12696 with_gnu_ld=unknown
12697 ;;
12698 esac
12699 elif test "$with_gnu_ld" = yes; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12701 $as_echo_n "checking for GNU ld... " >&6; }
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12704 $as_echo_n "checking for non-GNU ld... " >&6; }
12705 fi
12706 if test "${lt_cv_path_LD+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 if test -z "$LD"; then
12710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12711 for ac_dir in $PATH; do
12712 IFS="$lt_save_ifs"
12713 test -z "$ac_dir" && ac_dir=.
12714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12715 lt_cv_path_LD="$ac_dir/$ac_prog"
12716 # Check to see if the program is GNU ld. I'd rather use --version,
12717 # but apparently some variants of GNU ld only accept -v.
12718 # Break only if it was the GNU/non-GNU ld that we prefer.
12719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12720 *GNU* | *'with BFD'*)
12721 test "$with_gnu_ld" != no && break
12722 ;;
12723 *)
12724 test "$with_gnu_ld" != yes && break
12725 ;;
12726 esac
12727 fi
12728 done
12729 IFS="$lt_save_ifs"
12730 else
12731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12732 fi
12733 fi
12734
12735 LD="$lt_cv_path_LD"
12736 if test -n "$LD"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12738 $as_echo "$LD" >&6; }
12739 else
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742 fi
12743 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12745 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12746 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12750 case `$LD -v 2>&1 </dev/null` in
12751 *GNU* | *'with BFD'*)
12752 lt_cv_prog_gnu_ld=yes
12753 ;;
12754 *)
12755 lt_cv_prog_gnu_ld=no
12756 ;;
12757 esac
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12760 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12761 with_gnu_ld=$lt_cv_prog_gnu_ld
12762
12763
12764
12765
12766
12767
12768
12769 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12770 # archiving commands below assume that GNU ld is being used.
12771 if test "$with_gnu_ld" = yes; then
12772 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 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'
12774
12775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12777
12778 # If archive_cmds runs LD, not CC, wlarc should be empty
12779 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12780 # investigate it a little bit more. (MM)
12781 wlarc='${wl}'
12782
12783 # ancient GNU ld didn't support --whole-archive et. al.
12784 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12785 $GREP 'no-whole-archive' > /dev/null; then
12786 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12787 else
12788 whole_archive_flag_spec_CXX=
12789 fi
12790 else
12791 with_gnu_ld=no
12792 wlarc=
12793
12794 # A generic and very simple default shared library creation
12795 # command for GNU C++ for the case where it uses the native
12796 # linker, instead of GNU ld. If possible, this setting should
12797 # overridden to take advantage of the native linker features on
12798 # the platform it is being used on.
12799 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12800 fi
12801
12802 # Commands to make compiler produce verbose output that lists
12803 # what "hidden" libraries, object files and flags are used when
12804 # linking a shared library.
12805 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12806
12807 else
12808 GXX=no
12809 with_gnu_ld=no
12810 wlarc=
12811 fi
12812
12813 # PORTME: fill in a description of your system's C++ link characteristics
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12816 ld_shlibs_CXX=yes
12817 case $host_os in
12818 aix3*)
12819 # FIXME: insert proper C++ library support
12820 ld_shlibs_CXX=no
12821 ;;
12822 aix[4-9]*)
12823 if test "$host_cpu" = ia64; then
12824 # On IA64, the linker does run time linking by default, so we don't
12825 # have to do anything special.
12826 aix_use_runtimelinking=no
12827 exp_sym_flag='-Bexport'
12828 no_entry_flag=""
12829 else
12830 aix_use_runtimelinking=no
12831
12832 # Test if we are trying to use run time linking or normal
12833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12834 # need to do runtime linking.
12835 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12836 for ld_flag in $LDFLAGS; do
12837 case $ld_flag in
12838 *-brtl*)
12839 aix_use_runtimelinking=yes
12840 break
12841 ;;
12842 esac
12843 done
12844 ;;
12845 esac
12846
12847 exp_sym_flag='-bexport'
12848 no_entry_flag='-bnoentry'
12849 fi
12850
12851 # When large executables or shared objects are built, AIX ld can
12852 # have problems creating the table of contents. If linking a library
12853 # or program results in "error TOC overflow" add -mminimal-toc to
12854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12856
12857 archive_cmds_CXX=''
12858 hardcode_direct_CXX=yes
12859 hardcode_direct_absolute_CXX=yes
12860 hardcode_libdir_separator_CXX=':'
12861 link_all_deplibs_CXX=yes
12862 file_list_spec_CXX='${wl}-f,'
12863
12864 if test "$GXX" = yes; then
12865 case $host_os in aix4.[012]|aix4.[012].*)
12866 # We only want to do this on AIX 4.2 and lower, the check
12867 # below for broken collect2 doesn't work under 4.3+
12868 collect2name=`${CC} -print-prog-name=collect2`
12869 if test -f "$collect2name" &&
12870 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12871 then
12872 # We have reworked collect2
12873 :
12874 else
12875 # We have old collect2
12876 hardcode_direct_CXX=unsupported
12877 # It fails to find uninstalled libraries when the uninstalled
12878 # path is not listed in the libpath. Setting hardcode_minus_L
12879 # to unsupported forces relinking
12880 hardcode_minus_L_CXX=yes
12881 hardcode_libdir_flag_spec_CXX='-L$libdir'
12882 hardcode_libdir_separator_CXX=
12883 fi
12884 esac
12885 shared_flag='-shared'
12886 if test "$aix_use_runtimelinking" = yes; then
12887 shared_flag="$shared_flag "'${wl}-G'
12888 fi
12889 else
12890 # not using gcc
12891 if test "$host_cpu" = ia64; then
12892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12893 # chokes on -Wl,-G. The following line is correct:
12894 shared_flag='-G'
12895 else
12896 if test "$aix_use_runtimelinking" = yes; then
12897 shared_flag='${wl}-G'
12898 else
12899 shared_flag='${wl}-bM:SRE'
12900 fi
12901 fi
12902 fi
12903
12904 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12905 # It seems that -bexpall does not export symbols beginning with
12906 # underscore (_), so it is better to generate a list of symbols to
12907 # export.
12908 always_export_symbols_CXX=yes
12909 if test "$aix_use_runtimelinking" = yes; then
12910 # Warning - without using the other runtime loading flags (-brtl),
12911 # -berok will link without error, but may produce a broken library.
12912 allow_undefined_flag_CXX='-berok'
12913 # Determine the default libpath from the value encoded in an empty
12914 # executable.
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917
12918 int
12919 main ()
12920 {
12921
12922 ;
12923 return 0;
12924 }
12925 _ACEOF
12926 if ac_fn_cxx_try_link "$LINENO"; then :
12927
12928 lt_aix_libpath_sed='
12929 /Import File Strings/,/^$/ {
12930 /^0/ {
12931 s/^0 *\(.*\)$/\1/
12932 p
12933 }
12934 }'
12935 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12936 # Check for a 64-bit object if we didn't find anything.
12937 if test -z "$aix_libpath"; then
12938 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12939 fi
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12944
12945 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12946
12947 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"
12948 else
12949 if test "$host_cpu" = ia64; then
12950 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12951 allow_undefined_flag_CXX="-z nodefs"
12952 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"
12953 else
12954 # Determine the default libpath from the value encoded in an
12955 # empty executable.
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958
12959 int
12960 main ()
12961 {
12962
12963 ;
12964 return 0;
12965 }
12966 _ACEOF
12967 if ac_fn_cxx_try_link "$LINENO"; then :
12968
12969 lt_aix_libpath_sed='
12970 /Import File Strings/,/^$/ {
12971 /^0/ {
12972 s/^0 *\(.*\)$/\1/
12973 p
12974 }
12975 }'
12976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12977 # Check for a 64-bit object if we didn't find anything.
12978 if test -z "$aix_libpath"; then
12979 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12980 fi
12981 fi
12982 rm -f core conftest.err conftest.$ac_objext \
12983 conftest$ac_exeext conftest.$ac_ext
12984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12985
12986 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12987 # Warning - without using the other run time loading flags,
12988 # -berok will link without error, but may produce a broken library.
12989 no_undefined_flag_CXX=' ${wl}-bernotok'
12990 allow_undefined_flag_CXX=' ${wl}-berok'
12991 if test "$with_gnu_ld" = yes; then
12992 # We only use this code for GNU lds that support --whole-archive.
12993 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12994 else
12995 # Exported symbols can be pulled into shared objects from archives
12996 whole_archive_flag_spec_CXX='$convenience'
12997 fi
12998 archive_cmds_need_lc_CXX=yes
12999 # This is similar to how AIX traditionally builds its shared
13000 # libraries.
13001 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'
13002 fi
13003 fi
13004 ;;
13005
13006 beos*)
13007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13008 allow_undefined_flag_CXX=unsupported
13009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13010 # support --undefined. This deserves some investigation. FIXME
13011 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13012 else
13013 ld_shlibs_CXX=no
13014 fi
13015 ;;
13016
13017 chorus*)
13018 case $cc_basename in
13019 *)
13020 # FIXME: insert proper C++ library support
13021 ld_shlibs_CXX=no
13022 ;;
13023 esac
13024 ;;
13025
13026 cygwin* | mingw* | pw32* | cegcc*)
13027 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13028 # as there is no search path for DLLs.
13029 hardcode_libdir_flag_spec_CXX='-L$libdir'
13030 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13031 allow_undefined_flag_CXX=unsupported
13032 always_export_symbols_CXX=no
13033 enable_shared_with_static_runtimes_CXX=yes
13034
13035 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13036 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'
13037 # If the export-symbols file already is a .def file (1st line
13038 # is EXPORTS), use it as is; otherwise, prepend...
13039 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13040 cp $export_symbols $output_objdir/$soname.def;
13041 else
13042 echo EXPORTS > $output_objdir/$soname.def;
13043 cat $export_symbols >> $output_objdir/$soname.def;
13044 fi~
13045 $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'
13046 else
13047 ld_shlibs_CXX=no
13048 fi
13049 ;;
13050 darwin* | rhapsody*)
13051
13052
13053 archive_cmds_need_lc_CXX=no
13054 hardcode_direct_CXX=no
13055 hardcode_automatic_CXX=yes
13056 hardcode_shlibpath_var_CXX=unsupported
13057 if test "$lt_cv_ld_force_load" = "yes"; then
13058 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\"`'
13059 else
13060 whole_archive_flag_spec_CXX=''
13061 fi
13062 link_all_deplibs_CXX=yes
13063 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13064 case $cc_basename in
13065 ifort*) _lt_dar_can_shared=yes ;;
13066 *) _lt_dar_can_shared=$GCC ;;
13067 esac
13068 if test "$_lt_dar_can_shared" = "yes"; then
13069 output_verbose_link_cmd=func_echo_all
13070 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}"
13071 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13072 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}"
13073 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}"
13074 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13075 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}"
13076 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}"
13077 fi
13078
13079 else
13080 ld_shlibs_CXX=no
13081 fi
13082
13083 ;;
13084
13085 dgux*)
13086 case $cc_basename in
13087 ec++*)
13088 # FIXME: insert proper C++ library support
13089 ld_shlibs_CXX=no
13090 ;;
13091 ghcx*)
13092 # Green Hills C++ Compiler
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13095 ;;
13096 *)
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13099 ;;
13100 esac
13101 ;;
13102
13103 freebsd2.*)
13104 # C++ shared libraries reported to be fairly broken before
13105 # switch to ELF
13106 ld_shlibs_CXX=no
13107 ;;
13108
13109 freebsd-elf*)
13110 archive_cmds_need_lc_CXX=no
13111 ;;
13112
13113 freebsd* | dragonfly*)
13114 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13115 # conventions
13116 ld_shlibs_CXX=yes
13117 ;;
13118
13119 gnu*)
13120 ;;
13121
13122 haiku*)
13123 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13124 link_all_deplibs_CXX=yes
13125 ;;
13126
13127 hpux9*)
13128 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13129 hardcode_libdir_separator_CXX=:
13130 export_dynamic_flag_spec_CXX='${wl}-E'
13131 hardcode_direct_CXX=yes
13132 hardcode_minus_L_CXX=yes # Not in the search PATH,
13133 # but as the default
13134 # location of the library.
13135
13136 case $cc_basename in
13137 CC*)
13138 # FIXME: insert proper C++ library support
13139 ld_shlibs_CXX=no
13140 ;;
13141 aCC*)
13142 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'
13143 # Commands to make compiler produce verbose output that lists
13144 # what "hidden" libraries, object files and flags are used when
13145 # linking a shared library.
13146 #
13147 # There doesn't appear to be a way to prevent this compiler from
13148 # explicitly linking system object files so we need to strip them
13149 # from the output so that they don't get included in the library
13150 # dependencies.
13151 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"'
13152 ;;
13153 *)
13154 if test "$GXX" = yes; then
13155 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13156 else
13157 # FIXME: insert proper C++ library support
13158 ld_shlibs_CXX=no
13159 fi
13160 ;;
13161 esac
13162 ;;
13163
13164 hpux10*|hpux11*)
13165 if test $with_gnu_ld = no; then
13166 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13167 hardcode_libdir_separator_CXX=:
13168
13169 case $host_cpu in
13170 hppa*64*|ia64*)
13171 ;;
13172 *)
13173 export_dynamic_flag_spec_CXX='${wl}-E'
13174 ;;
13175 esac
13176 fi
13177 case $host_cpu in
13178 hppa*64*|ia64*)
13179 hardcode_direct_CXX=no
13180 hardcode_shlibpath_var_CXX=no
13181 ;;
13182 *)
13183 hardcode_direct_CXX=yes
13184 hardcode_direct_absolute_CXX=yes
13185 hardcode_minus_L_CXX=yes # Not in the search PATH,
13186 # but as the default
13187 # location of the library.
13188 ;;
13189 esac
13190
13191 case $cc_basename in
13192 CC*)
13193 # FIXME: insert proper C++ library support
13194 ld_shlibs_CXX=no
13195 ;;
13196 aCC*)
13197 case $host_cpu in
13198 hppa*64*)
13199 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13200 ;;
13201 ia64*)
13202 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13203 ;;
13204 *)
13205 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13206 ;;
13207 esac
13208 # Commands to make compiler produce verbose output that lists
13209 # what "hidden" libraries, object files and flags are used when
13210 # linking a shared library.
13211 #
13212 # There doesn't appear to be a way to prevent this compiler from
13213 # explicitly linking system object files so we need to strip them
13214 # from the output so that they don't get included in the library
13215 # dependencies.
13216 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"'
13217 ;;
13218 *)
13219 if test "$GXX" = yes; then
13220 if test $with_gnu_ld = no; then
13221 case $host_cpu in
13222 hppa*64*)
13223 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13224 ;;
13225 ia64*)
13226 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13227 ;;
13228 *)
13229 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13230 ;;
13231 esac
13232 fi
13233 else
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13236 fi
13237 ;;
13238 esac
13239 ;;
13240
13241 interix[3-9]*)
13242 hardcode_direct_CXX=no
13243 hardcode_shlibpath_var_CXX=no
13244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13245 export_dynamic_flag_spec_CXX='${wl}-E'
13246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13247 # Instead, shared libraries are loaded at an image base (0x10000000 by
13248 # default) and relocated if they conflict, which is a slow very memory
13249 # consuming and fragmenting process. To avoid this, we pick a random,
13250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13252 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'
13253 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'
13254 ;;
13255 irix5* | irix6*)
13256 case $cc_basename in
13257 CC*)
13258 # SGI C++
13259 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'
13260
13261 # Archives containing C++ object files must be created using
13262 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13263 # necessary to make sure instantiated templates are included
13264 # in the archive.
13265 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13266 ;;
13267 *)
13268 if test "$GXX" = yes; then
13269 if test "$with_gnu_ld" = no; then
13270 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13271 else
13272 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13273 fi
13274 fi
13275 link_all_deplibs_CXX=yes
13276 ;;
13277 esac
13278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13279 hardcode_libdir_separator_CXX=:
13280 inherit_rpath_CXX=yes
13281 ;;
13282
13283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13284 case $cc_basename in
13285 KCC*)
13286 # Kuck and Associates, Inc. (KAI) C++ Compiler
13287
13288 # KCC will only create a shared library if the output file
13289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13290 # to its proper name (with version) after linking.
13291 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'
13292 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'
13293 # Commands to make compiler produce verbose output that lists
13294 # what "hidden" libraries, object files and flags are used when
13295 # linking a shared library.
13296 #
13297 # There doesn't appear to be a way to prevent this compiler from
13298 # explicitly linking system object files so we need to strip them
13299 # from the output so that they don't get included in the library
13300 # dependencies.
13301 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"'
13302
13303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13305
13306 # Archives containing C++ object files must be created using
13307 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13308 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13309 ;;
13310 icpc* | ecpc* )
13311 # Intel C++
13312 with_gnu_ld=yes
13313 # version 8.0 and above of icpc choke on multiply defined symbols
13314 # if we add $predep_objects and $postdep_objects, however 7.1 and
13315 # earlier do not add the objects themselves.
13316 case `$CC -V 2>&1` in
13317 *"Version 7."*)
13318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13319 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'
13320 ;;
13321 *) # Version 8.0 or newer
13322 tmp_idyn=
13323 case $host_cpu in
13324 ia64*) tmp_idyn=' -i_dynamic';;
13325 esac
13326 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13327 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'
13328 ;;
13329 esac
13330 archive_cmds_need_lc_CXX=no
13331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13332 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13333 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13334 ;;
13335 pgCC* | pgcpp*)
13336 # Portland Group C++ compiler
13337 case `$CC -V` in
13338 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13339 prelink_cmds_CXX='tpldir=Template.dir~
13340 rm -rf $tpldir~
13341 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13342 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13343 old_archive_cmds_CXX='tpldir=Template.dir~
13344 rm -rf $tpldir~
13345 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13346 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13347 $RANLIB $oldlib'
13348 archive_cmds_CXX='tpldir=Template.dir~
13349 rm -rf $tpldir~
13350 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13351 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13352 archive_expsym_cmds_CXX='tpldir=Template.dir~
13353 rm -rf $tpldir~
13354 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13355 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13356 ;;
13357 *) # Version 6 and above use weak symbols
13358 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13359 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'
13360 ;;
13361 esac
13362
13363 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13364 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13365 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'
13366 ;;
13367 cxx*)
13368 # Compaq C++
13369 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 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'
13371
13372 runpath_var=LD_RUN_PATH
13373 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13374 hardcode_libdir_separator_CXX=:
13375
13376 # Commands to make compiler produce verbose output that lists
13377 # what "hidden" libraries, object files and flags are used when
13378 # linking a shared library.
13379 #
13380 # There doesn't appear to be a way to prevent this compiler from
13381 # explicitly linking system object files so we need to strip them
13382 # from the output so that they don't get included in the library
13383 # dependencies.
13384 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'
13385 ;;
13386 xl* | mpixl* | bgxl*)
13387 # IBM XL 8.0 on PPC, with GNU ld
13388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13390 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13391 if test "x$supports_anon_versioning" = xyes; then
13392 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13394 echo "local: *; };" >> $output_objdir/$libname.ver~
13395 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13396 fi
13397 ;;
13398 *)
13399 case `$CC -V 2>&1 | sed 5q` in
13400 *Sun\ C*)
13401 # Sun C++ 5.9
13402 no_undefined_flag_CXX=' -zdefs'
13403 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13404 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'
13405 hardcode_libdir_flag_spec_CXX='-R$libdir'
13406 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'
13407 compiler_needs_object_CXX=yes
13408
13409 # Not sure whether something based on
13410 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13411 # would be better.
13412 output_verbose_link_cmd='func_echo_all'
13413
13414 # Archives containing C++ object files must be created using
13415 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13416 # necessary to make sure instantiated templates are included
13417 # in the archive.
13418 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13419 ;;
13420 esac
13421 ;;
13422 esac
13423 ;;
13424
13425 lynxos*)
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13428 ;;
13429
13430 m88k*)
13431 # FIXME: insert proper C++ library support
13432 ld_shlibs_CXX=no
13433 ;;
13434
13435 mvs*)
13436 case $cc_basename in
13437 cxx*)
13438 # FIXME: insert proper C++ library support
13439 ld_shlibs_CXX=no
13440 ;;
13441 *)
13442 # FIXME: insert proper C++ library support
13443 ld_shlibs_CXX=no
13444 ;;
13445 esac
13446 ;;
13447
13448 netbsd*)
13449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13450 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13451 wlarc=
13452 hardcode_libdir_flag_spec_CXX='-R$libdir'
13453 hardcode_direct_CXX=yes
13454 hardcode_shlibpath_var_CXX=no
13455 fi
13456 # Workaround some broken pre-1.5 toolchains
13457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13458 ;;
13459
13460 *nto* | *qnx*)
13461 ld_shlibs_CXX=yes
13462 ;;
13463
13464 openbsd2*)
13465 # C++ shared libraries are fairly broken
13466 ld_shlibs_CXX=no
13467 ;;
13468
13469 openbsd*)
13470 if test -f /usr/libexec/ld.so; then
13471 hardcode_direct_CXX=yes
13472 hardcode_shlibpath_var_CXX=no
13473 hardcode_direct_absolute_CXX=yes
13474 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13477 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13478 export_dynamic_flag_spec_CXX='${wl}-E'
13479 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13480 fi
13481 output_verbose_link_cmd=func_echo_all
13482 else
13483 ld_shlibs_CXX=no
13484 fi
13485 ;;
13486
13487 osf3* | osf4* | osf5*)
13488 case $cc_basename in
13489 KCC*)
13490 # Kuck and Associates, Inc. (KAI) C++ Compiler
13491
13492 # KCC will only create a shared library if the output file
13493 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13494 # to its proper name (with version) after linking.
13495 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'
13496
13497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13498 hardcode_libdir_separator_CXX=:
13499
13500 # Archives containing C++ object files must be created using
13501 # the KAI C++ compiler.
13502 case $host in
13503 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13504 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13505 esac
13506 ;;
13507 RCC*)
13508 # Rational C++ 2.4.1
13509 # FIXME: insert proper C++ library support
13510 ld_shlibs_CXX=no
13511 ;;
13512 cxx*)
13513 case $host in
13514 osf3*)
13515 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13516 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'
13517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13518 ;;
13519 *)
13520 allow_undefined_flag_CXX=' -expect_unresolved \*'
13521 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'
13522 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13523 echo "-hidden">> $lib.exp~
13524 $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~
13525 $RM $lib.exp'
13526 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13527 ;;
13528 esac
13529
13530 hardcode_libdir_separator_CXX=:
13531
13532 # Commands to make compiler produce verbose output that lists
13533 # what "hidden" libraries, object files and flags are used when
13534 # linking a shared library.
13535 #
13536 # There doesn't appear to be a way to prevent this compiler from
13537 # explicitly linking system object files so we need to strip them
13538 # from the output so that they don't get included in the library
13539 # dependencies.
13540 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"'
13541 ;;
13542 *)
13543 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13544 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13545 case $host in
13546 osf3*)
13547 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'
13548 ;;
13549 *)
13550 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13551 ;;
13552 esac
13553
13554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13555 hardcode_libdir_separator_CXX=:
13556
13557 # Commands to make compiler produce verbose output that lists
13558 # what "hidden" libraries, object files and flags are used when
13559 # linking a shared library.
13560 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13561
13562 else
13563 # FIXME: insert proper C++ library support
13564 ld_shlibs_CXX=no
13565 fi
13566 ;;
13567 esac
13568 ;;
13569
13570 psos*)
13571 # FIXME: insert proper C++ library support
13572 ld_shlibs_CXX=no
13573 ;;
13574
13575 sunos4*)
13576 case $cc_basename in
13577 CC*)
13578 # Sun C++ 4.x
13579 # FIXME: insert proper C++ library support
13580 ld_shlibs_CXX=no
13581 ;;
13582 lcc*)
13583 # Lucid
13584 # FIXME: insert proper C++ library support
13585 ld_shlibs_CXX=no
13586 ;;
13587 *)
13588 # FIXME: insert proper C++ library support
13589 ld_shlibs_CXX=no
13590 ;;
13591 esac
13592 ;;
13593
13594 solaris*)
13595 case $cc_basename in
13596 CC*)
13597 # Sun C++ 4.2, 5.x and Centerline C++
13598 archive_cmds_need_lc_CXX=yes
13599 no_undefined_flag_CXX=' -zdefs'
13600 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13601 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13602 $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'
13603
13604 hardcode_libdir_flag_spec_CXX='-R$libdir'
13605 hardcode_shlibpath_var_CXX=no
13606 case $host_os in
13607 solaris2.[0-5] | solaris2.[0-5].*) ;;
13608 *)
13609 # The compiler driver will combine and reorder linker options,
13610 # but understands `-z linker_flag'.
13611 # Supported since Solaris 2.6 (maybe 2.5.1?)
13612 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13613 ;;
13614 esac
13615 link_all_deplibs_CXX=yes
13616
13617 output_verbose_link_cmd='func_echo_all'
13618
13619 # Archives containing C++ object files must be created using
13620 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13621 # necessary to make sure instantiated templates are included
13622 # in the archive.
13623 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13624 ;;
13625 gcx*)
13626 # Green Hills C++ Compiler
13627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13628
13629 # The C++ compiler must be used to create the archive.
13630 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13631 ;;
13632 *)
13633 # GNU C++ compiler with Solaris linker
13634 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13635 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13636 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13637 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13638 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13639 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13640
13641 # Commands to make compiler produce verbose output that lists
13642 # what "hidden" libraries, object files and flags are used when
13643 # linking a shared library.
13644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13645 else
13646 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13647 # platform.
13648 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13649 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13650 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13651
13652 # Commands to make compiler produce verbose output that lists
13653 # what "hidden" libraries, object files and flags are used when
13654 # linking a shared library.
13655 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13656 fi
13657
13658 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13659 case $host_os in
13660 solaris2.[0-5] | solaris2.[0-5].*) ;;
13661 *)
13662 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13663 ;;
13664 esac
13665 fi
13666 ;;
13667 esac
13668 ;;
13669
13670 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13671 no_undefined_flag_CXX='${wl}-z,text'
13672 archive_cmds_need_lc_CXX=no
13673 hardcode_shlibpath_var_CXX=no
13674 runpath_var='LD_RUN_PATH'
13675
13676 case $cc_basename in
13677 CC*)
13678 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 ;;
13681 *)
13682 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13684 ;;
13685 esac
13686 ;;
13687
13688 sysv5* | sco3.2v5* | sco5v6*)
13689 # Note: We can NOT use -z defs as we might desire, because we do not
13690 # link with -lc, and that would cause any symbols used from libc to
13691 # always be unresolved, which means just about no library would
13692 # ever link correctly. If we're not using GNU ld we use -z text
13693 # though, which does catch some bad symbols but isn't as heavy-handed
13694 # as -z defs.
13695 no_undefined_flag_CXX='${wl}-z,text'
13696 allow_undefined_flag_CXX='${wl}-z,nodefs'
13697 archive_cmds_need_lc_CXX=no
13698 hardcode_shlibpath_var_CXX=no
13699 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13700 hardcode_libdir_separator_CXX=':'
13701 link_all_deplibs_CXX=yes
13702 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13703 runpath_var='LD_RUN_PATH'
13704
13705 case $cc_basename in
13706 CC*)
13707 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13708 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13709 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13710 '"$old_archive_cmds_CXX"
13711 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13712 '"$reload_cmds_CXX"
13713 ;;
13714 *)
13715 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13716 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13717 ;;
13718 esac
13719 ;;
13720
13721 tandem*)
13722 case $cc_basename in
13723 NCC*)
13724 # NonStop-UX NCC 3.20
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13727 ;;
13728 *)
13729 # FIXME: insert proper C++ library support
13730 ld_shlibs_CXX=no
13731 ;;
13732 esac
13733 ;;
13734
13735 vxworks*)
13736 # FIXME: insert proper C++ library support
13737 ld_shlibs_CXX=no
13738 ;;
13739
13740 *)
13741 # FIXME: insert proper C++ library support
13742 ld_shlibs_CXX=no
13743 ;;
13744 esac
13745
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13747 $as_echo "$ld_shlibs_CXX" >&6; }
13748 test "$ld_shlibs_CXX" = no && can_build_shared=no
13749
13750 GCC_CXX="$GXX"
13751 LD_CXX="$LD"
13752
13753 ## CAVEAT EMPTOR:
13754 ## There is no encapsulation within the following macros, do not change
13755 ## the running order or otherwise move them around unless you know exactly
13756 ## what you are doing...
13757 # Dependencies to place before and after the object being linked:
13758 predep_objects_CXX=
13759 postdep_objects_CXX=
13760 predeps_CXX=
13761 postdeps_CXX=
13762 compiler_lib_search_path_CXX=
13763
13764 cat > conftest.$ac_ext <<_LT_EOF
13765 class Foo
13766 {
13767 public:
13768 Foo (void) { a = 0; }
13769 private:
13770 int a;
13771 };
13772 _LT_EOF
13773
13774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13775 (eval $ac_compile) 2>&5
13776 ac_status=$?
13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 test $ac_status = 0; }; then
13779 # Parse the compiler output and extract the necessary
13780 # objects, libraries and library flags.
13781
13782 # Sentinel used to keep track of whether or not we are before
13783 # the conftest object file.
13784 pre_test_object_deps_done=no
13785
13786 for p in `eval "$output_verbose_link_cmd"`; do
13787 case $p in
13788
13789 -L* | -R* | -l*)
13790 # Some compilers place space between "-{L,R}" and the path.
13791 # Remove the space.
13792 if test $p = "-L" ||
13793 test $p = "-R"; then
13794 prev=$p
13795 continue
13796 else
13797 prev=
13798 fi
13799
13800 if test "$pre_test_object_deps_done" = no; then
13801 case $p in
13802 -L* | -R*)
13803 # Internal compiler library paths should come after those
13804 # provided the user. The postdeps already come after the
13805 # user supplied libs so there is no need to process them.
13806 if test -z "$compiler_lib_search_path_CXX"; then
13807 compiler_lib_search_path_CXX="${prev}${p}"
13808 else
13809 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13810 fi
13811 ;;
13812 # The "-l" case would never come before the object being
13813 # linked, so don't bother handling this case.
13814 esac
13815 else
13816 if test -z "$postdeps_CXX"; then
13817 postdeps_CXX="${prev}${p}"
13818 else
13819 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13820 fi
13821 fi
13822 ;;
13823
13824 *.$objext)
13825 # This assumes that the test object file only shows up
13826 # once in the compiler output.
13827 if test "$p" = "conftest.$objext"; then
13828 pre_test_object_deps_done=yes
13829 continue
13830 fi
13831
13832 if test "$pre_test_object_deps_done" = no; then
13833 if test -z "$predep_objects_CXX"; then
13834 predep_objects_CXX="$p"
13835 else
13836 predep_objects_CXX="$predep_objects_CXX $p"
13837 fi
13838 else
13839 if test -z "$postdep_objects_CXX"; then
13840 postdep_objects_CXX="$p"
13841 else
13842 postdep_objects_CXX="$postdep_objects_CXX $p"
13843 fi
13844 fi
13845 ;;
13846
13847 *) ;; # Ignore the rest.
13848
13849 esac
13850 done
13851
13852 # Clean up.
13853 rm -f a.out a.exe
13854 else
13855 echo "libtool.m4: error: problem compiling CXX test program"
13856 fi
13857
13858 $RM -f confest.$objext
13859
13860 # PORTME: override above test on systems where it is broken
13861 case $host_os in
13862 interix[3-9]*)
13863 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13864 # hack all around it, let's just trust "g++" to DTRT.
13865 predep_objects_CXX=
13866 postdep_objects_CXX=
13867 postdeps_CXX=
13868 ;;
13869
13870 linux*)
13871 case `$CC -V 2>&1 | sed 5q` in
13872 *Sun\ C*)
13873 # Sun C++ 5.9
13874
13875 # The more standards-conforming stlport4 library is
13876 # incompatible with the Cstd library. Avoid specifying
13877 # it if it's in CXXFLAGS. Ignore libCrun as
13878 # -library=stlport4 depends on it.
13879 case " $CXX $CXXFLAGS " in
13880 *" -library=stlport4 "*)
13881 solaris_use_stlport4=yes
13882 ;;
13883 esac
13884
13885 if test "$solaris_use_stlport4" != yes; then
13886 postdeps_CXX='-library=Cstd -library=Crun'
13887 fi
13888 ;;
13889 esac
13890 ;;
13891
13892 solaris*)
13893 case $cc_basename in
13894 CC*)
13895 # The more standards-conforming stlport4 library is
13896 # incompatible with the Cstd library. Avoid specifying
13897 # it if it's in CXXFLAGS. Ignore libCrun as
13898 # -library=stlport4 depends on it.
13899 case " $CXX $CXXFLAGS " in
13900 *" -library=stlport4 "*)
13901 solaris_use_stlport4=yes
13902 ;;
13903 esac
13904
13905 # Adding this requires a known-good setup of shared libraries for
13906 # Sun compiler versions before 5.6, else PIC objects from an old
13907 # archive will be linked into the output, leading to subtle bugs.
13908 if test "$solaris_use_stlport4" != yes; then
13909 postdeps_CXX='-library=Cstd -library=Crun'
13910 fi
13911 ;;
13912 esac
13913 ;;
13914 esac
13915
13916
13917 case " $postdeps_CXX " in
13918 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13919 esac
13920 compiler_lib_search_dirs_CXX=
13921 if test -n "${compiler_lib_search_path_CXX}"; then
13922 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13923 fi
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955 lt_prog_compiler_wl_CXX=
13956 lt_prog_compiler_pic_CXX=
13957 lt_prog_compiler_static_CXX=
13958
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13960 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13961
13962 # C++ specific cases for pic, static, wl, etc.
13963 if test "$GXX" = yes; then
13964 lt_prog_compiler_wl_CXX='-Wl,'
13965 lt_prog_compiler_static_CXX='-static'
13966
13967 case $host_os in
13968 aix*)
13969 # All AIX code is PIC.
13970 if test "$host_cpu" = ia64; then
13971 # AIX 5 now supports IA64 processor
13972 lt_prog_compiler_static_CXX='-Bstatic'
13973 fi
13974 lt_prog_compiler_pic_CXX='-fPIC'
13975 ;;
13976
13977 amigaos*)
13978 case $host_cpu in
13979 powerpc)
13980 # see comment about AmigaOS4 .so support
13981 lt_prog_compiler_pic_CXX='-fPIC'
13982 ;;
13983 m68k)
13984 # FIXME: we need at least 68020 code to build shared libraries, but
13985 # adding the `-m68020' flag to GCC prevents building anything better,
13986 # like `-m68040'.
13987 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13988 ;;
13989 esac
13990 ;;
13991
13992 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13993 # PIC is the default for these OSes.
13994 ;;
13995 mingw* | cygwin* | os2* | pw32* | cegcc*)
13996 # This hack is so that the source file can tell whether it is being
13997 # built for inclusion in a dll (and should export symbols for example).
13998 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13999 # (--disable-auto-import) libraries
14000 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14001 ;;
14002 darwin* | rhapsody*)
14003 # PIC is the default on this platform
14004 # Common symbols not allowed in MH_DYLIB files
14005 lt_prog_compiler_pic_CXX='-fno-common'
14006 ;;
14007 *djgpp*)
14008 # DJGPP does not support shared libraries at all
14009 lt_prog_compiler_pic_CXX=
14010 ;;
14011 haiku*)
14012 # PIC is the default for Haiku.
14013 # The "-static" flag exists, but is broken.
14014 lt_prog_compiler_static_CXX=
14015 ;;
14016 interix[3-9]*)
14017 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14018 # Instead, we relocate shared libraries at runtime.
14019 ;;
14020 sysv4*MP*)
14021 if test -d /usr/nec; then
14022 lt_prog_compiler_pic_CXX=-Kconform_pic
14023 fi
14024 ;;
14025 hpux*)
14026 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14027 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14028 # sets the default TLS model and affects inlining.
14029 case $host_cpu in
14030 hppa*64*)
14031 ;;
14032 *)
14033 lt_prog_compiler_pic_CXX='-fPIC'
14034 ;;
14035 esac
14036 ;;
14037 *qnx* | *nto*)
14038 # QNX uses GNU C++, but need to define -shared option too, otherwise
14039 # it will coredump.
14040 lt_prog_compiler_pic_CXX='-fPIC -shared'
14041 ;;
14042 *)
14043 lt_prog_compiler_pic_CXX='-fPIC'
14044 ;;
14045 esac
14046 else
14047 case $host_os in
14048 aix[4-9]*)
14049 # All AIX code is PIC.
14050 if test "$host_cpu" = ia64; then
14051 # AIX 5 now supports IA64 processor
14052 lt_prog_compiler_static_CXX='-Bstatic'
14053 else
14054 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14055 fi
14056 ;;
14057 chorus*)
14058 case $cc_basename in
14059 cxch68*)
14060 # Green Hills C++ Compiler
14061 # _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"
14062 ;;
14063 esac
14064 ;;
14065 dgux*)
14066 case $cc_basename in
14067 ec++*)
14068 lt_prog_compiler_pic_CXX='-KPIC'
14069 ;;
14070 ghcx*)
14071 # Green Hills C++ Compiler
14072 lt_prog_compiler_pic_CXX='-pic'
14073 ;;
14074 *)
14075 ;;
14076 esac
14077 ;;
14078 freebsd* | dragonfly*)
14079 # FreeBSD uses GNU C++
14080 ;;
14081 hpux9* | hpux10* | hpux11*)
14082 case $cc_basename in
14083 CC*)
14084 lt_prog_compiler_wl_CXX='-Wl,'
14085 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14086 if test "$host_cpu" != ia64; then
14087 lt_prog_compiler_pic_CXX='+Z'
14088 fi
14089 ;;
14090 aCC*)
14091 lt_prog_compiler_wl_CXX='-Wl,'
14092 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14093 case $host_cpu in
14094 hppa*64*|ia64*)
14095 # +Z the default
14096 ;;
14097 *)
14098 lt_prog_compiler_pic_CXX='+Z'
14099 ;;
14100 esac
14101 ;;
14102 *)
14103 ;;
14104 esac
14105 ;;
14106 interix*)
14107 # This is c89, which is MS Visual C++ (no shared libs)
14108 # Anyone wants to do a port?
14109 ;;
14110 irix5* | irix6* | nonstopux*)
14111 case $cc_basename in
14112 CC*)
14113 lt_prog_compiler_wl_CXX='-Wl,'
14114 lt_prog_compiler_static_CXX='-non_shared'
14115 # CC pic flag -KPIC is the default.
14116 ;;
14117 *)
14118 ;;
14119 esac
14120 ;;
14121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14122 case $cc_basename in
14123 KCC*)
14124 # KAI C++ Compiler
14125 lt_prog_compiler_wl_CXX='--backend -Wl,'
14126 lt_prog_compiler_pic_CXX='-fPIC'
14127 ;;
14128 ecpc* )
14129 # old Intel C++ for x86_64 which still supported -KPIC.
14130 lt_prog_compiler_wl_CXX='-Wl,'
14131 lt_prog_compiler_pic_CXX='-KPIC'
14132 lt_prog_compiler_static_CXX='-static'
14133 ;;
14134 icpc* )
14135 # Intel C++, used to be incompatible with GCC.
14136 # ICC 10 doesn't accept -KPIC any more.
14137 lt_prog_compiler_wl_CXX='-Wl,'
14138 lt_prog_compiler_pic_CXX='-fPIC'
14139 lt_prog_compiler_static_CXX='-static'
14140 ;;
14141 pgCC* | pgcpp*)
14142 # Portland Group C++ compiler
14143 lt_prog_compiler_wl_CXX='-Wl,'
14144 lt_prog_compiler_pic_CXX='-fpic'
14145 lt_prog_compiler_static_CXX='-Bstatic'
14146 ;;
14147 cxx*)
14148 # Compaq C++
14149 # Make sure the PIC flag is empty. It appears that all Alpha
14150 # Linux and Compaq Tru64 Unix objects are PIC.
14151 lt_prog_compiler_pic_CXX=
14152 lt_prog_compiler_static_CXX='-non_shared'
14153 ;;
14154 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14155 # IBM XL 8.0, 9.0 on PPC and BlueGene
14156 lt_prog_compiler_wl_CXX='-Wl,'
14157 lt_prog_compiler_pic_CXX='-qpic'
14158 lt_prog_compiler_static_CXX='-qstaticlink'
14159 ;;
14160 *)
14161 case `$CC -V 2>&1 | sed 5q` in
14162 *Sun\ C*)
14163 # Sun C++ 5.9
14164 lt_prog_compiler_pic_CXX='-KPIC'
14165 lt_prog_compiler_static_CXX='-Bstatic'
14166 lt_prog_compiler_wl_CXX='-Qoption ld '
14167 ;;
14168 esac
14169 ;;
14170 esac
14171 ;;
14172 lynxos*)
14173 ;;
14174 m88k*)
14175 ;;
14176 mvs*)
14177 case $cc_basename in
14178 cxx*)
14179 lt_prog_compiler_pic_CXX='-W c,exportall'
14180 ;;
14181 *)
14182 ;;
14183 esac
14184 ;;
14185 netbsd*)
14186 ;;
14187 *qnx* | *nto*)
14188 # QNX uses GNU C++, but need to define -shared option too, otherwise
14189 # it will coredump.
14190 lt_prog_compiler_pic_CXX='-fPIC -shared'
14191 ;;
14192 osf3* | osf4* | osf5*)
14193 case $cc_basename in
14194 KCC*)
14195 lt_prog_compiler_wl_CXX='--backend -Wl,'
14196 ;;
14197 RCC*)
14198 # Rational C++ 2.4.1
14199 lt_prog_compiler_pic_CXX='-pic'
14200 ;;
14201 cxx*)
14202 # Digital/Compaq C++
14203 lt_prog_compiler_wl_CXX='-Wl,'
14204 # Make sure the PIC flag is empty. It appears that all Alpha
14205 # Linux and Compaq Tru64 Unix objects are PIC.
14206 lt_prog_compiler_pic_CXX=
14207 lt_prog_compiler_static_CXX='-non_shared'
14208 ;;
14209 *)
14210 ;;
14211 esac
14212 ;;
14213 psos*)
14214 ;;
14215 solaris*)
14216 case $cc_basename in
14217 CC*)
14218 # Sun C++ 4.2, 5.x and Centerline C++
14219 lt_prog_compiler_pic_CXX='-KPIC'
14220 lt_prog_compiler_static_CXX='-Bstatic'
14221 lt_prog_compiler_wl_CXX='-Qoption ld '
14222 ;;
14223 gcx*)
14224 # Green Hills C++ Compiler
14225 lt_prog_compiler_pic_CXX='-PIC'
14226 ;;
14227 *)
14228 ;;
14229 esac
14230 ;;
14231 sunos4*)
14232 case $cc_basename in
14233 CC*)
14234 # Sun C++ 4.x
14235 lt_prog_compiler_pic_CXX='-pic'
14236 lt_prog_compiler_static_CXX='-Bstatic'
14237 ;;
14238 lcc*)
14239 # Lucid
14240 lt_prog_compiler_pic_CXX='-pic'
14241 ;;
14242 *)
14243 ;;
14244 esac
14245 ;;
14246 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14247 case $cc_basename in
14248 CC*)
14249 lt_prog_compiler_wl_CXX='-Wl,'
14250 lt_prog_compiler_pic_CXX='-KPIC'
14251 lt_prog_compiler_static_CXX='-Bstatic'
14252 ;;
14253 esac
14254 ;;
14255 tandem*)
14256 case $cc_basename in
14257 NCC*)
14258 # NonStop-UX NCC 3.20
14259 lt_prog_compiler_pic_CXX='-KPIC'
14260 ;;
14261 *)
14262 ;;
14263 esac
14264 ;;
14265 vxworks*)
14266 ;;
14267 *)
14268 lt_prog_compiler_can_build_shared_CXX=no
14269 ;;
14270 esac
14271 fi
14272
14273 case $host_os in
14274 # For platforms which do not support PIC, -DPIC is meaningless:
14275 *djgpp*)
14276 lt_prog_compiler_pic_CXX=
14277 ;;
14278 *)
14279 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14280 ;;
14281 esac
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14283 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14284
14285
14286
14287 #
14288 # Check to make sure the PIC flag actually works.
14289 #
14290 if test -n "$lt_prog_compiler_pic_CXX"; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14292 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14293 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 lt_cv_prog_compiler_pic_works_CXX=no
14297 ac_outfile=conftest.$ac_objext
14298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14299 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14300 # Insert the option either (1) after the last *FLAGS variable, or
14301 # (2) before a word containing "conftest.", or (3) at the end.
14302 # Note that $ac_compile itself does not contain backslashes and begins
14303 # with a dollar sign (not a hyphen), so the echo should work correctly.
14304 # The option is referenced via a variable to avoid confusing sed.
14305 lt_compile=`echo "$ac_compile" | $SED \
14306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14308 -e 's:$: $lt_compiler_flag:'`
14309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14310 (eval "$lt_compile" 2>conftest.err)
14311 ac_status=$?
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 if (exit $ac_status) && test -s "$ac_outfile"; then
14315 # The compiler can only warn and ignore the option if not recognized
14316 # So say no if there are warnings other than the usual output.
14317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14320 lt_cv_prog_compiler_pic_works_CXX=yes
14321 fi
14322 fi
14323 $RM conftest*
14324
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14327 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14328
14329 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14330 case $lt_prog_compiler_pic_CXX in
14331 "" | " "*) ;;
14332 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14333 esac
14334 else
14335 lt_prog_compiler_pic_CXX=
14336 lt_prog_compiler_can_build_shared_CXX=no
14337 fi
14338
14339 fi
14340
14341
14342
14343 #
14344 # Check to make sure the static flag actually works.
14345 #
14346 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14348 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14349 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 lt_cv_prog_compiler_static_works_CXX=no
14353 save_LDFLAGS="$LDFLAGS"
14354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14355 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14357 # The linker can only warn and ignore the option if not recognized
14358 # So say no if there are warnings
14359 if test -s conftest.err; then
14360 # Append any errors to the config.log.
14361 cat conftest.err 1>&5
14362 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14364 if diff conftest.exp conftest.er2 >/dev/null; then
14365 lt_cv_prog_compiler_static_works_CXX=yes
14366 fi
14367 else
14368 lt_cv_prog_compiler_static_works_CXX=yes
14369 fi
14370 fi
14371 $RM -r conftest*
14372 LDFLAGS="$save_LDFLAGS"
14373
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14376 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14377
14378 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14379 :
14380 else
14381 lt_prog_compiler_static_CXX=
14382 fi
14383
14384
14385
14386
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14388 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14389 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14390 $as_echo_n "(cached) " >&6
14391 else
14392 lt_cv_prog_compiler_c_o_CXX=no
14393 $RM -r conftest 2>/dev/null
14394 mkdir conftest
14395 cd conftest
14396 mkdir out
14397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14398
14399 lt_compiler_flag="-o out/conftest2.$ac_objext"
14400 # Insert the option either (1) after the last *FLAGS variable, or
14401 # (2) before a word containing "conftest.", or (3) at the end.
14402 # Note that $ac_compile itself does not contain backslashes and begins
14403 # with a dollar sign (not a hyphen), so the echo should work correctly.
14404 lt_compile=`echo "$ac_compile" | $SED \
14405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14407 -e 's:$: $lt_compiler_flag:'`
14408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14409 (eval "$lt_compile" 2>out/conftest.err)
14410 ac_status=$?
14411 cat out/conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14414 then
14415 # The compiler can only warn and ignore the option if not recognized
14416 # So say no if there are warnings
14417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14418 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14419 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14420 lt_cv_prog_compiler_c_o_CXX=yes
14421 fi
14422 fi
14423 chmod u+w . 2>&5
14424 $RM conftest*
14425 # SGI C++ compiler will create directory out/ii_files/ for
14426 # template instantiation
14427 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14428 $RM out/* && rmdir out
14429 cd ..
14430 $RM -r conftest
14431 $RM conftest*
14432
14433 fi
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14435 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14436
14437
14438
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14440 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14441 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 lt_cv_prog_compiler_c_o_CXX=no
14445 $RM -r conftest 2>/dev/null
14446 mkdir conftest
14447 cd conftest
14448 mkdir out
14449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14450
14451 lt_compiler_flag="-o out/conftest2.$ac_objext"
14452 # Insert the option either (1) after the last *FLAGS variable, or
14453 # (2) before a word containing "conftest.", or (3) at the end.
14454 # Note that $ac_compile itself does not contain backslashes and begins
14455 # with a dollar sign (not a hyphen), so the echo should work correctly.
14456 lt_compile=`echo "$ac_compile" | $SED \
14457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14459 -e 's:$: $lt_compiler_flag:'`
14460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14461 (eval "$lt_compile" 2>out/conftest.err)
14462 ac_status=$?
14463 cat out/conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14466 then
14467 # The compiler can only warn and ignore the option if not recognized
14468 # So say no if there are warnings
14469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14470 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14471 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14472 lt_cv_prog_compiler_c_o_CXX=yes
14473 fi
14474 fi
14475 chmod u+w . 2>&5
14476 $RM conftest*
14477 # SGI C++ compiler will create directory out/ii_files/ for
14478 # template instantiation
14479 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14480 $RM out/* && rmdir out
14481 cd ..
14482 $RM -r conftest
14483 $RM conftest*
14484
14485 fi
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14487 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14488
14489
14490
14491
14492 hard_links="nottested"
14493 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14494 # do not overwrite the value of need_locks provided by the user
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14496 $as_echo_n "checking if we can lock with hard links... " >&6; }
14497 hard_links=yes
14498 $RM conftest*
14499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14500 touch conftest.a
14501 ln conftest.a conftest.b 2>&5 || hard_links=no
14502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14504 $as_echo "$hard_links" >&6; }
14505 if test "$hard_links" = no; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14507 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14508 need_locks=warn
14509 fi
14510 else
14511 need_locks=no
14512 fi
14513
14514
14515
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14517 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14518
14519 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14520 case $host_os in
14521 aix[4-9]*)
14522 # If we're using GNU nm, then we don't want the "-C" option.
14523 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14524 # Also, AIX nm treats weak defined symbols like other global defined
14525 # symbols, whereas GNU nm marks them as "W".
14526 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14527 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'
14528 else
14529 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14530 fi
14531 ;;
14532 pw32*)
14533 export_symbols_cmds_CXX="$ltdll_cmds"
14534 ;;
14535 cygwin* | mingw* | cegcc*)
14536 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14537 ;;
14538 *)
14539 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14540 ;;
14541 esac
14542 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14543
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14545 $as_echo "$ld_shlibs_CXX" >&6; }
14546 test "$ld_shlibs_CXX" = no && can_build_shared=no
14547
14548 with_gnu_ld_CXX=$with_gnu_ld
14549
14550
14551
14552
14553
14554
14555 #
14556 # Do we need to explicitly link libc?
14557 #
14558 case "x$archive_cmds_need_lc_CXX" in
14559 x|xyes)
14560 # Assume -lc should be added
14561 archive_cmds_need_lc_CXX=yes
14562
14563 if test "$enable_shared" = yes && test "$GCC" = yes; then
14564 case $archive_cmds_CXX in
14565 *'~'*)
14566 # FIXME: we may have to deal with multi-command sequences.
14567 ;;
14568 '$CC '*)
14569 # Test whether the compiler implicitly links with -lc since on some
14570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14571 # to ld, don't add -lc before -lgcc.
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14573 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14574 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
14576 else
14577 $RM conftest*
14578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14579
14580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14581 (eval $ac_compile) 2>&5
14582 ac_status=$?
14583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14584 test $ac_status = 0; } 2>conftest.err; then
14585 soname=conftest
14586 lib=conftest
14587 libobjs=conftest.$ac_objext
14588 deplibs=
14589 wl=$lt_prog_compiler_wl_CXX
14590 pic_flag=$lt_prog_compiler_pic_CXX
14591 compiler_flags=-v
14592 linker_flags=-v
14593 verstring=
14594 output_objdir=.
14595 libname=conftest
14596 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14597 allow_undefined_flag_CXX=
14598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14599 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14600 ac_status=$?
14601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14602 test $ac_status = 0; }
14603 then
14604 lt_cv_archive_cmds_need_lc_CXX=no
14605 else
14606 lt_cv_archive_cmds_need_lc_CXX=yes
14607 fi
14608 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14609 else
14610 cat conftest.err 1>&5
14611 fi
14612 $RM conftest*
14613
14614 fi
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14616 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14617 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14618 ;;
14619 esac
14620 fi
14621 ;;
14622 esac
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14688 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14689
14690 library_names_spec=
14691 libname_spec='lib$name'
14692 soname_spec=
14693 shrext_cmds=".so"
14694 postinstall_cmds=
14695 postuninstall_cmds=
14696 finish_cmds=
14697 finish_eval=
14698 shlibpath_var=
14699 shlibpath_overrides_runpath=unknown
14700 version_type=none
14701 dynamic_linker="$host_os ld.so"
14702 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14703 need_lib_prefix=unknown
14704 hardcode_into_libs=no
14705
14706 # when you set need_version to no, make sure it does not cause -set_version
14707 # flags to be left without arguments
14708 need_version=unknown
14709
14710 case $host_os in
14711 aix3*)
14712 version_type=linux
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14714 shlibpath_var=LIBPATH
14715
14716 # AIX 3 has no versioning support, so we append a major version to the name.
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 ;;
14719
14720 aix[4-9]*)
14721 version_type=linux
14722 need_lib_prefix=no
14723 need_version=no
14724 hardcode_into_libs=yes
14725 if test "$host_cpu" = ia64; then
14726 # AIX 5 supports IA64
14727 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 else
14730 # With GCC up to 2.95.x, collect2 would create an import file
14731 # for dependence libraries. The import file would start with
14732 # the line `#! .'. This would cause the generated library to
14733 # depend on `.', always an invalid library. This was fixed in
14734 # development snapshots of GCC prior to 3.0.
14735 case $host_os in
14736 aix4 | aix4.[01] | aix4.[01].*)
14737 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14738 echo ' yes '
14739 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14740 :
14741 else
14742 can_build_shared=no
14743 fi
14744 ;;
14745 esac
14746 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14747 # soname into executable. Probably we can add versioning support to
14748 # collect2, so additional links can be useful in future.
14749 if test "$aix_use_runtimelinking" = yes; then
14750 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14751 # instead of lib<name>.a to let people know that these are not
14752 # typical AIX shared libraries.
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754 else
14755 # We preserve .a as extension for shared libraries through AIX4.2
14756 # and later when we are not doing run time linking.
14757 library_names_spec='${libname}${release}.a $libname.a'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 fi
14760 shlibpath_var=LIBPATH
14761 fi
14762 ;;
14763
14764 amigaos*)
14765 case $host_cpu in
14766 powerpc)
14767 # Since July 2007 AmigaOS4 officially supports .so libraries.
14768 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770 ;;
14771 m68k)
14772 library_names_spec='$libname.ixlibrary $libname.a'
14773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14774 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'
14775 ;;
14776 esac
14777 ;;
14778
14779 beos*)
14780 library_names_spec='${libname}${shared_ext}'
14781 dynamic_linker="$host_os ld.so"
14782 shlibpath_var=LIBRARY_PATH
14783 ;;
14784
14785 bsdi[45]*)
14786 version_type=linux
14787 need_version=no
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14794 # the default ld.so.conf also contains /usr/contrib/lib and
14795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14796 # libtool to hard-code these into programs
14797 ;;
14798
14799 cygwin* | mingw* | pw32* | cegcc*)
14800 version_type=windows
14801 shrext_cmds=".dll"
14802 need_version=no
14803 need_lib_prefix=no
14804
14805 case $GCC,$host_os in
14806 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14807 library_names_spec='$libname.dll.a'
14808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14809 postinstall_cmds='base_file=`basename \${file}`~
14810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14811 dldir=$destdir/`dirname \$dlpath`~
14812 test -d \$dldir || mkdir -p \$dldir~
14813 $install_prog $dir/$dlname \$dldir/$dlname~
14814 chmod a+x \$dldir/$dlname~
14815 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14816 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14817 fi'
14818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14819 dlpath=$dir/\$dldll~
14820 $RM \$dlpath'
14821 shlibpath_overrides_runpath=yes
14822
14823 case $host_os in
14824 cygwin*)
14825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14827
14828 ;;
14829 mingw* | cegcc*)
14830 # MinGW DLLs use traditional 'lib' prefix
14831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14832 ;;
14833 pw32*)
14834 # pw32 DLLs use 'pw' prefix rather than 'lib'
14835 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14836 ;;
14837 esac
14838 ;;
14839
14840 *)
14841 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14842 ;;
14843 esac
14844 dynamic_linker='Win32 ld.exe'
14845 # FIXME: first we should search . and the directory the executable is in
14846 shlibpath_var=PATH
14847 ;;
14848
14849 darwin* | rhapsody*)
14850 dynamic_linker="$host_os dyld"
14851 version_type=darwin
14852 need_lib_prefix=no
14853 need_version=no
14854 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14855 soname_spec='${libname}${release}${major}$shared_ext'
14856 shlibpath_overrides_runpath=yes
14857 shlibpath_var=DYLD_LIBRARY_PATH
14858 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14859
14860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14861 ;;
14862
14863 dgux*)
14864 version_type=linux
14865 need_lib_prefix=no
14866 need_version=no
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 ;;
14871
14872 freebsd* | dragonfly*)
14873 # DragonFly does not have aout. When/if they implement a new
14874 # versioning mechanism, adjust this.
14875 if test -x /usr/bin/objformat; then
14876 objformat=`/usr/bin/objformat`
14877 else
14878 case $host_os in
14879 freebsd[23].*) objformat=aout ;;
14880 *) objformat=elf ;;
14881 esac
14882 fi
14883 version_type=freebsd-$objformat
14884 case $version_type in
14885 freebsd-elf*)
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14887 need_version=no
14888 need_lib_prefix=no
14889 ;;
14890 freebsd-*)
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14892 need_version=yes
14893 ;;
14894 esac
14895 shlibpath_var=LD_LIBRARY_PATH
14896 case $host_os in
14897 freebsd2.*)
14898 shlibpath_overrides_runpath=yes
14899 ;;
14900 freebsd3.[01]* | freebsdelf3.[01]*)
14901 shlibpath_overrides_runpath=yes
14902 hardcode_into_libs=yes
14903 ;;
14904 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14905 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14906 shlibpath_overrides_runpath=no
14907 hardcode_into_libs=yes
14908 ;;
14909 *) # from 4.6 on, and DragonFly
14910 shlibpath_overrides_runpath=yes
14911 hardcode_into_libs=yes
14912 ;;
14913 esac
14914 ;;
14915
14916 gnu*)
14917 version_type=linux
14918 need_lib_prefix=no
14919 need_version=no
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14921 soname_spec='${libname}${release}${shared_ext}$major'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 hardcode_into_libs=yes
14924 ;;
14925
14926 haiku*)
14927 version_type=linux
14928 need_lib_prefix=no
14929 need_version=no
14930 dynamic_linker="$host_os runtime_loader"
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 shlibpath_var=LIBRARY_PATH
14934 shlibpath_overrides_runpath=yes
14935 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14936 hardcode_into_libs=yes
14937 ;;
14938
14939 hpux9* | hpux10* | hpux11*)
14940 # Give a soname corresponding to the major version so that dld.sl refuses to
14941 # link against other versions.
14942 version_type=sunos
14943 need_lib_prefix=no
14944 need_version=no
14945 case $host_cpu in
14946 ia64*)
14947 shrext_cmds='.so'
14948 hardcode_into_libs=yes
14949 dynamic_linker="$host_os dld.so"
14950 shlibpath_var=LD_LIBRARY_PATH
14951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14953 soname_spec='${libname}${release}${shared_ext}$major'
14954 if test "X$HPUX_IA64_MODE" = X32; then
14955 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14956 else
14957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14958 fi
14959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14960 ;;
14961 hppa*64*)
14962 shrext_cmds='.sl'
14963 hardcode_into_libs=yes
14964 dynamic_linker="$host_os dld.sl"
14965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14971 ;;
14972 *)
14973 shrext_cmds='.sl'
14974 dynamic_linker="$host_os dld.sl"
14975 shlibpath_var=SHLIB_PATH
14976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 ;;
14980 esac
14981 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14982 postinstall_cmds='chmod 555 $lib'
14983 # or fails outright, so override atomically:
14984 install_override_mode=555
14985 ;;
14986
14987 interix[3-9]*)
14988 version_type=linux
14989 need_lib_prefix=no
14990 need_version=no
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 shlibpath_overrides_runpath=no
14996 hardcode_into_libs=yes
14997 ;;
14998
14999 irix5* | irix6* | nonstopux*)
15000 case $host_os in
15001 nonstopux*) version_type=nonstopux ;;
15002 *)
15003 if test "$lt_cv_prog_gnu_ld" = yes; then
15004 version_type=linux
15005 else
15006 version_type=irix
15007 fi ;;
15008 esac
15009 need_lib_prefix=no
15010 need_version=no
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15013 case $host_os in
15014 irix5* | nonstopux*)
15015 libsuff= shlibsuff=
15016 ;;
15017 *)
15018 case $LD in # libtool.m4 will add one of these switches to LD
15019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15020 libsuff= shlibsuff= libmagic=32-bit;;
15021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15022 libsuff=32 shlibsuff=N32 libmagic=N32;;
15023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15025 *) libsuff= shlibsuff= libmagic=never-match;;
15026 esac
15027 ;;
15028 esac
15029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15030 shlibpath_overrides_runpath=no
15031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15033 hardcode_into_libs=yes
15034 ;;
15035
15036 # No shared lib support for Linux oldld, aout, or coff.
15037 linux*oldld* | linux*aout* | linux*coff*)
15038 dynamic_linker=no
15039 ;;
15040
15041 # This must be Linux ELF.
15042 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15043 version_type=linux
15044 need_lib_prefix=no
15045 need_version=no
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=no
15051
15052 # Some binutils ld are patched to set DT_RUNPATH
15053 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15054 $as_echo_n "(cached) " >&6
15055 else
15056 lt_cv_shlibpath_overrides_runpath=no
15057 save_LDFLAGS=$LDFLAGS
15058 save_libdir=$libdir
15059 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15060 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15063
15064 int
15065 main ()
15066 {
15067
15068 ;
15069 return 0;
15070 }
15071 _ACEOF
15072 if ac_fn_cxx_try_link "$LINENO"; then :
15073 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15074 lt_cv_shlibpath_overrides_runpath=yes
15075 fi
15076 fi
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LDFLAGS=$save_LDFLAGS
15080 libdir=$save_libdir
15081
15082 fi
15083
15084 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15085
15086 # This implies no fast_install, which is unacceptable.
15087 # Some rework will be needed to allow for fast_install
15088 # before this can be enabled.
15089 hardcode_into_libs=yes
15090
15091 # Append ld.so.conf contents to the search path
15092 if test -f /etc/ld.so.conf; then
15093 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' ' '`
15094 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15095 fi
15096
15097 # We used to test for /lib/ld.so.1 and disable shared libraries on
15098 # powerpc, because MkLinux only supported shared libraries with the
15099 # GNU dynamic linker. Since this was broken with cross compilers,
15100 # most powerpc-linux boxes support dynamic linking these days and
15101 # people can always --disable-shared, the test was removed, and we
15102 # assume the GNU/Linux dynamic linker is in use.
15103 dynamic_linker='GNU/Linux ld.so'
15104 ;;
15105
15106 netbsd*)
15107 version_type=sunos
15108 need_lib_prefix=no
15109 need_version=no
15110 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15113 dynamic_linker='NetBSD (a.out) ld.so'
15114 else
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 dynamic_linker='NetBSD ld.elf_so'
15118 fi
15119 shlibpath_var=LD_LIBRARY_PATH
15120 shlibpath_overrides_runpath=yes
15121 hardcode_into_libs=yes
15122 ;;
15123
15124 newsos6)
15125 version_type=linux
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15127 shlibpath_var=LD_LIBRARY_PATH
15128 shlibpath_overrides_runpath=yes
15129 ;;
15130
15131 *nto* | *qnx*)
15132 version_type=qnx
15133 need_lib_prefix=no
15134 need_version=no
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 shlibpath_overrides_runpath=no
15139 hardcode_into_libs=yes
15140 dynamic_linker='ldqnx.so'
15141 ;;
15142
15143 openbsd*)
15144 version_type=sunos
15145 sys_lib_dlsearch_path_spec="/usr/lib"
15146 need_lib_prefix=no
15147 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15148 case $host_os in
15149 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15150 *) need_version=no ;;
15151 esac
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15156 case $host_os in
15157 openbsd2.[89] | openbsd2.[89].*)
15158 shlibpath_overrides_runpath=no
15159 ;;
15160 *)
15161 shlibpath_overrides_runpath=yes
15162 ;;
15163 esac
15164 else
15165 shlibpath_overrides_runpath=yes
15166 fi
15167 ;;
15168
15169 os2*)
15170 libname_spec='$name'
15171 shrext_cmds=".dll"
15172 need_lib_prefix=no
15173 library_names_spec='$libname${shared_ext} $libname.a'
15174 dynamic_linker='OS/2 ld.exe'
15175 shlibpath_var=LIBPATH
15176 ;;
15177
15178 osf3* | osf4* | osf5*)
15179 version_type=osf
15180 need_lib_prefix=no
15181 need_version=no
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15186 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15187 ;;
15188
15189 rdos*)
15190 dynamic_linker=no
15191 ;;
15192
15193 solaris*)
15194 version_type=linux
15195 need_lib_prefix=no
15196 need_version=no
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 soname_spec='${libname}${release}${shared_ext}$major'
15199 shlibpath_var=LD_LIBRARY_PATH
15200 shlibpath_overrides_runpath=yes
15201 hardcode_into_libs=yes
15202 # ldd complains unless libraries are executable
15203 postinstall_cmds='chmod +x $lib'
15204 ;;
15205
15206 sunos4*)
15207 version_type=sunos
15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15209 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes
15212 if test "$with_gnu_ld" = yes; then
15213 need_lib_prefix=no
15214 fi
15215 need_version=yes
15216 ;;
15217
15218 sysv4 | sysv4.3*)
15219 version_type=linux
15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221 soname_spec='${libname}${release}${shared_ext}$major'
15222 shlibpath_var=LD_LIBRARY_PATH
15223 case $host_vendor in
15224 sni)
15225 shlibpath_overrides_runpath=no
15226 need_lib_prefix=no
15227 runpath_var=LD_RUN_PATH
15228 ;;
15229 siemens)
15230 need_lib_prefix=no
15231 ;;
15232 motorola)
15233 need_lib_prefix=no
15234 need_version=no
15235 shlibpath_overrides_runpath=no
15236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15237 ;;
15238 esac
15239 ;;
15240
15241 sysv4*MP*)
15242 if test -d /usr/nec ;then
15243 version_type=linux
15244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15245 soname_spec='$libname${shared_ext}.$major'
15246 shlibpath_var=LD_LIBRARY_PATH
15247 fi
15248 ;;
15249
15250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15251 version_type=freebsd-elf
15252 need_lib_prefix=no
15253 need_version=no
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15255 soname_spec='${libname}${release}${shared_ext}$major'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes
15258 hardcode_into_libs=yes
15259 if test "$with_gnu_ld" = yes; then
15260 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15261 else
15262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15263 case $host_os in
15264 sco3.2v5*)
15265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15266 ;;
15267 esac
15268 fi
15269 sys_lib_dlsearch_path_spec='/usr/lib'
15270 ;;
15271
15272 tpf*)
15273 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15274 version_type=linux
15275 need_lib_prefix=no
15276 need_version=no
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=no
15280 hardcode_into_libs=yes
15281 ;;
15282
15283 uts4*)
15284 version_type=linux
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15286 soname_spec='${libname}${release}${shared_ext}$major'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 ;;
15289
15290 *)
15291 dynamic_linker=no
15292 ;;
15293 esac
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15295 $as_echo "$dynamic_linker" >&6; }
15296 test "$dynamic_linker" = no && can_build_shared=no
15297
15298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15299 if test "$GCC" = yes; then
15300 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15301 fi
15302
15303 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15304 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15305 fi
15306 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15307 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15308 fi
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15348 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15349 hardcode_action_CXX=
15350 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15351 test -n "$runpath_var_CXX" ||
15352 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15353
15354 # We can hardcode non-existent directories.
15355 if test "$hardcode_direct_CXX" != no &&
15356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15357 # have to relink, otherwise we might link with an installed library
15358 # when we should be linking with a yet-to-be-installed one
15359 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15360 test "$hardcode_minus_L_CXX" != no; then
15361 # Linking always hardcodes the temporary library directory.
15362 hardcode_action_CXX=relink
15363 else
15364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15365 hardcode_action_CXX=immediate
15366 fi
15367 else
15368 # We cannot hardcode anything, or else we can only hardcode existing
15369 # directories.
15370 hardcode_action_CXX=unsupported
15371 fi
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15373 $as_echo "$hardcode_action_CXX" >&6; }
15374
15375 if test "$hardcode_action_CXX" = relink ||
15376 test "$inherit_rpath_CXX" = yes; then
15377 # Fast installation is not supported
15378 enable_fast_install=no
15379 elif test "$shlibpath_overrides_runpath" = yes ||
15380 test "$enable_shared" = no; then
15381 # Fast installation is not necessary
15382 enable_fast_install=needless
15383 fi
15384
15385
15386
15387
15388
15389
15390
15391 fi # test -n "$compiler"
15392
15393 CC=$lt_save_CC
15394 LDCXX=$LD
15395 LD=$lt_save_LD
15396 GCC=$lt_save_GCC
15397 with_gnu_ld=$lt_save_with_gnu_ld
15398 lt_cv_path_LDCXX=$lt_cv_path_LD
15399 lt_cv_path_LD=$lt_save_path_LD
15400 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15401 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15402 fi # test "$_lt_caught_CXX_error" != yes
15403
15404 ac_ext=c
15405 ac_cpp='$CPP $CPPFLAGS'
15406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422 ac_config_commands="$ac_config_commands libtool"
15423
15424
15425
15426
15427 # Only expand once:
15428
15429
15430
15431
15432
15433 case $host in
15434 *-cygwin* | *-mingw*)
15435 # 'host' will be top-level target in the case of a target lib,
15436 # we must compare to with_cross_host to decide if this is a native
15437 # or cross-compiler and select where to install dlls appropriately.
15438 if test -n "$with_cross_host" &&
15439 test x"$with_cross_host" != x"no"; then
15440 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15441 else
15442 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15443 fi
15444 ;;
15445 *)
15446 lt_host_flags=
15447 ;;
15448 esac
15449
15450
15451
15452
15453
15454
15455 # For libtool versioning info, format is CURRENT:REVISION:AGE
15456 libtool_VERSION=1:0:0
15457
15458
15459 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15460
15461 # Add CET specific flags if Intel CET is enabled.
15462 # Check whether --enable-cet was given.
15463 if test "${enable_cet+set}" = set; then :
15464 enableval=$enable_cet;
15465 case "$enableval" in
15466 yes|no|auto) ;;
15467 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
15468 esac
15469
15470 else
15471 enable_cet=no
15472 fi
15473
15474
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15476 $as_echo_n "checking for CET support... " >&6; }
15477
15478 case "$host" in
15479 i[34567]86-*-linux* | x86_64-*-linux*)
15480 case "$enable_cet" in
15481 auto)
15482 # Check if target supports multi-byte NOPs
15483 # and if assembler supports CET insn.
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486
15487 int
15488 main ()
15489 {
15490
15491 #if !defined(__SSE2__)
15492 #error target does not support multi-byte NOPs
15493 #else
15494 asm ("setssbsy");
15495 #endif
15496
15497 ;
15498 return 0;
15499 }
15500 _ACEOF
15501 if ac_fn_c_try_compile "$LINENO"; then :
15502 enable_cet=yes
15503 else
15504 enable_cet=no
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 ;;
15508 yes)
15509 # Check if assembler supports CET.
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15512
15513 int
15514 main ()
15515 {
15516 asm ("setssbsy");
15517 ;
15518 return 0;
15519 }
15520 _ACEOF
15521 if ac_fn_c_try_compile "$LINENO"; then :
15522
15523 else
15524 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
15525 fi
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527 ;;
15528 esac
15529 ;;
15530 *)
15531 enable_cet=no
15532 ;;
15533 esac
15534 if test x$enable_cet = xyes; then
15535 CET_FLAGS="-fcf-protection -mshstk"
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15537 $as_echo "yes" >&6; }
15538 else
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15541 fi
15542
15543 XCFLAGS="$XCFLAGS $CET_FLAGS"
15544
15545
15546
15547 if test "${multilib}" = "yes"; then
15548 multilib_arg="--enable-multilib"
15549 else
15550 multilib_arg=
15551 fi
15552
15553 ac_config_files="$ac_config_files Makefile"
15554
15555
15556 if test "x$VTV_SUPPORTED" = "xyes"; then
15557 ac_config_files="$ac_config_files testsuite/Makefile"
15558
15559 fi
15560
15561 case "$target_os" in
15562 cygwin*|mingw32*)
15563 vtv_cygmin="yes"
15564 ;;
15565 *)
15566 vtv_cygmin="no"
15567 ;;
15568 esac
15569
15570 if test $vtv_cygmin = yes; then
15571 VTV_CYGMIN_TRUE=
15572 VTV_CYGMIN_FALSE='#'
15573 else
15574 VTV_CYGMIN_TRUE='#'
15575 VTV_CYGMIN_FALSE=
15576 fi
15577
15578
15579 for ac_func in _obstack_begin
15580 do :
15581 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15582 if test "x$ac_cv_func__obstack_begin" = x""yes; then :
15583 cat >>confdefs.h <<_ACEOF
15584 #define HAVE__OBSTACK_BEGIN 1
15585 _ACEOF
15586
15587 fi
15588 done
15589
15590 if test $ac_cv_func__obstack_begin = no; then
15591 VTV_NO_OBSTACK_TRUE=
15592 VTV_NO_OBSTACK_FALSE='#'
15593 else
15594 VTV_NO_OBSTACK_TRUE='#'
15595 VTV_NO_OBSTACK_FALSE=
15596 fi
15597
15598
15599 # Determine what GCC version number to use in filesystem paths.
15600
15601 get_gcc_base_ver="cat"
15602
15603 # Check whether --with-gcc-major-version-only was given.
15604 if test "${with_gcc_major_version_only+set}" = set; then :
15605 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15606 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
15607 fi
15608
15609 fi
15610
15611
15612
15613
15614 cat >confcache <<\_ACEOF
15615 # This file is a shell script that caches the results of configure
15616 # tests run on this system so they can be shared between configure
15617 # scripts and configure runs, see configure's option --config-cache.
15618 # It is not useful on other systems. If it contains results you don't
15619 # want to keep, you may remove or edit it.
15620 #
15621 # config.status only pays attention to the cache file if you give it
15622 # the --recheck option to rerun configure.
15623 #
15624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15626 # following values.
15627
15628 _ACEOF
15629
15630 # The following way of writing the cache mishandles newlines in values,
15631 # but we know of no workaround that is simple, portable, and efficient.
15632 # So, we kill variables containing newlines.
15633 # Ultrix sh set writes to stderr and can't be redirected directly,
15634 # and sets the high bit in the cache file unless we assign to the vars.
15635 (
15636 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15637 eval ac_val=\$$ac_var
15638 case $ac_val in #(
15639 *${as_nl}*)
15640 case $ac_var in #(
15641 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15642 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15643 esac
15644 case $ac_var in #(
15645 _ | IFS | as_nl) ;; #(
15646 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15647 *) { eval $ac_var=; unset $ac_var;} ;;
15648 esac ;;
15649 esac
15650 done
15651
15652 (set) 2>&1 |
15653 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15654 *${as_nl}ac_space=\ *)
15655 # `set' does not quote correctly, so add quotes: double-quote
15656 # substitution turns \\\\ into \\, and sed turns \\ into \.
15657 sed -n \
15658 "s/'/'\\\\''/g;
15659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15660 ;; #(
15661 *)
15662 # `set' quotes correctly as required by POSIX, so do not add quotes.
15663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15664 ;;
15665 esac |
15666 sort
15667 ) |
15668 sed '
15669 /^ac_cv_env_/b end
15670 t clear
15671 :clear
15672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15673 t end
15674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15675 :end' >>confcache
15676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15677 if test -w "$cache_file"; then
15678 test "x$cache_file" != "x/dev/null" &&
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15680 $as_echo "$as_me: updating cache $cache_file" >&6;}
15681 cat confcache >$cache_file
15682 else
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15684 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15685 fi
15686 fi
15687 rm -f confcache
15688
15689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15690 # Let make expand exec_prefix.
15691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15692
15693 # Transform confdefs.h into DEFS.
15694 # Protect against shell expansion while executing Makefile rules.
15695 # Protect against Makefile macro expansion.
15696 #
15697 # If the first sed substitution is executed (which looks for macros that
15698 # take arguments), then branch to the quote section. Otherwise,
15699 # look for a macro that doesn't take arguments.
15700 ac_script='
15701 :mline
15702 /\\$/{
15703 N
15704 s,\\\n,,
15705 b mline
15706 }
15707 t clear
15708 :clear
15709 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15710 t quote
15711 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15712 t quote
15713 b any
15714 :quote
15715 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15716 s/\[/\\&/g
15717 s/\]/\\&/g
15718 s/\$/$$/g
15719 H
15720 :any
15721 ${
15722 g
15723 s/^\n//
15724 s/\n/ /g
15725 p
15726 }
15727 '
15728 DEFS=`sed -n "$ac_script" confdefs.h`
15729
15730
15731 ac_libobjs=
15732 ac_ltlibobjs=
15733 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15734 # 1. Remove the extension, and $U if already installed.
15735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15736 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15738 # will be set to the directory where LIBOBJS objects are built.
15739 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15740 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15741 done
15742 LIBOBJS=$ac_libobjs
15743
15744 LTLIBOBJS=$ac_ltlibobjs
15745
15746
15747 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15748 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750 fi
15751 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15752 as_fn_error "conditional \"AMDEP\" was never defined.
15753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754 fi
15755 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15756 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15758 fi
15759 if test -n "$EXEEXT"; then
15760 am__EXEEXT_TRUE=
15761 am__EXEEXT_FALSE='#'
15762 else
15763 am__EXEEXT_TRUE='#'
15764 am__EXEEXT_FALSE=
15765 fi
15766
15767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15768 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15770 fi
15771 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15772 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15774 fi
15775 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15776 as_fn_error "conditional \"VTV_CYGMIN\" was never defined.
15777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15778 fi
15779 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
15780 as_fn_error "conditional \"VTV_NO_OBSTACK\" was never defined.
15781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15782 fi
15783
15784 : ${CONFIG_STATUS=./config.status}
15785 ac_write_fail=0
15786 ac_clean_files_save=$ac_clean_files
15787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15789 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15790 as_write_fail=0
15791 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15792 #! $SHELL
15793 # Generated by $as_me.
15794 # Run this file to recreate the current configuration.
15795 # Compiler output produced by configure, useful for debugging
15796 # configure, is in config.log if it exists.
15797
15798 debug=false
15799 ac_cs_recheck=false
15800 ac_cs_silent=false
15801
15802 SHELL=\${CONFIG_SHELL-$SHELL}
15803 export SHELL
15804 _ASEOF
15805 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15806 ## -------------------- ##
15807 ## M4sh Initialization. ##
15808 ## -------------------- ##
15809
15810 # Be more Bourne compatible
15811 DUALCASE=1; export DUALCASE # for MKS sh
15812 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15813 emulate sh
15814 NULLCMD=:
15815 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15816 # is contrary to our usage. Disable this feature.
15817 alias -g '${1+"$@"}'='"$@"'
15818 setopt NO_GLOB_SUBST
15819 else
15820 case `(set -o) 2>/dev/null` in #(
15821 *posix*) :
15822 set -o posix ;; #(
15823 *) :
15824 ;;
15825 esac
15826 fi
15827
15828
15829 as_nl='
15830 '
15831 export as_nl
15832 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15833 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15835 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15836 # Prefer a ksh shell builtin over an external printf program on Solaris,
15837 # but without wasting forks for bash or zsh.
15838 if test -z "$BASH_VERSION$ZSH_VERSION" \
15839 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15840 as_echo='print -r --'
15841 as_echo_n='print -rn --'
15842 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15843 as_echo='printf %s\n'
15844 as_echo_n='printf %s'
15845 else
15846 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15847 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15848 as_echo_n='/usr/ucb/echo -n'
15849 else
15850 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15851 as_echo_n_body='eval
15852 arg=$1;
15853 case $arg in #(
15854 *"$as_nl"*)
15855 expr "X$arg" : "X\\(.*\\)$as_nl";
15856 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15857 esac;
15858 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15859 '
15860 export as_echo_n_body
15861 as_echo_n='sh -c $as_echo_n_body as_echo'
15862 fi
15863 export as_echo_body
15864 as_echo='sh -c $as_echo_body as_echo'
15865 fi
15866
15867 # The user is always right.
15868 if test "${PATH_SEPARATOR+set}" != set; then
15869 PATH_SEPARATOR=:
15870 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15871 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15872 PATH_SEPARATOR=';'
15873 }
15874 fi
15875
15876
15877 # IFS
15878 # We need space, tab and new line, in precisely that order. Quoting is
15879 # there to prevent editors from complaining about space-tab.
15880 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15881 # splitting by setting IFS to empty value.)
15882 IFS=" "" $as_nl"
15883
15884 # Find who we are. Look in the path if we contain no directory separator.
15885 case $0 in #((
15886 *[\\/]* ) as_myself=$0 ;;
15887 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15888 for as_dir in $PATH
15889 do
15890 IFS=$as_save_IFS
15891 test -z "$as_dir" && as_dir=.
15892 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15893 done
15894 IFS=$as_save_IFS
15895
15896 ;;
15897 esac
15898 # We did not find ourselves, most probably we were run as `sh COMMAND'
15899 # in which case we are not to be found in the path.
15900 if test "x$as_myself" = x; then
15901 as_myself=$0
15902 fi
15903 if test ! -f "$as_myself"; then
15904 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15905 exit 1
15906 fi
15907
15908 # Unset variables that we do not need and which cause bugs (e.g. in
15909 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15910 # suppresses any "Segmentation fault" message there. '((' could
15911 # trigger a bug in pdksh 5.2.14.
15912 for as_var in BASH_ENV ENV MAIL MAILPATH
15913 do eval test x\${$as_var+set} = xset \
15914 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15915 done
15916 PS1='$ '
15917 PS2='> '
15918 PS4='+ '
15919
15920 # NLS nuisances.
15921 LC_ALL=C
15922 export LC_ALL
15923 LANGUAGE=C
15924 export LANGUAGE
15925
15926 # CDPATH.
15927 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15928
15929
15930 # as_fn_error ERROR [LINENO LOG_FD]
15931 # ---------------------------------
15932 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15933 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15934 # script with status $?, using 1 if that was 0.
15935 as_fn_error ()
15936 {
15937 as_status=$?; test $as_status -eq 0 && as_status=1
15938 if test "$3"; then
15939 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15940 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15941 fi
15942 $as_echo "$as_me: error: $1" >&2
15943 as_fn_exit $as_status
15944 } # as_fn_error
15945
15946
15947 # as_fn_set_status STATUS
15948 # -----------------------
15949 # Set $? to STATUS, without forking.
15950 as_fn_set_status ()
15951 {
15952 return $1
15953 } # as_fn_set_status
15954
15955 # as_fn_exit STATUS
15956 # -----------------
15957 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15958 as_fn_exit ()
15959 {
15960 set +e
15961 as_fn_set_status $1
15962 exit $1
15963 } # as_fn_exit
15964
15965 # as_fn_unset VAR
15966 # ---------------
15967 # Portably unset VAR.
15968 as_fn_unset ()
15969 {
15970 { eval $1=; unset $1;}
15971 }
15972 as_unset=as_fn_unset
15973 # as_fn_append VAR VALUE
15974 # ----------------------
15975 # Append the text in VALUE to the end of the definition contained in VAR. Take
15976 # advantage of any shell optimizations that allow amortized linear growth over
15977 # repeated appends, instead of the typical quadratic growth present in naive
15978 # implementations.
15979 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15980 eval 'as_fn_append ()
15981 {
15982 eval $1+=\$2
15983 }'
15984 else
15985 as_fn_append ()
15986 {
15987 eval $1=\$$1\$2
15988 }
15989 fi # as_fn_append
15990
15991 # as_fn_arith ARG...
15992 # ------------------
15993 # Perform arithmetic evaluation on the ARGs, and store the result in the
15994 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15995 # must be portable across $(()) and expr.
15996 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15997 eval 'as_fn_arith ()
15998 {
15999 as_val=$(( $* ))
16000 }'
16001 else
16002 as_fn_arith ()
16003 {
16004 as_val=`expr "$@" || test $? -eq 1`
16005 }
16006 fi # as_fn_arith
16007
16008
16009 if expr a : '\(a\)' >/dev/null 2>&1 &&
16010 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16011 as_expr=expr
16012 else
16013 as_expr=false
16014 fi
16015
16016 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16017 as_basename=basename
16018 else
16019 as_basename=false
16020 fi
16021
16022 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16023 as_dirname=dirname
16024 else
16025 as_dirname=false
16026 fi
16027
16028 as_me=`$as_basename -- "$0" ||
16029 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16030 X"$0" : 'X\(//\)$' \| \
16031 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16032 $as_echo X/"$0" |
16033 sed '/^.*\/\([^/][^/]*\)\/*$/{
16034 s//\1/
16035 q
16036 }
16037 /^X\/\(\/\/\)$/{
16038 s//\1/
16039 q
16040 }
16041 /^X\/\(\/\).*/{
16042 s//\1/
16043 q
16044 }
16045 s/.*/./; q'`
16046
16047 # Avoid depending upon Character Ranges.
16048 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16049 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16050 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16051 as_cr_digits='0123456789'
16052 as_cr_alnum=$as_cr_Letters$as_cr_digits
16053
16054 ECHO_C= ECHO_N= ECHO_T=
16055 case `echo -n x` in #(((((
16056 -n*)
16057 case `echo 'xy\c'` in
16058 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16059 xy) ECHO_C='\c';;
16060 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16061 ECHO_T=' ';;
16062 esac;;
16063 *)
16064 ECHO_N='-n';;
16065 esac
16066
16067 rm -f conf$$ conf$$.exe conf$$.file
16068 if test -d conf$$.dir; then
16069 rm -f conf$$.dir/conf$$.file
16070 else
16071 rm -f conf$$.dir
16072 mkdir conf$$.dir 2>/dev/null
16073 fi
16074 if (echo >conf$$.file) 2>/dev/null; then
16075 if ln -s conf$$.file conf$$ 2>/dev/null; then
16076 as_ln_s='ln -s'
16077 # ... but there are two gotchas:
16078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16080 # In both cases, we have to default to `cp -p'.
16081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16082 as_ln_s='cp -p'
16083 elif ln conf$$.file conf$$ 2>/dev/null; then
16084 as_ln_s=ln
16085 else
16086 as_ln_s='cp -p'
16087 fi
16088 else
16089 as_ln_s='cp -p'
16090 fi
16091 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16092 rmdir conf$$.dir 2>/dev/null
16093
16094
16095 # as_fn_mkdir_p
16096 # -------------
16097 # Create "$as_dir" as a directory, including parents if necessary.
16098 as_fn_mkdir_p ()
16099 {
16100
16101 case $as_dir in #(
16102 -*) as_dir=./$as_dir;;
16103 esac
16104 test -d "$as_dir" || eval $as_mkdir_p || {
16105 as_dirs=
16106 while :; do
16107 case $as_dir in #(
16108 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16109 *) as_qdir=$as_dir;;
16110 esac
16111 as_dirs="'$as_qdir' $as_dirs"
16112 as_dir=`$as_dirname -- "$as_dir" ||
16113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16114 X"$as_dir" : 'X\(//\)[^/]' \| \
16115 X"$as_dir" : 'X\(//\)$' \| \
16116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16117 $as_echo X"$as_dir" |
16118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16119 s//\1/
16120 q
16121 }
16122 /^X\(\/\/\)[^/].*/{
16123 s//\1/
16124 q
16125 }
16126 /^X\(\/\/\)$/{
16127 s//\1/
16128 q
16129 }
16130 /^X\(\/\).*/{
16131 s//\1/
16132 q
16133 }
16134 s/.*/./; q'`
16135 test -d "$as_dir" && break
16136 done
16137 test -z "$as_dirs" || eval "mkdir $as_dirs"
16138 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16139
16140
16141 } # as_fn_mkdir_p
16142 if mkdir -p . 2>/dev/null; then
16143 as_mkdir_p='mkdir -p "$as_dir"'
16144 else
16145 test -d ./-p && rmdir ./-p
16146 as_mkdir_p=false
16147 fi
16148
16149 if test -x / >/dev/null 2>&1; then
16150 as_test_x='test -x'
16151 else
16152 if ls -dL / >/dev/null 2>&1; then
16153 as_ls_L_option=L
16154 else
16155 as_ls_L_option=
16156 fi
16157 as_test_x='
16158 eval sh -c '\''
16159 if test -d "$1"; then
16160 test -d "$1/.";
16161 else
16162 case $1 in #(
16163 -*)set "./$1";;
16164 esac;
16165 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16166 ???[sx]*):;;*)false;;esac;fi
16167 '\'' sh
16168 '
16169 fi
16170 as_executable_p=$as_test_x
16171
16172 # Sed expression to map a string onto a valid CPP name.
16173 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16174
16175 # Sed expression to map a string onto a valid variable name.
16176 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16177
16178
16179 exec 6>&1
16180 ## ----------------------------------- ##
16181 ## Main body of $CONFIG_STATUS script. ##
16182 ## ----------------------------------- ##
16183 _ASEOF
16184 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16185
16186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187 # Save the log message, to keep $0 and so on meaningful, and to
16188 # report actual input values of CONFIG_FILES etc. instead of their
16189 # values after options handling.
16190 ac_log="
16191 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16192 generated by GNU Autoconf 2.64. Invocation command line was
16193
16194 CONFIG_FILES = $CONFIG_FILES
16195 CONFIG_HEADERS = $CONFIG_HEADERS
16196 CONFIG_LINKS = $CONFIG_LINKS
16197 CONFIG_COMMANDS = $CONFIG_COMMANDS
16198 $ $0 $@
16199
16200 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16201 "
16202
16203 _ACEOF
16204
16205 case $ac_config_files in *"
16206 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16207 esac
16208
16209
16210
16211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212 # Files that config.status was made for.
16213 config_files="$ac_config_files"
16214 config_commands="$ac_config_commands"
16215
16216 _ACEOF
16217
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 ac_cs_usage="\
16220 \`$as_me' instantiates files and other configuration actions
16221 from templates according to the current configuration. Unless the files
16222 and actions are specified as TAGs, all are instantiated by default.
16223
16224 Usage: $0 [OPTION]... [TAG]...
16225
16226 -h, --help print this help, then exit
16227 -V, --version print version number and configuration settings, then exit
16228 -q, --quiet, --silent
16229 do not print progress messages
16230 -d, --debug don't remove temporary files
16231 --recheck update $as_me by reconfiguring in the same conditions
16232 --file=FILE[:TEMPLATE]
16233 instantiate the configuration file FILE
16234
16235 Configuration files:
16236 $config_files
16237
16238 Configuration commands:
16239 $config_commands
16240
16241 Report bugs to the package provider.
16242 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16243 General help using GNU software: <http://www.gnu.org/gethelp/>."
16244
16245 _ACEOF
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 ac_cs_version="\\
16248 GNU Vtable Verification Runtime Library config.status 1.0
16249 configured by $0, generated by GNU Autoconf 2.64,
16250 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16251
16252 Copyright (C) 2009 Free Software Foundation, Inc.
16253 This config.status script is free software; the Free Software Foundation
16254 gives unlimited permission to copy, distribute and modify it."
16255
16256 ac_pwd='$ac_pwd'
16257 srcdir='$srcdir'
16258 INSTALL='$INSTALL'
16259 MKDIR_P='$MKDIR_P'
16260 AWK='$AWK'
16261 test -n "\$AWK" || AWK=awk
16262 _ACEOF
16263
16264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16265 # The default lists apply if the user does not specify any file.
16266 ac_need_defaults=:
16267 while test $# != 0
16268 do
16269 case $1 in
16270 --*=*)
16271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16272 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16273 ac_shift=:
16274 ;;
16275 *)
16276 ac_option=$1
16277 ac_optarg=$2
16278 ac_shift=shift
16279 ;;
16280 esac
16281
16282 case $ac_option in
16283 # Handling of the options.
16284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16285 ac_cs_recheck=: ;;
16286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16287 $as_echo "$ac_cs_version"; exit ;;
16288 --debug | --debu | --deb | --de | --d | -d )
16289 debug=: ;;
16290 --file | --fil | --fi | --f )
16291 $ac_shift
16292 case $ac_optarg in
16293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16294 esac
16295 as_fn_append CONFIG_FILES " '$ac_optarg'"
16296 ac_need_defaults=false;;
16297 --he | --h | --help | --hel | -h )
16298 $as_echo "$ac_cs_usage"; exit ;;
16299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16301 ac_cs_silent=: ;;
16302
16303 # This is an error.
16304 -*) as_fn_error "unrecognized option: \`$1'
16305 Try \`$0 --help' for more information." ;;
16306
16307 *) as_fn_append ac_config_targets " $1"
16308 ac_need_defaults=false ;;
16309
16310 esac
16311 shift
16312 done
16313
16314 ac_configure_extra_args=
16315
16316 if $ac_cs_silent; then
16317 exec 6>/dev/null
16318 ac_configure_extra_args="$ac_configure_extra_args --silent"
16319 fi
16320
16321 _ACEOF
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323 if \$ac_cs_recheck; then
16324 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16325 shift
16326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16327 CONFIG_SHELL='$SHELL'
16328 export CONFIG_SHELL
16329 exec "\$@"
16330 fi
16331
16332 _ACEOF
16333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16334 exec 5>>config.log
16335 {
16336 echo
16337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16338 ## Running $as_me. ##
16339 _ASBOX
16340 $as_echo "$ac_log"
16341 } >&5
16342
16343 _ACEOF
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 #
16346 # INIT-COMMANDS
16347 #
16348
16349 srcdir="$srcdir"
16350 host="$host"
16351 target="$target"
16352 with_multisubdir="$with_multisubdir"
16353 with_multisrctop="$with_multisrctop"
16354 with_target_subdir="$with_target_subdir"
16355 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16356 multi_basedir="$multi_basedir"
16357 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16358 CC="$CC"
16359 CXX="$CXX"
16360 GFORTRAN="$GFORTRAN"
16361 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16362
16363
16364 # The HP-UX ksh and POSIX shell print the target directory to stdout
16365 # if CDPATH is set.
16366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16367
16368 sed_quote_subst='$sed_quote_subst'
16369 double_quote_subst='$double_quote_subst'
16370 delay_variable_subst='$delay_variable_subst'
16371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16373 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16374 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16375 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16376 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16377 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16378 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16379 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16380 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16381 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16382 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16383 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16384 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16385 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16386 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16387 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16388 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16389 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16390 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16391 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16392 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16393 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16394 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16395 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16396 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16397 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16398 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16399 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16400 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16401 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16402 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16403 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16404 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16405 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16406 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16407 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16408 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16409 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16410 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16411 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16412 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16413 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16414 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16415 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16416 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16417 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16418 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16419 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"`'
16420 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16421 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16422 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16423 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16424 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16425 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16426 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16427 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16428 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16429 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16430 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16431 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16432 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16433 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16434 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16435 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16436 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16437 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16438 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16439 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16440 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16441 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16442 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16443 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16444 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16445 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16446 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16447 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16448 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16449 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16450 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16451 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16452 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16453 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16454 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16455 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16456 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16457 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16458 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16459 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16460 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16461 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16462 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16463 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16464 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16465 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16466 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16467 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16468 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16469 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16470 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16471 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16472 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16473 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16474 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16475 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16476 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16477 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16478 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16479 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16480 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16481 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16482 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16483 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16484 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16485 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16486 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16487 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16488 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16489 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16490 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16491 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16492 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16493 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16494 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16495 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16496 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16497 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16498 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16499 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16500 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16501 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16502 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16503 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16504 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16505 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16506 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16507 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16508 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16509 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16510 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16511 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16512 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16513 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16514 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16515 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16516 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16517 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16518 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16519 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16520 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16521 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16522 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16523 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16524 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16525 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16526 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16527 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16528 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16529 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16530 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16531 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16532 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16533 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16534 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16535 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16536 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16537 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16538 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16539 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16540 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16541 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16542 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16543 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16544 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16545 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16546
16547 LTCC='$LTCC'
16548 LTCFLAGS='$LTCFLAGS'
16549 compiler='$compiler_DEFAULT'
16550
16551 # A function that is used when there is no print builtin or printf.
16552 func_fallback_echo ()
16553 {
16554 eval 'cat <<_LTECHO_EOF
16555 \$1
16556 _LTECHO_EOF'
16557 }
16558
16559 # Quote evaled strings.
16560 for var in SHELL \
16561 ECHO \
16562 SED \
16563 GREP \
16564 EGREP \
16565 FGREP \
16566 LD \
16567 NM \
16568 LN_S \
16569 lt_SP2NL \
16570 lt_NL2SP \
16571 reload_flag \
16572 OBJDUMP \
16573 deplibs_check_method \
16574 file_magic_cmd \
16575 AR \
16576 AR_FLAGS \
16577 STRIP \
16578 RANLIB \
16579 CC \
16580 CFLAGS \
16581 compiler \
16582 lt_cv_sys_global_symbol_pipe \
16583 lt_cv_sys_global_symbol_to_cdecl \
16584 lt_cv_sys_global_symbol_to_c_name_address \
16585 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16586 lt_prog_compiler_no_builtin_flag \
16587 lt_prog_compiler_wl \
16588 lt_prog_compiler_pic \
16589 lt_prog_compiler_static \
16590 lt_cv_prog_compiler_c_o \
16591 need_locks \
16592 DSYMUTIL \
16593 NMEDIT \
16594 LIPO \
16595 OTOOL \
16596 OTOOL64 \
16597 shrext_cmds \
16598 export_dynamic_flag_spec \
16599 whole_archive_flag_spec \
16600 compiler_needs_object \
16601 with_gnu_ld \
16602 allow_undefined_flag \
16603 no_undefined_flag \
16604 hardcode_libdir_flag_spec \
16605 hardcode_libdir_flag_spec_ld \
16606 hardcode_libdir_separator \
16607 fix_srcfile_path \
16608 exclude_expsyms \
16609 include_expsyms \
16610 file_list_spec \
16611 variables_saved_for_relink \
16612 libname_spec \
16613 library_names_spec \
16614 soname_spec \
16615 install_override_mode \
16616 finish_eval \
16617 old_striplib \
16618 striplib \
16619 compiler_lib_search_dirs \
16620 predep_objects \
16621 postdep_objects \
16622 predeps \
16623 postdeps \
16624 compiler_lib_search_path \
16625 LD_CXX \
16626 reload_flag_CXX \
16627 compiler_CXX \
16628 lt_prog_compiler_no_builtin_flag_CXX \
16629 lt_prog_compiler_wl_CXX \
16630 lt_prog_compiler_pic_CXX \
16631 lt_prog_compiler_static_CXX \
16632 lt_cv_prog_compiler_c_o_CXX \
16633 export_dynamic_flag_spec_CXX \
16634 whole_archive_flag_spec_CXX \
16635 compiler_needs_object_CXX \
16636 with_gnu_ld_CXX \
16637 allow_undefined_flag_CXX \
16638 no_undefined_flag_CXX \
16639 hardcode_libdir_flag_spec_CXX \
16640 hardcode_libdir_flag_spec_ld_CXX \
16641 hardcode_libdir_separator_CXX \
16642 fix_srcfile_path_CXX \
16643 exclude_expsyms_CXX \
16644 include_expsyms_CXX \
16645 file_list_spec_CXX \
16646 compiler_lib_search_dirs_CXX \
16647 predep_objects_CXX \
16648 postdep_objects_CXX \
16649 predeps_CXX \
16650 postdeps_CXX \
16651 compiler_lib_search_path_CXX; do
16652 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16653 *[\\\\\\\`\\"\\\$]*)
16654 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16655 ;;
16656 *)
16657 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16658 ;;
16659 esac
16660 done
16661
16662 # Double-quote double-evaled strings.
16663 for var in reload_cmds \
16664 old_postinstall_cmds \
16665 old_postuninstall_cmds \
16666 old_archive_cmds \
16667 extract_expsyms_cmds \
16668 old_archive_from_new_cmds \
16669 old_archive_from_expsyms_cmds \
16670 archive_cmds \
16671 archive_expsym_cmds \
16672 module_cmds \
16673 module_expsym_cmds \
16674 export_symbols_cmds \
16675 prelink_cmds \
16676 postinstall_cmds \
16677 postuninstall_cmds \
16678 finish_cmds \
16679 sys_lib_search_path_spec \
16680 sys_lib_dlsearch_path_spec \
16681 reload_cmds_CXX \
16682 old_archive_cmds_CXX \
16683 old_archive_from_new_cmds_CXX \
16684 old_archive_from_expsyms_cmds_CXX \
16685 archive_cmds_CXX \
16686 archive_expsym_cmds_CXX \
16687 module_cmds_CXX \
16688 module_expsym_cmds_CXX \
16689 export_symbols_cmds_CXX \
16690 prelink_cmds_CXX; do
16691 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16692 *[\\\\\\\`\\"\\\$]*)
16693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16694 ;;
16695 *)
16696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16697 ;;
16698 esac
16699 done
16700
16701 ac_aux_dir='$ac_aux_dir'
16702 xsi_shell='$xsi_shell'
16703 lt_shell_append='$lt_shell_append'
16704
16705 # See if we are running on zsh, and set the options which allow our
16706 # commands through without removal of \ escapes INIT.
16707 if test -n "\${ZSH_VERSION+set}" ; then
16708 setopt NO_GLOB_SUBST
16709 fi
16710
16711
16712 PACKAGE='$PACKAGE'
16713 VERSION='$VERSION'
16714 TIMESTAMP='$TIMESTAMP'
16715 RM='$RM'
16716 ofile='$ofile'
16717
16718
16719
16720
16721
16722
16723 _ACEOF
16724
16725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16726
16727 # Handling of arguments.
16728 for ac_config_target in $ac_config_targets
16729 do
16730 case $ac_config_target in
16731 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16732 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16733 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16734 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16735 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16736
16737 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16738 esac
16739 done
16740
16741
16742 # If the user did not use the arguments to specify the items to instantiate,
16743 # then the envvar interface is used. Set only those that are not.
16744 # We use the long form for the default assignment because of an extremely
16745 # bizarre bug on SunOS 4.1.3.
16746 if $ac_need_defaults; then
16747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16749 fi
16750
16751 # Have a temporary directory for convenience. Make it in the build tree
16752 # simply because there is no reason against having it here, and in addition,
16753 # creating and moving files from /tmp can sometimes cause problems.
16754 # Hook for its removal unless debugging.
16755 # Note that there is a small window in which the directory will not be cleaned:
16756 # after its creation but before its name has been assigned to `$tmp'.
16757 $debug ||
16758 {
16759 tmp=
16760 trap 'exit_status=$?
16761 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16762 ' 0
16763 trap 'as_fn_exit 1' 1 2 13 15
16764 }
16765 # Create a (secure) tmp directory for tmp files.
16766
16767 {
16768 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16769 test -n "$tmp" && test -d "$tmp"
16770 } ||
16771 {
16772 tmp=./conf$$-$RANDOM
16773 (umask 077 && mkdir "$tmp")
16774 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16775
16776 # Set up the scripts for CONFIG_FILES section.
16777 # No need to generate them if there are no CONFIG_FILES.
16778 # This happens for instance with `./config.status config.h'.
16779 if test -n "$CONFIG_FILES"; then
16780
16781
16782 ac_cr=`echo X | tr X '\015'`
16783 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16784 # But we know of no other shell where ac_cr would be empty at this
16785 # point, so we can use a bashism as a fallback.
16786 if test "x$ac_cr" = x; then
16787 eval ac_cr=\$\'\\r\'
16788 fi
16789 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16790 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16791 ac_cs_awk_cr='\r'
16792 else
16793 ac_cs_awk_cr=$ac_cr
16794 fi
16795
16796 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16797 _ACEOF
16798
16799
16800 {
16801 echo "cat >conf$$subs.awk <<_ACEOF" &&
16802 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16803 echo "_ACEOF"
16804 } >conf$$subs.sh ||
16805 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16806 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16807 ac_delim='%!_!# '
16808 for ac_last_try in false false false false false :; do
16809 . ./conf$$subs.sh ||
16810 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16811
16812 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16813 if test $ac_delim_n = $ac_delim_num; then
16814 break
16815 elif $ac_last_try; then
16816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16817 else
16818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16819 fi
16820 done
16821 rm -f conf$$subs.sh
16822
16823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16824 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16825 _ACEOF
16826 sed -n '
16827 h
16828 s/^/S["/; s/!.*/"]=/
16829 p
16830 g
16831 s/^[^!]*!//
16832 :repl
16833 t repl
16834 s/'"$ac_delim"'$//
16835 t delim
16836 :nl
16837 h
16838 s/\(.\{148\}\).*/\1/
16839 t more1
16840 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16841 p
16842 n
16843 b repl
16844 :more1
16845 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16846 p
16847 g
16848 s/.\{148\}//
16849 t nl
16850 :delim
16851 h
16852 s/\(.\{148\}\).*/\1/
16853 t more2
16854 s/["\\]/\\&/g; s/^/"/; s/$/"/
16855 p
16856 b
16857 :more2
16858 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16859 p
16860 g
16861 s/.\{148\}//
16862 t delim
16863 ' <conf$$subs.awk | sed '
16864 /^[^""]/{
16865 N
16866 s/\n//
16867 }
16868 ' >>$CONFIG_STATUS || ac_write_fail=1
16869 rm -f conf$$subs.awk
16870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16871 _ACAWK
16872 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16873 for (key in S) S_is_set[key] = 1
16874 FS = "\a"
16875
16876 }
16877 {
16878 line = $ 0
16879 nfields = split(line, field, "@")
16880 substed = 0
16881 len = length(field[1])
16882 for (i = 2; i < nfields; i++) {
16883 key = field[i]
16884 keylen = length(key)
16885 if (S_is_set[key]) {
16886 value = S[key]
16887 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16888 len += length(value) + length(field[++i])
16889 substed = 1
16890 } else
16891 len += 1 + keylen
16892 }
16893
16894 print line
16895 }
16896
16897 _ACAWK
16898 _ACEOF
16899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16901 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16902 else
16903 cat
16904 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16905 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16906 _ACEOF
16907
16908 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16909 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16910 # trailing colons and then remove the whole line if VPATH becomes empty
16911 # (actually we leave an empty line to preserve line numbers).
16912 if test "x$srcdir" = x.; then
16913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16914 s/:*\$(srcdir):*/:/
16915 s/:*\${srcdir}:*/:/
16916 s/:*@srcdir@:*/:/
16917 s/^\([^=]*=[ ]*\):*/\1/
16918 s/:*$//
16919 s/^[^=]*=[ ]*$//
16920 }'
16921 fi
16922
16923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16924 fi # test -n "$CONFIG_FILES"
16925
16926
16927 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16928 shift
16929 for ac_tag
16930 do
16931 case $ac_tag in
16932 :[FHLC]) ac_mode=$ac_tag; continue;;
16933 esac
16934 case $ac_mode$ac_tag in
16935 :[FHL]*:*);;
16936 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16937 :[FH]-) ac_tag=-:-;;
16938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16939 esac
16940 ac_save_IFS=$IFS
16941 IFS=:
16942 set x $ac_tag
16943 IFS=$ac_save_IFS
16944 shift
16945 ac_file=$1
16946 shift
16947
16948 case $ac_mode in
16949 :L) ac_source=$1;;
16950 :[FH])
16951 ac_file_inputs=
16952 for ac_f
16953 do
16954 case $ac_f in
16955 -) ac_f="$tmp/stdin";;
16956 *) # Look for the file first in the build tree, then in the source tree
16957 # (if the path is not absolute). The absolute path cannot be DOS-style,
16958 # because $ac_f cannot contain `:'.
16959 test -f "$ac_f" ||
16960 case $ac_f in
16961 [\\/$]*) false;;
16962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16963 esac ||
16964 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16965 esac
16966 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16967 as_fn_append ac_file_inputs " '$ac_f'"
16968 done
16969
16970 # Let's still pretend it is `configure' which instantiates (i.e., don't
16971 # use $as_me), people would be surprised to read:
16972 # /* config.h. Generated by config.status. */
16973 configure_input='Generated from '`
16974 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16975 `' by configure.'
16976 if test x"$ac_file" != x-; then
16977 configure_input="$ac_file. $configure_input"
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16979 $as_echo "$as_me: creating $ac_file" >&6;}
16980 fi
16981 # Neutralize special characters interpreted by sed in replacement strings.
16982 case $configure_input in #(
16983 *\&* | *\|* | *\\* )
16984 ac_sed_conf_input=`$as_echo "$configure_input" |
16985 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16986 *) ac_sed_conf_input=$configure_input;;
16987 esac
16988
16989 case $ac_tag in
16990 *:-:* | *:-) cat >"$tmp/stdin" \
16991 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16992 esac
16993 ;;
16994 esac
16995
16996 ac_dir=`$as_dirname -- "$ac_file" ||
16997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16998 X"$ac_file" : 'X\(//\)[^/]' \| \
16999 X"$ac_file" : 'X\(//\)$' \| \
17000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17001 $as_echo X"$ac_file" |
17002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17003 s//\1/
17004 q
17005 }
17006 /^X\(\/\/\)[^/].*/{
17007 s//\1/
17008 q
17009 }
17010 /^X\(\/\/\)$/{
17011 s//\1/
17012 q
17013 }
17014 /^X\(\/\).*/{
17015 s//\1/
17016 q
17017 }
17018 s/.*/./; q'`
17019 as_dir="$ac_dir"; as_fn_mkdir_p
17020 ac_builddir=.
17021
17022 case "$ac_dir" in
17023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17024 *)
17025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17026 # A ".." for each directory in $ac_dir_suffix.
17027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17028 case $ac_top_builddir_sub in
17029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17031 esac ;;
17032 esac
17033 ac_abs_top_builddir=$ac_pwd
17034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17035 # for backward compatibility:
17036 ac_top_builddir=$ac_top_build_prefix
17037
17038 case $srcdir in
17039 .) # We are building in place.
17040 ac_srcdir=.
17041 ac_top_srcdir=$ac_top_builddir_sub
17042 ac_abs_top_srcdir=$ac_pwd ;;
17043 [\\/]* | ?:[\\/]* ) # Absolute name.
17044 ac_srcdir=$srcdir$ac_dir_suffix;
17045 ac_top_srcdir=$srcdir
17046 ac_abs_top_srcdir=$srcdir ;;
17047 *) # Relative name.
17048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17049 ac_top_srcdir=$ac_top_build_prefix$srcdir
17050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17051 esac
17052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17053
17054
17055 case $ac_mode in
17056 :F)
17057 #
17058 # CONFIG_FILE
17059 #
17060
17061 case $INSTALL in
17062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17064 esac
17065 ac_MKDIR_P=$MKDIR_P
17066 case $MKDIR_P in
17067 [\\/$]* | ?:[\\/]* ) ;;
17068 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17069 esac
17070 _ACEOF
17071
17072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17073 # If the template does not know about datarootdir, expand it.
17074 # FIXME: This hack should be removed a few years after 2.60.
17075 ac_datarootdir_hack=; ac_datarootdir_seen=
17076 ac_sed_dataroot='
17077 /datarootdir/ {
17078 p
17079 q
17080 }
17081 /@datadir@/p
17082 /@docdir@/p
17083 /@infodir@/p
17084 /@localedir@/p
17085 /@mandir@/p'
17086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17087 *datarootdir*) ac_datarootdir_seen=yes;;
17088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17090 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17091 _ACEOF
17092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17093 ac_datarootdir_hack='
17094 s&@datadir@&$datadir&g
17095 s&@docdir@&$docdir&g
17096 s&@infodir@&$infodir&g
17097 s&@localedir@&$localedir&g
17098 s&@mandir@&$mandir&g
17099 s&\\\${datarootdir}&$datarootdir&g' ;;
17100 esac
17101 _ACEOF
17102
17103 # Neutralize VPATH when `$srcdir' = `.'.
17104 # Shell code in configure.ac might set extrasub.
17105 # FIXME: do we really want to maintain this feature?
17106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17107 ac_sed_extra="$ac_vpsub
17108 $extrasub
17109 _ACEOF
17110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17111 :t
17112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17113 s|@configure_input@|$ac_sed_conf_input|;t t
17114 s&@top_builddir@&$ac_top_builddir_sub&;t t
17115 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17116 s&@srcdir@&$ac_srcdir&;t t
17117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17118 s&@top_srcdir@&$ac_top_srcdir&;t t
17119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17120 s&@builddir@&$ac_builddir&;t t
17121 s&@abs_builddir@&$ac_abs_builddir&;t t
17122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17123 s&@INSTALL@&$ac_INSTALL&;t t
17124 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17125 $ac_datarootdir_hack
17126 "
17127 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17128 || as_fn_error "could not create $ac_file" "$LINENO" 5
17129
17130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17131 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17134 which seems to be undefined. Please make sure it is defined." >&5
17135 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17136 which seems to be undefined. Please make sure it is defined." >&2;}
17137
17138 rm -f "$tmp/stdin"
17139 case $ac_file in
17140 -) cat "$tmp/out" && rm -f "$tmp/out";;
17141 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17142 esac \
17143 || as_fn_error "could not create $ac_file" "$LINENO" 5
17144 ;;
17145
17146
17147 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17148 $as_echo "$as_me: executing $ac_file commands" >&6;}
17149 ;;
17150 esac
17151
17152
17153 case $ac_file$ac_mode in
17154 "default-1":C)
17155 # Only add multilib support code if we just rebuilt the top-level
17156 # Makefile.
17157 case " $CONFIG_FILES " in
17158 *" Makefile "*)
17159 ac_file=Makefile . ${multi_basedir}/config-ml.in
17160 ;;
17161 esac ;;
17162 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17163 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17164 # are listed without --file. Let's play safe and only enable the eval
17165 # if we detect the quoting.
17166 case $CONFIG_FILES in
17167 *\'*) eval set x "$CONFIG_FILES" ;;
17168 *) set x $CONFIG_FILES ;;
17169 esac
17170 shift
17171 for mf
17172 do
17173 # Strip MF so we end up with the name of the file.
17174 mf=`echo "$mf" | sed -e 's/:.*$//'`
17175 # Check whether this is an Automake generated Makefile or not.
17176 # We used to match only the files named `Makefile.in', but
17177 # some people rename them; so instead we look at the file content.
17178 # Grep'ing the first line is not enough: some people post-process
17179 # each Makefile.in and add a new line on top of each file to say so.
17180 # Grep'ing the whole file is not good either: AIX grep has a line
17181 # limit of 2048, but all sed's we know have understand at least 4000.
17182 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17183 dirpart=`$as_dirname -- "$mf" ||
17184 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17185 X"$mf" : 'X\(//\)[^/]' \| \
17186 X"$mf" : 'X\(//\)$' \| \
17187 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17188 $as_echo X"$mf" |
17189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17190 s//\1/
17191 q
17192 }
17193 /^X\(\/\/\)[^/].*/{
17194 s//\1/
17195 q
17196 }
17197 /^X\(\/\/\)$/{
17198 s//\1/
17199 q
17200 }
17201 /^X\(\/\).*/{
17202 s//\1/
17203 q
17204 }
17205 s/.*/./; q'`
17206 else
17207 continue
17208 fi
17209 # Extract the definition of DEPDIR, am__include, and am__quote
17210 # from the Makefile without running `make'.
17211 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17212 test -z "$DEPDIR" && continue
17213 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17214 test -z "am__include" && continue
17215 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17216 # When using ansi2knr, U may be empty or an underscore; expand it
17217 U=`sed -n 's/^U = //p' < "$mf"`
17218 # Find all dependency output files, they are included files with
17219 # $(DEPDIR) in their names. We invoke sed twice because it is the
17220 # simplest approach to changing $(DEPDIR) to its actual value in the
17221 # expansion.
17222 for file in `sed -n "
17223 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17224 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17225 # Make sure the directory exists.
17226 test -f "$dirpart/$file" && continue
17227 fdir=`$as_dirname -- "$file" ||
17228 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17229 X"$file" : 'X\(//\)[^/]' \| \
17230 X"$file" : 'X\(//\)$' \| \
17231 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17232 $as_echo X"$file" |
17233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17234 s//\1/
17235 q
17236 }
17237 /^X\(\/\/\)[^/].*/{
17238 s//\1/
17239 q
17240 }
17241 /^X\(\/\/\)$/{
17242 s//\1/
17243 q
17244 }
17245 /^X\(\/\).*/{
17246 s//\1/
17247 q
17248 }
17249 s/.*/./; q'`
17250 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17251 # echo "creating $dirpart/$file"
17252 echo '# dummy' > "$dirpart/$file"
17253 done
17254 done
17255 }
17256 ;;
17257 "libtool":C)
17258
17259 # See if we are running on zsh, and set the options which allow our
17260 # commands through without removal of \ escapes.
17261 if test -n "${ZSH_VERSION+set}" ; then
17262 setopt NO_GLOB_SUBST
17263 fi
17264
17265 cfgfile="${ofile}T"
17266 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17267 $RM "$cfgfile"
17268
17269 cat <<_LT_EOF >> "$cfgfile"
17270 #! $SHELL
17271
17272 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17273 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17275 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17276 #
17277 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17278 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17279 # Written by Gordon Matzigkeit, 1996
17280 #
17281 # This file is part of GNU Libtool.
17282 #
17283 # GNU Libtool is free software; you can redistribute it and/or
17284 # modify it under the terms of the GNU General Public License as
17285 # published by the Free Software Foundation; either version 2 of
17286 # the License, or (at your option) any later version.
17287 #
17288 # As a special exception to the GNU General Public License,
17289 # if you distribute this file as part of a program or library that
17290 # is built using GNU Libtool, you may include this file under the
17291 # same distribution terms that you use for the rest of that program.
17292 #
17293 # GNU Libtool is distributed in the hope that it will be useful,
17294 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17296 # GNU General Public License for more details.
17297 #
17298 # You should have received a copy of the GNU General Public License
17299 # along with GNU Libtool; see the file COPYING. If not, a copy
17300 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17301 # obtained by writing to the Free Software Foundation, Inc.,
17302 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17303
17304
17305 # The names of the tagged configurations supported by this script.
17306 available_tags="CXX "
17307
17308 # ### BEGIN LIBTOOL CONFIG
17309
17310 # Which release of libtool.m4 was used?
17311 macro_version=$macro_version
17312 macro_revision=$macro_revision
17313
17314 # Whether or not to build shared libraries.
17315 build_libtool_libs=$enable_shared
17316
17317 # Whether or not to build static libraries.
17318 build_old_libs=$enable_static
17319
17320 # What type of objects to build.
17321 pic_mode=$pic_mode
17322
17323 # Whether or not to optimize for fast installation.
17324 fast_install=$enable_fast_install
17325
17326 # Shell to use when invoking shell scripts.
17327 SHELL=$lt_SHELL
17328
17329 # An echo program that protects backslashes.
17330 ECHO=$lt_ECHO
17331
17332 # The host system.
17333 host_alias=$host_alias
17334 host=$host
17335 host_os=$host_os
17336
17337 # The build system.
17338 build_alias=$build_alias
17339 build=$build
17340 build_os=$build_os
17341
17342 # A sed program that does not truncate output.
17343 SED=$lt_SED
17344
17345 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17346 Xsed="\$SED -e 1s/^X//"
17347
17348 # A grep program that handles long lines.
17349 GREP=$lt_GREP
17350
17351 # An ERE matcher.
17352 EGREP=$lt_EGREP
17353
17354 # A literal string matcher.
17355 FGREP=$lt_FGREP
17356
17357 # A BSD- or MS-compatible name lister.
17358 NM=$lt_NM
17359
17360 # Whether we need soft or hard links.
17361 LN_S=$lt_LN_S
17362
17363 # What is the maximum length of a command?
17364 max_cmd_len=$max_cmd_len
17365
17366 # Object file suffix (normally "o").
17367 objext=$ac_objext
17368
17369 # Executable file suffix (normally "").
17370 exeext=$exeext
17371
17372 # whether the shell understands "unset".
17373 lt_unset=$lt_unset
17374
17375 # turn spaces into newlines.
17376 SP2NL=$lt_lt_SP2NL
17377
17378 # turn newlines into spaces.
17379 NL2SP=$lt_lt_NL2SP
17380
17381 # An object symbol dumper.
17382 OBJDUMP=$lt_OBJDUMP
17383
17384 # Method to check whether dependent libraries are shared objects.
17385 deplibs_check_method=$lt_deplibs_check_method
17386
17387 # Command to use when deplibs_check_method == "file_magic".
17388 file_magic_cmd=$lt_file_magic_cmd
17389
17390 # The archiver.
17391 AR=$lt_AR
17392 AR_FLAGS=$lt_AR_FLAGS
17393
17394 # A symbol stripping program.
17395 STRIP=$lt_STRIP
17396
17397 # Commands used to install an old-style archive.
17398 RANLIB=$lt_RANLIB
17399 old_postinstall_cmds=$lt_old_postinstall_cmds
17400 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17401
17402 # Whether to use a lock for old archive extraction.
17403 lock_old_archive_extraction=$lock_old_archive_extraction
17404
17405 # A C compiler.
17406 LTCC=$lt_CC
17407
17408 # LTCC compiler flags.
17409 LTCFLAGS=$lt_CFLAGS
17410
17411 # Take the output of nm and produce a listing of raw symbols and C names.
17412 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17413
17414 # Transform the output of nm in a proper C declaration.
17415 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17416
17417 # Transform the output of nm in a C name address pair.
17418 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17419
17420 # Transform the output of nm in a C name address pair when lib prefix is needed.
17421 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17422
17423 # The name of the directory that contains temporary libtool files.
17424 objdir=$objdir
17425
17426 # Used to examine libraries when file_magic_cmd begins with "file".
17427 MAGIC_CMD=$MAGIC_CMD
17428
17429 # Must we lock files when doing compilation?
17430 need_locks=$lt_need_locks
17431
17432 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17433 DSYMUTIL=$lt_DSYMUTIL
17434
17435 # Tool to change global to local symbols on Mac OS X.
17436 NMEDIT=$lt_NMEDIT
17437
17438 # Tool to manipulate fat objects and archives on Mac OS X.
17439 LIPO=$lt_LIPO
17440
17441 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17442 OTOOL=$lt_OTOOL
17443
17444 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17445 OTOOL64=$lt_OTOOL64
17446
17447 # Old archive suffix (normally "a").
17448 libext=$libext
17449
17450 # Shared library suffix (normally ".so").
17451 shrext_cmds=$lt_shrext_cmds
17452
17453 # The commands to extract the exported symbol list from a shared archive.
17454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17455
17456 # Variables whose values should be saved in libtool wrapper scripts and
17457 # restored at link time.
17458 variables_saved_for_relink=$lt_variables_saved_for_relink
17459
17460 # Do we need the "lib" prefix for modules?
17461 need_lib_prefix=$need_lib_prefix
17462
17463 # Do we need a version for libraries?
17464 need_version=$need_version
17465
17466 # Library versioning type.
17467 version_type=$version_type
17468
17469 # Shared library runtime path variable.
17470 runpath_var=$runpath_var
17471
17472 # Shared library path variable.
17473 shlibpath_var=$shlibpath_var
17474
17475 # Is shlibpath searched before the hard-coded library search path?
17476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17477
17478 # Format of library name prefix.
17479 libname_spec=$lt_libname_spec
17480
17481 # List of archive names. First name is the real one, the rest are links.
17482 # The last name is the one that the linker finds with -lNAME
17483 library_names_spec=$lt_library_names_spec
17484
17485 # The coded name of the library, if different from the real name.
17486 soname_spec=$lt_soname_spec
17487
17488 # Permission mode override for installation of shared libraries.
17489 install_override_mode=$lt_install_override_mode
17490
17491 # Command to use after installation of a shared archive.
17492 postinstall_cmds=$lt_postinstall_cmds
17493
17494 # Command to use after uninstallation of a shared archive.
17495 postuninstall_cmds=$lt_postuninstall_cmds
17496
17497 # Commands used to finish a libtool library installation in a directory.
17498 finish_cmds=$lt_finish_cmds
17499
17500 # As "finish_cmds", except a single script fragment to be evaled but
17501 # not shown.
17502 finish_eval=$lt_finish_eval
17503
17504 # Whether we should hardcode library paths into libraries.
17505 hardcode_into_libs=$hardcode_into_libs
17506
17507 # Compile-time system search path for libraries.
17508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17509
17510 # Run-time system search path for libraries.
17511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17512
17513 # Whether dlopen is supported.
17514 dlopen_support=$enable_dlopen
17515
17516 # Whether dlopen of programs is supported.
17517 dlopen_self=$enable_dlopen_self
17518
17519 # Whether dlopen of statically linked programs is supported.
17520 dlopen_self_static=$enable_dlopen_self_static
17521
17522 # Commands to strip libraries.
17523 old_striplib=$lt_old_striplib
17524 striplib=$lt_striplib
17525
17526
17527 # The linker used to build libraries.
17528 LD=$lt_LD
17529
17530 # How to create reloadable object files.
17531 reload_flag=$lt_reload_flag
17532 reload_cmds=$lt_reload_cmds
17533
17534 # Commands used to build an old-style archive.
17535 old_archive_cmds=$lt_old_archive_cmds
17536
17537 # A language specific compiler.
17538 CC=$lt_compiler
17539
17540 # Is the compiler the GNU compiler?
17541 with_gcc=$GCC
17542
17543 # Compiler flag to turn off builtin functions.
17544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17545
17546 # How to pass a linker flag through the compiler.
17547 wl=$lt_lt_prog_compiler_wl
17548
17549 # Additional compiler flags for building library objects.
17550 pic_flag=$lt_lt_prog_compiler_pic
17551
17552 # Compiler flag to prevent dynamic linking.
17553 link_static_flag=$lt_lt_prog_compiler_static
17554
17555 # Does compiler simultaneously support -c and -o options?
17556 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17557
17558 # Whether or not to add -lc for building shared libraries.
17559 build_libtool_need_lc=$archive_cmds_need_lc
17560
17561 # Whether or not to disallow shared libs when runtime libs are static.
17562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17563
17564 # Compiler flag to allow reflexive dlopens.
17565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17566
17567 # Compiler flag to generate shared objects directly from archives.
17568 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17569
17570 # Whether the compiler copes with passing no objects directly.
17571 compiler_needs_object=$lt_compiler_needs_object
17572
17573 # Create an old-style archive from a shared archive.
17574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17575
17576 # Create a temporary old-style archive to link instead of a shared archive.
17577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17578
17579 # Commands used to build a shared archive.
17580 archive_cmds=$lt_archive_cmds
17581 archive_expsym_cmds=$lt_archive_expsym_cmds
17582
17583 # Commands used to build a loadable module if different from building
17584 # a shared archive.
17585 module_cmds=$lt_module_cmds
17586 module_expsym_cmds=$lt_module_expsym_cmds
17587
17588 # Whether we are building with GNU ld or not.
17589 with_gnu_ld=$lt_with_gnu_ld
17590
17591 # Flag that allows shared libraries with undefined symbols to be built.
17592 allow_undefined_flag=$lt_allow_undefined_flag
17593
17594 # Flag that enforces no undefined symbols.
17595 no_undefined_flag=$lt_no_undefined_flag
17596
17597 # Flag to hardcode \$libdir into a binary during linking.
17598 # This must work even if \$libdir does not exist
17599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17600
17601 # If ld is used when linking, flag to hardcode \$libdir into a binary
17602 # during linking. This must work even if \$libdir does not exist.
17603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17604
17605 # Whether we need a single "-rpath" flag with a separated argument.
17606 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17607
17608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17609 # DIR into the resulting binary.
17610 hardcode_direct=$hardcode_direct
17611
17612 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17613 # DIR into the resulting binary and the resulting library dependency is
17614 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17615 # library is relocated.
17616 hardcode_direct_absolute=$hardcode_direct_absolute
17617
17618 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17619 # into the resulting binary.
17620 hardcode_minus_L=$hardcode_minus_L
17621
17622 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17623 # into the resulting binary.
17624 hardcode_shlibpath_var=$hardcode_shlibpath_var
17625
17626 # Set to "yes" if building a shared library automatically hardcodes DIR
17627 # into the library and all subsequent libraries and executables linked
17628 # against it.
17629 hardcode_automatic=$hardcode_automatic
17630
17631 # Set to yes if linker adds runtime paths of dependent libraries
17632 # to runtime path list.
17633 inherit_rpath=$inherit_rpath
17634
17635 # Whether libtool must link a program against all its dependency libraries.
17636 link_all_deplibs=$link_all_deplibs
17637
17638 # Fix the shell variable \$srcfile for the compiler.
17639 fix_srcfile_path=$lt_fix_srcfile_path
17640
17641 # Set to "yes" if exported symbols are required.
17642 always_export_symbols=$always_export_symbols
17643
17644 # The commands to list exported symbols.
17645 export_symbols_cmds=$lt_export_symbols_cmds
17646
17647 # Symbols that should not be listed in the preloaded symbols.
17648 exclude_expsyms=$lt_exclude_expsyms
17649
17650 # Symbols that must always be exported.
17651 include_expsyms=$lt_include_expsyms
17652
17653 # Commands necessary for linking programs (against libraries) with templates.
17654 prelink_cmds=$lt_prelink_cmds
17655
17656 # Specify filename containing input files.
17657 file_list_spec=$lt_file_list_spec
17658
17659 # How to hardcode a shared library path into an executable.
17660 hardcode_action=$hardcode_action
17661
17662 # The directories searched by this compiler when creating a shared library.
17663 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17664
17665 # Dependencies to place before and after the objects being linked to
17666 # create a shared library.
17667 predep_objects=$lt_predep_objects
17668 postdep_objects=$lt_postdep_objects
17669 predeps=$lt_predeps
17670 postdeps=$lt_postdeps
17671
17672 # The library search path used internally by the compiler when linking
17673 # a shared library.
17674 compiler_lib_search_path=$lt_compiler_lib_search_path
17675
17676 # ### END LIBTOOL CONFIG
17677
17678 _LT_EOF
17679
17680 case $host_os in
17681 aix3*)
17682 cat <<\_LT_EOF >> "$cfgfile"
17683 # AIX sometimes has problems with the GCC collect2 program. For some
17684 # reason, if we set the COLLECT_NAMES environment variable, the problems
17685 # vanish in a puff of smoke.
17686 if test "X${COLLECT_NAMES+set}" != Xset; then
17687 COLLECT_NAMES=
17688 export COLLECT_NAMES
17689 fi
17690 _LT_EOF
17691 ;;
17692 esac
17693
17694
17695 ltmain="$ac_aux_dir/ltmain.sh"
17696
17697
17698 # We use sed instead of cat because bash on DJGPP gets confused if
17699 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17700 # text mode, it properly converts lines to CR/LF. This bash problem
17701 # is reportedly fixed, but why not run on old versions too?
17702 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17703 || (rm -f "$cfgfile"; exit 1)
17704
17705 case $xsi_shell in
17706 yes)
17707 cat << \_LT_EOF >> "$cfgfile"
17708
17709 # func_dirname file append nondir_replacement
17710 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17711 # otherwise set result to NONDIR_REPLACEMENT.
17712 func_dirname ()
17713 {
17714 case ${1} in
17715 */*) func_dirname_result="${1%/*}${2}" ;;
17716 * ) func_dirname_result="${3}" ;;
17717 esac
17718 }
17719
17720 # func_basename file
17721 func_basename ()
17722 {
17723 func_basename_result="${1##*/}"
17724 }
17725
17726 # func_dirname_and_basename file append nondir_replacement
17727 # perform func_basename and func_dirname in a single function
17728 # call:
17729 # dirname: Compute the dirname of FILE. If nonempty,
17730 # add APPEND to the result, otherwise set result
17731 # to NONDIR_REPLACEMENT.
17732 # value returned in "$func_dirname_result"
17733 # basename: Compute filename of FILE.
17734 # value retuned in "$func_basename_result"
17735 # Implementation must be kept synchronized with func_dirname
17736 # and func_basename. For efficiency, we do not delegate to
17737 # those functions but instead duplicate the functionality here.
17738 func_dirname_and_basename ()
17739 {
17740 case ${1} in
17741 */*) func_dirname_result="${1%/*}${2}" ;;
17742 * ) func_dirname_result="${3}" ;;
17743 esac
17744 func_basename_result="${1##*/}"
17745 }
17746
17747 # func_stripname prefix suffix name
17748 # strip PREFIX and SUFFIX off of NAME.
17749 # PREFIX and SUFFIX must not contain globbing or regex special
17750 # characters, hashes, percent signs, but SUFFIX may contain a leading
17751 # dot (in which case that matches only a dot).
17752 func_stripname ()
17753 {
17754 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17755 # positional parameters, so assign one to ordinary parameter first.
17756 func_stripname_result=${3}
17757 func_stripname_result=${func_stripname_result#"${1}"}
17758 func_stripname_result=${func_stripname_result%"${2}"}
17759 }
17760
17761 # func_opt_split
17762 func_opt_split ()
17763 {
17764 func_opt_split_opt=${1%%=*}
17765 func_opt_split_arg=${1#*=}
17766 }
17767
17768 # func_lo2o object
17769 func_lo2o ()
17770 {
17771 case ${1} in
17772 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17773 *) func_lo2o_result=${1} ;;
17774 esac
17775 }
17776
17777 # func_xform libobj-or-source
17778 func_xform ()
17779 {
17780 func_xform_result=${1%.*}.lo
17781 }
17782
17783 # func_arith arithmetic-term...
17784 func_arith ()
17785 {
17786 func_arith_result=$(( $* ))
17787 }
17788
17789 # func_len string
17790 # STRING may not start with a hyphen.
17791 func_len ()
17792 {
17793 func_len_result=${#1}
17794 }
17795
17796 _LT_EOF
17797 ;;
17798 *) # Bourne compatible functions.
17799 cat << \_LT_EOF >> "$cfgfile"
17800
17801 # func_dirname file append nondir_replacement
17802 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17803 # otherwise set result to NONDIR_REPLACEMENT.
17804 func_dirname ()
17805 {
17806 # Extract subdirectory from the argument.
17807 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17808 if test "X$func_dirname_result" = "X${1}"; then
17809 func_dirname_result="${3}"
17810 else
17811 func_dirname_result="$func_dirname_result${2}"
17812 fi
17813 }
17814
17815 # func_basename file
17816 func_basename ()
17817 {
17818 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17819 }
17820
17821
17822 # func_stripname prefix suffix name
17823 # strip PREFIX and SUFFIX off of NAME.
17824 # PREFIX and SUFFIX must not contain globbing or regex special
17825 # characters, hashes, percent signs, but SUFFIX may contain a leading
17826 # dot (in which case that matches only a dot).
17827 # func_strip_suffix prefix name
17828 func_stripname ()
17829 {
17830 case ${2} in
17831 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17832 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17833 esac
17834 }
17835
17836 # sed scripts:
17837 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17838 my_sed_long_arg='1s/^-[^=]*=//'
17839
17840 # func_opt_split
17841 func_opt_split ()
17842 {
17843 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17844 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17845 }
17846
17847 # func_lo2o object
17848 func_lo2o ()
17849 {
17850 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17851 }
17852
17853 # func_xform libobj-or-source
17854 func_xform ()
17855 {
17856 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17857 }
17858
17859 # func_arith arithmetic-term...
17860 func_arith ()
17861 {
17862 func_arith_result=`expr "$@"`
17863 }
17864
17865 # func_len string
17866 # STRING may not start with a hyphen.
17867 func_len ()
17868 {
17869 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17870 }
17871
17872 _LT_EOF
17873 esac
17874
17875 case $lt_shell_append in
17876 yes)
17877 cat << \_LT_EOF >> "$cfgfile"
17878
17879 # func_append var value
17880 # Append VALUE to the end of shell variable VAR.
17881 func_append ()
17882 {
17883 eval "$1+=\$2"
17884 }
17885 _LT_EOF
17886 ;;
17887 *)
17888 cat << \_LT_EOF >> "$cfgfile"
17889
17890 # func_append var value
17891 # Append VALUE to the end of shell variable VAR.
17892 func_append ()
17893 {
17894 eval "$1=\$$1\$2"
17895 }
17896
17897 _LT_EOF
17898 ;;
17899 esac
17900
17901
17902 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17903 || (rm -f "$cfgfile"; exit 1)
17904
17905 mv -f "$cfgfile" "$ofile" ||
17906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17907 chmod +x "$ofile"
17908
17909
17910 cat <<_LT_EOF >> "$ofile"
17911
17912 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17913
17914 # The linker used to build libraries.
17915 LD=$lt_LD_CXX
17916
17917 # How to create reloadable object files.
17918 reload_flag=$lt_reload_flag_CXX
17919 reload_cmds=$lt_reload_cmds_CXX
17920
17921 # Commands used to build an old-style archive.
17922 old_archive_cmds=$lt_old_archive_cmds_CXX
17923
17924 # A language specific compiler.
17925 CC=$lt_compiler_CXX
17926
17927 # Is the compiler the GNU compiler?
17928 with_gcc=$GCC_CXX
17929
17930 # Compiler flag to turn off builtin functions.
17931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17932
17933 # How to pass a linker flag through the compiler.
17934 wl=$lt_lt_prog_compiler_wl_CXX
17935
17936 # Additional compiler flags for building library objects.
17937 pic_flag=$lt_lt_prog_compiler_pic_CXX
17938
17939 # Compiler flag to prevent dynamic linking.
17940 link_static_flag=$lt_lt_prog_compiler_static_CXX
17941
17942 # Does compiler simultaneously support -c and -o options?
17943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17944
17945 # Whether or not to add -lc for building shared libraries.
17946 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17947
17948 # Whether or not to disallow shared libs when runtime libs are static.
17949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17950
17951 # Compiler flag to allow reflexive dlopens.
17952 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17953
17954 # Compiler flag to generate shared objects directly from archives.
17955 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17956
17957 # Whether the compiler copes with passing no objects directly.
17958 compiler_needs_object=$lt_compiler_needs_object_CXX
17959
17960 # Create an old-style archive from a shared archive.
17961 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17962
17963 # Create a temporary old-style archive to link instead of a shared archive.
17964 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17965
17966 # Commands used to build a shared archive.
17967 archive_cmds=$lt_archive_cmds_CXX
17968 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17969
17970 # Commands used to build a loadable module if different from building
17971 # a shared archive.
17972 module_cmds=$lt_module_cmds_CXX
17973 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17974
17975 # Whether we are building with GNU ld or not.
17976 with_gnu_ld=$lt_with_gnu_ld_CXX
17977
17978 # Flag that allows shared libraries with undefined symbols to be built.
17979 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17980
17981 # Flag that enforces no undefined symbols.
17982 no_undefined_flag=$lt_no_undefined_flag_CXX
17983
17984 # Flag to hardcode \$libdir into a binary during linking.
17985 # This must work even if \$libdir does not exist
17986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17987
17988 # If ld is used when linking, flag to hardcode \$libdir into a binary
17989 # during linking. This must work even if \$libdir does not exist.
17990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17991
17992 # Whether we need a single "-rpath" flag with a separated argument.
17993 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17994
17995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17996 # DIR into the resulting binary.
17997 hardcode_direct=$hardcode_direct_CXX
17998
17999 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18000 # DIR into the resulting binary and the resulting library dependency is
18001 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18002 # library is relocated.
18003 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18004
18005 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18006 # into the resulting binary.
18007 hardcode_minus_L=$hardcode_minus_L_CXX
18008
18009 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18010 # into the resulting binary.
18011 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18012
18013 # Set to "yes" if building a shared library automatically hardcodes DIR
18014 # into the library and all subsequent libraries and executables linked
18015 # against it.
18016 hardcode_automatic=$hardcode_automatic_CXX
18017
18018 # Set to yes if linker adds runtime paths of dependent libraries
18019 # to runtime path list.
18020 inherit_rpath=$inherit_rpath_CXX
18021
18022 # Whether libtool must link a program against all its dependency libraries.
18023 link_all_deplibs=$link_all_deplibs_CXX
18024
18025 # Fix the shell variable \$srcfile for the compiler.
18026 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18027
18028 # Set to "yes" if exported symbols are required.
18029 always_export_symbols=$always_export_symbols_CXX
18030
18031 # The commands to list exported symbols.
18032 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18033
18034 # Symbols that should not be listed in the preloaded symbols.
18035 exclude_expsyms=$lt_exclude_expsyms_CXX
18036
18037 # Symbols that must always be exported.
18038 include_expsyms=$lt_include_expsyms_CXX
18039
18040 # Commands necessary for linking programs (against libraries) with templates.
18041 prelink_cmds=$lt_prelink_cmds_CXX
18042
18043 # Specify filename containing input files.
18044 file_list_spec=$lt_file_list_spec_CXX
18045
18046 # How to hardcode a shared library path into an executable.
18047 hardcode_action=$hardcode_action_CXX
18048
18049 # The directories searched by this compiler when creating a shared library.
18050 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18051
18052 # Dependencies to place before and after the objects being linked to
18053 # create a shared library.
18054 predep_objects=$lt_predep_objects_CXX
18055 postdep_objects=$lt_postdep_objects_CXX
18056 predeps=$lt_predeps_CXX
18057 postdeps=$lt_postdeps_CXX
18058
18059 # The library search path used internally by the compiler when linking
18060 # a shared library.
18061 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18062
18063 # ### END LIBTOOL TAG CONFIG: CXX
18064 _LT_EOF
18065
18066 ;;
18067 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18068 s!`test -f '$<' || echo '$(srcdir)/'`!!
18069 _EOF
18070 sed -f vpsed$$ $ac_file > tmp$$
18071 mv tmp$$ $ac_file
18072 rm vpsed$$
18073 echo 'MULTISUBDIR =' >> $ac_file
18074 ml_norecursion=yes
18075 . ${multi_basedir}/config-ml.in
18076 { ml_norecursion=; unset ml_norecursion;}
18077 ;;
18078
18079 esac
18080 done # for ac_tag
18081
18082
18083 as_fn_exit 0
18084 _ACEOF
18085 ac_clean_files=$ac_clean_files_save
18086
18087 test $ac_write_fail = 0 ||
18088 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18089
18090
18091 # configure is writing to config.log, and then calls config.status.
18092 # config.status does its own redirection, appending to config.log.
18093 # Unfortunately, on DOS this fails, as config.log is still kept open
18094 # by configure, so config.status won't be able to write to it; its
18095 # output is simply discarded. So we exec the FD to /dev/null,
18096 # effectively closing config.log, so it can be properly (re)opened and
18097 # appended to by config.status. When coming back to configure, we
18098 # need to make the FD available again.
18099 if test "$no_create" != yes; then
18100 ac_cs_success=:
18101 ac_config_status_args=
18102 test "$silent" = yes &&
18103 ac_config_status_args="$ac_config_status_args --quiet"
18104 exec 5>/dev/null
18105 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18106 exec 5>>config.log
18107 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18108 # would make configure fail if this is the last instruction.
18109 $ac_cs_success || as_fn_exit $?
18110 fi
18111 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18113 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18114 fi
18115