]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
Enable building libvtv with Intel CET
[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
1409 [default=default]
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-gcc-major-version-only
1418 use only GCC major number in filesystem paths
1419
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 CPP C preprocessor
1429 CXX C++ compiler command
1430 CXXFLAGS C++ compiler flags
1431 CXXCPP C++ preprocessor
1432
1433 Use these variables to override the choices made by `configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1435
1436 Report bugs to the package provider.
1437 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1438 General help using GNU software: <http://www.gnu.org/gethelp/>.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1449 ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 GNU Vtable Verification Runtime Library configure 1.0
1502 generated by GNU Autoconf 2.64
1503
1504 Copyright (C) 2009 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547 fi
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 return $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_try_cpp LINENO
1554 # ----------------------
1555 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_cpp ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } >/dev/null && {
1575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 }; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1587
1588 } # ac_fn_c_try_cpp
1589
1590 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1591 # -------------------------------------------------------
1592 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1593 # the include files in INCLUDES and setting the cache variable VAR
1594 # accordingly.
1595 ac_fn_c_check_header_mongrel ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600 $as_echo_n "checking for $2... " >&6; }
1601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1602 $as_echo_n "(cached) " >&6
1603 fi
1604 eval ac_res=\$$3
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606 $as_echo "$ac_res" >&6; }
1607 else
1608 # Is the header compilable?
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1610 $as_echo_n "checking $2 usability... " >&6; }
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 $4
1614 #include <$2>
1615 _ACEOF
1616 if ac_fn_c_try_compile "$LINENO"; then :
1617 ac_header_compiler=yes
1618 else
1619 ac_header_compiler=no
1620 fi
1621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1623 $as_echo "$ac_header_compiler" >&6; }
1624
1625 # Is the header present?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1627 $as_echo_n "checking $2 presence... " >&6; }
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_c_try_cpp "$LINENO"; then :
1633 ac_header_preproc=yes
1634 else
1635 ac_header_preproc=no
1636 fi
1637 rm -f conftest.err conftest.$ac_ext
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1639 $as_echo "$ac_header_preproc" >&6; }
1640
1641 # So? What about this header?
1642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1643 yes:no: )
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1645 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1647 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1648 ;;
1649 no:yes:* )
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1651 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1653 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1655 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1657 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660 ;;
1661 esac
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 $as_echo_n "(cached) " >&6
1666 else
1667 eval "$3=\$ac_header_compiler"
1668 fi
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 fi
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674
1675 } # ac_fn_c_check_header_mongrel
1676
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=$ac_status
1712 fi
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 return $ac_retval
1716
1717 } # ac_fn_c_try_run
1718
1719 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists and can be compiled using the include files in
1722 # INCLUDES, setting the cache variable VAR accordingly.
1723 ac_fn_c_check_header_compile ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 $4
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737 eval "$3=yes"
1738 else
1739 eval "$3=no"
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 fi
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747
1748 } # ac_fn_c_check_header_compile
1749
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 $as_test_x conftest$ac_exeext
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788 # interfere with the next link command; also delete a directory that is
1789 # left behind by Apple's compiler. We do this before executing the actions.
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794 } # ac_fn_c_try_link
1795
1796 # ac_fn_c_check_func LINENO FUNC VAR
1797 # ----------------------------------
1798 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1799 ac_fn_c_check_func ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1806 else
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1811 #define $2 innocuous_$2
1812
1813 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $2 (); below.
1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816 <limits.h> exists even on freestanding compilers. */
1817
1818 #ifdef __STDC__
1819 # include <limits.h>
1820 #else
1821 # include <assert.h>
1822 #endif
1823
1824 #undef $2
1825
1826 /* Override any GCC internal prototype to avoid an error.
1827 Use char because int might match the return type of a GCC
1828 builtin and then its argument prototype would still apply. */
1829 #ifdef __cplusplus
1830 extern "C"
1831 #endif
1832 char $2 ();
1833 /* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836 #if defined __stub_$2 || defined __stub___$2
1837 choke me
1838 #endif
1839
1840 int
1841 main ()
1842 {
1843 return $2 ();
1844 ;
1845 return 0;
1846 }
1847 _ACEOF
1848 if ac_fn_c_try_link "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext \
1854 conftest$ac_exeext conftest.$ac_ext
1855 fi
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860
1861 } # ac_fn_c_check_func
1862
1863 # ac_fn_cxx_try_compile LINENO
1864 # ----------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_compile ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1878 ac_status=$?
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1883 fi
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_cxx_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1
1895 fi
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 return $ac_retval
1898
1899 } # ac_fn_cxx_try_compile
1900
1901 # ac_fn_cxx_try_cpp LINENO
1902 # ------------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_cpp ()
1905 {
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_cpp conftest.$ac_ext"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1920 fi
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } >/dev/null && {
1923 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1924 test ! -s conftest.err
1925 }; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_retval=1
1932 fi
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 return $ac_retval
1935
1936 } # ac_fn_cxx_try_cpp
1937
1938 # ac_fn_cxx_try_link LINENO
1939 # -------------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_link ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext conftest$ac_exeext
1945 if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1958 fi
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest$ac_exeext && {
1964 test "$cross_compiling" = yes ||
1965 $as_test_x conftest$ac_exeext
1966 }; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972 ac_retval=1
1973 fi
1974 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1975 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1976 # interfere with the next link command; also delete a directory that is
1977 # left behind by Apple's compiler. We do this before executing the actions.
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 return $ac_retval
1981
1982 } # ac_fn_cxx_try_link
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1986
1987 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1988 generated by GNU Autoconf 2.64. Invocation command line was
1989
1990 $ $0 $@
1991
1992 _ACEOF
1993 exec 5>>config.log
1994 {
1995 cat <<_ASUNAME
1996 ## --------- ##
1997 ## Platform. ##
1998 ## --------- ##
1999
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008
2009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016
2017 _ASUNAME
2018
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 $as_echo "PATH: $as_dir"
2025 done
2026 IFS=$as_save_IFS
2027
2028 } >&5
2029
2030 cat >&5 <<_ACEOF
2031
2032
2033 ## ----------- ##
2034 ## Core tests. ##
2035 ## ----------- ##
2036
2037 _ACEOF
2038
2039
2040 # Keep a trace of the command line.
2041 # Strip out --no-create and --no-recursion so they do not pile up.
2042 # Strip out --silent because we don't want to record it for future runs.
2043 # Also quote any args containing shell meta-characters.
2044 # Make two passes to allow for proper duplicate-argument suppression.
2045 ac_configure_args=
2046 ac_configure_args0=
2047 ac_configure_args1=
2048 ac_must_keep_next=false
2049 for ac_pass in 1 2
2050 do
2051 for ac_arg
2052 do
2053 case $ac_arg in
2054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056 | -silent | --silent | --silen | --sile | --sil)
2057 continue ;;
2058 *\'*)
2059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 esac
2061 case $ac_pass in
2062 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063 2)
2064 as_fn_append ac_configure_args1 " '$ac_arg'"
2065 if test $ac_must_keep_next = true; then
2066 ac_must_keep_next=false # Got value, back to normal.
2067 else
2068 case $ac_arg in
2069 *=* | --config-cache | -C | -disable-* | --disable-* \
2070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072 | -with-* | --with-* | -without-* | --without-* | --x)
2073 case "$ac_configure_args0 " in
2074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 esac
2076 ;;
2077 -* ) ac_must_keep_next=true ;;
2078 esac
2079 fi
2080 as_fn_append ac_configure_args " '$ac_arg'"
2081 ;;
2082 esac
2083 done
2084 done
2085 { ac_configure_args0=; unset ac_configure_args0;}
2086 { ac_configure_args1=; unset ac_configure_args1;}
2087
2088 # When interrupted or exit'd, cleanup temporary files, and complete
2089 # config.log. We remove comments because anyway the quotes in there
2090 # would cause problems or look ugly.
2091 # WARNING: Use '\'' to represent an apostrophe within the trap.
2092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093 trap 'exit_status=$?
2094 # Save into config.log some information that might help in debugging.
2095 {
2096 echo
2097
2098 cat <<\_ASBOX
2099 ## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##
2102 _ASBOX
2103 echo
2104 # The following way of writing the cache mishandles newlines in values,
2105 (
2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107 eval ac_val=\$$ac_var
2108 case $ac_val in #(
2109 *${as_nl}*)
2110 case $ac_var in #(
2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113 esac
2114 case $ac_var in #(
2115 _ | IFS | as_nl) ;; #(
2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117 *) { eval $ac_var=; unset $ac_var;} ;;
2118 esac ;;
2119 esac
2120 done
2121 (set) 2>&1 |
2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123 *${as_nl}ac_space=\ *)
2124 sed -n \
2125 "s/'\''/'\''\\\\'\'''\''/g;
2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127 ;; #(
2128 *)
2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2130 ;;
2131 esac |
2132 sort
2133 )
2134 echo
2135
2136 cat <<\_ASBOX
2137 ## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##
2140 _ASBOX
2141 echo
2142 for ac_var in $ac_subst_vars
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2151
2152 if test -n "$ac_subst_files"; then
2153 cat <<\_ASBOX
2154 ## ------------------- ##
2155 ## File substitutions. ##
2156 ## ------------------- ##
2157 _ASBOX
2158 echo
2159 for ac_var in $ac_subst_files
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2168 fi
2169
2170 if test -s confdefs.h; then
2171 cat <<\_ASBOX
2172 ## ----------- ##
2173 ## confdefs.h. ##
2174 ## ----------- ##
2175 _ASBOX
2176 echo
2177 cat confdefs.h
2178 echo
2179 fi
2180 test "$ac_signal" != 0 &&
2181 $as_echo "$as_me: caught signal $ac_signal"
2182 $as_echo "$as_me: exit $exit_status"
2183 } >&5
2184 rm -f core *.core core.conftest.* &&
2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186 exit $exit_status
2187 ' 0
2188 for ac_signal in 1 2 13 15; do
2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190 done
2191 ac_signal=0
2192
2193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2194 rm -f -r conftest* confdefs.h
2195
2196 $as_echo "/* confdefs.h */" > confdefs.h
2197
2198 # Predefined preprocessor variables.
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_NAME "$PACKAGE_NAME"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_STRING "$PACKAGE_STRING"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_URL "$PACKAGE_URL"
2222 _ACEOF
2223
2224
2225 # Let the site file select an alternate cache file if it wants to.
2226 # Prefer an explicitly selected file to automatically selected ones.
2227 ac_site_file1=NONE
2228 ac_site_file2=NONE
2229 if test -n "$CONFIG_SITE"; then
2230 ac_site_file1=$CONFIG_SITE
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2237 fi
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 do
2240 test "x$ac_site_file" = xNONE && continue
2241 if test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file"
2246 fi
2247 done
2248
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special
2251 # files actually), so we avoid doing that.
2252 if test -f "$cache_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 $as_echo "$as_me: loading cache $cache_file" >&6;}
2255 case $cache_file in
2256 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2257 *) . "./$cache_file";;
2258 esac
2259 fi
2260 else
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 $as_echo "$as_me: creating cache $cache_file" >&6;}
2263 >$cache_file
2264 fi
2265
2266 # Check that the precious variables saved in the cache have kept the same
2267 # value.
2268 ac_cache_corrupted=false
2269 for ac_var in $ac_precious_vars; do
2270 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2271 eval ac_new_set=\$ac_env_${ac_var}_set
2272 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2273 eval ac_new_val=\$ac_env_${ac_var}_value
2274 case $ac_old_set,$ac_new_set in
2275 set,)
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2277 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2278 ac_cache_corrupted=: ;;
2279 ,set)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,);;
2284 *)
2285 if test "x$ac_old_val" != "x$ac_new_val"; then
2286 # differences in whitespace do not lead to failure.
2287 ac_old_val_w=`echo x $ac_old_val`
2288 ac_new_val_w=`echo x $ac_new_val`
2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2291 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2292 ac_cache_corrupted=:
2293 else
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2295 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2296 eval $ac_var=\$ac_old_val
2297 fi
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2299 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2301 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2302 fi;;
2303 esac
2304 # Pass precious variables to config.status.
2305 if test "$ac_new_set" = set; then
2306 case $ac_new_val in
2307 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 *) ac_arg=$ac_var=$ac_new_val ;;
2309 esac
2310 case " $ac_configure_args " in
2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2312 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2313 esac
2314 fi
2315 done
2316 if $ac_cache_corrupted; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2320 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2321 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2322 fi
2323 ## -------------------- ##
2324 ## Main body of script. ##
2325 ## -------------------- ##
2326
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
2333
2334
2335
2336
2337 #AC_INIT(package-unused, version-unused, libvtv)
2338
2339
2340 # Default to --enable-multilib
2341 # Check whether --enable-multilib was given.
2342 if test "${enable_multilib+set}" = set; then :
2343 enableval=$enable_multilib; case "$enableval" in
2344 yes) multilib=yes ;;
2345 no) multilib=no ;;
2346 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2347 esac
2348 else
2349 multilib=yes
2350 fi
2351
2352
2353 # We may get other options which we leave undocumented:
2354 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2355 # See config-ml.in if you want the gory details.
2356
2357 if test "$srcdir" = "."; then
2358 if test "$with_target_subdir" != "."; then
2359 multi_basedir="$srcdir/$with_multisrctop../.."
2360 else
2361 multi_basedir="$srcdir/$with_multisrctop.."
2362 fi
2363 else
2364 multi_basedir="$srcdir/.."
2365 fi
2366
2367
2368 # Even if the default multilib is not a cross compilation,
2369 # it may be that some of the other multilibs are.
2370 if test $cross_compiling = no && test $multilib = yes \
2371 && test "x${with_multisubdir}" != x ; then
2372 cross_compiling=maybe
2373 fi
2374
2375 ac_config_commands="$ac_config_commands default-1"
2376
2377
2378 # -------
2379 # Options
2380 # -------
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2382 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2383 # Check whether --enable-version-specific-runtime-libs was given.
2384 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2385 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2386 yes) version_specific_libs=yes ;;
2387 no) version_specific_libs=no ;;
2388 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2389 esac
2390 else
2391 version_specific_libs=no
2392 fi
2393
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2395 $as_echo "$version_specific_libs" >&6; }
2396
2397 # Do not delete or change the following two lines. For why, see
2398 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2399 ac_aux_dir=
2400 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2401 for ac_t in install-sh install.sh shtool; do
2402 if test -f "$ac_dir/$ac_t"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/$ac_t -c"
2405 break 2
2406 fi
2407 done
2408 done
2409 if test -z "$ac_aux_dir"; then
2410 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2411 fi
2412
2413 # These three variables are undocumented and unsupported,
2414 # and are intended to be withdrawn in a future Autoconf release.
2415 # They can cause serious problems if a builder's source tree is in a directory
2416 # whose full name contains unusual characters.
2417 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2418 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2419 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2420
2421
2422 # Make sure we can run config.sub.
2423 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2424 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2425
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2427 $as_echo_n "checking build system type... " >&6; }
2428 if test "${ac_cv_build+set}" = set; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2436 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2437 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2438
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2441 $as_echo "$ac_cv_build" >&6; }
2442 case $ac_cv_build in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2445 esac
2446 build=$ac_cv_build
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_build
2449 shift
2450 build_cpu=$1
2451 build_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 build_os=$*
2456 IFS=$ac_save_IFS
2457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458
2459
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2461 $as_echo_n "checking host system type... " >&6; }
2462 if test "${ac_cv_host+set}" = set; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 if test "x$host_alias" = x; then
2466 ac_cv_host=$ac_cv_build
2467 else
2468 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2470 fi
2471
2472 fi
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2474 $as_echo "$ac_cv_host" >&6; }
2475 case $ac_cv_host in
2476 *-*-*) ;;
2477 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2478 esac
2479 host=$ac_cv_host
2480 ac_save_IFS=$IFS; IFS='-'
2481 set x $ac_cv_host
2482 shift
2483 host_cpu=$1
2484 host_vendor=$2
2485 shift; shift
2486 # Remember, the first character of IFS is used to create $*,
2487 # except with old shells:
2488 host_os=$*
2489 IFS=$ac_save_IFS
2490 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
2492
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2494 $as_echo_n "checking target system type... " >&6; }
2495 if test "${ac_cv_target+set}" = set; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 if test "x$target_alias" = x; then
2499 ac_cv_target=$ac_cv_host
2500 else
2501 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2502 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2503 fi
2504
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2507 $as_echo "$ac_cv_target" >&6; }
2508 case $ac_cv_target in
2509 *-*-*) ;;
2510 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2511 esac
2512 target=$ac_cv_target
2513 ac_save_IFS=$IFS; IFS='-'
2514 set x $ac_cv_target
2515 shift
2516 target_cpu=$1
2517 target_vendor=$2
2518 shift; shift
2519 # Remember, the first character of IFS is used to create $*,
2520 # except with old shells:
2521 target_os=$*
2522 IFS=$ac_save_IFS
2523 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2524
2525
2526 # The aliases save the names the user supplied, while $host etc.
2527 # will get canonicalized.
2528 test -n "$target_alias" &&
2529 test "$program_prefix$program_suffix$program_transform_name" = \
2530 NONENONEs,x,x, &&
2531 program_prefix=${target_alias}-
2532
2533 target_alias=${target_alias-$host_alias}
2534
2535 case ${build_alias} in
2536 "") build_noncanonical=${build} ;;
2537 *) build_noncanonical=${build_alias} ;;
2538 esac
2539
2540 case ${host_alias} in
2541 "") host_noncanonical=${build_noncanonical} ;;
2542 *) host_noncanonical=${host_alias} ;;
2543 esac
2544
2545 case ${target_alias} in
2546 "") target_noncanonical=${host_noncanonical} ;;
2547 *) target_noncanonical=${target_alias} ;;
2548 esac
2549
2550
2551
2552
2553
2554 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2555 -I\$(top_builddir)/../libstdc++-v3/include \
2556 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2557 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2558 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2559 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2560
2561
2562
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600 $as_echo "$CC" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606
2607 fi
2608 if test -z "$ac_cv_prog_CC"; then
2609 ac_ct_CC=$CC
2610 # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_ac_ct_CC="gcc"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2640 $as_echo "$ac_ct_CC" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650 yes:)
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655 CC=$ac_ct_CC
2656 fi
2657 else
2658 CC="$ac_cv_prog_CC"
2659 fi
2660
2661 if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}cc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CC="${ac_tool_prefix}cc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700 fi
2701 fi
2702 if test -z "$CC"; then
2703 # Extract the first word of "cc", so it can be a program name with args.
2704 set dummy cc; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if test "${ac_cv_prog_CC+set}" = set; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712 else
2713 ac_prog_rejected=no
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2722 ac_prog_rejected=yes
2723 continue
2724 fi
2725 ac_cv_prog_CC="cc"
2726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 if test $ac_prog_rejected = yes; then
2734 # We found a bogon in the path, so make sure we never use it.
2735 set dummy $ac_cv_prog_CC
2736 shift
2737 if test $# != 0; then
2738 # We chose a different compiler from the bogus one.
2739 # However, it has the same basename, so the bogon will be chosen
2740 # first if we set CC to just the basename; use the full file name.
2741 shift
2742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2743 fi
2744 fi
2745 fi
2746 fi
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750 $as_echo "$CC" >&6; }
2751 else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757 fi
2758 if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 for ac_prog in cl.exe
2761 do
2762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799 test -n "$CC" && break
2800 done
2801 fi
2802 if test -z "$CC"; then
2803 ac_ct_CC=$CC
2804 for ac_prog in cl.exe
2805 do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_ac_ct_CC="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834 if test -n "$ac_ct_CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2836 $as_echo "$ac_ct_CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843 test -n "$ac_ct_CC" && break
2844 done
2845
2846 if test "x$ac_ct_CC" = x; then
2847 CC=""
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850 yes:)
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2853 ac_tool_warned=yes ;;
2854 esac
2855 CC=$ac_ct_CC
2856 fi
2857 fi
2858
2859 fi
2860
2861
2862 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error "no acceptable C compiler found in \$PATH
2865 See \`config.log' for more details." "$LINENO" 5; }
2866
2867 # Provide some information about the compiler.
2868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2869 set X $ac_compile
2870 ac_compiler=$2
2871 for ac_option in --version -v -V -qversion; do
2872 { { ac_try="$ac_compiler $ac_option >&5"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878 $as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2880 ac_status=$?
2881 if test -s conftest.err; then
2882 sed '10a\
2883 ... rest of stderr output deleted ...
2884 10q' conftest.err >conftest.er1
2885 cat conftest.er1 >&5
2886 rm -f conftest.er1 conftest.err
2887 fi
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }
2890 done
2891
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2894
2895 int
2896 main ()
2897 {
2898
2899 ;
2900 return 0;
2901 }
2902 _ACEOF
2903 ac_clean_files_save=$ac_clean_files
2904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2905 # Try to create an executable without -o first, disregard a.out.
2906 # It will help us diagnose broken compilers, and finding out an intuition
2907 # of exeext.
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2909 $as_echo_n "checking for C compiler default output file name... " >&6; }
2910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2911
2912 # The possible output files:
2913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2914
2915 ac_rmfiles=
2916 for ac_file in $ac_files
2917 do
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2921 esac
2922 done
2923 rm -f $ac_rmfiles
2924
2925 if { { ac_try="$ac_link_default"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_link_default") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2939 # so that the user can short-circuit this test for compilers unknown to
2940 # Autoconf.
2941 for ac_file in $ac_files ''
2942 do
2943 test -f "$ac_file" || continue
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2946 ;;
2947 [ab].out )
2948 # We found the default executable, but exeext='' is most
2949 # certainly right.
2950 break;;
2951 *.* )
2952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2953 then :; else
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2955 fi
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2960 # actually working.
2961 break;;
2962 * )
2963 break;;
2964 esac
2965 done
2966 test "$ac_cv_exeext" = no && ac_cv_exeext=
2967
2968 else
2969 ac_file=''
2970 fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2972 $as_echo "$ac_file" >&6; }
2973 if test -z "$ac_file"; then :
2974 $as_echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 { as_fn_set_status 77
2980 as_fn_error "C compiler cannot create executables
2981 See \`config.log' for more details." "$LINENO" 5; }; }
2982 fi
2983 ac_exeext=$ac_cv_exeext
2984
2985 # Check that the compiler produces executables we can run. If not, either
2986 # the compiler is broken, or we cross compile.
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2988 $as_echo_n "checking whether the C compiler works... " >&6; }
2989 # If not cross compiling, check that we can run a simple program.
2990 if test "$cross_compiling" != yes; then
2991 if { ac_try='./$ac_file'
2992 { { case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995 esac
2996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997 $as_echo "$ac_try_echo"; } >&5
2998 (eval "$ac_try") 2>&5
2999 ac_status=$?
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }; }; then
3002 cross_compiling=no
3003 else
3004 if test "$cross_compiling" = maybe; then
3005 cross_compiling=yes
3006 else
3007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error "cannot run C compiled programs.
3010 If you meant to cross compile, use \`--host'.
3011 See \`config.log' for more details." "$LINENO" 5; }
3012 fi
3013 fi
3014 fi
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016 $as_echo "yes" >&6; }
3017
3018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3019 ac_clean_files=$ac_clean_files_save
3020 # Check that the compiler produces executables we can run. If not, either
3021 # the compiler is broken, or we cross compile.
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3023 $as_echo_n "checking whether we are cross compiling... " >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3025 $as_echo "$cross_compiling" >&6; }
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3028 $as_echo_n "checking for suffix of executables... " >&6; }
3029 if { { ac_try="$ac_link"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3035 $as_echo "$ac_try_echo"; } >&5
3036 (eval "$ac_link") 2>&5
3037 ac_status=$?
3038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039 test $ac_status = 0; }; then :
3040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3042 # work properly (i.e., refer to `conftest.exe'), while it won't with
3043 # `rm'.
3044 for ac_file in conftest.exe conftest conftest.*; do
3045 test -f "$ac_file" || continue
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 break;;
3050 * ) break;;
3051 esac
3052 done
3053 else
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error "cannot compute suffix of executables: cannot compile and link
3057 See \`config.log' for more details." "$LINENO" 5; }
3058 fi
3059 rm -f conftest$ac_cv_exeext
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3061 $as_echo "$ac_cv_exeext" >&6; }
3062
3063 rm -f conftest.$ac_ext
3064 EXEEXT=$ac_cv_exeext
3065 ac_exeext=$EXEEXT
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3067 $as_echo_n "checking for suffix of object files... " >&6; }
3068 if test "${ac_cv_objext+set}" = set; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3073
3074 int
3075 main ()
3076 {
3077
3078 ;
3079 return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.o conftest.obj
3083 if { { ac_try="$ac_compile"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compile") 2>&5
3091 ac_status=$?
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }; then :
3094 for ac_file in conftest.o conftest.obj conftest.*; do
3095 test -f "$ac_file" || continue;
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099 break;;
3100 esac
3101 done
3102 else
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error "cannot compute suffix of object files: cannot compile
3109 See \`config.log' for more details." "$LINENO" 5; }
3110 fi
3111 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3112 fi
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3114 $as_echo "$ac_cv_objext" >&6; }
3115 OBJEXT=$ac_cv_objext
3116 ac_objext=$OBJEXT
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3118 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3119 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3124
3125 int
3126 main ()
3127 {
3128 #ifndef __GNUC__
3129 choke me
3130 #endif
3131
3132 ;
3133 return 0;
3134 }
3135 _ACEOF
3136 if ac_fn_c_try_compile "$LINENO"; then :
3137 ac_compiler_gnu=yes
3138 else
3139 ac_compiler_gnu=no
3140 fi
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3143
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3146 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3147 if test $ac_compiler_gnu = yes; then
3148 GCC=yes
3149 else
3150 GCC=
3151 fi
3152 ac_test_CFLAGS=${CFLAGS+set}
3153 ac_save_CFLAGS=$CFLAGS
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3155 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3156 if test "${ac_cv_prog_cc_g+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 ac_save_c_werror_flag=$ac_c_werror_flag
3160 ac_c_werror_flag=yes
3161 ac_cv_prog_cc_g=no
3162 CFLAGS="-g"
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3165
3166 int
3167 main ()
3168 {
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175 ac_cv_prog_cc_g=yes
3176 else
3177 CFLAGS=""
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3180
3181 int
3182 main ()
3183 {
3184
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 if ac_fn_c_try_compile "$LINENO"; then :
3190
3191 else
3192 ac_c_werror_flag=$ac_save_c_werror_flag
3193 CFLAGS="-g"
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3196
3197 int
3198 main ()
3199 {
3200
3201 ;
3202 return 0;
3203 }
3204 _ACEOF
3205 if ac_fn_c_try_compile "$LINENO"; then :
3206 ac_cv_prog_cc_g=yes
3207 fi
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 fi
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3216 $as_echo "$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3221 CFLAGS="-g -O2"
3222 else
3223 CFLAGS="-g"
3224 fi
3225 else
3226 if test "$GCC" = yes; then
3227 CFLAGS="-O2"
3228 else
3229 CFLAGS=
3230 fi
3231 fi
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3233 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3234 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 ac_cv_prog_cc_c89=no
3238 ac_save_CC=$CC
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241 #include <stdarg.h>
3242 #include <stdio.h>
3243 #include <sys/types.h>
3244 #include <sys/stat.h>
3245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246 struct buf { int x; };
3247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248 static char *e (p, i)
3249 char **p;
3250 int i;
3251 {
3252 return p[i];
3253 }
3254 static char *f (char * (*g) (char **, int), char **p, ...)
3255 {
3256 char *s;
3257 va_list v;
3258 va_start (v,p);
3259 s = g (p, va_arg (v,int));
3260 va_end (v);
3261 return s;
3262 }
3263
3264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3265 function prototypes and stuff, but not '\xHH' hex character constants.
3266 These don't provoke an error unfortunately, instead are silently treated
3267 as 'x'. The following induces an error, until -std is added to get
3268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3269 array size at least. It's necessary to write '\x00'==0 to get something
3270 that's true only with -std. */
3271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272
3273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274 inside strings and character constants. */
3275 #define FOO(x) 'x'
3276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277
3278 int test (int i, double x);
3279 struct s1 {int (*f) (int a);};
3280 struct s2 {int (*f) (double a);};
3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282 int argc;
3283 char **argv;
3284 int
3285 main ()
3286 {
3287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294 do
3295 CC="$ac_save_CC $ac_arg"
3296 if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_cv_prog_cc_c89=$ac_arg
3298 fi
3299 rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
3301 done
3302 rm -f conftest.$ac_ext
3303 CC=$ac_save_CC
3304
3305 fi
3306 # AC_CACHE_VAL
3307 case "x$ac_cv_prog_cc_c89" in
3308 x)
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3310 $as_echo "none needed" >&6; } ;;
3311 xno)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3313 $as_echo "unsupported" >&6; } ;;
3314 *)
3315 CC="$CC $ac_cv_prog_cc_c89"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3317 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3318 esac
3319 if test "x$ac_cv_prog_cc_c89" != xno; then :
3320
3321 fi
3322
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3336 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3337 # On Suns, sometimes $CPP names a directory.
3338 if test -n "$CPP" && test -d "$CPP"; then
3339 CPP=
3340 fi
3341 if test -z "$CPP"; then
3342 if test "${ac_cv_prog_CPP+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 # Double quotes because CPP needs to be expanded
3346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3347 do
3348 ac_preproc_ok=false
3349 for ac_c_preproc_warn_flag in '' yes
3350 do
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359 #ifdef __STDC__
3360 # include <limits.h>
3361 #else
3362 # include <assert.h>
3363 #endif
3364 Syntax error
3365 _ACEOF
3366 if ac_fn_c_try_cpp "$LINENO"; then :
3367
3368 else
3369 # Broken: fails on valid input.
3370 continue
3371 fi
3372 rm -f conftest.err conftest.$ac_ext
3373
3374 # OK, works on sane cases. Now check whether nonexistent headers
3375 # can be detected and how.
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378 #include <ac_nonexistent.h>
3379 _ACEOF
3380 if ac_fn_c_try_cpp "$LINENO"; then :
3381 # Broken: success on invalid input.
3382 continue
3383 else
3384 # Passes both tests.
3385 ac_preproc_ok=:
3386 break
3387 fi
3388 rm -f conftest.err conftest.$ac_ext
3389
3390 done
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then :
3394 break
3395 fi
3396
3397 done
3398 ac_cv_prog_CPP=$CPP
3399
3400 fi
3401 CPP=$ac_cv_prog_CPP
3402 else
3403 ac_cv_prog_CPP=$CPP
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3406 $as_echo "$CPP" >&6; }
3407 ac_preproc_ok=false
3408 for ac_c_preproc_warn_flag in '' yes
3409 do
3410 # Use a header file that comes with gcc, so configuring glibc
3411 # with a fresh cross-compiler works.
3412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 # <limits.h> exists even on freestanding compilers.
3414 # On the NeXT, cc -E runs the code through the compiler's parser,
3415 # not just through cpp. "Syntax error" is here to catch this case.
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418 #ifdef __STDC__
3419 # include <limits.h>
3420 #else
3421 # include <assert.h>
3422 #endif
3423 Syntax error
3424 _ACEOF
3425 if ac_fn_c_try_cpp "$LINENO"; then :
3426
3427 else
3428 # Broken: fails on valid input.
3429 continue
3430 fi
3431 rm -f conftest.err conftest.$ac_ext
3432
3433 # OK, works on sane cases. Now check whether nonexistent headers
3434 # can be detected and how.
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if ac_fn_c_try_cpp "$LINENO"; then :
3440 # Broken: success on invalid input.
3441 continue
3442 else
3443 # Passes both tests.
3444 ac_preproc_ok=:
3445 break
3446 fi
3447 rm -f conftest.err conftest.$ac_ext
3448
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then :
3453
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." "$LINENO" 5; }
3459 fi
3460
3461 ac_ext=c
3462 ac_cpp='$CPP $CPPFLAGS'
3463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3469 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3470 if test "${ac_cv_path_GREP+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -z "$GREP"; then
3474 ac_path_GREP_found=false
3475 # Loop through the user's path and test for each of PROGNAME-LIST
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3478 do
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_prog in grep ggrep; do
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3484 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3485 # Check for GNU ac_path_GREP and select it if it is found.
3486 # Check for GNU $ac_path_GREP
3487 case `"$ac_path_GREP" --version 2>&1` in
3488 *GNU*)
3489 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3490 *)
3491 ac_count=0
3492 $as_echo_n 0123456789 >"conftest.in"
3493 while :
3494 do
3495 cat "conftest.in" "conftest.in" >"conftest.tmp"
3496 mv "conftest.tmp" "conftest.in"
3497 cp "conftest.in" "conftest.nl"
3498 $as_echo 'GREP' >> "conftest.nl"
3499 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3501 as_fn_arith $ac_count + 1 && ac_count=$as_val
3502 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3503 # Best one so far, save it but keep looking for a better one
3504 ac_cv_path_GREP="$ac_path_GREP"
3505 ac_path_GREP_max=$ac_count
3506 fi
3507 # 10*(2^10) chars as input seems more than enough
3508 test $ac_count -gt 10 && break
3509 done
3510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3511 esac
3512
3513 $ac_path_GREP_found && break 3
3514 done
3515 done
3516 done
3517 IFS=$as_save_IFS
3518 if test -z "$ac_cv_path_GREP"; then
3519 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3520 fi
3521 else
3522 ac_cv_path_GREP=$GREP
3523 fi
3524
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3527 $as_echo "$ac_cv_path_GREP" >&6; }
3528 GREP="$ac_cv_path_GREP"
3529
3530
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3532 $as_echo_n "checking for egrep... " >&6; }
3533 if test "${ac_cv_path_EGREP+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3537 then ac_cv_path_EGREP="$GREP -E"
3538 else
3539 if test -z "$EGREP"; then
3540 ac_path_EGREP_found=false
3541 # Loop through the user's path and test for each of PROGNAME-LIST
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_prog in egrep; do
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3550 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3551 # Check for GNU ac_path_EGREP and select it if it is found.
3552 # Check for GNU $ac_path_EGREP
3553 case `"$ac_path_EGREP" --version 2>&1` in
3554 *GNU*)
3555 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3556 *)
3557 ac_count=0
3558 $as_echo_n 0123456789 >"conftest.in"
3559 while :
3560 do
3561 cat "conftest.in" "conftest.in" >"conftest.tmp"
3562 mv "conftest.tmp" "conftest.in"
3563 cp "conftest.in" "conftest.nl"
3564 $as_echo 'EGREP' >> "conftest.nl"
3565 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3567 as_fn_arith $ac_count + 1 && ac_count=$as_val
3568 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3569 # Best one so far, save it but keep looking for a better one
3570 ac_cv_path_EGREP="$ac_path_EGREP"
3571 ac_path_EGREP_max=$ac_count
3572 fi
3573 # 10*(2^10) chars as input seems more than enough
3574 test $ac_count -gt 10 && break
3575 done
3576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3577 esac
3578
3579 $ac_path_EGREP_found && break 3
3580 done
3581 done
3582 done
3583 IFS=$as_save_IFS
3584 if test -z "$ac_cv_path_EGREP"; then
3585 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3586 fi
3587 else
3588 ac_cv_path_EGREP=$EGREP
3589 fi
3590
3591 fi
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3594 $as_echo "$ac_cv_path_EGREP" >&6; }
3595 EGREP="$ac_cv_path_EGREP"
3596
3597
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3599 $as_echo_n "checking for ANSI C header files... " >&6; }
3600 if test "${ac_cv_header_stdc+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605 #include <stdlib.h>
3606 #include <stdarg.h>
3607 #include <string.h>
3608 #include <float.h>
3609
3610 int
3611 main ()
3612 {
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_header_stdc=yes
3620 else
3621 ac_cv_header_stdc=no
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624
3625 if test $ac_cv_header_stdc = yes; then
3626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <string.h>
3630
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "memchr" >/dev/null 2>&1; then :
3634
3635 else
3636 ac_cv_header_stdc=no
3637 fi
3638 rm -f conftest*
3639
3640 fi
3641
3642 if test $ac_cv_header_stdc = yes; then
3643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646 #include <stdlib.h>
3647
3648 _ACEOF
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 $EGREP "free" >/dev/null 2>&1; then :
3651
3652 else
3653 ac_cv_header_stdc=no
3654 fi
3655 rm -f conftest*
3656
3657 fi
3658
3659 if test $ac_cv_header_stdc = yes; then
3660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661 if test "$cross_compiling" = yes; then :
3662 :
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 #include <ctype.h>
3667 #include <stdlib.h>
3668 #if ((' ' & 0x0FF) == 0x020)
3669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3671 #else
3672 # define ISLOWER(c) \
3673 (('a' <= (c) && (c) <= 'i') \
3674 || ('j' <= (c) && (c) <= 'r') \
3675 || ('s' <= (c) && (c) <= 'z'))
3676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3677 #endif
3678
3679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3680 int
3681 main ()
3682 {
3683 int i;
3684 for (i = 0; i < 256; i++)
3685 if (XOR (islower (i), ISLOWER (i))
3686 || toupper (i) != TOUPPER (i))
3687 return 2;
3688 return 0;
3689 }
3690 _ACEOF
3691 if ac_fn_c_try_run "$LINENO"; then :
3692
3693 else
3694 ac_cv_header_stdc=no
3695 fi
3696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3697 conftest.$ac_objext conftest.beam conftest.$ac_ext
3698 fi
3699
3700 fi
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3703 $as_echo "$ac_cv_header_stdc" >&6; }
3704 if test $ac_cv_header_stdc = yes; then
3705
3706 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3707
3708 fi
3709
3710 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3711 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3712 inttypes.h stdint.h unistd.h
3713 do :
3714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3715 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3716 "
3717 eval as_val=\$$as_ac_Header
3718 if test "x$as_val" = x""yes; then :
3719 cat >>confdefs.h <<_ACEOF
3720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3721 _ACEOF
3722
3723 fi
3724
3725 done
3726
3727
3728
3729 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3730 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3731 MINIX=yes
3732 else
3733 MINIX=
3734 fi
3735
3736
3737 if test "$MINIX" = yes; then
3738
3739 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3740
3741
3742 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3743
3744
3745 $as_echo "#define _MINIX 1" >>confdefs.h
3746
3747 fi
3748
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3751 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3752 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 # define __EXTENSIONS__ 1
3759 $ac_includes_default
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_safe_to_define___extensions__=yes
3770 else
3771 ac_cv_safe_to_define___extensions__=no
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3776 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3777 test $ac_cv_safe_to_define___extensions__ = yes &&
3778 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3779
3780 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3781
3782 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3783
3784 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3785
3786 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3787
3788
3789
3790 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
3792 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
3793 # Check whether --enable-vtable-verify was given.
3794 if test "${enable_vtable_verify+set}" = set; then :
3795 enableval=$enable_vtable_verify; case "$enableval" in
3796 yes) enable_vtable_verify=yes ;;
3797 no) enable_vtable_verify=no ;;
3798 *) enable_vtable_verify=no;;
3799 esac
3800 else
3801 enable_vtable_verify=no
3802 fi
3803
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
3805 $as_echo "$enable_vtable_verify" >&6; }
3806
3807 # See if supported.
3808 unset VTV_SUPPORTED
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
3810 $as_echo_n "checking for host support for vtable verification... " >&6; }
3811 . ${srcdir}/configure.tgt
3812 case ${host} in
3813 *-*-solaris2*)
3814 # libvtv requires init priority support, which depends on the linker
3815 # used on Solaris.
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
3817 $as_echo_n "checking for init priority support... " >&6; }
3818 if test "${libvtv_cv_init_priority+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824
3825 int
3826 main ()
3827 {
3828 void ip (void) __attribute__ ((constructor (1)));
3829 ;
3830 return 0;
3831 }
3832 _ACEOF
3833 if ac_fn_c_try_compile "$LINENO"; then :
3834 libgcc_cv_init_priority=yes
3835 else
3836 libgcc_cv_init_priority=no
3837 fi
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 fi
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
3841 $as_echo "$libvtv_cv_init_priority" >&6; }
3842 if test x$libvtv_cv_init_priority = xno; then
3843 VTV_SUPPORTED=no
3844 fi
3845 # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
3846 # configure.tgt restricting to libvtv to Solaris 11+.
3847 ;;
3848 esac
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
3850 $as_echo "$VTV_SUPPORTED" >&6; }
3851
3852 # Decide if it's usable.
3853 use_vtable_verify=no
3854 if test "x$VTV_SUPPORTED" = "xyes"; then
3855 if test "x$enable_vtable_verify" = "xyes"; then
3856 use_vtable_verify=yes
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
3858 $as_echo "$as_me: using vtable verification" >&6;}
3859 fi
3860 fi
3861 if test $use_vtable_verify = yes; then
3862 ENABLE_VTABLE_VERIFY_TRUE=
3863 ENABLE_VTABLE_VERIFY_FALSE='#'
3864 else
3865 ENABLE_VTABLE_VERIFY_TRUE='#'
3866 ENABLE_VTABLE_VERIFY_FALSE=
3867 fi
3868
3869
3870 am__api_version='1.11'
3871
3872 # Find a good install program. We prefer a C program (faster),
3873 # so one script is as good as another. But avoid the broken or
3874 # incompatible versions:
3875 # SysV /etc/install, /usr/sbin/install
3876 # SunOS /usr/etc/install
3877 # IRIX /sbin/install
3878 # AIX /bin/install
3879 # AmigaOS /C/install, which installs bootblocks on floppy discs
3880 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3881 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3882 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3883 # OS/2's system install, which has a completely different semantic
3884 # ./install, which can be erroneously created by make from ./install.sh.
3885 # Reject install programs that cannot install multiple files.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3887 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3888 if test -z "$INSTALL"; then
3889 if test "${ac_cv_path_install+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 # Account for people who put trailing slashes in PATH elements.
3898 case $as_dir/ in #((
3899 ./ | .// | /[cC]/* | \
3900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3901 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3902 /usr/ucb/* ) ;;
3903 *)
3904 # OSF1 and SCO ODT 3.0 have their own names for install.
3905 # Don't use installbsd from OSF since it installs stuff as root
3906 # by default.
3907 for ac_prog in ginstall scoinst install; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3910 if test $ac_prog = install &&
3911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3912 # AIX install. It has an incompatible calling convention.
3913 :
3914 elif test $ac_prog = install &&
3915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3916 # program-specific install script used by HP pwplus--don't use.
3917 :
3918 else
3919 rm -rf conftest.one conftest.two conftest.dir
3920 echo one > conftest.one
3921 echo two > conftest.two
3922 mkdir conftest.dir
3923 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3924 test -s conftest.one && test -s conftest.two &&
3925 test -s conftest.dir/conftest.one &&
3926 test -s conftest.dir/conftest.two
3927 then
3928 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3929 break 3
3930 fi
3931 fi
3932 fi
3933 done
3934 done
3935 ;;
3936 esac
3937
3938 done
3939 IFS=$as_save_IFS
3940
3941 rm -rf conftest.one conftest.two conftest.dir
3942
3943 fi
3944 if test "${ac_cv_path_install+set}" = set; then
3945 INSTALL=$ac_cv_path_install
3946 else
3947 # As a last resort, use the slow shell script. Don't cache a
3948 # value for INSTALL within a source directory, because that will
3949 # break other packages using the cache if that directory is
3950 # removed, or if the value is a relative name.
3951 INSTALL=$ac_install_sh
3952 fi
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3955 $as_echo "$INSTALL" >&6; }
3956
3957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3958 # It thinks the first close brace ends the variable substitution.
3959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3960
3961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3962
3963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3964
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3966 $as_echo_n "checking whether build environment is sane... " >&6; }
3967 # Just in case
3968 sleep 1
3969 echo timestamp > conftest.file
3970 # Reject unsafe characters in $srcdir or the absolute working directory
3971 # name. Accept space and tab only in the latter.
3972 am_lf='
3973 '
3974 case `pwd` in
3975 *[\\\"\#\$\&\'\`$am_lf]*)
3976 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3977 esac
3978 case $srcdir in
3979 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3980 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3981 esac
3982
3983 # Do `set' in a subshell so we don't clobber the current shell's
3984 # arguments. Must try -L first in case configure is actually a
3985 # symlink; some systems play weird games with the mod time of symlinks
3986 # (eg FreeBSD returns the mod time of the symlink's containing
3987 # directory).
3988 if (
3989 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3990 if test "$*" = "X"; then
3991 # -L didn't work.
3992 set X `ls -t "$srcdir/configure" conftest.file`
3993 fi
3994 rm -f conftest.file
3995 if test "$*" != "X $srcdir/configure conftest.file" \
3996 && test "$*" != "X conftest.file $srcdir/configure"; then
3997
3998 # If neither matched, then we have a broken ls. This can happen
3999 # if, for instance, CONFIG_SHELL is bash and it inherits a
4000 # broken ls alias from the environment. This has actually
4001 # happened. Such a system could not be considered "sane".
4002 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4003 alias in your environment" "$LINENO" 5
4004 fi
4005
4006 test "$2" = conftest.file
4007 )
4008 then
4009 # Ok.
4010 :
4011 else
4012 as_fn_error "newly created file is older than distributed files!
4013 Check your system clock" "$LINENO" 5
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4017 test "$program_prefix" != NONE &&
4018 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4019 # Use a double $ so make ignores it.
4020 test "$program_suffix" != NONE &&
4021 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4022 # Double any \ or $.
4023 # By default was `s,x,x', remove it if useless.
4024 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4025 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4026
4027 # expand $ac_aux_dir to an absolute path
4028 am_aux_dir=`cd $ac_aux_dir && pwd`
4029
4030 if test x"${MISSING+set}" != xset; then
4031 case $am_aux_dir in
4032 *\ * | *\ *)
4033 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4034 *)
4035 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4036 esac
4037 fi
4038 # Use eval to expand $SHELL
4039 if eval "$MISSING --run true"; then
4040 am_missing_run="$MISSING --run "
4041 else
4042 am_missing_run=
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4044 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4045 fi
4046
4047 if test x"${install_sh}" != xset; then
4048 case $am_aux_dir in
4049 *\ * | *\ *)
4050 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4051 *)
4052 install_sh="\${SHELL} $am_aux_dir/install-sh"
4053 esac
4054 fi
4055
4056 # Installed binaries are usually stripped using `strip' when the user
4057 # run `make install-strip'. However `strip' might not be the right
4058 # tool to use in cross-compilation environments, therefore Automake
4059 # will honor the `STRIP' environment variable to overrule this program.
4060 if test "$cross_compiling" != no; then
4061 if test -n "$ac_tool_prefix"; then
4062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4063 set dummy ${ac_tool_prefix}strip; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if test "${ac_cv_prog_STRIP+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -n "$STRIP"; then
4070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083 done
4084 done
4085 IFS=$as_save_IFS
4086
4087 fi
4088 fi
4089 STRIP=$ac_cv_prog_STRIP
4090 if test -n "$STRIP"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4092 $as_echo "$STRIP" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 fi
4097
4098
4099 fi
4100 if test -z "$ac_cv_prog_STRIP"; then
4101 ac_ct_STRIP=$STRIP
4102 # Extract the first word of "strip", so it can be a program name with args.
4103 set dummy strip; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -n "$ac_ct_STRIP"; then
4110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_ac_ct_STRIP="strip"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4122 fi
4123 done
4124 done
4125 IFS=$as_save_IFS
4126
4127 fi
4128 fi
4129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4130 if test -n "$ac_ct_STRIP"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4132 $as_echo "$ac_ct_STRIP" >&6; }
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 fi
4137
4138 if test "x$ac_ct_STRIP" = x; then
4139 STRIP=":"
4140 else
4141 case $cross_compiling:$ac_tool_warned in
4142 yes:)
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4145 ac_tool_warned=yes ;;
4146 esac
4147 STRIP=$ac_ct_STRIP
4148 fi
4149 else
4150 STRIP="$ac_cv_prog_STRIP"
4151 fi
4152
4153 fi
4154 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4157 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4158 if test -z "$MKDIR_P"; then
4159 if test "${ac_cv_path_mkdir+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4164 do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in mkdir gmkdir; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4171 'mkdir (GNU coreutils) '* | \
4172 'mkdir (coreutils) '* | \
4173 'mkdir (fileutils) '4.1*)
4174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4175 break 3;;
4176 esac
4177 done
4178 done
4179 done
4180 IFS=$as_save_IFS
4181
4182 fi
4183
4184 if test "${ac_cv_path_mkdir+set}" = set; then
4185 MKDIR_P="$ac_cv_path_mkdir -p"
4186 else
4187 # As a last resort, use the slow shell script. Don't cache a
4188 # value for MKDIR_P within a source directory, because that will
4189 # break other packages using the cache if that directory is
4190 # removed, or if the value is a relative name.
4191 test -d ./--version && rmdir ./--version
4192 MKDIR_P="$ac_install_sh -d"
4193 fi
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4196 $as_echo "$MKDIR_P" >&6; }
4197
4198 mkdir_p="$MKDIR_P"
4199 case $mkdir_p in
4200 [\\/$]* | ?:[\\/]*) ;;
4201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4202 esac
4203
4204 for ac_prog in gawk mawk nawk awk
4205 do
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_prog_AWK+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -n "$AWK"; then
4214 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_AWK="$ac_prog"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4226 fi
4227 done
4228 done
4229 IFS=$as_save_IFS
4230
4231 fi
4232 fi
4233 AWK=$ac_cv_prog_AWK
4234 if test -n "$AWK"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4236 $as_echo "$AWK" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4240 fi
4241
4242
4243 test -n "$AWK" && break
4244 done
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4247 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4248 set x ${MAKE-make}
4249 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4250 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 cat >conftest.make <<\_ACEOF
4254 SHELL = /bin/sh
4255 all:
4256 @echo '@@@%%%=$(MAKE)=@@@%%%'
4257 _ACEOF
4258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4259 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4260 *@@@%%%=?*=@@@%%%*)
4261 eval ac_cv_prog_make_${ac_make}_set=yes;;
4262 *)
4263 eval ac_cv_prog_make_${ac_make}_set=no;;
4264 esac
4265 rm -f conftest.make
4266 fi
4267 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4269 $as_echo "yes" >&6; }
4270 SET_MAKE=
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 SET_MAKE="MAKE=${MAKE-make}"
4275 fi
4276
4277 rm -rf .tst 2>/dev/null
4278 mkdir .tst 2>/dev/null
4279 if test -d .tst; then
4280 am__leading_dot=.
4281 else
4282 am__leading_dot=_
4283 fi
4284 rmdir .tst 2>/dev/null
4285
4286 DEPDIR="${am__leading_dot}deps"
4287
4288 ac_config_commands="$ac_config_commands depfiles"
4289
4290
4291 am_make=${MAKE-make}
4292 cat > confinc << 'END'
4293 am__doit:
4294 @echo this is the am__doit target
4295 .PHONY: am__doit
4296 END
4297 # If we don't find an include directive, just comment out the code.
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4299 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4300 am__include="#"
4301 am__quote=
4302 _am_result=none
4303 # First try GNU make style include.
4304 echo "include confinc" > confmf
4305 # Ignore all kinds of additional output from `make'.
4306 case `$am_make -s -f confmf 2> /dev/null` in #(
4307 *the\ am__doit\ target*)
4308 am__include=include
4309 am__quote=
4310 _am_result=GNU
4311 ;;
4312 esac
4313 # Now try BSD make style include.
4314 if test "$am__include" = "#"; then
4315 echo '.include "confinc"' > confmf
4316 case `$am_make -s -f confmf 2> /dev/null` in #(
4317 *the\ am__doit\ target*)
4318 am__include=.include
4319 am__quote="\""
4320 _am_result=BSD
4321 ;;
4322 esac
4323 fi
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4327 $as_echo "$_am_result" >&6; }
4328 rm -f confinc confmf
4329
4330 # Check whether --enable-dependency-tracking was given.
4331 if test "${enable_dependency_tracking+set}" = set; then :
4332 enableval=$enable_dependency_tracking;
4333 fi
4334
4335 if test "x$enable_dependency_tracking" != xno; then
4336 am_depcomp="$ac_aux_dir/depcomp"
4337 AMDEPBACKSLASH='\'
4338 am__nodep='_no'
4339 fi
4340 if test "x$enable_dependency_tracking" != xno; then
4341 AMDEP_TRUE=
4342 AMDEP_FALSE='#'
4343 else
4344 AMDEP_TRUE='#'
4345 AMDEP_FALSE=
4346 fi
4347
4348
4349 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4350 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4351 # is not polluted with repeated "-I."
4352 am__isrc=' -I$(srcdir)'
4353 # test to see if srcdir already configured
4354 if test -f $srcdir/config.status; then
4355 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4356 fi
4357 fi
4358
4359 # test whether we have cygpath
4360 if test -z "$CYGPATH_W"; then
4361 if (cygpath --version) >/dev/null 2>/dev/null; then
4362 CYGPATH_W='cygpath -w'
4363 else
4364 CYGPATH_W=echo
4365 fi
4366 fi
4367
4368
4369 # Define the identity of the package.
4370 PACKAGE='libvtv'
4371 VERSION='1.0'
4372
4373
4374 cat >>confdefs.h <<_ACEOF
4375 #define PACKAGE "$PACKAGE"
4376 _ACEOF
4377
4378
4379 cat >>confdefs.h <<_ACEOF
4380 #define VERSION "$VERSION"
4381 _ACEOF
4382
4383 # Some tools Automake needs.
4384
4385 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4386
4387
4388 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4389
4390
4391 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4392
4393
4394 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4395
4396
4397 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4398
4399 # We need awk for the "check" target. The system "awk" is bad on
4400 # some platforms.
4401 # Always define AMTAR for backward compatibility. Yes, it's still used
4402 # in the wild :-( We should find a proper way to deprecate it ...
4403 AMTAR='$${TAR-tar}'
4404
4405 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4406
4407
4408
4409
4410 depcc="$CC" am_compiler_list=
4411
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4413 $as_echo_n "checking dependency style of $depcc... " >&6; }
4414 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4418 # We make a subdir and do the tests there. Otherwise we can end up
4419 # making bogus files that we don't know about and never remove. For
4420 # instance it was reported that on HP-UX the gcc test will end up
4421 # making a dummy file named `D' -- because `-MD' means `put the output
4422 # in D'.
4423 rm -rf conftest.dir
4424 mkdir conftest.dir
4425 # Copy depcomp to subdir because otherwise we won't find it if we're
4426 # using a relative directory.
4427 cp "$am_depcomp" conftest.dir
4428 cd conftest.dir
4429 # We will build objects and dependencies in a subdirectory because
4430 # it helps to detect inapplicable dependency modes. For instance
4431 # both Tru64's cc and ICC support -MD to output dependencies as a
4432 # side effect of compilation, but ICC will put the dependencies in
4433 # the current directory while Tru64 will put them in the object
4434 # directory.
4435 mkdir sub
4436
4437 am_cv_CC_dependencies_compiler_type=none
4438 if test "$am_compiler_list" = ""; then
4439 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4440 fi
4441 am__universal=false
4442 case " $depcc " in #(
4443 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4444 esac
4445
4446 for depmode in $am_compiler_list; do
4447 # Setup a source with many dependencies, because some compilers
4448 # like to wrap large dependency lists on column 80 (with \), and
4449 # we should not choose a depcomp mode which is confused by this.
4450 #
4451 # We need to recreate these files for each test, as the compiler may
4452 # overwrite some of them when testing with obscure command lines.
4453 # This happens at least with the AIX C compiler.
4454 : > sub/conftest.c
4455 for i in 1 2 3 4 5 6; do
4456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4457 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4458 # Solaris 8's {/usr,}/bin/sh.
4459 touch sub/conftst$i.h
4460 done
4461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4462
4463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4464 # mode. It turns out that the SunPro C++ compiler does not properly
4465 # handle `-M -o', and we need to detect this. Also, some Intel
4466 # versions had trouble with output in subdirs
4467 am__obj=sub/conftest.${OBJEXT-o}
4468 am__minus_obj="-o $am__obj"
4469 case $depmode in
4470 gcc)
4471 # This depmode causes a compiler race in universal mode.
4472 test "$am__universal" = false || continue
4473 ;;
4474 nosideeffect)
4475 # after this tag, mechanisms are not by side-effect, so they'll
4476 # only be used when explicitly requested
4477 if test "x$enable_dependency_tracking" = xyes; then
4478 continue
4479 else
4480 break
4481 fi
4482 ;;
4483 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4484 # This compiler won't grok `-c -o', but also, the minuso test has
4485 # not run yet. These depmodes are late enough in the game, and
4486 # so weak that their functioning should not be impacted.
4487 am__obj=conftest.${OBJEXT-o}
4488 am__minus_obj=
4489 ;;
4490 none) break ;;
4491 esac
4492 if depmode=$depmode \
4493 source=sub/conftest.c object=$am__obj \
4494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4495 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4496 >/dev/null 2>conftest.err &&
4497 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4499 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4501 # icc doesn't choke on unknown options, it will just issue warnings
4502 # or remarks (even with -Werror). So we grep stderr for any message
4503 # that says an option was ignored or not supported.
4504 # When given -MP, icc 7.0 and 7.1 complain thusly:
4505 # icc: Command line warning: ignoring option '-M'; no argument required
4506 # The diagnosis changed in icc 8.0:
4507 # icc: Command line remark: option '-MP' not supported
4508 if (grep 'ignoring option' conftest.err ||
4509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510 am_cv_CC_dependencies_compiler_type=$depmode
4511 break
4512 fi
4513 fi
4514 done
4515
4516 cd ..
4517 rm -rf conftest.dir
4518 else
4519 am_cv_CC_dependencies_compiler_type=none
4520 fi
4521
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4524 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4526
4527 if
4528 test "x$enable_dependency_tracking" != xno \
4529 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4530 am__fastdepCC_TRUE=
4531 am__fastdepCC_FALSE='#'
4532 else
4533 am__fastdepCC_TRUE='#'
4534 am__fastdepCC_FALSE=
4535 fi
4536
4537
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4541 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4542 # Check whether --enable-maintainer-mode was given.
4543 if test "${enable_maintainer_mode+set}" = set; then :
4544 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4545 else
4546 USE_MAINTAINER_MODE=no
4547 fi
4548
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4550 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4551 if test $USE_MAINTAINER_MODE = yes; then
4552 MAINTAINER_MODE_TRUE=
4553 MAINTAINER_MODE_FALSE='#'
4554 else
4555 MAINTAINER_MODE_TRUE='#'
4556 MAINTAINER_MODE_FALSE=
4557 fi
4558
4559 MAINT=$MAINTAINER_MODE_TRUE
4560
4561
4562
4563
4564
4565 # These need to be absolute paths, yet at the same time need to
4566 # canonicalize only relative paths, because then amd will not unmount
4567 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4568 libvtv_builddir=`${PWDCMD-pwd}`
4569 case $srcdir in
4570 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
4571 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4572 esac
4573 toplevel_builddir=${libvtv_builddir}/..
4574 toplevel_srcdir=${libvtv_srcdir}/..
4575
4576
4577
4578
4579
4580
4581 # Calculate toolexeclibdir
4582 # Also toolexecdir, though it's only used in toolexeclibdir
4583 case ${version_specific_libs} in
4584 yes)
4585 # Need the gcc compiler version to know where to install libraries
4586 # and header files if --enable-version-specific-runtime-libs option
4587 # is selected.
4588 toolexecdir='$(libdir)/gcc/$(target_alias)'
4589 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4590 ;;
4591 no)
4592 if test -n "$with_cross_host" &&
4593 test x"$with_cross_host" != x"no"; then
4594 # Install a library built with a cross compiler in tooldir, not libdir.
4595 toolexecdir='$(exec_prefix)/$(target_alias)'
4596 toolexeclibdir='$(toolexecdir)/lib'
4597 else
4598 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4599 toolexeclibdir='$(libdir)'
4600 fi
4601 multi_os_directory=`$CC -print-multi-os-directory`
4602 case $multi_os_directory in
4603 .) ;; # Avoid trailing /.
4604 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4605 esac
4606 ;;
4607 esac
4608
4609
4610
4611
4612 for ac_func in __secure_getenv
4613 do :
4614 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4615 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4616 cat >>confdefs.h <<_ACEOF
4617 #define HAVE___SECURE_GETENV 1
4618 _ACEOF
4619
4620 fi
4621 done
4622
4623
4624
4625 for ac_func in secure_getenv
4626 do :
4627 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4628 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4629 cat >>confdefs.h <<_ACEOF
4630 #define HAVE_SECURE_GETENV 1
4631 _ACEOF
4632
4633 fi
4634 done
4635
4636
4637 for ac_func in getexecname __fortify_fail
4638 do :
4639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4641 eval as_val=\$$as_ac_var
4642 if test "x$as_val" = x""yes; then :
4643 cat >>confdefs.h <<_ACEOF
4644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4645 _ACEOF
4646
4647 fi
4648 done
4649
4650
4651 # Check for programs.
4652
4653
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 CC=$ac_cv_prog_CC
4688 if test -n "$CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4690 $as_echo "$CC" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695
4696
4697 fi
4698 if test -z "$ac_cv_prog_CC"; then
4699 ac_ct_CC=$CC
4700 # Extract the first word of "gcc", so it can be a program name with args.
4701 set dummy gcc; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$ac_ct_CC"; then
4708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_CC="gcc"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721 done
4722 done
4723 IFS=$as_save_IFS
4724
4725 fi
4726 fi
4727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4728 if test -n "$ac_ct_CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4730 $as_echo "$ac_ct_CC" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736 if test "x$ac_ct_CC" = x; then
4737 CC=""
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 CC=$ac_ct_CC
4746 fi
4747 else
4748 CC="$ac_cv_prog_CC"
4749 fi
4750
4751 if test -z "$CC"; then
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4754 set dummy ${ac_tool_prefix}cc; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_CC+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_CC="${ac_tool_prefix}cc"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 CC=$ac_cv_prog_CC
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790 fi
4791 fi
4792 if test -z "$CC"; then
4793 # Extract the first word of "cc", so it can be a program name with args.
4794 set dummy cc; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_CC+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC="$CC" # Let the user override the test.
4802 else
4803 ac_prog_rejected=no
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4812 ac_prog_rejected=yes
4813 continue
4814 fi
4815 ac_cv_prog_CC="cc"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819 done
4820 done
4821 IFS=$as_save_IFS
4822
4823 if test $ac_prog_rejected = yes; then
4824 # We found a bogon in the path, so make sure we never use it.
4825 set dummy $ac_cv_prog_CC
4826 shift
4827 if test $# != 0; then
4828 # We chose a different compiler from the bogus one.
4829 # However, it has the same basename, so the bogon will be chosen
4830 # first if we set CC to just the basename; use the full file name.
4831 shift
4832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4833 fi
4834 fi
4835 fi
4836 fi
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 fi
4848 if test -z "$CC"; then
4849 if test -n "$ac_tool_prefix"; then
4850 for ac_prog in cl.exe
4851 do
4852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_CC+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$CC"; then
4860 ac_cv_prog_CC="$CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 CC=$ac_cv_prog_CC
4880 if test -n "$CC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882 $as_echo "$CC" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 test -n "$CC" && break
4890 done
4891 fi
4892 if test -z "$CC"; then
4893 ac_ct_CC=$CC
4894 for ac_prog in cl.exe
4895 do
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$ac_ct_CC"; then
4904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_ac_ct_CC="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4924 if test -n "$ac_ct_CC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4926 $as_echo "$ac_ct_CC" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931
4932
4933 test -n "$ac_ct_CC" && break
4934 done
4935
4936 if test "x$ac_ct_CC" = x; then
4937 CC=""
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 CC=$ac_ct_CC
4946 fi
4947 fi
4948
4949 fi
4950
4951
4952 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954 as_fn_error "no acceptable C compiler found in \$PATH
4955 See \`config.log' for more details." "$LINENO" 5; }
4956
4957 # Provide some information about the compiler.
4958 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4959 set X $ac_compile
4960 ac_compiler=$2
4961 for ac_option in --version -v -V -qversion; do
4962 { { ac_try="$ac_compiler $ac_option >&5"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968 $as_echo "$ac_try_echo"; } >&5
4969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4970 ac_status=$?
4971 if test -s conftest.err; then
4972 sed '10a\
4973 ... rest of stderr output deleted ...
4974 10q' conftest.err >conftest.er1
4975 cat conftest.er1 >&5
4976 rm -f conftest.er1 conftest.err
4977 fi
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; }
4980 done
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4984 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989
4990 int
4991 main ()
4992 {
4993 #ifndef __GNUC__
4994 choke me
4995 #endif
4996
4997 ;
4998 return 0;
4999 }
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_compiler_gnu=yes
5003 else
5004 ac_compiler_gnu=no
5005 fi
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5008
5009 fi
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5012 if test $ac_compiler_gnu = yes; then
5013 GCC=yes
5014 else
5015 GCC=
5016 fi
5017 ac_test_CFLAGS=${CFLAGS+set}
5018 ac_save_CFLAGS=$CFLAGS
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5021 if test "${ac_cv_prog_cc_g+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 ac_save_c_werror_flag=$ac_c_werror_flag
5025 ac_c_werror_flag=yes
5026 ac_cv_prog_cc_g=no
5027 CFLAGS="-g"
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030
5031 int
5032 main ()
5033 {
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_prog_cc_g=yes
5041 else
5042 CFLAGS=""
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045
5046 int
5047 main ()
5048 {
5049
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055
5056 else
5057 ac_c_werror_flag=$ac_save_c_werror_flag
5058 CFLAGS="-g"
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061
5062 int
5063 main ()
5064 {
5065
5066 ;
5067 return 0;
5068 }
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_g=yes
5072 fi
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 fi
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 ac_c_werror_flag=$ac_save_c_werror_flag
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5081 $as_echo "$ac_cv_prog_cc_g" >&6; }
5082 if test "$ac_test_CFLAGS" = set; then
5083 CFLAGS=$ac_save_CFLAGS
5084 elif test $ac_cv_prog_cc_g = yes; then
5085 if test "$GCC" = yes; then
5086 CFLAGS="-g -O2"
5087 else
5088 CFLAGS="-g"
5089 fi
5090 else
5091 if test "$GCC" = yes; then
5092 CFLAGS="-O2"
5093 else
5094 CFLAGS=
5095 fi
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5099 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 ac_cv_prog_cc_c89=no
5103 ac_save_CC=$CC
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 #include <stdarg.h>
5107 #include <stdio.h>
5108 #include <sys/types.h>
5109 #include <sys/stat.h>
5110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5111 struct buf { int x; };
5112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5113 static char *e (p, i)
5114 char **p;
5115 int i;
5116 {
5117 return p[i];
5118 }
5119 static char *f (char * (*g) (char **, int), char **p, ...)
5120 {
5121 char *s;
5122 va_list v;
5123 va_start (v,p);
5124 s = g (p, va_arg (v,int));
5125 va_end (v);
5126 return s;
5127 }
5128
5129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5130 function prototypes and stuff, but not '\xHH' hex character constants.
5131 These don't provoke an error unfortunately, instead are silently treated
5132 as 'x'. The following induces an error, until -std is added to get
5133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5134 array size at least. It's necessary to write '\x00'==0 to get something
5135 that's true only with -std. */
5136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5137
5138 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5139 inside strings and character constants. */
5140 #define FOO(x) 'x'
5141 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5142
5143 int test (int i, double x);
5144 struct s1 {int (*f) (int a);};
5145 struct s2 {int (*f) (double a);};
5146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5147 int argc;
5148 char **argv;
5149 int
5150 main ()
5151 {
5152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5159 do
5160 CC="$ac_save_CC $ac_arg"
5161 if ac_fn_c_try_compile "$LINENO"; then :
5162 ac_cv_prog_cc_c89=$ac_arg
5163 fi
5164 rm -f core conftest.err conftest.$ac_objext
5165 test "x$ac_cv_prog_cc_c89" != "xno" && break
5166 done
5167 rm -f conftest.$ac_ext
5168 CC=$ac_save_CC
5169
5170 fi
5171 # AC_CACHE_VAL
5172 case "x$ac_cv_prog_cc_c89" in
5173 x)
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5175 $as_echo "none needed" >&6; } ;;
5176 xno)
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5178 $as_echo "unsupported" >&6; } ;;
5179 *)
5180 CC="$CC $ac_cv_prog_cc_c89"
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5182 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5183 esac
5184 if test "x$ac_cv_prog_cc_c89" != xno; then :
5185
5186 fi
5187
5188 ac_ext=c
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194 ac_ext=cpp
5195 ac_cpp='$CXXCPP $CPPFLAGS'
5196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5199 if test -z "$CXX"; then
5200 if test -n "$CCC"; then
5201 CXX=$CCC
5202 else
5203 if test -n "$ac_tool_prefix"; then
5204 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5205 do
5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_CXX+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$CXX"; then
5214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 CXX=$ac_cv_prog_CXX
5234 if test -n "$CXX"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5236 $as_echo "$CXX" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243 test -n "$CXX" && break
5244 done
5245 fi
5246 if test -z "$CXX"; then
5247 ac_ct_CXX=$CXX
5248 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5249 do
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$ac_ct_CXX"; then
5258 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_CXX="$ac_prog"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271 done
5272 done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5278 if test -n "$ac_ct_CXX"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5280 $as_echo "$ac_ct_CXX" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286
5287 test -n "$ac_ct_CXX" && break
5288 done
5289
5290 if test "x$ac_ct_CXX" = x; then
5291 CXX="g++"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 CXX=$ac_ct_CXX
5300 fi
5301 fi
5302
5303 fi
5304 fi
5305 # Provide some information about the compiler.
5306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5307 set X $ac_compile
5308 ac_compiler=$2
5309 for ac_option in --version -v -V -qversion; do
5310 { { ac_try="$ac_compiler $ac_option >&5"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5316 $as_echo "$ac_try_echo"; } >&5
5317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5318 ac_status=$?
5319 if test -s conftest.err; then
5320 sed '10a\
5321 ... rest of stderr output deleted ...
5322 10q' conftest.err >conftest.er1
5323 cat conftest.er1 >&5
5324 rm -f conftest.er1 conftest.err
5325 fi
5326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5327 test $ac_status = 0; }
5328 done
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5331 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5332 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337
5338 int
5339 main ()
5340 {
5341 #ifndef __GNUC__
5342 choke me
5343 #endif
5344
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_cxx_try_compile "$LINENO"; then :
5350 ac_compiler_gnu=yes
5351 else
5352 ac_compiler_gnu=no
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5356
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5359 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5360 if test $ac_compiler_gnu = yes; then
5361 GXX=yes
5362 else
5363 GXX=
5364 fi
5365 ac_test_CXXFLAGS=${CXXFLAGS+set}
5366 ac_save_CXXFLAGS=$CXXFLAGS
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5368 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5369 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5373 ac_cxx_werror_flag=yes
5374 ac_cv_prog_cxx_g=no
5375 CXXFLAGS="-g"
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378
5379 int
5380 main ()
5381 {
5382
5383 ;
5384 return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_cxx_try_compile "$LINENO"; then :
5388 ac_cv_prog_cxx_g=yes
5389 else
5390 CXXFLAGS=""
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393
5394 int
5395 main ()
5396 {
5397
5398 ;
5399 return 0;
5400 }
5401 _ACEOF
5402 if ac_fn_cxx_try_compile "$LINENO"; then :
5403
5404 else
5405 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5406 CXXFLAGS="-g"
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409
5410 int
5411 main ()
5412 {
5413
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 if ac_fn_cxx_try_compile "$LINENO"; then :
5419 ac_cv_prog_cxx_g=yes
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5427 fi
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5429 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5430 if test "$ac_test_CXXFLAGS" = set; then
5431 CXXFLAGS=$ac_save_CXXFLAGS
5432 elif test $ac_cv_prog_cxx_g = yes; then
5433 if test "$GXX" = yes; then
5434 CXXFLAGS="-g -O2"
5435 else
5436 CXXFLAGS="-g"
5437 fi
5438 else
5439 if test "$GXX" = yes; then
5440 CXXFLAGS="-O2"
5441 else
5442 CXXFLAGS=
5443 fi
5444 fi
5445 ac_ext=c
5446 ac_cpp='$CPP $CPPFLAGS'
5447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5450
5451 depcc="$CXX" am_compiler_list=
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5454 $as_echo_n "checking dependency style of $depcc... " >&6; }
5455 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5459 # We make a subdir and do the tests there. Otherwise we can end up
5460 # making bogus files that we don't know about and never remove. For
5461 # instance it was reported that on HP-UX the gcc test will end up
5462 # making a dummy file named `D' -- because `-MD' means `put the output
5463 # in D'.
5464 rm -rf conftest.dir
5465 mkdir conftest.dir
5466 # Copy depcomp to subdir because otherwise we won't find it if we're
5467 # using a relative directory.
5468 cp "$am_depcomp" conftest.dir
5469 cd conftest.dir
5470 # We will build objects and dependencies in a subdirectory because
5471 # it helps to detect inapplicable dependency modes. For instance
5472 # both Tru64's cc and ICC support -MD to output dependencies as a
5473 # side effect of compilation, but ICC will put the dependencies in
5474 # the current directory while Tru64 will put them in the object
5475 # directory.
5476 mkdir sub
5477
5478 am_cv_CXX_dependencies_compiler_type=none
5479 if test "$am_compiler_list" = ""; then
5480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5481 fi
5482 am__universal=false
5483 case " $depcc " in #(
5484 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5485 esac
5486
5487 for depmode in $am_compiler_list; do
5488 # Setup a source with many dependencies, because some compilers
5489 # like to wrap large dependency lists on column 80 (with \), and
5490 # we should not choose a depcomp mode which is confused by this.
5491 #
5492 # We need to recreate these files for each test, as the compiler may
5493 # overwrite some of them when testing with obscure command lines.
5494 # This happens at least with the AIX C compiler.
5495 : > sub/conftest.c
5496 for i in 1 2 3 4 5 6; do
5497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5499 # Solaris 8's {/usr,}/bin/sh.
5500 touch sub/conftst$i.h
5501 done
5502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5503
5504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5505 # mode. It turns out that the SunPro C++ compiler does not properly
5506 # handle `-M -o', and we need to detect this. Also, some Intel
5507 # versions had trouble with output in subdirs
5508 am__obj=sub/conftest.${OBJEXT-o}
5509 am__minus_obj="-o $am__obj"
5510 case $depmode in
5511 gcc)
5512 # This depmode causes a compiler race in universal mode.
5513 test "$am__universal" = false || continue
5514 ;;
5515 nosideeffect)
5516 # after this tag, mechanisms are not by side-effect, so they'll
5517 # only be used when explicitly requested
5518 if test "x$enable_dependency_tracking" = xyes; then
5519 continue
5520 else
5521 break
5522 fi
5523 ;;
5524 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5525 # This compiler won't grok `-c -o', but also, the minuso test has
5526 # not run yet. These depmodes are late enough in the game, and
5527 # so weak that their functioning should not be impacted.
5528 am__obj=conftest.${OBJEXT-o}
5529 am__minus_obj=
5530 ;;
5531 none) break ;;
5532 esac
5533 if depmode=$depmode \
5534 source=sub/conftest.c object=$am__obj \
5535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5536 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5537 >/dev/null 2>conftest.err &&
5538 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5539 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5540 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5541 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5542 # icc doesn't choke on unknown options, it will just issue warnings
5543 # or remarks (even with -Werror). So we grep stderr for any message
5544 # that says an option was ignored or not supported.
5545 # When given -MP, icc 7.0 and 7.1 complain thusly:
5546 # icc: Command line warning: ignoring option '-M'; no argument required
5547 # The diagnosis changed in icc 8.0:
5548 # icc: Command line remark: option '-MP' not supported
5549 if (grep 'ignoring option' conftest.err ||
5550 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5551 am_cv_CXX_dependencies_compiler_type=$depmode
5552 break
5553 fi
5554 fi
5555 done
5556
5557 cd ..
5558 rm -rf conftest.dir
5559 else
5560 am_cv_CXX_dependencies_compiler_type=none
5561 fi
5562
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5565 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5566 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5567
5568 if
5569 test "x$enable_dependency_tracking" != xno \
5570 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5571 am__fastdepCXX_TRUE=
5572 am__fastdepCXX_FALSE='#'
5573 else
5574 am__fastdepCXX_TRUE='#'
5575 am__fastdepCXX_FALSE=
5576 fi
5577
5578
5579
5580
5581 if test "x$CC" != xcc; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5583 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5586 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5587 fi
5588 set dummy $CC; ac_cc=`$as_echo "$2" |
5589 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5590 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595
5596 int
5597 main ()
5598 {
5599
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 # Make sure it works both with $CC and with simple cc.
5605 # We do the test twice because some compilers refuse to overwrite an
5606 # existing .o file with -o, though they will create one.
5607 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5608 rm -f conftest2.*
5609 if { { case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5614 $as_echo "$ac_try_echo"; } >&5
5615 (eval "$ac_try") 2>&5
5616 ac_status=$?
5617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618 test $ac_status = 0; } &&
5619 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5624 $as_echo "$ac_try_echo"; } >&5
5625 (eval "$ac_try") 2>&5
5626 ac_status=$?
5627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5628 test $ac_status = 0; };
5629 then
5630 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5631 if test "x$CC" != xcc; then
5632 # Test first that cc exists at all.
5633 if { ac_try='cc -c conftest.$ac_ext >&5'
5634 { { case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5637 esac
5638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5639 $as_echo "$ac_try_echo"; } >&5
5640 (eval "$ac_try") 2>&5
5641 ac_status=$?
5642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5643 test $ac_status = 0; }; }; then
5644 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5645 rm -f conftest2.*
5646 if { { case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649 esac
5650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5651 $as_echo "$ac_try_echo"; } >&5
5652 (eval "$ac_try") 2>&5
5653 ac_status=$?
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; } &&
5656 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5661 $as_echo "$ac_try_echo"; } >&5
5662 (eval "$ac_try") 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; };
5666 then
5667 # cc works too.
5668 :
5669 else
5670 # cc exists but doesn't like -o.
5671 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5672 fi
5673 fi
5674 fi
5675 else
5676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5677 fi
5678 rm -f core conftest*
5679
5680 fi
5681 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5683 $as_echo "yes" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5687
5688 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5689
5690 fi
5691
5692 # FIXME: we rely on the cache variable name because
5693 # there is no other way.
5694 set dummy $CC
5695 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5696 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5697 if test "$am_t" != yes; then
5698 # Losing compiler, so override with the script.
5699 # FIXME: It is wrong to rewrite CC.
5700 # But if we don't then we get into trouble of one sort or another.
5701 # A longer-term fix would be to have automake use am__CC in this case,
5702 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5703 CC="$am_aux_dir/compile $CC"
5704 fi
5705
5706
5707
5708
5709
5710
5711 # Newer automakes demand CCAS and CCASFLAGS.
5712 : ${CCAS='$(CC)'}
5713 : ${CCASFLAGS='$(CFLAGS)'}
5714
5715
5716
5717 if test -n "$ac_tool_prefix"; then
5718 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5719 set dummy ${ac_tool_prefix}as; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_prog_AS+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$AS"; then
5726 ac_cv_prog_AS="$AS" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5730 do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735 ac_cv_prog_AS="${ac_tool_prefix}as"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5738 fi
5739 done
5740 done
5741 IFS=$as_save_IFS
5742
5743 fi
5744 fi
5745 AS=$ac_cv_prog_AS
5746 if test -n "$AS"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5748 $as_echo "$AS" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5752 fi
5753
5754
5755 fi
5756 if test -z "$ac_cv_prog_AS"; then
5757 ac_ct_AS=$AS
5758 # Extract the first word of "as", so it can be a program name with args.
5759 set dummy as; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 if test -n "$ac_ct_AS"; then
5766 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_ac_ct_AS="as"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5778 fi
5779 done
5780 done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5786 if test -n "$ac_ct_AS"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5788 $as_echo "$ac_ct_AS" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 fi
5793
5794 if test "x$ac_ct_AS" = x; then
5795 AS=""
5796 else
5797 case $cross_compiling:$ac_tool_warned in
5798 yes:)
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801 ac_tool_warned=yes ;;
5802 esac
5803 AS=$ac_ct_AS
5804 fi
5805 else
5806 AS="$ac_cv_prog_AS"
5807 fi
5808
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}ar; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if test "${ac_cv_prog_AR+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if test -n "$AR"; then
5818 ac_cv_prog_AR="$AR" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_AR="${ac_tool_prefix}ar"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831 done
5832 done
5833 IFS=$as_save_IFS
5834
5835 fi
5836 fi
5837 AR=$ac_cv_prog_AR
5838 if test -n "$AR"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5840 $as_echo "$AR" >&6; }
5841 else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846
5847 fi
5848 if test -z "$ac_cv_prog_AR"; then
5849 ac_ct_AR=$AR
5850 # Extract the first word of "ar", so it can be a program name with args.
5851 set dummy ar; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 if test -n "$ac_ct_AR"; then
5858 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_ac_ct_AR="ar"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5878 if test -n "$ac_ct_AR"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5880 $as_echo "$ac_ct_AR" >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 fi
5885
5886 if test "x$ac_ct_AR" = x; then
5887 AR=""
5888 else
5889 case $cross_compiling:$ac_tool_warned in
5890 yes:)
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893 ac_tool_warned=yes ;;
5894 esac
5895 AR=$ac_ct_AR
5896 fi
5897 else
5898 AR="$ac_cv_prog_AR"
5899 fi
5900
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$RANLIB"; then
5910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 RANLIB=$ac_cv_prog_RANLIB
5930 if test -n "$RANLIB"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5932 $as_echo "$RANLIB" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939 fi
5940 if test -z "$ac_cv_prog_RANLIB"; then
5941 ac_ct_RANLIB=$RANLIB
5942 # Extract the first word of "ranlib", so it can be a program name with args.
5943 set dummy ranlib; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if test -n "$ac_ct_RANLIB"; then
5950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 else
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_ac_ct_RANLIB="ranlib"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5970 if test -n "$ac_ct_RANLIB"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5972 $as_echo "$ac_ct_RANLIB" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977
5978 if test "x$ac_ct_RANLIB" = x; then
5979 RANLIB=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 RANLIB=$ac_ct_RANLIB
5988 fi
5989 else
5990 RANLIB="$ac_cv_prog_RANLIB"
5991 fi
5992
5993
5994 # Configure libtool
5995 enable_dlopen=yes
5996
5997
5998
5999 case `pwd` in
6000 *\ * | *\ *)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6002 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6003 esac
6004
6005
6006
6007 macro_version='2.2.7a'
6008 macro_revision='1.3134'
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 ltmain="$ac_aux_dir/ltmain.sh"
6023
6024 # Backslashify metacharacters that are still active within
6025 # double-quoted strings.
6026 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6027
6028 # Same as above, but do not quote variable references.
6029 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6030
6031 # Sed substitution to delay expansion of an escaped shell variable in a
6032 # double_quote_subst'ed string.
6033 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6034
6035 # Sed substitution to delay expansion of an escaped single quote.
6036 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6037
6038 # Sed substitution to avoid accidental globbing in evaled expressions
6039 no_glob_subst='s/\*/\\\*/g'
6040
6041 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6042 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6043 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6044
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6046 $as_echo_n "checking how to print strings... " >&6; }
6047 # Test print first, because it will be a builtin if present.
6048 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6049 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6050 ECHO='print -r --'
6051 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6052 ECHO='printf %s\n'
6053 else
6054 # Use this function as a fallback that always works.
6055 func_fallback_echo ()
6056 {
6057 eval 'cat <<_LTECHO_EOF
6058 $1
6059 _LTECHO_EOF'
6060 }
6061 ECHO='func_fallback_echo'
6062 fi
6063
6064 # func_echo_all arg...
6065 # Invoke $ECHO with all args, space-separated.
6066 func_echo_all ()
6067 {
6068 $ECHO ""
6069 }
6070
6071 case "$ECHO" in
6072 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6073 $as_echo "printf" >&6; } ;;
6074 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6075 $as_echo "print -r" >&6; } ;;
6076 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6077 $as_echo "cat" >&6; } ;;
6078 esac
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6094 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6095 if test "${ac_cv_path_SED+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6099 for ac_i in 1 2 3 4 5 6 7; do
6100 ac_script="$ac_script$as_nl$ac_script"
6101 done
6102 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6103 { ac_script=; unset ac_script;}
6104 if test -z "$SED"; then
6105 ac_path_SED_found=false
6106 # Loop through the user's path and test for each of PROGNAME-LIST
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_prog in sed gsed; do
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6115 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6116 # Check for GNU ac_path_SED and select it if it is found.
6117 # Check for GNU $ac_path_SED
6118 case `"$ac_path_SED" --version 2>&1` in
6119 *GNU*)
6120 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6121 *)
6122 ac_count=0
6123 $as_echo_n 0123456789 >"conftest.in"
6124 while :
6125 do
6126 cat "conftest.in" "conftest.in" >"conftest.tmp"
6127 mv "conftest.tmp" "conftest.in"
6128 cp "conftest.in" "conftest.nl"
6129 $as_echo '' >> "conftest.nl"
6130 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6132 as_fn_arith $ac_count + 1 && ac_count=$as_val
6133 if test $ac_count -gt ${ac_path_SED_max-0}; then
6134 # Best one so far, save it but keep looking for a better one
6135 ac_cv_path_SED="$ac_path_SED"
6136 ac_path_SED_max=$ac_count
6137 fi
6138 # 10*(2^10) chars as input seems more than enough
6139 test $ac_count -gt 10 && break
6140 done
6141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6142 esac
6143
6144 $ac_path_SED_found && break 3
6145 done
6146 done
6147 done
6148 IFS=$as_save_IFS
6149 if test -z "$ac_cv_path_SED"; then
6150 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6151 fi
6152 else
6153 ac_cv_path_SED=$SED
6154 fi
6155
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6158 $as_echo "$ac_cv_path_SED" >&6; }
6159 SED="$ac_cv_path_SED"
6160 rm -f conftest.sed
6161
6162 test -z "$SED" && SED=sed
6163 Xsed="$SED -e 1s/^X//"
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6176 $as_echo_n "checking for fgrep... " >&6; }
6177 if test "${ac_cv_path_FGREP+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6181 then ac_cv_path_FGREP="$GREP -F"
6182 else
6183 if test -z "$FGREP"; then
6184 ac_path_FGREP_found=false
6185 # Loop through the user's path and test for each of PROGNAME-LIST
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6188 do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_prog in fgrep; do
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6194 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6195 # Check for GNU ac_path_FGREP and select it if it is found.
6196 # Check for GNU $ac_path_FGREP
6197 case `"$ac_path_FGREP" --version 2>&1` in
6198 *GNU*)
6199 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6200 *)
6201 ac_count=0
6202 $as_echo_n 0123456789 >"conftest.in"
6203 while :
6204 do
6205 cat "conftest.in" "conftest.in" >"conftest.tmp"
6206 mv "conftest.tmp" "conftest.in"
6207 cp "conftest.in" "conftest.nl"
6208 $as_echo 'FGREP' >> "conftest.nl"
6209 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6211 as_fn_arith $ac_count + 1 && ac_count=$as_val
6212 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6213 # Best one so far, save it but keep looking for a better one
6214 ac_cv_path_FGREP="$ac_path_FGREP"
6215 ac_path_FGREP_max=$ac_count
6216 fi
6217 # 10*(2^10) chars as input seems more than enough
6218 test $ac_count -gt 10 && break
6219 done
6220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6221 esac
6222
6223 $ac_path_FGREP_found && break 3
6224 done
6225 done
6226 done
6227 IFS=$as_save_IFS
6228 if test -z "$ac_cv_path_FGREP"; then
6229 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6230 fi
6231 else
6232 ac_cv_path_FGREP=$FGREP
6233 fi
6234
6235 fi
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6238 $as_echo "$ac_cv_path_FGREP" >&6; }
6239 FGREP="$ac_cv_path_FGREP"
6240
6241
6242 test -z "$GREP" && GREP=grep
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 # Check whether --with-gnu-ld was given.
6263 if test "${with_gnu_ld+set}" = set; then :
6264 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6265 else
6266 with_gnu_ld=no
6267 fi
6268
6269 ac_prog=ld
6270 if test "$GCC" = yes; then
6271 # Check if gcc -print-prog-name=ld gives a path.
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6273 $as_echo_n "checking for ld used by $CC... " >&6; }
6274 case $host in
6275 *-*-mingw*)
6276 # gcc leaves a trailing carriage return which upsets mingw
6277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6278 *)
6279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6280 esac
6281 case $ac_prog in
6282 # Accept absolute paths.
6283 [\\/]* | ?:[\\/]*)
6284 re_direlt='/[^/][^/]*/\.\./'
6285 # Canonicalize the pathname of ld
6286 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6287 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6288 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6289 done
6290 test -z "$LD" && LD="$ac_prog"
6291 ;;
6292 "")
6293 # If it fails, then pretend we aren't using GCC.
6294 ac_prog=ld
6295 ;;
6296 *)
6297 # If it is relative, then search for the first ld in PATH.
6298 with_gnu_ld=unknown
6299 ;;
6300 esac
6301 elif test "$with_gnu_ld" = yes; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6303 $as_echo_n "checking for GNU ld... " >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6306 $as_echo_n "checking for non-GNU ld... " >&6; }
6307 fi
6308 if test "${lt_cv_path_LD+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -z "$LD"; then
6312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6313 for ac_dir in $PATH; do
6314 IFS="$lt_save_ifs"
6315 test -z "$ac_dir" && ac_dir=.
6316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6317 lt_cv_path_LD="$ac_dir/$ac_prog"
6318 # Check to see if the program is GNU ld. I'd rather use --version,
6319 # but apparently some variants of GNU ld only accept -v.
6320 # Break only if it was the GNU/non-GNU ld that we prefer.
6321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6322 *GNU* | *'with BFD'*)
6323 test "$with_gnu_ld" != no && break
6324 ;;
6325 *)
6326 test "$with_gnu_ld" != yes && break
6327 ;;
6328 esac
6329 fi
6330 done
6331 IFS="$lt_save_ifs"
6332 else
6333 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6334 fi
6335 fi
6336
6337 LD="$lt_cv_path_LD"
6338 if test -n "$LD"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6340 $as_echo "$LD" >&6; }
6341 else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6347 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6348 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6352 case `$LD -v 2>&1 </dev/null` in
6353 *GNU* | *'with BFD'*)
6354 lt_cv_prog_gnu_ld=yes
6355 ;;
6356 *)
6357 lt_cv_prog_gnu_ld=no
6358 ;;
6359 esac
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6362 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6363 with_gnu_ld=$lt_cv_prog_gnu_ld
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6374 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6375 if test "${lt_cv_path_NM+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$NM"; then
6379 # Let the user override the test.
6380 lt_cv_path_NM="$NM"
6381 else
6382 lt_nm_to_check="${ac_tool_prefix}nm"
6383 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6384 lt_nm_to_check="$lt_nm_to_check nm"
6385 fi
6386 for lt_tmp_nm in $lt_nm_to_check; do
6387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6388 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6389 IFS="$lt_save_ifs"
6390 test -z "$ac_dir" && ac_dir=.
6391 tmp_nm="$ac_dir/$lt_tmp_nm"
6392 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6393 # Check to see if the nm accepts a BSD-compat flag.
6394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6395 # nm: unknown option "B" ignored
6396 # Tru64's nm complains that /dev/null is an invalid object file
6397 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6398 */dev/null* | *'Invalid file or object type'*)
6399 lt_cv_path_NM="$tmp_nm -B"
6400 break
6401 ;;
6402 *)
6403 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6404 */dev/null*)
6405 lt_cv_path_NM="$tmp_nm -p"
6406 break
6407 ;;
6408 *)
6409 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6410 continue # so that we can try to find one that supports BSD flags
6411 ;;
6412 esac
6413 ;;
6414 esac
6415 fi
6416 done
6417 IFS="$lt_save_ifs"
6418 done
6419 : ${lt_cv_path_NM=no}
6420 fi
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6423 $as_echo "$lt_cv_path_NM" >&6; }
6424 if test "$lt_cv_path_NM" != "no"; then
6425 NM="$lt_cv_path_NM"
6426 else
6427 # Didn't find any BSD compatible name lister, look for dumpbin.
6428 if test -n "$DUMPBIN"; then :
6429 # Let the user override the test.
6430 else
6431 if test -n "$ac_tool_prefix"; then
6432 for ac_prog in dumpbin "link -dump"
6433 do
6434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 if test -n "$DUMPBIN"; then
6442 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 DUMPBIN=$ac_cv_prog_DUMPBIN
6462 if test -n "$DUMPBIN"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6464 $as_echo "$DUMPBIN" >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470
6471 test -n "$DUMPBIN" && break
6472 done
6473 fi
6474 if test -z "$DUMPBIN"; then
6475 ac_ct_DUMPBIN=$DUMPBIN
6476 for ac_prog in dumpbin "link -dump"
6477 do
6478 # Extract the first word of "$ac_prog", so it can be a program name with args.
6479 set dummy $ac_prog; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$ac_ct_DUMPBIN"; then
6486 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6506 if test -n "$ac_ct_DUMPBIN"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6508 $as_echo "$ac_ct_DUMPBIN" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514
6515 test -n "$ac_ct_DUMPBIN" && break
6516 done
6517
6518 if test "x$ac_ct_DUMPBIN" = x; then
6519 DUMPBIN=":"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527 DUMPBIN=$ac_ct_DUMPBIN
6528 fi
6529 fi
6530
6531 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6532 *COFF*)
6533 DUMPBIN="$DUMPBIN -symbols"
6534 ;;
6535 *)
6536 DUMPBIN=:
6537 ;;
6538 esac
6539 fi
6540
6541 if test "$DUMPBIN" != ":"; then
6542 NM="$DUMPBIN"
6543 fi
6544 fi
6545 test -z "$NM" && NM=nm
6546
6547
6548
6549
6550
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6553 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6554 if test "${lt_cv_nm_interface+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 lt_cv_nm_interface="BSD nm"
6558 echo "int some_variable = 0;" > conftest.$ac_ext
6559 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6560 (eval "$ac_compile" 2>conftest.err)
6561 cat conftest.err >&5
6562 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6563 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6564 cat conftest.err >&5
6565 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6566 cat conftest.out >&5
6567 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6568 lt_cv_nm_interface="MS dumpbin"
6569 fi
6570 rm -f conftest*
6571 fi
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6573 $as_echo "$lt_cv_nm_interface" >&6; }
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6576 $as_echo_n "checking whether ln -s works... " >&6; }
6577 LN_S=$as_ln_s
6578 if test "$LN_S" = "ln -s"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6580 $as_echo "yes" >&6; }
6581 else
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6583 $as_echo "no, using $LN_S" >&6; }
6584 fi
6585
6586 # find the maximum length of command line arguments
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6588 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6589 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 i=0
6593 teststring="ABCD"
6594
6595 case $build_os in
6596 msdosdjgpp*)
6597 # On DJGPP, this test can blow up pretty badly due to problems in libc
6598 # (any single argument exceeding 2000 bytes causes a buffer overrun
6599 # during glob expansion). Even if it were fixed, the result of this
6600 # check would be larger than it should be.
6601 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6602 ;;
6603
6604 gnu*)
6605 # Under GNU Hurd, this test is not required because there is
6606 # no limit to the length of command line arguments.
6607 # Libtool will interpret -1 as no limit whatsoever
6608 lt_cv_sys_max_cmd_len=-1;
6609 ;;
6610
6611 cygwin* | mingw* | cegcc*)
6612 # On Win9x/ME, this test blows up -- it succeeds, but takes
6613 # about 5 minutes as the teststring grows exponentially.
6614 # Worse, since 9x/ME are not pre-emptively multitasking,
6615 # you end up with a "frozen" computer, even though with patience
6616 # the test eventually succeeds (with a max line length of 256k).
6617 # Instead, let's just punt: use the minimum linelength reported by
6618 # all of the supported platforms: 8192 (on NT/2K/XP).
6619 lt_cv_sys_max_cmd_len=8192;
6620 ;;
6621
6622 mint*)
6623 # On MiNT this can take a long time and run out of memory.
6624 lt_cv_sys_max_cmd_len=8192;
6625 ;;
6626
6627 amigaos*)
6628 # On AmigaOS with pdksh, this test takes hours, literally.
6629 # So we just punt and use a minimum line length of 8192.
6630 lt_cv_sys_max_cmd_len=8192;
6631 ;;
6632
6633 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6634 # This has been around since 386BSD, at least. Likely further.
6635 if test -x /sbin/sysctl; then
6636 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6637 elif test -x /usr/sbin/sysctl; then
6638 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6639 else
6640 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6641 fi
6642 # And add a safety zone
6643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6645 ;;
6646
6647 interix*)
6648 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6649 lt_cv_sys_max_cmd_len=196608
6650 ;;
6651
6652 osf*)
6653 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6654 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6655 # nice to cause kernel panics so lets avoid the loop below.
6656 # First set a reasonable default.
6657 lt_cv_sys_max_cmd_len=16384
6658 #
6659 if test -x /sbin/sysconfig; then
6660 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6661 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6662 esac
6663 fi
6664 ;;
6665 sco3.2v5*)
6666 lt_cv_sys_max_cmd_len=102400
6667 ;;
6668 sysv5* | sco5v6* | sysv4.2uw2*)
6669 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6670 if test -n "$kargmax"; then
6671 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6672 else
6673 lt_cv_sys_max_cmd_len=32768
6674 fi
6675 ;;
6676 *)
6677 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6678 if test -n "$lt_cv_sys_max_cmd_len"; then
6679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6681 else
6682 # Make teststring a little bigger before we do anything with it.
6683 # a 1K string should be a reasonable start.
6684 for i in 1 2 3 4 5 6 7 8 ; do
6685 teststring=$teststring$teststring
6686 done
6687 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6688 # If test is not a shell built-in, we'll probably end up computing a
6689 # maximum length that is only half of the actual maximum length, but
6690 # we can't tell.
6691 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6692 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6693 test $i != 17 # 1/2 MB should be enough
6694 do
6695 i=`expr $i + 1`
6696 teststring=$teststring$teststring
6697 done
6698 # Only check the string length outside the loop.
6699 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6700 teststring=
6701 # Add a significant safety factor because C++ compilers can tack on
6702 # massive amounts of additional arguments before passing them to the
6703 # linker. It appears as though 1/2 is a usable value.
6704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6705 fi
6706 ;;
6707 esac
6708
6709 fi
6710
6711 if test -n $lt_cv_sys_max_cmd_len ; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6713 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6714 else
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6716 $as_echo "none" >&6; }
6717 fi
6718 max_cmd_len=$lt_cv_sys_max_cmd_len
6719
6720
6721
6722
6723
6724
6725 : ${CP="cp -f"}
6726 : ${MV="mv -f"}
6727 : ${RM="rm -f"}
6728
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6730 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6731 # Try some XSI features
6732 xsi_shell=no
6733 ( _lt_dummy="a/b/c"
6734 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6735 = c,a/b,, \
6736 && eval 'test $(( 1 + 1 )) -eq 2 \
6737 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6738 && xsi_shell=yes
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6740 $as_echo "$xsi_shell" >&6; }
6741
6742
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6744 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6745 lt_shell_append=no
6746 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6747 >/dev/null 2>&1 \
6748 && lt_shell_append=yes
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6750 $as_echo "$lt_shell_append" >&6; }
6751
6752
6753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6754 lt_unset=unset
6755 else
6756 lt_unset=false
6757 fi
6758
6759
6760
6761
6762
6763 # test EBCDIC or ASCII
6764 case `echo X|tr X '\101'` in
6765 A) # ASCII based system
6766 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6767 lt_SP2NL='tr \040 \012'
6768 lt_NL2SP='tr \015\012 \040\040'
6769 ;;
6770 *) # EBCDIC based system
6771 lt_SP2NL='tr \100 \n'
6772 lt_NL2SP='tr \r\n \100\100'
6773 ;;
6774 esac
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6785 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6786 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 lt_cv_ld_reload_flag='-r'
6790 fi
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6792 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6793 reload_flag=$lt_cv_ld_reload_flag
6794 case $reload_flag in
6795 "" | " "*) ;;
6796 *) reload_flag=" $reload_flag" ;;
6797 esac
6798 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6799 case $host_os in
6800 darwin*)
6801 if test "$GCC" = yes; then
6802 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6803 else
6804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6805 fi
6806 ;;
6807 esac
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$OBJDUMP"; then
6826 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi
6844 fi
6845 OBJDUMP=$ac_cv_prog_OBJDUMP
6846 if test -n "$OBJDUMP"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6848 $as_echo "$OBJDUMP" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6852 fi
6853
6854
6855 fi
6856 if test -z "$ac_cv_prog_OBJDUMP"; then
6857 ac_ct_OBJDUMP=$OBJDUMP
6858 # Extract the first word of "objdump", so it can be a program name with args.
6859 set dummy objdump; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$ac_ct_OBJDUMP"; then
6866 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6886 if test -n "$ac_ct_OBJDUMP"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6888 $as_echo "$ac_ct_OBJDUMP" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894 if test "x$ac_ct_OBJDUMP" = x; then
6895 OBJDUMP="false"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903 OBJDUMP=$ac_ct_OBJDUMP
6904 fi
6905 else
6906 OBJDUMP="$ac_cv_prog_OBJDUMP"
6907 fi
6908
6909 test -z "$OBJDUMP" && OBJDUMP=objdump
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6920 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6921 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 lt_cv_file_magic_cmd='$MAGIC_CMD'
6925 lt_cv_file_magic_test_file=
6926 lt_cv_deplibs_check_method='unknown'
6927 # Need to set the preceding variable on all platforms that support
6928 # interlibrary dependencies.
6929 # 'none' -- dependencies not supported.
6930 # `unknown' -- same as none, but documents that we really don't know.
6931 # 'pass_all' -- all dependencies passed with no checks.
6932 # 'test_compile' -- check by making test program.
6933 # 'file_magic [[regex]]' -- check by looking for files in library path
6934 # which responds to the $file_magic_cmd with a given extended regex.
6935 # If you have `file' or equivalent on your system and you're not sure
6936 # whether `pass_all' will *always* work, you probably want this one.
6937
6938 case $host_os in
6939 aix[4-9]*)
6940 lt_cv_deplibs_check_method=pass_all
6941 ;;
6942
6943 beos*)
6944 lt_cv_deplibs_check_method=pass_all
6945 ;;
6946
6947 bsdi[45]*)
6948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6949 lt_cv_file_magic_cmd='/usr/bin/file -L'
6950 lt_cv_file_magic_test_file=/shlib/libc.so
6951 ;;
6952
6953 cygwin*)
6954 # func_win32_libid is a shell function defined in ltmain.sh
6955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6956 lt_cv_file_magic_cmd='func_win32_libid'
6957 ;;
6958
6959 mingw* | pw32*)
6960 # Base MSYS/MinGW do not provide the 'file' command needed by
6961 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6962 # unless we find 'file', for example because we are cross-compiling.
6963 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6964 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6966 lt_cv_file_magic_cmd='func_win32_libid'
6967 else
6968 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6969 lt_cv_file_magic_cmd='$OBJDUMP -f'
6970 fi
6971 ;;
6972
6973 cegcc*)
6974 # use the weaker test based on 'objdump'. See mingw*.
6975 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6976 lt_cv_file_magic_cmd='$OBJDUMP -f'
6977 ;;
6978
6979 darwin* | rhapsody*)
6980 lt_cv_deplibs_check_method=pass_all
6981 ;;
6982
6983 freebsd* | dragonfly*)
6984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6985 case $host_cpu in
6986 i*86 )
6987 # Not sure whether the presence of OpenBSD here was a mistake.
6988 # Let's accept both of them until this is cleared up.
6989 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6990 lt_cv_file_magic_cmd=/usr/bin/file
6991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6992 ;;
6993 esac
6994 else
6995 lt_cv_deplibs_check_method=pass_all
6996 fi
6997 ;;
6998
6999 gnu*)
7000 lt_cv_deplibs_check_method=pass_all
7001 ;;
7002
7003 haiku*)
7004 lt_cv_deplibs_check_method=pass_all
7005 ;;
7006
7007 hpux10.20* | hpux11*)
7008 lt_cv_file_magic_cmd=/usr/bin/file
7009 case $host_cpu in
7010 ia64*)
7011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7012 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7013 ;;
7014 hppa*64*)
7015 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]'
7016 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7017 ;;
7018 *)
7019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7020 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7021 ;;
7022 esac
7023 ;;
7024
7025 interix[3-9]*)
7026 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7028 ;;
7029
7030 irix5* | irix6* | nonstopux*)
7031 case $LD in
7032 *-32|*"-32 ") libmagic=32-bit;;
7033 *-n32|*"-n32 ") libmagic=N32;;
7034 *-64|*"-64 ") libmagic=64-bit;;
7035 *) libmagic=never-match;;
7036 esac
7037 lt_cv_deplibs_check_method=pass_all
7038 ;;
7039
7040 # This must be Linux ELF.
7041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7042 lt_cv_deplibs_check_method=pass_all
7043 ;;
7044
7045 netbsd*)
7046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7048 else
7049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7050 fi
7051 ;;
7052
7053 newos6*)
7054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7055 lt_cv_file_magic_cmd=/usr/bin/file
7056 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7057 ;;
7058
7059 *nto* | *qnx*)
7060 lt_cv_deplibs_check_method=pass_all
7061 ;;
7062
7063 openbsd*)
7064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7066 else
7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7068 fi
7069 ;;
7070
7071 osf3* | osf4* | osf5*)
7072 lt_cv_deplibs_check_method=pass_all
7073 ;;
7074
7075 rdos*)
7076 lt_cv_deplibs_check_method=pass_all
7077 ;;
7078
7079 solaris*)
7080 lt_cv_deplibs_check_method=pass_all
7081 ;;
7082
7083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7084 lt_cv_deplibs_check_method=pass_all
7085 ;;
7086
7087 sysv4 | sysv4.3*)
7088 case $host_vendor in
7089 motorola)
7090 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]'
7091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7092 ;;
7093 ncr)
7094 lt_cv_deplibs_check_method=pass_all
7095 ;;
7096 sequent)
7097 lt_cv_file_magic_cmd='/bin/file'
7098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7099 ;;
7100 sni)
7101 lt_cv_file_magic_cmd='/bin/file'
7102 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7103 lt_cv_file_magic_test_file=/lib/libc.so
7104 ;;
7105 siemens)
7106 lt_cv_deplibs_check_method=pass_all
7107 ;;
7108 pc)
7109 lt_cv_deplibs_check_method=pass_all
7110 ;;
7111 esac
7112 ;;
7113
7114 tpf*)
7115 lt_cv_deplibs_check_method=pass_all
7116 ;;
7117 esac
7118
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7121 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7122 file_magic_cmd=$lt_cv_file_magic_cmd
7123 deplibs_check_method=$lt_cv_deplibs_check_method
7124 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137 if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}ar; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_AR+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$AR"; then
7146 ac_cv_prog_AR="$AR" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_AR="${ac_tool_prefix}ar"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 AR=$ac_cv_prog_AR
7166 if test -n "$AR"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7168 $as_echo "$AR" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175 fi
7176 if test -z "$ac_cv_prog_AR"; then
7177 ac_ct_AR=$AR
7178 # Extract the first word of "ar", so it can be a program name with args.
7179 set dummy ar; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$ac_ct_AR"; then
7186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_ac_ct_AR="ar"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7206 if test -n "$ac_ct_AR"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7208 $as_echo "$ac_ct_AR" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214 if test "x$ac_ct_AR" = x; then
7215 AR="false"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223 AR=$ac_ct_AR
7224 fi
7225 else
7226 AR="$ac_cv_prog_AR"
7227 fi
7228
7229 test -z "$AR" && AR=ar
7230 test -z "$AR_FLAGS" && AR_FLAGS=cru
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7244 set dummy ${ac_tool_prefix}strip; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_STRIP+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7249 else
7250 if test -n "$STRIP"; then
7251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 STRIP=$ac_cv_prog_STRIP
7271 if test -n "$STRIP"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7273 $as_echo "$STRIP" >&6; }
7274 else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279
7280 fi
7281 if test -z "$ac_cv_prog_STRIP"; then
7282 ac_ct_STRIP=$STRIP
7283 # Extract the first word of "strip", so it can be a program name with args.
7284 set dummy strip; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 if test -n "$ac_ct_STRIP"; then
7291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7292 else
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_prog_ac_ct_STRIP="strip"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308 fi
7309 fi
7310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7311 if test -n "$ac_ct_STRIP"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7313 $as_echo "$ac_ct_STRIP" >&6; }
7314 else
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318
7319 if test "x$ac_ct_STRIP" = x; then
7320 STRIP=":"
7321 else
7322 case $cross_compiling:$ac_tool_warned in
7323 yes:)
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned=yes ;;
7327 esac
7328 STRIP=$ac_ct_STRIP
7329 fi
7330 else
7331 STRIP="$ac_cv_prog_STRIP"
7332 fi
7333
7334 test -z "$STRIP" && STRIP=:
7335
7336
7337
7338
7339
7340
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 if test -n "$RANLIB"; then
7350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 RANLIB=$ac_cv_prog_RANLIB
7370 if test -n "$RANLIB"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7372 $as_echo "$RANLIB" >&6; }
7373 else
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378
7379 fi
7380 if test -z "$ac_cv_prog_RANLIB"; then
7381 ac_ct_RANLIB=$RANLIB
7382 # Extract the first word of "ranlib", so it can be a program name with args.
7383 set dummy ranlib; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 if test -n "$ac_ct_RANLIB"; then
7390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_prog_ac_ct_RANLIB="ranlib"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403 done
7404 done
7405 IFS=$as_save_IFS
7406
7407 fi
7408 fi
7409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7410 if test -n "$ac_ct_RANLIB"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7412 $as_echo "$ac_ct_RANLIB" >&6; }
7413 else
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418 if test "x$ac_ct_RANLIB" = x; then
7419 RANLIB=":"
7420 else
7421 case $cross_compiling:$ac_tool_warned in
7422 yes:)
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7426 esac
7427 RANLIB=$ac_ct_RANLIB
7428 fi
7429 else
7430 RANLIB="$ac_cv_prog_RANLIB"
7431 fi
7432
7433 test -z "$RANLIB" && RANLIB=:
7434
7435
7436
7437
7438
7439
7440 # Determine commands to create old-style static archives.
7441 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7442 old_postinstall_cmds='chmod 644 $oldlib'
7443 old_postuninstall_cmds=
7444
7445 if test -n "$RANLIB"; then
7446 case $host_os in
7447 openbsd*)
7448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7449 ;;
7450 *)
7451 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7452 ;;
7453 esac
7454 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7455 fi
7456
7457 case $host_os in
7458 darwin*)
7459 lock_old_archive_extraction=yes ;;
7460 *)
7461 lock_old_archive_extraction=no ;;
7462 esac
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
7502 # If no C compiler was specified, use CC.
7503 LTCC=${LTCC-"$CC"}
7504
7505 # If no C compiler flags were specified, use CFLAGS.
7506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7507
7508 # Allow CC to be a program name with arguments.
7509 compiler=$CC
7510
7511
7512 # Check for command to grab the raw symbol name followed by C symbol from nm.
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7514 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7515 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518
7519 # These are sane defaults that work on at least a few old systems.
7520 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7521
7522 # Character class describing NM global symbol codes.
7523 symcode='[BCDEGRST]'
7524
7525 # Regexp to match symbols that can be accessed directly from C.
7526 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7527
7528 # Define system-specific variables.
7529 case $host_os in
7530 aix*)
7531 symcode='[BCDT]'
7532 ;;
7533 cygwin* | mingw* | pw32* | cegcc*)
7534 symcode='[ABCDGISTW]'
7535 ;;
7536 hpux*)
7537 if test "$host_cpu" = ia64; then
7538 symcode='[ABCDEGRST]'
7539 fi
7540 ;;
7541 irix* | nonstopux*)
7542 symcode='[BCDEGRST]'
7543 ;;
7544 osf*)
7545 symcode='[BCDEGQRST]'
7546 ;;
7547 solaris*)
7548 symcode='[BDRT]'
7549 ;;
7550 sco3.2v5*)
7551 symcode='[DT]'
7552 ;;
7553 sysv4.2uw2*)
7554 symcode='[DT]'
7555 ;;
7556 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7557 symcode='[ABDT]'
7558 ;;
7559 sysv4)
7560 symcode='[DFNSTU]'
7561 ;;
7562 esac
7563
7564 # If we're using GNU nm, then use its standard symbol codes.
7565 case `$NM -V 2>&1` in
7566 *GNU* | *'with BFD'*)
7567 symcode='[ABCDGIRSTW]' ;;
7568 esac
7569
7570 # Transform an extracted symbol line into a proper C declaration.
7571 # Some systems (esp. on ia64) link data and code symbols differently,
7572 # so use this general approach.
7573 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7574
7575 # Transform an extracted symbol line into symbol name and symbol address
7576 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7577 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'"
7578
7579 # Handle CRLF in mingw tool chain
7580 opt_cr=
7581 case $build_os in
7582 mingw*)
7583 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7584 ;;
7585 esac
7586
7587 # Try without a prefix underscore, then with it.
7588 for ac_symprfx in "" "_"; do
7589
7590 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7591 symxfrm="\\1 $ac_symprfx\\2 \\2"
7592
7593 # Write the raw and C identifiers.
7594 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7595 # Fake it for dumpbin and say T for any non-static function
7596 # and D for any global variable.
7597 # Also find C++ and __fastcall symbols from MSVC++,
7598 # which start with @ or ?.
7599 lt_cv_sys_global_symbol_pipe="$AWK '"\
7600 " {last_section=section; section=\$ 3};"\
7601 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7602 " \$ 0!~/External *\|/{next};"\
7603 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7604 " {if(hide[section]) next};"\
7605 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7606 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7607 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7608 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7609 " ' prfx=^$ac_symprfx"
7610 else
7611 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7612 fi
7613
7614 # Check to see that the pipe works correctly.
7615 pipe_works=no
7616
7617 rm -f conftest*
7618 cat > conftest.$ac_ext <<_LT_EOF
7619 #ifdef __cplusplus
7620 extern "C" {
7621 #endif
7622 char nm_test_var;
7623 void nm_test_func(void);
7624 void nm_test_func(void){}
7625 #ifdef __cplusplus
7626 }
7627 #endif
7628 int main(){nm_test_var='a';nm_test_func();return(0);}
7629 _LT_EOF
7630
7631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7635 test $ac_status = 0; }; then
7636 # Now try to grab the symbols.
7637 nlist=conftest.nm
7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7639 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7640 ac_status=$?
7641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; } && test -s "$nlist"; then
7643 # Try sorting and uniquifying the output.
7644 if sort "$nlist" | uniq > "$nlist"T; then
7645 mv -f "$nlist"T "$nlist"
7646 else
7647 rm -f "$nlist"T
7648 fi
7649
7650 # Make sure that we snagged all the symbols we need.
7651 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7652 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7653 cat <<_LT_EOF > conftest.$ac_ext
7654 #ifdef __cplusplus
7655 extern "C" {
7656 #endif
7657
7658 _LT_EOF
7659 # Now generate the symbol file.
7660 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7661
7662 cat <<_LT_EOF >> conftest.$ac_ext
7663
7664 /* The mapping between symbol names and symbols. */
7665 const struct {
7666 const char *name;
7667 void *address;
7668 }
7669 lt__PROGRAM__LTX_preloaded_symbols[] =
7670 {
7671 { "@PROGRAM@", (void *) 0 },
7672 _LT_EOF
7673 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7674 cat <<\_LT_EOF >> conftest.$ac_ext
7675 {0, (void *) 0}
7676 };
7677
7678 /* This works around a problem in FreeBSD linker */
7679 #ifdef FREEBSD_WORKAROUND
7680 static const void *lt_preloaded_setup() {
7681 return lt__PROGRAM__LTX_preloaded_symbols;
7682 }
7683 #endif
7684
7685 #ifdef __cplusplus
7686 }
7687 #endif
7688 _LT_EOF
7689 # Now try linking the two files.
7690 mv conftest.$ac_objext conftstm.$ac_objext
7691 lt_save_LIBS="$LIBS"
7692 lt_save_CFLAGS="$CFLAGS"
7693 LIBS="conftstm.$ac_objext"
7694 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7696 (eval $ac_link) 2>&5
7697 ac_status=$?
7698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7699 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7700 pipe_works=yes
7701 fi
7702 LIBS="$lt_save_LIBS"
7703 CFLAGS="$lt_save_CFLAGS"
7704 else
7705 echo "cannot find nm_test_func in $nlist" >&5
7706 fi
7707 else
7708 echo "cannot find nm_test_var in $nlist" >&5
7709 fi
7710 else
7711 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7712 fi
7713 else
7714 echo "$progname: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7716 fi
7717 rm -rf conftest* conftst*
7718
7719 # Do not use the global_symbol_pipe unless it works.
7720 if test "$pipe_works" = yes; then
7721 break
7722 else
7723 lt_cv_sys_global_symbol_pipe=
7724 fi
7725 done
7726
7727 fi
7728
7729 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7730 lt_cv_sys_global_symbol_to_cdecl=
7731 fi
7732 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7734 $as_echo "failed" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7737 $as_echo "ok" >&6; }
7738 fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761 # Check whether --enable-libtool-lock was given.
7762 if test "${enable_libtool_lock+set}" = set; then :
7763 enableval=$enable_libtool_lock;
7764 fi
7765
7766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7767
7768 # Some flags need to be propagated to the compiler or linker for good
7769 # libtool support.
7770 case $host in
7771 ia64-*-hpux*)
7772 # Find out which ABI we are using.
7773 echo 'int i;' > conftest.$ac_ext
7774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7775 (eval $ac_compile) 2>&5
7776 ac_status=$?
7777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7778 test $ac_status = 0; }; then
7779 case `/usr/bin/file conftest.$ac_objext` in
7780 *ELF-32*)
7781 HPUX_IA64_MODE="32"
7782 ;;
7783 *ELF-64*)
7784 HPUX_IA64_MODE="64"
7785 ;;
7786 esac
7787 fi
7788 rm -rf conftest*
7789 ;;
7790 *-*-irix6*)
7791 # Find out which ABI we are using.
7792 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7794 (eval $ac_compile) 2>&5
7795 ac_status=$?
7796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797 test $ac_status = 0; }; then
7798 if test "$lt_cv_prog_gnu_ld" = yes; then
7799 case `/usr/bin/file conftest.$ac_objext` in
7800 *32-bit*)
7801 LD="${LD-ld} -melf32bsmip"
7802 ;;
7803 *N32*)
7804 LD="${LD-ld} -melf32bmipn32"
7805 ;;
7806 *64-bit*)
7807 LD="${LD-ld} -melf64bmip"
7808 ;;
7809 esac
7810 else
7811 case `/usr/bin/file conftest.$ac_objext` in
7812 *32-bit*)
7813 LD="${LD-ld} -32"
7814 ;;
7815 *N32*)
7816 LD="${LD-ld} -n32"
7817 ;;
7818 *64-bit*)
7819 LD="${LD-ld} -64"
7820 ;;
7821 esac
7822 fi
7823 fi
7824 rm -rf conftest*
7825 ;;
7826
7827 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7828 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7829 # Find out which ABI we are using.
7830 echo 'int i;' > conftest.$ac_ext
7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832 (eval $ac_compile) 2>&5
7833 ac_status=$?
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }; then
7836 case `/usr/bin/file conftest.o` in
7837 *32-bit*)
7838 case $host in
7839 x86_64-*kfreebsd*-gnu)
7840 LD="${LD-ld} -m elf_i386_fbsd"
7841 ;;
7842 x86_64-*linux*)
7843 case `/usr/bin/file conftest.o` in
7844 *x86-64*)
7845 LD="${LD-ld} -m elf32_x86_64"
7846 ;;
7847 *)
7848 LD="${LD-ld} -m elf_i386"
7849 ;;
7850 esac
7851 ;;
7852 powerpc64le-*linux*)
7853 LD="${LD-ld} -m elf32lppclinux"
7854 ;;
7855 powerpc64-*linux*)
7856 LD="${LD-ld} -m elf32ppclinux"
7857 ;;
7858 s390x-*linux*)
7859 LD="${LD-ld} -m elf_s390"
7860 ;;
7861 sparc64-*linux*)
7862 LD="${LD-ld} -m elf32_sparc"
7863 ;;
7864 esac
7865 ;;
7866 *64-bit*)
7867 case $host in
7868 x86_64-*kfreebsd*-gnu)
7869 LD="${LD-ld} -m elf_x86_64_fbsd"
7870 ;;
7871 x86_64-*linux*)
7872 LD="${LD-ld} -m elf_x86_64"
7873 ;;
7874 powerpcle-*linux*)
7875 LD="${LD-ld} -m elf64lppc"
7876 ;;
7877 powerpc-*linux*)
7878 LD="${LD-ld} -m elf64ppc"
7879 ;;
7880 s390*-*linux*|s390*-*tpf*)
7881 LD="${LD-ld} -m elf64_s390"
7882 ;;
7883 sparc*-*linux*)
7884 LD="${LD-ld} -m elf64_sparc"
7885 ;;
7886 esac
7887 ;;
7888 esac
7889 fi
7890 rm -rf conftest*
7891 ;;
7892
7893 *-*-sco3.2v5*)
7894 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7895 SAVE_CFLAGS="$CFLAGS"
7896 CFLAGS="$CFLAGS -belf"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7898 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7899 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 ac_ext=c
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910
7911 int
7912 main ()
7913 {
7914
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_link "$LINENO"; then :
7920 lt_cv_cc_needs_belf=yes
7921 else
7922 lt_cv_cc_needs_belf=no
7923 fi
7924 rm -f core conftest.err conftest.$ac_objext \
7925 conftest$ac_exeext conftest.$ac_ext
7926 ac_ext=c
7927 ac_cpp='$CPP $CPPFLAGS'
7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7931
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7934 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7935 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7937 CFLAGS="$SAVE_CFLAGS"
7938 fi
7939 ;;
7940 sparc*-*solaris*)
7941 # Find out which ABI we are using.
7942 echo 'int i;' > conftest.$ac_ext
7943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7944 (eval $ac_compile) 2>&5
7945 ac_status=$?
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; }; then
7948 case `/usr/bin/file conftest.o` in
7949 *64-bit*)
7950 case $lt_cv_prog_gnu_ld in
7951 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7952 *)
7953 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7954 LD="${LD-ld} -64"
7955 fi
7956 ;;
7957 esac
7958 ;;
7959 esac
7960 fi
7961 rm -rf conftest*
7962 ;;
7963 esac
7964
7965 need_locks="$enable_libtool_lock"
7966
7967
7968 case $host_os in
7969 rhapsody* | darwin*)
7970 if test -n "$ac_tool_prefix"; then
7971 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7972 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 if test -n "$DSYMUTIL"; then
7979 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7988 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992 done
7993 done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7999 if test -n "$DSYMUTIL"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8001 $as_echo "$DSYMUTIL" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008 fi
8009 if test -z "$ac_cv_prog_DSYMUTIL"; then
8010 ac_ct_DSYMUTIL=$DSYMUTIL
8011 # Extract the first word of "dsymutil", so it can be a program name with args.
8012 set dummy dsymutil; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 if test -n "$ac_ct_DSYMUTIL"; then
8019 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8023 do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034 IFS=$as_save_IFS
8035
8036 fi
8037 fi
8038 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8039 if test -n "$ac_ct_DSYMUTIL"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8041 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047 if test "x$ac_ct_DSYMUTIL" = x; then
8048 DSYMUTIL=":"
8049 else
8050 case $cross_compiling:$ac_tool_warned in
8051 yes:)
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054 ac_tool_warned=yes ;;
8055 esac
8056 DSYMUTIL=$ac_ct_DSYMUTIL
8057 fi
8058 else
8059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8060 fi
8061
8062 if test -n "$ac_tool_prefix"; then
8063 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8064 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if test -n "$NMEDIT"; then
8071 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8083 fi
8084 done
8085 done
8086 IFS=$as_save_IFS
8087
8088 fi
8089 fi
8090 NMEDIT=$ac_cv_prog_NMEDIT
8091 if test -n "$NMEDIT"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8093 $as_echo "$NMEDIT" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 fi
8098
8099
8100 fi
8101 if test -z "$ac_cv_prog_NMEDIT"; then
8102 ac_ct_NMEDIT=$NMEDIT
8103 # Extract the first word of "nmedit", so it can be a program name with args.
8104 set dummy nmedit; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 if test -n "$ac_ct_NMEDIT"; then
8111 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8123 fi
8124 done
8125 done
8126 IFS=$as_save_IFS
8127
8128 fi
8129 fi
8130 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8131 if test -n "$ac_ct_NMEDIT"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8133 $as_echo "$ac_ct_NMEDIT" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8137 fi
8138
8139 if test "x$ac_ct_NMEDIT" = x; then
8140 NMEDIT=":"
8141 else
8142 case $cross_compiling:$ac_tool_warned in
8143 yes:)
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8146 ac_tool_warned=yes ;;
8147 esac
8148 NMEDIT=$ac_ct_NMEDIT
8149 fi
8150 else
8151 NMEDIT="$ac_cv_prog_NMEDIT"
8152 fi
8153
8154 if test -n "$ac_tool_prefix"; then
8155 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_LIPO+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 if test -n "$LIPO"; then
8163 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8175 fi
8176 done
8177 done
8178 IFS=$as_save_IFS
8179
8180 fi
8181 fi
8182 LIPO=$ac_cv_prog_LIPO
8183 if test -n "$LIPO"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8185 $as_echo "$LIPO" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191
8192 fi
8193 if test -z "$ac_cv_prog_LIPO"; then
8194 ac_ct_LIPO=$LIPO
8195 # Extract the first word of "lipo", so it can be a program name with args.
8196 set dummy lipo; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$ac_ct_LIPO"; then
8203 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_prog_ac_ct_LIPO="lipo"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8223 if test -n "$ac_ct_LIPO"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8225 $as_echo "$ac_ct_LIPO" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231 if test "x$ac_ct_LIPO" = x; then
8232 LIPO=":"
8233 else
8234 case $cross_compiling:$ac_tool_warned in
8235 yes:)
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238 ac_tool_warned=yes ;;
8239 esac
8240 LIPO=$ac_ct_LIPO
8241 fi
8242 else
8243 LIPO="$ac_cv_prog_LIPO"
8244 fi
8245
8246 if test -n "$ac_tool_prefix"; then
8247 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8248 set dummy ${ac_tool_prefix}otool; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$OTOOL"; then
8255 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 OTOOL=$ac_cv_prog_OTOOL
8275 if test -n "$OTOOL"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8277 $as_echo "$OTOOL" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283
8284 fi
8285 if test -z "$ac_cv_prog_OTOOL"; then
8286 ac_ct_OTOOL=$OTOOL
8287 # Extract the first word of "otool", so it can be a program name with args.
8288 set dummy otool; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 if test -n "$ac_ct_OTOOL"; then
8295 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_prog_ac_ct_OTOOL="otool"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8307 fi
8308 done
8309 done
8310 IFS=$as_save_IFS
8311
8312 fi
8313 fi
8314 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8315 if test -n "$ac_ct_OTOOL"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8317 $as_echo "$ac_ct_OTOOL" >&6; }
8318 else
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323 if test "x$ac_ct_OTOOL" = x; then
8324 OTOOL=":"
8325 else
8326 case $cross_compiling:$ac_tool_warned in
8327 yes:)
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 ac_tool_warned=yes ;;
8331 esac
8332 OTOOL=$ac_ct_OTOOL
8333 fi
8334 else
8335 OTOOL="$ac_cv_prog_OTOOL"
8336 fi
8337
8338 if test -n "$ac_tool_prefix"; then
8339 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 if test -n "$OTOOL64"; then
8347 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8359 fi
8360 done
8361 done
8362 IFS=$as_save_IFS
8363
8364 fi
8365 fi
8366 OTOOL64=$ac_cv_prog_OTOOL64
8367 if test -n "$OTOOL64"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8369 $as_echo "$OTOOL64" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375
8376 fi
8377 if test -z "$ac_cv_prog_OTOOL64"; then
8378 ac_ct_OTOOL64=$OTOOL64
8379 # Extract the first word of "otool64", so it can be a program name with args.
8380 set dummy otool64; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 if test -n "$ac_ct_OTOOL64"; then
8387 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_prog_ac_ct_OTOOL64="otool64"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8399 fi
8400 done
8401 done
8402 IFS=$as_save_IFS
8403
8404 fi
8405 fi
8406 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8407 if test -n "$ac_ct_OTOOL64"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8409 $as_echo "$ac_ct_OTOOL64" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414
8415 if test "x$ac_ct_OTOOL64" = x; then
8416 OTOOL64=":"
8417 else
8418 case $cross_compiling:$ac_tool_warned in
8419 yes:)
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422 ac_tool_warned=yes ;;
8423 esac
8424 OTOOL64=$ac_ct_OTOOL64
8425 fi
8426 else
8427 OTOOL64="$ac_cv_prog_OTOOL64"
8428 fi
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
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8457 $as_echo_n "checking for -single_module linker flag... " >&6; }
8458 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 lt_cv_apple_cc_single_mod=no
8462 if test -z "${LT_MULTI_MODULE}"; then
8463 # By default we will add the -single_module flag. You can override
8464 # by either setting the environment variable LT_MULTI_MODULE
8465 # non-empty at configure time, or by adding -multi_module to the
8466 # link flags.
8467 rm -rf libconftest.dylib*
8468 echo "int foo(void){return 1;}" > conftest.c
8469 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8470 -dynamiclib -Wl,-single_module conftest.c" >&5
8471 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8472 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8473 _lt_result=$?
8474 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8475 lt_cv_apple_cc_single_mod=yes
8476 else
8477 cat conftest.err >&5
8478 fi
8479 rm -rf libconftest.dylib*
8480 rm -f conftest.*
8481 fi
8482 fi
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8484 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8486 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8487 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 lt_cv_ld_exported_symbols_list=no
8491 save_LDFLAGS=$LDFLAGS
8492 echo "_main" > conftest.sym
8493 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496
8497 int
8498 main ()
8499 {
8500
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_link "$LINENO"; then :
8506 lt_cv_ld_exported_symbols_list=yes
8507 else
8508 lt_cv_ld_exported_symbols_list=no
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LDFLAGS="$save_LDFLAGS"
8513
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8516 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8518 $as_echo_n "checking for -force_load linker flag... " >&6; }
8519 if test "${lt_cv_ld_force_load+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_ld_force_load=no
8523 cat > conftest.c << _LT_EOF
8524 int forced_loaded() { return 2;}
8525 _LT_EOF
8526 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8527 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8528 echo "$AR cru libconftest.a conftest.o" >&5
8529 $AR cru libconftest.a conftest.o 2>&5
8530 cat > conftest.c << _LT_EOF
8531 int main() { return 0;}
8532 _LT_EOF
8533 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8534 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8535 _lt_result=$?
8536 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8537 lt_cv_ld_force_load=yes
8538 else
8539 cat conftest.err >&5
8540 fi
8541 rm -f conftest.err libconftest.a conftest conftest.c
8542 rm -rf conftest.dSYM
8543
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8546 $as_echo "$lt_cv_ld_force_load" >&6; }
8547 case $host_os in
8548 rhapsody* | darwin1.[012])
8549 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8550 darwin1.*)
8551 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8552 darwin*) # darwin 5.x on
8553 # if running on 10.5 or later, the deployment target defaults
8554 # to the OS version, if on x86, and 10.4, the deployment
8555 # target defaults to 10.4. Don't you love it?
8556 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8557 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8559 10.[012][,.]*)
8560 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8561 10.*)
8562 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8563 esac
8564 ;;
8565 esac
8566 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8567 _lt_dar_single_mod='$single_module'
8568 fi
8569 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8570 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8571 else
8572 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8573 fi
8574 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8575 _lt_dsymutil='~$DSYMUTIL $lib || :'
8576 else
8577 _lt_dsymutil=
8578 fi
8579 ;;
8580 esac
8581
8582 for ac_header in dlfcn.h
8583 do :
8584 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8585 "
8586 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8587 cat >>confdefs.h <<_ACEOF
8588 #define HAVE_DLFCN_H 1
8589 _ACEOF
8590
8591 fi
8592
8593 done
8594
8595
8596
8597
8598
8599
8600 # Set options
8601
8602
8603
8604
8605 enable_win32_dll=no
8606
8607
8608 # Check whether --enable-shared was given.
8609 if test "${enable_shared+set}" = set; then :
8610 enableval=$enable_shared; p=${PACKAGE-default}
8611 case $enableval in
8612 yes) enable_shared=yes ;;
8613 no) enable_shared=no ;;
8614 *)
8615 enable_shared=no
8616 # Look at the argument we got. We use all the common list separators.
8617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8618 for pkg in $enableval; do
8619 IFS="$lt_save_ifs"
8620 if test "X$pkg" = "X$p"; then
8621 enable_shared=yes
8622 fi
8623 done
8624 IFS="$lt_save_ifs"
8625 ;;
8626 esac
8627 else
8628 enable_shared=yes
8629 fi
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639 # Check whether --enable-static was given.
8640 if test "${enable_static+set}" = set; then :
8641 enableval=$enable_static; p=${PACKAGE-default}
8642 case $enableval in
8643 yes) enable_static=yes ;;
8644 no) enable_static=no ;;
8645 *)
8646 enable_static=no
8647 # Look at the argument we got. We use all the common list separators.
8648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8649 for pkg in $enableval; do
8650 IFS="$lt_save_ifs"
8651 if test "X$pkg" = "X$p"; then
8652 enable_static=yes
8653 fi
8654 done
8655 IFS="$lt_save_ifs"
8656 ;;
8657 esac
8658 else
8659 enable_static=yes
8660 fi
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671 # Check whether --with-pic was given.
8672 if test "${with_pic+set}" = set; then :
8673 withval=$with_pic; pic_mode="$withval"
8674 else
8675 pic_mode=default
8676 fi
8677
8678
8679 test -z "$pic_mode" && pic_mode=default
8680
8681
8682
8683
8684
8685
8686
8687 # Check whether --enable-fast-install was given.
8688 if test "${enable_fast_install+set}" = set; then :
8689 enableval=$enable_fast_install; p=${PACKAGE-default}
8690 case $enableval in
8691 yes) enable_fast_install=yes ;;
8692 no) enable_fast_install=no ;;
8693 *)
8694 enable_fast_install=no
8695 # Look at the argument we got. We use all the common list separators.
8696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8697 for pkg in $enableval; do
8698 IFS="$lt_save_ifs"
8699 if test "X$pkg" = "X$p"; then
8700 enable_fast_install=yes
8701 fi
8702 done
8703 IFS="$lt_save_ifs"
8704 ;;
8705 esac
8706 else
8707 enable_fast_install=yes
8708 fi
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720 # This can be used to rebuild libtool when needed
8721 LIBTOOL_DEPS="$ltmain"
8722
8723 # Always use our own libtool.
8724 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8751 test -z "$LN_S" && LN_S="ln -s"
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766 if test -n "${ZSH_VERSION+set}" ; then
8767 setopt NO_GLOB_SUBST
8768 fi
8769
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8771 $as_echo_n "checking for objdir... " >&6; }
8772 if test "${lt_cv_objdir+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 rm -f .libs 2>/dev/null
8776 mkdir .libs 2>/dev/null
8777 if test -d .libs; then
8778 lt_cv_objdir=.libs
8779 else
8780 # MS-DOS does not allow filenames that begin with a dot.
8781 lt_cv_objdir=_libs
8782 fi
8783 rmdir .libs 2>/dev/null
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8786 $as_echo "$lt_cv_objdir" >&6; }
8787 objdir=$lt_cv_objdir
8788
8789
8790
8791
8792
8793 cat >>confdefs.h <<_ACEOF
8794 #define LT_OBJDIR "$lt_cv_objdir/"
8795 _ACEOF
8796
8797
8798
8799
8800 case $host_os in
8801 aix3*)
8802 # AIX sometimes has problems with the GCC collect2 program. For some
8803 # reason, if we set the COLLECT_NAMES environment variable, the problems
8804 # vanish in a puff of smoke.
8805 if test "X${COLLECT_NAMES+set}" != Xset; then
8806 COLLECT_NAMES=
8807 export COLLECT_NAMES
8808 fi
8809 ;;
8810 esac
8811
8812 # Global variables:
8813 ofile=libtool
8814 can_build_shared=yes
8815
8816 # All known linkers require a `.a' archive for static linking (except MSVC,
8817 # which needs '.lib').
8818 libext=a
8819
8820 with_gnu_ld="$lt_cv_prog_gnu_ld"
8821
8822 old_CC="$CC"
8823 old_CFLAGS="$CFLAGS"
8824
8825 # Set sane defaults for various variables
8826 test -z "$CC" && CC=cc
8827 test -z "$LTCC" && LTCC=$CC
8828 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8829 test -z "$LD" && LD=ld
8830 test -z "$ac_objext" && ac_objext=o
8831
8832 for cc_temp in $compiler""; do
8833 case $cc_temp in
8834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8836 \-*) ;;
8837 *) break;;
8838 esac
8839 done
8840 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8841
8842
8843 # Only perform the check for file, if the check method requires it
8844 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8845 case $deplibs_check_method in
8846 file_magic*)
8847 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8849 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8850 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 case $MAGIC_CMD in
8854 [\\/*] | ?:[\\/]*)
8855 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8856 ;;
8857 *)
8858 lt_save_MAGIC_CMD="$MAGIC_CMD"
8859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8860 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8861 for ac_dir in $ac_dummy; do
8862 IFS="$lt_save_ifs"
8863 test -z "$ac_dir" && ac_dir=.
8864 if test -f $ac_dir/${ac_tool_prefix}file; then
8865 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8866 if test -n "$file_magic_test_file"; then
8867 case $deplibs_check_method in
8868 "file_magic "*)
8869 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8871 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8872 $EGREP "$file_magic_regex" > /dev/null; then
8873 :
8874 else
8875 cat <<_LT_EOF 1>&2
8876
8877 *** Warning: the command libtool uses to detect shared libraries,
8878 *** $file_magic_cmd, produces output that libtool cannot recognize.
8879 *** The result is that libtool may fail to recognize shared libraries
8880 *** as such. This will affect the creation of libtool libraries that
8881 *** depend on shared libraries, but programs linked with such libtool
8882 *** libraries will work regardless of this problem. Nevertheless, you
8883 *** may want to report the problem to your system manager and/or to
8884 *** bug-libtool@gnu.org
8885
8886 _LT_EOF
8887 fi ;;
8888 esac
8889 fi
8890 break
8891 fi
8892 done
8893 IFS="$lt_save_ifs"
8894 MAGIC_CMD="$lt_save_MAGIC_CMD"
8895 ;;
8896 esac
8897 fi
8898
8899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8900 if test -n "$MAGIC_CMD"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8902 $as_echo "$MAGIC_CMD" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907
8908
8909
8910
8911
8912 if test -z "$lt_cv_path_MAGIC_CMD"; then
8913 if test -n "$ac_tool_prefix"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8915 $as_echo_n "checking for file... " >&6; }
8916 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 case $MAGIC_CMD in
8920 [\\/*] | ?:[\\/]*)
8921 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8922 ;;
8923 *)
8924 lt_save_MAGIC_CMD="$MAGIC_CMD"
8925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8926 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8927 for ac_dir in $ac_dummy; do
8928 IFS="$lt_save_ifs"
8929 test -z "$ac_dir" && ac_dir=.
8930 if test -f $ac_dir/file; then
8931 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8932 if test -n "$file_magic_test_file"; then
8933 case $deplibs_check_method in
8934 "file_magic "*)
8935 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8937 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8938 $EGREP "$file_magic_regex" > /dev/null; then
8939 :
8940 else
8941 cat <<_LT_EOF 1>&2
8942
8943 *** Warning: the command libtool uses to detect shared libraries,
8944 *** $file_magic_cmd, produces output that libtool cannot recognize.
8945 *** The result is that libtool may fail to recognize shared libraries
8946 *** as such. This will affect the creation of libtool libraries that
8947 *** depend on shared libraries, but programs linked with such libtool
8948 *** libraries will work regardless of this problem. Nevertheless, you
8949 *** may want to report the problem to your system manager and/or to
8950 *** bug-libtool@gnu.org
8951
8952 _LT_EOF
8953 fi ;;
8954 esac
8955 fi
8956 break
8957 fi
8958 done
8959 IFS="$lt_save_ifs"
8960 MAGIC_CMD="$lt_save_MAGIC_CMD"
8961 ;;
8962 esac
8963 fi
8964
8965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8966 if test -n "$MAGIC_CMD"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8968 $as_echo "$MAGIC_CMD" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8972 fi
8973
8974
8975 else
8976 MAGIC_CMD=:
8977 fi
8978 fi
8979
8980 fi
8981 ;;
8982 esac
8983
8984 # Use C for the default configuration in the libtool script
8985
8986 lt_save_CC="$CC"
8987 ac_ext=c
8988 ac_cpp='$CPP $CPPFLAGS'
8989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8992
8993
8994 # Source file extension for C test sources.
8995 ac_ext=c
8996
8997 # Object file extension for compiled C test sources.
8998 objext=o
8999 objext=$objext
9000
9001 # Code to be used in simple compile tests
9002 lt_simple_compile_test_code="int some_variable = 0;"
9003
9004 # Code to be used in simple link tests
9005 lt_simple_link_test_code='int main(){return(0);}'
9006
9007
9008
9009
9010
9011
9012
9013 # If no C compiler was specified, use CC.
9014 LTCC=${LTCC-"$CC"}
9015
9016 # If no C compiler flags were specified, use CFLAGS.
9017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9018
9019 # Allow CC to be a program name with arguments.
9020 compiler=$CC
9021
9022 # Save the default compiler, since it gets overwritten when the other
9023 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9024 compiler_DEFAULT=$CC
9025
9026 # save warnings/boilerplate of simple test code
9027 ac_outfile=conftest.$ac_objext
9028 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9029 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9030 _lt_compiler_boilerplate=`cat conftest.err`
9031 $RM conftest*
9032
9033 ac_outfile=conftest.$ac_objext
9034 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9035 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9036 _lt_linker_boilerplate=`cat conftest.err`
9037 $RM -r conftest*
9038
9039
9040 ## CAVEAT EMPTOR:
9041 ## There is no encapsulation within the following macros, do not change
9042 ## the running order or otherwise move them around unless you know exactly
9043 ## what you are doing...
9044 if test -n "$compiler"; then
9045
9046 lt_prog_compiler_no_builtin_flag=
9047
9048 if test "$GCC" = yes; then
9049 case $cc_basename in
9050 nvcc*)
9051 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9052 *)
9053 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9054 esac
9055
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9057 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9058 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9060 else
9061 lt_cv_prog_compiler_rtti_exceptions=no
9062 ac_outfile=conftest.$ac_objext
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064 lt_compiler_flag="-fno-rtti -fno-exceptions"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 # The option is referenced via a variable to avoid confusing sed.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>conftest.err)
9076 ac_status=$?
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s "$ac_outfile"; then
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings other than the usual output.
9082 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9084 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9085 lt_cv_prog_compiler_rtti_exceptions=yes
9086 fi
9087 fi
9088 $RM conftest*
9089
9090 fi
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9092 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9093
9094 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9095 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9096 else
9097 :
9098 fi
9099
9100 fi
9101
9102
9103
9104
9105
9106
9107 lt_prog_compiler_wl=
9108 lt_prog_compiler_pic=
9109 lt_prog_compiler_static=
9110
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9112 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9113
9114 if test "$GCC" = yes; then
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_static='-static'
9117
9118 case $host_os in
9119 aix*)
9120 # All AIX code is PIC.
9121 if test "$host_cpu" = ia64; then
9122 # AIX 5 now supports IA64 processor
9123 lt_prog_compiler_static='-Bstatic'
9124 fi
9125 lt_prog_compiler_pic='-fPIC'
9126 ;;
9127
9128 amigaos*)
9129 case $host_cpu in
9130 powerpc)
9131 # see comment about AmigaOS4 .so support
9132 lt_prog_compiler_pic='-fPIC'
9133 ;;
9134 m68k)
9135 # FIXME: we need at least 68020 code to build shared libraries, but
9136 # adding the `-m68020' flag to GCC prevents building anything better,
9137 # like `-m68040'.
9138 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9139 ;;
9140 esac
9141 ;;
9142
9143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9144 # PIC is the default for these OSes.
9145 ;;
9146
9147 mingw* | cygwin* | pw32* | os2* | cegcc*)
9148 # This hack is so that the source file can tell whether it is being
9149 # built for inclusion in a dll (and should export symbols for example).
9150 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9151 # (--disable-auto-import) libraries
9152 lt_prog_compiler_pic='-DDLL_EXPORT'
9153 ;;
9154
9155 darwin* | rhapsody*)
9156 # PIC is the default on this platform
9157 # Common symbols not allowed in MH_DYLIB files
9158 lt_prog_compiler_pic='-fno-common'
9159 ;;
9160
9161 haiku*)
9162 # PIC is the default for Haiku.
9163 # The "-static" flag exists, but is broken.
9164 lt_prog_compiler_static=
9165 ;;
9166
9167 hpux*)
9168 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9169 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9170 # sets the default TLS model and affects inlining.
9171 case $host_cpu in
9172 hppa*64*)
9173 # +Z the default
9174 ;;
9175 *)
9176 lt_prog_compiler_pic='-fPIC'
9177 ;;
9178 esac
9179 ;;
9180
9181 interix[3-9]*)
9182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9183 # Instead, we relocate shared libraries at runtime.
9184 ;;
9185
9186 msdosdjgpp*)
9187 # Just because we use GCC doesn't mean we suddenly get shared libraries
9188 # on systems that don't support them.
9189 lt_prog_compiler_can_build_shared=no
9190 enable_shared=no
9191 ;;
9192
9193 *nto* | *qnx*)
9194 # QNX uses GNU C++, but need to define -shared option too, otherwise
9195 # it will coredump.
9196 lt_prog_compiler_pic='-fPIC -shared'
9197 ;;
9198
9199 sysv4*MP*)
9200 if test -d /usr/nec; then
9201 lt_prog_compiler_pic=-Kconform_pic
9202 fi
9203 ;;
9204
9205 *)
9206 lt_prog_compiler_pic='-fPIC'
9207 ;;
9208 esac
9209
9210 case $cc_basename in
9211 nvcc*) # Cuda Compiler Driver 2.2
9212 lt_prog_compiler_wl='-Xlinker '
9213 lt_prog_compiler_pic='-Xcompiler -fPIC'
9214 ;;
9215 esac
9216 else
9217 # PORTME Check for flag to pass linker flags through the system compiler.
9218 case $host_os in
9219 aix*)
9220 lt_prog_compiler_wl='-Wl,'
9221 if test "$host_cpu" = ia64; then
9222 # AIX 5 now supports IA64 processor
9223 lt_prog_compiler_static='-Bstatic'
9224 else
9225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9226 fi
9227 ;;
9228
9229 mingw* | cygwin* | pw32* | os2* | cegcc*)
9230 # This hack is so that the source file can tell whether it is being
9231 # built for inclusion in a dll (and should export symbols for example).
9232 lt_prog_compiler_pic='-DDLL_EXPORT'
9233 ;;
9234
9235 hpux9* | hpux10* | hpux11*)
9236 lt_prog_compiler_wl='-Wl,'
9237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9238 # not for PA HP-UX.
9239 case $host_cpu in
9240 hppa*64*|ia64*)
9241 # +Z the default
9242 ;;
9243 *)
9244 lt_prog_compiler_pic='+Z'
9245 ;;
9246 esac
9247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9248 lt_prog_compiler_static='${wl}-a ${wl}archive'
9249 ;;
9250
9251 irix5* | irix6* | nonstopux*)
9252 lt_prog_compiler_wl='-Wl,'
9253 # PIC (with -KPIC) is the default.
9254 lt_prog_compiler_static='-non_shared'
9255 ;;
9256
9257 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9258 case $cc_basename in
9259 # old Intel for x86_64 which still supported -KPIC.
9260 ecc*)
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-KPIC'
9263 lt_prog_compiler_static='-static'
9264 ;;
9265 # icc used to be incompatible with GCC.
9266 # ICC 10 doesn't accept -KPIC any more.
9267 icc* | ifort*)
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='-fPIC'
9270 lt_prog_compiler_static='-static'
9271 ;;
9272 # Lahey Fortran 8.1.
9273 lf95*)
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='--shared'
9276 lt_prog_compiler_static='--static'
9277 ;;
9278 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9279 # Portland Group compilers (*not* the Pentium gcc compiler,
9280 # which looks to be a dead project)
9281 lt_prog_compiler_wl='-Wl,'
9282 lt_prog_compiler_pic='-fpic'
9283 lt_prog_compiler_static='-Bstatic'
9284 ;;
9285 ccc*)
9286 lt_prog_compiler_wl='-Wl,'
9287 # All Alpha code is PIC.
9288 lt_prog_compiler_static='-non_shared'
9289 ;;
9290 xl* | bgxl* | bgf* | mpixl*)
9291 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_pic='-qpic'
9294 lt_prog_compiler_static='-qstaticlink'
9295 ;;
9296 *)
9297 case `$CC -V 2>&1 | sed 5q` in
9298 *Sun\ F* | *Sun*Fortran*)
9299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9302 lt_prog_compiler_wl=''
9303 ;;
9304 *Sun\ C*)
9305 # Sun C 5.9
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9308 lt_prog_compiler_wl='-Wl,'
9309 ;;
9310 esac
9311 ;;
9312 esac
9313 ;;
9314
9315 newsos6)
9316 lt_prog_compiler_pic='-KPIC'
9317 lt_prog_compiler_static='-Bstatic'
9318 ;;
9319
9320 *nto* | *qnx*)
9321 # QNX uses GNU C++, but need to define -shared option too, otherwise
9322 # it will coredump.
9323 lt_prog_compiler_pic='-fPIC -shared'
9324 ;;
9325
9326 osf3* | osf4* | osf5*)
9327 lt_prog_compiler_wl='-Wl,'
9328 # All OSF/1 code is PIC.
9329 lt_prog_compiler_static='-non_shared'
9330 ;;
9331
9332 rdos*)
9333 lt_prog_compiler_static='-non_shared'
9334 ;;
9335
9336 solaris*)
9337 lt_prog_compiler_pic='-KPIC'
9338 lt_prog_compiler_static='-Bstatic'
9339 case $cc_basename in
9340 f77* | f90* | f95*)
9341 lt_prog_compiler_wl='-Qoption ld ';;
9342 *)
9343 lt_prog_compiler_wl='-Wl,';;
9344 esac
9345 ;;
9346
9347 sunos4*)
9348 lt_prog_compiler_wl='-Qoption ld '
9349 lt_prog_compiler_pic='-PIC'
9350 lt_prog_compiler_static='-Bstatic'
9351 ;;
9352
9353 sysv4 | sysv4.2uw2* | sysv4.3*)
9354 lt_prog_compiler_wl='-Wl,'
9355 lt_prog_compiler_pic='-KPIC'
9356 lt_prog_compiler_static='-Bstatic'
9357 ;;
9358
9359 sysv4*MP*)
9360 if test -d /usr/nec ;then
9361 lt_prog_compiler_pic='-Kconform_pic'
9362 lt_prog_compiler_static='-Bstatic'
9363 fi
9364 ;;
9365
9366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9367 lt_prog_compiler_wl='-Wl,'
9368 lt_prog_compiler_pic='-KPIC'
9369 lt_prog_compiler_static='-Bstatic'
9370 ;;
9371
9372 unicos*)
9373 lt_prog_compiler_wl='-Wl,'
9374 lt_prog_compiler_can_build_shared=no
9375 ;;
9376
9377 uts4*)
9378 lt_prog_compiler_pic='-pic'
9379 lt_prog_compiler_static='-Bstatic'
9380 ;;
9381
9382 *)
9383 lt_prog_compiler_can_build_shared=no
9384 ;;
9385 esac
9386 fi
9387
9388 case $host_os in
9389 # For platforms which do not support PIC, -DPIC is meaningless:
9390 *djgpp*)
9391 lt_prog_compiler_pic=
9392 ;;
9393 *)
9394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9395 ;;
9396 esac
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9398 $as_echo "$lt_prog_compiler_pic" >&6; }
9399
9400
9401
9402
9403
9404
9405 #
9406 # Check to make sure the PIC flag actually works.
9407 #
9408 if test -n "$lt_prog_compiler_pic"; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9410 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9411 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 lt_cv_prog_compiler_pic_works=no
9415 ac_outfile=conftest.$ac_objext
9416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9417 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9418 # Insert the option either (1) after the last *FLAGS variable, or
9419 # (2) before a word containing "conftest.", or (3) at the end.
9420 # Note that $ac_compile itself does not contain backslashes and begins
9421 # with a dollar sign (not a hyphen), so the echo should work correctly.
9422 # The option is referenced via a variable to avoid confusing sed.
9423 lt_compile=`echo "$ac_compile" | $SED \
9424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9426 -e 's:$: $lt_compiler_flag:'`
9427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9428 (eval "$lt_compile" 2>conftest.err)
9429 ac_status=$?
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 if (exit $ac_status) && test -s "$ac_outfile"; then
9433 # The compiler can only warn and ignore the option if not recognized
9434 # So say no if there are warnings other than the usual output.
9435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9438 lt_cv_prog_compiler_pic_works=yes
9439 fi
9440 fi
9441 $RM conftest*
9442
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9445 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9446
9447 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9448 case $lt_prog_compiler_pic in
9449 "" | " "*) ;;
9450 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9451 esac
9452 else
9453 lt_prog_compiler_pic=
9454 lt_prog_compiler_can_build_shared=no
9455 fi
9456
9457 fi
9458
9459
9460
9461
9462
9463
9464 #
9465 # Check to make sure the static flag actually works.
9466 #
9467 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9469 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9470 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 lt_cv_prog_compiler_static_works=no
9474 save_LDFLAGS="$LDFLAGS"
9475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9478 # The linker can only warn and ignore the option if not recognized
9479 # So say no if there are warnings
9480 if test -s conftest.err; then
9481 # Append any errors to the config.log.
9482 cat conftest.err 1>&5
9483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9485 if diff conftest.exp conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler_static_works=yes
9487 fi
9488 else
9489 lt_cv_prog_compiler_static_works=yes
9490 fi
9491 fi
9492 $RM -r conftest*
9493 LDFLAGS="$save_LDFLAGS"
9494
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9497 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9498
9499 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9500 :
9501 else
9502 lt_prog_compiler_static=
9503 fi
9504
9505
9506
9507
9508
9509
9510
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9513 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 lt_cv_prog_compiler_c_o=no
9517 $RM -r conftest 2>/dev/null
9518 mkdir conftest
9519 cd conftest
9520 mkdir out
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9522
9523 lt_compiler_flag="-o out/conftest2.$ac_objext"
9524 # Insert the option either (1) after the last *FLAGS variable, or
9525 # (2) before a word containing "conftest.", or (3) at the end.
9526 # Note that $ac_compile itself does not contain backslashes and begins
9527 # with a dollar sign (not a hyphen), so the echo should work correctly.
9528 lt_compile=`echo "$ac_compile" | $SED \
9529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9531 -e 's:$: $lt_compiler_flag:'`
9532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9533 (eval "$lt_compile" 2>out/conftest.err)
9534 ac_status=$?
9535 cat out/conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9538 then
9539 # The compiler can only warn and ignore the option if not recognized
9540 # So say no if there are warnings
9541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9544 lt_cv_prog_compiler_c_o=yes
9545 fi
9546 fi
9547 chmod u+w . 2>&5
9548 $RM conftest*
9549 # SGI C++ compiler will create directory out/ii_files/ for
9550 # template instantiation
9551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9552 $RM out/* && rmdir out
9553 cd ..
9554 $RM -r conftest
9555 $RM conftest*
9556
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9559 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9560
9561
9562
9563
9564
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9567 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9568 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 lt_cv_prog_compiler_c_o=no
9572 $RM -r conftest 2>/dev/null
9573 mkdir conftest
9574 cd conftest
9575 mkdir out
9576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9577
9578 lt_compiler_flag="-o out/conftest2.$ac_objext"
9579 # Insert the option either (1) after the last *FLAGS variable, or
9580 # (2) before a word containing "conftest.", or (3) at the end.
9581 # Note that $ac_compile itself does not contain backslashes and begins
9582 # with a dollar sign (not a hyphen), so the echo should work correctly.
9583 lt_compile=`echo "$ac_compile" | $SED \
9584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9586 -e 's:$: $lt_compiler_flag:'`
9587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9588 (eval "$lt_compile" 2>out/conftest.err)
9589 ac_status=$?
9590 cat out/conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9593 then
9594 # The compiler can only warn and ignore the option if not recognized
9595 # So say no if there are warnings
9596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler_c_o=yes
9600 fi
9601 fi
9602 chmod u+w . 2>&5
9603 $RM conftest*
9604 # SGI C++ compiler will create directory out/ii_files/ for
9605 # template instantiation
9606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9607 $RM out/* && rmdir out
9608 cd ..
9609 $RM -r conftest
9610 $RM conftest*
9611
9612 fi
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9614 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9615
9616
9617
9618
9619 hard_links="nottested"
9620 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9621 # do not overwrite the value of need_locks provided by the user
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9623 $as_echo_n "checking if we can lock with hard links... " >&6; }
9624 hard_links=yes
9625 $RM conftest*
9626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9627 touch conftest.a
9628 ln conftest.a conftest.b 2>&5 || hard_links=no
9629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9631 $as_echo "$hard_links" >&6; }
9632 if test "$hard_links" = no; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9634 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9635 need_locks=warn
9636 fi
9637 else
9638 need_locks=no
9639 fi
9640
9641
9642
9643
9644
9645
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9647 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9648
9649 runpath_var=
9650 allow_undefined_flag=
9651 always_export_symbols=no
9652 archive_cmds=
9653 archive_expsym_cmds=
9654 compiler_needs_object=no
9655 enable_shared_with_static_runtimes=no
9656 export_dynamic_flag_spec=
9657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9658 hardcode_automatic=no
9659 hardcode_direct=no
9660 hardcode_direct_absolute=no
9661 hardcode_libdir_flag_spec=
9662 hardcode_libdir_flag_spec_ld=
9663 hardcode_libdir_separator=
9664 hardcode_minus_L=no
9665 hardcode_shlibpath_var=unsupported
9666 inherit_rpath=no
9667 link_all_deplibs=unknown
9668 module_cmds=
9669 module_expsym_cmds=
9670 old_archive_from_new_cmds=
9671 old_archive_from_expsyms_cmds=
9672 thread_safe_flag_spec=
9673 whole_archive_flag_spec=
9674 # include_expsyms should be a list of space-separated symbols to be *always*
9675 # included in the symbol list
9676 include_expsyms=
9677 # exclude_expsyms can be an extended regexp of symbols to exclude
9678 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9679 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9680 # as well as any symbol that contains `d'.
9681 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9682 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9683 # platforms (ab)use it in PIC code, but their linkers get confused if
9684 # the symbol is explicitly referenced. Since portable code cannot
9685 # rely on this symbol name, it's probably fine to never include it in
9686 # preloaded symbol tables.
9687 # Exclude shared library initialization/finalization symbols.
9688 extract_expsyms_cmds=
9689
9690 case $host_os in
9691 cygwin* | mingw* | pw32* | cegcc*)
9692 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9693 # When not using gcc, we currently assume that we are using
9694 # Microsoft Visual C++.
9695 if test "$GCC" != yes; then
9696 with_gnu_ld=no
9697 fi
9698 ;;
9699 interix*)
9700 # we just hope/assume this is gcc and not c89 (= MSVC++)
9701 with_gnu_ld=yes
9702 ;;
9703 openbsd*)
9704 with_gnu_ld=no
9705 ;;
9706 esac
9707
9708 ld_shlibs=yes
9709
9710 # On some targets, GNU ld is compatible enough with the native linker
9711 # that we're better off using the native interface for both.
9712 lt_use_gnu_ld_interface=no
9713 if test "$with_gnu_ld" = yes; then
9714 case $host_os in
9715 aix*)
9716 # The AIX port of GNU ld has always aspired to compatibility
9717 # with the native linker. However, as the warning in the GNU ld
9718 # block says, versions before 2.19.5* couldn't really create working
9719 # shared libraries, regardless of the interface used.
9720 case `$LD -v 2>&1` in
9721 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9722 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9723 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9724 *)
9725 lt_use_gnu_ld_interface=yes
9726 ;;
9727 esac
9728 ;;
9729 *)
9730 lt_use_gnu_ld_interface=yes
9731 ;;
9732 esac
9733 fi
9734
9735 if test "$lt_use_gnu_ld_interface" = yes; then
9736 # If archive_cmds runs LD, not CC, wlarc should be empty
9737 wlarc='${wl}'
9738
9739 # Set some defaults for GNU ld with shared library support. These
9740 # are reset later if shared libraries are not supported. Putting them
9741 # here allows them to be overridden if necessary.
9742 runpath_var=LD_RUN_PATH
9743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9744 export_dynamic_flag_spec='${wl}--export-dynamic'
9745 # ancient GNU ld didn't support --whole-archive et. al.
9746 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9747 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9748 else
9749 whole_archive_flag_spec=
9750 fi
9751 supports_anon_versioning=no
9752 case `$LD -v 2>&1` in
9753 *GNU\ gold*) supports_anon_versioning=yes ;;
9754 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9757 *\ 2.11.*) ;; # other 2.11 versions
9758 *) supports_anon_versioning=yes ;;
9759 esac
9760
9761 # See if GNU ld supports shared libraries.
9762 case $host_os in
9763 aix[3-9]*)
9764 # On AIX/PPC, the GNU linker is very broken
9765 if test "$host_cpu" != ia64; then
9766 ld_shlibs=no
9767 cat <<_LT_EOF 1>&2
9768
9769 *** Warning: the GNU linker, at least up to release 2.19, is reported
9770 *** to be unable to reliably create shared libraries on AIX.
9771 *** Therefore, libtool is disabling shared libraries support. If you
9772 *** really care for shared libraries, you may want to install binutils
9773 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9774 *** You will then need to restart the configuration process.
9775
9776 _LT_EOF
9777 fi
9778 ;;
9779
9780 amigaos*)
9781 case $host_cpu in
9782 powerpc)
9783 # see comment about AmigaOS4 .so support
9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 archive_expsym_cmds=''
9786 ;;
9787 m68k)
9788 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)'
9789 hardcode_libdir_flag_spec='-L$libdir'
9790 hardcode_minus_L=yes
9791 ;;
9792 esac
9793 ;;
9794
9795 beos*)
9796 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797 allow_undefined_flag=unsupported
9798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9799 # support --undefined. This deserves some investigation. FIXME
9800 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801 else
9802 ld_shlibs=no
9803 fi
9804 ;;
9805
9806 cygwin* | mingw* | pw32* | cegcc*)
9807 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9808 # as there is no search path for DLLs.
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 export_dynamic_flag_spec='${wl}--export-all-symbols'
9811 allow_undefined_flag=unsupported
9812 always_export_symbols=no
9813 enable_shared_with_static_runtimes=yes
9814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9815
9816 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9818 # If the export-symbols file already is a .def file (1st line
9819 # is EXPORTS), use it as is; otherwise, prepend...
9820 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9821 cp $export_symbols $output_objdir/$soname.def;
9822 else
9823 echo EXPORTS > $output_objdir/$soname.def;
9824 cat $export_symbols >> $output_objdir/$soname.def;
9825 fi~
9826 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9827 else
9828 ld_shlibs=no
9829 fi
9830 ;;
9831
9832 haiku*)
9833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9834 link_all_deplibs=yes
9835 ;;
9836
9837 interix[3-9]*)
9838 hardcode_direct=no
9839 hardcode_shlibpath_var=no
9840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9841 export_dynamic_flag_spec='${wl}-E'
9842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9843 # Instead, shared libraries are loaded at an image base (0x10000000 by
9844 # default) and relocated if they conflict, which is a slow very memory
9845 # consuming and fragmenting process. To avoid this, we pick a random,
9846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9847 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9849 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'
9850 ;;
9851
9852 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9853 tmp_diet=no
9854 if test "$host_os" = linux-dietlibc; then
9855 case $cc_basename in
9856 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9857 esac
9858 fi
9859 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9860 && test "$tmp_diet" = no
9861 then
9862 tmp_addflag=' $pic_flag'
9863 tmp_sharedflag='-shared'
9864 case $cc_basename,$host_cpu in
9865 pgcc*) # Portland Group C compiler
9866 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'
9867 tmp_addflag=' $pic_flag'
9868 ;;
9869 pgf77* | pgf90* | pgf95* | pgfortran*)
9870 # Portland Group f77 and f90 compilers
9871 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'
9872 tmp_addflag=' $pic_flag -Mnomain' ;;
9873 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9874 tmp_addflag=' -i_dynamic' ;;
9875 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9876 tmp_addflag=' -i_dynamic -nofor_main' ;;
9877 ifc* | ifort*) # Intel Fortran compiler
9878 tmp_addflag=' -nofor_main' ;;
9879 lf95*) # Lahey Fortran 8.1
9880 whole_archive_flag_spec=
9881 tmp_sharedflag='--shared' ;;
9882 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9883 tmp_sharedflag='-qmkshrobj'
9884 tmp_addflag= ;;
9885 nvcc*) # Cuda Compiler Driver 2.2
9886 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'
9887 compiler_needs_object=yes
9888 ;;
9889 esac
9890 case `$CC -V 2>&1 | sed 5q` in
9891 *Sun\ C*) # Sun C 5.9
9892 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'
9893 compiler_needs_object=yes
9894 tmp_sharedflag='-G' ;;
9895 *Sun\ F*) # Sun Fortran 8.3
9896 tmp_sharedflag='-G' ;;
9897 esac
9898 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899
9900 if test "x$supports_anon_versioning" = xyes; then
9901 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9903 echo "local: *; };" >> $output_objdir/$libname.ver~
9904 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9905 fi
9906
9907 case $cc_basename in
9908 xlf* | bgf* | bgxlf* | mpixlf*)
9909 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9910 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9911 hardcode_libdir_flag_spec=
9912 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9913 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9914 if test "x$supports_anon_versioning" = xyes; then
9915 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9916 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9917 echo "local: *; };" >> $output_objdir/$libname.ver~
9918 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9919 fi
9920 ;;
9921 esac
9922 else
9923 ld_shlibs=no
9924 fi
9925 ;;
9926
9927 netbsd*)
9928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9930 wlarc=
9931 else
9932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9934 fi
9935 ;;
9936
9937 solaris*)
9938 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9939 ld_shlibs=no
9940 cat <<_LT_EOF 1>&2
9941
9942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9943 *** create shared libraries on Solaris systems. Therefore, libtool
9944 *** is disabling shared libraries support. We urge you to upgrade GNU
9945 *** binutils to release 2.9.1 or newer. Another option is to modify
9946 *** your PATH or compiler configuration so that the native linker is
9947 *** used, and then restart.
9948
9949 _LT_EOF
9950 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9953 else
9954 ld_shlibs=no
9955 fi
9956 ;;
9957
9958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9959 case `$LD -v 2>&1` in
9960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9961 ld_shlibs=no
9962 cat <<_LT_EOF 1>&2
9963
9964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9965 *** reliably create shared libraries on SCO systems. Therefore, libtool
9966 *** is disabling shared libraries support. We urge you to upgrade GNU
9967 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9968 *** your PATH or compiler configuration so that the native linker is
9969 *** used, and then restart.
9970
9971 _LT_EOF
9972 ;;
9973 *)
9974 # For security reasons, it is highly recommended that you always
9975 # use absolute paths for naming shared libraries, and exclude the
9976 # DT_RUNPATH tag from executables and libraries. But doing so
9977 # requires that you compile everything twice, which is a pain.
9978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982 else
9983 ld_shlibs=no
9984 fi
9985 ;;
9986 esac
9987 ;;
9988
9989 sunos4*)
9990 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9991 wlarc=
9992 hardcode_direct=yes
9993 hardcode_shlibpath_var=no
9994 ;;
9995
9996 *)
9997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10000 else
10001 ld_shlibs=no
10002 fi
10003 ;;
10004 esac
10005
10006 if test "$ld_shlibs" = no; then
10007 runpath_var=
10008 hardcode_libdir_flag_spec=
10009 export_dynamic_flag_spec=
10010 whole_archive_flag_spec=
10011 fi
10012 else
10013 # PORTME fill in a description of your system's linker (not GNU ld)
10014 case $host_os in
10015 aix3*)
10016 allow_undefined_flag=unsupported
10017 always_export_symbols=yes
10018 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'
10019 # Note: this linker hardcodes the directories in LIBPATH if there
10020 # are no directories specified by -L.
10021 hardcode_minus_L=yes
10022 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10023 # Neither direct hardcoding nor static linking is supported with a
10024 # broken collect2.
10025 hardcode_direct=unsupported
10026 fi
10027 ;;
10028
10029 aix[4-9]*)
10030 if test "$host_cpu" = ia64; then
10031 # On IA64, the linker does run time linking by default, so we don't
10032 # have to do anything special.
10033 aix_use_runtimelinking=no
10034 exp_sym_flag='-Bexport'
10035 no_entry_flag=""
10036 else
10037 # If we're using GNU nm, then we don't want the "-C" option.
10038 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10039 # Also, AIX nm treats weak defined symbols like other global
10040 # defined symbols, whereas GNU nm marks them as "W".
10041 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10042 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'
10043 else
10044 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'
10045 fi
10046 aix_use_runtimelinking=no
10047
10048 # Test if we are trying to use run time linking or normal
10049 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10050 # need to do runtime linking.
10051 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10052 for ld_flag in $LDFLAGS; do
10053 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10054 aix_use_runtimelinking=yes
10055 break
10056 fi
10057 done
10058 ;;
10059 esac
10060
10061 exp_sym_flag='-bexport'
10062 no_entry_flag='-bnoentry'
10063 fi
10064
10065 # When large executables or shared objects are built, AIX ld can
10066 # have problems creating the table of contents. If linking a library
10067 # or program results in "error TOC overflow" add -mminimal-toc to
10068 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10069 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10070
10071 archive_cmds=''
10072 hardcode_direct=yes
10073 hardcode_direct_absolute=yes
10074 hardcode_libdir_separator=':'
10075 link_all_deplibs=yes
10076 file_list_spec='${wl}-f,'
10077
10078 if test "$GCC" = yes; then
10079 case $host_os in aix4.[012]|aix4.[012].*)
10080 # We only want to do this on AIX 4.2 and lower, the check
10081 # below for broken collect2 doesn't work under 4.3+
10082 collect2name=`${CC} -print-prog-name=collect2`
10083 if test -f "$collect2name" &&
10084 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10085 then
10086 # We have reworked collect2
10087 :
10088 else
10089 # We have old collect2
10090 hardcode_direct=unsupported
10091 # It fails to find uninstalled libraries when the uninstalled
10092 # path is not listed in the libpath. Setting hardcode_minus_L
10093 # to unsupported forces relinking
10094 hardcode_minus_L=yes
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_libdir_separator=
10097 fi
10098 ;;
10099 esac
10100 shared_flag='-shared'
10101 if test "$aix_use_runtimelinking" = yes; then
10102 shared_flag="$shared_flag "'${wl}-G'
10103 fi
10104 else
10105 # not using gcc
10106 if test "$host_cpu" = ia64; then
10107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10108 # chokes on -Wl,-G. The following line is correct:
10109 shared_flag='-G'
10110 else
10111 if test "$aix_use_runtimelinking" = yes; then
10112 shared_flag='${wl}-G'
10113 else
10114 shared_flag='${wl}-bM:SRE'
10115 fi
10116 fi
10117 fi
10118
10119 export_dynamic_flag_spec='${wl}-bexpall'
10120 # It seems that -bexpall does not export symbols beginning with
10121 # underscore (_), so it is better to generate a list of symbols to export.
10122 always_export_symbols=yes
10123 if test "$aix_use_runtimelinking" = yes; then
10124 # Warning - without using the other runtime loading flags (-brtl),
10125 # -berok will link without error, but may produce a broken library.
10126 allow_undefined_flag='-berok'
10127 # Determine the default libpath from the value encoded in an
10128 # empty executable.
10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131
10132 int
10133 main ()
10134 {
10135
10136 ;
10137 return 0;
10138 }
10139 _ACEOF
10140 if ac_fn_c_try_link "$LINENO"; then :
10141
10142 lt_aix_libpath_sed='
10143 /Import File Strings/,/^$/ {
10144 /^0/ {
10145 s/^0 *\(.*\)$/\1/
10146 p
10147 }
10148 }'
10149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10150 # Check for a 64-bit object if we didn't find anything.
10151 if test -z "$aix_libpath"; then
10152 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10153 fi
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10158
10159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10160 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"
10161 else
10162 if test "$host_cpu" = ia64; then
10163 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10164 allow_undefined_flag="-z nodefs"
10165 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"
10166 else
10167 # Determine the default libpath from the value encoded in an
10168 # empty executable.
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171
10172 int
10173 main ()
10174 {
10175
10176 ;
10177 return 0;
10178 }
10179 _ACEOF
10180 if ac_fn_c_try_link "$LINENO"; then :
10181
10182 lt_aix_libpath_sed='
10183 /Import File Strings/,/^$/ {
10184 /^0/ {
10185 s/^0 *\(.*\)$/\1/
10186 p
10187 }
10188 }'
10189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10190 # Check for a 64-bit object if we didn't find anything.
10191 if test -z "$aix_libpath"; then
10192 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10193 fi
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10198
10199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10200 # Warning - without using the other run time loading flags,
10201 # -berok will link without error, but may produce a broken library.
10202 no_undefined_flag=' ${wl}-bernotok'
10203 allow_undefined_flag=' ${wl}-berok'
10204 if test "$with_gnu_ld" = yes; then
10205 # We only use this code for GNU lds that support --whole-archive.
10206 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10207 else
10208 # Exported symbols can be pulled into shared objects from archives
10209 whole_archive_flag_spec='$convenience'
10210 fi
10211 archive_cmds_need_lc=yes
10212 # This is similar to how AIX traditionally builds its shared libraries.
10213 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'
10214 fi
10215 fi
10216 ;;
10217
10218 amigaos*)
10219 case $host_cpu in
10220 powerpc)
10221 # see comment about AmigaOS4 .so support
10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10223 archive_expsym_cmds=''
10224 ;;
10225 m68k)
10226 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)'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_minus_L=yes
10229 ;;
10230 esac
10231 ;;
10232
10233 bsdi[45]*)
10234 export_dynamic_flag_spec=-rdynamic
10235 ;;
10236
10237 cygwin* | mingw* | pw32* | cegcc*)
10238 # When not using gcc, we currently assume that we are using
10239 # Microsoft Visual C++.
10240 # hardcode_libdir_flag_spec is actually meaningless, as there is
10241 # no search path for DLLs.
10242 hardcode_libdir_flag_spec=' '
10243 allow_undefined_flag=unsupported
10244 # Tell ltmain to make .lib files, not .a files.
10245 libext=lib
10246 # Tell ltmain to make .dll files, not .so files.
10247 shrext_cmds=".dll"
10248 # FIXME: Setting linknames here is a bad hack.
10249 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10250 # The linker will automatically build a .lib file if we build a DLL.
10251 old_archive_from_new_cmds='true'
10252 # FIXME: Should let the user specify the lib program.
10253 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10254 fix_srcfile_path='`cygpath -w "$srcfile"`'
10255 enable_shared_with_static_runtimes=yes
10256 ;;
10257
10258 darwin* | rhapsody*)
10259
10260
10261 archive_cmds_need_lc=no
10262 hardcode_direct=no
10263 hardcode_automatic=yes
10264 hardcode_shlibpath_var=unsupported
10265 if test "$lt_cv_ld_force_load" = "yes"; then
10266 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\"`'
10267 else
10268 whole_archive_flag_spec=''
10269 fi
10270 link_all_deplibs=yes
10271 allow_undefined_flag="$_lt_dar_allow_undefined"
10272 case $cc_basename in
10273 ifort*) _lt_dar_can_shared=yes ;;
10274 *) _lt_dar_can_shared=$GCC ;;
10275 esac
10276 if test "$_lt_dar_can_shared" = "yes"; then
10277 output_verbose_link_cmd=func_echo_all
10278 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10279 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10280 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}"
10281 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}"
10282
10283 else
10284 ld_shlibs=no
10285 fi
10286
10287 ;;
10288
10289 dgux*)
10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_libdir_flag_spec='-L$libdir'
10292 hardcode_shlibpath_var=no
10293 ;;
10294
10295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10296 # support. Future versions do this automatically, but an explicit c++rt0.o
10297 # does not break anything, and helps significantly (at the cost of a little
10298 # extra space).
10299 freebsd2.2*)
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10301 hardcode_libdir_flag_spec='-R$libdir'
10302 hardcode_direct=yes
10303 hardcode_shlibpath_var=no
10304 ;;
10305
10306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10307 freebsd2.*)
10308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_direct=yes
10310 hardcode_minus_L=yes
10311 hardcode_shlibpath_var=no
10312 ;;
10313
10314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10315 freebsd* | dragonfly*)
10316 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10317 hardcode_libdir_flag_spec='-R$libdir'
10318 hardcode_direct=yes
10319 hardcode_shlibpath_var=no
10320 ;;
10321
10322 hpux9*)
10323 if test "$GCC" = yes; then
10324 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'
10325 else
10326 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'
10327 fi
10328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10329 hardcode_libdir_separator=:
10330 hardcode_direct=yes
10331
10332 # hardcode_minus_L: Not really in the search PATH,
10333 # but as the default location of the library.
10334 hardcode_minus_L=yes
10335 export_dynamic_flag_spec='${wl}-E'
10336 ;;
10337
10338 hpux10*)
10339 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10340 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10341 else
10342 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10343 fi
10344 if test "$with_gnu_ld" = no; then
10345 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10346 hardcode_libdir_flag_spec_ld='+b $libdir'
10347 hardcode_libdir_separator=:
10348 hardcode_direct=yes
10349 hardcode_direct_absolute=yes
10350 export_dynamic_flag_spec='${wl}-E'
10351 # hardcode_minus_L: Not really in the search PATH,
10352 # but as the default location of the library.
10353 hardcode_minus_L=yes
10354 fi
10355 ;;
10356
10357 hpux11*)
10358 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10359 case $host_cpu in
10360 hppa*64*)
10361 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 ;;
10363 ia64*)
10364 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10365 ;;
10366 *)
10367 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10368 ;;
10369 esac
10370 else
10371 case $host_cpu in
10372 hppa*64*)
10373 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10374 ;;
10375 ia64*)
10376 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10377 ;;
10378 *)
10379
10380 # Older versions of the 11.00 compiler do not understand -b yet
10381 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10383 $as_echo_n "checking if $CC understands -b... " >&6; }
10384 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 lt_cv_prog_compiler__b=no
10388 save_LDFLAGS="$LDFLAGS"
10389 LDFLAGS="$LDFLAGS -b"
10390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10392 # The linker can only warn and ignore the option if not recognized
10393 # So say no if there are warnings
10394 if test -s conftest.err; then
10395 # Append any errors to the config.log.
10396 cat conftest.err 1>&5
10397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10399 if diff conftest.exp conftest.er2 >/dev/null; then
10400 lt_cv_prog_compiler__b=yes
10401 fi
10402 else
10403 lt_cv_prog_compiler__b=yes
10404 fi
10405 fi
10406 $RM -r conftest*
10407 LDFLAGS="$save_LDFLAGS"
10408
10409 fi
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10411 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10412
10413 if test x"$lt_cv_prog_compiler__b" = xyes; then
10414 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10415 else
10416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10417 fi
10418
10419 ;;
10420 esac
10421 fi
10422 if test "$with_gnu_ld" = no; then
10423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10424 hardcode_libdir_separator=:
10425
10426 case $host_cpu in
10427 hppa*64*|ia64*)
10428 hardcode_direct=no
10429 hardcode_shlibpath_var=no
10430 ;;
10431 *)
10432 hardcode_direct=yes
10433 hardcode_direct_absolute=yes
10434 export_dynamic_flag_spec='${wl}-E'
10435
10436 # hardcode_minus_L: Not really in the search PATH,
10437 # but as the default location of the library.
10438 hardcode_minus_L=yes
10439 ;;
10440 esac
10441 fi
10442 ;;
10443
10444 irix5* | irix6* | nonstopux*)
10445 if test "$GCC" = yes; then
10446 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'
10447 # Try to use the -exported_symbol ld option, if it does not
10448 # work, assume that -exports_file does not work either and
10449 # implicitly export all symbols.
10450 save_LDFLAGS="$LDFLAGS"
10451 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454 int foo(void) {}
10455 _ACEOF
10456 if ac_fn_c_try_link "$LINENO"; then :
10457 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'
10458
10459 fi
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 LDFLAGS="$save_LDFLAGS"
10463 else
10464 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'
10465 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'
10466 fi
10467 archive_cmds_need_lc='no'
10468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469 hardcode_libdir_separator=:
10470 inherit_rpath=yes
10471 link_all_deplibs=yes
10472 ;;
10473
10474 netbsd*)
10475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10477 else
10478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10479 fi
10480 hardcode_libdir_flag_spec='-R$libdir'
10481 hardcode_direct=yes
10482 hardcode_shlibpath_var=no
10483 ;;
10484
10485 newsos6)
10486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10487 hardcode_direct=yes
10488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10489 hardcode_libdir_separator=:
10490 hardcode_shlibpath_var=no
10491 ;;
10492
10493 *nto* | *qnx*)
10494 ;;
10495
10496 openbsd*)
10497 if test -f /usr/libexec/ld.so; then
10498 hardcode_direct=yes
10499 hardcode_shlibpath_var=no
10500 hardcode_direct_absolute=yes
10501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10503 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10505 export_dynamic_flag_spec='${wl}-E'
10506 else
10507 case $host_os in
10508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10510 hardcode_libdir_flag_spec='-R$libdir'
10511 ;;
10512 *)
10513 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10515 ;;
10516 esac
10517 fi
10518 else
10519 ld_shlibs=no
10520 fi
10521 ;;
10522
10523 os2*)
10524 hardcode_libdir_flag_spec='-L$libdir'
10525 hardcode_minus_L=yes
10526 allow_undefined_flag=unsupported
10527 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'
10528 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10529 ;;
10530
10531 osf3*)
10532 if test "$GCC" = yes; then
10533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10534 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'
10535 else
10536 allow_undefined_flag=' -expect_unresolved \*'
10537 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'
10538 fi
10539 archive_cmds_need_lc='no'
10540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541 hardcode_libdir_separator=:
10542 ;;
10543
10544 osf4* | osf5*) # as osf3* with the addition of -msym flag
10545 if test "$GCC" = yes; then
10546 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10547 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'
10548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549 else
10550 allow_undefined_flag=' -expect_unresolved \*'
10551 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'
10552 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~
10553 $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'
10554
10555 # Both c and cxx compiler support -rpath directly
10556 hardcode_libdir_flag_spec='-rpath $libdir'
10557 fi
10558 archive_cmds_need_lc='no'
10559 hardcode_libdir_separator=:
10560 ;;
10561
10562 solaris*)
10563 no_undefined_flag=' -z defs'
10564 if test "$GCC" = yes; then
10565 wlarc='${wl}'
10566 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10568 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10569 else
10570 case `$CC -V 2>&1` in
10571 *"Compilers 5.0"*)
10572 wlarc=''
10573 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10576 ;;
10577 *)
10578 wlarc='${wl}'
10579 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10581 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10582 ;;
10583 esac
10584 fi
10585 hardcode_libdir_flag_spec='-R$libdir'
10586 hardcode_shlibpath_var=no
10587 case $host_os in
10588 solaris2.[0-5] | solaris2.[0-5].*) ;;
10589 *)
10590 # The compiler driver will combine and reorder linker options,
10591 # but understands `-z linker_flag'. GCC discards it without `$wl',
10592 # but is careful enough not to reorder.
10593 # Supported since Solaris 2.6 (maybe 2.5.1?)
10594 if test "$GCC" = yes; then
10595 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10596 else
10597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10598 fi
10599 ;;
10600 esac
10601 link_all_deplibs=yes
10602 ;;
10603
10604 sunos4*)
10605 if test "x$host_vendor" = xsequent; then
10606 # Use $CC to link under sequent, because it throws in some extra .o
10607 # files that make .init and .fini sections work.
10608 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10609 else
10610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10611 fi
10612 hardcode_libdir_flag_spec='-L$libdir'
10613 hardcode_direct=yes
10614 hardcode_minus_L=yes
10615 hardcode_shlibpath_var=no
10616 ;;
10617
10618 sysv4)
10619 case $host_vendor in
10620 sni)
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_direct=yes # is this really true???
10623 ;;
10624 siemens)
10625 ## LD is ld it makes a PLAMLIB
10626 ## CC just makes a GrossModule.
10627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10628 reload_cmds='$CC -r -o $output$reload_objs'
10629 hardcode_direct=no
10630 ;;
10631 motorola)
10632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10634 ;;
10635 esac
10636 runpath_var='LD_RUN_PATH'
10637 hardcode_shlibpath_var=no
10638 ;;
10639
10640 sysv4.3*)
10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642 hardcode_shlibpath_var=no
10643 export_dynamic_flag_spec='-Bexport'
10644 ;;
10645
10646 sysv4*MP*)
10647 if test -d /usr/nec; then
10648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10649 hardcode_shlibpath_var=no
10650 runpath_var=LD_RUN_PATH
10651 hardcode_runpath_var=yes
10652 ld_shlibs=yes
10653 fi
10654 ;;
10655
10656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10657 no_undefined_flag='${wl}-z,text'
10658 archive_cmds_need_lc=no
10659 hardcode_shlibpath_var=no
10660 runpath_var='LD_RUN_PATH'
10661
10662 if test "$GCC" = yes; then
10663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 else
10666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 fi
10669 ;;
10670
10671 sysv5* | sco3.2v5* | sco5v6*)
10672 # Note: We can NOT use -z defs as we might desire, because we do not
10673 # link with -lc, and that would cause any symbols used from libc to
10674 # always be unresolved, which means just about no library would
10675 # ever link correctly. If we're not using GNU ld we use -z text
10676 # though, which does catch some bad symbols but isn't as heavy-handed
10677 # as -z defs.
10678 no_undefined_flag='${wl}-z,text'
10679 allow_undefined_flag='${wl}-z,nodefs'
10680 archive_cmds_need_lc=no
10681 hardcode_shlibpath_var=no
10682 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10683 hardcode_libdir_separator=':'
10684 link_all_deplibs=yes
10685 export_dynamic_flag_spec='${wl}-Bexport'
10686 runpath_var='LD_RUN_PATH'
10687
10688 if test "$GCC" = yes; then
10689 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10690 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10691 else
10692 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10694 fi
10695 ;;
10696
10697 uts4*)
10698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10699 hardcode_libdir_flag_spec='-L$libdir'
10700 hardcode_shlibpath_var=no
10701 ;;
10702
10703 *)
10704 ld_shlibs=no
10705 ;;
10706 esac
10707
10708 if test x$host_vendor = xsni; then
10709 case $host in
10710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10711 export_dynamic_flag_spec='${wl}-Blargedynsym'
10712 ;;
10713 esac
10714 fi
10715 fi
10716
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10718 $as_echo "$ld_shlibs" >&6; }
10719 test "$ld_shlibs" = no && can_build_shared=no
10720
10721 with_gnu_ld=$with_gnu_ld
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737 #
10738 # Do we need to explicitly link libc?
10739 #
10740 case "x$archive_cmds_need_lc" in
10741 x|xyes)
10742 # Assume -lc should be added
10743 archive_cmds_need_lc=yes
10744
10745 if test "$enable_shared" = yes && test "$GCC" = yes; then
10746 case $archive_cmds in
10747 *'~'*)
10748 # FIXME: we may have to deal with multi-command sequences.
10749 ;;
10750 '$CC '*)
10751 # Test whether the compiler implicitly links with -lc since on some
10752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10753 # to ld, don't add -lc before -lgcc.
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10755 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10756 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 $RM conftest*
10760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10761
10762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10763 (eval $ac_compile) 2>&5
10764 ac_status=$?
10765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10766 test $ac_status = 0; } 2>conftest.err; then
10767 soname=conftest
10768 lib=conftest
10769 libobjs=conftest.$ac_objext
10770 deplibs=
10771 wl=$lt_prog_compiler_wl
10772 pic_flag=$lt_prog_compiler_pic
10773 compiler_flags=-v
10774 linker_flags=-v
10775 verstring=
10776 output_objdir=.
10777 libname=conftest
10778 lt_save_allow_undefined_flag=$allow_undefined_flag
10779 allow_undefined_flag=
10780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10782 ac_status=$?
10783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10784 test $ac_status = 0; }
10785 then
10786 lt_cv_archive_cmds_need_lc=no
10787 else
10788 lt_cv_archive_cmds_need_lc=yes
10789 fi
10790 allow_undefined_flag=$lt_save_allow_undefined_flag
10791 else
10792 cat conftest.err 1>&5
10793 fi
10794 $RM conftest*
10795
10796 fi
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10798 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10800 ;;
10801 esac
10802 fi
10803 ;;
10804 esac
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
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10963 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10964
10965 if test "$GCC" = yes; then
10966 case $host_os in
10967 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10968 *) lt_awk_arg="/^libraries:/" ;;
10969 esac
10970 case $host_os in
10971 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10972 *) lt_sed_strip_eq="s,=/,/,g" ;;
10973 esac
10974 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10975 case $lt_search_path_spec in
10976 *\;*)
10977 # if the path contains ";" then we assume it to be the separator
10978 # otherwise default to the standard path separator (i.e. ":") - it is
10979 # assumed that no part of a normal pathname contains ";" but that should
10980 # okay in the real world where ";" in dirpaths is itself problematic.
10981 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10982 ;;
10983 *)
10984 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10985 ;;
10986 esac
10987 # Ok, now we have the path, separated by spaces, we can step through it
10988 # and add multilib dir if necessary.
10989 lt_tmp_lt_search_path_spec=
10990 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10991 for lt_sys_path in $lt_search_path_spec; do
10992 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10993 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10994 else
10995 test -d "$lt_sys_path" && \
10996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10997 fi
10998 done
10999 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11000 BEGIN {RS=" "; FS="/|\n";} {
11001 lt_foo="";
11002 lt_count=0;
11003 for (lt_i = NF; lt_i > 0; lt_i--) {
11004 if ($lt_i != "" && $lt_i != ".") {
11005 if ($lt_i == "..") {
11006 lt_count++;
11007 } else {
11008 if (lt_count == 0) {
11009 lt_foo="/" $lt_i lt_foo;
11010 } else {
11011 lt_count--;
11012 }
11013 }
11014 }
11015 }
11016 if (lt_foo != "") { lt_freq[lt_foo]++; }
11017 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11018 }'`
11019 # AWK program above erroneously prepends '/' to C:/dos/paths
11020 # for these hosts.
11021 case $host_os in
11022 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11023 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11024 esac
11025 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11026 else
11027 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11028 fi
11029 library_names_spec=
11030 libname_spec='lib$name'
11031 soname_spec=
11032 shrext_cmds=".so"
11033 postinstall_cmds=
11034 postuninstall_cmds=
11035 finish_cmds=
11036 finish_eval=
11037 shlibpath_var=
11038 shlibpath_overrides_runpath=unknown
11039 version_type=none
11040 dynamic_linker="$host_os ld.so"
11041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11042 need_lib_prefix=unknown
11043 hardcode_into_libs=no
11044
11045 # when you set need_version to no, make sure it does not cause -set_version
11046 # flags to be left without arguments
11047 need_version=unknown
11048
11049 case $host_os in
11050 aix3*)
11051 version_type=linux
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11053 shlibpath_var=LIBPATH
11054
11055 # AIX 3 has no versioning support, so we append a major version to the name.
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 ;;
11058
11059 aix[4-9]*)
11060 version_type=linux
11061 need_lib_prefix=no
11062 need_version=no
11063 hardcode_into_libs=yes
11064 if test "$host_cpu" = ia64; then
11065 # AIX 5 supports IA64
11066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 else
11069 # With GCC up to 2.95.x, collect2 would create an import file
11070 # for dependence libraries. The import file would start with
11071 # the line `#! .'. This would cause the generated library to
11072 # depend on `.', always an invalid library. This was fixed in
11073 # development snapshots of GCC prior to 3.0.
11074 case $host_os in
11075 aix4 | aix4.[01] | aix4.[01].*)
11076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11077 echo ' yes '
11078 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11079 :
11080 else
11081 can_build_shared=no
11082 fi
11083 ;;
11084 esac
11085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11086 # soname into executable. Probably we can add versioning support to
11087 # collect2, so additional links can be useful in future.
11088 if test "$aix_use_runtimelinking" = yes; then
11089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11090 # instead of lib<name>.a to let people know that these are not
11091 # typical AIX shared libraries.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 else
11094 # We preserve .a as extension for shared libraries through AIX4.2
11095 # and later when we are not doing run time linking.
11096 library_names_spec='${libname}${release}.a $libname.a'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 fi
11099 shlibpath_var=LIBPATH
11100 fi
11101 ;;
11102
11103 amigaos*)
11104 case $host_cpu in
11105 powerpc)
11106 # Since July 2007 AmigaOS4 officially supports .so libraries.
11107 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 ;;
11110 m68k)
11111 library_names_spec='$libname.ixlibrary $libname.a'
11112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11113 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'
11114 ;;
11115 esac
11116 ;;
11117
11118 beos*)
11119 library_names_spec='${libname}${shared_ext}'
11120 dynamic_linker="$host_os ld.so"
11121 shlibpath_var=LIBRARY_PATH
11122 ;;
11123
11124 bsdi[45]*)
11125 version_type=linux
11126 need_version=no
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11133 # the default ld.so.conf also contains /usr/contrib/lib and
11134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11135 # libtool to hard-code these into programs
11136 ;;
11137
11138 cygwin* | mingw* | pw32* | cegcc*)
11139 version_type=windows
11140 shrext_cmds=".dll"
11141 need_version=no
11142 need_lib_prefix=no
11143
11144 case $GCC,$host_os in
11145 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11146 library_names_spec='$libname.dll.a'
11147 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11148 postinstall_cmds='base_file=`basename \${file}`~
11149 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11150 dldir=$destdir/`dirname \$dlpath`~
11151 test -d \$dldir || mkdir -p \$dldir~
11152 $install_prog $dir/$dlname \$dldir/$dlname~
11153 chmod a+x \$dldir/$dlname~
11154 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11155 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11156 fi'
11157 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11158 dlpath=$dir/\$dldll~
11159 $RM \$dlpath'
11160 shlibpath_overrides_runpath=yes
11161
11162 case $host_os in
11163 cygwin*)
11164 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11166
11167 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11168 ;;
11169 mingw* | cegcc*)
11170 # MinGW DLLs use traditional 'lib' prefix
11171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11172 ;;
11173 pw32*)
11174 # pw32 DLLs use 'pw' prefix rather than 'lib'
11175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11176 ;;
11177 esac
11178 ;;
11179
11180 *)
11181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11182 ;;
11183 esac
11184 dynamic_linker='Win32 ld.exe'
11185 # FIXME: first we should search . and the directory the executable is in
11186 shlibpath_var=PATH
11187 ;;
11188
11189 darwin* | rhapsody*)
11190 dynamic_linker="$host_os dyld"
11191 version_type=darwin
11192 need_lib_prefix=no
11193 need_version=no
11194 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11195 soname_spec='${libname}${release}${major}$shared_ext'
11196 shlibpath_overrides_runpath=yes
11197 shlibpath_var=DYLD_LIBRARY_PATH
11198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11199
11200 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11202 ;;
11203
11204 dgux*)
11205 version_type=linux
11206 need_lib_prefix=no
11207 need_version=no
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 ;;
11212
11213 freebsd* | dragonfly*)
11214 # DragonFly does not have aout. When/if they implement a new
11215 # versioning mechanism, adjust this.
11216 if test -x /usr/bin/objformat; then
11217 objformat=`/usr/bin/objformat`
11218 else
11219 case $host_os in
11220 freebsd[23].*) objformat=aout ;;
11221 *) objformat=elf ;;
11222 esac
11223 fi
11224 version_type=freebsd-$objformat
11225 case $version_type in
11226 freebsd-elf*)
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11228 need_version=no
11229 need_lib_prefix=no
11230 ;;
11231 freebsd-*)
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11233 need_version=yes
11234 ;;
11235 esac
11236 shlibpath_var=LD_LIBRARY_PATH
11237 case $host_os in
11238 freebsd2.*)
11239 shlibpath_overrides_runpath=yes
11240 ;;
11241 freebsd3.[01]* | freebsdelf3.[01]*)
11242 shlibpath_overrides_runpath=yes
11243 hardcode_into_libs=yes
11244 ;;
11245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11247 shlibpath_overrides_runpath=no
11248 hardcode_into_libs=yes
11249 ;;
11250 *) # from 4.6 on, and DragonFly
11251 shlibpath_overrides_runpath=yes
11252 hardcode_into_libs=yes
11253 ;;
11254 esac
11255 ;;
11256
11257 gnu*)
11258 version_type=linux
11259 need_lib_prefix=no
11260 need_version=no
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 hardcode_into_libs=yes
11265 ;;
11266
11267 haiku*)
11268 version_type=linux
11269 need_lib_prefix=no
11270 need_version=no
11271 dynamic_linker="$host_os runtime_loader"
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes
11276 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11277 hardcode_into_libs=yes
11278 ;;
11279
11280 hpux9* | hpux10* | hpux11*)
11281 # Give a soname corresponding to the major version so that dld.sl refuses to
11282 # link against other versions.
11283 version_type=sunos
11284 need_lib_prefix=no
11285 need_version=no
11286 case $host_cpu in
11287 ia64*)
11288 shrext_cmds='.so'
11289 hardcode_into_libs=yes
11290 dynamic_linker="$host_os dld.so"
11291 shlibpath_var=LD_LIBRARY_PATH
11292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 if test "X$HPUX_IA64_MODE" = X32; then
11296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11297 else
11298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11299 fi
11300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11301 ;;
11302 hppa*64*)
11303 shrext_cmds='.sl'
11304 hardcode_into_libs=yes
11305 dynamic_linker="$host_os dld.sl"
11306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11312 ;;
11313 *)
11314 shrext_cmds='.sl'
11315 dynamic_linker="$host_os dld.sl"
11316 shlibpath_var=SHLIB_PATH
11317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 ;;
11321 esac
11322 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11323 postinstall_cmds='chmod 555 $lib'
11324 # or fails outright, so override atomically:
11325 install_override_mode=555
11326 ;;
11327
11328 interix[3-9]*)
11329 version_type=linux
11330 need_lib_prefix=no
11331 need_version=no
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=no
11337 hardcode_into_libs=yes
11338 ;;
11339
11340 irix5* | irix6* | nonstopux*)
11341 case $host_os in
11342 nonstopux*) version_type=nonstopux ;;
11343 *)
11344 if test "$lt_cv_prog_gnu_ld" = yes; then
11345 version_type=linux
11346 else
11347 version_type=irix
11348 fi ;;
11349 esac
11350 need_lib_prefix=no
11351 need_version=no
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11354 case $host_os in
11355 irix5* | nonstopux*)
11356 libsuff= shlibsuff=
11357 ;;
11358 *)
11359 case $LD in # libtool.m4 will add one of these switches to LD
11360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11361 libsuff= shlibsuff= libmagic=32-bit;;
11362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11363 libsuff=32 shlibsuff=N32 libmagic=N32;;
11364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11366 *) libsuff= shlibsuff= libmagic=never-match;;
11367 esac
11368 ;;
11369 esac
11370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11371 shlibpath_overrides_runpath=no
11372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11374 hardcode_into_libs=yes
11375 ;;
11376
11377 # No shared lib support for Linux oldld, aout, or coff.
11378 linux*oldld* | linux*aout* | linux*coff*)
11379 dynamic_linker=no
11380 ;;
11381
11382 # This must be Linux ELF.
11383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11384 version_type=linux
11385 need_lib_prefix=no
11386 need_version=no
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=no
11392
11393 # Some binutils ld are patched to set DT_RUNPATH
11394 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 lt_cv_shlibpath_overrides_runpath=no
11398 save_LDFLAGS=$LDFLAGS
11399 save_libdir=$libdir
11400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11404
11405 int
11406 main ()
11407 {
11408
11409 ;
11410 return 0;
11411 }
11412 _ACEOF
11413 if ac_fn_c_try_link "$LINENO"; then :
11414 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11415 lt_cv_shlibpath_overrides_runpath=yes
11416 fi
11417 fi
11418 rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11420 LDFLAGS=$save_LDFLAGS
11421 libdir=$save_libdir
11422
11423 fi
11424
11425 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11426
11427 # This implies no fast_install, which is unacceptable.
11428 # Some rework will be needed to allow for fast_install
11429 # before this can be enabled.
11430 hardcode_into_libs=yes
11431
11432 # Append ld.so.conf contents to the search path
11433 if test -f /etc/ld.so.conf; then
11434 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' ' '`
11435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11436 fi
11437
11438 # We used to test for /lib/ld.so.1 and disable shared libraries on
11439 # powerpc, because MkLinux only supported shared libraries with the
11440 # GNU dynamic linker. Since this was broken with cross compilers,
11441 # most powerpc-linux boxes support dynamic linking these days and
11442 # people can always --disable-shared, the test was removed, and we
11443 # assume the GNU/Linux dynamic linker is in use.
11444 dynamic_linker='GNU/Linux ld.so'
11445 ;;
11446
11447 netbsd*)
11448 version_type=sunos
11449 need_lib_prefix=no
11450 need_version=no
11451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11454 dynamic_linker='NetBSD (a.out) ld.so'
11455 else
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 dynamic_linker='NetBSD ld.elf_so'
11459 fi
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes
11462 hardcode_into_libs=yes
11463 ;;
11464
11465 newsos6)
11466 version_type=linux
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes
11470 ;;
11471
11472 *nto* | *qnx*)
11473 version_type=qnx
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath=no
11480 hardcode_into_libs=yes
11481 dynamic_linker='ldqnx.so'
11482 ;;
11483
11484 openbsd*)
11485 version_type=sunos
11486 sys_lib_dlsearch_path_spec="/usr/lib"
11487 need_lib_prefix=no
11488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11489 case $host_os in
11490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11491 *) need_version=no ;;
11492 esac
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11497 case $host_os in
11498 openbsd2.[89] | openbsd2.[89].*)
11499 shlibpath_overrides_runpath=no
11500 ;;
11501 *)
11502 shlibpath_overrides_runpath=yes
11503 ;;
11504 esac
11505 else
11506 shlibpath_overrides_runpath=yes
11507 fi
11508 ;;
11509
11510 os2*)
11511 libname_spec='$name'
11512 shrext_cmds=".dll"
11513 need_lib_prefix=no
11514 library_names_spec='$libname${shared_ext} $libname.a'
11515 dynamic_linker='OS/2 ld.exe'
11516 shlibpath_var=LIBPATH
11517 ;;
11518
11519 osf3* | osf4* | osf5*)
11520 version_type=osf
11521 need_lib_prefix=no
11522 need_version=no
11523 soname_spec='${libname}${release}${shared_ext}$major'
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11528 ;;
11529
11530 rdos*)
11531 dynamic_linker=no
11532 ;;
11533
11534 solaris*)
11535 version_type=linux
11536 need_lib_prefix=no
11537 need_version=no
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=yes
11542 hardcode_into_libs=yes
11543 # ldd complains unless libraries are executable
11544 postinstall_cmds='chmod +x $lib'
11545 ;;
11546
11547 sunos4*)
11548 version_type=sunos
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath=yes
11553 if test "$with_gnu_ld" = yes; then
11554 need_lib_prefix=no
11555 fi
11556 need_version=yes
11557 ;;
11558
11559 sysv4 | sysv4.3*)
11560 version_type=linux
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 case $host_vendor in
11565 sni)
11566 shlibpath_overrides_runpath=no
11567 need_lib_prefix=no
11568 runpath_var=LD_RUN_PATH
11569 ;;
11570 siemens)
11571 need_lib_prefix=no
11572 ;;
11573 motorola)
11574 need_lib_prefix=no
11575 need_version=no
11576 shlibpath_overrides_runpath=no
11577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11578 ;;
11579 esac
11580 ;;
11581
11582 sysv4*MP*)
11583 if test -d /usr/nec ;then
11584 version_type=linux
11585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11586 soname_spec='$libname${shared_ext}.$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 fi
11589 ;;
11590
11591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11592 version_type=freebsd-elf
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=yes
11599 hardcode_into_libs=yes
11600 if test "$with_gnu_ld" = yes; then
11601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11602 else
11603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11604 case $host_os in
11605 sco3.2v5*)
11606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11607 ;;
11608 esac
11609 fi
11610 sys_lib_dlsearch_path_spec='/usr/lib'
11611 ;;
11612
11613 tpf*)
11614 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11615 version_type=linux
11616 need_lib_prefix=no
11617 need_version=no
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=no
11621 hardcode_into_libs=yes
11622 ;;
11623
11624 uts4*)
11625 version_type=linux
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627 soname_spec='${libname}${release}${shared_ext}$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 ;;
11630
11631 *)
11632 dynamic_linker=no
11633 ;;
11634 esac
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11636 $as_echo "$dynamic_linker" >&6; }
11637 test "$dynamic_linker" = no && can_build_shared=no
11638
11639 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11640 if test "$GCC" = yes; then
11641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11642 fi
11643
11644 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11645 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11646 fi
11647 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11648 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11649 fi
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
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11743 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11744 hardcode_action=
11745 if test -n "$hardcode_libdir_flag_spec" ||
11746 test -n "$runpath_var" ||
11747 test "X$hardcode_automatic" = "Xyes" ; then
11748
11749 # We can hardcode non-existent directories.
11750 if test "$hardcode_direct" != no &&
11751 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11752 # have to relink, otherwise we might link with an installed library
11753 # when we should be linking with a yet-to-be-installed one
11754 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11755 test "$hardcode_minus_L" != no; then
11756 # Linking always hardcodes the temporary library directory.
11757 hardcode_action=relink
11758 else
11759 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11760 hardcode_action=immediate
11761 fi
11762 else
11763 # We cannot hardcode anything, or else we can only hardcode existing
11764 # directories.
11765 hardcode_action=unsupported
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11768 $as_echo "$hardcode_action" >&6; }
11769
11770 if test "$hardcode_action" = relink ||
11771 test "$inherit_rpath" = yes; then
11772 # Fast installation is not supported
11773 enable_fast_install=no
11774 elif test "$shlibpath_overrides_runpath" = yes ||
11775 test "$enable_shared" = no; then
11776 # Fast installation is not necessary
11777 enable_fast_install=needless
11778 fi
11779
11780
11781
11782
11783
11784
11785 if test "x$enable_dlopen" != xyes; then
11786 enable_dlopen=unknown
11787 enable_dlopen_self=unknown
11788 enable_dlopen_self_static=unknown
11789 else
11790 lt_cv_dlopen=no
11791 lt_cv_dlopen_libs=
11792
11793 case $host_os in
11794 beos*)
11795 lt_cv_dlopen="load_add_on"
11796 lt_cv_dlopen_libs=
11797 lt_cv_dlopen_self=yes
11798 ;;
11799
11800 mingw* | pw32* | cegcc*)
11801 lt_cv_dlopen="LoadLibrary"
11802 lt_cv_dlopen_libs=
11803 ;;
11804
11805 cygwin*)
11806 lt_cv_dlopen="dlopen"
11807 lt_cv_dlopen_libs=
11808 ;;
11809
11810 darwin*)
11811 # if libdl is installed we need to link against it
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11813 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11814 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 ac_check_lib_save_LIBS=$LIBS
11818 LIBS="-ldl $LIBS"
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821
11822 /* Override any GCC internal prototype to avoid an error.
11823 Use char because int might match the return type of a GCC
11824 builtin and then its argument prototype would still apply. */
11825 #ifdef __cplusplus
11826 extern "C"
11827 #endif
11828 char dlopen ();
11829 int
11830 main ()
11831 {
11832 return dlopen ();
11833 ;
11834 return 0;
11835 }
11836 _ACEOF
11837 if ac_fn_c_try_link "$LINENO"; then :
11838 ac_cv_lib_dl_dlopen=yes
11839 else
11840 ac_cv_lib_dl_dlopen=no
11841 fi
11842 rm -f core conftest.err conftest.$ac_objext \
11843 conftest$ac_exeext conftest.$ac_ext
11844 LIBS=$ac_check_lib_save_LIBS
11845 fi
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11847 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11848 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11850 else
11851
11852 lt_cv_dlopen="dyld"
11853 lt_cv_dlopen_libs=
11854 lt_cv_dlopen_self=yes
11855
11856 fi
11857
11858 ;;
11859
11860 *)
11861 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11862 if test "x$ac_cv_func_shl_load" = x""yes; then :
11863 lt_cv_dlopen="shl_load"
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11866 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11867 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-ldld $LIBS"
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 char shl_load ();
11882 int
11883 main ()
11884 {
11885 return shl_load ();
11886 ;
11887 return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_link "$LINENO"; then :
11891 ac_cv_lib_dld_shl_load=yes
11892 else
11893 ac_cv_lib_dld_shl_load=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11900 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11901 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11902 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11903 else
11904 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11905 if test "x$ac_cv_func_dlopen" = x""yes; then :
11906 lt_cv_dlopen="dlopen"
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11909 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11910 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 ac_check_lib_save_LIBS=$LIBS
11914 LIBS="-ldl $LIBS"
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11917
11918 /* Override any GCC internal prototype to avoid an error.
11919 Use char because int might match the return type of a GCC
11920 builtin and then its argument prototype would still apply. */
11921 #ifdef __cplusplus
11922 extern "C"
11923 #endif
11924 char dlopen ();
11925 int
11926 main ()
11927 {
11928 return dlopen ();
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 if ac_fn_c_try_link "$LINENO"; then :
11934 ac_cv_lib_dl_dlopen=yes
11935 else
11936 ac_cv_lib_dl_dlopen=no
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$ac_check_lib_save_LIBS
11941 fi
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11943 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11944 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11946 else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11948 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11949 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 ac_check_lib_save_LIBS=$LIBS
11953 LIBS="-lsvld $LIBS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 char dlopen ();
11964 int
11965 main ()
11966 {
11967 return dlopen ();
11968 ;
11969 return 0;
11970 }
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 ac_cv_lib_svld_dlopen=yes
11974 else
11975 ac_cv_lib_svld_dlopen=no
11976 fi
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11980 fi
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11982 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11983 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11987 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11988 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 ac_check_lib_save_LIBS=$LIBS
11992 LIBS="-ldld $LIBS"
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11995
11996 /* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 char dld_link ();
12003 int
12004 main ()
12005 {
12006 return dld_link ();
12007 ;
12008 return 0;
12009 }
12010 _ACEOF
12011 if ac_fn_c_try_link "$LINENO"; then :
12012 ac_cv_lib_dld_dld_link=yes
12013 else
12014 ac_cv_lib_dld_dld_link=no
12015 fi
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12021 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12022 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12023 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12024 fi
12025
12026
12027 fi
12028
12029
12030 fi
12031
12032
12033 fi
12034
12035
12036 fi
12037
12038
12039 fi
12040
12041 ;;
12042 esac
12043
12044 if test "x$lt_cv_dlopen" != xno; then
12045 enable_dlopen=yes
12046 else
12047 enable_dlopen=no
12048 fi
12049
12050 case $lt_cv_dlopen in
12051 dlopen)
12052 save_CPPFLAGS="$CPPFLAGS"
12053 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12054
12055 save_LDFLAGS="$LDFLAGS"
12056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12057
12058 save_LIBS="$LIBS"
12059 LIBS="$lt_cv_dlopen_libs $LIBS"
12060
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12062 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12063 if test "${lt_cv_dlopen_self+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 if test "$cross_compiling" = yes; then :
12067 lt_cv_dlopen_self=cross
12068 else
12069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12070 lt_status=$lt_dlunknown
12071 cat > conftest.$ac_ext <<_LT_EOF
12072 #line 12072 "configure"
12073 #include "confdefs.h"
12074
12075 #if HAVE_DLFCN_H
12076 #include <dlfcn.h>
12077 #endif
12078
12079 #include <stdio.h>
12080
12081 #ifdef RTLD_GLOBAL
12082 # define LT_DLGLOBAL RTLD_GLOBAL
12083 #else
12084 # ifdef DL_GLOBAL
12085 # define LT_DLGLOBAL DL_GLOBAL
12086 # else
12087 # define LT_DLGLOBAL 0
12088 # endif
12089 #endif
12090
12091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12092 find out it does not work in some platform. */
12093 #ifndef LT_DLLAZY_OR_NOW
12094 # ifdef RTLD_LAZY
12095 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12096 # else
12097 # ifdef DL_LAZY
12098 # define LT_DLLAZY_OR_NOW DL_LAZY
12099 # else
12100 # ifdef RTLD_NOW
12101 # define LT_DLLAZY_OR_NOW RTLD_NOW
12102 # else
12103 # ifdef DL_NOW
12104 # define LT_DLLAZY_OR_NOW DL_NOW
12105 # else
12106 # define LT_DLLAZY_OR_NOW 0
12107 # endif
12108 # endif
12109 # endif
12110 # endif
12111 #endif
12112
12113 /* When -fvisbility=hidden is used, assume the code has been annotated
12114 correspondingly for the symbols needed. */
12115 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12116 void fnord () __attribute__((visibility("default")));
12117 #endif
12118
12119 void fnord () { int i=42; }
12120 int main ()
12121 {
12122 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12123 int status = $lt_dlunknown;
12124
12125 if (self)
12126 {
12127 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12128 else
12129 {
12130 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12131 else puts (dlerror ());
12132 }
12133 /* dlclose (self); */
12134 }
12135 else
12136 puts (dlerror ());
12137
12138 return status;
12139 }
12140 _LT_EOF
12141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12142 (eval $ac_link) 2>&5
12143 ac_status=$?
12144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12146 (./conftest; exit; ) >&5 2>/dev/null
12147 lt_status=$?
12148 case x$lt_status in
12149 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12150 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12151 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12152 esac
12153 else :
12154 # compilation failed
12155 lt_cv_dlopen_self=no
12156 fi
12157 fi
12158 rm -fr conftest*
12159
12160
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12163 $as_echo "$lt_cv_dlopen_self" >&6; }
12164
12165 if test "x$lt_cv_dlopen_self" = xyes; then
12166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12168 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12169 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test "$cross_compiling" = yes; then :
12173 lt_cv_dlopen_self_static=cross
12174 else
12175 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12176 lt_status=$lt_dlunknown
12177 cat > conftest.$ac_ext <<_LT_EOF
12178 #line 12178 "configure"
12179 #include "confdefs.h"
12180
12181 #if HAVE_DLFCN_H
12182 #include <dlfcn.h>
12183 #endif
12184
12185 #include <stdio.h>
12186
12187 #ifdef RTLD_GLOBAL
12188 # define LT_DLGLOBAL RTLD_GLOBAL
12189 #else
12190 # ifdef DL_GLOBAL
12191 # define LT_DLGLOBAL DL_GLOBAL
12192 # else
12193 # define LT_DLGLOBAL 0
12194 # endif
12195 #endif
12196
12197 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12198 find out it does not work in some platform. */
12199 #ifndef LT_DLLAZY_OR_NOW
12200 # ifdef RTLD_LAZY
12201 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12202 # else
12203 # ifdef DL_LAZY
12204 # define LT_DLLAZY_OR_NOW DL_LAZY
12205 # else
12206 # ifdef RTLD_NOW
12207 # define LT_DLLAZY_OR_NOW RTLD_NOW
12208 # else
12209 # ifdef DL_NOW
12210 # define LT_DLLAZY_OR_NOW DL_NOW
12211 # else
12212 # define LT_DLLAZY_OR_NOW 0
12213 # endif
12214 # endif
12215 # endif
12216 # endif
12217 #endif
12218
12219 /* When -fvisbility=hidden is used, assume the code has been annotated
12220 correspondingly for the symbols needed. */
12221 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12222 void fnord () __attribute__((visibility("default")));
12223 #endif
12224
12225 void fnord () { int i=42; }
12226 int main ()
12227 {
12228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12229 int status = $lt_dlunknown;
12230
12231 if (self)
12232 {
12233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12234 else
12235 {
12236 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12237 else puts (dlerror ());
12238 }
12239 /* dlclose (self); */
12240 }
12241 else
12242 puts (dlerror ());
12243
12244 return status;
12245 }
12246 _LT_EOF
12247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12248 (eval $ac_link) 2>&5
12249 ac_status=$?
12250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12252 (./conftest; exit; ) >&5 2>/dev/null
12253 lt_status=$?
12254 case x$lt_status in
12255 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12256 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12257 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12258 esac
12259 else :
12260 # compilation failed
12261 lt_cv_dlopen_self_static=no
12262 fi
12263 fi
12264 rm -fr conftest*
12265
12266
12267 fi
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12269 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12270 fi
12271
12272 CPPFLAGS="$save_CPPFLAGS"
12273 LDFLAGS="$save_LDFLAGS"
12274 LIBS="$save_LIBS"
12275 ;;
12276 esac
12277
12278 case $lt_cv_dlopen_self in
12279 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12280 *) enable_dlopen_self=unknown ;;
12281 esac
12282
12283 case $lt_cv_dlopen_self_static in
12284 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12285 *) enable_dlopen_self_static=unknown ;;
12286 esac
12287 fi
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305 striplib=
12306 old_striplib=
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12308 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12309 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12310 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12311 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12314 else
12315 # FIXME - insert some real tests, host_os isn't really good enough
12316 case $host_os in
12317 darwin*)
12318 if test -n "$STRIP" ; then
12319 striplib="$STRIP -x"
12320 old_striplib="$STRIP -S"
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12322 $as_echo "yes" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326 fi
12327 ;;
12328 *)
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331 ;;
12332 esac
12333 fi
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346 # Report which library types will actually be built
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12348 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12350 $as_echo "$can_build_shared" >&6; }
12351
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12353 $as_echo_n "checking whether to build shared libraries... " >&6; }
12354 test "$can_build_shared" = "no" && enable_shared=no
12355
12356 # On AIX, shared libraries and static libraries use the same namespace, and
12357 # are all built from PIC.
12358 case $host_os in
12359 aix3*)
12360 test "$enable_shared" = yes && enable_static=no
12361 if test -n "$RANLIB"; then
12362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12363 postinstall_cmds='$RANLIB $lib'
12364 fi
12365 ;;
12366
12367 aix[4-9]*)
12368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12369 test "$enable_shared" = yes && enable_static=no
12370 fi
12371 ;;
12372 esac
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12374 $as_echo "$enable_shared" >&6; }
12375
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12377 $as_echo_n "checking whether to build static libraries... " >&6; }
12378 # Make sure either enable_shared or enable_static is yes.
12379 test "$enable_shared" = yes || enable_static=yes
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12381 $as_echo "$enable_static" >&6; }
12382
12383
12384
12385
12386 fi
12387 ac_ext=c
12388 ac_cpp='$CPP $CPPFLAGS'
12389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12392
12393 CC="$lt_save_CC"
12394
12395 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12396 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12397 (test "X$CXX" != "Xg++"))) ; then
12398 ac_ext=cpp
12399 ac_cpp='$CXXCPP $CPPFLAGS'
12400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12404 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12405 if test -z "$CXXCPP"; then
12406 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 # Double quotes because CXXCPP needs to be expanded
12410 for CXXCPP in "$CXX -E" "/lib/cpp"
12411 do
12412 ac_preproc_ok=false
12413 for ac_cxx_preproc_warn_flag in '' yes
12414 do
12415 # Use a header file that comes with gcc, so configuring glibc
12416 # with a fresh cross-compiler works.
12417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12418 # <limits.h> exists even on freestanding compilers.
12419 # On the NeXT, cc -E runs the code through the compiler's parser,
12420 # not just through cpp. "Syntax error" is here to catch this case.
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423 #ifdef __STDC__
12424 # include <limits.h>
12425 #else
12426 # include <assert.h>
12427 #endif
12428 Syntax error
12429 _ACEOF
12430 if ac_fn_cxx_try_cpp "$LINENO"; then :
12431
12432 else
12433 # Broken: fails on valid input.
12434 continue
12435 fi
12436 rm -f conftest.err conftest.$ac_ext
12437
12438 # OK, works on sane cases. Now check whether nonexistent headers
12439 # can be detected and how.
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <ac_nonexistent.h>
12443 _ACEOF
12444 if ac_fn_cxx_try_cpp "$LINENO"; then :
12445 # Broken: success on invalid input.
12446 continue
12447 else
12448 # Passes both tests.
12449 ac_preproc_ok=:
12450 break
12451 fi
12452 rm -f conftest.err conftest.$ac_ext
12453
12454 done
12455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12456 rm -f conftest.err conftest.$ac_ext
12457 if $ac_preproc_ok; then :
12458 break
12459 fi
12460
12461 done
12462 ac_cv_prog_CXXCPP=$CXXCPP
12463
12464 fi
12465 CXXCPP=$ac_cv_prog_CXXCPP
12466 else
12467 ac_cv_prog_CXXCPP=$CXXCPP
12468 fi
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12470 $as_echo "$CXXCPP" >&6; }
12471 ac_preproc_ok=false
12472 for ac_cxx_preproc_warn_flag in '' yes
12473 do
12474 # Use a header file that comes with gcc, so configuring glibc
12475 # with a fresh cross-compiler works.
12476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477 # <limits.h> exists even on freestanding compilers.
12478 # On the NeXT, cc -E runs the code through the compiler's parser,
12479 # not just through cpp. "Syntax error" is here to catch this case.
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12482 #ifdef __STDC__
12483 # include <limits.h>
12484 #else
12485 # include <assert.h>
12486 #endif
12487 Syntax error
12488 _ACEOF
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490
12491 else
12492 # Broken: fails on valid input.
12493 continue
12494 fi
12495 rm -f conftest.err conftest.$ac_ext
12496
12497 # OK, works on sane cases. Now check whether nonexistent headers
12498 # can be detected and how.
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #include <ac_nonexistent.h>
12502 _ACEOF
12503 if ac_fn_cxx_try_cpp "$LINENO"; then :
12504 # Broken: success on invalid input.
12505 continue
12506 else
12507 # Passes both tests.
12508 ac_preproc_ok=:
12509 break
12510 fi
12511 rm -f conftest.err conftest.$ac_ext
12512
12513 done
12514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12515 rm -f conftest.err conftest.$ac_ext
12516 if $ac_preproc_ok; then :
12517
12518 else
12519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12521 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12522 See \`config.log' for more details." "$LINENO" 5; }
12523 fi
12524
12525 ac_ext=c
12526 ac_cpp='$CPP $CPPFLAGS'
12527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12530
12531 else
12532 _lt_caught_CXX_error=yes
12533 fi
12534
12535 ac_ext=cpp
12536 ac_cpp='$CXXCPP $CPPFLAGS'
12537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12540
12541 archive_cmds_need_lc_CXX=no
12542 allow_undefined_flag_CXX=
12543 always_export_symbols_CXX=no
12544 archive_expsym_cmds_CXX=
12545 compiler_needs_object_CXX=no
12546 export_dynamic_flag_spec_CXX=
12547 hardcode_direct_CXX=no
12548 hardcode_direct_absolute_CXX=no
12549 hardcode_libdir_flag_spec_CXX=
12550 hardcode_libdir_flag_spec_ld_CXX=
12551 hardcode_libdir_separator_CXX=
12552 hardcode_minus_L_CXX=no
12553 hardcode_shlibpath_var_CXX=unsupported
12554 hardcode_automatic_CXX=no
12555 inherit_rpath_CXX=no
12556 module_cmds_CXX=
12557 module_expsym_cmds_CXX=
12558 link_all_deplibs_CXX=unknown
12559 old_archive_cmds_CXX=$old_archive_cmds
12560 reload_flag_CXX=$reload_flag
12561 reload_cmds_CXX=$reload_cmds
12562 no_undefined_flag_CXX=
12563 whole_archive_flag_spec_CXX=
12564 enable_shared_with_static_runtimes_CXX=no
12565
12566 # Source file extension for C++ test sources.
12567 ac_ext=cpp
12568
12569 # Object file extension for compiled C++ test sources.
12570 objext=o
12571 objext_CXX=$objext
12572
12573 # No sense in running all these tests if we already determined that
12574 # the CXX compiler isn't working. Some variables (like enable_shared)
12575 # are currently assumed to apply to all compilers on this platform,
12576 # and will be corrupted by setting them based on a non-working compiler.
12577 if test "$_lt_caught_CXX_error" != yes; then
12578 # Code to be used in simple compile tests
12579 lt_simple_compile_test_code="int some_variable = 0;"
12580
12581 # Code to be used in simple link tests
12582 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12583
12584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12585
12586
12587
12588
12589
12590
12591 # If no C compiler was specified, use CC.
12592 LTCC=${LTCC-"$CC"}
12593
12594 # If no C compiler flags were specified, use CFLAGS.
12595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12596
12597 # Allow CC to be a program name with arguments.
12598 compiler=$CC
12599
12600
12601 # save warnings/boilerplate of simple test code
12602 ac_outfile=conftest.$ac_objext
12603 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12604 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12605 _lt_compiler_boilerplate=`cat conftest.err`
12606 $RM conftest*
12607
12608 ac_outfile=conftest.$ac_objext
12609 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12610 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12611 _lt_linker_boilerplate=`cat conftest.err`
12612 $RM -r conftest*
12613
12614
12615 # Allow CC to be a program name with arguments.
12616 lt_save_CC=$CC
12617 lt_save_LD=$LD
12618 lt_save_GCC=$GCC
12619 GCC=$GXX
12620 lt_save_with_gnu_ld=$with_gnu_ld
12621 lt_save_path_LD=$lt_cv_path_LD
12622 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12623 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12624 else
12625 $as_unset lt_cv_prog_gnu_ld
12626 fi
12627 if test -n "${lt_cv_path_LDCXX+set}"; then
12628 lt_cv_path_LD=$lt_cv_path_LDCXX
12629 else
12630 $as_unset lt_cv_path_LD
12631 fi
12632 test -z "${LDCXX+set}" || LD=$LDCXX
12633 CC=${CXX-"c++"}
12634 compiler=$CC
12635 compiler_CXX=$CC
12636 for cc_temp in $compiler""; do
12637 case $cc_temp in
12638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12640 \-*) ;;
12641 *) break;;
12642 esac
12643 done
12644 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12645
12646
12647 if test -n "$compiler"; then
12648 # We don't want -fno-exception when compiling C++ code, so set the
12649 # no_builtin_flag separately
12650 if test "$GXX" = yes; then
12651 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12652 else
12653 lt_prog_compiler_no_builtin_flag_CXX=
12654 fi
12655
12656 if test "$GXX" = yes; then
12657 # Set up default GNU C++ configuration
12658
12659
12660
12661 # Check whether --with-gnu-ld was given.
12662 if test "${with_gnu_ld+set}" = set; then :
12663 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12664 else
12665 with_gnu_ld=no
12666 fi
12667
12668 ac_prog=ld
12669 if test "$GCC" = yes; then
12670 # Check if gcc -print-prog-name=ld gives a path.
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12672 $as_echo_n "checking for ld used by $CC... " >&6; }
12673 case $host in
12674 *-*-mingw*)
12675 # gcc leaves a trailing carriage return which upsets mingw
12676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12677 *)
12678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12679 esac
12680 case $ac_prog in
12681 # Accept absolute paths.
12682 [\\/]* | ?:[\\/]*)
12683 re_direlt='/[^/][^/]*/\.\./'
12684 # Canonicalize the pathname of ld
12685 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12686 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12687 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12688 done
12689 test -z "$LD" && LD="$ac_prog"
12690 ;;
12691 "")
12692 # If it fails, then pretend we aren't using GCC.
12693 ac_prog=ld
12694 ;;
12695 *)
12696 # If it is relative, then search for the first ld in PATH.
12697 with_gnu_ld=unknown
12698 ;;
12699 esac
12700 elif test "$with_gnu_ld" = yes; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12702 $as_echo_n "checking for GNU ld... " >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12705 $as_echo_n "checking for non-GNU ld... " >&6; }
12706 fi
12707 if test "${lt_cv_path_LD+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 if test -z "$LD"; then
12711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12712 for ac_dir in $PATH; do
12713 IFS="$lt_save_ifs"
12714 test -z "$ac_dir" && ac_dir=.
12715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12716 lt_cv_path_LD="$ac_dir/$ac_prog"
12717 # Check to see if the program is GNU ld. I'd rather use --version,
12718 # but apparently some variants of GNU ld only accept -v.
12719 # Break only if it was the GNU/non-GNU ld that we prefer.
12720 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12721 *GNU* | *'with BFD'*)
12722 test "$with_gnu_ld" != no && break
12723 ;;
12724 *)
12725 test "$with_gnu_ld" != yes && break
12726 ;;
12727 esac
12728 fi
12729 done
12730 IFS="$lt_save_ifs"
12731 else
12732 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12733 fi
12734 fi
12735
12736 LD="$lt_cv_path_LD"
12737 if test -n "$LD"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12739 $as_echo "$LD" >&6; }
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 fi
12744 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12746 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12747 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12751 case `$LD -v 2>&1 </dev/null` in
12752 *GNU* | *'with BFD'*)
12753 lt_cv_prog_gnu_ld=yes
12754 ;;
12755 *)
12756 lt_cv_prog_gnu_ld=no
12757 ;;
12758 esac
12759 fi
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12761 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12762 with_gnu_ld=$lt_cv_prog_gnu_ld
12763
12764
12765
12766
12767
12768
12769
12770 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12771 # archiving commands below assume that GNU ld is being used.
12772 if test "$with_gnu_ld" = yes; then
12773 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12774 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'
12775
12776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12778
12779 # If archive_cmds runs LD, not CC, wlarc should be empty
12780 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12781 # investigate it a little bit more. (MM)
12782 wlarc='${wl}'
12783
12784 # ancient GNU ld didn't support --whole-archive et. al.
12785 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12786 $GREP 'no-whole-archive' > /dev/null; then
12787 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12788 else
12789 whole_archive_flag_spec_CXX=
12790 fi
12791 else
12792 with_gnu_ld=no
12793 wlarc=
12794
12795 # A generic and very simple default shared library creation
12796 # command for GNU C++ for the case where it uses the native
12797 # linker, instead of GNU ld. If possible, this setting should
12798 # overridden to take advantage of the native linker features on
12799 # the platform it is being used on.
12800 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12801 fi
12802
12803 # Commands to make compiler produce verbose output that lists
12804 # what "hidden" libraries, object files and flags are used when
12805 # linking a shared library.
12806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12807
12808 else
12809 GXX=no
12810 with_gnu_ld=no
12811 wlarc=
12812 fi
12813
12814 # PORTME: fill in a description of your system's C++ link characteristics
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12817 ld_shlibs_CXX=yes
12818 case $host_os in
12819 aix3*)
12820 # FIXME: insert proper C++ library support
12821 ld_shlibs_CXX=no
12822 ;;
12823 aix[4-9]*)
12824 if test "$host_cpu" = ia64; then
12825 # On IA64, the linker does run time linking by default, so we don't
12826 # have to do anything special.
12827 aix_use_runtimelinking=no
12828 exp_sym_flag='-Bexport'
12829 no_entry_flag=""
12830 else
12831 aix_use_runtimelinking=no
12832
12833 # Test if we are trying to use run time linking or normal
12834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12835 # need to do runtime linking.
12836 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12837 for ld_flag in $LDFLAGS; do
12838 case $ld_flag in
12839 *-brtl*)
12840 aix_use_runtimelinking=yes
12841 break
12842 ;;
12843 esac
12844 done
12845 ;;
12846 esac
12847
12848 exp_sym_flag='-bexport'
12849 no_entry_flag='-bnoentry'
12850 fi
12851
12852 # When large executables or shared objects are built, AIX ld can
12853 # have problems creating the table of contents. If linking a library
12854 # or program results in "error TOC overflow" add -mminimal-toc to
12855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12857
12858 archive_cmds_CXX=''
12859 hardcode_direct_CXX=yes
12860 hardcode_direct_absolute_CXX=yes
12861 hardcode_libdir_separator_CXX=':'
12862 link_all_deplibs_CXX=yes
12863 file_list_spec_CXX='${wl}-f,'
12864
12865 if test "$GXX" = yes; then
12866 case $host_os in aix4.[012]|aix4.[012].*)
12867 # We only want to do this on AIX 4.2 and lower, the check
12868 # below for broken collect2 doesn't work under 4.3+
12869 collect2name=`${CC} -print-prog-name=collect2`
12870 if test -f "$collect2name" &&
12871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12872 then
12873 # We have reworked collect2
12874 :
12875 else
12876 # We have old collect2
12877 hardcode_direct_CXX=unsupported
12878 # It fails to find uninstalled libraries when the uninstalled
12879 # path is not listed in the libpath. Setting hardcode_minus_L
12880 # to unsupported forces relinking
12881 hardcode_minus_L_CXX=yes
12882 hardcode_libdir_flag_spec_CXX='-L$libdir'
12883 hardcode_libdir_separator_CXX=
12884 fi
12885 esac
12886 shared_flag='-shared'
12887 if test "$aix_use_runtimelinking" = yes; then
12888 shared_flag="$shared_flag "'${wl}-G'
12889 fi
12890 else
12891 # not using gcc
12892 if test "$host_cpu" = ia64; then
12893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12894 # chokes on -Wl,-G. The following line is correct:
12895 shared_flag='-G'
12896 else
12897 if test "$aix_use_runtimelinking" = yes; then
12898 shared_flag='${wl}-G'
12899 else
12900 shared_flag='${wl}-bM:SRE'
12901 fi
12902 fi
12903 fi
12904
12905 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12906 # It seems that -bexpall does not export symbols beginning with
12907 # underscore (_), so it is better to generate a list of symbols to
12908 # export.
12909 always_export_symbols_CXX=yes
12910 if test "$aix_use_runtimelinking" = yes; then
12911 # Warning - without using the other runtime loading flags (-brtl),
12912 # -berok will link without error, but may produce a broken library.
12913 allow_undefined_flag_CXX='-berok'
12914 # Determine the default libpath from the value encoded in an empty
12915 # executable.
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918
12919 int
12920 main ()
12921 {
12922
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 if ac_fn_cxx_try_link "$LINENO"; then :
12928
12929 lt_aix_libpath_sed='
12930 /Import File Strings/,/^$/ {
12931 /^0/ {
12932 s/^0 *\(.*\)$/\1/
12933 p
12934 }
12935 }'
12936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12937 # Check for a 64-bit object if we didn't find anything.
12938 if test -z "$aix_libpath"; then
12939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12940 fi
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12945
12946 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12947
12948 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"
12949 else
12950 if test "$host_cpu" = ia64; then
12951 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12952 allow_undefined_flag_CXX="-z nodefs"
12953 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"
12954 else
12955 # Determine the default libpath from the value encoded in an
12956 # empty executable.
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959
12960 int
12961 main ()
12962 {
12963
12964 ;
12965 return 0;
12966 }
12967 _ACEOF
12968 if ac_fn_cxx_try_link "$LINENO"; then :
12969
12970 lt_aix_libpath_sed='
12971 /Import File Strings/,/^$/ {
12972 /^0/ {
12973 s/^0 *\(.*\)$/\1/
12974 p
12975 }
12976 }'
12977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12978 # Check for a 64-bit object if we didn't find anything.
12979 if test -z "$aix_libpath"; then
12980 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12981 fi
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12986
12987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12988 # Warning - without using the other run time loading flags,
12989 # -berok will link without error, but may produce a broken library.
12990 no_undefined_flag_CXX=' ${wl}-bernotok'
12991 allow_undefined_flag_CXX=' ${wl}-berok'
12992 if test "$with_gnu_ld" = yes; then
12993 # We only use this code for GNU lds that support --whole-archive.
12994 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12995 else
12996 # Exported symbols can be pulled into shared objects from archives
12997 whole_archive_flag_spec_CXX='$convenience'
12998 fi
12999 archive_cmds_need_lc_CXX=yes
13000 # This is similar to how AIX traditionally builds its shared
13001 # libraries.
13002 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'
13003 fi
13004 fi
13005 ;;
13006
13007 beos*)
13008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13009 allow_undefined_flag_CXX=unsupported
13010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13011 # support --undefined. This deserves some investigation. FIXME
13012 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13013 else
13014 ld_shlibs_CXX=no
13015 fi
13016 ;;
13017
13018 chorus*)
13019 case $cc_basename in
13020 *)
13021 # FIXME: insert proper C++ library support
13022 ld_shlibs_CXX=no
13023 ;;
13024 esac
13025 ;;
13026
13027 cygwin* | mingw* | pw32* | cegcc*)
13028 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13029 # as there is no search path for DLLs.
13030 hardcode_libdir_flag_spec_CXX='-L$libdir'
13031 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13032 allow_undefined_flag_CXX=unsupported
13033 always_export_symbols_CXX=no
13034 enable_shared_with_static_runtimes_CXX=yes
13035
13036 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13037 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'
13038 # If the export-symbols file already is a .def file (1st line
13039 # is EXPORTS), use it as is; otherwise, prepend...
13040 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13041 cp $export_symbols $output_objdir/$soname.def;
13042 else
13043 echo EXPORTS > $output_objdir/$soname.def;
13044 cat $export_symbols >> $output_objdir/$soname.def;
13045 fi~
13046 $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'
13047 else
13048 ld_shlibs_CXX=no
13049 fi
13050 ;;
13051 darwin* | rhapsody*)
13052
13053
13054 archive_cmds_need_lc_CXX=no
13055 hardcode_direct_CXX=no
13056 hardcode_automatic_CXX=yes
13057 hardcode_shlibpath_var_CXX=unsupported
13058 if test "$lt_cv_ld_force_load" = "yes"; then
13059 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\"`'
13060 else
13061 whole_archive_flag_spec_CXX=''
13062 fi
13063 link_all_deplibs_CXX=yes
13064 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13065 case $cc_basename in
13066 ifort*) _lt_dar_can_shared=yes ;;
13067 *) _lt_dar_can_shared=$GCC ;;
13068 esac
13069 if test "$_lt_dar_can_shared" = "yes"; then
13070 output_verbose_link_cmd=func_echo_all
13071 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}"
13072 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13073 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}"
13074 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}"
13075 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13076 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}"
13077 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}"
13078 fi
13079
13080 else
13081 ld_shlibs_CXX=no
13082 fi
13083
13084 ;;
13085
13086 dgux*)
13087 case $cc_basename in
13088 ec++*)
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13091 ;;
13092 ghcx*)
13093 # Green Hills C++ Compiler
13094 # FIXME: insert proper C++ library support
13095 ld_shlibs_CXX=no
13096 ;;
13097 *)
13098 # FIXME: insert proper C++ library support
13099 ld_shlibs_CXX=no
13100 ;;
13101 esac
13102 ;;
13103
13104 freebsd2.*)
13105 # C++ shared libraries reported to be fairly broken before
13106 # switch to ELF
13107 ld_shlibs_CXX=no
13108 ;;
13109
13110 freebsd-elf*)
13111 archive_cmds_need_lc_CXX=no
13112 ;;
13113
13114 freebsd* | dragonfly*)
13115 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13116 # conventions
13117 ld_shlibs_CXX=yes
13118 ;;
13119
13120 gnu*)
13121 ;;
13122
13123 haiku*)
13124 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13125 link_all_deplibs_CXX=yes
13126 ;;
13127
13128 hpux9*)
13129 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13130 hardcode_libdir_separator_CXX=:
13131 export_dynamic_flag_spec_CXX='${wl}-E'
13132 hardcode_direct_CXX=yes
13133 hardcode_minus_L_CXX=yes # Not in the search PATH,
13134 # but as the default
13135 # location of the library.
13136
13137 case $cc_basename in
13138 CC*)
13139 # FIXME: insert proper C++ library support
13140 ld_shlibs_CXX=no
13141 ;;
13142 aCC*)
13143 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'
13144 # Commands to make compiler produce verbose output that lists
13145 # what "hidden" libraries, object files and flags are used when
13146 # linking a shared library.
13147 #
13148 # There doesn't appear to be a way to prevent this compiler from
13149 # explicitly linking system object files so we need to strip them
13150 # from the output so that they don't get included in the library
13151 # dependencies.
13152 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"'
13153 ;;
13154 *)
13155 if test "$GXX" = yes; then
13156 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'
13157 else
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13160 fi
13161 ;;
13162 esac
13163 ;;
13164
13165 hpux10*|hpux11*)
13166 if test $with_gnu_ld = no; then
13167 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13168 hardcode_libdir_separator_CXX=:
13169
13170 case $host_cpu in
13171 hppa*64*|ia64*)
13172 ;;
13173 *)
13174 export_dynamic_flag_spec_CXX='${wl}-E'
13175 ;;
13176 esac
13177 fi
13178 case $host_cpu in
13179 hppa*64*|ia64*)
13180 hardcode_direct_CXX=no
13181 hardcode_shlibpath_var_CXX=no
13182 ;;
13183 *)
13184 hardcode_direct_CXX=yes
13185 hardcode_direct_absolute_CXX=yes
13186 hardcode_minus_L_CXX=yes # Not in the search PATH,
13187 # but as the default
13188 # location of the library.
13189 ;;
13190 esac
13191
13192 case $cc_basename in
13193 CC*)
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13196 ;;
13197 aCC*)
13198 case $host_cpu in
13199 hppa*64*)
13200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201 ;;
13202 ia64*)
13203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13204 ;;
13205 *)
13206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13207 ;;
13208 esac
13209 # Commands to make compiler produce verbose output that lists
13210 # what "hidden" libraries, object files and flags are used when
13211 # linking a shared library.
13212 #
13213 # There doesn't appear to be a way to prevent this compiler from
13214 # explicitly linking system object files so we need to strip them
13215 # from the output so that they don't get included in the library
13216 # dependencies.
13217 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"'
13218 ;;
13219 *)
13220 if test "$GXX" = yes; then
13221 if test $with_gnu_ld = no; then
13222 case $host_cpu in
13223 hppa*64*)
13224 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13225 ;;
13226 ia64*)
13227 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13228 ;;
13229 *)
13230 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'
13231 ;;
13232 esac
13233 fi
13234 else
13235 # FIXME: insert proper C++ library support
13236 ld_shlibs_CXX=no
13237 fi
13238 ;;
13239 esac
13240 ;;
13241
13242 interix[3-9]*)
13243 hardcode_direct_CXX=no
13244 hardcode_shlibpath_var_CXX=no
13245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13246 export_dynamic_flag_spec_CXX='${wl}-E'
13247 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13248 # Instead, shared libraries are loaded at an image base (0x10000000 by
13249 # default) and relocated if they conflict, which is a slow very memory
13250 # consuming and fragmenting process. To avoid this, we pick a random,
13251 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13252 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13253 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'
13254 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'
13255 ;;
13256 irix5* | irix6*)
13257 case $cc_basename in
13258 CC*)
13259 # SGI C++
13260 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'
13261
13262 # Archives containing C++ object files must be created using
13263 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13264 # necessary to make sure instantiated templates are included
13265 # in the archive.
13266 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13267 ;;
13268 *)
13269 if test "$GXX" = yes; then
13270 if test "$with_gnu_ld" = no; then
13271 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'
13272 else
13273 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'
13274 fi
13275 fi
13276 link_all_deplibs_CXX=yes
13277 ;;
13278 esac
13279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13280 hardcode_libdir_separator_CXX=:
13281 inherit_rpath_CXX=yes
13282 ;;
13283
13284 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13285 case $cc_basename in
13286 KCC*)
13287 # Kuck and Associates, Inc. (KAI) C++ Compiler
13288
13289 # KCC will only create a shared library if the output file
13290 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13291 # to its proper name (with version) after linking.
13292 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'
13293 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'
13294 # Commands to make compiler produce verbose output that lists
13295 # what "hidden" libraries, object files and flags are used when
13296 # linking a shared library.
13297 #
13298 # There doesn't appear to be a way to prevent this compiler from
13299 # explicitly linking system object files so we need to strip them
13300 # from the output so that they don't get included in the library
13301 # dependencies.
13302 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"'
13303
13304 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13305 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13306
13307 # Archives containing C++ object files must be created using
13308 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13309 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13310 ;;
13311 icpc* | ecpc* )
13312 # Intel C++
13313 with_gnu_ld=yes
13314 # version 8.0 and above of icpc choke on multiply defined symbols
13315 # if we add $predep_objects and $postdep_objects, however 7.1 and
13316 # earlier do not add the objects themselves.
13317 case `$CC -V 2>&1` in
13318 *"Version 7."*)
13319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13320 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'
13321 ;;
13322 *) # Version 8.0 or newer
13323 tmp_idyn=
13324 case $host_cpu in
13325 ia64*) tmp_idyn=' -i_dynamic';;
13326 esac
13327 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13328 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'
13329 ;;
13330 esac
13331 archive_cmds_need_lc_CXX=no
13332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13334 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13335 ;;
13336 pgCC* | pgcpp*)
13337 # Portland Group C++ compiler
13338 case `$CC -V` in
13339 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13340 prelink_cmds_CXX='tpldir=Template.dir~
13341 rm -rf $tpldir~
13342 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13343 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13344 old_archive_cmds_CXX='tpldir=Template.dir~
13345 rm -rf $tpldir~
13346 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13347 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13348 $RANLIB $oldlib'
13349 archive_cmds_CXX='tpldir=Template.dir~
13350 rm -rf $tpldir~
13351 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13352 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13353 archive_expsym_cmds_CXX='tpldir=Template.dir~
13354 rm -rf $tpldir~
13355 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13356 $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'
13357 ;;
13358 *) # Version 6 and above use weak symbols
13359 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13360 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'
13361 ;;
13362 esac
13363
13364 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13366 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'
13367 ;;
13368 cxx*)
13369 # Compaq C++
13370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13371 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'
13372
13373 runpath_var=LD_RUN_PATH
13374 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13375 hardcode_libdir_separator_CXX=:
13376
13377 # Commands to make compiler produce verbose output that lists
13378 # what "hidden" libraries, object files and flags are used when
13379 # linking a shared library.
13380 #
13381 # There doesn't appear to be a way to prevent this compiler from
13382 # explicitly linking system object files so we need to strip them
13383 # from the output so that they don't get included in the library
13384 # dependencies.
13385 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'
13386 ;;
13387 xl* | mpixl* | bgxl*)
13388 # IBM XL 8.0 on PPC, with GNU ld
13389 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13391 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13392 if test "x$supports_anon_versioning" = xyes; then
13393 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13394 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13395 echo "local: *; };" >> $output_objdir/$libname.ver~
13396 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13397 fi
13398 ;;
13399 *)
13400 case `$CC -V 2>&1 | sed 5q` in
13401 *Sun\ C*)
13402 # Sun C++ 5.9
13403 no_undefined_flag_CXX=' -zdefs'
13404 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13405 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'
13406 hardcode_libdir_flag_spec_CXX='-R$libdir'
13407 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'
13408 compiler_needs_object_CXX=yes
13409
13410 # Not sure whether something based on
13411 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13412 # would be better.
13413 output_verbose_link_cmd='func_echo_all'
13414
13415 # Archives containing C++ object files must be created using
13416 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13417 # necessary to make sure instantiated templates are included
13418 # in the archive.
13419 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13420 ;;
13421 esac
13422 ;;
13423 esac
13424 ;;
13425
13426 lynxos*)
13427 # FIXME: insert proper C++ library support
13428 ld_shlibs_CXX=no
13429 ;;
13430
13431 m88k*)
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13434 ;;
13435
13436 mvs*)
13437 case $cc_basename in
13438 cxx*)
13439 # FIXME: insert proper C++ library support
13440 ld_shlibs_CXX=no
13441 ;;
13442 *)
13443 # FIXME: insert proper C++ library support
13444 ld_shlibs_CXX=no
13445 ;;
13446 esac
13447 ;;
13448
13449 netbsd*)
13450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13451 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13452 wlarc=
13453 hardcode_libdir_flag_spec_CXX='-R$libdir'
13454 hardcode_direct_CXX=yes
13455 hardcode_shlibpath_var_CXX=no
13456 fi
13457 # Workaround some broken pre-1.5 toolchains
13458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13459 ;;
13460
13461 *nto* | *qnx*)
13462 ld_shlibs_CXX=yes
13463 ;;
13464
13465 openbsd2*)
13466 # C++ shared libraries are fairly broken
13467 ld_shlibs_CXX=no
13468 ;;
13469
13470 openbsd*)
13471 if test -f /usr/libexec/ld.so; then
13472 hardcode_direct_CXX=yes
13473 hardcode_shlibpath_var_CXX=no
13474 hardcode_direct_absolute_CXX=yes
13475 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13476 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13477 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13478 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13479 export_dynamic_flag_spec_CXX='${wl}-E'
13480 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13481 fi
13482 output_verbose_link_cmd=func_echo_all
13483 else
13484 ld_shlibs_CXX=no
13485 fi
13486 ;;
13487
13488 osf3* | osf4* | osf5*)
13489 case $cc_basename in
13490 KCC*)
13491 # Kuck and Associates, Inc. (KAI) C++ Compiler
13492
13493 # KCC will only create a shared library if the output file
13494 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13495 # to its proper name (with version) after linking.
13496 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'
13497
13498 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13499 hardcode_libdir_separator_CXX=:
13500
13501 # Archives containing C++ object files must be created using
13502 # the KAI C++ compiler.
13503 case $host in
13504 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13505 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13506 esac
13507 ;;
13508 RCC*)
13509 # Rational C++ 2.4.1
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13512 ;;
13513 cxx*)
13514 case $host in
13515 osf3*)
13516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13517 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'
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13519 ;;
13520 *)
13521 allow_undefined_flag_CXX=' -expect_unresolved \*'
13522 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'
13523 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13524 echo "-hidden">> $lib.exp~
13525 $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~
13526 $RM $lib.exp'
13527 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13528 ;;
13529 esac
13530
13531 hardcode_libdir_separator_CXX=:
13532
13533 # Commands to make compiler produce verbose output that lists
13534 # what "hidden" libraries, object files and flags are used when
13535 # linking a shared library.
13536 #
13537 # There doesn't appear to be a way to prevent this compiler from
13538 # explicitly linking system object files so we need to strip them
13539 # from the output so that they don't get included in the library
13540 # dependencies.
13541 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"'
13542 ;;
13543 *)
13544 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13545 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13546 case $host in
13547 osf3*)
13548 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'
13549 ;;
13550 *)
13551 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'
13552 ;;
13553 esac
13554
13555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13556 hardcode_libdir_separator_CXX=:
13557
13558 # Commands to make compiler produce verbose output that lists
13559 # what "hidden" libraries, object files and flags are used when
13560 # linking a shared library.
13561 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13562
13563 else
13564 # FIXME: insert proper C++ library support
13565 ld_shlibs_CXX=no
13566 fi
13567 ;;
13568 esac
13569 ;;
13570
13571 psos*)
13572 # FIXME: insert proper C++ library support
13573 ld_shlibs_CXX=no
13574 ;;
13575
13576 sunos4*)
13577 case $cc_basename in
13578 CC*)
13579 # Sun C++ 4.x
13580 # FIXME: insert proper C++ library support
13581 ld_shlibs_CXX=no
13582 ;;
13583 lcc*)
13584 # Lucid
13585 # FIXME: insert proper C++ library support
13586 ld_shlibs_CXX=no
13587 ;;
13588 *)
13589 # FIXME: insert proper C++ library support
13590 ld_shlibs_CXX=no
13591 ;;
13592 esac
13593 ;;
13594
13595 solaris*)
13596 case $cc_basename in
13597 CC*)
13598 # Sun C++ 4.2, 5.x and Centerline C++
13599 archive_cmds_need_lc_CXX=yes
13600 no_undefined_flag_CXX=' -zdefs'
13601 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13602 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13603 $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'
13604
13605 hardcode_libdir_flag_spec_CXX='-R$libdir'
13606 hardcode_shlibpath_var_CXX=no
13607 case $host_os in
13608 solaris2.[0-5] | solaris2.[0-5].*) ;;
13609 *)
13610 # The compiler driver will combine and reorder linker options,
13611 # but understands `-z linker_flag'.
13612 # Supported since Solaris 2.6 (maybe 2.5.1?)
13613 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13614 ;;
13615 esac
13616 link_all_deplibs_CXX=yes
13617
13618 output_verbose_link_cmd='func_echo_all'
13619
13620 # Archives containing C++ object files must be created using
13621 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13622 # necessary to make sure instantiated templates are included
13623 # in the archive.
13624 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13625 ;;
13626 gcx*)
13627 # Green Hills C++ Compiler
13628 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13629
13630 # The C++ compiler must be used to create the archive.
13631 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13632 ;;
13633 *)
13634 # GNU C++ compiler with Solaris linker
13635 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13636 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13637 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13638 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13639 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13640 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13641
13642 # Commands to make compiler produce verbose output that lists
13643 # what "hidden" libraries, object files and flags are used when
13644 # linking a shared library.
13645 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13646 else
13647 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13648 # platform.
13649 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13650 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13651 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13652
13653 # Commands to make compiler produce verbose output that lists
13654 # what "hidden" libraries, object files and flags are used when
13655 # linking a shared library.
13656 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13657 fi
13658
13659 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13660 case $host_os in
13661 solaris2.[0-5] | solaris2.[0-5].*) ;;
13662 *)
13663 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13664 ;;
13665 esac
13666 fi
13667 ;;
13668 esac
13669 ;;
13670
13671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13672 no_undefined_flag_CXX='${wl}-z,text'
13673 archive_cmds_need_lc_CXX=no
13674 hardcode_shlibpath_var_CXX=no
13675 runpath_var='LD_RUN_PATH'
13676
13677 case $cc_basename in
13678 CC*)
13679 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 ;;
13682 *)
13683 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13684 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13685 ;;
13686 esac
13687 ;;
13688
13689 sysv5* | sco3.2v5* | sco5v6*)
13690 # Note: We can NOT use -z defs as we might desire, because we do not
13691 # link with -lc, and that would cause any symbols used from libc to
13692 # always be unresolved, which means just about no library would
13693 # ever link correctly. If we're not using GNU ld we use -z text
13694 # though, which does catch some bad symbols but isn't as heavy-handed
13695 # as -z defs.
13696 no_undefined_flag_CXX='${wl}-z,text'
13697 allow_undefined_flag_CXX='${wl}-z,nodefs'
13698 archive_cmds_need_lc_CXX=no
13699 hardcode_shlibpath_var_CXX=no
13700 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13701 hardcode_libdir_separator_CXX=':'
13702 link_all_deplibs_CXX=yes
13703 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13704 runpath_var='LD_RUN_PATH'
13705
13706 case $cc_basename in
13707 CC*)
13708 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13709 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13710 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13711 '"$old_archive_cmds_CXX"
13712 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13713 '"$reload_cmds_CXX"
13714 ;;
13715 *)
13716 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13717 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13718 ;;
13719 esac
13720 ;;
13721
13722 tandem*)
13723 case $cc_basename in
13724 NCC*)
13725 # NonStop-UX NCC 3.20
13726 # FIXME: insert proper C++ library support
13727 ld_shlibs_CXX=no
13728 ;;
13729 *)
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13732 ;;
13733 esac
13734 ;;
13735
13736 vxworks*)
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13739 ;;
13740
13741 *)
13742 # FIXME: insert proper C++ library support
13743 ld_shlibs_CXX=no
13744 ;;
13745 esac
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13748 $as_echo "$ld_shlibs_CXX" >&6; }
13749 test "$ld_shlibs_CXX" = no && can_build_shared=no
13750
13751 GCC_CXX="$GXX"
13752 LD_CXX="$LD"
13753
13754 ## CAVEAT EMPTOR:
13755 ## There is no encapsulation within the following macros, do not change
13756 ## the running order or otherwise move them around unless you know exactly
13757 ## what you are doing...
13758 # Dependencies to place before and after the object being linked:
13759 predep_objects_CXX=
13760 postdep_objects_CXX=
13761 predeps_CXX=
13762 postdeps_CXX=
13763 compiler_lib_search_path_CXX=
13764
13765 cat > conftest.$ac_ext <<_LT_EOF
13766 class Foo
13767 {
13768 public:
13769 Foo (void) { a = 0; }
13770 private:
13771 int a;
13772 };
13773 _LT_EOF
13774
13775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13776 (eval $ac_compile) 2>&5
13777 ac_status=$?
13778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13779 test $ac_status = 0; }; then
13780 # Parse the compiler output and extract the necessary
13781 # objects, libraries and library flags.
13782
13783 # Sentinel used to keep track of whether or not we are before
13784 # the conftest object file.
13785 pre_test_object_deps_done=no
13786
13787 for p in `eval "$output_verbose_link_cmd"`; do
13788 case $p in
13789
13790 -L* | -R* | -l*)
13791 # Some compilers place space between "-{L,R}" and the path.
13792 # Remove the space.
13793 if test $p = "-L" ||
13794 test $p = "-R"; then
13795 prev=$p
13796 continue
13797 else
13798 prev=
13799 fi
13800
13801 if test "$pre_test_object_deps_done" = no; then
13802 case $p in
13803 -L* | -R*)
13804 # Internal compiler library paths should come after those
13805 # provided the user. The postdeps already come after the
13806 # user supplied libs so there is no need to process them.
13807 if test -z "$compiler_lib_search_path_CXX"; then
13808 compiler_lib_search_path_CXX="${prev}${p}"
13809 else
13810 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13811 fi
13812 ;;
13813 # The "-l" case would never come before the object being
13814 # linked, so don't bother handling this case.
13815 esac
13816 else
13817 if test -z "$postdeps_CXX"; then
13818 postdeps_CXX="${prev}${p}"
13819 else
13820 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13821 fi
13822 fi
13823 ;;
13824
13825 *.$objext)
13826 # This assumes that the test object file only shows up
13827 # once in the compiler output.
13828 if test "$p" = "conftest.$objext"; then
13829 pre_test_object_deps_done=yes
13830 continue
13831 fi
13832
13833 if test "$pre_test_object_deps_done" = no; then
13834 if test -z "$predep_objects_CXX"; then
13835 predep_objects_CXX="$p"
13836 else
13837 predep_objects_CXX="$predep_objects_CXX $p"
13838 fi
13839 else
13840 if test -z "$postdep_objects_CXX"; then
13841 postdep_objects_CXX="$p"
13842 else
13843 postdep_objects_CXX="$postdep_objects_CXX $p"
13844 fi
13845 fi
13846 ;;
13847
13848 *) ;; # Ignore the rest.
13849
13850 esac
13851 done
13852
13853 # Clean up.
13854 rm -f a.out a.exe
13855 else
13856 echo "libtool.m4: error: problem compiling CXX test program"
13857 fi
13858
13859 $RM -f confest.$objext
13860
13861 # PORTME: override above test on systems where it is broken
13862 case $host_os in
13863 interix[3-9]*)
13864 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13865 # hack all around it, let's just trust "g++" to DTRT.
13866 predep_objects_CXX=
13867 postdep_objects_CXX=
13868 postdeps_CXX=
13869 ;;
13870
13871 linux*)
13872 case `$CC -V 2>&1 | sed 5q` in
13873 *Sun\ C*)
13874 # Sun C++ 5.9
13875
13876 # The more standards-conforming stlport4 library is
13877 # incompatible with the Cstd library. Avoid specifying
13878 # it if it's in CXXFLAGS. Ignore libCrun as
13879 # -library=stlport4 depends on it.
13880 case " $CXX $CXXFLAGS " in
13881 *" -library=stlport4 "*)
13882 solaris_use_stlport4=yes
13883 ;;
13884 esac
13885
13886 if test "$solaris_use_stlport4" != yes; then
13887 postdeps_CXX='-library=Cstd -library=Crun'
13888 fi
13889 ;;
13890 esac
13891 ;;
13892
13893 solaris*)
13894 case $cc_basename in
13895 CC*)
13896 # The more standards-conforming stlport4 library is
13897 # incompatible with the Cstd library. Avoid specifying
13898 # it if it's in CXXFLAGS. Ignore libCrun as
13899 # -library=stlport4 depends on it.
13900 case " $CXX $CXXFLAGS " in
13901 *" -library=stlport4 "*)
13902 solaris_use_stlport4=yes
13903 ;;
13904 esac
13905
13906 # Adding this requires a known-good setup of shared libraries for
13907 # Sun compiler versions before 5.6, else PIC objects from an old
13908 # archive will be linked into the output, leading to subtle bugs.
13909 if test "$solaris_use_stlport4" != yes; then
13910 postdeps_CXX='-library=Cstd -library=Crun'
13911 fi
13912 ;;
13913 esac
13914 ;;
13915 esac
13916
13917
13918 case " $postdeps_CXX " in
13919 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13920 esac
13921 compiler_lib_search_dirs_CXX=
13922 if test -n "${compiler_lib_search_path_CXX}"; then
13923 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13924 fi
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
13956 lt_prog_compiler_wl_CXX=
13957 lt_prog_compiler_pic_CXX=
13958 lt_prog_compiler_static_CXX=
13959
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13961 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13962
13963 # C++ specific cases for pic, static, wl, etc.
13964 if test "$GXX" = yes; then
13965 lt_prog_compiler_wl_CXX='-Wl,'
13966 lt_prog_compiler_static_CXX='-static'
13967
13968 case $host_os in
13969 aix*)
13970 # All AIX code is PIC.
13971 if test "$host_cpu" = ia64; then
13972 # AIX 5 now supports IA64 processor
13973 lt_prog_compiler_static_CXX='-Bstatic'
13974 fi
13975 lt_prog_compiler_pic_CXX='-fPIC'
13976 ;;
13977
13978 amigaos*)
13979 case $host_cpu in
13980 powerpc)
13981 # see comment about AmigaOS4 .so support
13982 lt_prog_compiler_pic_CXX='-fPIC'
13983 ;;
13984 m68k)
13985 # FIXME: we need at least 68020 code to build shared libraries, but
13986 # adding the `-m68020' flag to GCC prevents building anything better,
13987 # like `-m68040'.
13988 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13989 ;;
13990 esac
13991 ;;
13992
13993 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13994 # PIC is the default for these OSes.
13995 ;;
13996 mingw* | cygwin* | os2* | pw32* | cegcc*)
13997 # This hack is so that the source file can tell whether it is being
13998 # built for inclusion in a dll (and should export symbols for example).
13999 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14000 # (--disable-auto-import) libraries
14001 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14002 ;;
14003 darwin* | rhapsody*)
14004 # PIC is the default on this platform
14005 # Common symbols not allowed in MH_DYLIB files
14006 lt_prog_compiler_pic_CXX='-fno-common'
14007 ;;
14008 *djgpp*)
14009 # DJGPP does not support shared libraries at all
14010 lt_prog_compiler_pic_CXX=
14011 ;;
14012 haiku*)
14013 # PIC is the default for Haiku.
14014 # The "-static" flag exists, but is broken.
14015 lt_prog_compiler_static_CXX=
14016 ;;
14017 interix[3-9]*)
14018 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14019 # Instead, we relocate shared libraries at runtime.
14020 ;;
14021 sysv4*MP*)
14022 if test -d /usr/nec; then
14023 lt_prog_compiler_pic_CXX=-Kconform_pic
14024 fi
14025 ;;
14026 hpux*)
14027 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14028 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14029 # sets the default TLS model and affects inlining.
14030 case $host_cpu in
14031 hppa*64*)
14032 ;;
14033 *)
14034 lt_prog_compiler_pic_CXX='-fPIC'
14035 ;;
14036 esac
14037 ;;
14038 *qnx* | *nto*)
14039 # QNX uses GNU C++, but need to define -shared option too, otherwise
14040 # it will coredump.
14041 lt_prog_compiler_pic_CXX='-fPIC -shared'
14042 ;;
14043 *)
14044 lt_prog_compiler_pic_CXX='-fPIC'
14045 ;;
14046 esac
14047 else
14048 case $host_os in
14049 aix[4-9]*)
14050 # All AIX code is PIC.
14051 if test "$host_cpu" = ia64; then
14052 # AIX 5 now supports IA64 processor
14053 lt_prog_compiler_static_CXX='-Bstatic'
14054 else
14055 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14056 fi
14057 ;;
14058 chorus*)
14059 case $cc_basename in
14060 cxch68*)
14061 # Green Hills C++ Compiler
14062 # _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"
14063 ;;
14064 esac
14065 ;;
14066 dgux*)
14067 case $cc_basename in
14068 ec++*)
14069 lt_prog_compiler_pic_CXX='-KPIC'
14070 ;;
14071 ghcx*)
14072 # Green Hills C++ Compiler
14073 lt_prog_compiler_pic_CXX='-pic'
14074 ;;
14075 *)
14076 ;;
14077 esac
14078 ;;
14079 freebsd* | dragonfly*)
14080 # FreeBSD uses GNU C++
14081 ;;
14082 hpux9* | hpux10* | hpux11*)
14083 case $cc_basename in
14084 CC*)
14085 lt_prog_compiler_wl_CXX='-Wl,'
14086 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14087 if test "$host_cpu" != ia64; then
14088 lt_prog_compiler_pic_CXX='+Z'
14089 fi
14090 ;;
14091 aCC*)
14092 lt_prog_compiler_wl_CXX='-Wl,'
14093 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14094 case $host_cpu in
14095 hppa*64*|ia64*)
14096 # +Z the default
14097 ;;
14098 *)
14099 lt_prog_compiler_pic_CXX='+Z'
14100 ;;
14101 esac
14102 ;;
14103 *)
14104 ;;
14105 esac
14106 ;;
14107 interix*)
14108 # This is c89, which is MS Visual C++ (no shared libs)
14109 # Anyone wants to do a port?
14110 ;;
14111 irix5* | irix6* | nonstopux*)
14112 case $cc_basename in
14113 CC*)
14114 lt_prog_compiler_wl_CXX='-Wl,'
14115 lt_prog_compiler_static_CXX='-non_shared'
14116 # CC pic flag -KPIC is the default.
14117 ;;
14118 *)
14119 ;;
14120 esac
14121 ;;
14122 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14123 case $cc_basename in
14124 KCC*)
14125 # KAI C++ Compiler
14126 lt_prog_compiler_wl_CXX='--backend -Wl,'
14127 lt_prog_compiler_pic_CXX='-fPIC'
14128 ;;
14129 ecpc* )
14130 # old Intel C++ for x86_64 which still supported -KPIC.
14131 lt_prog_compiler_wl_CXX='-Wl,'
14132 lt_prog_compiler_pic_CXX='-KPIC'
14133 lt_prog_compiler_static_CXX='-static'
14134 ;;
14135 icpc* )
14136 # Intel C++, used to be incompatible with GCC.
14137 # ICC 10 doesn't accept -KPIC any more.
14138 lt_prog_compiler_wl_CXX='-Wl,'
14139 lt_prog_compiler_pic_CXX='-fPIC'
14140 lt_prog_compiler_static_CXX='-static'
14141 ;;
14142 pgCC* | pgcpp*)
14143 # Portland Group C++ compiler
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 lt_prog_compiler_pic_CXX='-fpic'
14146 lt_prog_compiler_static_CXX='-Bstatic'
14147 ;;
14148 cxx*)
14149 # Compaq C++
14150 # Make sure the PIC flag is empty. It appears that all Alpha
14151 # Linux and Compaq Tru64 Unix objects are PIC.
14152 lt_prog_compiler_pic_CXX=
14153 lt_prog_compiler_static_CXX='-non_shared'
14154 ;;
14155 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14156 # IBM XL 8.0, 9.0 on PPC and BlueGene
14157 lt_prog_compiler_wl_CXX='-Wl,'
14158 lt_prog_compiler_pic_CXX='-qpic'
14159 lt_prog_compiler_static_CXX='-qstaticlink'
14160 ;;
14161 *)
14162 case `$CC -V 2>&1 | sed 5q` in
14163 *Sun\ C*)
14164 # Sun C++ 5.9
14165 lt_prog_compiler_pic_CXX='-KPIC'
14166 lt_prog_compiler_static_CXX='-Bstatic'
14167 lt_prog_compiler_wl_CXX='-Qoption ld '
14168 ;;
14169 esac
14170 ;;
14171 esac
14172 ;;
14173 lynxos*)
14174 ;;
14175 m88k*)
14176 ;;
14177 mvs*)
14178 case $cc_basename in
14179 cxx*)
14180 lt_prog_compiler_pic_CXX='-W c,exportall'
14181 ;;
14182 *)
14183 ;;
14184 esac
14185 ;;
14186 netbsd*)
14187 ;;
14188 *qnx* | *nto*)
14189 # QNX uses GNU C++, but need to define -shared option too, otherwise
14190 # it will coredump.
14191 lt_prog_compiler_pic_CXX='-fPIC -shared'
14192 ;;
14193 osf3* | osf4* | osf5*)
14194 case $cc_basename in
14195 KCC*)
14196 lt_prog_compiler_wl_CXX='--backend -Wl,'
14197 ;;
14198 RCC*)
14199 # Rational C++ 2.4.1
14200 lt_prog_compiler_pic_CXX='-pic'
14201 ;;
14202 cxx*)
14203 # Digital/Compaq C++
14204 lt_prog_compiler_wl_CXX='-Wl,'
14205 # Make sure the PIC flag is empty. It appears that all Alpha
14206 # Linux and Compaq Tru64 Unix objects are PIC.
14207 lt_prog_compiler_pic_CXX=
14208 lt_prog_compiler_static_CXX='-non_shared'
14209 ;;
14210 *)
14211 ;;
14212 esac
14213 ;;
14214 psos*)
14215 ;;
14216 solaris*)
14217 case $cc_basename in
14218 CC*)
14219 # Sun C++ 4.2, 5.x and Centerline C++
14220 lt_prog_compiler_pic_CXX='-KPIC'
14221 lt_prog_compiler_static_CXX='-Bstatic'
14222 lt_prog_compiler_wl_CXX='-Qoption ld '
14223 ;;
14224 gcx*)
14225 # Green Hills C++ Compiler
14226 lt_prog_compiler_pic_CXX='-PIC'
14227 ;;
14228 *)
14229 ;;
14230 esac
14231 ;;
14232 sunos4*)
14233 case $cc_basename in
14234 CC*)
14235 # Sun C++ 4.x
14236 lt_prog_compiler_pic_CXX='-pic'
14237 lt_prog_compiler_static_CXX='-Bstatic'
14238 ;;
14239 lcc*)
14240 # Lucid
14241 lt_prog_compiler_pic_CXX='-pic'
14242 ;;
14243 *)
14244 ;;
14245 esac
14246 ;;
14247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14248 case $cc_basename in
14249 CC*)
14250 lt_prog_compiler_wl_CXX='-Wl,'
14251 lt_prog_compiler_pic_CXX='-KPIC'
14252 lt_prog_compiler_static_CXX='-Bstatic'
14253 ;;
14254 esac
14255 ;;
14256 tandem*)
14257 case $cc_basename in
14258 NCC*)
14259 # NonStop-UX NCC 3.20
14260 lt_prog_compiler_pic_CXX='-KPIC'
14261 ;;
14262 *)
14263 ;;
14264 esac
14265 ;;
14266 vxworks*)
14267 ;;
14268 *)
14269 lt_prog_compiler_can_build_shared_CXX=no
14270 ;;
14271 esac
14272 fi
14273
14274 case $host_os in
14275 # For platforms which do not support PIC, -DPIC is meaningless:
14276 *djgpp*)
14277 lt_prog_compiler_pic_CXX=
14278 ;;
14279 *)
14280 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14281 ;;
14282 esac
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14284 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14285
14286
14287
14288 #
14289 # Check to make sure the PIC flag actually works.
14290 #
14291 if test -n "$lt_prog_compiler_pic_CXX"; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14293 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14294 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14295 $as_echo_n "(cached) " >&6
14296 else
14297 lt_cv_prog_compiler_pic_works_CXX=no
14298 ac_outfile=conftest.$ac_objext
14299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14300 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14301 # Insert the option either (1) after the last *FLAGS variable, or
14302 # (2) before a word containing "conftest.", or (3) at the end.
14303 # Note that $ac_compile itself does not contain backslashes and begins
14304 # with a dollar sign (not a hyphen), so the echo should work correctly.
14305 # The option is referenced via a variable to avoid confusing sed.
14306 lt_compile=`echo "$ac_compile" | $SED \
14307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309 -e 's:$: $lt_compiler_flag:'`
14310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14311 (eval "$lt_compile" 2>conftest.err)
14312 ac_status=$?
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 if (exit $ac_status) && test -s "$ac_outfile"; then
14316 # The compiler can only warn and ignore the option if not recognized
14317 # So say no if there are warnings other than the usual output.
14318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14321 lt_cv_prog_compiler_pic_works_CXX=yes
14322 fi
14323 fi
14324 $RM conftest*
14325
14326 fi
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14328 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14329
14330 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14331 case $lt_prog_compiler_pic_CXX in
14332 "" | " "*) ;;
14333 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14334 esac
14335 else
14336 lt_prog_compiler_pic_CXX=
14337 lt_prog_compiler_can_build_shared_CXX=no
14338 fi
14339
14340 fi
14341
14342
14343
14344 #
14345 # Check to make sure the static flag actually works.
14346 #
14347 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14349 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14350 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14351 $as_echo_n "(cached) " >&6
14352 else
14353 lt_cv_prog_compiler_static_works_CXX=no
14354 save_LDFLAGS="$LDFLAGS"
14355 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14358 # The linker can only warn and ignore the option if not recognized
14359 # So say no if there are warnings
14360 if test -s conftest.err; then
14361 # Append any errors to the config.log.
14362 cat conftest.err 1>&5
14363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14365 if diff conftest.exp conftest.er2 >/dev/null; then
14366 lt_cv_prog_compiler_static_works_CXX=yes
14367 fi
14368 else
14369 lt_cv_prog_compiler_static_works_CXX=yes
14370 fi
14371 fi
14372 $RM -r conftest*
14373 LDFLAGS="$save_LDFLAGS"
14374
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14377 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14378
14379 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14380 :
14381 else
14382 lt_prog_compiler_static_CXX=
14383 fi
14384
14385
14386
14387
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14390 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 lt_cv_prog_compiler_c_o_CXX=no
14394 $RM -r conftest 2>/dev/null
14395 mkdir conftest
14396 cd conftest
14397 mkdir out
14398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14399
14400 lt_compiler_flag="-o out/conftest2.$ac_objext"
14401 # Insert the option either (1) after the last *FLAGS variable, or
14402 # (2) before a word containing "conftest.", or (3) at the end.
14403 # Note that $ac_compile itself does not contain backslashes and begins
14404 # with a dollar sign (not a hyphen), so the echo should work correctly.
14405 lt_compile=`echo "$ac_compile" | $SED \
14406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14408 -e 's:$: $lt_compiler_flag:'`
14409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14410 (eval "$lt_compile" 2>out/conftest.err)
14411 ac_status=$?
14412 cat out/conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14415 then
14416 # The compiler can only warn and ignore the option if not recognized
14417 # So say no if there are warnings
14418 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14419 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14420 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14421 lt_cv_prog_compiler_c_o_CXX=yes
14422 fi
14423 fi
14424 chmod u+w . 2>&5
14425 $RM conftest*
14426 # SGI C++ compiler will create directory out/ii_files/ for
14427 # template instantiation
14428 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14429 $RM out/* && rmdir out
14430 cd ..
14431 $RM -r conftest
14432 $RM conftest*
14433
14434 fi
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14436 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14437
14438
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14441 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14442 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 lt_cv_prog_compiler_c_o_CXX=no
14446 $RM -r conftest 2>/dev/null
14447 mkdir conftest
14448 cd conftest
14449 mkdir out
14450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14451
14452 lt_compiler_flag="-o out/conftest2.$ac_objext"
14453 # Insert the option either (1) after the last *FLAGS variable, or
14454 # (2) before a word containing "conftest.", or (3) at the end.
14455 # Note that $ac_compile itself does not contain backslashes and begins
14456 # with a dollar sign (not a hyphen), so the echo should work correctly.
14457 lt_compile=`echo "$ac_compile" | $SED \
14458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14460 -e 's:$: $lt_compiler_flag:'`
14461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14462 (eval "$lt_compile" 2>out/conftest.err)
14463 ac_status=$?
14464 cat out/conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14467 then
14468 # The compiler can only warn and ignore the option if not recognized
14469 # So say no if there are warnings
14470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14473 lt_cv_prog_compiler_c_o_CXX=yes
14474 fi
14475 fi
14476 chmod u+w . 2>&5
14477 $RM conftest*
14478 # SGI C++ compiler will create directory out/ii_files/ for
14479 # template instantiation
14480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14481 $RM out/* && rmdir out
14482 cd ..
14483 $RM -r conftest
14484 $RM conftest*
14485
14486 fi
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14488 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14489
14490
14491
14492
14493 hard_links="nottested"
14494 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14495 # do not overwrite the value of need_locks provided by the user
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14497 $as_echo_n "checking if we can lock with hard links... " >&6; }
14498 hard_links=yes
14499 $RM conftest*
14500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14501 touch conftest.a
14502 ln conftest.a conftest.b 2>&5 || hard_links=no
14503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14505 $as_echo "$hard_links" >&6; }
14506 if test "$hard_links" = no; then
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14508 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14509 need_locks=warn
14510 fi
14511 else
14512 need_locks=no
14513 fi
14514
14515
14516
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14518 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14519
14520 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14521 case $host_os in
14522 aix[4-9]*)
14523 # If we're using GNU nm, then we don't want the "-C" option.
14524 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14525 # Also, AIX nm treats weak defined symbols like other global defined
14526 # symbols, whereas GNU nm marks them as "W".
14527 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14528 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'
14529 else
14530 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'
14531 fi
14532 ;;
14533 pw32*)
14534 export_symbols_cmds_CXX="$ltdll_cmds"
14535 ;;
14536 cygwin* | mingw* | cegcc*)
14537 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'
14538 ;;
14539 *)
14540 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14541 ;;
14542 esac
14543 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14544
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14546 $as_echo "$ld_shlibs_CXX" >&6; }
14547 test "$ld_shlibs_CXX" = no && can_build_shared=no
14548
14549 with_gnu_ld_CXX=$with_gnu_ld
14550
14551
14552
14553
14554
14555
14556 #
14557 # Do we need to explicitly link libc?
14558 #
14559 case "x$archive_cmds_need_lc_CXX" in
14560 x|xyes)
14561 # Assume -lc should be added
14562 archive_cmds_need_lc_CXX=yes
14563
14564 if test "$enable_shared" = yes && test "$GCC" = yes; then
14565 case $archive_cmds_CXX in
14566 *'~'*)
14567 # FIXME: we may have to deal with multi-command sequences.
14568 ;;
14569 '$CC '*)
14570 # Test whether the compiler implicitly links with -lc since on some
14571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14572 # to ld, don't add -lc before -lgcc.
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14574 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14575 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 $RM conftest*
14579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14580
14581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14582 (eval $ac_compile) 2>&5
14583 ac_status=$?
14584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14585 test $ac_status = 0; } 2>conftest.err; then
14586 soname=conftest
14587 lib=conftest
14588 libobjs=conftest.$ac_objext
14589 deplibs=
14590 wl=$lt_prog_compiler_wl_CXX
14591 pic_flag=$lt_prog_compiler_pic_CXX
14592 compiler_flags=-v
14593 linker_flags=-v
14594 verstring=
14595 output_objdir=.
14596 libname=conftest
14597 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14598 allow_undefined_flag_CXX=
14599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14600 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14601 ac_status=$?
14602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14603 test $ac_status = 0; }
14604 then
14605 lt_cv_archive_cmds_need_lc_CXX=no
14606 else
14607 lt_cv_archive_cmds_need_lc_CXX=yes
14608 fi
14609 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14610 else
14611 cat conftest.err 1>&5
14612 fi
14613 $RM conftest*
14614
14615 fi
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14617 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14618 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14619 ;;
14620 esac
14621 fi
14622 ;;
14623 esac
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
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14689 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14690
14691 library_names_spec=
14692 libname_spec='lib$name'
14693 soname_spec=
14694 shrext_cmds=".so"
14695 postinstall_cmds=
14696 postuninstall_cmds=
14697 finish_cmds=
14698 finish_eval=
14699 shlibpath_var=
14700 shlibpath_overrides_runpath=unknown
14701 version_type=none
14702 dynamic_linker="$host_os ld.so"
14703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14704 need_lib_prefix=unknown
14705 hardcode_into_libs=no
14706
14707 # when you set need_version to no, make sure it does not cause -set_version
14708 # flags to be left without arguments
14709 need_version=unknown
14710
14711 case $host_os in
14712 aix3*)
14713 version_type=linux
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14715 shlibpath_var=LIBPATH
14716
14717 # AIX 3 has no versioning support, so we append a major version to the name.
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 ;;
14720
14721 aix[4-9]*)
14722 version_type=linux
14723 need_lib_prefix=no
14724 need_version=no
14725 hardcode_into_libs=yes
14726 if test "$host_cpu" = ia64; then
14727 # AIX 5 supports IA64
14728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14729 shlibpath_var=LD_LIBRARY_PATH
14730 else
14731 # With GCC up to 2.95.x, collect2 would create an import file
14732 # for dependence libraries. The import file would start with
14733 # the line `#! .'. This would cause the generated library to
14734 # depend on `.', always an invalid library. This was fixed in
14735 # development snapshots of GCC prior to 3.0.
14736 case $host_os in
14737 aix4 | aix4.[01] | aix4.[01].*)
14738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14739 echo ' yes '
14740 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14741 :
14742 else
14743 can_build_shared=no
14744 fi
14745 ;;
14746 esac
14747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14748 # soname into executable. Probably we can add versioning support to
14749 # collect2, so additional links can be useful in future.
14750 if test "$aix_use_runtimelinking" = yes; then
14751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14752 # instead of lib<name>.a to let people know that these are not
14753 # typical AIX shared libraries.
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755 else
14756 # We preserve .a as extension for shared libraries through AIX4.2
14757 # and later when we are not doing run time linking.
14758 library_names_spec='${libname}${release}.a $libname.a'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 fi
14761 shlibpath_var=LIBPATH
14762 fi
14763 ;;
14764
14765 amigaos*)
14766 case $host_cpu in
14767 powerpc)
14768 # Since July 2007 AmigaOS4 officially supports .so libraries.
14769 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 ;;
14772 m68k)
14773 library_names_spec='$libname.ixlibrary $libname.a'
14774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14775 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'
14776 ;;
14777 esac
14778 ;;
14779
14780 beos*)
14781 library_names_spec='${libname}${shared_ext}'
14782 dynamic_linker="$host_os ld.so"
14783 shlibpath_var=LIBRARY_PATH
14784 ;;
14785
14786 bsdi[45]*)
14787 version_type=linux
14788 need_version=no
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 soname_spec='${libname}${release}${shared_ext}$major'
14791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14795 # the default ld.so.conf also contains /usr/contrib/lib and
14796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14797 # libtool to hard-code these into programs
14798 ;;
14799
14800 cygwin* | mingw* | pw32* | cegcc*)
14801 version_type=windows
14802 shrext_cmds=".dll"
14803 need_version=no
14804 need_lib_prefix=no
14805
14806 case $GCC,$host_os in
14807 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14808 library_names_spec='$libname.dll.a'
14809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14810 postinstall_cmds='base_file=`basename \${file}`~
14811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14812 dldir=$destdir/`dirname \$dlpath`~
14813 test -d \$dldir || mkdir -p \$dldir~
14814 $install_prog $dir/$dlname \$dldir/$dlname~
14815 chmod a+x \$dldir/$dlname~
14816 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14817 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14818 fi'
14819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14820 dlpath=$dir/\$dldll~
14821 $RM \$dlpath'
14822 shlibpath_overrides_runpath=yes
14823
14824 case $host_os in
14825 cygwin*)
14826 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14827 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14828
14829 ;;
14830 mingw* | cegcc*)
14831 # MinGW DLLs use traditional 'lib' prefix
14832 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14833 ;;
14834 pw32*)
14835 # pw32 DLLs use 'pw' prefix rather than 'lib'
14836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14837 ;;
14838 esac
14839 ;;
14840
14841 *)
14842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14843 ;;
14844 esac
14845 dynamic_linker='Win32 ld.exe'
14846 # FIXME: first we should search . and the directory the executable is in
14847 shlibpath_var=PATH
14848 ;;
14849
14850 darwin* | rhapsody*)
14851 dynamic_linker="$host_os dyld"
14852 version_type=darwin
14853 need_lib_prefix=no
14854 need_version=no
14855 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14856 soname_spec='${libname}${release}${major}$shared_ext'
14857 shlibpath_overrides_runpath=yes
14858 shlibpath_var=DYLD_LIBRARY_PATH
14859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14860
14861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14862 ;;
14863
14864 dgux*)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 ;;
14872
14873 freebsd* | dragonfly*)
14874 # DragonFly does not have aout. When/if they implement a new
14875 # versioning mechanism, adjust this.
14876 if test -x /usr/bin/objformat; then
14877 objformat=`/usr/bin/objformat`
14878 else
14879 case $host_os in
14880 freebsd[23].*) objformat=aout ;;
14881 *) objformat=elf ;;
14882 esac
14883 fi
14884 version_type=freebsd-$objformat
14885 case $version_type in
14886 freebsd-elf*)
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14888 need_version=no
14889 need_lib_prefix=no
14890 ;;
14891 freebsd-*)
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14893 need_version=yes
14894 ;;
14895 esac
14896 shlibpath_var=LD_LIBRARY_PATH
14897 case $host_os in
14898 freebsd2.*)
14899 shlibpath_overrides_runpath=yes
14900 ;;
14901 freebsd3.[01]* | freebsdelf3.[01]*)
14902 shlibpath_overrides_runpath=yes
14903 hardcode_into_libs=yes
14904 ;;
14905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14907 shlibpath_overrides_runpath=no
14908 hardcode_into_libs=yes
14909 ;;
14910 *) # from 4.6 on, and DragonFly
14911 shlibpath_overrides_runpath=yes
14912 hardcode_into_libs=yes
14913 ;;
14914 esac
14915 ;;
14916
14917 gnu*)
14918 version_type=linux
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14922 soname_spec='${libname}${release}${shared_ext}$major'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 hardcode_into_libs=yes
14925 ;;
14926
14927 haiku*)
14928 version_type=linux
14929 need_lib_prefix=no
14930 need_version=no
14931 dynamic_linker="$host_os runtime_loader"
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LIBRARY_PATH
14935 shlibpath_overrides_runpath=yes
14936 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14937 hardcode_into_libs=yes
14938 ;;
14939
14940 hpux9* | hpux10* | hpux11*)
14941 # Give a soname corresponding to the major version so that dld.sl refuses to
14942 # link against other versions.
14943 version_type=sunos
14944 need_lib_prefix=no
14945 need_version=no
14946 case $host_cpu in
14947 ia64*)
14948 shrext_cmds='.so'
14949 hardcode_into_libs=yes
14950 dynamic_linker="$host_os dld.so"
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 if test "X$HPUX_IA64_MODE" = X32; then
14956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14957 else
14958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14959 fi
14960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14961 ;;
14962 hppa*64*)
14963 shrext_cmds='.sl'
14964 hardcode_into_libs=yes
14965 dynamic_linker="$host_os dld.sl"
14966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14972 ;;
14973 *)
14974 shrext_cmds='.sl'
14975 dynamic_linker="$host_os dld.sl"
14976 shlibpath_var=SHLIB_PATH
14977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 ;;
14981 esac
14982 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14983 postinstall_cmds='chmod 555 $lib'
14984 # or fails outright, so override atomically:
14985 install_override_mode=555
14986 ;;
14987
14988 interix[3-9]*)
14989 version_type=linux
14990 need_lib_prefix=no
14991 need_version=no
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 shlibpath_overrides_runpath=no
14997 hardcode_into_libs=yes
14998 ;;
14999
15000 irix5* | irix6* | nonstopux*)
15001 case $host_os in
15002 nonstopux*) version_type=nonstopux ;;
15003 *)
15004 if test "$lt_cv_prog_gnu_ld" = yes; then
15005 version_type=linux
15006 else
15007 version_type=irix
15008 fi ;;
15009 esac
15010 need_lib_prefix=no
15011 need_version=no
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15014 case $host_os in
15015 irix5* | nonstopux*)
15016 libsuff= shlibsuff=
15017 ;;
15018 *)
15019 case $LD in # libtool.m4 will add one of these switches to LD
15020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15021 libsuff= shlibsuff= libmagic=32-bit;;
15022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15023 libsuff=32 shlibsuff=N32 libmagic=N32;;
15024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15026 *) libsuff= shlibsuff= libmagic=never-match;;
15027 esac
15028 ;;
15029 esac
15030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15031 shlibpath_overrides_runpath=no
15032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15034 hardcode_into_libs=yes
15035 ;;
15036
15037 # No shared lib support for Linux oldld, aout, or coff.
15038 linux*oldld* | linux*aout* | linux*coff*)
15039 dynamic_linker=no
15040 ;;
15041
15042 # This must be Linux ELF.
15043 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15044 version_type=linux
15045 need_lib_prefix=no
15046 need_version=no
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 shlibpath_overrides_runpath=no
15052
15053 # Some binutils ld are patched to set DT_RUNPATH
15054 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15055 $as_echo_n "(cached) " >&6
15056 else
15057 lt_cv_shlibpath_overrides_runpath=no
15058 save_LDFLAGS=$LDFLAGS
15059 save_libdir=$libdir
15060 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15061 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15064
15065 int
15066 main ()
15067 {
15068
15069 ;
15070 return 0;
15071 }
15072 _ACEOF
15073 if ac_fn_cxx_try_link "$LINENO"; then :
15074 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15075 lt_cv_shlibpath_overrides_runpath=yes
15076 fi
15077 fi
15078 rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15080 LDFLAGS=$save_LDFLAGS
15081 libdir=$save_libdir
15082
15083 fi
15084
15085 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15086
15087 # This implies no fast_install, which is unacceptable.
15088 # Some rework will be needed to allow for fast_install
15089 # before this can be enabled.
15090 hardcode_into_libs=yes
15091
15092 # Append ld.so.conf contents to the search path
15093 if test -f /etc/ld.so.conf; then
15094 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' ' '`
15095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15096 fi
15097
15098 # We used to test for /lib/ld.so.1 and disable shared libraries on
15099 # powerpc, because MkLinux only supported shared libraries with the
15100 # GNU dynamic linker. Since this was broken with cross compilers,
15101 # most powerpc-linux boxes support dynamic linking these days and
15102 # people can always --disable-shared, the test was removed, and we
15103 # assume the GNU/Linux dynamic linker is in use.
15104 dynamic_linker='GNU/Linux ld.so'
15105 ;;
15106
15107 netbsd*)
15108 version_type=sunos
15109 need_lib_prefix=no
15110 need_version=no
15111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15114 dynamic_linker='NetBSD (a.out) ld.so'
15115 else
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15117 soname_spec='${libname}${release}${shared_ext}$major'
15118 dynamic_linker='NetBSD ld.elf_so'
15119 fi
15120 shlibpath_var=LD_LIBRARY_PATH
15121 shlibpath_overrides_runpath=yes
15122 hardcode_into_libs=yes
15123 ;;
15124
15125 newsos6)
15126 version_type=linux
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 shlibpath_var=LD_LIBRARY_PATH
15129 shlibpath_overrides_runpath=yes
15130 ;;
15131
15132 *nto* | *qnx*)
15133 version_type=qnx
15134 need_lib_prefix=no
15135 need_version=no
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 shlibpath_overrides_runpath=no
15140 hardcode_into_libs=yes
15141 dynamic_linker='ldqnx.so'
15142 ;;
15143
15144 openbsd*)
15145 version_type=sunos
15146 sys_lib_dlsearch_path_spec="/usr/lib"
15147 need_lib_prefix=no
15148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15149 case $host_os in
15150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15151 *) need_version=no ;;
15152 esac
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15157 case $host_os in
15158 openbsd2.[89] | openbsd2.[89].*)
15159 shlibpath_overrides_runpath=no
15160 ;;
15161 *)
15162 shlibpath_overrides_runpath=yes
15163 ;;
15164 esac
15165 else
15166 shlibpath_overrides_runpath=yes
15167 fi
15168 ;;
15169
15170 os2*)
15171 libname_spec='$name'
15172 shrext_cmds=".dll"
15173 need_lib_prefix=no
15174 library_names_spec='$libname${shared_ext} $libname.a'
15175 dynamic_linker='OS/2 ld.exe'
15176 shlibpath_var=LIBPATH
15177 ;;
15178
15179 osf3* | osf4* | osf5*)
15180 version_type=osf
15181 need_lib_prefix=no
15182 need_version=no
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15188 ;;
15189
15190 rdos*)
15191 dynamic_linker=no
15192 ;;
15193
15194 solaris*)
15195 version_type=linux
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=yes
15202 hardcode_into_libs=yes
15203 # ldd complains unless libraries are executable
15204 postinstall_cmds='chmod +x $lib'
15205 ;;
15206
15207 sunos4*)
15208 version_type=sunos
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=yes
15213 if test "$with_gnu_ld" = yes; then
15214 need_lib_prefix=no
15215 fi
15216 need_version=yes
15217 ;;
15218
15219 sysv4 | sysv4.3*)
15220 version_type=linux
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 case $host_vendor in
15225 sni)
15226 shlibpath_overrides_runpath=no
15227 need_lib_prefix=no
15228 runpath_var=LD_RUN_PATH
15229 ;;
15230 siemens)
15231 need_lib_prefix=no
15232 ;;
15233 motorola)
15234 need_lib_prefix=no
15235 need_version=no
15236 shlibpath_overrides_runpath=no
15237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15238 ;;
15239 esac
15240 ;;
15241
15242 sysv4*MP*)
15243 if test -d /usr/nec ;then
15244 version_type=linux
15245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15246 soname_spec='$libname${shared_ext}.$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 fi
15249 ;;
15250
15251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15252 version_type=freebsd-elf
15253 need_lib_prefix=no
15254 need_version=no
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 shlibpath_var=LD_LIBRARY_PATH
15258 shlibpath_overrides_runpath=yes
15259 hardcode_into_libs=yes
15260 if test "$with_gnu_ld" = yes; then
15261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15262 else
15263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15264 case $host_os in
15265 sco3.2v5*)
15266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15267 ;;
15268 esac
15269 fi
15270 sys_lib_dlsearch_path_spec='/usr/lib'
15271 ;;
15272
15273 tpf*)
15274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=no
15281 hardcode_into_libs=yes
15282 ;;
15283
15284 uts4*)
15285 version_type=linux
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 ;;
15290
15291 *)
15292 dynamic_linker=no
15293 ;;
15294 esac
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15296 $as_echo "$dynamic_linker" >&6; }
15297 test "$dynamic_linker" = no && can_build_shared=no
15298
15299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15300 if test "$GCC" = yes; then
15301 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15302 fi
15303
15304 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15305 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15306 fi
15307 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15308 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15309 fi
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
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15349 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15350 hardcode_action_CXX=
15351 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15352 test -n "$runpath_var_CXX" ||
15353 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15354
15355 # We can hardcode non-existent directories.
15356 if test "$hardcode_direct_CXX" != no &&
15357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15358 # have to relink, otherwise we might link with an installed library
15359 # when we should be linking with a yet-to-be-installed one
15360 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15361 test "$hardcode_minus_L_CXX" != no; then
15362 # Linking always hardcodes the temporary library directory.
15363 hardcode_action_CXX=relink
15364 else
15365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15366 hardcode_action_CXX=immediate
15367 fi
15368 else
15369 # We cannot hardcode anything, or else we can only hardcode existing
15370 # directories.
15371 hardcode_action_CXX=unsupported
15372 fi
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15374 $as_echo "$hardcode_action_CXX" >&6; }
15375
15376 if test "$hardcode_action_CXX" = relink ||
15377 test "$inherit_rpath_CXX" = yes; then
15378 # Fast installation is not supported
15379 enable_fast_install=no
15380 elif test "$shlibpath_overrides_runpath" = yes ||
15381 test "$enable_shared" = no; then
15382 # Fast installation is not necessary
15383 enable_fast_install=needless
15384 fi
15385
15386
15387
15388
15389
15390
15391
15392 fi # test -n "$compiler"
15393
15394 CC=$lt_save_CC
15395 LDCXX=$LD
15396 LD=$lt_save_LD
15397 GCC=$lt_save_GCC
15398 with_gnu_ld=$lt_save_with_gnu_ld
15399 lt_cv_path_LDCXX=$lt_cv_path_LD
15400 lt_cv_path_LD=$lt_save_path_LD
15401 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15402 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15403 fi # test "$_lt_caught_CXX_error" != yes
15404
15405 ac_ext=c
15406 ac_cpp='$CPP $CPPFLAGS'
15407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423 ac_config_commands="$ac_config_commands libtool"
15424
15425
15426
15427
15428 # Only expand once:
15429
15430
15431
15432
15433
15434 case $host in
15435 *-cygwin* | *-mingw*)
15436 # 'host' will be top-level target in the case of a target lib,
15437 # we must compare to with_cross_host to decide if this is a native
15438 # or cross-compiler and select where to install dlls appropriately.
15439 if test -n "$with_cross_host" &&
15440 test x"$with_cross_host" != x"no"; then
15441 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15442 else
15443 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15444 fi
15445 ;;
15446 *)
15447 lt_host_flags=
15448 ;;
15449 esac
15450
15451
15452
15453
15454
15455
15456 # For libtool versioning info, format is CURRENT:REVISION:AGE
15457 libtool_VERSION=1:0:0
15458
15459
15460 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15461
15462 # Add CET specific flags if Intel CET is enabled.
15463 # Check whether --enable-cet was given.
15464 if test "${enable_cet+set}" = set; then :
15465 enableval=$enable_cet;
15466 case "$enableval" in
15467 yes|no|default) ;;
15468 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
15469 esac
15470
15471 else
15472 enable_cet=default
15473 fi
15474
15475
15476 case "$host" in
15477 i[34567]86-*-linux* | x86_64-*-linux*)
15478 case "$enable_cet" in
15479 default)
15480 # Check if assembler supports CET.
15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15482 /* end confdefs.h. */
15483
15484 int
15485 main ()
15486 {
15487 asm ("setssbsy");
15488 ;
15489 return 0;
15490 }
15491 _ACEOF
15492 if ac_fn_c_try_compile "$LINENO"; then :
15493 enable_cet=yes
15494 else
15495 enable_cet=no
15496 fi
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 ;;
15499 yes)
15500 # Check if assembler supports CET.
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503
15504 int
15505 main ()
15506 {
15507 asm ("setssbsy");
15508 ;
15509 return 0;
15510 }
15511 _ACEOF
15512 if ac_fn_c_try_compile "$LINENO"; then :
15513
15514 else
15515 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
15516 fi
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 ;;
15519 esac
15520 ;;
15521 *)
15522 enable_cet=no
15523 ;;
15524 esac
15525 if test x$enable_cet = xyes; then
15526 CET_FLAGS="-fcf-protection -mcet"
15527 fi
15528
15529 XCFLAGS="$XCFLAGS $CET_FLAGS"
15530
15531
15532
15533 if test "${multilib}" = "yes"; then
15534 multilib_arg="--enable-multilib"
15535 else
15536 multilib_arg=
15537 fi
15538
15539 ac_config_files="$ac_config_files Makefile"
15540
15541
15542 if test "x$VTV_SUPPORTED" = "xyes"; then
15543 ac_config_files="$ac_config_files testsuite/Makefile"
15544
15545 fi
15546
15547 case "$target_os" in
15548 cygwin*|mingw32*)
15549 vtv_cygmin="yes"
15550 ;;
15551 *)
15552 vtv_cygmin="no"
15553 ;;
15554 esac
15555
15556 if test $vtv_cygmin = yes; then
15557 VTV_CYGMIN_TRUE=
15558 VTV_CYGMIN_FALSE='#'
15559 else
15560 VTV_CYGMIN_TRUE='#'
15561 VTV_CYGMIN_FALSE=
15562 fi
15563
15564
15565 for ac_func in _obstack_begin
15566 do :
15567 ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
15568 if test "x$ac_cv_func__obstack_begin" = x""yes; then :
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE__OBSTACK_BEGIN 1
15571 _ACEOF
15572
15573 fi
15574 done
15575
15576 if test $ac_cv_func__obstack_begin = no; then
15577 VTV_NO_OBSTACK_TRUE=
15578 VTV_NO_OBSTACK_FALSE='#'
15579 else
15580 VTV_NO_OBSTACK_TRUE='#'
15581 VTV_NO_OBSTACK_FALSE=
15582 fi
15583
15584
15585 # Determine what GCC version number to use in filesystem paths.
15586
15587 get_gcc_base_ver="cat"
15588
15589 # Check whether --with-gcc-major-version-only was given.
15590 if test "${with_gcc_major_version_only+set}" = set; then :
15591 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15592 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
15593 fi
15594
15595 fi
15596
15597
15598
15599
15600 cat >confcache <<\_ACEOF
15601 # This file is a shell script that caches the results of configure
15602 # tests run on this system so they can be shared between configure
15603 # scripts and configure runs, see configure's option --config-cache.
15604 # It is not useful on other systems. If it contains results you don't
15605 # want to keep, you may remove or edit it.
15606 #
15607 # config.status only pays attention to the cache file if you give it
15608 # the --recheck option to rerun configure.
15609 #
15610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15612 # following values.
15613
15614 _ACEOF
15615
15616 # The following way of writing the cache mishandles newlines in values,
15617 # but we know of no workaround that is simple, portable, and efficient.
15618 # So, we kill variables containing newlines.
15619 # Ultrix sh set writes to stderr and can't be redirected directly,
15620 # and sets the high bit in the cache file unless we assign to the vars.
15621 (
15622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15623 eval ac_val=\$$ac_var
15624 case $ac_val in #(
15625 *${as_nl}*)
15626 case $ac_var in #(
15627 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15628 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15629 esac
15630 case $ac_var in #(
15631 _ | IFS | as_nl) ;; #(
15632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15633 *) { eval $ac_var=; unset $ac_var;} ;;
15634 esac ;;
15635 esac
15636 done
15637
15638 (set) 2>&1 |
15639 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15640 *${as_nl}ac_space=\ *)
15641 # `set' does not quote correctly, so add quotes: double-quote
15642 # substitution turns \\\\ into \\, and sed turns \\ into \.
15643 sed -n \
15644 "s/'/'\\\\''/g;
15645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15646 ;; #(
15647 *)
15648 # `set' quotes correctly as required by POSIX, so do not add quotes.
15649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15650 ;;
15651 esac |
15652 sort
15653 ) |
15654 sed '
15655 /^ac_cv_env_/b end
15656 t clear
15657 :clear
15658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15659 t end
15660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15661 :end' >>confcache
15662 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15663 if test -w "$cache_file"; then
15664 test "x$cache_file" != "x/dev/null" &&
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15666 $as_echo "$as_me: updating cache $cache_file" >&6;}
15667 cat confcache >$cache_file
15668 else
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15670 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15671 fi
15672 fi
15673 rm -f confcache
15674
15675 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15676 # Let make expand exec_prefix.
15677 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15678
15679 # Transform confdefs.h into DEFS.
15680 # Protect against shell expansion while executing Makefile rules.
15681 # Protect against Makefile macro expansion.
15682 #
15683 # If the first sed substitution is executed (which looks for macros that
15684 # take arguments), then branch to the quote section. Otherwise,
15685 # look for a macro that doesn't take arguments.
15686 ac_script='
15687 :mline
15688 /\\$/{
15689 N
15690 s,\\\n,,
15691 b mline
15692 }
15693 t clear
15694 :clear
15695 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15696 t quote
15697 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15698 t quote
15699 b any
15700 :quote
15701 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15702 s/\[/\\&/g
15703 s/\]/\\&/g
15704 s/\$/$$/g
15705 H
15706 :any
15707 ${
15708 g
15709 s/^\n//
15710 s/\n/ /g
15711 p
15712 }
15713 '
15714 DEFS=`sed -n "$ac_script" confdefs.h`
15715
15716
15717 ac_libobjs=
15718 ac_ltlibobjs=
15719 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15720 # 1. Remove the extension, and $U if already installed.
15721 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15722 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15723 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15724 # will be set to the directory where LIBOBJS objects are built.
15725 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15726 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15727 done
15728 LIBOBJS=$ac_libobjs
15729
15730 LTLIBOBJS=$ac_ltlibobjs
15731
15732
15733 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
15734 as_fn_error "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
15735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15736 fi
15737 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15738 as_fn_error "conditional \"AMDEP\" was never defined.
15739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15740 fi
15741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15742 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15744 fi
15745 if test -n "$EXEEXT"; then
15746 am__EXEEXT_TRUE=
15747 am__EXEEXT_FALSE='#'
15748 else
15749 am__EXEEXT_TRUE='#'
15750 am__EXEEXT_FALSE=
15751 fi
15752
15753 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15754 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 fi
15757 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15758 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760 fi
15761 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
15762 as_fn_error "conditional \"VTV_CYGMIN\" was never defined.
15763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15764 fi
15765 if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
15766 as_fn_error "conditional \"VTV_NO_OBSTACK\" was never defined.
15767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15768 fi
15769
15770 : ${CONFIG_STATUS=./config.status}
15771 ac_write_fail=0
15772 ac_clean_files_save=$ac_clean_files
15773 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15775 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15776 as_write_fail=0
15777 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15778 #! $SHELL
15779 # Generated by $as_me.
15780 # Run this file to recreate the current configuration.
15781 # Compiler output produced by configure, useful for debugging
15782 # configure, is in config.log if it exists.
15783
15784 debug=false
15785 ac_cs_recheck=false
15786 ac_cs_silent=false
15787
15788 SHELL=\${CONFIG_SHELL-$SHELL}
15789 export SHELL
15790 _ASEOF
15791 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15792 ## -------------------- ##
15793 ## M4sh Initialization. ##
15794 ## -------------------- ##
15795
15796 # Be more Bourne compatible
15797 DUALCASE=1; export DUALCASE # for MKS sh
15798 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15799 emulate sh
15800 NULLCMD=:
15801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15802 # is contrary to our usage. Disable this feature.
15803 alias -g '${1+"$@"}'='"$@"'
15804 setopt NO_GLOB_SUBST
15805 else
15806 case `(set -o) 2>/dev/null` in #(
15807 *posix*) :
15808 set -o posix ;; #(
15809 *) :
15810 ;;
15811 esac
15812 fi
15813
15814
15815 as_nl='
15816 '
15817 export as_nl
15818 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15819 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15820 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15821 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15822 # Prefer a ksh shell builtin over an external printf program on Solaris,
15823 # but without wasting forks for bash or zsh.
15824 if test -z "$BASH_VERSION$ZSH_VERSION" \
15825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15826 as_echo='print -r --'
15827 as_echo_n='print -rn --'
15828 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15829 as_echo='printf %s\n'
15830 as_echo_n='printf %s'
15831 else
15832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15833 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15834 as_echo_n='/usr/ucb/echo -n'
15835 else
15836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15837 as_echo_n_body='eval
15838 arg=$1;
15839 case $arg in #(
15840 *"$as_nl"*)
15841 expr "X$arg" : "X\\(.*\\)$as_nl";
15842 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15843 esac;
15844 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15845 '
15846 export as_echo_n_body
15847 as_echo_n='sh -c $as_echo_n_body as_echo'
15848 fi
15849 export as_echo_body
15850 as_echo='sh -c $as_echo_body as_echo'
15851 fi
15852
15853 # The user is always right.
15854 if test "${PATH_SEPARATOR+set}" != set; then
15855 PATH_SEPARATOR=:
15856 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15857 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15858 PATH_SEPARATOR=';'
15859 }
15860 fi
15861
15862
15863 # IFS
15864 # We need space, tab and new line, in precisely that order. Quoting is
15865 # there to prevent editors from complaining about space-tab.
15866 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15867 # splitting by setting IFS to empty value.)
15868 IFS=" "" $as_nl"
15869
15870 # Find who we are. Look in the path if we contain no directory separator.
15871 case $0 in #((
15872 *[\\/]* ) as_myself=$0 ;;
15873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15874 for as_dir in $PATH
15875 do
15876 IFS=$as_save_IFS
15877 test -z "$as_dir" && as_dir=.
15878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15879 done
15880 IFS=$as_save_IFS
15881
15882 ;;
15883 esac
15884 # We did not find ourselves, most probably we were run as `sh COMMAND'
15885 # in which case we are not to be found in the path.
15886 if test "x$as_myself" = x; then
15887 as_myself=$0
15888 fi
15889 if test ! -f "$as_myself"; then
15890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15891 exit 1
15892 fi
15893
15894 # Unset variables that we do not need and which cause bugs (e.g. in
15895 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15896 # suppresses any "Segmentation fault" message there. '((' could
15897 # trigger a bug in pdksh 5.2.14.
15898 for as_var in BASH_ENV ENV MAIL MAILPATH
15899 do eval test x\${$as_var+set} = xset \
15900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15901 done
15902 PS1='$ '
15903 PS2='> '
15904 PS4='+ '
15905
15906 # NLS nuisances.
15907 LC_ALL=C
15908 export LC_ALL
15909 LANGUAGE=C
15910 export LANGUAGE
15911
15912 # CDPATH.
15913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15914
15915
15916 # as_fn_error ERROR [LINENO LOG_FD]
15917 # ---------------------------------
15918 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15919 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15920 # script with status $?, using 1 if that was 0.
15921 as_fn_error ()
15922 {
15923 as_status=$?; test $as_status -eq 0 && as_status=1
15924 if test "$3"; then
15925 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15927 fi
15928 $as_echo "$as_me: error: $1" >&2
15929 as_fn_exit $as_status
15930 } # as_fn_error
15931
15932
15933 # as_fn_set_status STATUS
15934 # -----------------------
15935 # Set $? to STATUS, without forking.
15936 as_fn_set_status ()
15937 {
15938 return $1
15939 } # as_fn_set_status
15940
15941 # as_fn_exit STATUS
15942 # -----------------
15943 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15944 as_fn_exit ()
15945 {
15946 set +e
15947 as_fn_set_status $1
15948 exit $1
15949 } # as_fn_exit
15950
15951 # as_fn_unset VAR
15952 # ---------------
15953 # Portably unset VAR.
15954 as_fn_unset ()
15955 {
15956 { eval $1=; unset $1;}
15957 }
15958 as_unset=as_fn_unset
15959 # as_fn_append VAR VALUE
15960 # ----------------------
15961 # Append the text in VALUE to the end of the definition contained in VAR. Take
15962 # advantage of any shell optimizations that allow amortized linear growth over
15963 # repeated appends, instead of the typical quadratic growth present in naive
15964 # implementations.
15965 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15966 eval 'as_fn_append ()
15967 {
15968 eval $1+=\$2
15969 }'
15970 else
15971 as_fn_append ()
15972 {
15973 eval $1=\$$1\$2
15974 }
15975 fi # as_fn_append
15976
15977 # as_fn_arith ARG...
15978 # ------------------
15979 # Perform arithmetic evaluation on the ARGs, and store the result in the
15980 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15981 # must be portable across $(()) and expr.
15982 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15983 eval 'as_fn_arith ()
15984 {
15985 as_val=$(( $* ))
15986 }'
15987 else
15988 as_fn_arith ()
15989 {
15990 as_val=`expr "$@" || test $? -eq 1`
15991 }
15992 fi # as_fn_arith
15993
15994
15995 if expr a : '\(a\)' >/dev/null 2>&1 &&
15996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15997 as_expr=expr
15998 else
15999 as_expr=false
16000 fi
16001
16002 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16003 as_basename=basename
16004 else
16005 as_basename=false
16006 fi
16007
16008 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16009 as_dirname=dirname
16010 else
16011 as_dirname=false
16012 fi
16013
16014 as_me=`$as_basename -- "$0" ||
16015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16016 X"$0" : 'X\(//\)$' \| \
16017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16018 $as_echo X/"$0" |
16019 sed '/^.*\/\([^/][^/]*\)\/*$/{
16020 s//\1/
16021 q
16022 }
16023 /^X\/\(\/\/\)$/{
16024 s//\1/
16025 q
16026 }
16027 /^X\/\(\/\).*/{
16028 s//\1/
16029 q
16030 }
16031 s/.*/./; q'`
16032
16033 # Avoid depending upon Character Ranges.
16034 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16035 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16036 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16037 as_cr_digits='0123456789'
16038 as_cr_alnum=$as_cr_Letters$as_cr_digits
16039
16040 ECHO_C= ECHO_N= ECHO_T=
16041 case `echo -n x` in #(((((
16042 -n*)
16043 case `echo 'xy\c'` in
16044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16045 xy) ECHO_C='\c';;
16046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16047 ECHO_T=' ';;
16048 esac;;
16049 *)
16050 ECHO_N='-n';;
16051 esac
16052
16053 rm -f conf$$ conf$$.exe conf$$.file
16054 if test -d conf$$.dir; then
16055 rm -f conf$$.dir/conf$$.file
16056 else
16057 rm -f conf$$.dir
16058 mkdir conf$$.dir 2>/dev/null
16059 fi
16060 if (echo >conf$$.file) 2>/dev/null; then
16061 if ln -s conf$$.file conf$$ 2>/dev/null; then
16062 as_ln_s='ln -s'
16063 # ... but there are two gotchas:
16064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16066 # In both cases, we have to default to `cp -p'.
16067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16068 as_ln_s='cp -p'
16069 elif ln conf$$.file conf$$ 2>/dev/null; then
16070 as_ln_s=ln
16071 else
16072 as_ln_s='cp -p'
16073 fi
16074 else
16075 as_ln_s='cp -p'
16076 fi
16077 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16078 rmdir conf$$.dir 2>/dev/null
16079
16080
16081 # as_fn_mkdir_p
16082 # -------------
16083 # Create "$as_dir" as a directory, including parents if necessary.
16084 as_fn_mkdir_p ()
16085 {
16086
16087 case $as_dir in #(
16088 -*) as_dir=./$as_dir;;
16089 esac
16090 test -d "$as_dir" || eval $as_mkdir_p || {
16091 as_dirs=
16092 while :; do
16093 case $as_dir in #(
16094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16095 *) as_qdir=$as_dir;;
16096 esac
16097 as_dirs="'$as_qdir' $as_dirs"
16098 as_dir=`$as_dirname -- "$as_dir" ||
16099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16100 X"$as_dir" : 'X\(//\)[^/]' \| \
16101 X"$as_dir" : 'X\(//\)$' \| \
16102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16103 $as_echo X"$as_dir" |
16104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\/\)[^/].*/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\/\)$/{
16113 s//\1/
16114 q
16115 }
16116 /^X\(\/\).*/{
16117 s//\1/
16118 q
16119 }
16120 s/.*/./; q'`
16121 test -d "$as_dir" && break
16122 done
16123 test -z "$as_dirs" || eval "mkdir $as_dirs"
16124 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16125
16126
16127 } # as_fn_mkdir_p
16128 if mkdir -p . 2>/dev/null; then
16129 as_mkdir_p='mkdir -p "$as_dir"'
16130 else
16131 test -d ./-p && rmdir ./-p
16132 as_mkdir_p=false
16133 fi
16134
16135 if test -x / >/dev/null 2>&1; then
16136 as_test_x='test -x'
16137 else
16138 if ls -dL / >/dev/null 2>&1; then
16139 as_ls_L_option=L
16140 else
16141 as_ls_L_option=
16142 fi
16143 as_test_x='
16144 eval sh -c '\''
16145 if test -d "$1"; then
16146 test -d "$1/.";
16147 else
16148 case $1 in #(
16149 -*)set "./$1";;
16150 esac;
16151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16152 ???[sx]*):;;*)false;;esac;fi
16153 '\'' sh
16154 '
16155 fi
16156 as_executable_p=$as_test_x
16157
16158 # Sed expression to map a string onto a valid CPP name.
16159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16160
16161 # Sed expression to map a string onto a valid variable name.
16162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16163
16164
16165 exec 6>&1
16166 ## ----------------------------------- ##
16167 ## Main body of $CONFIG_STATUS script. ##
16168 ## ----------------------------------- ##
16169 _ASEOF
16170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16171
16172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16173 # Save the log message, to keep $0 and so on meaningful, and to
16174 # report actual input values of CONFIG_FILES etc. instead of their
16175 # values after options handling.
16176 ac_log="
16177 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16178 generated by GNU Autoconf 2.64. Invocation command line was
16179
16180 CONFIG_FILES = $CONFIG_FILES
16181 CONFIG_HEADERS = $CONFIG_HEADERS
16182 CONFIG_LINKS = $CONFIG_LINKS
16183 CONFIG_COMMANDS = $CONFIG_COMMANDS
16184 $ $0 $@
16185
16186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16187 "
16188
16189 _ACEOF
16190
16191 case $ac_config_files in *"
16192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16193 esac
16194
16195
16196
16197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16198 # Files that config.status was made for.
16199 config_files="$ac_config_files"
16200 config_commands="$ac_config_commands"
16201
16202 _ACEOF
16203
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 ac_cs_usage="\
16206 \`$as_me' instantiates files and other configuration actions
16207 from templates according to the current configuration. Unless the files
16208 and actions are specified as TAGs, all are instantiated by default.
16209
16210 Usage: $0 [OPTION]... [TAG]...
16211
16212 -h, --help print this help, then exit
16213 -V, --version print version number and configuration settings, then exit
16214 -q, --quiet, --silent
16215 do not print progress messages
16216 -d, --debug don't remove temporary files
16217 --recheck update $as_me by reconfiguring in the same conditions
16218 --file=FILE[:TEMPLATE]
16219 instantiate the configuration file FILE
16220
16221 Configuration files:
16222 $config_files
16223
16224 Configuration commands:
16225 $config_commands
16226
16227 Report bugs to the package provider.
16228 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16229 General help using GNU software: <http://www.gnu.org/gethelp/>."
16230
16231 _ACEOF
16232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16233 ac_cs_version="\\
16234 GNU Vtable Verification Runtime Library config.status 1.0
16235 configured by $0, generated by GNU Autoconf 2.64,
16236 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16237
16238 Copyright (C) 2009 Free Software Foundation, Inc.
16239 This config.status script is free software; the Free Software Foundation
16240 gives unlimited permission to copy, distribute and modify it."
16241
16242 ac_pwd='$ac_pwd'
16243 srcdir='$srcdir'
16244 INSTALL='$INSTALL'
16245 MKDIR_P='$MKDIR_P'
16246 AWK='$AWK'
16247 test -n "\$AWK" || AWK=awk
16248 _ACEOF
16249
16250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16251 # The default lists apply if the user does not specify any file.
16252 ac_need_defaults=:
16253 while test $# != 0
16254 do
16255 case $1 in
16256 --*=*)
16257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16258 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16259 ac_shift=:
16260 ;;
16261 *)
16262 ac_option=$1
16263 ac_optarg=$2
16264 ac_shift=shift
16265 ;;
16266 esac
16267
16268 case $ac_option in
16269 # Handling of the options.
16270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16271 ac_cs_recheck=: ;;
16272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16273 $as_echo "$ac_cs_version"; exit ;;
16274 --debug | --debu | --deb | --de | --d | -d )
16275 debug=: ;;
16276 --file | --fil | --fi | --f )
16277 $ac_shift
16278 case $ac_optarg in
16279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16280 esac
16281 as_fn_append CONFIG_FILES " '$ac_optarg'"
16282 ac_need_defaults=false;;
16283 --he | --h | --help | --hel | -h )
16284 $as_echo "$ac_cs_usage"; exit ;;
16285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16286 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16287 ac_cs_silent=: ;;
16288
16289 # This is an error.
16290 -*) as_fn_error "unrecognized option: \`$1'
16291 Try \`$0 --help' for more information." ;;
16292
16293 *) as_fn_append ac_config_targets " $1"
16294 ac_need_defaults=false ;;
16295
16296 esac
16297 shift
16298 done
16299
16300 ac_configure_extra_args=
16301
16302 if $ac_cs_silent; then
16303 exec 6>/dev/null
16304 ac_configure_extra_args="$ac_configure_extra_args --silent"
16305 fi
16306
16307 _ACEOF
16308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16309 if \$ac_cs_recheck; then
16310 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16311 shift
16312 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16313 CONFIG_SHELL='$SHELL'
16314 export CONFIG_SHELL
16315 exec "\$@"
16316 fi
16317
16318 _ACEOF
16319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320 exec 5>>config.log
16321 {
16322 echo
16323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16324 ## Running $as_me. ##
16325 _ASBOX
16326 $as_echo "$ac_log"
16327 } >&5
16328
16329 _ACEOF
16330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331 #
16332 # INIT-COMMANDS
16333 #
16334
16335 srcdir="$srcdir"
16336 host="$host"
16337 target="$target"
16338 with_multisubdir="$with_multisubdir"
16339 with_multisrctop="$with_multisrctop"
16340 with_target_subdir="$with_target_subdir"
16341 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16342 multi_basedir="$multi_basedir"
16343 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16344 CC="$CC"
16345 CXX="$CXX"
16346 GFORTRAN="$GFORTRAN"
16347 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16348
16349
16350 # The HP-UX ksh and POSIX shell print the target directory to stdout
16351 # if CDPATH is set.
16352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16353
16354 sed_quote_subst='$sed_quote_subst'
16355 double_quote_subst='$double_quote_subst'
16356 delay_variable_subst='$delay_variable_subst'
16357 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16358 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16359 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16360 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16361 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16362 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16363 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16364 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16365 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16366 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16367 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16368 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16369 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16370 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16371 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16372 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16373 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16374 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16375 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16376 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16377 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16378 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16379 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16380 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16381 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16382 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16383 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16384 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16385 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16386 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16387 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16388 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16389 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16390 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16391 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16392 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16393 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16394 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16395 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16396 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16397 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16398 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16399 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16400 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16401 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16402 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16403 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16404 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16405 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"`'
16406 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16407 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16408 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16409 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16410 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16411 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16412 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16413 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16414 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16415 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16416 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16417 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16418 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16419 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16420 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16421 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16422 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16423 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16424 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16425 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16426 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16427 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16428 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16429 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16430 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16431 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16432 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16433 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16434 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16435 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16436 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16437 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16438 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16439 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16440 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16441 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16442 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16443 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16444 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16445 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16446 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16447 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16448 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16449 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16450 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16451 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16452 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16453 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16454 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16455 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16456 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16457 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16458 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16459 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16460 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16461 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16462 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16463 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16464 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16465 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16466 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16467 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16468 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16469 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16470 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16471 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16472 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16473 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16474 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16475 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16476 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16477 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16478 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16479 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16480 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16481 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16482 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16483 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16484 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16485 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16486 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16487 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16488 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16489 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16490 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16491 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16492 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16493 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16494 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16495 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16496 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16497 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16498 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16499 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16500 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16501 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16502 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16503 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16504 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16505 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16506 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16507 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16508 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16509 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16510 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16511 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16512 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16513 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16514 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16515 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16516 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16517 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16518 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16519 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16520 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16521 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16522 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16523 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16524 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16525 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16526 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16527 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16528 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16529 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16530 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16531 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16532
16533 LTCC='$LTCC'
16534 LTCFLAGS='$LTCFLAGS'
16535 compiler='$compiler_DEFAULT'
16536
16537 # A function that is used when there is no print builtin or printf.
16538 func_fallback_echo ()
16539 {
16540 eval 'cat <<_LTECHO_EOF
16541 \$1
16542 _LTECHO_EOF'
16543 }
16544
16545 # Quote evaled strings.
16546 for var in SHELL \
16547 ECHO \
16548 SED \
16549 GREP \
16550 EGREP \
16551 FGREP \
16552 LD \
16553 NM \
16554 LN_S \
16555 lt_SP2NL \
16556 lt_NL2SP \
16557 reload_flag \
16558 OBJDUMP \
16559 deplibs_check_method \
16560 file_magic_cmd \
16561 AR \
16562 AR_FLAGS \
16563 STRIP \
16564 RANLIB \
16565 CC \
16566 CFLAGS \
16567 compiler \
16568 lt_cv_sys_global_symbol_pipe \
16569 lt_cv_sys_global_symbol_to_cdecl \
16570 lt_cv_sys_global_symbol_to_c_name_address \
16571 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16572 lt_prog_compiler_no_builtin_flag \
16573 lt_prog_compiler_wl \
16574 lt_prog_compiler_pic \
16575 lt_prog_compiler_static \
16576 lt_cv_prog_compiler_c_o \
16577 need_locks \
16578 DSYMUTIL \
16579 NMEDIT \
16580 LIPO \
16581 OTOOL \
16582 OTOOL64 \
16583 shrext_cmds \
16584 export_dynamic_flag_spec \
16585 whole_archive_flag_spec \
16586 compiler_needs_object \
16587 with_gnu_ld \
16588 allow_undefined_flag \
16589 no_undefined_flag \
16590 hardcode_libdir_flag_spec \
16591 hardcode_libdir_flag_spec_ld \
16592 hardcode_libdir_separator \
16593 fix_srcfile_path \
16594 exclude_expsyms \
16595 include_expsyms \
16596 file_list_spec \
16597 variables_saved_for_relink \
16598 libname_spec \
16599 library_names_spec \
16600 soname_spec \
16601 install_override_mode \
16602 finish_eval \
16603 old_striplib \
16604 striplib \
16605 compiler_lib_search_dirs \
16606 predep_objects \
16607 postdep_objects \
16608 predeps \
16609 postdeps \
16610 compiler_lib_search_path \
16611 LD_CXX \
16612 reload_flag_CXX \
16613 compiler_CXX \
16614 lt_prog_compiler_no_builtin_flag_CXX \
16615 lt_prog_compiler_wl_CXX \
16616 lt_prog_compiler_pic_CXX \
16617 lt_prog_compiler_static_CXX \
16618 lt_cv_prog_compiler_c_o_CXX \
16619 export_dynamic_flag_spec_CXX \
16620 whole_archive_flag_spec_CXX \
16621 compiler_needs_object_CXX \
16622 with_gnu_ld_CXX \
16623 allow_undefined_flag_CXX \
16624 no_undefined_flag_CXX \
16625 hardcode_libdir_flag_spec_CXX \
16626 hardcode_libdir_flag_spec_ld_CXX \
16627 hardcode_libdir_separator_CXX \
16628 fix_srcfile_path_CXX \
16629 exclude_expsyms_CXX \
16630 include_expsyms_CXX \
16631 file_list_spec_CXX \
16632 compiler_lib_search_dirs_CXX \
16633 predep_objects_CXX \
16634 postdep_objects_CXX \
16635 predeps_CXX \
16636 postdeps_CXX \
16637 compiler_lib_search_path_CXX; do
16638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16639 *[\\\\\\\`\\"\\\$]*)
16640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16641 ;;
16642 *)
16643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16644 ;;
16645 esac
16646 done
16647
16648 # Double-quote double-evaled strings.
16649 for var in reload_cmds \
16650 old_postinstall_cmds \
16651 old_postuninstall_cmds \
16652 old_archive_cmds \
16653 extract_expsyms_cmds \
16654 old_archive_from_new_cmds \
16655 old_archive_from_expsyms_cmds \
16656 archive_cmds \
16657 archive_expsym_cmds \
16658 module_cmds \
16659 module_expsym_cmds \
16660 export_symbols_cmds \
16661 prelink_cmds \
16662 postinstall_cmds \
16663 postuninstall_cmds \
16664 finish_cmds \
16665 sys_lib_search_path_spec \
16666 sys_lib_dlsearch_path_spec \
16667 reload_cmds_CXX \
16668 old_archive_cmds_CXX \
16669 old_archive_from_new_cmds_CXX \
16670 old_archive_from_expsyms_cmds_CXX \
16671 archive_cmds_CXX \
16672 archive_expsym_cmds_CXX \
16673 module_cmds_CXX \
16674 module_expsym_cmds_CXX \
16675 export_symbols_cmds_CXX \
16676 prelink_cmds_CXX; do
16677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16678 *[\\\\\\\`\\"\\\$]*)
16679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16680 ;;
16681 *)
16682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16683 ;;
16684 esac
16685 done
16686
16687 ac_aux_dir='$ac_aux_dir'
16688 xsi_shell='$xsi_shell'
16689 lt_shell_append='$lt_shell_append'
16690
16691 # See if we are running on zsh, and set the options which allow our
16692 # commands through without removal of \ escapes INIT.
16693 if test -n "\${ZSH_VERSION+set}" ; then
16694 setopt NO_GLOB_SUBST
16695 fi
16696
16697
16698 PACKAGE='$PACKAGE'
16699 VERSION='$VERSION'
16700 TIMESTAMP='$TIMESTAMP'
16701 RM='$RM'
16702 ofile='$ofile'
16703
16704
16705
16706
16707
16708
16709 _ACEOF
16710
16711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16712
16713 # Handling of arguments.
16714 for ac_config_target in $ac_config_targets
16715 do
16716 case $ac_config_target in
16717 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16718 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16719 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16720 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16721 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16722
16723 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16724 esac
16725 done
16726
16727
16728 # If the user did not use the arguments to specify the items to instantiate,
16729 # then the envvar interface is used. Set only those that are not.
16730 # We use the long form for the default assignment because of an extremely
16731 # bizarre bug on SunOS 4.1.3.
16732 if $ac_need_defaults; then
16733 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16735 fi
16736
16737 # Have a temporary directory for convenience. Make it in the build tree
16738 # simply because there is no reason against having it here, and in addition,
16739 # creating and moving files from /tmp can sometimes cause problems.
16740 # Hook for its removal unless debugging.
16741 # Note that there is a small window in which the directory will not be cleaned:
16742 # after its creation but before its name has been assigned to `$tmp'.
16743 $debug ||
16744 {
16745 tmp=
16746 trap 'exit_status=$?
16747 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16748 ' 0
16749 trap 'as_fn_exit 1' 1 2 13 15
16750 }
16751 # Create a (secure) tmp directory for tmp files.
16752
16753 {
16754 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16755 test -n "$tmp" && test -d "$tmp"
16756 } ||
16757 {
16758 tmp=./conf$$-$RANDOM
16759 (umask 077 && mkdir "$tmp")
16760 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16761
16762 # Set up the scripts for CONFIG_FILES section.
16763 # No need to generate them if there are no CONFIG_FILES.
16764 # This happens for instance with `./config.status config.h'.
16765 if test -n "$CONFIG_FILES"; then
16766
16767
16768 ac_cr=`echo X | tr X '\015'`
16769 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16770 # But we know of no other shell where ac_cr would be empty at this
16771 # point, so we can use a bashism as a fallback.
16772 if test "x$ac_cr" = x; then
16773 eval ac_cr=\$\'\\r\'
16774 fi
16775 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16776 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16777 ac_cs_awk_cr='\r'
16778 else
16779 ac_cs_awk_cr=$ac_cr
16780 fi
16781
16782 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16783 _ACEOF
16784
16785
16786 {
16787 echo "cat >conf$$subs.awk <<_ACEOF" &&
16788 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16789 echo "_ACEOF"
16790 } >conf$$subs.sh ||
16791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16792 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16793 ac_delim='%!_!# '
16794 for ac_last_try in false false false false false :; do
16795 . ./conf$$subs.sh ||
16796 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16797
16798 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16799 if test $ac_delim_n = $ac_delim_num; then
16800 break
16801 elif $ac_last_try; then
16802 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16803 else
16804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16805 fi
16806 done
16807 rm -f conf$$subs.sh
16808
16809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16810 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16811 _ACEOF
16812 sed -n '
16813 h
16814 s/^/S["/; s/!.*/"]=/
16815 p
16816 g
16817 s/^[^!]*!//
16818 :repl
16819 t repl
16820 s/'"$ac_delim"'$//
16821 t delim
16822 :nl
16823 h
16824 s/\(.\{148\}\).*/\1/
16825 t more1
16826 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16827 p
16828 n
16829 b repl
16830 :more1
16831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16832 p
16833 g
16834 s/.\{148\}//
16835 t nl
16836 :delim
16837 h
16838 s/\(.\{148\}\).*/\1/
16839 t more2
16840 s/["\\]/\\&/g; s/^/"/; s/$/"/
16841 p
16842 b
16843 :more2
16844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16845 p
16846 g
16847 s/.\{148\}//
16848 t delim
16849 ' <conf$$subs.awk | sed '
16850 /^[^""]/{
16851 N
16852 s/\n//
16853 }
16854 ' >>$CONFIG_STATUS || ac_write_fail=1
16855 rm -f conf$$subs.awk
16856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16857 _ACAWK
16858 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16859 for (key in S) S_is_set[key] = 1
16860 FS = "\a"
16861
16862 }
16863 {
16864 line = $ 0
16865 nfields = split(line, field, "@")
16866 substed = 0
16867 len = length(field[1])
16868 for (i = 2; i < nfields; i++) {
16869 key = field[i]
16870 keylen = length(key)
16871 if (S_is_set[key]) {
16872 value = S[key]
16873 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16874 len += length(value) + length(field[++i])
16875 substed = 1
16876 } else
16877 len += 1 + keylen
16878 }
16879
16880 print line
16881 }
16882
16883 _ACAWK
16884 _ACEOF
16885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16886 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16887 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16888 else
16889 cat
16890 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16891 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16892 _ACEOF
16893
16894 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16895 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16896 # trailing colons and then remove the whole line if VPATH becomes empty
16897 # (actually we leave an empty line to preserve line numbers).
16898 if test "x$srcdir" = x.; then
16899 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16900 s/:*\$(srcdir):*/:/
16901 s/:*\${srcdir}:*/:/
16902 s/:*@srcdir@:*/:/
16903 s/^\([^=]*=[ ]*\):*/\1/
16904 s/:*$//
16905 s/^[^=]*=[ ]*$//
16906 }'
16907 fi
16908
16909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910 fi # test -n "$CONFIG_FILES"
16911
16912
16913 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16914 shift
16915 for ac_tag
16916 do
16917 case $ac_tag in
16918 :[FHLC]) ac_mode=$ac_tag; continue;;
16919 esac
16920 case $ac_mode$ac_tag in
16921 :[FHL]*:*);;
16922 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16923 :[FH]-) ac_tag=-:-;;
16924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16925 esac
16926 ac_save_IFS=$IFS
16927 IFS=:
16928 set x $ac_tag
16929 IFS=$ac_save_IFS
16930 shift
16931 ac_file=$1
16932 shift
16933
16934 case $ac_mode in
16935 :L) ac_source=$1;;
16936 :[FH])
16937 ac_file_inputs=
16938 for ac_f
16939 do
16940 case $ac_f in
16941 -) ac_f="$tmp/stdin";;
16942 *) # Look for the file first in the build tree, then in the source tree
16943 # (if the path is not absolute). The absolute path cannot be DOS-style,
16944 # because $ac_f cannot contain `:'.
16945 test -f "$ac_f" ||
16946 case $ac_f in
16947 [\\/$]*) false;;
16948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16949 esac ||
16950 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16951 esac
16952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16953 as_fn_append ac_file_inputs " '$ac_f'"
16954 done
16955
16956 # Let's still pretend it is `configure' which instantiates (i.e., don't
16957 # use $as_me), people would be surprised to read:
16958 # /* config.h. Generated by config.status. */
16959 configure_input='Generated from '`
16960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16961 `' by configure.'
16962 if test x"$ac_file" != x-; then
16963 configure_input="$ac_file. $configure_input"
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16965 $as_echo "$as_me: creating $ac_file" >&6;}
16966 fi
16967 # Neutralize special characters interpreted by sed in replacement strings.
16968 case $configure_input in #(
16969 *\&* | *\|* | *\\* )
16970 ac_sed_conf_input=`$as_echo "$configure_input" |
16971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16972 *) ac_sed_conf_input=$configure_input;;
16973 esac
16974
16975 case $ac_tag in
16976 *:-:* | *:-) cat >"$tmp/stdin" \
16977 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16978 esac
16979 ;;
16980 esac
16981
16982 ac_dir=`$as_dirname -- "$ac_file" ||
16983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16984 X"$ac_file" : 'X\(//\)[^/]' \| \
16985 X"$ac_file" : 'X\(//\)$' \| \
16986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16987 $as_echo X"$ac_file" |
16988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16989 s//\1/
16990 q
16991 }
16992 /^X\(\/\/\)[^/].*/{
16993 s//\1/
16994 q
16995 }
16996 /^X\(\/\/\)$/{
16997 s//\1/
16998 q
16999 }
17000 /^X\(\/\).*/{
17001 s//\1/
17002 q
17003 }
17004 s/.*/./; q'`
17005 as_dir="$ac_dir"; as_fn_mkdir_p
17006 ac_builddir=.
17007
17008 case "$ac_dir" in
17009 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17010 *)
17011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17012 # A ".." for each directory in $ac_dir_suffix.
17013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17014 case $ac_top_builddir_sub in
17015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17017 esac ;;
17018 esac
17019 ac_abs_top_builddir=$ac_pwd
17020 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17021 # for backward compatibility:
17022 ac_top_builddir=$ac_top_build_prefix
17023
17024 case $srcdir in
17025 .) # We are building in place.
17026 ac_srcdir=.
17027 ac_top_srcdir=$ac_top_builddir_sub
17028 ac_abs_top_srcdir=$ac_pwd ;;
17029 [\\/]* | ?:[\\/]* ) # Absolute name.
17030 ac_srcdir=$srcdir$ac_dir_suffix;
17031 ac_top_srcdir=$srcdir
17032 ac_abs_top_srcdir=$srcdir ;;
17033 *) # Relative name.
17034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17035 ac_top_srcdir=$ac_top_build_prefix$srcdir
17036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17037 esac
17038 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17039
17040
17041 case $ac_mode in
17042 :F)
17043 #
17044 # CONFIG_FILE
17045 #
17046
17047 case $INSTALL in
17048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17050 esac
17051 ac_MKDIR_P=$MKDIR_P
17052 case $MKDIR_P in
17053 [\\/$]* | ?:[\\/]* ) ;;
17054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17055 esac
17056 _ACEOF
17057
17058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17059 # If the template does not know about datarootdir, expand it.
17060 # FIXME: This hack should be removed a few years after 2.60.
17061 ac_datarootdir_hack=; ac_datarootdir_seen=
17062 ac_sed_dataroot='
17063 /datarootdir/ {
17064 p
17065 q
17066 }
17067 /@datadir@/p
17068 /@docdir@/p
17069 /@infodir@/p
17070 /@localedir@/p
17071 /@mandir@/p'
17072 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17073 *datarootdir*) ac_datarootdir_seen=yes;;
17074 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17076 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17077 _ACEOF
17078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17079 ac_datarootdir_hack='
17080 s&@datadir@&$datadir&g
17081 s&@docdir@&$docdir&g
17082 s&@infodir@&$infodir&g
17083 s&@localedir@&$localedir&g
17084 s&@mandir@&$mandir&g
17085 s&\\\${datarootdir}&$datarootdir&g' ;;
17086 esac
17087 _ACEOF
17088
17089 # Neutralize VPATH when `$srcdir' = `.'.
17090 # Shell code in configure.ac might set extrasub.
17091 # FIXME: do we really want to maintain this feature?
17092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17093 ac_sed_extra="$ac_vpsub
17094 $extrasub
17095 _ACEOF
17096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17097 :t
17098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17099 s|@configure_input@|$ac_sed_conf_input|;t t
17100 s&@top_builddir@&$ac_top_builddir_sub&;t t
17101 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17102 s&@srcdir@&$ac_srcdir&;t t
17103 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17104 s&@top_srcdir@&$ac_top_srcdir&;t t
17105 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17106 s&@builddir@&$ac_builddir&;t t
17107 s&@abs_builddir@&$ac_abs_builddir&;t t
17108 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17109 s&@INSTALL@&$ac_INSTALL&;t t
17110 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17111 $ac_datarootdir_hack
17112 "
17113 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17114 || as_fn_error "could not create $ac_file" "$LINENO" 5
17115
17116 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17117 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17120 which seems to be undefined. Please make sure it is defined." >&5
17121 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17122 which seems to be undefined. Please make sure it is defined." >&2;}
17123
17124 rm -f "$tmp/stdin"
17125 case $ac_file in
17126 -) cat "$tmp/out" && rm -f "$tmp/out";;
17127 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17128 esac \
17129 || as_fn_error "could not create $ac_file" "$LINENO" 5
17130 ;;
17131
17132
17133 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17134 $as_echo "$as_me: executing $ac_file commands" >&6;}
17135 ;;
17136 esac
17137
17138
17139 case $ac_file$ac_mode in
17140 "default-1":C)
17141 # Only add multilib support code if we just rebuilt the top-level
17142 # Makefile.
17143 case " $CONFIG_FILES " in
17144 *" Makefile "*)
17145 ac_file=Makefile . ${multi_basedir}/config-ml.in
17146 ;;
17147 esac ;;
17148 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17149 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17150 # are listed without --file. Let's play safe and only enable the eval
17151 # if we detect the quoting.
17152 case $CONFIG_FILES in
17153 *\'*) eval set x "$CONFIG_FILES" ;;
17154 *) set x $CONFIG_FILES ;;
17155 esac
17156 shift
17157 for mf
17158 do
17159 # Strip MF so we end up with the name of the file.
17160 mf=`echo "$mf" | sed -e 's/:.*$//'`
17161 # Check whether this is an Automake generated Makefile or not.
17162 # We used to match only the files named `Makefile.in', but
17163 # some people rename them; so instead we look at the file content.
17164 # Grep'ing the first line is not enough: some people post-process
17165 # each Makefile.in and add a new line on top of each file to say so.
17166 # Grep'ing the whole file is not good either: AIX grep has a line
17167 # limit of 2048, but all sed's we know have understand at least 4000.
17168 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17169 dirpart=`$as_dirname -- "$mf" ||
17170 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17171 X"$mf" : 'X\(//\)[^/]' \| \
17172 X"$mf" : 'X\(//\)$' \| \
17173 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17174 $as_echo X"$mf" |
17175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17176 s//\1/
17177 q
17178 }
17179 /^X\(\/\/\)[^/].*/{
17180 s//\1/
17181 q
17182 }
17183 /^X\(\/\/\)$/{
17184 s//\1/
17185 q
17186 }
17187 /^X\(\/\).*/{
17188 s//\1/
17189 q
17190 }
17191 s/.*/./; q'`
17192 else
17193 continue
17194 fi
17195 # Extract the definition of DEPDIR, am__include, and am__quote
17196 # from the Makefile without running `make'.
17197 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17198 test -z "$DEPDIR" && continue
17199 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17200 test -z "am__include" && continue
17201 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17202 # When using ansi2knr, U may be empty or an underscore; expand it
17203 U=`sed -n 's/^U = //p' < "$mf"`
17204 # Find all dependency output files, they are included files with
17205 # $(DEPDIR) in their names. We invoke sed twice because it is the
17206 # simplest approach to changing $(DEPDIR) to its actual value in the
17207 # expansion.
17208 for file in `sed -n "
17209 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17210 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17211 # Make sure the directory exists.
17212 test -f "$dirpart/$file" && continue
17213 fdir=`$as_dirname -- "$file" ||
17214 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17215 X"$file" : 'X\(//\)[^/]' \| \
17216 X"$file" : 'X\(//\)$' \| \
17217 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17218 $as_echo X"$file" |
17219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17220 s//\1/
17221 q
17222 }
17223 /^X\(\/\/\)[^/].*/{
17224 s//\1/
17225 q
17226 }
17227 /^X\(\/\/\)$/{
17228 s//\1/
17229 q
17230 }
17231 /^X\(\/\).*/{
17232 s//\1/
17233 q
17234 }
17235 s/.*/./; q'`
17236 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17237 # echo "creating $dirpart/$file"
17238 echo '# dummy' > "$dirpart/$file"
17239 done
17240 done
17241 }
17242 ;;
17243 "libtool":C)
17244
17245 # See if we are running on zsh, and set the options which allow our
17246 # commands through without removal of \ escapes.
17247 if test -n "${ZSH_VERSION+set}" ; then
17248 setopt NO_GLOB_SUBST
17249 fi
17250
17251 cfgfile="${ofile}T"
17252 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17253 $RM "$cfgfile"
17254
17255 cat <<_LT_EOF >> "$cfgfile"
17256 #! $SHELL
17257
17258 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17259 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17260 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17261 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17262 #
17263 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17264 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17265 # Written by Gordon Matzigkeit, 1996
17266 #
17267 # This file is part of GNU Libtool.
17268 #
17269 # GNU Libtool is free software; you can redistribute it and/or
17270 # modify it under the terms of the GNU General Public License as
17271 # published by the Free Software Foundation; either version 2 of
17272 # the License, or (at your option) any later version.
17273 #
17274 # As a special exception to the GNU General Public License,
17275 # if you distribute this file as part of a program or library that
17276 # is built using GNU Libtool, you may include this file under the
17277 # same distribution terms that you use for the rest of that program.
17278 #
17279 # GNU Libtool is distributed in the hope that it will be useful,
17280 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17281 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17282 # GNU General Public License for more details.
17283 #
17284 # You should have received a copy of the GNU General Public License
17285 # along with GNU Libtool; see the file COPYING. If not, a copy
17286 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17287 # obtained by writing to the Free Software Foundation, Inc.,
17288 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17289
17290
17291 # The names of the tagged configurations supported by this script.
17292 available_tags="CXX "
17293
17294 # ### BEGIN LIBTOOL CONFIG
17295
17296 # Which release of libtool.m4 was used?
17297 macro_version=$macro_version
17298 macro_revision=$macro_revision
17299
17300 # Whether or not to build shared libraries.
17301 build_libtool_libs=$enable_shared
17302
17303 # Whether or not to build static libraries.
17304 build_old_libs=$enable_static
17305
17306 # What type of objects to build.
17307 pic_mode=$pic_mode
17308
17309 # Whether or not to optimize for fast installation.
17310 fast_install=$enable_fast_install
17311
17312 # Shell to use when invoking shell scripts.
17313 SHELL=$lt_SHELL
17314
17315 # An echo program that protects backslashes.
17316 ECHO=$lt_ECHO
17317
17318 # The host system.
17319 host_alias=$host_alias
17320 host=$host
17321 host_os=$host_os
17322
17323 # The build system.
17324 build_alias=$build_alias
17325 build=$build
17326 build_os=$build_os
17327
17328 # A sed program that does not truncate output.
17329 SED=$lt_SED
17330
17331 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17332 Xsed="\$SED -e 1s/^X//"
17333
17334 # A grep program that handles long lines.
17335 GREP=$lt_GREP
17336
17337 # An ERE matcher.
17338 EGREP=$lt_EGREP
17339
17340 # A literal string matcher.
17341 FGREP=$lt_FGREP
17342
17343 # A BSD- or MS-compatible name lister.
17344 NM=$lt_NM
17345
17346 # Whether we need soft or hard links.
17347 LN_S=$lt_LN_S
17348
17349 # What is the maximum length of a command?
17350 max_cmd_len=$max_cmd_len
17351
17352 # Object file suffix (normally "o").
17353 objext=$ac_objext
17354
17355 # Executable file suffix (normally "").
17356 exeext=$exeext
17357
17358 # whether the shell understands "unset".
17359 lt_unset=$lt_unset
17360
17361 # turn spaces into newlines.
17362 SP2NL=$lt_lt_SP2NL
17363
17364 # turn newlines into spaces.
17365 NL2SP=$lt_lt_NL2SP
17366
17367 # An object symbol dumper.
17368 OBJDUMP=$lt_OBJDUMP
17369
17370 # Method to check whether dependent libraries are shared objects.
17371 deplibs_check_method=$lt_deplibs_check_method
17372
17373 # Command to use when deplibs_check_method == "file_magic".
17374 file_magic_cmd=$lt_file_magic_cmd
17375
17376 # The archiver.
17377 AR=$lt_AR
17378 AR_FLAGS=$lt_AR_FLAGS
17379
17380 # A symbol stripping program.
17381 STRIP=$lt_STRIP
17382
17383 # Commands used to install an old-style archive.
17384 RANLIB=$lt_RANLIB
17385 old_postinstall_cmds=$lt_old_postinstall_cmds
17386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17387
17388 # Whether to use a lock for old archive extraction.
17389 lock_old_archive_extraction=$lock_old_archive_extraction
17390
17391 # A C compiler.
17392 LTCC=$lt_CC
17393
17394 # LTCC compiler flags.
17395 LTCFLAGS=$lt_CFLAGS
17396
17397 # Take the output of nm and produce a listing of raw symbols and C names.
17398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17399
17400 # Transform the output of nm in a proper C declaration.
17401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17402
17403 # Transform the output of nm in a C name address pair.
17404 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17405
17406 # Transform the output of nm in a C name address pair when lib prefix is needed.
17407 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17408
17409 # The name of the directory that contains temporary libtool files.
17410 objdir=$objdir
17411
17412 # Used to examine libraries when file_magic_cmd begins with "file".
17413 MAGIC_CMD=$MAGIC_CMD
17414
17415 # Must we lock files when doing compilation?
17416 need_locks=$lt_need_locks
17417
17418 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17419 DSYMUTIL=$lt_DSYMUTIL
17420
17421 # Tool to change global to local symbols on Mac OS X.
17422 NMEDIT=$lt_NMEDIT
17423
17424 # Tool to manipulate fat objects and archives on Mac OS X.
17425 LIPO=$lt_LIPO
17426
17427 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17428 OTOOL=$lt_OTOOL
17429
17430 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17431 OTOOL64=$lt_OTOOL64
17432
17433 # Old archive suffix (normally "a").
17434 libext=$libext
17435
17436 # Shared library suffix (normally ".so").
17437 shrext_cmds=$lt_shrext_cmds
17438
17439 # The commands to extract the exported symbol list from a shared archive.
17440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17441
17442 # Variables whose values should be saved in libtool wrapper scripts and
17443 # restored at link time.
17444 variables_saved_for_relink=$lt_variables_saved_for_relink
17445
17446 # Do we need the "lib" prefix for modules?
17447 need_lib_prefix=$need_lib_prefix
17448
17449 # Do we need a version for libraries?
17450 need_version=$need_version
17451
17452 # Library versioning type.
17453 version_type=$version_type
17454
17455 # Shared library runtime path variable.
17456 runpath_var=$runpath_var
17457
17458 # Shared library path variable.
17459 shlibpath_var=$shlibpath_var
17460
17461 # Is shlibpath searched before the hard-coded library search path?
17462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17463
17464 # Format of library name prefix.
17465 libname_spec=$lt_libname_spec
17466
17467 # List of archive names. First name is the real one, the rest are links.
17468 # The last name is the one that the linker finds with -lNAME
17469 library_names_spec=$lt_library_names_spec
17470
17471 # The coded name of the library, if different from the real name.
17472 soname_spec=$lt_soname_spec
17473
17474 # Permission mode override for installation of shared libraries.
17475 install_override_mode=$lt_install_override_mode
17476
17477 # Command to use after installation of a shared archive.
17478 postinstall_cmds=$lt_postinstall_cmds
17479
17480 # Command to use after uninstallation of a shared archive.
17481 postuninstall_cmds=$lt_postuninstall_cmds
17482
17483 # Commands used to finish a libtool library installation in a directory.
17484 finish_cmds=$lt_finish_cmds
17485
17486 # As "finish_cmds", except a single script fragment to be evaled but
17487 # not shown.
17488 finish_eval=$lt_finish_eval
17489
17490 # Whether we should hardcode library paths into libraries.
17491 hardcode_into_libs=$hardcode_into_libs
17492
17493 # Compile-time system search path for libraries.
17494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17495
17496 # Run-time system search path for libraries.
17497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17498
17499 # Whether dlopen is supported.
17500 dlopen_support=$enable_dlopen
17501
17502 # Whether dlopen of programs is supported.
17503 dlopen_self=$enable_dlopen_self
17504
17505 # Whether dlopen of statically linked programs is supported.
17506 dlopen_self_static=$enable_dlopen_self_static
17507
17508 # Commands to strip libraries.
17509 old_striplib=$lt_old_striplib
17510 striplib=$lt_striplib
17511
17512
17513 # The linker used to build libraries.
17514 LD=$lt_LD
17515
17516 # How to create reloadable object files.
17517 reload_flag=$lt_reload_flag
17518 reload_cmds=$lt_reload_cmds
17519
17520 # Commands used to build an old-style archive.
17521 old_archive_cmds=$lt_old_archive_cmds
17522
17523 # A language specific compiler.
17524 CC=$lt_compiler
17525
17526 # Is the compiler the GNU compiler?
17527 with_gcc=$GCC
17528
17529 # Compiler flag to turn off builtin functions.
17530 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17531
17532 # How to pass a linker flag through the compiler.
17533 wl=$lt_lt_prog_compiler_wl
17534
17535 # Additional compiler flags for building library objects.
17536 pic_flag=$lt_lt_prog_compiler_pic
17537
17538 # Compiler flag to prevent dynamic linking.
17539 link_static_flag=$lt_lt_prog_compiler_static
17540
17541 # Does compiler simultaneously support -c and -o options?
17542 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17543
17544 # Whether or not to add -lc for building shared libraries.
17545 build_libtool_need_lc=$archive_cmds_need_lc
17546
17547 # Whether or not to disallow shared libs when runtime libs are static.
17548 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17549
17550 # Compiler flag to allow reflexive dlopens.
17551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17552
17553 # Compiler flag to generate shared objects directly from archives.
17554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17555
17556 # Whether the compiler copes with passing no objects directly.
17557 compiler_needs_object=$lt_compiler_needs_object
17558
17559 # Create an old-style archive from a shared archive.
17560 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17561
17562 # Create a temporary old-style archive to link instead of a shared archive.
17563 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17564
17565 # Commands used to build a shared archive.
17566 archive_cmds=$lt_archive_cmds
17567 archive_expsym_cmds=$lt_archive_expsym_cmds
17568
17569 # Commands used to build a loadable module if different from building
17570 # a shared archive.
17571 module_cmds=$lt_module_cmds
17572 module_expsym_cmds=$lt_module_expsym_cmds
17573
17574 # Whether we are building with GNU ld or not.
17575 with_gnu_ld=$lt_with_gnu_ld
17576
17577 # Flag that allows shared libraries with undefined symbols to be built.
17578 allow_undefined_flag=$lt_allow_undefined_flag
17579
17580 # Flag that enforces no undefined symbols.
17581 no_undefined_flag=$lt_no_undefined_flag
17582
17583 # Flag to hardcode \$libdir into a binary during linking.
17584 # This must work even if \$libdir does not exist
17585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17586
17587 # If ld is used when linking, flag to hardcode \$libdir into a binary
17588 # during linking. This must work even if \$libdir does not exist.
17589 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17590
17591 # Whether we need a single "-rpath" flag with a separated argument.
17592 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17593
17594 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17595 # DIR into the resulting binary.
17596 hardcode_direct=$hardcode_direct
17597
17598 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17599 # DIR into the resulting binary and the resulting library dependency is
17600 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17601 # library is relocated.
17602 hardcode_direct_absolute=$hardcode_direct_absolute
17603
17604 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17605 # into the resulting binary.
17606 hardcode_minus_L=$hardcode_minus_L
17607
17608 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17609 # into the resulting binary.
17610 hardcode_shlibpath_var=$hardcode_shlibpath_var
17611
17612 # Set to "yes" if building a shared library automatically hardcodes DIR
17613 # into the library and all subsequent libraries and executables linked
17614 # against it.
17615 hardcode_automatic=$hardcode_automatic
17616
17617 # Set to yes if linker adds runtime paths of dependent libraries
17618 # to runtime path list.
17619 inherit_rpath=$inherit_rpath
17620
17621 # Whether libtool must link a program against all its dependency libraries.
17622 link_all_deplibs=$link_all_deplibs
17623
17624 # Fix the shell variable \$srcfile for the compiler.
17625 fix_srcfile_path=$lt_fix_srcfile_path
17626
17627 # Set to "yes" if exported symbols are required.
17628 always_export_symbols=$always_export_symbols
17629
17630 # The commands to list exported symbols.
17631 export_symbols_cmds=$lt_export_symbols_cmds
17632
17633 # Symbols that should not be listed in the preloaded symbols.
17634 exclude_expsyms=$lt_exclude_expsyms
17635
17636 # Symbols that must always be exported.
17637 include_expsyms=$lt_include_expsyms
17638
17639 # Commands necessary for linking programs (against libraries) with templates.
17640 prelink_cmds=$lt_prelink_cmds
17641
17642 # Specify filename containing input files.
17643 file_list_spec=$lt_file_list_spec
17644
17645 # How to hardcode a shared library path into an executable.
17646 hardcode_action=$hardcode_action
17647
17648 # The directories searched by this compiler when creating a shared library.
17649 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17650
17651 # Dependencies to place before and after the objects being linked to
17652 # create a shared library.
17653 predep_objects=$lt_predep_objects
17654 postdep_objects=$lt_postdep_objects
17655 predeps=$lt_predeps
17656 postdeps=$lt_postdeps
17657
17658 # The library search path used internally by the compiler when linking
17659 # a shared library.
17660 compiler_lib_search_path=$lt_compiler_lib_search_path
17661
17662 # ### END LIBTOOL CONFIG
17663
17664 _LT_EOF
17665
17666 case $host_os in
17667 aix3*)
17668 cat <<\_LT_EOF >> "$cfgfile"
17669 # AIX sometimes has problems with the GCC collect2 program. For some
17670 # reason, if we set the COLLECT_NAMES environment variable, the problems
17671 # vanish in a puff of smoke.
17672 if test "X${COLLECT_NAMES+set}" != Xset; then
17673 COLLECT_NAMES=
17674 export COLLECT_NAMES
17675 fi
17676 _LT_EOF
17677 ;;
17678 esac
17679
17680
17681 ltmain="$ac_aux_dir/ltmain.sh"
17682
17683
17684 # We use sed instead of cat because bash on DJGPP gets confused if
17685 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17686 # text mode, it properly converts lines to CR/LF. This bash problem
17687 # is reportedly fixed, but why not run on old versions too?
17688 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17689 || (rm -f "$cfgfile"; exit 1)
17690
17691 case $xsi_shell in
17692 yes)
17693 cat << \_LT_EOF >> "$cfgfile"
17694
17695 # func_dirname file append nondir_replacement
17696 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17697 # otherwise set result to NONDIR_REPLACEMENT.
17698 func_dirname ()
17699 {
17700 case ${1} in
17701 */*) func_dirname_result="${1%/*}${2}" ;;
17702 * ) func_dirname_result="${3}" ;;
17703 esac
17704 }
17705
17706 # func_basename file
17707 func_basename ()
17708 {
17709 func_basename_result="${1##*/}"
17710 }
17711
17712 # func_dirname_and_basename file append nondir_replacement
17713 # perform func_basename and func_dirname in a single function
17714 # call:
17715 # dirname: Compute the dirname of FILE. If nonempty,
17716 # add APPEND to the result, otherwise set result
17717 # to NONDIR_REPLACEMENT.
17718 # value returned in "$func_dirname_result"
17719 # basename: Compute filename of FILE.
17720 # value retuned in "$func_basename_result"
17721 # Implementation must be kept synchronized with func_dirname
17722 # and func_basename. For efficiency, we do not delegate to
17723 # those functions but instead duplicate the functionality here.
17724 func_dirname_and_basename ()
17725 {
17726 case ${1} in
17727 */*) func_dirname_result="${1%/*}${2}" ;;
17728 * ) func_dirname_result="${3}" ;;
17729 esac
17730 func_basename_result="${1##*/}"
17731 }
17732
17733 # func_stripname prefix suffix name
17734 # strip PREFIX and SUFFIX off of NAME.
17735 # PREFIX and SUFFIX must not contain globbing or regex special
17736 # characters, hashes, percent signs, but SUFFIX may contain a leading
17737 # dot (in which case that matches only a dot).
17738 func_stripname ()
17739 {
17740 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17741 # positional parameters, so assign one to ordinary parameter first.
17742 func_stripname_result=${3}
17743 func_stripname_result=${func_stripname_result#"${1}"}
17744 func_stripname_result=${func_stripname_result%"${2}"}
17745 }
17746
17747 # func_opt_split
17748 func_opt_split ()
17749 {
17750 func_opt_split_opt=${1%%=*}
17751 func_opt_split_arg=${1#*=}
17752 }
17753
17754 # func_lo2o object
17755 func_lo2o ()
17756 {
17757 case ${1} in
17758 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17759 *) func_lo2o_result=${1} ;;
17760 esac
17761 }
17762
17763 # func_xform libobj-or-source
17764 func_xform ()
17765 {
17766 func_xform_result=${1%.*}.lo
17767 }
17768
17769 # func_arith arithmetic-term...
17770 func_arith ()
17771 {
17772 func_arith_result=$(( $* ))
17773 }
17774
17775 # func_len string
17776 # STRING may not start with a hyphen.
17777 func_len ()
17778 {
17779 func_len_result=${#1}
17780 }
17781
17782 _LT_EOF
17783 ;;
17784 *) # Bourne compatible functions.
17785 cat << \_LT_EOF >> "$cfgfile"
17786
17787 # func_dirname file append nondir_replacement
17788 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17789 # otherwise set result to NONDIR_REPLACEMENT.
17790 func_dirname ()
17791 {
17792 # Extract subdirectory from the argument.
17793 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17794 if test "X$func_dirname_result" = "X${1}"; then
17795 func_dirname_result="${3}"
17796 else
17797 func_dirname_result="$func_dirname_result${2}"
17798 fi
17799 }
17800
17801 # func_basename file
17802 func_basename ()
17803 {
17804 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17805 }
17806
17807
17808 # func_stripname prefix suffix name
17809 # strip PREFIX and SUFFIX off of NAME.
17810 # PREFIX and SUFFIX must not contain globbing or regex special
17811 # characters, hashes, percent signs, but SUFFIX may contain a leading
17812 # dot (in which case that matches only a dot).
17813 # func_strip_suffix prefix name
17814 func_stripname ()
17815 {
17816 case ${2} in
17817 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17818 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17819 esac
17820 }
17821
17822 # sed scripts:
17823 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17824 my_sed_long_arg='1s/^-[^=]*=//'
17825
17826 # func_opt_split
17827 func_opt_split ()
17828 {
17829 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17830 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17831 }
17832
17833 # func_lo2o object
17834 func_lo2o ()
17835 {
17836 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17837 }
17838
17839 # func_xform libobj-or-source
17840 func_xform ()
17841 {
17842 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17843 }
17844
17845 # func_arith arithmetic-term...
17846 func_arith ()
17847 {
17848 func_arith_result=`expr "$@"`
17849 }
17850
17851 # func_len string
17852 # STRING may not start with a hyphen.
17853 func_len ()
17854 {
17855 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17856 }
17857
17858 _LT_EOF
17859 esac
17860
17861 case $lt_shell_append in
17862 yes)
17863 cat << \_LT_EOF >> "$cfgfile"
17864
17865 # func_append var value
17866 # Append VALUE to the end of shell variable VAR.
17867 func_append ()
17868 {
17869 eval "$1+=\$2"
17870 }
17871 _LT_EOF
17872 ;;
17873 *)
17874 cat << \_LT_EOF >> "$cfgfile"
17875
17876 # func_append var value
17877 # Append VALUE to the end of shell variable VAR.
17878 func_append ()
17879 {
17880 eval "$1=\$$1\$2"
17881 }
17882
17883 _LT_EOF
17884 ;;
17885 esac
17886
17887
17888 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17889 || (rm -f "$cfgfile"; exit 1)
17890
17891 mv -f "$cfgfile" "$ofile" ||
17892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17893 chmod +x "$ofile"
17894
17895
17896 cat <<_LT_EOF >> "$ofile"
17897
17898 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17899
17900 # The linker used to build libraries.
17901 LD=$lt_LD_CXX
17902
17903 # How to create reloadable object files.
17904 reload_flag=$lt_reload_flag_CXX
17905 reload_cmds=$lt_reload_cmds_CXX
17906
17907 # Commands used to build an old-style archive.
17908 old_archive_cmds=$lt_old_archive_cmds_CXX
17909
17910 # A language specific compiler.
17911 CC=$lt_compiler_CXX
17912
17913 # Is the compiler the GNU compiler?
17914 with_gcc=$GCC_CXX
17915
17916 # Compiler flag to turn off builtin functions.
17917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17918
17919 # How to pass a linker flag through the compiler.
17920 wl=$lt_lt_prog_compiler_wl_CXX
17921
17922 # Additional compiler flags for building library objects.
17923 pic_flag=$lt_lt_prog_compiler_pic_CXX
17924
17925 # Compiler flag to prevent dynamic linking.
17926 link_static_flag=$lt_lt_prog_compiler_static_CXX
17927
17928 # Does compiler simultaneously support -c and -o options?
17929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17930
17931 # Whether or not to add -lc for building shared libraries.
17932 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17933
17934 # Whether or not to disallow shared libs when runtime libs are static.
17935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17936
17937 # Compiler flag to allow reflexive dlopens.
17938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17939
17940 # Compiler flag to generate shared objects directly from archives.
17941 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17942
17943 # Whether the compiler copes with passing no objects directly.
17944 compiler_needs_object=$lt_compiler_needs_object_CXX
17945
17946 # Create an old-style archive from a shared archive.
17947 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17948
17949 # Create a temporary old-style archive to link instead of a shared archive.
17950 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17951
17952 # Commands used to build a shared archive.
17953 archive_cmds=$lt_archive_cmds_CXX
17954 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17955
17956 # Commands used to build a loadable module if different from building
17957 # a shared archive.
17958 module_cmds=$lt_module_cmds_CXX
17959 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17960
17961 # Whether we are building with GNU ld or not.
17962 with_gnu_ld=$lt_with_gnu_ld_CXX
17963
17964 # Flag that allows shared libraries with undefined symbols to be built.
17965 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17966
17967 # Flag that enforces no undefined symbols.
17968 no_undefined_flag=$lt_no_undefined_flag_CXX
17969
17970 # Flag to hardcode \$libdir into a binary during linking.
17971 # This must work even if \$libdir does not exist
17972 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17973
17974 # If ld is used when linking, flag to hardcode \$libdir into a binary
17975 # during linking. This must work even if \$libdir does not exist.
17976 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17977
17978 # Whether we need a single "-rpath" flag with a separated argument.
17979 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17980
17981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17982 # DIR into the resulting binary.
17983 hardcode_direct=$hardcode_direct_CXX
17984
17985 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17986 # DIR into the resulting binary and the resulting library dependency is
17987 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17988 # library is relocated.
17989 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17990
17991 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17992 # into the resulting binary.
17993 hardcode_minus_L=$hardcode_minus_L_CXX
17994
17995 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17996 # into the resulting binary.
17997 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17998
17999 # Set to "yes" if building a shared library automatically hardcodes DIR
18000 # into the library and all subsequent libraries and executables linked
18001 # against it.
18002 hardcode_automatic=$hardcode_automatic_CXX
18003
18004 # Set to yes if linker adds runtime paths of dependent libraries
18005 # to runtime path list.
18006 inherit_rpath=$inherit_rpath_CXX
18007
18008 # Whether libtool must link a program against all its dependency libraries.
18009 link_all_deplibs=$link_all_deplibs_CXX
18010
18011 # Fix the shell variable \$srcfile for the compiler.
18012 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18013
18014 # Set to "yes" if exported symbols are required.
18015 always_export_symbols=$always_export_symbols_CXX
18016
18017 # The commands to list exported symbols.
18018 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18019
18020 # Symbols that should not be listed in the preloaded symbols.
18021 exclude_expsyms=$lt_exclude_expsyms_CXX
18022
18023 # Symbols that must always be exported.
18024 include_expsyms=$lt_include_expsyms_CXX
18025
18026 # Commands necessary for linking programs (against libraries) with templates.
18027 prelink_cmds=$lt_prelink_cmds_CXX
18028
18029 # Specify filename containing input files.
18030 file_list_spec=$lt_file_list_spec_CXX
18031
18032 # How to hardcode a shared library path into an executable.
18033 hardcode_action=$hardcode_action_CXX
18034
18035 # The directories searched by this compiler when creating a shared library.
18036 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18037
18038 # Dependencies to place before and after the objects being linked to
18039 # create a shared library.
18040 predep_objects=$lt_predep_objects_CXX
18041 postdep_objects=$lt_postdep_objects_CXX
18042 predeps=$lt_predeps_CXX
18043 postdeps=$lt_postdeps_CXX
18044
18045 # The library search path used internally by the compiler when linking
18046 # a shared library.
18047 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18048
18049 # ### END LIBTOOL TAG CONFIG: CXX
18050 _LT_EOF
18051
18052 ;;
18053 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18054 s!`test -f '$<' || echo '$(srcdir)/'`!!
18055 _EOF
18056 sed -f vpsed$$ $ac_file > tmp$$
18057 mv tmp$$ $ac_file
18058 rm vpsed$$
18059 echo 'MULTISUBDIR =' >> $ac_file
18060 ml_norecursion=yes
18061 . ${multi_basedir}/config-ml.in
18062 { ml_norecursion=; unset ml_norecursion;}
18063 ;;
18064
18065 esac
18066 done # for ac_tag
18067
18068
18069 as_fn_exit 0
18070 _ACEOF
18071 ac_clean_files=$ac_clean_files_save
18072
18073 test $ac_write_fail = 0 ||
18074 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18075
18076
18077 # configure is writing to config.log, and then calls config.status.
18078 # config.status does its own redirection, appending to config.log.
18079 # Unfortunately, on DOS this fails, as config.log is still kept open
18080 # by configure, so config.status won't be able to write to it; its
18081 # output is simply discarded. So we exec the FD to /dev/null,
18082 # effectively closing config.log, so it can be properly (re)opened and
18083 # appended to by config.status. When coming back to configure, we
18084 # need to make the FD available again.
18085 if test "$no_create" != yes; then
18086 ac_cs_success=:
18087 ac_config_status_args=
18088 test "$silent" = yes &&
18089 ac_config_status_args="$ac_config_status_args --quiet"
18090 exec 5>/dev/null
18091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18092 exec 5>>config.log
18093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18094 # would make configure fail if this is the last instruction.
18095 $ac_cs_success || as_fn_exit $?
18096 fi
18097 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18099 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18100 fi
18101