]> git.ipfire.org Git - thirdparty/gcc.git/blob - libvtv/configure
Move VTV_SUPPORTED check after AC_CANONICAL_SYSTEM
[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 XCFLAGS
606 libtool_VERSION
607 enable_static
608 enable_shared
609 CXXCPP
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 OBJDUMP
616 LN_S
617 NM
618 ac_ct_DUMPBIN
619 DUMPBIN
620 LD
621 FGREP
622 SED
623 LIBTOOL
624 RANLIB
625 AR
626 AS
627 CCASFLAGS
628 CCAS
629 am__fastdepCXX_FALSE
630 am__fastdepCXX_TRUE
631 CXXDEPMODE
632 ac_ct_CXX
633 CXXFLAGS
634 CXX
635 EGREP
636 GREP
637 CPP
638 am__fastdepCC_FALSE
639 am__fastdepCC_TRUE
640 CCDEPMODE
641 AMDEPBACKSLASH
642 AMDEP_FALSE
643 AMDEP_TRUE
644 am__quote
645 am__include
646 DEPDIR
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
653 CC
654 toolexeclibdir
655 toolexecdir
656 toplevel_srcdir
657 toplevel_builddir
658 libvtv_srcdir
659 libvtv_builddir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 multi_basedir
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 LIBSTDCXX_RAW_CXX_LDFLAGS
688 LIBSTDCXX_RAW_CXX_CXXFLAGS
689 target_noncanonical
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_version_specific_runtime_libs
744 enable_multilib
745 enable_maintainer_mode
746 enable_dependency_tracking
747 enable_shared
748 enable_static
749 with_pic
750 enable_fast_install
751 with_gnu_ld
752 enable_libtool_lock
753 '
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
757 CC
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CPP
763 CXXCPP'
764
765
766 # Initialize some variables set by options.
767 ac_init_help=
768 ac_init_version=false
769 ac_unrecognized_opts=
770 ac_unrecognized_sep=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
773 cache_file=/dev/null
774 exec_prefix=NONE
775 no_create=
776 no_recursion=
777 prefix=NONE
778 program_prefix=NONE
779 program_suffix=NONE
780 program_transform_name=s,x,x,
781 silent=
782 site=
783 srcdir=
784 verbose=
785 x_includes=NONE
786 x_libraries=NONE
787
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
806 htmldir='${docdir}'
807 dvidir='${docdir}'
808 pdfdir='${docdir}'
809 psdir='${docdir}'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
813
814 ac_prev=
815 ac_dashdash=
816 for ac_option
817 do
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
821 ac_prev=
822 continue
823 fi
824
825 case $ac_option in
826 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 *) ac_optarg=yes ;;
828 esac
829
830 # Accept the important Cygnus configure options, so we can diagnose typos.
831
832 case $ac_dashdash$ac_option in
833 --)
834 ac_dashdash=yes ;;
835
836 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 ac_prev=bindir ;;
838 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839 bindir=$ac_optarg ;;
840
841 -build | --build | --buil | --bui | --bu)
842 ac_prev=build_alias ;;
843 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
844 build_alias=$ac_optarg ;;
845
846 -cache-file | --cache-file | --cache-fil | --cache-fi \
847 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
848 ac_prev=cache_file ;;
849 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
850 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
851 cache_file=$ac_optarg ;;
852
853 --config-cache | -C)
854 cache_file=config.cache ;;
855
856 -datadir | --datadir | --datadi | --datad)
857 ac_prev=datadir ;;
858 -datadir=* | --datadir=* | --datadi=* | --datad=*)
859 datadir=$ac_optarg ;;
860
861 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
862 | --dataroo | --dataro | --datar)
863 ac_prev=datarootdir ;;
864 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
865 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
866 datarootdir=$ac_optarg ;;
867
868 -disable-* | --disable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877 "enable_$ac_useropt"
878 "*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=no ;;
883
884 -docdir | --docdir | --docdi | --doc | --do)
885 ac_prev=docdir ;;
886 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
887 docdir=$ac_optarg ;;
888
889 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 ac_prev=dvidir ;;
891 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
892 dvidir=$ac_optarg ;;
893
894 -enable-* | --enable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=\$ac_optarg ;;
909
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
918
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
921 with_gas=yes ;;
922
923 -help | --help | --hel | --he | -h)
924 ac_init_help=long ;;
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
929
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
934
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 ac_prev=htmldir ;;
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 | --ht=*)
939 htmldir=$ac_optarg ;;
940
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
947
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 ac_prev=infodir ;;
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
952
953 -libdir | --libdir | --libdi | --libd)
954 ac_prev=libdir ;;
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
956 libdir=$ac_optarg ;;
957
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
964
965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
969
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
976
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 ac_prev=mandir ;;
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 mandir=$ac_optarg ;;
981
982 -nfp | --nfp | --nf)
983 # Obsolete; use --without-fp.
984 with_fp=no ;;
985
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
988 no_create=yes ;;
989
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 no_recursion=yes ;;
993
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1002
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 ac_prev=prefix ;;
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1007
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1014
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1021
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1038
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 ac_prev=pdfdir ;;
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1043
1044 -psdir | --psdir | --psdi | --psd | --ps)
1045 ac_prev=psdir ;;
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 psdir=$ac_optarg ;;
1048
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 silent=yes ;;
1052
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 ac_prev=sbindir ;;
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 | --sbi=* | --sb=*)
1057 sbindir=$ac_optarg ;;
1058
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1062 | --sha | --sh)
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 | --sha=* | --sh=*)
1068 sharedstatedir=$ac_optarg ;;
1069
1070 -site | --site | --sit)
1071 ac_prev=site ;;
1072 -site=* | --site=* | --sit=*)
1073 site=$ac_optarg ;;
1074
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 ac_prev=srcdir ;;
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1079
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1086
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1091
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 verbose=yes ;;
1094
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1097
1098 -with-* | --with-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=\$ac_optarg ;;
1113
1114 -without-* | --without-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=no ;;
1129
1130 --x)
1131 # Obsolete; use --with-x.
1132 with_x=yes ;;
1133
1134 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1135 | --x-incl | --x-inc | --x-in | --x-i)
1136 ac_prev=x_includes ;;
1137 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1138 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1139 x_includes=$ac_optarg ;;
1140
1141 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1142 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1143 ac_prev=x_libraries ;;
1144 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1145 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1146 x_libraries=$ac_optarg ;;
1147
1148 -*) as_fn_error "unrecognized option: \`$ac_option'
1149 Try \`$0 --help' for more information."
1150 ;;
1151
1152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 case $ac_envvar in #(
1156 '' | [0-9]* | *[!_$as_cr_alnum]* )
1157 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1158 esac
1159 eval $ac_envvar=\$ac_optarg
1160 export $ac_envvar ;;
1161
1162 *)
1163 # FIXME: should be removed in autoconf 3.0.
1164 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1165 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1166 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1167 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 ;;
1169
1170 esac
1171 done
1172
1173 if test -n "$ac_prev"; then
1174 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1175 as_fn_error "missing argument to $ac_option"
1176 fi
1177
1178 if test -n "$ac_unrecognized_opts"; then
1179 case $enable_option_checking in
1180 no) ;;
1181 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1182 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 esac
1184 fi
1185
1186 # Check all directory arguments for consistency.
1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1188 datadir sysconfdir sharedstatedir localstatedir includedir \
1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1190 libdir localedir mandir
1191 do
1192 eval ac_val=\$$ac_var
1193 # Remove trailing slashes.
1194 case $ac_val in
1195 */ )
1196 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1197 eval $ac_var=\$ac_val;;
1198 esac
1199 # Be sure to have absolute directory names.
1200 case $ac_val in
1201 [\\/$]* | ?:[\\/]* ) continue;;
1202 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 esac
1204 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1205 done
1206
1207 # There might be people who depend on the old broken behavior: `$host'
1208 # used to hold the argument of --host etc.
1209 # FIXME: To remove some day.
1210 build=$build_alias
1211 host=$host_alias
1212 target=$target_alias
1213
1214 # FIXME: To remove some day.
1215 if test "x$host_alias" != x; then
1216 if test "x$build_alias" = x; then
1217 cross_compiling=maybe
1218 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1219 If a cross compiler is detected then cross compile mode will be used." >&2
1220 elif test "x$build_alias" != "x$host_alias"; then
1221 cross_compiling=yes
1222 fi
1223 fi
1224
1225 ac_tool_prefix=
1226 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227
1228 test "$silent" = yes && exec 6>/dev/null
1229
1230
1231 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1232 ac_ls_di=`ls -di .` &&
1233 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1234 as_fn_error "working directory cannot be determined"
1235 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1236 as_fn_error "pwd does not report name of working directory"
1237
1238
1239 # Find the source files, if location was not specified.
1240 if test -z "$srcdir"; then
1241 ac_srcdir_defaulted=yes
1242 # Try the directory containing this script, then the parent directory.
1243 ac_confdir=`$as_dirname -- "$as_myself" ||
1244 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1245 X"$as_myself" : 'X\(//\)[^/]' \| \
1246 X"$as_myself" : 'X\(//\)$' \| \
1247 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1248 $as_echo X"$as_myself" |
1249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 s//\1/
1251 q
1252 }
1253 /^X\(\/\/\)[^/].*/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\).*/{
1262 s//\1/
1263 q
1264 }
1265 s/.*/./; q'`
1266 srcdir=$ac_confdir
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 srcdir=..
1269 fi
1270 else
1271 ac_srcdir_defaulted=no
1272 fi
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1275 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1280 pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283 srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1304 cat <<_ACEOF
1305 \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1329 [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1358 _ACEOF
1359
1360 cat <<\_ACEOF
1361
1362 Program names:
1363 --program-prefix=PREFIX prepend PREFIX to installed program names
1364 --program-suffix=SUFFIX append SUFFIX to installed program names
1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1366
1367 System types:
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 --target=TARGET configure for building compilers for TARGET [HOST]
1371 _ACEOF
1372 fi
1373
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
1377 esac
1378 cat <<\_ACEOF
1379
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1385 --enable-multilib build many library versions (default)
1386 --enable-maintainer-mode enable make rules and dependencies not useful
1387 (and sometimes confusing) to the casual installer
1388 --disable-dependency-tracking speeds up one-time build
1389 --enable-dependency-tracking do not reject slow dependency extractors
1390 --enable-shared[=PKGS] build shared libraries [default=yes]
1391 --enable-static[=PKGS] build static libraries [default=yes]
1392 --enable-fast-install[=PKGS]
1393 optimize for fast installation [default=yes]
1394 --disable-libtool-lock avoid locking (might break parallel builds)
1395
1396 Optional Packages:
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-pic try to use only PIC/non-PIC objects [default=use
1400 both]
1401 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CPP C preprocessor
1412 CXX C++ compiler command
1413 CXXFLAGS C++ compiler flags
1414 CXXCPP C++ preprocessor
1415
1416 Use these variables to override the choices made by `configure' or to help
1417 it to find libraries and programs with nonstandard names/locations.
1418
1419 Report bugs to the package provider.
1420 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
1421 General help using GNU software: <http://www.gnu.org/gethelp/>.
1422 _ACEOF
1423 ac_status=$?
1424 fi
1425
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 continue
1432 ac_builddir=.
1433
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *)
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1449
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1479 fi
1480
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 GNU Vtable Verification Runtime Library configure 1.0
1485 generated by GNU Autoconf 2.64
1486
1487 Copyright (C) 2009 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1490 _ACEOF
1491 exit
1492 fi
1493
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1497
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1502 {
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1506 case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1518 fi
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1524 ac_retval=0
1525 else
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530 fi
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1532 return $ac_retval
1533
1534 } # ac_fn_c_try_compile
1535
1536 # ac_fn_c_try_cpp LINENO
1537 # ----------------------
1538 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_cpp ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 if { { ac_try="$ac_cpp conftest.$ac_ext"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } >/dev/null && {
1558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 }; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566 ac_retval=1
1567 fi
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 return $ac_retval
1570
1571 } # ac_fn_c_try_cpp
1572
1573 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574 # -------------------------------------------------------
1575 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1576 # the include files in INCLUDES and setting the cache variable VAR
1577 # accordingly.
1578 ac_fn_c_check_header_mongrel ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 $as_echo_n "checking for $2... " >&6; }
1584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585 $as_echo_n "(cached) " >&6
1586 fi
1587 eval ac_res=\$$3
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 else
1591 # Is the header compilable?
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1593 $as_echo_n "checking $2 usability... " >&6; }
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1596 $4
1597 #include <$2>
1598 _ACEOF
1599 if ac_fn_c_try_compile "$LINENO"; then :
1600 ac_header_compiler=yes
1601 else
1602 ac_header_compiler=no
1603 fi
1604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1606 $as_echo "$ac_header_compiler" >&6; }
1607
1608 # Is the header present?
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1610 $as_echo_n "checking $2 presence... " >&6; }
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_cpp "$LINENO"; then :
1616 ac_header_preproc=yes
1617 else
1618 ac_header_preproc=no
1619 fi
1620 rm -f conftest.err conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1622 $as_echo "$ac_header_preproc" >&6; }
1623
1624 # So? What about this header?
1625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1626 yes:no: )
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1628 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631 ;;
1632 no:yes:* )
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1634 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1636 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1638 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1640 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 ;;
1644 esac
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 eval "$3=\$ac_header_compiler"
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 fi
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657
1658 } # ac_fn_c_check_header_mongrel
1659
1660 # ac_fn_c_try_run LINENO
1661 # ----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1663 # that executables *can* be run.
1664 ac_fn_c_try_run ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>&5
1675 ac_status=$?
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1678 { { case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_try") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; }; }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: program exited with status $ac_status" >&5
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=$ac_status
1695 fi
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 return $ac_retval
1699
1700 } # ac_fn_c_try_run
1701
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1713 else
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1716 $4
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_compile "$LINENO"; then :
1720 eval "$3=yes"
1721 else
1722 eval "$3=no"
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 fi
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730
1731 } # ac_fn_c_check_header_compile
1732
1733 # ac_fn_c_try_link LINENO
1734 # -----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_link ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest$ac_exeext
1740 if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest$ac_exeext && {
1759 test "$cross_compiling" = yes ||
1760 $as_test_x conftest$ac_exeext
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768 fi
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1776
1777 } # ac_fn_c_try_link
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_cxx_try_compile LINENO
1847 # ----------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_compile ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=1
1878 fi
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
1881
1882 } # ac_fn_cxx_try_compile
1883
1884 # ac_fn_cxx_try_cpp LINENO
1885 # ------------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_cxx_try_cpp ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } >/dev/null && {
1906 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1907 test ! -s conftest.err
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915 fi
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1918
1919 } # ac_fn_cxx_try_cpp
1920
1921 # ac_fn_cxx_try_link LINENO
1922 # -------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_link ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_cxx_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 $as_test_x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_retval=1
1956 fi
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 return $ac_retval
1964
1965 } # ac_fn_cxx_try_link
1966 cat >config.log <<_ACEOF
1967 This file contains any messages produced by compilers while
1968 running configure, to aid debugging if configure makes a mistake.
1969
1970 It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
1971 generated by GNU Autoconf 2.64. Invocation command line was
1972
1973 $ $0 $@
1974
1975 _ACEOF
1976 exec 5>>config.log
1977 {
1978 cat <<_ASUNAME
1979 ## --------- ##
1980 ## Platform. ##
1981 ## --------- ##
1982
1983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988
1989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1991
1992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1999
2000 _ASUNAME
2001
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 $as_echo "PATH: $as_dir"
2008 done
2009 IFS=$as_save_IFS
2010
2011 } >&5
2012
2013 cat >&5 <<_ACEOF
2014
2015
2016 ## ----------- ##
2017 ## Core tests. ##
2018 ## ----------- ##
2019
2020 _ACEOF
2021
2022
2023 # Keep a trace of the command line.
2024 # Strip out --no-create and --no-recursion so they do not pile up.
2025 # Strip out --silent because we don't want to record it for future runs.
2026 # Also quote any args containing shell meta-characters.
2027 # Make two passes to allow for proper duplicate-argument suppression.
2028 ac_configure_args=
2029 ac_configure_args0=
2030 ac_configure_args1=
2031 ac_must_keep_next=false
2032 for ac_pass in 1 2
2033 do
2034 for ac_arg
2035 do
2036 case $ac_arg in
2037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039 | -silent | --silent | --silen | --sile | --sil)
2040 continue ;;
2041 *\'*)
2042 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 esac
2044 case $ac_pass in
2045 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2046 2)
2047 as_fn_append ac_configure_args1 " '$ac_arg'"
2048 if test $ac_must_keep_next = true; then
2049 ac_must_keep_next=false # Got value, back to normal.
2050 else
2051 case $ac_arg in
2052 *=* | --config-cache | -C | -disable-* | --disable-* \
2053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055 | -with-* | --with-* | -without-* | --without-* | --x)
2056 case "$ac_configure_args0 " in
2057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058 esac
2059 ;;
2060 -* ) ac_must_keep_next=true ;;
2061 esac
2062 fi
2063 as_fn_append ac_configure_args " '$ac_arg'"
2064 ;;
2065 esac
2066 done
2067 done
2068 { ac_configure_args0=; unset ac_configure_args0;}
2069 { ac_configure_args1=; unset ac_configure_args1;}
2070
2071 # When interrupted or exit'd, cleanup temporary files, and complete
2072 # config.log. We remove comments because anyway the quotes in there
2073 # would cause problems or look ugly.
2074 # WARNING: Use '\'' to represent an apostrophe within the trap.
2075 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076 trap 'exit_status=$?
2077 # Save into config.log some information that might help in debugging.
2078 {
2079 echo
2080
2081 cat <<\_ASBOX
2082 ## ---------------- ##
2083 ## Cache variables. ##
2084 ## ---------------- ##
2085 _ASBOX
2086 echo
2087 # The following way of writing the cache mishandles newlines in values,
2088 (
2089 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in #(
2092 *${as_nl}*)
2093 case $ac_var in #(
2094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 esac
2097 case $ac_var in #(
2098 _ | IFS | as_nl) ;; #(
2099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2100 *) { eval $ac_var=; unset $ac_var;} ;;
2101 esac ;;
2102 esac
2103 done
2104 (set) 2>&1 |
2105 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106 *${as_nl}ac_space=\ *)
2107 sed -n \
2108 "s/'\''/'\''\\\\'\'''\''/g;
2109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 ;; #(
2111 *)
2112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2113 ;;
2114 esac |
2115 sort
2116 )
2117 echo
2118
2119 cat <<\_ASBOX
2120 ## ----------------- ##
2121 ## Output variables. ##
2122 ## ----------------- ##
2123 _ASBOX
2124 echo
2125 for ac_var in $ac_subst_vars
2126 do
2127 eval ac_val=\$$ac_var
2128 case $ac_val in
2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 esac
2131 $as_echo "$ac_var='\''$ac_val'\''"
2132 done | sort
2133 echo
2134
2135 if test -n "$ac_subst_files"; then
2136 cat <<\_ASBOX
2137 ## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##
2140 _ASBOX
2141 echo
2142 for ac_var in $ac_subst_files
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 fi
2152
2153 if test -s confdefs.h; then
2154 cat <<\_ASBOX
2155 ## ----------- ##
2156 ## confdefs.h. ##
2157 ## ----------- ##
2158 _ASBOX
2159 echo
2160 cat confdefs.h
2161 echo
2162 fi
2163 test "$ac_signal" != 0 &&
2164 $as_echo "$as_me: caught signal $ac_signal"
2165 $as_echo "$as_me: exit $exit_status"
2166 } >&5
2167 rm -f core *.core core.conftest.* &&
2168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 exit $exit_status
2170 ' 0
2171 for ac_signal in 1 2 13 15; do
2172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2173 done
2174 ac_signal=0
2175
2176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2177 rm -f -r conftest* confdefs.h
2178
2179 $as_echo "/* confdefs.h */" > confdefs.h
2180
2181 # Predefined preprocessor variables.
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_URL "$PACKAGE_URL"
2205 _ACEOF
2206
2207
2208 # Let the site file select an alternate cache file if it wants to.
2209 # Prefer an explicitly selected file to automatically selected ones.
2210 ac_site_file1=NONE
2211 ac_site_file2=NONE
2212 if test -n "$CONFIG_SITE"; then
2213 ac_site_file1=$CONFIG_SITE
2214 elif test "x$prefix" != xNONE; then
2215 ac_site_file1=$prefix/share/config.site
2216 ac_site_file2=$prefix/etc/config.site
2217 else
2218 ac_site_file1=$ac_default_prefix/share/config.site
2219 ac_site_file2=$ac_default_prefix/etc/config.site
2220 fi
2221 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2222 do
2223 test "x$ac_site_file" = xNONE && continue
2224 if test -r "$ac_site_file"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2226 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2227 sed 's/^/| /' "$ac_site_file" >&5
2228 . "$ac_site_file"
2229 fi
2230 done
2231
2232 if test -r "$cache_file"; then
2233 # Some versions of bash will fail to source /dev/null (special
2234 # files actually), so we avoid doing that.
2235 if test -f "$cache_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237 $as_echo "$as_me: loading cache $cache_file" >&6;}
2238 case $cache_file in
2239 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240 *) . "./$cache_file";;
2241 esac
2242 fi
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245 $as_echo "$as_me: creating cache $cache_file" >&6;}
2246 >$cache_file
2247 fi
2248
2249 # Check that the precious variables saved in the cache have kept the same
2250 # value.
2251 ac_cache_corrupted=false
2252 for ac_var in $ac_precious_vars; do
2253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254 eval ac_new_set=\$ac_env_${ac_var}_set
2255 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256 eval ac_new_val=\$ac_env_${ac_var}_value
2257 case $ac_old_set,$ac_new_set in
2258 set,)
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261 ac_cache_corrupted=: ;;
2262 ,set)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,);;
2267 *)
2268 if test "x$ac_old_val" != "x$ac_new_val"; then
2269 # differences in whitespace do not lead to failure.
2270 ac_old_val_w=`echo x $ac_old_val`
2271 ac_new_val_w=`echo x $ac_new_val`
2272 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275 ac_cache_corrupted=:
2276 else
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279 eval $ac_var=\$ac_old_val
2280 fi
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2282 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2284 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2285 fi;;
2286 esac
2287 # Pass precious variables to config.status.
2288 if test "$ac_new_set" = set; then
2289 case $ac_new_val in
2290 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291 *) ac_arg=$ac_var=$ac_new_val ;;
2292 esac
2293 case " $ac_configure_args " in
2294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2295 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296 esac
2297 fi
2298 done
2299 if $ac_cache_corrupted; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2305 fi
2306 ## -------------------- ##
2307 ## Main body of script. ##
2308 ## -------------------- ##
2309
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
2316
2317
2318
2319
2320 #AC_INIT(package-unused, version-unused, libvtv)
2321
2322
2323 # -------
2324 # Options
2325 # -------
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2327 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2328 # Check whether --enable-version-specific-runtime-libs was given.
2329 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2330 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2331 yes) version_specific_libs=yes ;;
2332 no) version_specific_libs=no ;;
2333 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2334 esac
2335 else
2336 version_specific_libs=no
2337 fi
2338
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2340 $as_echo "$version_specific_libs" >&6; }
2341
2342 # Do not delete or change the following two lines. For why, see
2343 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2344 ac_aux_dir=
2345 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2346 for ac_t in install-sh install.sh shtool; do
2347 if test -f "$ac_dir/$ac_t"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/$ac_t -c"
2350 break 2
2351 fi
2352 done
2353 done
2354 if test -z "$ac_aux_dir"; then
2355 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2356 fi
2357
2358 # These three variables are undocumented and unsupported,
2359 # and are intended to be withdrawn in a future Autoconf release.
2360 # They can cause serious problems if a builder's source tree is in a directory
2361 # whose full name contains unusual characters.
2362 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2363 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2364 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2365
2366
2367 # Make sure we can run config.sub.
2368 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2369 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2370
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2372 $as_echo_n "checking build system type... " >&6; }
2373 if test "${ac_cv_build+set}" = set; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 ac_build_alias=$build_alias
2377 test "x$ac_build_alias" = x &&
2378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2379 test "x$ac_build_alias" = x &&
2380 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2381 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2382 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2383
2384 fi
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2386 $as_echo "$ac_cv_build" >&6; }
2387 case $ac_cv_build in
2388 *-*-*) ;;
2389 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2390 esac
2391 build=$ac_cv_build
2392 ac_save_IFS=$IFS; IFS='-'
2393 set x $ac_cv_build
2394 shift
2395 build_cpu=$1
2396 build_vendor=$2
2397 shift; shift
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2400 build_os=$*
2401 IFS=$ac_save_IFS
2402 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2403
2404
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2406 $as_echo_n "checking host system type... " >&6; }
2407 if test "${ac_cv_host+set}" = set; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 if test "x$host_alias" = x; then
2411 ac_cv_host=$ac_cv_build
2412 else
2413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2414 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2415 fi
2416
2417 fi
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2419 $as_echo "$ac_cv_host" >&6; }
2420 case $ac_cv_host in
2421 *-*-*) ;;
2422 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2423 esac
2424 host=$ac_cv_host
2425 ac_save_IFS=$IFS; IFS='-'
2426 set x $ac_cv_host
2427 shift
2428 host_cpu=$1
2429 host_vendor=$2
2430 shift; shift
2431 # Remember, the first character of IFS is used to create $*,
2432 # except with old shells:
2433 host_os=$*
2434 IFS=$ac_save_IFS
2435 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2436
2437
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2439 $as_echo_n "checking target system type... " >&6; }
2440 if test "${ac_cv_target+set}" = set; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 if test "x$target_alias" = x; then
2444 ac_cv_target=$ac_cv_host
2445 else
2446 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2447 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2448 fi
2449
2450 fi
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2452 $as_echo "$ac_cv_target" >&6; }
2453 case $ac_cv_target in
2454 *-*-*) ;;
2455 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2456 esac
2457 target=$ac_cv_target
2458 ac_save_IFS=$IFS; IFS='-'
2459 set x $ac_cv_target
2460 shift
2461 target_cpu=$1
2462 target_vendor=$2
2463 shift; shift
2464 # Remember, the first character of IFS is used to create $*,
2465 # except with old shells:
2466 target_os=$*
2467 IFS=$ac_save_IFS
2468 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2469
2470
2471 # The aliases save the names the user supplied, while $host etc.
2472 # will get canonicalized.
2473 test -n "$target_alias" &&
2474 test "$program_prefix$program_suffix$program_transform_name" = \
2475 NONENONEs,x,x, &&
2476 program_prefix=${target_alias}-
2477
2478 target_alias=${target_alias-$host_alias}
2479
2480 case ${build_alias} in
2481 "") build_noncanonical=${build} ;;
2482 *) build_noncanonical=${build_alias} ;;
2483 esac
2484
2485 case ${host_alias} in
2486 "") host_noncanonical=${build_noncanonical} ;;
2487 *) host_noncanonical=${host_alias} ;;
2488 esac
2489
2490 case ${target_alias} in
2491 "") target_noncanonical=${host_noncanonical} ;;
2492 *) target_noncanonical=${target_alias} ;;
2493 esac
2494
2495
2496
2497
2498
2499 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2500 -I\$(top_builddir)/../libstdc++-v3/include \
2501 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2502 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2503 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2504 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2505
2506
2507
2508
2509 # See if supported.
2510 unset VTV_SUPPORTED
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
2512 $as_echo_n "checking for host support for vtable verification... " >&6; }
2513 . ${srcdir}/configure.tgt
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
2515 $as_echo "$VTV_SUPPORTED" >&6; }
2516
2517 # Decide if it's usable.
2518 use_vtable_verify=no
2519 if test "x$VTV_SUPPORTED" = "xyes"; then
2520 use_vtable_verify=yes
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
2522 $as_echo "$as_me: using vtable verification" >&6;}
2523 fi
2524
2525 am__api_version='1.11'
2526
2527 # Find a good install program. We prefer a C program (faster),
2528 # so one script is as good as another. But avoid the broken or
2529 # incompatible versions:
2530 # SysV /etc/install, /usr/sbin/install
2531 # SunOS /usr/etc/install
2532 # IRIX /sbin/install
2533 # AIX /bin/install
2534 # AmigaOS /C/install, which installs bootblocks on floppy discs
2535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2538 # OS/2's system install, which has a completely different semantic
2539 # ./install, which can be erroneously created by make from ./install.sh.
2540 # Reject install programs that cannot install multiple files.
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2542 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2543 if test -z "$INSTALL"; then
2544 if test "${ac_cv_path_install+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 # Account for people who put trailing slashes in PATH elements.
2553 case $as_dir/ in #((
2554 ./ | .// | /[cC]/* | \
2555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2557 /usr/ucb/* ) ;;
2558 *)
2559 # OSF1 and SCO ODT 3.0 have their own names for install.
2560 # Don't use installbsd from OSF since it installs stuff as root
2561 # by default.
2562 for ac_prog in ginstall scoinst install; do
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2565 if test $ac_prog = install &&
2566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # AIX install. It has an incompatible calling convention.
2568 :
2569 elif test $ac_prog = install &&
2570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2571 # program-specific install script used by HP pwplus--don't use.
2572 :
2573 else
2574 rm -rf conftest.one conftest.two conftest.dir
2575 echo one > conftest.one
2576 echo two > conftest.two
2577 mkdir conftest.dir
2578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2579 test -s conftest.one && test -s conftest.two &&
2580 test -s conftest.dir/conftest.one &&
2581 test -s conftest.dir/conftest.two
2582 then
2583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2584 break 3
2585 fi
2586 fi
2587 fi
2588 done
2589 done
2590 ;;
2591 esac
2592
2593 done
2594 IFS=$as_save_IFS
2595
2596 rm -rf conftest.one conftest.two conftest.dir
2597
2598 fi
2599 if test "${ac_cv_path_install+set}" = set; then
2600 INSTALL=$ac_cv_path_install
2601 else
2602 # As a last resort, use the slow shell script. Don't cache a
2603 # value for INSTALL within a source directory, because that will
2604 # break other packages using the cache if that directory is
2605 # removed, or if the value is a relative name.
2606 INSTALL=$ac_install_sh
2607 fi
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2610 $as_echo "$INSTALL" >&6; }
2611
2612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2613 # It thinks the first close brace ends the variable substitution.
2614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2615
2616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2617
2618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2621 $as_echo_n "checking whether build environment is sane... " >&6; }
2622 # Just in case
2623 sleep 1
2624 echo timestamp > conftest.file
2625 # Reject unsafe characters in $srcdir or the absolute working directory
2626 # name. Accept space and tab only in the latter.
2627 am_lf='
2628 '
2629 case `pwd` in
2630 *[\\\"\#\$\&\'\`$am_lf]*)
2631 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2632 esac
2633 case $srcdir in
2634 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2635 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2636 esac
2637
2638 # Do `set' in a subshell so we don't clobber the current shell's
2639 # arguments. Must try -L first in case configure is actually a
2640 # symlink; some systems play weird games with the mod time of symlinks
2641 # (eg FreeBSD returns the mod time of the symlink's containing
2642 # directory).
2643 if (
2644 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2645 if test "$*" = "X"; then
2646 # -L didn't work.
2647 set X `ls -t "$srcdir/configure" conftest.file`
2648 fi
2649 rm -f conftest.file
2650 if test "$*" != "X $srcdir/configure conftest.file" \
2651 && test "$*" != "X conftest.file $srcdir/configure"; then
2652
2653 # If neither matched, then we have a broken ls. This can happen
2654 # if, for instance, CONFIG_SHELL is bash and it inherits a
2655 # broken ls alias from the environment. This has actually
2656 # happened. Such a system could not be considered "sane".
2657 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2658 alias in your environment" "$LINENO" 5
2659 fi
2660
2661 test "$2" = conftest.file
2662 )
2663 then
2664 # Ok.
2665 :
2666 else
2667 as_fn_error "newly created file is older than distributed files!
2668 Check your system clock" "$LINENO" 5
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2672 test "$program_prefix" != NONE &&
2673 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2674 # Use a double $ so make ignores it.
2675 test "$program_suffix" != NONE &&
2676 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2677 # Double any \ or $.
2678 # By default was `s,x,x', remove it if useless.
2679 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2680 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2681
2682 # expand $ac_aux_dir to an absolute path
2683 am_aux_dir=`cd $ac_aux_dir && pwd`
2684
2685 if test x"${MISSING+set}" != xset; then
2686 case $am_aux_dir in
2687 *\ * | *\ *)
2688 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2689 *)
2690 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2691 esac
2692 fi
2693 # Use eval to expand $SHELL
2694 if eval "$MISSING --run true"; then
2695 am_missing_run="$MISSING --run "
2696 else
2697 am_missing_run=
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2699 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2700 fi
2701
2702 if test x"${install_sh}" != xset; then
2703 case $am_aux_dir in
2704 *\ * | *\ *)
2705 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2706 *)
2707 install_sh="\${SHELL} $am_aux_dir/install-sh"
2708 esac
2709 fi
2710
2711 # Installed binaries are usually stripped using `strip' when the user
2712 # run `make install-strip'. However `strip' might not be the right
2713 # tool to use in cross-compilation environments, therefore Automake
2714 # will honor the `STRIP' environment variable to overrule this program.
2715 if test "$cross_compiling" != no; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}strip; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_STRIP+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$STRIP"; then
2725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 STRIP=$ac_cv_prog_STRIP
2745 if test -n "$STRIP"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2747 $as_echo "$STRIP" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753
2754 fi
2755 if test -z "$ac_cv_prog_STRIP"; then
2756 ac_ct_STRIP=$STRIP
2757 # Extract the first word of "strip", so it can be a program name with args.
2758 set dummy strip; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 if test -n "$ac_ct_STRIP"; then
2765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_ac_ct_STRIP="strip"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778 done
2779 done
2780 IFS=$as_save_IFS
2781
2782 fi
2783 fi
2784 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2785 if test -n "$ac_ct_STRIP"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2787 $as_echo "$ac_ct_STRIP" >&6; }
2788 else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793 if test "x$ac_ct_STRIP" = x; then
2794 STRIP=":"
2795 else
2796 case $cross_compiling:$ac_tool_warned in
2797 yes:)
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800 ac_tool_warned=yes ;;
2801 esac
2802 STRIP=$ac_ct_STRIP
2803 fi
2804 else
2805 STRIP="$ac_cv_prog_STRIP"
2806 fi
2807
2808 fi
2809 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2812 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2813 if test -z "$MKDIR_P"; then
2814 if test "${ac_cv_path_mkdir+set}" = set; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_prog in mkdir gmkdir; do
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2825 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2826 'mkdir (GNU coreutils) '* | \
2827 'mkdir (coreutils) '* | \
2828 'mkdir (fileutils) '4.1*)
2829 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2830 break 3;;
2831 esac
2832 done
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi
2838
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 test -d ./--version && rmdir ./--version
2847 MKDIR_P="$ac_install_sh -d"
2848 fi
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2851 $as_echo "$MKDIR_P" >&6; }
2852
2853 mkdir_p="$MKDIR_P"
2854 case $mkdir_p in
2855 [\\/$]* | ?:[\\/]*) ;;
2856 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2857 esac
2858
2859 for ac_prog in gawk mawk nawk awk
2860 do
2861 # Extract the first word of "$ac_prog", so it can be a program name with args.
2862 set dummy $ac_prog; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if test "${ac_cv_prog_AWK+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$AWK"; then
2869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_AWK="$ac_prog"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 AWK=$ac_cv_prog_AWK
2889 if test -n "$AWK"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2891 $as_echo "$AWK" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 test -n "$AWK" && break
2899 done
2900
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2902 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2903 set x ${MAKE-make}
2904 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2905 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 cat >conftest.make <<\_ACEOF
2909 SHELL = /bin/sh
2910 all:
2911 @echo '@@@%%%=$(MAKE)=@@@%%%'
2912 _ACEOF
2913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2915 *@@@%%%=?*=@@@%%%*)
2916 eval ac_cv_prog_make_${ac_make}_set=yes;;
2917 *)
2918 eval ac_cv_prog_make_${ac_make}_set=no;;
2919 esac
2920 rm -f conftest.make
2921 fi
2922 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2924 $as_echo "yes" >&6; }
2925 SET_MAKE=
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 SET_MAKE="MAKE=${MAKE-make}"
2930 fi
2931
2932 rm -rf .tst 2>/dev/null
2933 mkdir .tst 2>/dev/null
2934 if test -d .tst; then
2935 am__leading_dot=.
2936 else
2937 am__leading_dot=_
2938 fi
2939 rmdir .tst 2>/dev/null
2940
2941 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2942 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2943 # is not polluted with repeated "-I."
2944 am__isrc=' -I$(srcdir)'
2945 # test to see if srcdir already configured
2946 if test -f $srcdir/config.status; then
2947 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2948 fi
2949 fi
2950
2951 # test whether we have cygpath
2952 if test -z "$CYGPATH_W"; then
2953 if (cygpath --version) >/dev/null 2>/dev/null; then
2954 CYGPATH_W='cygpath -w'
2955 else
2956 CYGPATH_W=echo
2957 fi
2958 fi
2959
2960
2961 # Define the identity of the package.
2962 PACKAGE='libvtv'
2963 VERSION='1.0'
2964
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE "$PACKAGE"
2968 _ACEOF
2969
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define VERSION "$VERSION"
2973 _ACEOF
2974
2975 # Some tools Automake needs.
2976
2977 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2978
2979
2980 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2981
2982
2983 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2984
2985
2986 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2987
2988
2989 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2990
2991 # We need awk for the "check" target. The system "awk" is bad on
2992 # some platforms.
2993 # Always define AMTAR for backward compatibility.
2994
2995 AMTAR=${AMTAR-"${am_missing_run}tar"}
2996
2997 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2998
2999
3000
3001
3002
3003 # Default to --enable-multilib
3004 # Check whether --enable-multilib was given.
3005 if test "${enable_multilib+set}" = set; then :
3006 enableval=$enable_multilib; case "$enableval" in
3007 yes) multilib=yes ;;
3008 no) multilib=no ;;
3009 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3010 esac
3011 else
3012 multilib=yes
3013 fi
3014
3015
3016 # We may get other options which we leave undocumented:
3017 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3018 # See config-ml.in if you want the gory details.
3019
3020 if test "$srcdir" = "."; then
3021 if test "$with_target_subdir" != "."; then
3022 multi_basedir="$srcdir/$with_multisrctop../.."
3023 else
3024 multi_basedir="$srcdir/$with_multisrctop.."
3025 fi
3026 else
3027 multi_basedir="$srcdir/.."
3028 fi
3029
3030
3031 # Even if the default multilib is not a cross compilation,
3032 # it may be that some of the other multilibs are.
3033 if test $cross_compiling = no && test $multilib = yes \
3034 && test "x${with_multisubdir}" != x ; then
3035 cross_compiling=maybe
3036 fi
3037
3038 ac_config_commands="$ac_config_commands default-1"
3039
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3042 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3043 # Check whether --enable-maintainer-mode was given.
3044 if test "${enable_maintainer_mode+set}" = set; then :
3045 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3046 else
3047 USE_MAINTAINER_MODE=no
3048 fi
3049
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3051 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3052 if test $USE_MAINTAINER_MODE = yes; then
3053 MAINTAINER_MODE_TRUE=
3054 MAINTAINER_MODE_FALSE='#'
3055 else
3056 MAINTAINER_MODE_TRUE='#'
3057 MAINTAINER_MODE_FALSE=
3058 fi
3059
3060 MAINT=$MAINTAINER_MODE_TRUE
3061
3062
3063
3064
3065
3066 # These need to be absolute paths, yet at the same time need to
3067 # canonicalize only relative paths, because then amd will not unmount
3068 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
3069 libvtv_builddir=`${PWDCMD-pwd}`
3070 case $srcdir in
3071 \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
3072 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
3073 esac
3074 toplevel_builddir=${libvtv_builddir}/..
3075 toplevel_srcdir=${libvtv_srcdir}/..
3076
3077
3078
3079
3080
3081
3082 # Calculate toolexeclibdir
3083 # Also toolexecdir, though it's only used in toolexeclibdir
3084 case ${version_specific_libs} in
3085 yes)
3086 # Need the gcc compiler version to know where to install libraries
3087 # and header files if --enable-version-specific-runtime-libs option
3088 # is selected.
3089 toolexecdir='$(libdir)/gcc/$(target_alias)'
3090 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3091 ;;
3092 no)
3093 if test -n "$with_cross_host" &&
3094 test x"$with_cross_host" != x"no"; then
3095 # Install a library built with a cross compiler in tooldir, not libdir.
3096 toolexecdir='$(exec_prefix)/$(target_alias)'
3097 toolexeclibdir='$(toolexecdir)/lib'
3098 else
3099 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3100 toolexeclibdir='$(libdir)'
3101 fi
3102 multi_os_directory=`$CC -print-multi-os-directory`
3103 case $multi_os_directory in
3104 .) ;; # Avoid trailing /.
3105 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3106 esac
3107 ;;
3108 esac
3109
3110
3111
3112 DEPDIR="${am__leading_dot}deps"
3113
3114 ac_config_commands="$ac_config_commands depfiles"
3115
3116
3117 am_make=${MAKE-make}
3118 cat > confinc << 'END'
3119 am__doit:
3120 @echo this is the am__doit target
3121 .PHONY: am__doit
3122 END
3123 # If we don't find an include directive, just comment out the code.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3126 am__include="#"
3127 am__quote=
3128 _am_result=none
3129 # First try GNU make style include.
3130 echo "include confinc" > confmf
3131 # Ignore all kinds of additional output from `make'.
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3134 am__include=include
3135 am__quote=
3136 _am_result=GNU
3137 ;;
3138 esac
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141 echo '.include "confinc"' > confmf
3142 case `$am_make -s -f confmf 2> /dev/null` in #(
3143 *the\ am__doit\ target*)
3144 am__include=.include
3145 am__quote="\""
3146 _am_result=BSD
3147 ;;
3148 esac
3149 fi
3150
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153 $as_echo "$_am_result" >&6; }
3154 rm -f confinc confmf
3155
3156 # Check whether --enable-dependency-tracking was given.
3157 if test "${enable_dependency_tracking+set}" = set; then :
3158 enableval=$enable_dependency_tracking;
3159 fi
3160
3161 if test "x$enable_dependency_tracking" != xno; then
3162 am_depcomp="$ac_aux_dir/depcomp"
3163 AMDEPBACKSLASH='\'
3164 fi
3165 if test "x$enable_dependency_tracking" != xno; then
3166 AMDEP_TRUE=
3167 AMDEP_FALSE='#'
3168 else
3169 AMDEP_TRUE='#'
3170 AMDEP_FALSE=
3171 fi
3172
3173
3174 ac_ext=c
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 if test -z "$ac_cv_prog_CC"; then
3219 ac_ct_CC=$CC
3220 # Extract the first word of "gcc", so it can be a program name with args.
3221 set dummy gcc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$ac_ct_CC"; then
3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_ac_ct_CC="gcc"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 $as_echo "$ac_ct_CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256 if test "x$ac_ct_CC" = x; then
3257 CC=""
3258 else
3259 case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265 CC=$ac_ct_CC
3266 fi
3267 else
3268 CC="$ac_cv_prog_CC"
3269 fi
3270
3271 if test -z "$CC"; then
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC="${ac_tool_prefix}cc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 fi
3312 if test -z "$CC"; then
3313 # Extract the first word of "cc", so it can be a program name with args.
3314 set dummy cc; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_CC+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 ac_prog_rejected=no
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332 ac_prog_rejected=yes
3333 continue
3334 fi
3335 ac_cv_prog_CC="cc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 if test $ac_prog_rejected = yes; then
3344 # We found a bogon in the path, so make sure we never use it.
3345 set dummy $ac_cv_prog_CC
3346 shift
3347 if test $# != 0; then
3348 # We chose a different compiler from the bogus one.
3349 # However, it has the same basename, so the bogon will be chosen
3350 # first if we set CC to just the basename; use the full file name.
3351 shift
3352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353 fi
3354 fi
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 fi
3365
3366
3367 fi
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 for ac_prog in cl.exe
3371 do
3372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if test "${ac_cv_prog_CC+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 $as_echo "$CC" >&6; }
3403 else
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 test -n "$CC" && break
3410 done
3411 fi
3412 if test -z "$CC"; then
3413 ac_ct_CC=$CC
3414 for ac_prog in cl.exe
3415 do
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi
3442 fi
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453 test -n "$ac_ct_CC" && break
3454 done
3455
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3466 fi
3467 fi
3468
3469 fi
3470
3471
3472 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error "no acceptable C compiler found in \$PATH
3475 See \`config.log' for more details." "$LINENO" 5; }
3476
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479 set X $ac_compile
3480 ac_compiler=$2
3481 for ac_option in --version -v -V -qversion; do
3482 { { ac_try="$ac_compiler $ac_option >&5"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 ac_status=$?
3491 if test -s conftest.err; then
3492 sed '10a\
3493 ... rest of stderr output deleted ...
3494 10q' conftest.err >conftest.er1
3495 cat conftest.er1 >&5
3496 rm -f conftest.er1 conftest.err
3497 fi
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 done
3501
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 ac_clean_files_save=$ac_clean_files
3514 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3515 # Try to create an executable without -o first, disregard a.out.
3516 # It will help us diagnose broken compilers, and finding out an intuition
3517 # of exeext.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3519 $as_echo_n "checking for C compiler default output file name... " >&6; }
3520 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3521
3522 # The possible output files:
3523 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3524
3525 ac_rmfiles=
3526 for ac_file in $ac_files
3527 do
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531 esac
3532 done
3533 rm -f $ac_rmfiles
3534
3535 if { { ac_try="$ac_link_default"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link_default") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; then :
3546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549 # so that the user can short-circuit this test for compilers unknown to
3550 # Autoconf.
3551 for ac_file in $ac_files ''
3552 do
3553 test -f "$ac_file" || continue
3554 case $ac_file in
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3556 ;;
3557 [ab].out )
3558 # We found the default executable, but exeext='' is most
3559 # certainly right.
3560 break;;
3561 *.* )
3562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 then :; else
3564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 fi
3566 # We set ac_cv_exeext here because the later test for it is not
3567 # safe: cross compilers may not add the suffix if given an `-o'
3568 # argument, so we may need to know it at that point already.
3569 # Even if this section looks crufty: it has the advantage of
3570 # actually working.
3571 break;;
3572 * )
3573 break;;
3574 esac
3575 done
3576 test "$ac_cv_exeext" = no && ac_cv_exeext=
3577
3578 else
3579 ac_file=''
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3582 $as_echo "$ac_file" >&6; }
3583 if test -z "$ac_file"; then :
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 { as_fn_set_status 77
3590 as_fn_error "C compiler cannot create executables
3591 See \`config.log' for more details." "$LINENO" 5; }; }
3592 fi
3593 ac_exeext=$ac_cv_exeext
3594
3595 # Check that the compiler produces executables we can run. If not, either
3596 # the compiler is broken, or we cross compile.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598 $as_echo_n "checking whether the C compiler works... " >&6; }
3599 # If not cross compiling, check that we can run a simple program.
3600 if test "$cross_compiling" != yes; then
3601 if { ac_try='./$ac_file'
3602 { { case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_try") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; }; then
3612 cross_compiling=no
3613 else
3614 if test "$cross_compiling" = maybe; then
3615 cross_compiling=yes
3616 else
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot run C compiled programs.
3620 If you meant to cross compile, use \`--host'.
3621 See \`config.log' for more details." "$LINENO" 5; }
3622 fi
3623 fi
3624 fi
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3627
3628 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3629 ac_clean_files=$ac_clean_files_save
3630 # Check that the compiler produces executables we can run. If not, either
3631 # the compiler is broken, or we cross compile.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633 $as_echo_n "checking whether we are cross compiling... " >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3635 $as_echo "$cross_compiling" >&6; }
3636
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3638 $as_echo_n "checking for suffix of executables... " >&6; }
3639 if { { ac_try="$ac_link"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3651 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3652 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 # `rm'.
3654 for ac_file in conftest.exe conftest conftest.*; do
3655 test -f "$ac_file" || continue
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3659 break;;
3660 * ) break;;
3661 esac
3662 done
3663 else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error "cannot compute suffix of executables: cannot compile and link
3667 See \`config.log' for more details." "$LINENO" 5; }
3668 fi
3669 rm -f conftest$ac_cv_exeext
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3671 $as_echo "$ac_cv_exeext" >&6; }
3672
3673 rm -f conftest.$ac_ext
3674 EXEEXT=$ac_cv_exeext
3675 ac_exeext=$EXEEXT
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3677 $as_echo_n "checking for suffix of object files... " >&6; }
3678 if test "${ac_cv_objext+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { { ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compile") 2>&5
3701 ac_status=$?
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }; then :
3704 for ac_file in conftest.o conftest.obj conftest.*; do
3705 test -f "$ac_file" || continue;
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 break;;
3710 esac
3711 done
3712 else
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error "cannot compute suffix of object files: cannot compile
3719 See \`config.log' for more details." "$LINENO" 5; }
3720 fi
3721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3722 fi
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3724 $as_echo "$ac_cv_objext" >&6; }
3725 OBJEXT=$ac_cv_objext
3726 ac_objext=$OBJEXT
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3728 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3729 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734
3735 int
3736 main ()
3737 {
3738 #ifndef __GNUC__
3739 choke me
3740 #endif
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_compiler_gnu=yes
3748 else
3749 ac_compiler_gnu=no
3750 fi
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3756 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3757 if test $ac_compiler_gnu = yes; then
3758 GCC=yes
3759 else
3760 GCC=
3761 fi
3762 ac_test_CFLAGS=${CFLAGS+set}
3763 ac_save_CFLAGS=$CFLAGS
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3765 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3766 if test "${ac_cv_prog_cc_g+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 ac_save_c_werror_flag=$ac_c_werror_flag
3770 ac_c_werror_flag=yes
3771 ac_cv_prog_cc_g=no
3772 CFLAGS="-g"
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775
3776 int
3777 main ()
3778 {
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_g=yes
3786 else
3787 CFLAGS=""
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790
3791 int
3792 main ()
3793 {
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800
3801 else
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3803 CFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_prog_cc_g=yes
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3826 $as_echo "$ac_cv_prog_cc_g" >&6; }
3827 if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3831 CFLAGS="-g -O2"
3832 else
3833 CFLAGS="-g"
3834 fi
3835 else
3836 if test "$GCC" = yes; then
3837 CFLAGS="-O2"
3838 else
3839 CFLAGS=
3840 fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3843 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3844 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_cv_prog_cc_c89=no
3848 ac_save_CC=$CC
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851 #include <stdarg.h>
3852 #include <stdio.h>
3853 #include <sys/types.h>
3854 #include <sys/stat.h>
3855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3856 struct buf { int x; };
3857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3858 static char *e (p, i)
3859 char **p;
3860 int i;
3861 {
3862 return p[i];
3863 }
3864 static char *f (char * (*g) (char **, int), char **p, ...)
3865 {
3866 char *s;
3867 va_list v;
3868 va_start (v,p);
3869 s = g (p, va_arg (v,int));
3870 va_end (v);
3871 return s;
3872 }
3873
3874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3875 function prototypes and stuff, but not '\xHH' hex character constants.
3876 These don't provoke an error unfortunately, instead are silently treated
3877 as 'x'. The following induces an error, until -std is added to get
3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3879 array size at least. It's necessary to write '\x00'==0 to get something
3880 that's true only with -std. */
3881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882
3883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3884 inside strings and character constants. */
3885 #define FOO(x) 'x'
3886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3887
3888 int test (int i, double x);
3889 struct s1 {int (*f) (int a);};
3890 struct s2 {int (*f) (double a);};
3891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 int argc;
3893 char **argv;
3894 int
3895 main ()
3896 {
3897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3904 do
3905 CC="$ac_save_CC $ac_arg"
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_cv_prog_cc_c89=$ac_arg
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext
3910 test "x$ac_cv_prog_cc_c89" != "xno" && break
3911 done
3912 rm -f conftest.$ac_ext
3913 CC=$ac_save_CC
3914
3915 fi
3916 # AC_CACHE_VAL
3917 case "x$ac_cv_prog_cc_c89" in
3918 x)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3920 $as_echo "none needed" >&6; } ;;
3921 xno)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3923 $as_echo "unsupported" >&6; } ;;
3924 *)
3925 CC="$CC $ac_cv_prog_cc_c89"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3928 esac
3929 if test "x$ac_cv_prog_cc_c89" != xno; then :
3930
3931 fi
3932
3933 ac_ext=c
3934 ac_cpp='$CPP $CPPFLAGS'
3935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3938
3939 depcc="$CC" am_compiler_list=
3940
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3942 $as_echo_n "checking dependency style of $depcc... " >&6; }
3943 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3947 # We make a subdir and do the tests there. Otherwise we can end up
3948 # making bogus files that we don't know about and never remove. For
3949 # instance it was reported that on HP-UX the gcc test will end up
3950 # making a dummy file named `D' -- because `-MD' means `put the output
3951 # in D'.
3952 mkdir conftest.dir
3953 # Copy depcomp to subdir because otherwise we won't find it if we're
3954 # using a relative directory.
3955 cp "$am_depcomp" conftest.dir
3956 cd conftest.dir
3957 # We will build objects and dependencies in a subdirectory because
3958 # it helps to detect inapplicable dependency modes. For instance
3959 # both Tru64's cc and ICC support -MD to output dependencies as a
3960 # side effect of compilation, but ICC will put the dependencies in
3961 # the current directory while Tru64 will put them in the object
3962 # directory.
3963 mkdir sub
3964
3965 am_cv_CC_dependencies_compiler_type=none
3966 if test "$am_compiler_list" = ""; then
3967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3968 fi
3969 am__universal=false
3970 case " $depcc " in #(
3971 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3972 esac
3973
3974 for depmode in $am_compiler_list; do
3975 # Setup a source with many dependencies, because some compilers
3976 # like to wrap large dependency lists on column 80 (with \), and
3977 # we should not choose a depcomp mode which is confused by this.
3978 #
3979 # We need to recreate these files for each test, as the compiler may
3980 # overwrite some of them when testing with obscure command lines.
3981 # This happens at least with the AIX C compiler.
3982 : > sub/conftest.c
3983 for i in 1 2 3 4 5 6; do
3984 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986 # Solaris 8's {/usr,}/bin/sh.
3987 touch sub/conftst$i.h
3988 done
3989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3990
3991 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3992 # mode. It turns out that the SunPro C++ compiler does not properly
3993 # handle `-M -o', and we need to detect this. Also, some Intel
3994 # versions had trouble with output in subdirs
3995 am__obj=sub/conftest.${OBJEXT-o}
3996 am__minus_obj="-o $am__obj"
3997 case $depmode in
3998 gcc)
3999 # This depmode causes a compiler race in universal mode.
4000 test "$am__universal" = false || continue
4001 ;;
4002 nosideeffect)
4003 # after this tag, mechanisms are not by side-effect, so they'll
4004 # only be used when explicitly requested
4005 if test "x$enable_dependency_tracking" = xyes; then
4006 continue
4007 else
4008 break
4009 fi
4010 ;;
4011 msvisualcpp | msvcmsys)
4012 # This compiler won't grok `-c -o', but also, the minuso test has
4013 # not run yet. These depmodes are late enough in the game, and
4014 # so weak that their functioning should not be impacted.
4015 am__obj=conftest.${OBJEXT-o}
4016 am__minus_obj=
4017 ;;
4018 none) break ;;
4019 esac
4020 if depmode=$depmode \
4021 source=sub/conftest.c object=$am__obj \
4022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4023 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4024 >/dev/null 2>conftest.err &&
4025 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4027 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4029 # icc doesn't choke on unknown options, it will just issue warnings
4030 # or remarks (even with -Werror). So we grep stderr for any message
4031 # that says an option was ignored or not supported.
4032 # When given -MP, icc 7.0 and 7.1 complain thusly:
4033 # icc: Command line warning: ignoring option '-M'; no argument required
4034 # The diagnosis changed in icc 8.0:
4035 # icc: Command line remark: option '-MP' not supported
4036 if (grep 'ignoring option' conftest.err ||
4037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4038 am_cv_CC_dependencies_compiler_type=$depmode
4039 break
4040 fi
4041 fi
4042 done
4043
4044 cd ..
4045 rm -rf conftest.dir
4046 else
4047 am_cv_CC_dependencies_compiler_type=none
4048 fi
4049
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4052 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4053 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4054
4055 if
4056 test "x$enable_dependency_tracking" != xno \
4057 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4058 am__fastdepCC_TRUE=
4059 am__fastdepCC_FALSE='#'
4060 else
4061 am__fastdepCC_TRUE='#'
4062 am__fastdepCC_FALSE=
4063 fi
4064
4065
4066
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4073 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4076 CPP=
4077 fi
4078 if test -z "$CPP"; then
4079 if test "${ac_cv_prog_CPP+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 # Double quotes because CPP needs to be expanded
4083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4084 do
4085 ac_preproc_ok=false
4086 for ac_c_preproc_warn_flag in '' yes
4087 do
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #ifdef __STDC__
4097 # include <limits.h>
4098 #else
4099 # include <assert.h>
4100 #endif
4101 Syntax error
4102 _ACEOF
4103 if ac_fn_c_try_cpp "$LINENO"; then :
4104
4105 else
4106 # Broken: fails on valid input.
4107 continue
4108 fi
4109 rm -f conftest.err conftest.$ac_ext
4110
4111 # OK, works on sane cases. Now check whether nonexistent headers
4112 # can be detected and how.
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #include <ac_nonexistent.h>
4116 _ACEOF
4117 if ac_fn_c_try_cpp "$LINENO"; then :
4118 # Broken: success on invalid input.
4119 continue
4120 else
4121 # Passes both tests.
4122 ac_preproc_ok=:
4123 break
4124 fi
4125 rm -f conftest.err conftest.$ac_ext
4126
4127 done
4128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4129 rm -f conftest.err conftest.$ac_ext
4130 if $ac_preproc_ok; then :
4131 break
4132 fi
4133
4134 done
4135 ac_cv_prog_CPP=$CPP
4136
4137 fi
4138 CPP=$ac_cv_prog_CPP
4139 else
4140 ac_cv_prog_CPP=$CPP
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4143 $as_echo "$CPP" >&6; }
4144 ac_preproc_ok=false
4145 for ac_c_preproc_warn_flag in '' yes
4146 do
4147 # Use a header file that comes with gcc, so configuring glibc
4148 # with a fresh cross-compiler works.
4149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 # <limits.h> exists even on freestanding compilers.
4151 # On the NeXT, cc -E runs the code through the compiler's parser,
4152 # not just through cpp. "Syntax error" is here to catch this case.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #ifdef __STDC__
4156 # include <limits.h>
4157 #else
4158 # include <assert.h>
4159 #endif
4160 Syntax error
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4163
4164 else
4165 # Broken: fails on valid input.
4166 continue
4167 fi
4168 rm -f conftest.err conftest.$ac_ext
4169
4170 # OK, works on sane cases. Now check whether nonexistent headers
4171 # can be detected and how.
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <ac_nonexistent.h>
4175 _ACEOF
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4177 # Broken: success on invalid input.
4178 continue
4179 else
4180 # Passes both tests.
4181 ac_preproc_ok=:
4182 break
4183 fi
4184 rm -f conftest.err conftest.$ac_ext
4185
4186 done
4187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4188 rm -f conftest.err conftest.$ac_ext
4189 if $ac_preproc_ok; then :
4190
4191 else
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4195 See \`config.log' for more details." "$LINENO" 5; }
4196 fi
4197
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4206 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4207 if test "${ac_cv_path_GREP+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -z "$GREP"; then
4211 ac_path_GREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215 do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in grep ggrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4225 *GNU*)
4226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4227 *)
4228 ac_count=0
4229 $as_echo_n 0123456789 >"conftest.in"
4230 while :
4231 do
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 as_fn_arith $ac_count + 1 && ac_count=$as_val
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP="$ac_path_GREP"
4242 ac_path_GREP_max=$ac_count
4243 fi
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4246 done
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 esac
4249
4250 $ac_path_GREP_found && break 3
4251 done
4252 done
4253 done
4254 IFS=$as_save_IFS
4255 if test -z "$ac_cv_path_GREP"; then
4256 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4257 fi
4258 else
4259 ac_cv_path_GREP=$GREP
4260 fi
4261
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4264 $as_echo "$ac_cv_path_GREP" >&6; }
4265 GREP="$ac_cv_path_GREP"
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4269 $as_echo_n "checking for egrep... " >&6; }
4270 if test "${ac_cv_path_EGREP+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4274 then ac_cv_path_EGREP="$GREP -E"
4275 else
4276 if test -z "$EGREP"; then
4277 ac_path_EGREP_found=false
4278 # Loop through the user's path and test for each of PROGNAME-LIST
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4281 do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_prog in egrep; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4287 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4288 # Check for GNU ac_path_EGREP and select it if it is found.
4289 # Check for GNU $ac_path_EGREP
4290 case `"$ac_path_EGREP" --version 2>&1` in
4291 *GNU*)
4292 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4293 *)
4294 ac_count=0
4295 $as_echo_n 0123456789 >"conftest.in"
4296 while :
4297 do
4298 cat "conftest.in" "conftest.in" >"conftest.tmp"
4299 mv "conftest.tmp" "conftest.in"
4300 cp "conftest.in" "conftest.nl"
4301 $as_echo 'EGREP' >> "conftest.nl"
4302 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4304 as_fn_arith $ac_count + 1 && ac_count=$as_val
4305 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4306 # Best one so far, save it but keep looking for a better one
4307 ac_cv_path_EGREP="$ac_path_EGREP"
4308 ac_path_EGREP_max=$ac_count
4309 fi
4310 # 10*(2^10) chars as input seems more than enough
4311 test $ac_count -gt 10 && break
4312 done
4313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4314 esac
4315
4316 $ac_path_EGREP_found && break 3
4317 done
4318 done
4319 done
4320 IFS=$as_save_IFS
4321 if test -z "$ac_cv_path_EGREP"; then
4322 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4323 fi
4324 else
4325 ac_cv_path_EGREP=$EGREP
4326 fi
4327
4328 fi
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4331 $as_echo "$ac_cv_path_EGREP" >&6; }
4332 EGREP="$ac_cv_path_EGREP"
4333
4334
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4336 $as_echo_n "checking for ANSI C header files... " >&6; }
4337 if test "${ac_cv_header_stdc+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <stdlib.h>
4343 #include <stdarg.h>
4344 #include <string.h>
4345 #include <float.h>
4346
4347 int
4348 main ()
4349 {
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_header_stdc=yes
4357 else
4358 ac_cv_header_stdc=no
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361
4362 if test $ac_cv_header_stdc = yes; then
4363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #include <string.h>
4367
4368 _ACEOF
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 $EGREP "memchr" >/dev/null 2>&1; then :
4371
4372 else
4373 ac_cv_header_stdc=no
4374 fi
4375 rm -f conftest*
4376
4377 fi
4378
4379 if test $ac_cv_header_stdc = yes; then
4380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <stdlib.h>
4384
4385 _ACEOF
4386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387 $EGREP "free" >/dev/null 2>&1; then :
4388
4389 else
4390 ac_cv_header_stdc=no
4391 fi
4392 rm -f conftest*
4393
4394 fi
4395
4396 if test $ac_cv_header_stdc = yes; then
4397 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4398 if test "$cross_compiling" = yes; then :
4399 :
4400 else
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #include <ctype.h>
4404 #include <stdlib.h>
4405 #if ((' ' & 0x0FF) == 0x020)
4406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4408 #else
4409 # define ISLOWER(c) \
4410 (('a' <= (c) && (c) <= 'i') \
4411 || ('j' <= (c) && (c) <= 'r') \
4412 || ('s' <= (c) && (c) <= 'z'))
4413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4414 #endif
4415
4416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4417 int
4418 main ()
4419 {
4420 int i;
4421 for (i = 0; i < 256; i++)
4422 if (XOR (islower (i), ISLOWER (i))
4423 || toupper (i) != TOUPPER (i))
4424 return 2;
4425 return 0;
4426 }
4427 _ACEOF
4428 if ac_fn_c_try_run "$LINENO"; then :
4429
4430 else
4431 ac_cv_header_stdc=no
4432 fi
4433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4434 conftest.$ac_objext conftest.beam conftest.$ac_ext
4435 fi
4436
4437 fi
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4440 $as_echo "$ac_cv_header_stdc" >&6; }
4441 if test $ac_cv_header_stdc = yes; then
4442
4443 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4444
4445 fi
4446
4447 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4448 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4449 inttypes.h stdint.h unistd.h
4450 do :
4451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4452 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4453 "
4454 eval as_val=\$$as_ac_Header
4455 if test "x$as_val" = x""yes; then :
4456 cat >>confdefs.h <<_ACEOF
4457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4458 _ACEOF
4459
4460 fi
4461
4462 done
4463
4464
4465
4466 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4467 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4468 MINIX=yes
4469 else
4470 MINIX=
4471 fi
4472
4473
4474 if test "$MINIX" = yes; then
4475
4476 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4477
4478
4479 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4480
4481
4482 $as_echo "#define _MINIX 1" >>confdefs.h
4483
4484 fi
4485
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4489 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494
4495 # define __EXTENSIONS__ 1
4496 $ac_includes_default
4497 int
4498 main ()
4499 {
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506 ac_cv_safe_to_define___extensions__=yes
4507 else
4508 ac_cv_safe_to_define___extensions__=no
4509 fi
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4514 test $ac_cv_safe_to_define___extensions__ = yes &&
4515 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4516
4517 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4518
4519 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4520
4521 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4522
4523 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4524
4525
4526
4527 for ac_func in __secure_getenv
4528 do :
4529 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
4530 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
4531 cat >>confdefs.h <<_ACEOF
4532 #define HAVE___SECURE_GETENV 1
4533 _ACEOF
4534
4535 fi
4536 done
4537
4538
4539
4540 for ac_func in secure_getenv
4541 do :
4542 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4543 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4544 cat >>confdefs.h <<_ACEOF
4545 #define HAVE_SECURE_GETENV 1
4546 _ACEOF
4547
4548 fi
4549 done
4550
4551
4552 # Check for programs.
4553
4554
4555 ac_ext=c
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4581 fi
4582 done
4583 done
4584 IFS=$as_save_IFS
4585
4586 fi
4587 fi
4588 CC=$ac_cv_prog_CC
4589 if test -n "$CC"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591 $as_echo "$CC" >&6; }
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 fi
4596
4597
4598 fi
4599 if test -z "$ac_cv_prog_CC"; then
4600 ac_ct_CC=$CC
4601 # Extract the first word of "gcc", so it can be a program name with args.
4602 set dummy gcc; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$ac_ct_CC"; then
4609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_ac_ct_CC="gcc"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
4628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4629 if test -n "$ac_ct_CC"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4631 $as_echo "$ac_ct_CC" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637 if test "x$ac_ct_CC" = x; then
4638 CC=""
4639 else
4640 case $cross_compiling:$ac_tool_warned in
4641 yes:)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4645 esac
4646 CC=$ac_ct_CC
4647 fi
4648 else
4649 CC="$ac_cv_prog_CC"
4650 fi
4651
4652 if test -z "$CC"; then
4653 if test -n "$ac_tool_prefix"; then
4654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4655 set dummy ${ac_tool_prefix}cc; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if test "${ac_cv_prog_CC+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if test -n "$CC"; then
4662 ac_cv_prog_CC="$CC" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_CC="${ac_tool_prefix}cc"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4674 fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679 fi
4680 fi
4681 CC=$ac_cv_prog_CC
4682 if test -n "$CC"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4684 $as_echo "$CC" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4688 fi
4689
4690
4691 fi
4692 fi
4693 if test -z "$CC"; then
4694 # Extract the first word of "cc", so it can be a program name with args.
4695 set dummy cc; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_CC+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$CC"; then
4702 ac_cv_prog_CC="$CC" # Let the user override the test.
4703 else
4704 ac_prog_rejected=no
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4713 ac_prog_rejected=yes
4714 continue
4715 fi
4716 ac_cv_prog_CC="cc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 if test $ac_prog_rejected = yes; then
4725 # We found a bogon in the path, so make sure we never use it.
4726 set dummy $ac_cv_prog_CC
4727 shift
4728 if test $# != 0; then
4729 # We chose a different compiler from the bogus one.
4730 # However, it has the same basename, so the bogon will be chosen
4731 # first if we set CC to just the basename; use the full file name.
4732 shift
4733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4734 fi
4735 fi
4736 fi
4737 fi
4738 CC=$ac_cv_prog_CC
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 if test -z "$CC"; then
4750 if test -n "$ac_tool_prefix"; then
4751 for ac_prog in cl.exe
4752 do
4753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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 test -n "$CC" && break
4791 done
4792 fi
4793 if test -z "$CC"; then
4794 ac_ct_CC=$CC
4795 for ac_prog in cl.exe
4796 do
4797 # Extract the first word of "$ac_prog", so it can be a program name with args.
4798 set dummy $ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$ac_ct_CC"; then
4805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_ac_ct_CC="$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 fi
4823 fi
4824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4825 if test -n "$ac_ct_CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4827 $as_echo "$ac_ct_CC" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832
4833
4834 test -n "$ac_ct_CC" && break
4835 done
4836
4837 if test "x$ac_ct_CC" = x; then
4838 CC=""
4839 else
4840 case $cross_compiling:$ac_tool_warned in
4841 yes:)
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844 ac_tool_warned=yes ;;
4845 esac
4846 CC=$ac_ct_CC
4847 fi
4848 fi
4849
4850 fi
4851
4852
4853 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855 as_fn_error "no acceptable C compiler found in \$PATH
4856 See \`config.log' for more details." "$LINENO" 5; }
4857
4858 # Provide some information about the compiler.
4859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4860 set X $ac_compile
4861 ac_compiler=$2
4862 for ac_option in --version -v -V -qversion; do
4863 { { ac_try="$ac_compiler $ac_option >&5"
4864 case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867 esac
4868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869 $as_echo "$ac_try_echo"; } >&5
4870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4871 ac_status=$?
4872 if test -s conftest.err; then
4873 sed '10a\
4874 ... rest of stderr output deleted ...
4875 10q' conftest.err >conftest.er1
4876 cat conftest.er1 >&5
4877 rm -f conftest.er1 conftest.err
4878 fi
4879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880 test $ac_status = 0; }
4881 done
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4885 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890
4891 int
4892 main ()
4893 {
4894 #ifndef __GNUC__
4895 choke me
4896 #endif
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_compiler_gnu=yes
4904 else
4905 ac_compiler_gnu=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4909
4910 fi
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4913 if test $ac_compiler_gnu = yes; then
4914 GCC=yes
4915 else
4916 GCC=
4917 fi
4918 ac_test_CFLAGS=${CFLAGS+set}
4919 ac_save_CFLAGS=$CFLAGS
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4922 if test "${ac_cv_prog_cc_g+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 ac_save_c_werror_flag=$ac_c_werror_flag
4926 ac_c_werror_flag=yes
4927 ac_cv_prog_cc_g=no
4928 CFLAGS="-g"
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931
4932 int
4933 main ()
4934 {
4935
4936 ;
4937 return 0;
4938 }
4939 _ACEOF
4940 if ac_fn_c_try_compile "$LINENO"; then :
4941 ac_cv_prog_cc_g=yes
4942 else
4943 CFLAGS=""
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main ()
4949 {
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956
4957 else
4958 ac_c_werror_flag=$ac_save_c_werror_flag
4959 CFLAGS="-g"
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962
4963 int
4964 main ()
4965 {
4966
4967 ;
4968 return 0;
4969 }
4970 _ACEOF
4971 if ac_fn_c_try_compile "$LINENO"; then :
4972 ac_cv_prog_cc_g=yes
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_c_werror_flag=$ac_save_c_werror_flag
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4982 $as_echo "$ac_cv_prog_cc_g" >&6; }
4983 if test "$ac_test_CFLAGS" = set; then
4984 CFLAGS=$ac_save_CFLAGS
4985 elif test $ac_cv_prog_cc_g = yes; then
4986 if test "$GCC" = yes; then
4987 CFLAGS="-g -O2"
4988 else
4989 CFLAGS="-g"
4990 fi
4991 else
4992 if test "$GCC" = yes; then
4993 CFLAGS="-O2"
4994 else
4995 CFLAGS=
4996 fi
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5000 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 ac_cv_prog_cc_c89=no
5004 ac_save_CC=$CC
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 #include <stdarg.h>
5008 #include <stdio.h>
5009 #include <sys/types.h>
5010 #include <sys/stat.h>
5011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5012 struct buf { int x; };
5013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5014 static char *e (p, i)
5015 char **p;
5016 int i;
5017 {
5018 return p[i];
5019 }
5020 static char *f (char * (*g) (char **, int), char **p, ...)
5021 {
5022 char *s;
5023 va_list v;
5024 va_start (v,p);
5025 s = g (p, va_arg (v,int));
5026 va_end (v);
5027 return s;
5028 }
5029
5030 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5031 function prototypes and stuff, but not '\xHH' hex character constants.
5032 These don't provoke an error unfortunately, instead are silently treated
5033 as 'x'. The following induces an error, until -std is added to get
5034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5035 array size at least. It's necessary to write '\x00'==0 to get something
5036 that's true only with -std. */
5037 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5038
5039 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5040 inside strings and character constants. */
5041 #define FOO(x) 'x'
5042 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5043
5044 int test (int i, double x);
5045 struct s1 {int (*f) (int a);};
5046 struct s2 {int (*f) (double a);};
5047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5048 int argc;
5049 char **argv;
5050 int
5051 main ()
5052 {
5053 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5054 ;
5055 return 0;
5056 }
5057 _ACEOF
5058 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5059 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5060 do
5061 CC="$ac_save_CC $ac_arg"
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 ac_cv_prog_cc_c89=$ac_arg
5064 fi
5065 rm -f core conftest.err conftest.$ac_objext
5066 test "x$ac_cv_prog_cc_c89" != "xno" && break
5067 done
5068 rm -f conftest.$ac_ext
5069 CC=$ac_save_CC
5070
5071 fi
5072 # AC_CACHE_VAL
5073 case "x$ac_cv_prog_cc_c89" in
5074 x)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5076 $as_echo "none needed" >&6; } ;;
5077 xno)
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5079 $as_echo "unsupported" >&6; } ;;
5080 *)
5081 CC="$CC $ac_cv_prog_cc_c89"
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5083 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5084 esac
5085 if test "x$ac_cv_prog_cc_c89" != xno; then :
5086
5087 fi
5088
5089 ac_ext=c
5090 ac_cpp='$CPP $CPPFLAGS'
5091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094
5095 depcc="$CC" am_compiler_list=
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5098 $as_echo_n "checking dependency style of $depcc... " >&6; }
5099 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5103 # We make a subdir and do the tests there. Otherwise we can end up
5104 # making bogus files that we don't know about and never remove. For
5105 # instance it was reported that on HP-UX the gcc test will end up
5106 # making a dummy file named `D' -- because `-MD' means `put the output
5107 # in D'.
5108 mkdir conftest.dir
5109 # Copy depcomp to subdir because otherwise we won't find it if we're
5110 # using a relative directory.
5111 cp "$am_depcomp" conftest.dir
5112 cd conftest.dir
5113 # We will build objects and dependencies in a subdirectory because
5114 # it helps to detect inapplicable dependency modes. For instance
5115 # both Tru64's cc and ICC support -MD to output dependencies as a
5116 # side effect of compilation, but ICC will put the dependencies in
5117 # the current directory while Tru64 will put them in the object
5118 # directory.
5119 mkdir sub
5120
5121 am_cv_CC_dependencies_compiler_type=none
5122 if test "$am_compiler_list" = ""; then
5123 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5124 fi
5125 am__universal=false
5126 case " $depcc " in #(
5127 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5128 esac
5129
5130 for depmode in $am_compiler_list; do
5131 # Setup a source with many dependencies, because some compilers
5132 # like to wrap large dependency lists on column 80 (with \), and
5133 # we should not choose a depcomp mode which is confused by this.
5134 #
5135 # We need to recreate these files for each test, as the compiler may
5136 # overwrite some of them when testing with obscure command lines.
5137 # This happens at least with the AIX C compiler.
5138 : > sub/conftest.c
5139 for i in 1 2 3 4 5 6; do
5140 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142 # Solaris 8's {/usr,}/bin/sh.
5143 touch sub/conftst$i.h
5144 done
5145 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146
5147 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5148 # mode. It turns out that the SunPro C++ compiler does not properly
5149 # handle `-M -o', and we need to detect this. Also, some Intel
5150 # versions had trouble with output in subdirs
5151 am__obj=sub/conftest.${OBJEXT-o}
5152 am__minus_obj="-o $am__obj"
5153 case $depmode in
5154 gcc)
5155 # This depmode causes a compiler race in universal mode.
5156 test "$am__universal" = false || continue
5157 ;;
5158 nosideeffect)
5159 # after this tag, mechanisms are not by side-effect, so they'll
5160 # only be used when explicitly requested
5161 if test "x$enable_dependency_tracking" = xyes; then
5162 continue
5163 else
5164 break
5165 fi
5166 ;;
5167 msvisualcpp | msvcmsys)
5168 # This compiler won't grok `-c -o', but also, the minuso test has
5169 # not run yet. These depmodes are late enough in the game, and
5170 # so weak that their functioning should not be impacted.
5171 am__obj=conftest.${OBJEXT-o}
5172 am__minus_obj=
5173 ;;
5174 none) break ;;
5175 esac
5176 if depmode=$depmode \
5177 source=sub/conftest.c object=$am__obj \
5178 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5179 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5180 >/dev/null 2>conftest.err &&
5181 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5183 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5185 # icc doesn't choke on unknown options, it will just issue warnings
5186 # or remarks (even with -Werror). So we grep stderr for any message
5187 # that says an option was ignored or not supported.
5188 # When given -MP, icc 7.0 and 7.1 complain thusly:
5189 # icc: Command line warning: ignoring option '-M'; no argument required
5190 # The diagnosis changed in icc 8.0:
5191 # icc: Command line remark: option '-MP' not supported
5192 if (grep 'ignoring option' conftest.err ||
5193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5194 am_cv_CC_dependencies_compiler_type=$depmode
5195 break
5196 fi
5197 fi
5198 done
5199
5200 cd ..
5201 rm -rf conftest.dir
5202 else
5203 am_cv_CC_dependencies_compiler_type=none
5204 fi
5205
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5208 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5209 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5210
5211 if
5212 test "x$enable_dependency_tracking" != xno \
5213 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5214 am__fastdepCC_TRUE=
5215 am__fastdepCC_FALSE='#'
5216 else
5217 am__fastdepCC_TRUE='#'
5218 am__fastdepCC_FALSE=
5219 fi
5220
5221
5222 ac_ext=cpp
5223 ac_cpp='$CXXCPP $CPPFLAGS'
5224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5227 if test -z "$CXX"; then
5228 if test -n "$CCC"; then
5229 CXX=$CCC
5230 else
5231 if test -n "$ac_tool_prefix"; then
5232 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5233 do
5234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_prog_CXX+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$CXX"; then
5242 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 CXX=$ac_cv_prog_CXX
5262 if test -n "$CXX"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5264 $as_echo "$CXX" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 test -n "$CXX" && break
5272 done
5273 fi
5274 if test -z "$CXX"; then
5275 ac_ct_CXX=$CXX
5276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5277 do
5278 # Extract the first word of "$ac_prog", so it can be a program name with args.
5279 set dummy $ac_prog; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$ac_ct_CXX"; then
5286 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_ac_ct_CXX="$ac_prog"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
5305 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5306 if test -n "$ac_ct_CXX"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5308 $as_echo "$ac_ct_CXX" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314
5315 test -n "$ac_ct_CXX" && break
5316 done
5317
5318 if test "x$ac_ct_CXX" = x; then
5319 CXX="g++"
5320 else
5321 case $cross_compiling:$ac_tool_warned in
5322 yes:)
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5325 ac_tool_warned=yes ;;
5326 esac
5327 CXX=$ac_ct_CXX
5328 fi
5329 fi
5330
5331 fi
5332 fi
5333 # Provide some information about the compiler.
5334 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5335 set X $ac_compile
5336 ac_compiler=$2
5337 for ac_option in --version -v -V -qversion; do
5338 { { ac_try="$ac_compiler $ac_option >&5"
5339 case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5344 $as_echo "$ac_try_echo"; } >&5
5345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5346 ac_status=$?
5347 if test -s conftest.err; then
5348 sed '10a\
5349 ... rest of stderr output deleted ...
5350 10q' conftest.err >conftest.er1
5351 cat conftest.er1 >&5
5352 rm -f conftest.er1 conftest.err
5353 fi
5354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5355 test $ac_status = 0; }
5356 done
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5359 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5360 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365
5366 int
5367 main ()
5368 {
5369 #ifndef __GNUC__
5370 choke me
5371 #endif
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_cxx_try_compile "$LINENO"; then :
5378 ac_compiler_gnu=yes
5379 else
5380 ac_compiler_gnu=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5384
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5387 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5388 if test $ac_compiler_gnu = yes; then
5389 GXX=yes
5390 else
5391 GXX=
5392 fi
5393 ac_test_CXXFLAGS=${CXXFLAGS+set}
5394 ac_save_CXXFLAGS=$CXXFLAGS
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5396 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5397 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5401 ac_cxx_werror_flag=yes
5402 ac_cv_prog_cxx_g=no
5403 CXXFLAGS="-g"
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_cxx_try_compile "$LINENO"; then :
5416 ac_cv_prog_cxx_g=yes
5417 else
5418 CXXFLAGS=""
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421
5422 int
5423 main ()
5424 {
5425
5426 ;
5427 return 0;
5428 }
5429 _ACEOF
5430 if ac_fn_cxx_try_compile "$LINENO"; then :
5431
5432 else
5433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5434 CXXFLAGS="-g"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437
5438 int
5439 main ()
5440 {
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_cxx_try_compile "$LINENO"; then :
5447 ac_cv_prog_cxx_g=yes
5448 fi
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5457 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5458 if test "$ac_test_CXXFLAGS" = set; then
5459 CXXFLAGS=$ac_save_CXXFLAGS
5460 elif test $ac_cv_prog_cxx_g = yes; then
5461 if test "$GXX" = yes; then
5462 CXXFLAGS="-g -O2"
5463 else
5464 CXXFLAGS="-g"
5465 fi
5466 else
5467 if test "$GXX" = yes; then
5468 CXXFLAGS="-O2"
5469 else
5470 CXXFLAGS=
5471 fi
5472 fi
5473 ac_ext=c
5474 ac_cpp='$CPP $CPPFLAGS'
5475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
5479 depcc="$CXX" am_compiler_list=
5480
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5482 $as_echo_n "checking dependency style of $depcc... " >&6; }
5483 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5487 # We make a subdir and do the tests there. Otherwise we can end up
5488 # making bogus files that we don't know about and never remove. For
5489 # instance it was reported that on HP-UX the gcc test will end up
5490 # making a dummy file named `D' -- because `-MD' means `put the output
5491 # in D'.
5492 mkdir conftest.dir
5493 # Copy depcomp to subdir because otherwise we won't find it if we're
5494 # using a relative directory.
5495 cp "$am_depcomp" conftest.dir
5496 cd conftest.dir
5497 # We will build objects and dependencies in a subdirectory because
5498 # it helps to detect inapplicable dependency modes. For instance
5499 # both Tru64's cc and ICC support -MD to output dependencies as a
5500 # side effect of compilation, but ICC will put the dependencies in
5501 # the current directory while Tru64 will put them in the object
5502 # directory.
5503 mkdir sub
5504
5505 am_cv_CXX_dependencies_compiler_type=none
5506 if test "$am_compiler_list" = ""; then
5507 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508 fi
5509 am__universal=false
5510 case " $depcc " in #(
5511 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5512 esac
5513
5514 for depmode in $am_compiler_list; do
5515 # Setup a source with many dependencies, because some compilers
5516 # like to wrap large dependency lists on column 80 (with \), and
5517 # we should not choose a depcomp mode which is confused by this.
5518 #
5519 # We need to recreate these files for each test, as the compiler may
5520 # overwrite some of them when testing with obscure command lines.
5521 # This happens at least with the AIX C compiler.
5522 : > sub/conftest.c
5523 for i in 1 2 3 4 5 6; do
5524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5526 # Solaris 8's {/usr,}/bin/sh.
5527 touch sub/conftst$i.h
5528 done
5529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5530
5531 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5532 # mode. It turns out that the SunPro C++ compiler does not properly
5533 # handle `-M -o', and we need to detect this. Also, some Intel
5534 # versions had trouble with output in subdirs
5535 am__obj=sub/conftest.${OBJEXT-o}
5536 am__minus_obj="-o $am__obj"
5537 case $depmode in
5538 gcc)
5539 # This depmode causes a compiler race in universal mode.
5540 test "$am__universal" = false || continue
5541 ;;
5542 nosideeffect)
5543 # after this tag, mechanisms are not by side-effect, so they'll
5544 # only be used when explicitly requested
5545 if test "x$enable_dependency_tracking" = xyes; then
5546 continue
5547 else
5548 break
5549 fi
5550 ;;
5551 msvisualcpp | msvcmsys)
5552 # This compiler won't grok `-c -o', but also, the minuso test has
5553 # not run yet. These depmodes are late enough in the game, and
5554 # so weak that their functioning should not be impacted.
5555 am__obj=conftest.${OBJEXT-o}
5556 am__minus_obj=
5557 ;;
5558 none) break ;;
5559 esac
5560 if depmode=$depmode \
5561 source=sub/conftest.c object=$am__obj \
5562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5563 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5564 >/dev/null 2>conftest.err &&
5565 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5566 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5567 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5568 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5569 # icc doesn't choke on unknown options, it will just issue warnings
5570 # or remarks (even with -Werror). So we grep stderr for any message
5571 # that says an option was ignored or not supported.
5572 # When given -MP, icc 7.0 and 7.1 complain thusly:
5573 # icc: Command line warning: ignoring option '-M'; no argument required
5574 # The diagnosis changed in icc 8.0:
5575 # icc: Command line remark: option '-MP' not supported
5576 if (grep 'ignoring option' conftest.err ||
5577 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5578 am_cv_CXX_dependencies_compiler_type=$depmode
5579 break
5580 fi
5581 fi
5582 done
5583
5584 cd ..
5585 rm -rf conftest.dir
5586 else
5587 am_cv_CXX_dependencies_compiler_type=none
5588 fi
5589
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5592 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5593 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5594
5595 if
5596 test "x$enable_dependency_tracking" != xno \
5597 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5598 am__fastdepCXX_TRUE=
5599 am__fastdepCXX_FALSE='#'
5600 else
5601 am__fastdepCXX_TRUE='#'
5602 am__fastdepCXX_FALSE=
5603 fi
5604
5605
5606
5607
5608 if test "x$CC" != xcc; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5610 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5613 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5614 fi
5615 set dummy $CC; ac_cc=`$as_echo "$2" |
5616 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5617 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622
5623 int
5624 main ()
5625 {
5626
5627 ;
5628 return 0;
5629 }
5630 _ACEOF
5631 # Make sure it works both with $CC and with simple cc.
5632 # We do the test twice because some compilers refuse to overwrite an
5633 # existing .o file with -o, though they will create one.
5634 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5635 rm -f conftest2.*
5636 if { { case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5641 $as_echo "$ac_try_echo"; } >&5
5642 (eval "$ac_try") 2>&5
5643 ac_status=$?
5644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5645 test $ac_status = 0; } &&
5646 test -f conftest2.$ac_objext && { { 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 then
5657 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5658 if test "x$CC" != xcc; then
5659 # Test first that cc exists at all.
5660 if { ac_try='cc -c conftest.$ac_ext >&5'
5661 { { case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 $as_echo "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5668 ac_status=$?
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; }; }; then
5671 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5672 rm -f conftest2.*
5673 if { { case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5678 $as_echo "$ac_try_echo"; } >&5
5679 (eval "$ac_try") 2>&5
5680 ac_status=$?
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; } &&
5683 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5688 $as_echo "$ac_try_echo"; } >&5
5689 (eval "$ac_try") 2>&5
5690 ac_status=$?
5691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5692 test $ac_status = 0; };
5693 then
5694 # cc works too.
5695 :
5696 else
5697 # cc exists but doesn't like -o.
5698 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5699 fi
5700 fi
5701 fi
5702 else
5703 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5704 fi
5705 rm -f core conftest*
5706
5707 fi
5708 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5714
5715 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5716
5717 fi
5718
5719 # FIXME: we rely on the cache variable name because
5720 # there is no other way.
5721 set dummy $CC
5722 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5723 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5724 if test "$am_t" != yes; then
5725 # Losing compiler, so override with the script.
5726 # FIXME: It is wrong to rewrite CC.
5727 # But if we don't then we get into trouble of one sort or another.
5728 # A longer-term fix would be to have automake use am__CC in this case,
5729 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5730 CC="$am_aux_dir/compile $CC"
5731 fi
5732
5733
5734
5735
5736
5737
5738 # Newer automakes demand CCAS and CCASFLAGS.
5739 : ${CCAS='$(CC)'}
5740 : ${CCASFLAGS='$(CFLAGS)'}
5741
5742
5743
5744 if test -n "$ac_tool_prefix"; then
5745 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5746 set dummy ${ac_tool_prefix}as; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_AS+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$AS"; then
5753 ac_cv_prog_AS="$AS" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_AS="${ac_tool_prefix}as"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 AS=$ac_cv_prog_AS
5773 if test -n "$AS"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5775 $as_echo "$AS" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781
5782 fi
5783 if test -z "$ac_cv_prog_AS"; then
5784 ac_ct_AS=$AS
5785 # Extract the first word of "as", so it can be a program name with args.
5786 set dummy as; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -n "$ac_ct_AS"; then
5793 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802 ac_cv_prog_ac_ct_AS="as"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5805 fi
5806 done
5807 done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5813 if test -n "$ac_ct_AS"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5815 $as_echo "$ac_ct_AS" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821 if test "x$ac_ct_AS" = x; then
5822 AS=""
5823 else
5824 case $cross_compiling:$ac_tool_warned in
5825 yes:)
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828 ac_tool_warned=yes ;;
5829 esac
5830 AS=$ac_ct_AS
5831 fi
5832 else
5833 AS="$ac_cv_prog_AS"
5834 fi
5835
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}ar; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_AR+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$AR"; then
5845 ac_cv_prog_AR="$AR" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_AR="${ac_tool_prefix}ar"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 AR=$ac_cv_prog_AR
5865 if test -n "$AR"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5867 $as_echo "$AR" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_AR"; then
5876 ac_ct_AR=$AR
5877 # Extract the first word of "ar", so it can be a program name with args.
5878 set dummy ar; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_AR"; then
5885 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_ac_ct_AR="ar"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5905 if test -n "$ac_ct_AR"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5907 $as_echo "$ac_ct_AR" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913 if test "x$ac_ct_AR" = x; then
5914 AR=""
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 AR=$ac_ct_AR
5923 fi
5924 else
5925 AR="$ac_cv_prog_AR"
5926 fi
5927
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if test -n "$RANLIB"; then
5937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942 IFS=$as_save_IFS
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 break 2
5949 fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 RANLIB=$ac_cv_prog_RANLIB
5957 if test -n "$RANLIB"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5959 $as_echo "$RANLIB" >&6; }
5960 else
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5963 fi
5964
5965
5966 fi
5967 if test -z "$ac_cv_prog_RANLIB"; then
5968 ac_ct_RANLIB=$RANLIB
5969 # Extract the first word of "ranlib", so it can be a program name with args.
5970 set dummy ranlib; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if test -n "$ac_ct_RANLIB"; then
5977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982 IFS=$as_save_IFS
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_ac_ct_RANLIB="ranlib"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988 break 2
5989 fi
5990 done
5991 done
5992 IFS=$as_save_IFS
5993
5994 fi
5995 fi
5996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5997 if test -n "$ac_ct_RANLIB"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5999 $as_echo "$ac_ct_RANLIB" >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004
6005 if test "x$ac_ct_RANLIB" = x; then
6006 RANLIB=":"
6007 else
6008 case $cross_compiling:$ac_tool_warned in
6009 yes:)
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6013 esac
6014 RANLIB=$ac_ct_RANLIB
6015 fi
6016 else
6017 RANLIB="$ac_cv_prog_RANLIB"
6018 fi
6019
6020
6021 # Configure libtool
6022 enable_dlopen=yes
6023
6024
6025
6026 case `pwd` in
6027 *\ * | *\ *)
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6029 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6030 esac
6031
6032
6033
6034 macro_version='2.2.7a'
6035 macro_revision='1.3134'
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049 ltmain="$ac_aux_dir/ltmain.sh"
6050
6051 # Backslashify metacharacters that are still active within
6052 # double-quoted strings.
6053 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6054
6055 # Same as above, but do not quote variable references.
6056 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6057
6058 # Sed substitution to delay expansion of an escaped shell variable in a
6059 # double_quote_subst'ed string.
6060 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6061
6062 # Sed substitution to delay expansion of an escaped single quote.
6063 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6064
6065 # Sed substitution to avoid accidental globbing in evaled expressions
6066 no_glob_subst='s/\*/\\\*/g'
6067
6068 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6069 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6070 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6073 $as_echo_n "checking how to print strings... " >&6; }
6074 # Test print first, because it will be a builtin if present.
6075 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6076 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6077 ECHO='print -r --'
6078 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6079 ECHO='printf %s\n'
6080 else
6081 # Use this function as a fallback that always works.
6082 func_fallback_echo ()
6083 {
6084 eval 'cat <<_LTECHO_EOF
6085 $1
6086 _LTECHO_EOF'
6087 }
6088 ECHO='func_fallback_echo'
6089 fi
6090
6091 # func_echo_all arg...
6092 # Invoke $ECHO with all args, space-separated.
6093 func_echo_all ()
6094 {
6095 $ECHO ""
6096 }
6097
6098 case "$ECHO" in
6099 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6100 $as_echo "printf" >&6; } ;;
6101 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6102 $as_echo "print -r" >&6; } ;;
6103 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6104 $as_echo "cat" >&6; } ;;
6105 esac
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6121 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6122 if test "${ac_cv_path_SED+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6126 for ac_i in 1 2 3 4 5 6 7; do
6127 ac_script="$ac_script$as_nl$ac_script"
6128 done
6129 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6130 { ac_script=; unset ac_script;}
6131 if test -z "$SED"; then
6132 ac_path_SED_found=false
6133 # Loop through the user's path and test for each of PROGNAME-LIST
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_prog in sed gsed; do
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6142 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6143 # Check for GNU ac_path_SED and select it if it is found.
6144 # Check for GNU $ac_path_SED
6145 case `"$ac_path_SED" --version 2>&1` in
6146 *GNU*)
6147 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6148 *)
6149 ac_count=0
6150 $as_echo_n 0123456789 >"conftest.in"
6151 while :
6152 do
6153 cat "conftest.in" "conftest.in" >"conftest.tmp"
6154 mv "conftest.tmp" "conftest.in"
6155 cp "conftest.in" "conftest.nl"
6156 $as_echo '' >> "conftest.nl"
6157 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6159 as_fn_arith $ac_count + 1 && ac_count=$as_val
6160 if test $ac_count -gt ${ac_path_SED_max-0}; then
6161 # Best one so far, save it but keep looking for a better one
6162 ac_cv_path_SED="$ac_path_SED"
6163 ac_path_SED_max=$ac_count
6164 fi
6165 # 10*(2^10) chars as input seems more than enough
6166 test $ac_count -gt 10 && break
6167 done
6168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6169 esac
6170
6171 $ac_path_SED_found && break 3
6172 done
6173 done
6174 done
6175 IFS=$as_save_IFS
6176 if test -z "$ac_cv_path_SED"; then
6177 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6178 fi
6179 else
6180 ac_cv_path_SED=$SED
6181 fi
6182
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6185 $as_echo "$ac_cv_path_SED" >&6; }
6186 SED="$ac_cv_path_SED"
6187 rm -f conftest.sed
6188
6189 test -z "$SED" && SED=sed
6190 Xsed="$SED -e 1s/^X//"
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6203 $as_echo_n "checking for fgrep... " >&6; }
6204 if test "${ac_cv_path_FGREP+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6208 then ac_cv_path_FGREP="$GREP -F"
6209 else
6210 if test -z "$FGREP"; then
6211 ac_path_FGREP_found=false
6212 # Loop through the user's path and test for each of PROGNAME-LIST
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6215 do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_prog in fgrep; do
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6221 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6222 # Check for GNU ac_path_FGREP and select it if it is found.
6223 # Check for GNU $ac_path_FGREP
6224 case `"$ac_path_FGREP" --version 2>&1` in
6225 *GNU*)
6226 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6227 *)
6228 ac_count=0
6229 $as_echo_n 0123456789 >"conftest.in"
6230 while :
6231 do
6232 cat "conftest.in" "conftest.in" >"conftest.tmp"
6233 mv "conftest.tmp" "conftest.in"
6234 cp "conftest.in" "conftest.nl"
6235 $as_echo 'FGREP' >> "conftest.nl"
6236 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6238 as_fn_arith $ac_count + 1 && ac_count=$as_val
6239 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6240 # Best one so far, save it but keep looking for a better one
6241 ac_cv_path_FGREP="$ac_path_FGREP"
6242 ac_path_FGREP_max=$ac_count
6243 fi
6244 # 10*(2^10) chars as input seems more than enough
6245 test $ac_count -gt 10 && break
6246 done
6247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6248 esac
6249
6250 $ac_path_FGREP_found && break 3
6251 done
6252 done
6253 done
6254 IFS=$as_save_IFS
6255 if test -z "$ac_cv_path_FGREP"; then
6256 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6257 fi
6258 else
6259 ac_cv_path_FGREP=$FGREP
6260 fi
6261
6262 fi
6263 fi
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6265 $as_echo "$ac_cv_path_FGREP" >&6; }
6266 FGREP="$ac_cv_path_FGREP"
6267
6268
6269 test -z "$GREP" && GREP=grep
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 # Check whether --with-gnu-ld was given.
6290 if test "${with_gnu_ld+set}" = set; then :
6291 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6292 else
6293 with_gnu_ld=no
6294 fi
6295
6296 ac_prog=ld
6297 if test "$GCC" = yes; then
6298 # Check if gcc -print-prog-name=ld gives a path.
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6300 $as_echo_n "checking for ld used by $CC... " >&6; }
6301 case $host in
6302 *-*-mingw*)
6303 # gcc leaves a trailing carriage return which upsets mingw
6304 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6305 *)
6306 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6307 esac
6308 case $ac_prog in
6309 # Accept absolute paths.
6310 [\\/]* | ?:[\\/]*)
6311 re_direlt='/[^/][^/]*/\.\./'
6312 # Canonicalize the pathname of ld
6313 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6314 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6315 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6316 done
6317 test -z "$LD" && LD="$ac_prog"
6318 ;;
6319 "")
6320 # If it fails, then pretend we aren't using GCC.
6321 ac_prog=ld
6322 ;;
6323 *)
6324 # If it is relative, then search for the first ld in PATH.
6325 with_gnu_ld=unknown
6326 ;;
6327 esac
6328 elif test "$with_gnu_ld" = yes; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6330 $as_echo_n "checking for GNU ld... " >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6333 $as_echo_n "checking for non-GNU ld... " >&6; }
6334 fi
6335 if test "${lt_cv_path_LD+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -z "$LD"; then
6339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6340 for ac_dir in $PATH; do
6341 IFS="$lt_save_ifs"
6342 test -z "$ac_dir" && ac_dir=.
6343 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6344 lt_cv_path_LD="$ac_dir/$ac_prog"
6345 # Check to see if the program is GNU ld. I'd rather use --version,
6346 # but apparently some variants of GNU ld only accept -v.
6347 # Break only if it was the GNU/non-GNU ld that we prefer.
6348 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6349 *GNU* | *'with BFD'*)
6350 test "$with_gnu_ld" != no && break
6351 ;;
6352 *)
6353 test "$with_gnu_ld" != yes && break
6354 ;;
6355 esac
6356 fi
6357 done
6358 IFS="$lt_save_ifs"
6359 else
6360 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6361 fi
6362 fi
6363
6364 LD="$lt_cv_path_LD"
6365 if test -n "$LD"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6367 $as_echo "$LD" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6375 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6379 case `$LD -v 2>&1 </dev/null` in
6380 *GNU* | *'with BFD'*)
6381 lt_cv_prog_gnu_ld=yes
6382 ;;
6383 *)
6384 lt_cv_prog_gnu_ld=no
6385 ;;
6386 esac
6387 fi
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6390 with_gnu_ld=$lt_cv_prog_gnu_ld
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6401 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6402 if test "${lt_cv_path_NM+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$NM"; then
6406 # Let the user override the test.
6407 lt_cv_path_NM="$NM"
6408 else
6409 lt_nm_to_check="${ac_tool_prefix}nm"
6410 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6411 lt_nm_to_check="$lt_nm_to_check nm"
6412 fi
6413 for lt_tmp_nm in $lt_nm_to_check; do
6414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6415 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6416 IFS="$lt_save_ifs"
6417 test -z "$ac_dir" && ac_dir=.
6418 tmp_nm="$ac_dir/$lt_tmp_nm"
6419 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6420 # Check to see if the nm accepts a BSD-compat flag.
6421 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6422 # nm: unknown option "B" ignored
6423 # Tru64's nm complains that /dev/null is an invalid object file
6424 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6425 */dev/null* | *'Invalid file or object type'*)
6426 lt_cv_path_NM="$tmp_nm -B"
6427 break
6428 ;;
6429 *)
6430 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6431 */dev/null*)
6432 lt_cv_path_NM="$tmp_nm -p"
6433 break
6434 ;;
6435 *)
6436 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6437 continue # so that we can try to find one that supports BSD flags
6438 ;;
6439 esac
6440 ;;
6441 esac
6442 fi
6443 done
6444 IFS="$lt_save_ifs"
6445 done
6446 : ${lt_cv_path_NM=no}
6447 fi
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6450 $as_echo "$lt_cv_path_NM" >&6; }
6451 if test "$lt_cv_path_NM" != "no"; then
6452 NM="$lt_cv_path_NM"
6453 else
6454 # Didn't find any BSD compatible name lister, look for dumpbin.
6455 if test -n "$DUMPBIN"; then :
6456 # Let the user override the test.
6457 else
6458 if test -n "$ac_tool_prefix"; then
6459 for ac_prog in dumpbin "link -dump"
6460 do
6461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 if test -n "$DUMPBIN"; then
6469 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482 done
6483 done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 DUMPBIN=$ac_cv_prog_DUMPBIN
6489 if test -n "$DUMPBIN"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6491 $as_echo "$DUMPBIN" >&6; }
6492 else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497
6498 test -n "$DUMPBIN" && break
6499 done
6500 fi
6501 if test -z "$DUMPBIN"; then
6502 ac_ct_DUMPBIN=$DUMPBIN
6503 for ac_prog in dumpbin "link -dump"
6504 do
6505 # Extract the first word of "$ac_prog", so it can be a program name with args.
6506 set dummy $ac_prog; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$ac_ct_DUMPBIN"; then
6513 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6533 if test -n "$ac_ct_DUMPBIN"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6535 $as_echo "$ac_ct_DUMPBIN" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 test -n "$ac_ct_DUMPBIN" && break
6543 done
6544
6545 if test "x$ac_ct_DUMPBIN" = x; then
6546 DUMPBIN=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554 DUMPBIN=$ac_ct_DUMPBIN
6555 fi
6556 fi
6557
6558 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6559 *COFF*)
6560 DUMPBIN="$DUMPBIN -symbols"
6561 ;;
6562 *)
6563 DUMPBIN=:
6564 ;;
6565 esac
6566 fi
6567
6568 if test "$DUMPBIN" != ":"; then
6569 NM="$DUMPBIN"
6570 fi
6571 fi
6572 test -z "$NM" && NM=nm
6573
6574
6575
6576
6577
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6580 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6581 if test "${lt_cv_nm_interface+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 lt_cv_nm_interface="BSD nm"
6585 echo "int some_variable = 0;" > conftest.$ac_ext
6586 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6587 (eval "$ac_compile" 2>conftest.err)
6588 cat conftest.err >&5
6589 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6590 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6591 cat conftest.err >&5
6592 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6593 cat conftest.out >&5
6594 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6595 lt_cv_nm_interface="MS dumpbin"
6596 fi
6597 rm -f conftest*
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6600 $as_echo "$lt_cv_nm_interface" >&6; }
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6603 $as_echo_n "checking whether ln -s works... " >&6; }
6604 LN_S=$as_ln_s
6605 if test "$LN_S" = "ln -s"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6607 $as_echo "yes" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6610 $as_echo "no, using $LN_S" >&6; }
6611 fi
6612
6613 # find the maximum length of command line arguments
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6615 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6616 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 i=0
6620 teststring="ABCD"
6621
6622 case $build_os in
6623 msdosdjgpp*)
6624 # On DJGPP, this test can blow up pretty badly due to problems in libc
6625 # (any single argument exceeding 2000 bytes causes a buffer overrun
6626 # during glob expansion). Even if it were fixed, the result of this
6627 # check would be larger than it should be.
6628 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6629 ;;
6630
6631 gnu*)
6632 # Under GNU Hurd, this test is not required because there is
6633 # no limit to the length of command line arguments.
6634 # Libtool will interpret -1 as no limit whatsoever
6635 lt_cv_sys_max_cmd_len=-1;
6636 ;;
6637
6638 cygwin* | mingw* | cegcc*)
6639 # On Win9x/ME, this test blows up -- it succeeds, but takes
6640 # about 5 minutes as the teststring grows exponentially.
6641 # Worse, since 9x/ME are not pre-emptively multitasking,
6642 # you end up with a "frozen" computer, even though with patience
6643 # the test eventually succeeds (with a max line length of 256k).
6644 # Instead, let's just punt: use the minimum linelength reported by
6645 # all of the supported platforms: 8192 (on NT/2K/XP).
6646 lt_cv_sys_max_cmd_len=8192;
6647 ;;
6648
6649 mint*)
6650 # On MiNT this can take a long time and run out of memory.
6651 lt_cv_sys_max_cmd_len=8192;
6652 ;;
6653
6654 amigaos*)
6655 # On AmigaOS with pdksh, this test takes hours, literally.
6656 # So we just punt and use a minimum line length of 8192.
6657 lt_cv_sys_max_cmd_len=8192;
6658 ;;
6659
6660 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6661 # This has been around since 386BSD, at least. Likely further.
6662 if test -x /sbin/sysctl; then
6663 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6664 elif test -x /usr/sbin/sysctl; then
6665 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6666 else
6667 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6668 fi
6669 # And add a safety zone
6670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6672 ;;
6673
6674 interix*)
6675 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6676 lt_cv_sys_max_cmd_len=196608
6677 ;;
6678
6679 osf*)
6680 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6681 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6682 # nice to cause kernel panics so lets avoid the loop below.
6683 # First set a reasonable default.
6684 lt_cv_sys_max_cmd_len=16384
6685 #
6686 if test -x /sbin/sysconfig; then
6687 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6688 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6689 esac
6690 fi
6691 ;;
6692 sco3.2v5*)
6693 lt_cv_sys_max_cmd_len=102400
6694 ;;
6695 sysv5* | sco5v6* | sysv4.2uw2*)
6696 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6697 if test -n "$kargmax"; then
6698 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6699 else
6700 lt_cv_sys_max_cmd_len=32768
6701 fi
6702 ;;
6703 *)
6704 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6705 if test -n "$lt_cv_sys_max_cmd_len"; then
6706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6708 else
6709 # Make teststring a little bigger before we do anything with it.
6710 # a 1K string should be a reasonable start.
6711 for i in 1 2 3 4 5 6 7 8 ; do
6712 teststring=$teststring$teststring
6713 done
6714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6715 # If test is not a shell built-in, we'll probably end up computing a
6716 # maximum length that is only half of the actual maximum length, but
6717 # we can't tell.
6718 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6719 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6720 test $i != 17 # 1/2 MB should be enough
6721 do
6722 i=`expr $i + 1`
6723 teststring=$teststring$teststring
6724 done
6725 # Only check the string length outside the loop.
6726 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6727 teststring=
6728 # Add a significant safety factor because C++ compilers can tack on
6729 # massive amounts of additional arguments before passing them to the
6730 # linker. It appears as though 1/2 is a usable value.
6731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6732 fi
6733 ;;
6734 esac
6735
6736 fi
6737
6738 if test -n $lt_cv_sys_max_cmd_len ; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6740 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6743 $as_echo "none" >&6; }
6744 fi
6745 max_cmd_len=$lt_cv_sys_max_cmd_len
6746
6747
6748
6749
6750
6751
6752 : ${CP="cp -f"}
6753 : ${MV="mv -f"}
6754 : ${RM="rm -f"}
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6757 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6758 # Try some XSI features
6759 xsi_shell=no
6760 ( _lt_dummy="a/b/c"
6761 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6762 = c,a/b,, \
6763 && eval 'test $(( 1 + 1 )) -eq 2 \
6764 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6765 && xsi_shell=yes
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6767 $as_echo "$xsi_shell" >&6; }
6768
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6771 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6772 lt_shell_append=no
6773 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6774 >/dev/null 2>&1 \
6775 && lt_shell_append=yes
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6777 $as_echo "$lt_shell_append" >&6; }
6778
6779
6780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6781 lt_unset=unset
6782 else
6783 lt_unset=false
6784 fi
6785
6786
6787
6788
6789
6790 # test EBCDIC or ASCII
6791 case `echo X|tr X '\101'` in
6792 A) # ASCII based system
6793 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6794 lt_SP2NL='tr \040 \012'
6795 lt_NL2SP='tr \015\012 \040\040'
6796 ;;
6797 *) # EBCDIC based system
6798 lt_SP2NL='tr \100 \n'
6799 lt_NL2SP='tr \r\n \100\100'
6800 ;;
6801 esac
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6812 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6813 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 lt_cv_ld_reload_flag='-r'
6817 fi
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6819 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6820 reload_flag=$lt_cv_ld_reload_flag
6821 case $reload_flag in
6822 "" | " "*) ;;
6823 *) reload_flag=" $reload_flag" ;;
6824 esac
6825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6826 case $host_os in
6827 darwin*)
6828 if test "$GCC" = yes; then
6829 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6830 else
6831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6832 fi
6833 ;;
6834 esac
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$OBJDUMP"; then
6853 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 OBJDUMP=$ac_cv_prog_OBJDUMP
6873 if test -n "$OBJDUMP"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6875 $as_echo "$OBJDUMP" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881
6882 fi
6883 if test -z "$ac_cv_prog_OBJDUMP"; then
6884 ac_ct_OBJDUMP=$OBJDUMP
6885 # Extract the first word of "objdump", so it can be a program name with args.
6886 set dummy objdump; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 if test -n "$ac_ct_OBJDUMP"; then
6893 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6913 if test -n "$ac_ct_OBJDUMP"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6915 $as_echo "$ac_ct_OBJDUMP" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921 if test "x$ac_ct_OBJDUMP" = x; then
6922 OBJDUMP="false"
6923 else
6924 case $cross_compiling:$ac_tool_warned in
6925 yes:)
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928 ac_tool_warned=yes ;;
6929 esac
6930 OBJDUMP=$ac_ct_OBJDUMP
6931 fi
6932 else
6933 OBJDUMP="$ac_cv_prog_OBJDUMP"
6934 fi
6935
6936 test -z "$OBJDUMP" && OBJDUMP=objdump
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6947 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6948 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 lt_cv_file_magic_cmd='$MAGIC_CMD'
6952 lt_cv_file_magic_test_file=
6953 lt_cv_deplibs_check_method='unknown'
6954 # Need to set the preceding variable on all platforms that support
6955 # interlibrary dependencies.
6956 # 'none' -- dependencies not supported.
6957 # `unknown' -- same as none, but documents that we really don't know.
6958 # 'pass_all' -- all dependencies passed with no checks.
6959 # 'test_compile' -- check by making test program.
6960 # 'file_magic [[regex]]' -- check by looking for files in library path
6961 # which responds to the $file_magic_cmd with a given extended regex.
6962 # If you have `file' or equivalent on your system and you're not sure
6963 # whether `pass_all' will *always* work, you probably want this one.
6964
6965 case $host_os in
6966 aix[4-9]*)
6967 lt_cv_deplibs_check_method=pass_all
6968 ;;
6969
6970 beos*)
6971 lt_cv_deplibs_check_method=pass_all
6972 ;;
6973
6974 bsdi[45]*)
6975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6976 lt_cv_file_magic_cmd='/usr/bin/file -L'
6977 lt_cv_file_magic_test_file=/shlib/libc.so
6978 ;;
6979
6980 cygwin*)
6981 # func_win32_libid is a shell function defined in ltmain.sh
6982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6983 lt_cv_file_magic_cmd='func_win32_libid'
6984 ;;
6985
6986 mingw* | pw32*)
6987 # Base MSYS/MinGW do not provide the 'file' command needed by
6988 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6989 # unless we find 'file', for example because we are cross-compiling.
6990 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6991 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993 lt_cv_file_magic_cmd='func_win32_libid'
6994 else
6995 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6996 lt_cv_file_magic_cmd='$OBJDUMP -f'
6997 fi
6998 ;;
6999
7000 cegcc*)
7001 # use the weaker test based on 'objdump'. See mingw*.
7002 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7003 lt_cv_file_magic_cmd='$OBJDUMP -f'
7004 ;;
7005
7006 darwin* | rhapsody*)
7007 lt_cv_deplibs_check_method=pass_all
7008 ;;
7009
7010 freebsd* | dragonfly*)
7011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7012 case $host_cpu in
7013 i*86 )
7014 # Not sure whether the presence of OpenBSD here was a mistake.
7015 # Let's accept both of them until this is cleared up.
7016 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7017 lt_cv_file_magic_cmd=/usr/bin/file
7018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7019 ;;
7020 esac
7021 else
7022 lt_cv_deplibs_check_method=pass_all
7023 fi
7024 ;;
7025
7026 gnu*)
7027 lt_cv_deplibs_check_method=pass_all
7028 ;;
7029
7030 haiku*)
7031 lt_cv_deplibs_check_method=pass_all
7032 ;;
7033
7034 hpux10.20* | hpux11*)
7035 lt_cv_file_magic_cmd=/usr/bin/file
7036 case $host_cpu in
7037 ia64*)
7038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7039 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7040 ;;
7041 hppa*64*)
7042 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]'
7043 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7044 ;;
7045 *)
7046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7047 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7048 ;;
7049 esac
7050 ;;
7051
7052 interix[3-9]*)
7053 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7055 ;;
7056
7057 irix5* | irix6* | nonstopux*)
7058 case $LD in
7059 *-32|*"-32 ") libmagic=32-bit;;
7060 *-n32|*"-n32 ") libmagic=N32;;
7061 *-64|*"-64 ") libmagic=64-bit;;
7062 *) libmagic=never-match;;
7063 esac
7064 lt_cv_deplibs_check_method=pass_all
7065 ;;
7066
7067 # This must be Linux ELF.
7068 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7069 lt_cv_deplibs_check_method=pass_all
7070 ;;
7071
7072 netbsd*)
7073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7075 else
7076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7077 fi
7078 ;;
7079
7080 newos6*)
7081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7082 lt_cv_file_magic_cmd=/usr/bin/file
7083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7084 ;;
7085
7086 *nto* | *qnx*)
7087 lt_cv_deplibs_check_method=pass_all
7088 ;;
7089
7090 openbsd*)
7091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7093 else
7094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7095 fi
7096 ;;
7097
7098 osf3* | osf4* | osf5*)
7099 lt_cv_deplibs_check_method=pass_all
7100 ;;
7101
7102 rdos*)
7103 lt_cv_deplibs_check_method=pass_all
7104 ;;
7105
7106 solaris*)
7107 lt_cv_deplibs_check_method=pass_all
7108 ;;
7109
7110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7111 lt_cv_deplibs_check_method=pass_all
7112 ;;
7113
7114 sysv4 | sysv4.3*)
7115 case $host_vendor in
7116 motorola)
7117 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]'
7118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7119 ;;
7120 ncr)
7121 lt_cv_deplibs_check_method=pass_all
7122 ;;
7123 sequent)
7124 lt_cv_file_magic_cmd='/bin/file'
7125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7126 ;;
7127 sni)
7128 lt_cv_file_magic_cmd='/bin/file'
7129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7130 lt_cv_file_magic_test_file=/lib/libc.so
7131 ;;
7132 siemens)
7133 lt_cv_deplibs_check_method=pass_all
7134 ;;
7135 pc)
7136 lt_cv_deplibs_check_method=pass_all
7137 ;;
7138 esac
7139 ;;
7140
7141 tpf*)
7142 lt_cv_deplibs_check_method=pass_all
7143 ;;
7144 esac
7145
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7148 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7149 file_magic_cmd=$lt_cv_file_magic_cmd
7150 deplibs_check_method=$lt_cv_deplibs_check_method
7151 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164 if test -n "$ac_tool_prefix"; then
7165 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7166 set dummy ${ac_tool_prefix}ar; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_AR+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test -n "$AR"; then
7173 ac_cv_prog_AR="$AR" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_AR="${ac_tool_prefix}ar"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 AR=$ac_cv_prog_AR
7193 if test -n "$AR"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7195 $as_echo "$AR" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201
7202 fi
7203 if test -z "$ac_cv_prog_AR"; then
7204 ac_ct_AR=$AR
7205 # Extract the first word of "ar", so it can be a program name with args.
7206 set dummy ar; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 if test -n "$ac_ct_AR"; then
7213 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_prog_ac_ct_AR="ar"
7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7233 if test -n "$ac_ct_AR"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7235 $as_echo "$ac_ct_AR" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241 if test "x$ac_ct_AR" = x; then
7242 AR="false"
7243 else
7244 case $cross_compiling:$ac_tool_warned in
7245 yes:)
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7248 ac_tool_warned=yes ;;
7249 esac
7250 AR=$ac_ct_AR
7251 fi
7252 else
7253 AR="$ac_cv_prog_AR"
7254 fi
7255
7256 test -z "$AR" && AR=ar
7257 test -z "$AR_FLAGS" && AR_FLAGS=cru
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269 if test -n "$ac_tool_prefix"; then
7270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7271 set dummy ${ac_tool_prefix}strip; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if test "${ac_cv_prog_STRIP+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 if test -n "$STRIP"; then
7278 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 STRIP=$ac_cv_prog_STRIP
7298 if test -n "$STRIP"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7300 $as_echo "$STRIP" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306
7307 fi
7308 if test -z "$ac_cv_prog_STRIP"; then
7309 ac_ct_STRIP=$STRIP
7310 # Extract the first word of "strip", so it can be a program name with args.
7311 set dummy strip; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test -n "$ac_ct_STRIP"; then
7318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_ac_ct_STRIP="strip"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7330 fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7338 if test -n "$ac_ct_STRIP"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7340 $as_echo "$ac_ct_STRIP" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346 if test "x$ac_ct_STRIP" = x; then
7347 STRIP=":"
7348 else
7349 case $cross_compiling:$ac_tool_warned in
7350 yes:)
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7353 ac_tool_warned=yes ;;
7354 esac
7355 STRIP=$ac_ct_STRIP
7356 fi
7357 else
7358 STRIP="$ac_cv_prog_STRIP"
7359 fi
7360
7361 test -z "$STRIP" && STRIP=:
7362
7363
7364
7365
7366
7367
7368 if test -n "$ac_tool_prefix"; then
7369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 if test -n "$RANLIB"; then
7377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394 fi
7395 fi
7396 RANLIB=$ac_cv_prog_RANLIB
7397 if test -n "$RANLIB"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7399 $as_echo "$RANLIB" >&6; }
7400 else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406 fi
7407 if test -z "$ac_cv_prog_RANLIB"; then
7408 ac_ct_RANLIB=$RANLIB
7409 # Extract the first word of "ranlib", so it can be a program name with args.
7410 set dummy ranlib; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 if test -n "$ac_ct_RANLIB"; then
7417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_ac_ct_RANLIB="ranlib"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7429 fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7437 if test -n "$ac_ct_RANLIB"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7439 $as_echo "$ac_ct_RANLIB" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445 if test "x$ac_ct_RANLIB" = x; then
7446 RANLIB=":"
7447 else
7448 case $cross_compiling:$ac_tool_warned in
7449 yes:)
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7453 esac
7454 RANLIB=$ac_ct_RANLIB
7455 fi
7456 else
7457 RANLIB="$ac_cv_prog_RANLIB"
7458 fi
7459
7460 test -z "$RANLIB" && RANLIB=:
7461
7462
7463
7464
7465
7466
7467 # Determine commands to create old-style static archives.
7468 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7469 old_postinstall_cmds='chmod 644 $oldlib'
7470 old_postuninstall_cmds=
7471
7472 if test -n "$RANLIB"; then
7473 case $host_os in
7474 openbsd*)
7475 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7476 ;;
7477 *)
7478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7479 ;;
7480 esac
7481 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7482 fi
7483
7484 case $host_os in
7485 darwin*)
7486 lock_old_archive_extraction=yes ;;
7487 *)
7488 lock_old_archive_extraction=no ;;
7489 esac
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529 # If no C compiler was specified, use CC.
7530 LTCC=${LTCC-"$CC"}
7531
7532 # If no C compiler flags were specified, use CFLAGS.
7533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7534
7535 # Allow CC to be a program name with arguments.
7536 compiler=$CC
7537
7538
7539 # Check for command to grab the raw symbol name followed by C symbol from nm.
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7541 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7542 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545
7546 # These are sane defaults that work on at least a few old systems.
7547 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7548
7549 # Character class describing NM global symbol codes.
7550 symcode='[BCDEGRST]'
7551
7552 # Regexp to match symbols that can be accessed directly from C.
7553 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7554
7555 # Define system-specific variables.
7556 case $host_os in
7557 aix*)
7558 symcode='[BCDT]'
7559 ;;
7560 cygwin* | mingw* | pw32* | cegcc*)
7561 symcode='[ABCDGISTW]'
7562 ;;
7563 hpux*)
7564 if test "$host_cpu" = ia64; then
7565 symcode='[ABCDEGRST]'
7566 fi
7567 ;;
7568 irix* | nonstopux*)
7569 symcode='[BCDEGRST]'
7570 ;;
7571 osf*)
7572 symcode='[BCDEGQRST]'
7573 ;;
7574 solaris*)
7575 symcode='[BDRT]'
7576 ;;
7577 sco3.2v5*)
7578 symcode='[DT]'
7579 ;;
7580 sysv4.2uw2*)
7581 symcode='[DT]'
7582 ;;
7583 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7584 symcode='[ABDT]'
7585 ;;
7586 sysv4)
7587 symcode='[DFNSTU]'
7588 ;;
7589 esac
7590
7591 # If we're using GNU nm, then use its standard symbol codes.
7592 case `$NM -V 2>&1` in
7593 *GNU* | *'with BFD'*)
7594 symcode='[ABCDGIRSTW]' ;;
7595 esac
7596
7597 # Transform an extracted symbol line into a proper C declaration.
7598 # Some systems (esp. on ia64) link data and code symbols differently,
7599 # so use this general approach.
7600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7601
7602 # Transform an extracted symbol line into symbol name and symbol address
7603 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7604 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'"
7605
7606 # Handle CRLF in mingw tool chain
7607 opt_cr=
7608 case $build_os in
7609 mingw*)
7610 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7611 ;;
7612 esac
7613
7614 # Try without a prefix underscore, then with it.
7615 for ac_symprfx in "" "_"; do
7616
7617 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7618 symxfrm="\\1 $ac_symprfx\\2 \\2"
7619
7620 # Write the raw and C identifiers.
7621 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7622 # Fake it for dumpbin and say T for any non-static function
7623 # and D for any global variable.
7624 # Also find C++ and __fastcall symbols from MSVC++,
7625 # which start with @ or ?.
7626 lt_cv_sys_global_symbol_pipe="$AWK '"\
7627 " {last_section=section; section=\$ 3};"\
7628 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7629 " \$ 0!~/External *\|/{next};"\
7630 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7631 " {if(hide[section]) next};"\
7632 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7633 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7634 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7635 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7636 " ' prfx=^$ac_symprfx"
7637 else
7638 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7639 fi
7640
7641 # Check to see that the pipe works correctly.
7642 pipe_works=no
7643
7644 rm -f conftest*
7645 cat > conftest.$ac_ext <<_LT_EOF
7646 #ifdef __cplusplus
7647 extern "C" {
7648 #endif
7649 char nm_test_var;
7650 void nm_test_func(void);
7651 void nm_test_func(void){}
7652 #ifdef __cplusplus
7653 }
7654 #endif
7655 int main(){nm_test_var='a';nm_test_func();return(0);}
7656 _LT_EOF
7657
7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7659 (eval $ac_compile) 2>&5
7660 ac_status=$?
7661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7662 test $ac_status = 0; }; then
7663 # Now try to grab the symbols.
7664 nlist=conftest.nm
7665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7666 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7667 ac_status=$?
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; } && test -s "$nlist"; then
7670 # Try sorting and uniquifying the output.
7671 if sort "$nlist" | uniq > "$nlist"T; then
7672 mv -f "$nlist"T "$nlist"
7673 else
7674 rm -f "$nlist"T
7675 fi
7676
7677 # Make sure that we snagged all the symbols we need.
7678 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7679 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7680 cat <<_LT_EOF > conftest.$ac_ext
7681 #ifdef __cplusplus
7682 extern "C" {
7683 #endif
7684
7685 _LT_EOF
7686 # Now generate the symbol file.
7687 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7688
7689 cat <<_LT_EOF >> conftest.$ac_ext
7690
7691 /* The mapping between symbol names and symbols. */
7692 const struct {
7693 const char *name;
7694 void *address;
7695 }
7696 lt__PROGRAM__LTX_preloaded_symbols[] =
7697 {
7698 { "@PROGRAM@", (void *) 0 },
7699 _LT_EOF
7700 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7701 cat <<\_LT_EOF >> conftest.$ac_ext
7702 {0, (void *) 0}
7703 };
7704
7705 /* This works around a problem in FreeBSD linker */
7706 #ifdef FREEBSD_WORKAROUND
7707 static const void *lt_preloaded_setup() {
7708 return lt__PROGRAM__LTX_preloaded_symbols;
7709 }
7710 #endif
7711
7712 #ifdef __cplusplus
7713 }
7714 #endif
7715 _LT_EOF
7716 # Now try linking the two files.
7717 mv conftest.$ac_objext conftstm.$ac_objext
7718 lt_save_LIBS="$LIBS"
7719 lt_save_CFLAGS="$CFLAGS"
7720 LIBS="conftstm.$ac_objext"
7721 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7723 (eval $ac_link) 2>&5
7724 ac_status=$?
7725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7727 pipe_works=yes
7728 fi
7729 LIBS="$lt_save_LIBS"
7730 CFLAGS="$lt_save_CFLAGS"
7731 else
7732 echo "cannot find nm_test_func in $nlist" >&5
7733 fi
7734 else
7735 echo "cannot find nm_test_var in $nlist" >&5
7736 fi
7737 else
7738 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7739 fi
7740 else
7741 echo "$progname: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7743 fi
7744 rm -rf conftest* conftst*
7745
7746 # Do not use the global_symbol_pipe unless it works.
7747 if test "$pipe_works" = yes; then
7748 break
7749 else
7750 lt_cv_sys_global_symbol_pipe=
7751 fi
7752 done
7753
7754 fi
7755
7756 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7757 lt_cv_sys_global_symbol_to_cdecl=
7758 fi
7759 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7761 $as_echo "failed" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7764 $as_echo "ok" >&6; }
7765 fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788 # Check whether --enable-libtool-lock was given.
7789 if test "${enable_libtool_lock+set}" = set; then :
7790 enableval=$enable_libtool_lock;
7791 fi
7792
7793 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7794
7795 # Some flags need to be propagated to the compiler or linker for good
7796 # libtool support.
7797 case $host in
7798 ia64-*-hpux*)
7799 # Find out which ABI we are using.
7800 echo 'int i;' > conftest.$ac_ext
7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802 (eval $ac_compile) 2>&5
7803 ac_status=$?
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }; then
7806 case `/usr/bin/file conftest.$ac_objext` in
7807 *ELF-32*)
7808 HPUX_IA64_MODE="32"
7809 ;;
7810 *ELF-64*)
7811 HPUX_IA64_MODE="64"
7812 ;;
7813 esac
7814 fi
7815 rm -rf conftest*
7816 ;;
7817 *-*-irix6*)
7818 # Find out which ABI we are using.
7819 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821 (eval $ac_compile) 2>&5
7822 ac_status=$?
7823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824 test $ac_status = 0; }; then
7825 if test "$lt_cv_prog_gnu_ld" = yes; then
7826 case `/usr/bin/file conftest.$ac_objext` in
7827 *32-bit*)
7828 LD="${LD-ld} -melf32bsmip"
7829 ;;
7830 *N32*)
7831 LD="${LD-ld} -melf32bmipn32"
7832 ;;
7833 *64-bit*)
7834 LD="${LD-ld} -melf64bmip"
7835 ;;
7836 esac
7837 else
7838 case `/usr/bin/file conftest.$ac_objext` in
7839 *32-bit*)
7840 LD="${LD-ld} -32"
7841 ;;
7842 *N32*)
7843 LD="${LD-ld} -n32"
7844 ;;
7845 *64-bit*)
7846 LD="${LD-ld} -64"
7847 ;;
7848 esac
7849 fi
7850 fi
7851 rm -rf conftest*
7852 ;;
7853
7854 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7855 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7856 # Find out which ABI we are using.
7857 echo 'int i;' > conftest.$ac_ext
7858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7859 (eval $ac_compile) 2>&5
7860 ac_status=$?
7861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; }; then
7863 case `/usr/bin/file conftest.o` in
7864 *32-bit*)
7865 case $host in
7866 x86_64-*kfreebsd*-gnu)
7867 LD="${LD-ld} -m elf_i386_fbsd"
7868 ;;
7869 x86_64-*linux*)
7870 case `/usr/bin/file conftest.o` in
7871 *x86-64*)
7872 LD="${LD-ld} -m elf32_x86_64"
7873 ;;
7874 *)
7875 LD="${LD-ld} -m elf_i386"
7876 ;;
7877 esac
7878 ;;
7879 ppc64-*linux*|powerpc64-*linux*)
7880 LD="${LD-ld} -m elf32ppclinux"
7881 ;;
7882 s390x-*linux*)
7883 LD="${LD-ld} -m elf_s390"
7884 ;;
7885 sparc64-*linux*)
7886 LD="${LD-ld} -m elf32_sparc"
7887 ;;
7888 esac
7889 ;;
7890 *64-bit*)
7891 case $host in
7892 x86_64-*kfreebsd*-gnu)
7893 LD="${LD-ld} -m elf_x86_64_fbsd"
7894 ;;
7895 x86_64-*linux*)
7896 LD="${LD-ld} -m elf_x86_64"
7897 ;;
7898 ppc*-*linux*|powerpc*-*linux*)
7899 LD="${LD-ld} -m elf64ppc"
7900 ;;
7901 s390*-*linux*|s390*-*tpf*)
7902 LD="${LD-ld} -m elf64_s390"
7903 ;;
7904 sparc*-*linux*)
7905 LD="${LD-ld} -m elf64_sparc"
7906 ;;
7907 esac
7908 ;;
7909 esac
7910 fi
7911 rm -rf conftest*
7912 ;;
7913
7914 *-*-sco3.2v5*)
7915 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7916 SAVE_CFLAGS="$CFLAGS"
7917 CFLAGS="$CFLAGS -belf"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7919 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7920 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 ac_ext=c
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931
7932 int
7933 main ()
7934 {
7935
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 if ac_fn_c_try_link "$LINENO"; then :
7941 lt_cv_cc_needs_belf=yes
7942 else
7943 lt_cv_cc_needs_belf=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext \
7946 conftest$ac_exeext conftest.$ac_ext
7947 ac_ext=c
7948 ac_cpp='$CPP $CPPFLAGS'
7949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953 fi
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7955 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7956 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7957 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7958 CFLAGS="$SAVE_CFLAGS"
7959 fi
7960 ;;
7961 sparc*-*solaris*)
7962 # Find out which ABI we are using.
7963 echo 'int i;' > conftest.$ac_ext
7964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7965 (eval $ac_compile) 2>&5
7966 ac_status=$?
7967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7968 test $ac_status = 0; }; then
7969 case `/usr/bin/file conftest.o` in
7970 *64-bit*)
7971 case $lt_cv_prog_gnu_ld in
7972 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7973 *)
7974 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7975 LD="${LD-ld} -64"
7976 fi
7977 ;;
7978 esac
7979 ;;
7980 esac
7981 fi
7982 rm -rf conftest*
7983 ;;
7984 esac
7985
7986 need_locks="$enable_libtool_lock"
7987
7988
7989 case $host_os in
7990 rhapsody* | darwin*)
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$DSYMUTIL"; then
8000 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8020 if test -n "$DSYMUTIL"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8022 $as_echo "$DSYMUTIL" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_DSYMUTIL"; then
8031 ac_ct_DSYMUTIL=$DSYMUTIL
8032 # Extract the first word of "dsymutil", so it can be a program name with args.
8033 set dummy dsymutil; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$ac_ct_DSYMUTIL"; then
8040 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057 fi
8058 fi
8059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8060 if test -n "$ac_ct_DSYMUTIL"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8062 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067
8068 if test "x$ac_ct_DSYMUTIL" = x; then
8069 DSYMUTIL=":"
8070 else
8071 case $cross_compiling:$ac_tool_warned in
8072 yes:)
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8076 esac
8077 DSYMUTIL=$ac_ct_DSYMUTIL
8078 fi
8079 else
8080 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8081 fi
8082
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 if test -n "$NMEDIT"; then
8092 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105 done
8106 done
8107 IFS=$as_save_IFS
8108
8109 fi
8110 fi
8111 NMEDIT=$ac_cv_prog_NMEDIT
8112 if test -n "$NMEDIT"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8114 $as_echo "$NMEDIT" >&6; }
8115 else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_NMEDIT"; then
8123 ac_ct_NMEDIT=$NMEDIT
8124 # Extract the first word of "nmedit", so it can be a program name with args.
8125 set dummy nmedit; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$ac_ct_NMEDIT"; then
8132 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8144 fi
8145 done
8146 done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8152 if test -n "$ac_ct_NMEDIT"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8154 $as_echo "$ac_ct_NMEDIT" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160 if test "x$ac_ct_NMEDIT" = x; then
8161 NMEDIT=":"
8162 else
8163 case $cross_compiling:$ac_tool_warned in
8164 yes:)
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8168 esac
8169 NMEDIT=$ac_ct_NMEDIT
8170 fi
8171 else
8172 NMEDIT="$ac_cv_prog_NMEDIT"
8173 fi
8174
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if test "${ac_cv_prog_LIPO+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 if test -n "$LIPO"; then
8184 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8185 else
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 break 2
8196 fi
8197 done
8198 done
8199 IFS=$as_save_IFS
8200
8201 fi
8202 fi
8203 LIPO=$ac_cv_prog_LIPO
8204 if test -n "$LIPO"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8206 $as_echo "$LIPO" >&6; }
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8210 fi
8211
8212
8213 fi
8214 if test -z "$ac_cv_prog_LIPO"; then
8215 ac_ct_LIPO=$LIPO
8216 # Extract the first word of "lipo", so it can be a program name with args.
8217 set dummy lipo; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 if test -n "$ac_ct_LIPO"; then
8224 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_ac_ct_LIPO="lipo"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241 fi
8242 fi
8243 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8244 if test -n "$ac_ct_LIPO"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8246 $as_echo "$ac_ct_LIPO" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8250 fi
8251
8252 if test "x$ac_ct_LIPO" = x; then
8253 LIPO=":"
8254 else
8255 case $cross_compiling:$ac_tool_warned in
8256 yes:)
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259 ac_tool_warned=yes ;;
8260 esac
8261 LIPO=$ac_ct_LIPO
8262 fi
8263 else
8264 LIPO="$ac_cv_prog_LIPO"
8265 fi
8266
8267 if test -n "$ac_tool_prefix"; then
8268 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8269 set dummy ${ac_tool_prefix}otool; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$OTOOL"; then
8276 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8280 do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289 done
8290 done
8291 IFS=$as_save_IFS
8292
8293 fi
8294 fi
8295 OTOOL=$ac_cv_prog_OTOOL
8296 if test -n "$OTOOL"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8298 $as_echo "$OTOOL" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303
8304
8305 fi
8306 if test -z "$ac_cv_prog_OTOOL"; then
8307 ac_ct_OTOOL=$OTOOL
8308 # Extract the first word of "otool", so it can be a program name with args.
8309 set dummy otool; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$ac_ct_OTOOL"; then
8316 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_ac_ct_OTOOL="otool"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8336 if test -n "$ac_ct_OTOOL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8338 $as_echo "$ac_ct_OTOOL" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344 if test "x$ac_ct_OTOOL" = x; then
8345 OTOOL=":"
8346 else
8347 case $cross_compiling:$ac_tool_warned in
8348 yes:)
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8351 ac_tool_warned=yes ;;
8352 esac
8353 OTOOL=$ac_ct_OTOOL
8354 fi
8355 else
8356 OTOOL="$ac_cv_prog_OTOOL"
8357 fi
8358
8359 if test -n "$ac_tool_prefix"; then
8360 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 if test -n "$OTOOL64"; then
8368 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8380 fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 OTOOL64=$ac_cv_prog_OTOOL64
8388 if test -n "$OTOOL64"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8390 $as_echo "$OTOOL64" >&6; }
8391 else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8394 fi
8395
8396
8397 fi
8398 if test -z "$ac_cv_prog_OTOOL64"; then
8399 ac_ct_OTOOL64=$OTOOL64
8400 # Extract the first word of "otool64", so it can be a program name with args.
8401 set dummy otool64; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$ac_ct_OTOOL64"; then
8408 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_ac_ct_OTOOL64="otool64"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8428 if test -n "$ac_ct_OTOOL64"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8430 $as_echo "$ac_ct_OTOOL64" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436 if test "x$ac_ct_OTOOL64" = x; then
8437 OTOOL64=":"
8438 else
8439 case $cross_compiling:$ac_tool_warned in
8440 yes:)
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8443 ac_tool_warned=yes ;;
8444 esac
8445 OTOOL64=$ac_ct_OTOOL64
8446 fi
8447 else
8448 OTOOL64="$ac_cv_prog_OTOOL64"
8449 fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8478 $as_echo_n "checking for -single_module linker flag... " >&6; }
8479 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 lt_cv_apple_cc_single_mod=no
8483 if test -z "${LT_MULTI_MODULE}"; then
8484 # By default we will add the -single_module flag. You can override
8485 # by either setting the environment variable LT_MULTI_MODULE
8486 # non-empty at configure time, or by adding -multi_module to the
8487 # link flags.
8488 rm -rf libconftest.dylib*
8489 echo "int foo(void){return 1;}" > conftest.c
8490 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8491 -dynamiclib -Wl,-single_module conftest.c" >&5
8492 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8493 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8494 _lt_result=$?
8495 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8496 lt_cv_apple_cc_single_mod=yes
8497 else
8498 cat conftest.err >&5
8499 fi
8500 rm -rf libconftest.dylib*
8501 rm -f conftest.*
8502 fi
8503 fi
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8505 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8507 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8508 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 lt_cv_ld_exported_symbols_list=no
8512 save_LDFLAGS=$LDFLAGS
8513 echo "_main" > conftest.sym
8514 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517
8518 int
8519 main ()
8520 {
8521
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 if ac_fn_c_try_link "$LINENO"; then :
8527 lt_cv_ld_exported_symbols_list=yes
8528 else
8529 lt_cv_ld_exported_symbols_list=no
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext \
8532 conftest$ac_exeext conftest.$ac_ext
8533 LDFLAGS="$save_LDFLAGS"
8534
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8537 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8539 $as_echo_n "checking for -force_load linker flag... " >&6; }
8540 if test "${lt_cv_ld_force_load+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 lt_cv_ld_force_load=no
8544 cat > conftest.c << _LT_EOF
8545 int forced_loaded() { return 2;}
8546 _LT_EOF
8547 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8548 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8549 echo "$AR cru libconftest.a conftest.o" >&5
8550 $AR cru libconftest.a conftest.o 2>&5
8551 cat > conftest.c << _LT_EOF
8552 int main() { return 0;}
8553 _LT_EOF
8554 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8555 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8556 _lt_result=$?
8557 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8558 lt_cv_ld_force_load=yes
8559 else
8560 cat conftest.err >&5
8561 fi
8562 rm -f conftest.err libconftest.a conftest conftest.c
8563 rm -rf conftest.dSYM
8564
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8567 $as_echo "$lt_cv_ld_force_load" >&6; }
8568 case $host_os in
8569 rhapsody* | darwin1.[012])
8570 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8571 darwin1.*)
8572 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8573 darwin*) # darwin 5.x on
8574 # if running on 10.5 or later, the deployment target defaults
8575 # to the OS version, if on x86, and 10.4, the deployment
8576 # target defaults to 10.4. Don't you love it?
8577 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8578 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8579 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8580 10.[012]*)
8581 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8582 10.*)
8583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8584 esac
8585 ;;
8586 esac
8587 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8588 _lt_dar_single_mod='$single_module'
8589 fi
8590 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8591 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8592 else
8593 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8594 fi
8595 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8596 _lt_dsymutil='~$DSYMUTIL $lib || :'
8597 else
8598 _lt_dsymutil=
8599 fi
8600 ;;
8601 esac
8602
8603 for ac_header in dlfcn.h
8604 do :
8605 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8606 "
8607 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8608 cat >>confdefs.h <<_ACEOF
8609 #define HAVE_DLFCN_H 1
8610 _ACEOF
8611
8612 fi
8613
8614 done
8615
8616
8617
8618
8619
8620
8621 # Set options
8622
8623
8624
8625
8626 enable_win32_dll=no
8627
8628
8629 # Check whether --enable-shared was given.
8630 if test "${enable_shared+set}" = set; then :
8631 enableval=$enable_shared; p=${PACKAGE-default}
8632 case $enableval in
8633 yes) enable_shared=yes ;;
8634 no) enable_shared=no ;;
8635 *)
8636 enable_shared=no
8637 # Look at the argument we got. We use all the common list separators.
8638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8639 for pkg in $enableval; do
8640 IFS="$lt_save_ifs"
8641 if test "X$pkg" = "X$p"; then
8642 enable_shared=yes
8643 fi
8644 done
8645 IFS="$lt_save_ifs"
8646 ;;
8647 esac
8648 else
8649 enable_shared=yes
8650 fi
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660 # Check whether --enable-static was given.
8661 if test "${enable_static+set}" = set; then :
8662 enableval=$enable_static; p=${PACKAGE-default}
8663 case $enableval in
8664 yes) enable_static=yes ;;
8665 no) enable_static=no ;;
8666 *)
8667 enable_static=no
8668 # Look at the argument we got. We use all the common list separators.
8669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8670 for pkg in $enableval; do
8671 IFS="$lt_save_ifs"
8672 if test "X$pkg" = "X$p"; then
8673 enable_static=yes
8674 fi
8675 done
8676 IFS="$lt_save_ifs"
8677 ;;
8678 esac
8679 else
8680 enable_static=yes
8681 fi
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692 # Check whether --with-pic was given.
8693 if test "${with_pic+set}" = set; then :
8694 withval=$with_pic; pic_mode="$withval"
8695 else
8696 pic_mode=default
8697 fi
8698
8699
8700 test -z "$pic_mode" && pic_mode=default
8701
8702
8703
8704
8705
8706
8707
8708 # Check whether --enable-fast-install was given.
8709 if test "${enable_fast_install+set}" = set; then :
8710 enableval=$enable_fast_install; p=${PACKAGE-default}
8711 case $enableval in
8712 yes) enable_fast_install=yes ;;
8713 no) enable_fast_install=no ;;
8714 *)
8715 enable_fast_install=no
8716 # Look at the argument we got. We use all the common list separators.
8717 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8718 for pkg in $enableval; do
8719 IFS="$lt_save_ifs"
8720 if test "X$pkg" = "X$p"; then
8721 enable_fast_install=yes
8722 fi
8723 done
8724 IFS="$lt_save_ifs"
8725 ;;
8726 esac
8727 else
8728 enable_fast_install=yes
8729 fi
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 # This can be used to rebuild libtool when needed
8742 LIBTOOL_DEPS="$ltmain"
8743
8744 # Always use our own libtool.
8745 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772 test -z "$LN_S" && LN_S="ln -s"
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787 if test -n "${ZSH_VERSION+set}" ; then
8788 setopt NO_GLOB_SUBST
8789 fi
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8792 $as_echo_n "checking for objdir... " >&6; }
8793 if test "${lt_cv_objdir+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 rm -f .libs 2>/dev/null
8797 mkdir .libs 2>/dev/null
8798 if test -d .libs; then
8799 lt_cv_objdir=.libs
8800 else
8801 # MS-DOS does not allow filenames that begin with a dot.
8802 lt_cv_objdir=_libs
8803 fi
8804 rmdir .libs 2>/dev/null
8805 fi
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8807 $as_echo "$lt_cv_objdir" >&6; }
8808 objdir=$lt_cv_objdir
8809
8810
8811
8812
8813
8814 cat >>confdefs.h <<_ACEOF
8815 #define LT_OBJDIR "$lt_cv_objdir/"
8816 _ACEOF
8817
8818
8819
8820
8821 case $host_os in
8822 aix3*)
8823 # AIX sometimes has problems with the GCC collect2 program. For some
8824 # reason, if we set the COLLECT_NAMES environment variable, the problems
8825 # vanish in a puff of smoke.
8826 if test "X${COLLECT_NAMES+set}" != Xset; then
8827 COLLECT_NAMES=
8828 export COLLECT_NAMES
8829 fi
8830 ;;
8831 esac
8832
8833 # Global variables:
8834 ofile=libtool
8835 can_build_shared=yes
8836
8837 # All known linkers require a `.a' archive for static linking (except MSVC,
8838 # which needs '.lib').
8839 libext=a
8840
8841 with_gnu_ld="$lt_cv_prog_gnu_ld"
8842
8843 old_CC="$CC"
8844 old_CFLAGS="$CFLAGS"
8845
8846 # Set sane defaults for various variables
8847 test -z "$CC" && CC=cc
8848 test -z "$LTCC" && LTCC=$CC
8849 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8850 test -z "$LD" && LD=ld
8851 test -z "$ac_objext" && ac_objext=o
8852
8853 for cc_temp in $compiler""; do
8854 case $cc_temp in
8855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8857 \-*) ;;
8858 *) break;;
8859 esac
8860 done
8861 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8862
8863
8864 # Only perform the check for file, if the check method requires it
8865 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8866 case $deplibs_check_method in
8867 file_magic*)
8868 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8870 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8871 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 case $MAGIC_CMD in
8875 [\\/*] | ?:[\\/]*)
8876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8877 ;;
8878 *)
8879 lt_save_MAGIC_CMD="$MAGIC_CMD"
8880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8881 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8882 for ac_dir in $ac_dummy; do
8883 IFS="$lt_save_ifs"
8884 test -z "$ac_dir" && ac_dir=.
8885 if test -f $ac_dir/${ac_tool_prefix}file; then
8886 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8887 if test -n "$file_magic_test_file"; then
8888 case $deplibs_check_method in
8889 "file_magic "*)
8890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8893 $EGREP "$file_magic_regex" > /dev/null; then
8894 :
8895 else
8896 cat <<_LT_EOF 1>&2
8897
8898 *** Warning: the command libtool uses to detect shared libraries,
8899 *** $file_magic_cmd, produces output that libtool cannot recognize.
8900 *** The result is that libtool may fail to recognize shared libraries
8901 *** as such. This will affect the creation of libtool libraries that
8902 *** depend on shared libraries, but programs linked with such libtool
8903 *** libraries will work regardless of this problem. Nevertheless, you
8904 *** may want to report the problem to your system manager and/or to
8905 *** bug-libtool@gnu.org
8906
8907 _LT_EOF
8908 fi ;;
8909 esac
8910 fi
8911 break
8912 fi
8913 done
8914 IFS="$lt_save_ifs"
8915 MAGIC_CMD="$lt_save_MAGIC_CMD"
8916 ;;
8917 esac
8918 fi
8919
8920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8921 if test -n "$MAGIC_CMD"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8923 $as_echo "$MAGIC_CMD" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8927 fi
8928
8929
8930
8931
8932
8933 if test -z "$lt_cv_path_MAGIC_CMD"; then
8934 if test -n "$ac_tool_prefix"; then
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8936 $as_echo_n "checking for file... " >&6; }
8937 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 case $MAGIC_CMD in
8941 [\\/*] | ?:[\\/]*)
8942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8943 ;;
8944 *)
8945 lt_save_MAGIC_CMD="$MAGIC_CMD"
8946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8947 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8948 for ac_dir in $ac_dummy; do
8949 IFS="$lt_save_ifs"
8950 test -z "$ac_dir" && ac_dir=.
8951 if test -f $ac_dir/file; then
8952 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8953 if test -n "$file_magic_test_file"; then
8954 case $deplibs_check_method in
8955 "file_magic "*)
8956 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8958 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8959 $EGREP "$file_magic_regex" > /dev/null; then
8960 :
8961 else
8962 cat <<_LT_EOF 1>&2
8963
8964 *** Warning: the command libtool uses to detect shared libraries,
8965 *** $file_magic_cmd, produces output that libtool cannot recognize.
8966 *** The result is that libtool may fail to recognize shared libraries
8967 *** as such. This will affect the creation of libtool libraries that
8968 *** depend on shared libraries, but programs linked with such libtool
8969 *** libraries will work regardless of this problem. Nevertheless, you
8970 *** may want to report the problem to your system manager and/or to
8971 *** bug-libtool@gnu.org
8972
8973 _LT_EOF
8974 fi ;;
8975 esac
8976 fi
8977 break
8978 fi
8979 done
8980 IFS="$lt_save_ifs"
8981 MAGIC_CMD="$lt_save_MAGIC_CMD"
8982 ;;
8983 esac
8984 fi
8985
8986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8987 if test -n "$MAGIC_CMD"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8989 $as_echo "$MAGIC_CMD" >&6; }
8990 else
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8993 fi
8994
8995
8996 else
8997 MAGIC_CMD=:
8998 fi
8999 fi
9000
9001 fi
9002 ;;
9003 esac
9004
9005 # Use C for the default configuration in the libtool script
9006
9007 lt_save_CC="$CC"
9008 ac_ext=c
9009 ac_cpp='$CPP $CPPFLAGS'
9010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9013
9014
9015 # Source file extension for C test sources.
9016 ac_ext=c
9017
9018 # Object file extension for compiled C test sources.
9019 objext=o
9020 objext=$objext
9021
9022 # Code to be used in simple compile tests
9023 lt_simple_compile_test_code="int some_variable = 0;"
9024
9025 # Code to be used in simple link tests
9026 lt_simple_link_test_code='int main(){return(0);}'
9027
9028
9029
9030
9031
9032
9033
9034 # If no C compiler was specified, use CC.
9035 LTCC=${LTCC-"$CC"}
9036
9037 # If no C compiler flags were specified, use CFLAGS.
9038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9039
9040 # Allow CC to be a program name with arguments.
9041 compiler=$CC
9042
9043 # Save the default compiler, since it gets overwritten when the other
9044 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9045 compiler_DEFAULT=$CC
9046
9047 # save warnings/boilerplate of simple test code
9048 ac_outfile=conftest.$ac_objext
9049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9051 _lt_compiler_boilerplate=`cat conftest.err`
9052 $RM conftest*
9053
9054 ac_outfile=conftest.$ac_objext
9055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9057 _lt_linker_boilerplate=`cat conftest.err`
9058 $RM -r conftest*
9059
9060
9061 ## CAVEAT EMPTOR:
9062 ## There is no encapsulation within the following macros, do not change
9063 ## the running order or otherwise move them around unless you know exactly
9064 ## what you are doing...
9065 if test -n "$compiler"; then
9066
9067 lt_prog_compiler_no_builtin_flag=
9068
9069 if test "$GCC" = yes; then
9070 case $cc_basename in
9071 nvcc*)
9072 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9073 *)
9074 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9075 esac
9076
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9078 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9079 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 lt_cv_prog_compiler_rtti_exceptions=no
9083 ac_outfile=conftest.$ac_objext
9084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9085 lt_compiler_flag="-fno-rtti -fno-exceptions"
9086 # Insert the option either (1) after the last *FLAGS variable, or
9087 # (2) before a word containing "conftest.", or (3) at the end.
9088 # Note that $ac_compile itself does not contain backslashes and begins
9089 # with a dollar sign (not a hyphen), so the echo should work correctly.
9090 # The option is referenced via a variable to avoid confusing sed.
9091 lt_compile=`echo "$ac_compile" | $SED \
9092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9094 -e 's:$: $lt_compiler_flag:'`
9095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9096 (eval "$lt_compile" 2>conftest.err)
9097 ac_status=$?
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 if (exit $ac_status) && test -s "$ac_outfile"; then
9101 # The compiler can only warn and ignore the option if not recognized
9102 # So say no if there are warnings other than the usual output.
9103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9106 lt_cv_prog_compiler_rtti_exceptions=yes
9107 fi
9108 fi
9109 $RM conftest*
9110
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9113 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9114
9115 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9116 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9117 else
9118 :
9119 fi
9120
9121 fi
9122
9123
9124
9125
9126
9127
9128 lt_prog_compiler_wl=
9129 lt_prog_compiler_pic=
9130 lt_prog_compiler_static=
9131
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9133 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9134
9135 if test "$GCC" = yes; then
9136 lt_prog_compiler_wl='-Wl,'
9137 lt_prog_compiler_static='-static'
9138
9139 case $host_os in
9140 aix*)
9141 # All AIX code is PIC.
9142 if test "$host_cpu" = ia64; then
9143 # AIX 5 now supports IA64 processor
9144 lt_prog_compiler_static='-Bstatic'
9145 fi
9146 lt_prog_compiler_pic='-fPIC'
9147 ;;
9148
9149 amigaos*)
9150 case $host_cpu in
9151 powerpc)
9152 # see comment about AmigaOS4 .so support
9153 lt_prog_compiler_pic='-fPIC'
9154 ;;
9155 m68k)
9156 # FIXME: we need at least 68020 code to build shared libraries, but
9157 # adding the `-m68020' flag to GCC prevents building anything better,
9158 # like `-m68040'.
9159 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9160 ;;
9161 esac
9162 ;;
9163
9164 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9165 # PIC is the default for these OSes.
9166 ;;
9167
9168 mingw* | cygwin* | pw32* | os2* | cegcc*)
9169 # This hack is so that the source file can tell whether it is being
9170 # built for inclusion in a dll (and should export symbols for example).
9171 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9172 # (--disable-auto-import) libraries
9173 lt_prog_compiler_pic='-DDLL_EXPORT'
9174 ;;
9175
9176 darwin* | rhapsody*)
9177 # PIC is the default on this platform
9178 # Common symbols not allowed in MH_DYLIB files
9179 lt_prog_compiler_pic='-fno-common'
9180 ;;
9181
9182 haiku*)
9183 # PIC is the default for Haiku.
9184 # The "-static" flag exists, but is broken.
9185 lt_prog_compiler_static=
9186 ;;
9187
9188 hpux*)
9189 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9190 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9191 # sets the default TLS model and affects inlining.
9192 case $host_cpu in
9193 hppa*64*)
9194 # +Z the default
9195 ;;
9196 *)
9197 lt_prog_compiler_pic='-fPIC'
9198 ;;
9199 esac
9200 ;;
9201
9202 interix[3-9]*)
9203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9204 # Instead, we relocate shared libraries at runtime.
9205 ;;
9206
9207 msdosdjgpp*)
9208 # Just because we use GCC doesn't mean we suddenly get shared libraries
9209 # on systems that don't support them.
9210 lt_prog_compiler_can_build_shared=no
9211 enable_shared=no
9212 ;;
9213
9214 *nto* | *qnx*)
9215 # QNX uses GNU C++, but need to define -shared option too, otherwise
9216 # it will coredump.
9217 lt_prog_compiler_pic='-fPIC -shared'
9218 ;;
9219
9220 sysv4*MP*)
9221 if test -d /usr/nec; then
9222 lt_prog_compiler_pic=-Kconform_pic
9223 fi
9224 ;;
9225
9226 *)
9227 lt_prog_compiler_pic='-fPIC'
9228 ;;
9229 esac
9230
9231 case $cc_basename in
9232 nvcc*) # Cuda Compiler Driver 2.2
9233 lt_prog_compiler_wl='-Xlinker '
9234 lt_prog_compiler_pic='-Xcompiler -fPIC'
9235 ;;
9236 esac
9237 else
9238 # PORTME Check for flag to pass linker flags through the system compiler.
9239 case $host_os in
9240 aix*)
9241 lt_prog_compiler_wl='-Wl,'
9242 if test "$host_cpu" = ia64; then
9243 # AIX 5 now supports IA64 processor
9244 lt_prog_compiler_static='-Bstatic'
9245 else
9246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9247 fi
9248 ;;
9249
9250 mingw* | cygwin* | pw32* | os2* | cegcc*)
9251 # This hack is so that the source file can tell whether it is being
9252 # built for inclusion in a dll (and should export symbols for example).
9253 lt_prog_compiler_pic='-DDLL_EXPORT'
9254 ;;
9255
9256 hpux9* | hpux10* | hpux11*)
9257 lt_prog_compiler_wl='-Wl,'
9258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9259 # not for PA HP-UX.
9260 case $host_cpu in
9261 hppa*64*|ia64*)
9262 # +Z the default
9263 ;;
9264 *)
9265 lt_prog_compiler_pic='+Z'
9266 ;;
9267 esac
9268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9269 lt_prog_compiler_static='${wl}-a ${wl}archive'
9270 ;;
9271
9272 irix5* | irix6* | nonstopux*)
9273 lt_prog_compiler_wl='-Wl,'
9274 # PIC (with -KPIC) is the default.
9275 lt_prog_compiler_static='-non_shared'
9276 ;;
9277
9278 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9279 case $cc_basename in
9280 # old Intel for x86_64 which still supported -KPIC.
9281 ecc*)
9282 lt_prog_compiler_wl='-Wl,'
9283 lt_prog_compiler_pic='-KPIC'
9284 lt_prog_compiler_static='-static'
9285 ;;
9286 # icc used to be incompatible with GCC.
9287 # ICC 10 doesn't accept -KPIC any more.
9288 icc* | ifort*)
9289 lt_prog_compiler_wl='-Wl,'
9290 lt_prog_compiler_pic='-fPIC'
9291 lt_prog_compiler_static='-static'
9292 ;;
9293 # Lahey Fortran 8.1.
9294 lf95*)
9295 lt_prog_compiler_wl='-Wl,'
9296 lt_prog_compiler_pic='--shared'
9297 lt_prog_compiler_static='--static'
9298 ;;
9299 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9300 # Portland Group compilers (*not* the Pentium gcc compiler,
9301 # which looks to be a dead project)
9302 lt_prog_compiler_wl='-Wl,'
9303 lt_prog_compiler_pic='-fpic'
9304 lt_prog_compiler_static='-Bstatic'
9305 ;;
9306 ccc*)
9307 lt_prog_compiler_wl='-Wl,'
9308 # All Alpha code is PIC.
9309 lt_prog_compiler_static='-non_shared'
9310 ;;
9311 xl* | bgxl* | bgf* | mpixl*)
9312 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-qpic'
9315 lt_prog_compiler_static='-qstaticlink'
9316 ;;
9317 *)
9318 case `$CC -V 2>&1 | sed 5q` in
9319 *Sun\ F* | *Sun*Fortran*)
9320 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9321 lt_prog_compiler_pic='-KPIC'
9322 lt_prog_compiler_static='-Bstatic'
9323 lt_prog_compiler_wl=''
9324 ;;
9325 *Sun\ C*)
9326 # Sun C 5.9
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-Bstatic'
9329 lt_prog_compiler_wl='-Wl,'
9330 ;;
9331 esac
9332 ;;
9333 esac
9334 ;;
9335
9336 newsos6)
9337 lt_prog_compiler_pic='-KPIC'
9338 lt_prog_compiler_static='-Bstatic'
9339 ;;
9340
9341 *nto* | *qnx*)
9342 # QNX uses GNU C++, but need to define -shared option too, otherwise
9343 # it will coredump.
9344 lt_prog_compiler_pic='-fPIC -shared'
9345 ;;
9346
9347 osf3* | osf4* | osf5*)
9348 lt_prog_compiler_wl='-Wl,'
9349 # All OSF/1 code is PIC.
9350 lt_prog_compiler_static='-non_shared'
9351 ;;
9352
9353 rdos*)
9354 lt_prog_compiler_static='-non_shared'
9355 ;;
9356
9357 solaris*)
9358 lt_prog_compiler_pic='-KPIC'
9359 lt_prog_compiler_static='-Bstatic'
9360 case $cc_basename in
9361 f77* | f90* | f95*)
9362 lt_prog_compiler_wl='-Qoption ld ';;
9363 *)
9364 lt_prog_compiler_wl='-Wl,';;
9365 esac
9366 ;;
9367
9368 sunos4*)
9369 lt_prog_compiler_wl='-Qoption ld '
9370 lt_prog_compiler_pic='-PIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9373
9374 sysv4 | sysv4.2uw2* | sysv4.3*)
9375 lt_prog_compiler_wl='-Wl,'
9376 lt_prog_compiler_pic='-KPIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 ;;
9379
9380 sysv4*MP*)
9381 if test -d /usr/nec ;then
9382 lt_prog_compiler_pic='-Kconform_pic'
9383 lt_prog_compiler_static='-Bstatic'
9384 fi
9385 ;;
9386
9387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9388 lt_prog_compiler_wl='-Wl,'
9389 lt_prog_compiler_pic='-KPIC'
9390 lt_prog_compiler_static='-Bstatic'
9391 ;;
9392
9393 unicos*)
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_can_build_shared=no
9396 ;;
9397
9398 uts4*)
9399 lt_prog_compiler_pic='-pic'
9400 lt_prog_compiler_static='-Bstatic'
9401 ;;
9402
9403 *)
9404 lt_prog_compiler_can_build_shared=no
9405 ;;
9406 esac
9407 fi
9408
9409 case $host_os in
9410 # For platforms which do not support PIC, -DPIC is meaningless:
9411 *djgpp*)
9412 lt_prog_compiler_pic=
9413 ;;
9414 *)
9415 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9416 ;;
9417 esac
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9419 $as_echo "$lt_prog_compiler_pic" >&6; }
9420
9421
9422
9423
9424
9425
9426 #
9427 # Check to make sure the PIC flag actually works.
9428 #
9429 if test -n "$lt_prog_compiler_pic"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9432 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 lt_cv_prog_compiler_pic_works=no
9436 ac_outfile=conftest.$ac_objext
9437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9438 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9439 # Insert the option either (1) after the last *FLAGS variable, or
9440 # (2) before a word containing "conftest.", or (3) at the end.
9441 # Note that $ac_compile itself does not contain backslashes and begins
9442 # with a dollar sign (not a hyphen), so the echo should work correctly.
9443 # The option is referenced via a variable to avoid confusing sed.
9444 lt_compile=`echo "$ac_compile" | $SED \
9445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9447 -e 's:$: $lt_compiler_flag:'`
9448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9449 (eval "$lt_compile" 2>conftest.err)
9450 ac_status=$?
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 if (exit $ac_status) && test -s "$ac_outfile"; then
9454 # The compiler can only warn and ignore the option if not recognized
9455 # So say no if there are warnings other than the usual output.
9456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9459 lt_cv_prog_compiler_pic_works=yes
9460 fi
9461 fi
9462 $RM conftest*
9463
9464 fi
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9466 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9467
9468 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9469 case $lt_prog_compiler_pic in
9470 "" | " "*) ;;
9471 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9472 esac
9473 else
9474 lt_prog_compiler_pic=
9475 lt_prog_compiler_can_build_shared=no
9476 fi
9477
9478 fi
9479
9480
9481
9482
9483
9484
9485 #
9486 # Check to make sure the static flag actually works.
9487 #
9488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9490 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9491 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 lt_cv_prog_compiler_static_works=no
9495 save_LDFLAGS="$LDFLAGS"
9496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9499 # The linker can only warn and ignore the option if not recognized
9500 # So say no if there are warnings
9501 if test -s conftest.err; then
9502 # Append any errors to the config.log.
9503 cat conftest.err 1>&5
9504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506 if diff conftest.exp conftest.er2 >/dev/null; then
9507 lt_cv_prog_compiler_static_works=yes
9508 fi
9509 else
9510 lt_cv_prog_compiler_static_works=yes
9511 fi
9512 fi
9513 $RM -r conftest*
9514 LDFLAGS="$save_LDFLAGS"
9515
9516 fi
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9518 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9519
9520 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9521 :
9522 else
9523 lt_prog_compiler_static=
9524 fi
9525
9526
9527
9528
9529
9530
9531
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 lt_cv_prog_compiler_c_o=no
9538 $RM -r conftest 2>/dev/null
9539 mkdir conftest
9540 cd conftest
9541 mkdir out
9542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9543
9544 lt_compiler_flag="-o out/conftest2.$ac_objext"
9545 # Insert the option either (1) after the last *FLAGS variable, or
9546 # (2) before a word containing "conftest.", or (3) at the end.
9547 # Note that $ac_compile itself does not contain backslashes and begins
9548 # with a dollar sign (not a hyphen), so the echo should work correctly.
9549 lt_compile=`echo "$ac_compile" | $SED \
9550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9552 -e 's:$: $lt_compiler_flag:'`
9553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9554 (eval "$lt_compile" 2>out/conftest.err)
9555 ac_status=$?
9556 cat out/conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9559 then
9560 # The compiler can only warn and ignore the option if not recognized
9561 # So say no if there are warnings
9562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9565 lt_cv_prog_compiler_c_o=yes
9566 fi
9567 fi
9568 chmod u+w . 2>&5
9569 $RM conftest*
9570 # SGI C++ compiler will create directory out/ii_files/ for
9571 # template instantiation
9572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9573 $RM out/* && rmdir out
9574 cd ..
9575 $RM -r conftest
9576 $RM conftest*
9577
9578 fi
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9580 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9581
9582
9583
9584
9585
9586
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 lt_cv_prog_compiler_c_o=no
9593 $RM -r conftest 2>/dev/null
9594 mkdir conftest
9595 cd conftest
9596 mkdir out
9597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9598
9599 lt_compiler_flag="-o out/conftest2.$ac_objext"
9600 # Insert the option either (1) after the last *FLAGS variable, or
9601 # (2) before a word containing "conftest.", or (3) at the end.
9602 # Note that $ac_compile itself does not contain backslashes and begins
9603 # with a dollar sign (not a hyphen), so the echo should work correctly.
9604 lt_compile=`echo "$ac_compile" | $SED \
9605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9607 -e 's:$: $lt_compiler_flag:'`
9608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9609 (eval "$lt_compile" 2>out/conftest.err)
9610 ac_status=$?
9611 cat out/conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9614 then
9615 # The compiler can only warn and ignore the option if not recognized
9616 # So say no if there are warnings
9617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9620 lt_cv_prog_compiler_c_o=yes
9621 fi
9622 fi
9623 chmod u+w . 2>&5
9624 $RM conftest*
9625 # SGI C++ compiler will create directory out/ii_files/ for
9626 # template instantiation
9627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9628 $RM out/* && rmdir out
9629 cd ..
9630 $RM -r conftest
9631 $RM conftest*
9632
9633 fi
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9636
9637
9638
9639
9640 hard_links="nottested"
9641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9642 # do not overwrite the value of need_locks provided by the user
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9644 $as_echo_n "checking if we can lock with hard links... " >&6; }
9645 hard_links=yes
9646 $RM conftest*
9647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9648 touch conftest.a
9649 ln conftest.a conftest.b 2>&5 || hard_links=no
9650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9652 $as_echo "$hard_links" >&6; }
9653 if test "$hard_links" = no; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9656 need_locks=warn
9657 fi
9658 else
9659 need_locks=no
9660 fi
9661
9662
9663
9664
9665
9666
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9669
9670 runpath_var=
9671 allow_undefined_flag=
9672 always_export_symbols=no
9673 archive_cmds=
9674 archive_expsym_cmds=
9675 compiler_needs_object=no
9676 enable_shared_with_static_runtimes=no
9677 export_dynamic_flag_spec=
9678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9679 hardcode_automatic=no
9680 hardcode_direct=no
9681 hardcode_direct_absolute=no
9682 hardcode_libdir_flag_spec=
9683 hardcode_libdir_flag_spec_ld=
9684 hardcode_libdir_separator=
9685 hardcode_minus_L=no
9686 hardcode_shlibpath_var=unsupported
9687 inherit_rpath=no
9688 link_all_deplibs=unknown
9689 module_cmds=
9690 module_expsym_cmds=
9691 old_archive_from_new_cmds=
9692 old_archive_from_expsyms_cmds=
9693 thread_safe_flag_spec=
9694 whole_archive_flag_spec=
9695 # include_expsyms should be a list of space-separated symbols to be *always*
9696 # included in the symbol list
9697 include_expsyms=
9698 # exclude_expsyms can be an extended regexp of symbols to exclude
9699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9701 # as well as any symbol that contains `d'.
9702 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9704 # platforms (ab)use it in PIC code, but their linkers get confused if
9705 # the symbol is explicitly referenced. Since portable code cannot
9706 # rely on this symbol name, it's probably fine to never include it in
9707 # preloaded symbol tables.
9708 # Exclude shared library initialization/finalization symbols.
9709 extract_expsyms_cmds=
9710
9711 case $host_os in
9712 cygwin* | mingw* | pw32* | cegcc*)
9713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9714 # When not using gcc, we currently assume that we are using
9715 # Microsoft Visual C++.
9716 if test "$GCC" != yes; then
9717 with_gnu_ld=no
9718 fi
9719 ;;
9720 interix*)
9721 # we just hope/assume this is gcc and not c89 (= MSVC++)
9722 with_gnu_ld=yes
9723 ;;
9724 openbsd*)
9725 with_gnu_ld=no
9726 ;;
9727 esac
9728
9729 ld_shlibs=yes
9730
9731 # On some targets, GNU ld is compatible enough with the native linker
9732 # that we're better off using the native interface for both.
9733 lt_use_gnu_ld_interface=no
9734 if test "$with_gnu_ld" = yes; then
9735 case $host_os in
9736 aix*)
9737 # The AIX port of GNU ld has always aspired to compatibility
9738 # with the native linker. However, as the warning in the GNU ld
9739 # block says, versions before 2.19.5* couldn't really create working
9740 # shared libraries, regardless of the interface used.
9741 case `$LD -v 2>&1` in
9742 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9743 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9744 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9745 *)
9746 lt_use_gnu_ld_interface=yes
9747 ;;
9748 esac
9749 ;;
9750 *)
9751 lt_use_gnu_ld_interface=yes
9752 ;;
9753 esac
9754 fi
9755
9756 if test "$lt_use_gnu_ld_interface" = yes; then
9757 # If archive_cmds runs LD, not CC, wlarc should be empty
9758 wlarc='${wl}'
9759
9760 # Set some defaults for GNU ld with shared library support. These
9761 # are reset later if shared libraries are not supported. Putting them
9762 # here allows them to be overridden if necessary.
9763 runpath_var=LD_RUN_PATH
9764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9765 export_dynamic_flag_spec='${wl}--export-dynamic'
9766 # ancient GNU ld didn't support --whole-archive et. al.
9767 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9768 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9769 else
9770 whole_archive_flag_spec=
9771 fi
9772 supports_anon_versioning=no
9773 case `$LD -v 2>&1` in
9774 *GNU\ gold*) supports_anon_versioning=yes ;;
9775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9778 *\ 2.11.*) ;; # other 2.11 versions
9779 *) supports_anon_versioning=yes ;;
9780 esac
9781
9782 # See if GNU ld supports shared libraries.
9783 case $host_os in
9784 aix[3-9]*)
9785 # On AIX/PPC, the GNU linker is very broken
9786 if test "$host_cpu" != ia64; then
9787 ld_shlibs=no
9788 cat <<_LT_EOF 1>&2
9789
9790 *** Warning: the GNU linker, at least up to release 2.19, is reported
9791 *** to be unable to reliably create shared libraries on AIX.
9792 *** Therefore, libtool is disabling shared libraries support. If you
9793 *** really care for shared libraries, you may want to install binutils
9794 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9795 *** You will then need to restart the configuration process.
9796
9797 _LT_EOF
9798 fi
9799 ;;
9800
9801 amigaos*)
9802 case $host_cpu in
9803 powerpc)
9804 # see comment about AmigaOS4 .so support
9805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9806 archive_expsym_cmds=''
9807 ;;
9808 m68k)
9809 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)'
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 hardcode_minus_L=yes
9812 ;;
9813 esac
9814 ;;
9815
9816 beos*)
9817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9818 allow_undefined_flag=unsupported
9819 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9820 # support --undefined. This deserves some investigation. FIXME
9821 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822 else
9823 ld_shlibs=no
9824 fi
9825 ;;
9826
9827 cygwin* | mingw* | pw32* | cegcc*)
9828 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9829 # as there is no search path for DLLs.
9830 hardcode_libdir_flag_spec='-L$libdir'
9831 export_dynamic_flag_spec='${wl}--export-all-symbols'
9832 allow_undefined_flag=unsupported
9833 always_export_symbols=no
9834 enable_shared_with_static_runtimes=yes
9835 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9836
9837 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9839 # If the export-symbols file already is a .def file (1st line
9840 # is EXPORTS), use it as is; otherwise, prepend...
9841 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9842 cp $export_symbols $output_objdir/$soname.def;
9843 else
9844 echo EXPORTS > $output_objdir/$soname.def;
9845 cat $export_symbols >> $output_objdir/$soname.def;
9846 fi~
9847 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9848 else
9849 ld_shlibs=no
9850 fi
9851 ;;
9852
9853 haiku*)
9854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9855 link_all_deplibs=yes
9856 ;;
9857
9858 interix[3-9]*)
9859 hardcode_direct=no
9860 hardcode_shlibpath_var=no
9861 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9862 export_dynamic_flag_spec='${wl}-E'
9863 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9864 # Instead, shared libraries are loaded at an image base (0x10000000 by
9865 # default) and relocated if they conflict, which is a slow very memory
9866 # consuming and fragmenting process. To avoid this, we pick a random,
9867 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9868 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9869 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9870 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'
9871 ;;
9872
9873 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9874 tmp_diet=no
9875 if test "$host_os" = linux-dietlibc; then
9876 case $cc_basename in
9877 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9878 esac
9879 fi
9880 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9881 && test "$tmp_diet" = no
9882 then
9883 tmp_addflag=
9884 tmp_sharedflag='-shared'
9885 case $cc_basename,$host_cpu in
9886 pgcc*) # Portland Group C compiler
9887 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'
9888 tmp_addflag=' $pic_flag'
9889 ;;
9890 pgf77* | pgf90* | pgf95* | pgfortran*)
9891 # Portland Group f77 and f90 compilers
9892 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'
9893 tmp_addflag=' $pic_flag -Mnomain' ;;
9894 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9895 tmp_addflag=' -i_dynamic' ;;
9896 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9897 tmp_addflag=' -i_dynamic -nofor_main' ;;
9898 ifc* | ifort*) # Intel Fortran compiler
9899 tmp_addflag=' -nofor_main' ;;
9900 lf95*) # Lahey Fortran 8.1
9901 whole_archive_flag_spec=
9902 tmp_sharedflag='--shared' ;;
9903 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9904 tmp_sharedflag='-qmkshrobj'
9905 tmp_addflag= ;;
9906 nvcc*) # Cuda Compiler Driver 2.2
9907 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'
9908 compiler_needs_object=yes
9909 ;;
9910 esac
9911 case `$CC -V 2>&1 | sed 5q` in
9912 *Sun\ C*) # Sun C 5.9
9913 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'
9914 compiler_needs_object=yes
9915 tmp_sharedflag='-G' ;;
9916 *Sun\ F*) # Sun Fortran 8.3
9917 tmp_sharedflag='-G' ;;
9918 esac
9919 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9920
9921 if test "x$supports_anon_versioning" = xyes; then
9922 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9924 echo "local: *; };" >> $output_objdir/$libname.ver~
9925 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9926 fi
9927
9928 case $cc_basename in
9929 xlf* | bgf* | bgxlf* | mpixlf*)
9930 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9931 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9932 hardcode_libdir_flag_spec=
9933 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9934 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9935 if test "x$supports_anon_versioning" = xyes; then
9936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9938 echo "local: *; };" >> $output_objdir/$libname.ver~
9939 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9940 fi
9941 ;;
9942 esac
9943 else
9944 ld_shlibs=no
9945 fi
9946 ;;
9947
9948 netbsd*)
9949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9951 wlarc=
9952 else
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9955 fi
9956 ;;
9957
9958 solaris*)
9959 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9960 ld_shlibs=no
9961 cat <<_LT_EOF 1>&2
9962
9963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9964 *** create shared libraries on Solaris systems. Therefore, libtool
9965 *** is disabling shared libraries support. We urge you to upgrade GNU
9966 *** binutils to release 2.9.1 or newer. Another option is to modify
9967 *** your PATH or compiler configuration so that the native linker is
9968 *** used, and then restart.
9969
9970 _LT_EOF
9971 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9974 else
9975 ld_shlibs=no
9976 fi
9977 ;;
9978
9979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9980 case `$LD -v 2>&1` in
9981 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9982 ld_shlibs=no
9983 cat <<_LT_EOF 1>&2
9984
9985 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9986 *** reliably create shared libraries on SCO systems. Therefore, libtool
9987 *** is disabling shared libraries support. We urge you to upgrade GNU
9988 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9989 *** your PATH or compiler configuration so that the native linker is
9990 *** used, and then restart.
9991
9992 _LT_EOF
9993 ;;
9994 *)
9995 # For security reasons, it is highly recommended that you always
9996 # use absolute paths for naming shared libraries, and exclude the
9997 # DT_RUNPATH tag from executables and libraries. But doing so
9998 # requires that you compile everything twice, which is a pain.
9999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10003 else
10004 ld_shlibs=no
10005 fi
10006 ;;
10007 esac
10008 ;;
10009
10010 sunos4*)
10011 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10012 wlarc=
10013 hardcode_direct=yes
10014 hardcode_shlibpath_var=no
10015 ;;
10016
10017 *)
10018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10021 else
10022 ld_shlibs=no
10023 fi
10024 ;;
10025 esac
10026
10027 if test "$ld_shlibs" = no; then
10028 runpath_var=
10029 hardcode_libdir_flag_spec=
10030 export_dynamic_flag_spec=
10031 whole_archive_flag_spec=
10032 fi
10033 else
10034 # PORTME fill in a description of your system's linker (not GNU ld)
10035 case $host_os in
10036 aix3*)
10037 allow_undefined_flag=unsupported
10038 always_export_symbols=yes
10039 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'
10040 # Note: this linker hardcodes the directories in LIBPATH if there
10041 # are no directories specified by -L.
10042 hardcode_minus_L=yes
10043 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10044 # Neither direct hardcoding nor static linking is supported with a
10045 # broken collect2.
10046 hardcode_direct=unsupported
10047 fi
10048 ;;
10049
10050 aix[4-9]*)
10051 if test "$host_cpu" = ia64; then
10052 # On IA64, the linker does run time linking by default, so we don't
10053 # have to do anything special.
10054 aix_use_runtimelinking=no
10055 exp_sym_flag='-Bexport'
10056 no_entry_flag=""
10057 else
10058 # If we're using GNU nm, then we don't want the "-C" option.
10059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10060 # Also, AIX nm treats weak defined symbols like other global
10061 # defined symbols, whereas GNU nm marks them as "W".
10062 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10063 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'
10064 else
10065 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10066 fi
10067 aix_use_runtimelinking=no
10068
10069 # Test if we are trying to use run time linking or normal
10070 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10071 # need to do runtime linking.
10072 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10073 for ld_flag in $LDFLAGS; do
10074 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10075 aix_use_runtimelinking=yes
10076 break
10077 fi
10078 done
10079 ;;
10080 esac
10081
10082 exp_sym_flag='-bexport'
10083 no_entry_flag='-bnoentry'
10084 fi
10085
10086 # When large executables or shared objects are built, AIX ld can
10087 # have problems creating the table of contents. If linking a library
10088 # or program results in "error TOC overflow" add -mminimal-toc to
10089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10091
10092 archive_cmds=''
10093 hardcode_direct=yes
10094 hardcode_direct_absolute=yes
10095 hardcode_libdir_separator=':'
10096 link_all_deplibs=yes
10097 file_list_spec='${wl}-f,'
10098
10099 if test "$GCC" = yes; then
10100 case $host_os in aix4.[012]|aix4.[012].*)
10101 # We only want to do this on AIX 4.2 and lower, the check
10102 # below for broken collect2 doesn't work under 4.3+
10103 collect2name=`${CC} -print-prog-name=collect2`
10104 if test -f "$collect2name" &&
10105 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10106 then
10107 # We have reworked collect2
10108 :
10109 else
10110 # We have old collect2
10111 hardcode_direct=unsupported
10112 # It fails to find uninstalled libraries when the uninstalled
10113 # path is not listed in the libpath. Setting hardcode_minus_L
10114 # to unsupported forces relinking
10115 hardcode_minus_L=yes
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_libdir_separator=
10118 fi
10119 ;;
10120 esac
10121 shared_flag='-shared'
10122 if test "$aix_use_runtimelinking" = yes; then
10123 shared_flag="$shared_flag "'${wl}-G'
10124 fi
10125 else
10126 # not using gcc
10127 if test "$host_cpu" = ia64; then
10128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10129 # chokes on -Wl,-G. The following line is correct:
10130 shared_flag='-G'
10131 else
10132 if test "$aix_use_runtimelinking" = yes; then
10133 shared_flag='${wl}-G'
10134 else
10135 shared_flag='${wl}-bM:SRE'
10136 fi
10137 fi
10138 fi
10139
10140 export_dynamic_flag_spec='${wl}-bexpall'
10141 # It seems that -bexpall does not export symbols beginning with
10142 # underscore (_), so it is better to generate a list of symbols to export.
10143 always_export_symbols=yes
10144 if test "$aix_use_runtimelinking" = yes; then
10145 # Warning - without using the other runtime loading flags (-brtl),
10146 # -berok will link without error, but may produce a broken library.
10147 allow_undefined_flag='-berok'
10148 # Determine the default libpath from the value encoded in an
10149 # empty executable.
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152
10153 int
10154 main ()
10155 {
10156
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"; then :
10162
10163 lt_aix_libpath_sed='
10164 /Import File Strings/,/^$/ {
10165 /^0/ {
10166 s/^0 *\(.*\)$/\1/
10167 p
10168 }
10169 }'
10170 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10171 # Check for a 64-bit object if we didn't find anything.
10172 if test -z "$aix_libpath"; then
10173 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10174 fi
10175 fi
10176 rm -f core conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10179
10180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10181 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"
10182 else
10183 if test "$host_cpu" = ia64; then
10184 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10185 allow_undefined_flag="-z nodefs"
10186 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"
10187 else
10188 # Determine the default libpath from the value encoded in an
10189 # empty executable.
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192
10193 int
10194 main ()
10195 {
10196
10197 ;
10198 return 0;
10199 }
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"; then :
10202
10203 lt_aix_libpath_sed='
10204 /Import File Strings/,/^$/ {
10205 /^0/ {
10206 s/^0 *\(.*\)$/\1/
10207 p
10208 }
10209 }'
10210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10211 # Check for a 64-bit object if we didn't find anything.
10212 if test -z "$aix_libpath"; then
10213 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10214 fi
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10219
10220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10221 # Warning - without using the other run time loading flags,
10222 # -berok will link without error, but may produce a broken library.
10223 no_undefined_flag=' ${wl}-bernotok'
10224 allow_undefined_flag=' ${wl}-berok'
10225 if test "$with_gnu_ld" = yes; then
10226 # We only use this code for GNU lds that support --whole-archive.
10227 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10228 else
10229 # Exported symbols can be pulled into shared objects from archives
10230 whole_archive_flag_spec='$convenience'
10231 fi
10232 archive_cmds_need_lc=yes
10233 # This is similar to how AIX traditionally builds its shared libraries.
10234 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'
10235 fi
10236 fi
10237 ;;
10238
10239 amigaos*)
10240 case $host_cpu in
10241 powerpc)
10242 # see comment about AmigaOS4 .so support
10243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10244 archive_expsym_cmds=''
10245 ;;
10246 m68k)
10247 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)'
10248 hardcode_libdir_flag_spec='-L$libdir'
10249 hardcode_minus_L=yes
10250 ;;
10251 esac
10252 ;;
10253
10254 bsdi[45]*)
10255 export_dynamic_flag_spec=-rdynamic
10256 ;;
10257
10258 cygwin* | mingw* | pw32* | cegcc*)
10259 # When not using gcc, we currently assume that we are using
10260 # Microsoft Visual C++.
10261 # hardcode_libdir_flag_spec is actually meaningless, as there is
10262 # no search path for DLLs.
10263 hardcode_libdir_flag_spec=' '
10264 allow_undefined_flag=unsupported
10265 # Tell ltmain to make .lib files, not .a files.
10266 libext=lib
10267 # Tell ltmain to make .dll files, not .so files.
10268 shrext_cmds=".dll"
10269 # FIXME: Setting linknames here is a bad hack.
10270 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10271 # The linker will automatically build a .lib file if we build a DLL.
10272 old_archive_from_new_cmds='true'
10273 # FIXME: Should let the user specify the lib program.
10274 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10275 fix_srcfile_path='`cygpath -w "$srcfile"`'
10276 enable_shared_with_static_runtimes=yes
10277 ;;
10278
10279 darwin* | rhapsody*)
10280
10281
10282 archive_cmds_need_lc=no
10283 hardcode_direct=no
10284 hardcode_automatic=yes
10285 hardcode_shlibpath_var=unsupported
10286 if test "$lt_cv_ld_force_load" = "yes"; then
10287 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\"`'
10288 else
10289 whole_archive_flag_spec=''
10290 fi
10291 link_all_deplibs=yes
10292 allow_undefined_flag="$_lt_dar_allow_undefined"
10293 case $cc_basename in
10294 ifort*) _lt_dar_can_shared=yes ;;
10295 *) _lt_dar_can_shared=$GCC ;;
10296 esac
10297 if test "$_lt_dar_can_shared" = "yes"; then
10298 output_verbose_link_cmd=func_echo_all
10299 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10300 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10301 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}"
10302 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}"
10303
10304 else
10305 ld_shlibs=no
10306 fi
10307
10308 ;;
10309
10310 dgux*)
10311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312 hardcode_libdir_flag_spec='-L$libdir'
10313 hardcode_shlibpath_var=no
10314 ;;
10315
10316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10317 # support. Future versions do this automatically, but an explicit c++rt0.o
10318 # does not break anything, and helps significantly (at the cost of a little
10319 # extra space).
10320 freebsd2.2*)
10321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10322 hardcode_libdir_flag_spec='-R$libdir'
10323 hardcode_direct=yes
10324 hardcode_shlibpath_var=no
10325 ;;
10326
10327 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10328 freebsd2.*)
10329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_direct=yes
10331 hardcode_minus_L=yes
10332 hardcode_shlibpath_var=no
10333 ;;
10334
10335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10336 freebsd* | dragonfly*)
10337 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10338 hardcode_libdir_flag_spec='-R$libdir'
10339 hardcode_direct=yes
10340 hardcode_shlibpath_var=no
10341 ;;
10342
10343 hpux9*)
10344 if test "$GCC" = yes; then
10345 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'
10346 else
10347 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'
10348 fi
10349 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10350 hardcode_libdir_separator=:
10351 hardcode_direct=yes
10352
10353 # hardcode_minus_L: Not really in the search PATH,
10354 # but as the default location of the library.
10355 hardcode_minus_L=yes
10356 export_dynamic_flag_spec='${wl}-E'
10357 ;;
10358
10359 hpux10*)
10360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10361 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10362 else
10363 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10364 fi
10365 if test "$with_gnu_ld" = no; then
10366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10367 hardcode_libdir_flag_spec_ld='+b $libdir'
10368 hardcode_libdir_separator=:
10369 hardcode_direct=yes
10370 hardcode_direct_absolute=yes
10371 export_dynamic_flag_spec='${wl}-E'
10372 # hardcode_minus_L: Not really in the search PATH,
10373 # but as the default location of the library.
10374 hardcode_minus_L=yes
10375 fi
10376 ;;
10377
10378 hpux11*)
10379 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10380 case $host_cpu in
10381 hppa*64*)
10382 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10383 ;;
10384 ia64*)
10385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10386 ;;
10387 *)
10388 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10389 ;;
10390 esac
10391 else
10392 case $host_cpu in
10393 hppa*64*)
10394 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 ;;
10396 ia64*)
10397 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10398 ;;
10399 *)
10400
10401 # Older versions of the 11.00 compiler do not understand -b yet
10402 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10404 $as_echo_n "checking if $CC understands -b... " >&6; }
10405 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 lt_cv_prog_compiler__b=no
10409 save_LDFLAGS="$LDFLAGS"
10410 LDFLAGS="$LDFLAGS -b"
10411 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10413 # The linker can only warn and ignore the option if not recognized
10414 # So say no if there are warnings
10415 if test -s conftest.err; then
10416 # Append any errors to the config.log.
10417 cat conftest.err 1>&5
10418 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10420 if diff conftest.exp conftest.er2 >/dev/null; then
10421 lt_cv_prog_compiler__b=yes
10422 fi
10423 else
10424 lt_cv_prog_compiler__b=yes
10425 fi
10426 fi
10427 $RM -r conftest*
10428 LDFLAGS="$save_LDFLAGS"
10429
10430 fi
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10432 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10433
10434 if test x"$lt_cv_prog_compiler__b" = xyes; then
10435 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10436 else
10437 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10438 fi
10439
10440 ;;
10441 esac
10442 fi
10443 if test "$with_gnu_ld" = no; then
10444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10445 hardcode_libdir_separator=:
10446
10447 case $host_cpu in
10448 hppa*64*|ia64*)
10449 hardcode_direct=no
10450 hardcode_shlibpath_var=no
10451 ;;
10452 *)
10453 hardcode_direct=yes
10454 hardcode_direct_absolute=yes
10455 export_dynamic_flag_spec='${wl}-E'
10456
10457 # hardcode_minus_L: Not really in the search PATH,
10458 # but as the default location of the library.
10459 hardcode_minus_L=yes
10460 ;;
10461 esac
10462 fi
10463 ;;
10464
10465 irix5* | irix6* | nonstopux*)
10466 if test "$GCC" = yes; then
10467 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'
10468 # Try to use the -exported_symbol ld option, if it does not
10469 # work, assume that -exports_file does not work either and
10470 # implicitly export all symbols.
10471 save_LDFLAGS="$LDFLAGS"
10472 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 int foo(void) {}
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"; then :
10478 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'
10479
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LDFLAGS="$save_LDFLAGS"
10484 else
10485 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'
10486 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'
10487 fi
10488 archive_cmds_need_lc='no'
10489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10490 hardcode_libdir_separator=:
10491 inherit_rpath=yes
10492 link_all_deplibs=yes
10493 ;;
10494
10495 netbsd*)
10496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10498 else
10499 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10500 fi
10501 hardcode_libdir_flag_spec='-R$libdir'
10502 hardcode_direct=yes
10503 hardcode_shlibpath_var=no
10504 ;;
10505
10506 newsos6)
10507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10508 hardcode_direct=yes
10509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10510 hardcode_libdir_separator=:
10511 hardcode_shlibpath_var=no
10512 ;;
10513
10514 *nto* | *qnx*)
10515 ;;
10516
10517 openbsd*)
10518 if test -f /usr/libexec/ld.so; then
10519 hardcode_direct=yes
10520 hardcode_shlibpath_var=no
10521 hardcode_direct_absolute=yes
10522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10524 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10526 export_dynamic_flag_spec='${wl}-E'
10527 else
10528 case $host_os in
10529 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10531 hardcode_libdir_flag_spec='-R$libdir'
10532 ;;
10533 *)
10534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10536 ;;
10537 esac
10538 fi
10539 else
10540 ld_shlibs=no
10541 fi
10542 ;;
10543
10544 os2*)
10545 hardcode_libdir_flag_spec='-L$libdir'
10546 hardcode_minus_L=yes
10547 allow_undefined_flag=unsupported
10548 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'
10549 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10550 ;;
10551
10552 osf3*)
10553 if test "$GCC" = yes; then
10554 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10555 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'
10556 else
10557 allow_undefined_flag=' -expect_unresolved \*'
10558 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'
10559 fi
10560 archive_cmds_need_lc='no'
10561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10562 hardcode_libdir_separator=:
10563 ;;
10564
10565 osf4* | osf5*) # as osf3* with the addition of -msym flag
10566 if test "$GCC" = yes; then
10567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10568 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'
10569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10570 else
10571 allow_undefined_flag=' -expect_unresolved \*'
10572 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'
10573 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~
10574 $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'
10575
10576 # Both c and cxx compiler support -rpath directly
10577 hardcode_libdir_flag_spec='-rpath $libdir'
10578 fi
10579 archive_cmds_need_lc='no'
10580 hardcode_libdir_separator=:
10581 ;;
10582
10583 solaris*)
10584 no_undefined_flag=' -z defs'
10585 if test "$GCC" = yes; then
10586 wlarc='${wl}'
10587 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10589 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10590 else
10591 case `$CC -V 2>&1` in
10592 *"Compilers 5.0"*)
10593 wlarc=''
10594 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10596 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10597 ;;
10598 *)
10599 wlarc='${wl}'
10600 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10602 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10603 ;;
10604 esac
10605 fi
10606 hardcode_libdir_flag_spec='-R$libdir'
10607 hardcode_shlibpath_var=no
10608 case $host_os in
10609 solaris2.[0-5] | solaris2.[0-5].*) ;;
10610 *)
10611 # The compiler driver will combine and reorder linker options,
10612 # but understands `-z linker_flag'. GCC discards it without `$wl',
10613 # but is careful enough not to reorder.
10614 # Supported since Solaris 2.6 (maybe 2.5.1?)
10615 if test "$GCC" = yes; then
10616 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10617 else
10618 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10619 fi
10620 ;;
10621 esac
10622 link_all_deplibs=yes
10623 ;;
10624
10625 sunos4*)
10626 if test "x$host_vendor" = xsequent; then
10627 # Use $CC to link under sequent, because it throws in some extra .o
10628 # files that make .init and .fini sections work.
10629 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10630 else
10631 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10632 fi
10633 hardcode_libdir_flag_spec='-L$libdir'
10634 hardcode_direct=yes
10635 hardcode_minus_L=yes
10636 hardcode_shlibpath_var=no
10637 ;;
10638
10639 sysv4)
10640 case $host_vendor in
10641 sni)
10642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_direct=yes # is this really true???
10644 ;;
10645 siemens)
10646 ## LD is ld it makes a PLAMLIB
10647 ## CC just makes a GrossModule.
10648 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10649 reload_cmds='$CC -r -o $output$reload_objs'
10650 hardcode_direct=no
10651 ;;
10652 motorola)
10653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10655 ;;
10656 esac
10657 runpath_var='LD_RUN_PATH'
10658 hardcode_shlibpath_var=no
10659 ;;
10660
10661 sysv4.3*)
10662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10663 hardcode_shlibpath_var=no
10664 export_dynamic_flag_spec='-Bexport'
10665 ;;
10666
10667 sysv4*MP*)
10668 if test -d /usr/nec; then
10669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670 hardcode_shlibpath_var=no
10671 runpath_var=LD_RUN_PATH
10672 hardcode_runpath_var=yes
10673 ld_shlibs=yes
10674 fi
10675 ;;
10676
10677 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10678 no_undefined_flag='${wl}-z,text'
10679 archive_cmds_need_lc=no
10680 hardcode_shlibpath_var=no
10681 runpath_var='LD_RUN_PATH'
10682
10683 if test "$GCC" = yes; then
10684 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 else
10687 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10688 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10689 fi
10690 ;;
10691
10692 sysv5* | sco3.2v5* | sco5v6*)
10693 # Note: We can NOT use -z defs as we might desire, because we do not
10694 # link with -lc, and that would cause any symbols used from libc to
10695 # always be unresolved, which means just about no library would
10696 # ever link correctly. If we're not using GNU ld we use -z text
10697 # though, which does catch some bad symbols but isn't as heavy-handed
10698 # as -z defs.
10699 no_undefined_flag='${wl}-z,text'
10700 allow_undefined_flag='${wl}-z,nodefs'
10701 archive_cmds_need_lc=no
10702 hardcode_shlibpath_var=no
10703 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10704 hardcode_libdir_separator=':'
10705 link_all_deplibs=yes
10706 export_dynamic_flag_spec='${wl}-Bexport'
10707 runpath_var='LD_RUN_PATH'
10708
10709 if test "$GCC" = yes; then
10710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 else
10713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10714 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10715 fi
10716 ;;
10717
10718 uts4*)
10719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720 hardcode_libdir_flag_spec='-L$libdir'
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 *)
10725 ld_shlibs=no
10726 ;;
10727 esac
10728
10729 if test x$host_vendor = xsni; then
10730 case $host in
10731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10732 export_dynamic_flag_spec='${wl}-Blargedynsym'
10733 ;;
10734 esac
10735 fi
10736 fi
10737
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10739 $as_echo "$ld_shlibs" >&6; }
10740 test "$ld_shlibs" = no && can_build_shared=no
10741
10742 with_gnu_ld=$with_gnu_ld
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758 #
10759 # Do we need to explicitly link libc?
10760 #
10761 case "x$archive_cmds_need_lc" in
10762 x|xyes)
10763 # Assume -lc should be added
10764 archive_cmds_need_lc=yes
10765
10766 if test "$enable_shared" = yes && test "$GCC" = yes; then
10767 case $archive_cmds in
10768 *'~'*)
10769 # FIXME: we may have to deal with multi-command sequences.
10770 ;;
10771 '$CC '*)
10772 # Test whether the compiler implicitly links with -lc since on some
10773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10774 # to ld, don't add -lc before -lgcc.
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10776 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10777 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 $RM conftest*
10781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10782
10783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10784 (eval $ac_compile) 2>&5
10785 ac_status=$?
10786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10787 test $ac_status = 0; } 2>conftest.err; then
10788 soname=conftest
10789 lib=conftest
10790 libobjs=conftest.$ac_objext
10791 deplibs=
10792 wl=$lt_prog_compiler_wl
10793 pic_flag=$lt_prog_compiler_pic
10794 compiler_flags=-v
10795 linker_flags=-v
10796 verstring=
10797 output_objdir=.
10798 libname=conftest
10799 lt_save_allow_undefined_flag=$allow_undefined_flag
10800 allow_undefined_flag=
10801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10802 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10803 ac_status=$?
10804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10805 test $ac_status = 0; }
10806 then
10807 lt_cv_archive_cmds_need_lc=no
10808 else
10809 lt_cv_archive_cmds_need_lc=yes
10810 fi
10811 allow_undefined_flag=$lt_save_allow_undefined_flag
10812 else
10813 cat conftest.err 1>&5
10814 fi
10815 $RM conftest*
10816
10817 fi
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10819 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10820 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10821 ;;
10822 esac
10823 fi
10824 ;;
10825 esac
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
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10984 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10985
10986 if test "$GCC" = yes; then
10987 case $host_os in
10988 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10989 *) lt_awk_arg="/^libraries:/" ;;
10990 esac
10991 case $host_os in
10992 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10993 *) lt_sed_strip_eq="s,=/,/,g" ;;
10994 esac
10995 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10996 case $lt_search_path_spec in
10997 *\;*)
10998 # if the path contains ";" then we assume it to be the separator
10999 # otherwise default to the standard path separator (i.e. ":") - it is
11000 # assumed that no part of a normal pathname contains ";" but that should
11001 # okay in the real world where ";" in dirpaths is itself problematic.
11002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11003 ;;
11004 *)
11005 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11006 ;;
11007 esac
11008 # Ok, now we have the path, separated by spaces, we can step through it
11009 # and add multilib dir if necessary.
11010 lt_tmp_lt_search_path_spec=
11011 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11012 for lt_sys_path in $lt_search_path_spec; do
11013 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11015 else
11016 test -d "$lt_sys_path" && \
11017 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11018 fi
11019 done
11020 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11021 BEGIN {RS=" "; FS="/|\n";} {
11022 lt_foo="";
11023 lt_count=0;
11024 for (lt_i = NF; lt_i > 0; lt_i--) {
11025 if ($lt_i != "" && $lt_i != ".") {
11026 if ($lt_i == "..") {
11027 lt_count++;
11028 } else {
11029 if (lt_count == 0) {
11030 lt_foo="/" $lt_i lt_foo;
11031 } else {
11032 lt_count--;
11033 }
11034 }
11035 }
11036 }
11037 if (lt_foo != "") { lt_freq[lt_foo]++; }
11038 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11039 }'`
11040 # AWK program above erroneously prepends '/' to C:/dos/paths
11041 # for these hosts.
11042 case $host_os in
11043 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11044 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11045 esac
11046 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11047 else
11048 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11049 fi
11050 library_names_spec=
11051 libname_spec='lib$name'
11052 soname_spec=
11053 shrext_cmds=".so"
11054 postinstall_cmds=
11055 postuninstall_cmds=
11056 finish_cmds=
11057 finish_eval=
11058 shlibpath_var=
11059 shlibpath_overrides_runpath=unknown
11060 version_type=none
11061 dynamic_linker="$host_os ld.so"
11062 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11063 need_lib_prefix=unknown
11064 hardcode_into_libs=no
11065
11066 # when you set need_version to no, make sure it does not cause -set_version
11067 # flags to be left without arguments
11068 need_version=unknown
11069
11070 case $host_os in
11071 aix3*)
11072 version_type=linux
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11074 shlibpath_var=LIBPATH
11075
11076 # AIX 3 has no versioning support, so we append a major version to the name.
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 ;;
11079
11080 aix[4-9]*)
11081 version_type=linux
11082 need_lib_prefix=no
11083 need_version=no
11084 hardcode_into_libs=yes
11085 if test "$host_cpu" = ia64; then
11086 # AIX 5 supports IA64
11087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 else
11090 # With GCC up to 2.95.x, collect2 would create an import file
11091 # for dependence libraries. The import file would start with
11092 # the line `#! .'. This would cause the generated library to
11093 # depend on `.', always an invalid library. This was fixed in
11094 # development snapshots of GCC prior to 3.0.
11095 case $host_os in
11096 aix4 | aix4.[01] | aix4.[01].*)
11097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11098 echo ' yes '
11099 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11100 :
11101 else
11102 can_build_shared=no
11103 fi
11104 ;;
11105 esac
11106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11107 # soname into executable. Probably we can add versioning support to
11108 # collect2, so additional links can be useful in future.
11109 if test "$aix_use_runtimelinking" = yes; then
11110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11111 # instead of lib<name>.a to let people know that these are not
11112 # typical AIX shared libraries.
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 else
11115 # We preserve .a as extension for shared libraries through AIX4.2
11116 # and later when we are not doing run time linking.
11117 library_names_spec='${libname}${release}.a $libname.a'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 fi
11120 shlibpath_var=LIBPATH
11121 fi
11122 ;;
11123
11124 amigaos*)
11125 case $host_cpu in
11126 powerpc)
11127 # Since July 2007 AmigaOS4 officially supports .so libraries.
11128 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11130 ;;
11131 m68k)
11132 library_names_spec='$libname.ixlibrary $libname.a'
11133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11134 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'
11135 ;;
11136 esac
11137 ;;
11138
11139 beos*)
11140 library_names_spec='${libname}${shared_ext}'
11141 dynamic_linker="$host_os ld.so"
11142 shlibpath_var=LIBRARY_PATH
11143 ;;
11144
11145 bsdi[45]*)
11146 version_type=linux
11147 need_version=no
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11153 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11154 # the default ld.so.conf also contains /usr/contrib/lib and
11155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11156 # libtool to hard-code these into programs
11157 ;;
11158
11159 cygwin* | mingw* | pw32* | cegcc*)
11160 version_type=windows
11161 shrext_cmds=".dll"
11162 need_version=no
11163 need_lib_prefix=no
11164
11165 case $GCC,$host_os in
11166 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11167 library_names_spec='$libname.dll.a'
11168 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11169 postinstall_cmds='base_file=`basename \${file}`~
11170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11171 dldir=$destdir/`dirname \$dlpath`~
11172 test -d \$dldir || mkdir -p \$dldir~
11173 $install_prog $dir/$dlname \$dldir/$dlname~
11174 chmod a+x \$dldir/$dlname~
11175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11177 fi'
11178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11179 dlpath=$dir/\$dldll~
11180 $RM \$dlpath'
11181 shlibpath_overrides_runpath=yes
11182
11183 case $host_os in
11184 cygwin*)
11185 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11187
11188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11189 ;;
11190 mingw* | cegcc*)
11191 # MinGW DLLs use traditional 'lib' prefix
11192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11193 ;;
11194 pw32*)
11195 # pw32 DLLs use 'pw' prefix rather than 'lib'
11196 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11197 ;;
11198 esac
11199 ;;
11200
11201 *)
11202 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11203 ;;
11204 esac
11205 dynamic_linker='Win32 ld.exe'
11206 # FIXME: first we should search . and the directory the executable is in
11207 shlibpath_var=PATH
11208 ;;
11209
11210 darwin* | rhapsody*)
11211 dynamic_linker="$host_os dyld"
11212 version_type=darwin
11213 need_lib_prefix=no
11214 need_version=no
11215 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11216 soname_spec='${libname}${release}${major}$shared_ext'
11217 shlibpath_overrides_runpath=yes
11218 shlibpath_var=DYLD_LIBRARY_PATH
11219 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11220
11221 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11222 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11223 ;;
11224
11225 dgux*)
11226 version_type=linux
11227 need_lib_prefix=no
11228 need_version=no
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 ;;
11233
11234 freebsd* | dragonfly*)
11235 # DragonFly does not have aout. When/if they implement a new
11236 # versioning mechanism, adjust this.
11237 if test -x /usr/bin/objformat; then
11238 objformat=`/usr/bin/objformat`
11239 else
11240 case $host_os in
11241 freebsd[23].*) objformat=aout ;;
11242 *) objformat=elf ;;
11243 esac
11244 fi
11245 version_type=freebsd-$objformat
11246 case $version_type in
11247 freebsd-elf*)
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11249 need_version=no
11250 need_lib_prefix=no
11251 ;;
11252 freebsd-*)
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11254 need_version=yes
11255 ;;
11256 esac
11257 shlibpath_var=LD_LIBRARY_PATH
11258 case $host_os in
11259 freebsd2.*)
11260 shlibpath_overrides_runpath=yes
11261 ;;
11262 freebsd3.[01]* | freebsdelf3.[01]*)
11263 shlibpath_overrides_runpath=yes
11264 hardcode_into_libs=yes
11265 ;;
11266 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11267 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11268 shlibpath_overrides_runpath=no
11269 hardcode_into_libs=yes
11270 ;;
11271 *) # from 4.6 on, and DragonFly
11272 shlibpath_overrides_runpath=yes
11273 hardcode_into_libs=yes
11274 ;;
11275 esac
11276 ;;
11277
11278 gnu*)
11279 version_type=linux
11280 need_lib_prefix=no
11281 need_version=no
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 hardcode_into_libs=yes
11286 ;;
11287
11288 haiku*)
11289 version_type=linux
11290 need_lib_prefix=no
11291 need_version=no
11292 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
11296 shlibpath_overrides_runpath=yes
11297 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11298 hardcode_into_libs=yes
11299 ;;
11300
11301 hpux9* | hpux10* | hpux11*)
11302 # Give a soname corresponding to the major version so that dld.sl refuses to
11303 # link against other versions.
11304 version_type=sunos
11305 need_lib_prefix=no
11306 need_version=no
11307 case $host_cpu in
11308 ia64*)
11309 shrext_cmds='.so'
11310 hardcode_into_libs=yes
11311 dynamic_linker="$host_os dld.so"
11312 shlibpath_var=LD_LIBRARY_PATH
11313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 if test "X$HPUX_IA64_MODE" = X32; then
11317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11318 else
11319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11320 fi
11321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11322 ;;
11323 hppa*64*)
11324 shrext_cmds='.sl'
11325 hardcode_into_libs=yes
11326 dynamic_linker="$host_os dld.sl"
11327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11333 ;;
11334 *)
11335 shrext_cmds='.sl'
11336 dynamic_linker="$host_os dld.sl"
11337 shlibpath_var=SHLIB_PATH
11338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 soname_spec='${libname}${release}${shared_ext}$major'
11341 ;;
11342 esac
11343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11344 postinstall_cmds='chmod 555 $lib'
11345 # or fails outright, so override atomically:
11346 install_override_mode=555
11347 ;;
11348
11349 interix[3-9]*)
11350 version_type=linux
11351 need_lib_prefix=no
11352 need_version=no
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=no
11358 hardcode_into_libs=yes
11359 ;;
11360
11361 irix5* | irix6* | nonstopux*)
11362 case $host_os in
11363 nonstopux*) version_type=nonstopux ;;
11364 *)
11365 if test "$lt_cv_prog_gnu_ld" = yes; then
11366 version_type=linux
11367 else
11368 version_type=irix
11369 fi ;;
11370 esac
11371 need_lib_prefix=no
11372 need_version=no
11373 soname_spec='${libname}${release}${shared_ext}$major'
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11375 case $host_os in
11376 irix5* | nonstopux*)
11377 libsuff= shlibsuff=
11378 ;;
11379 *)
11380 case $LD in # libtool.m4 will add one of these switches to LD
11381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11382 libsuff= shlibsuff= libmagic=32-bit;;
11383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11384 libsuff=32 shlibsuff=N32 libmagic=N32;;
11385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11387 *) libsuff= shlibsuff= libmagic=never-match;;
11388 esac
11389 ;;
11390 esac
11391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11392 shlibpath_overrides_runpath=no
11393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11395 hardcode_into_libs=yes
11396 ;;
11397
11398 # No shared lib support for Linux oldld, aout, or coff.
11399 linux*oldld* | linux*aout* | linux*coff*)
11400 dynamic_linker=no
11401 ;;
11402
11403 # This must be Linux ELF.
11404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11405 version_type=linux
11406 need_lib_prefix=no
11407 need_version=no
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409 soname_spec='${libname}${release}${shared_ext}$major'
11410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=no
11413
11414 # Some binutils ld are patched to set DT_RUNPATH
11415 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 lt_cv_shlibpath_overrides_runpath=no
11419 save_LDFLAGS=$LDFLAGS
11420 save_libdir=$libdir
11421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11425
11426 int
11427 main ()
11428 {
11429
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11436 lt_cv_shlibpath_overrides_runpath=yes
11437 fi
11438 fi
11439 rm -f core conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext conftest.$ac_ext
11441 LDFLAGS=$save_LDFLAGS
11442 libdir=$save_libdir
11443
11444 fi
11445
11446 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11447
11448 # This implies no fast_install, which is unacceptable.
11449 # Some rework will be needed to allow for fast_install
11450 # before this can be enabled.
11451 hardcode_into_libs=yes
11452
11453 # Append ld.so.conf contents to the search path
11454 if test -f /etc/ld.so.conf; then
11455 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' ' '`
11456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11457 fi
11458
11459 # We used to test for /lib/ld.so.1 and disable shared libraries on
11460 # powerpc, because MkLinux only supported shared libraries with the
11461 # GNU dynamic linker. Since this was broken with cross compilers,
11462 # most powerpc-linux boxes support dynamic linking these days and
11463 # people can always --disable-shared, the test was removed, and we
11464 # assume the GNU/Linux dynamic linker is in use.
11465 dynamic_linker='GNU/Linux ld.so'
11466 ;;
11467
11468 netbsd*)
11469 version_type=sunos
11470 need_lib_prefix=no
11471 need_version=no
11472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11475 dynamic_linker='NetBSD (a.out) ld.so'
11476 else
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 dynamic_linker='NetBSD ld.elf_so'
11480 fi
11481 shlibpath_var=LD_LIBRARY_PATH
11482 shlibpath_overrides_runpath=yes
11483 hardcode_into_libs=yes
11484 ;;
11485
11486 newsos6)
11487 version_type=linux
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 shlibpath_overrides_runpath=yes
11491 ;;
11492
11493 *nto* | *qnx*)
11494 version_type=qnx
11495 need_lib_prefix=no
11496 need_version=no
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=no
11501 hardcode_into_libs=yes
11502 dynamic_linker='ldqnx.so'
11503 ;;
11504
11505 openbsd*)
11506 version_type=sunos
11507 sys_lib_dlsearch_path_spec="/usr/lib"
11508 need_lib_prefix=no
11509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11510 case $host_os in
11511 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11512 *) need_version=no ;;
11513 esac
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11518 case $host_os in
11519 openbsd2.[89] | openbsd2.[89].*)
11520 shlibpath_overrides_runpath=no
11521 ;;
11522 *)
11523 shlibpath_overrides_runpath=yes
11524 ;;
11525 esac
11526 else
11527 shlibpath_overrides_runpath=yes
11528 fi
11529 ;;
11530
11531 os2*)
11532 libname_spec='$name'
11533 shrext_cmds=".dll"
11534 need_lib_prefix=no
11535 library_names_spec='$libname${shared_ext} $libname.a'
11536 dynamic_linker='OS/2 ld.exe'
11537 shlibpath_var=LIBPATH
11538 ;;
11539
11540 osf3* | osf4* | osf5*)
11541 version_type=osf
11542 need_lib_prefix=no
11543 need_version=no
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11549 ;;
11550
11551 rdos*)
11552 dynamic_linker=no
11553 ;;
11554
11555 solaris*)
11556 version_type=linux
11557 need_lib_prefix=no
11558 need_version=no
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 shlibpath_overrides_runpath=yes
11563 hardcode_into_libs=yes
11564 # ldd complains unless libraries are executable
11565 postinstall_cmds='chmod +x $lib'
11566 ;;
11567
11568 sunos4*)
11569 version_type=sunos
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11571 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 shlibpath_overrides_runpath=yes
11574 if test "$with_gnu_ld" = yes; then
11575 need_lib_prefix=no
11576 fi
11577 need_version=yes
11578 ;;
11579
11580 sysv4 | sysv4.3*)
11581 version_type=linux
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 case $host_vendor in
11586 sni)
11587 shlibpath_overrides_runpath=no
11588 need_lib_prefix=no
11589 runpath_var=LD_RUN_PATH
11590 ;;
11591 siemens)
11592 need_lib_prefix=no
11593 ;;
11594 motorola)
11595 need_lib_prefix=no
11596 need_version=no
11597 shlibpath_overrides_runpath=no
11598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11599 ;;
11600 esac
11601 ;;
11602
11603 sysv4*MP*)
11604 if test -d /usr/nec ;then
11605 version_type=linux
11606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11607 soname_spec='$libname${shared_ext}.$major'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 fi
11610 ;;
11611
11612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11613 version_type=freebsd-elf
11614 need_lib_prefix=no
11615 need_version=no
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11617 soname_spec='${libname}${release}${shared_ext}$major'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11620 hardcode_into_libs=yes
11621 if test "$with_gnu_ld" = yes; then
11622 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11623 else
11624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11625 case $host_os in
11626 sco3.2v5*)
11627 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11628 ;;
11629 esac
11630 fi
11631 sys_lib_dlsearch_path_spec='/usr/lib'
11632 ;;
11633
11634 tpf*)
11635 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11636 version_type=linux
11637 need_lib_prefix=no
11638 need_version=no
11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=no
11642 hardcode_into_libs=yes
11643 ;;
11644
11645 uts4*)
11646 version_type=linux
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 ;;
11651
11652 *)
11653 dynamic_linker=no
11654 ;;
11655 esac
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11657 $as_echo "$dynamic_linker" >&6; }
11658 test "$dynamic_linker" = no && can_build_shared=no
11659
11660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11661 if test "$GCC" = yes; then
11662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11663 fi
11664
11665 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11666 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11667 fi
11668 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11669 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11670 fi
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
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11765 hardcode_action=
11766 if test -n "$hardcode_libdir_flag_spec" ||
11767 test -n "$runpath_var" ||
11768 test "X$hardcode_automatic" = "Xyes" ; then
11769
11770 # We can hardcode non-existent directories.
11771 if test "$hardcode_direct" != no &&
11772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11773 # have to relink, otherwise we might link with an installed library
11774 # when we should be linking with a yet-to-be-installed one
11775 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11776 test "$hardcode_minus_L" != no; then
11777 # Linking always hardcodes the temporary library directory.
11778 hardcode_action=relink
11779 else
11780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11781 hardcode_action=immediate
11782 fi
11783 else
11784 # We cannot hardcode anything, or else we can only hardcode existing
11785 # directories.
11786 hardcode_action=unsupported
11787 fi
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11789 $as_echo "$hardcode_action" >&6; }
11790
11791 if test "$hardcode_action" = relink ||
11792 test "$inherit_rpath" = yes; then
11793 # Fast installation is not supported
11794 enable_fast_install=no
11795 elif test "$shlibpath_overrides_runpath" = yes ||
11796 test "$enable_shared" = no; then
11797 # Fast installation is not necessary
11798 enable_fast_install=needless
11799 fi
11800
11801
11802
11803
11804
11805
11806 if test "x$enable_dlopen" != xyes; then
11807 enable_dlopen=unknown
11808 enable_dlopen_self=unknown
11809 enable_dlopen_self_static=unknown
11810 else
11811 lt_cv_dlopen=no
11812 lt_cv_dlopen_libs=
11813
11814 case $host_os in
11815 beos*)
11816 lt_cv_dlopen="load_add_on"
11817 lt_cv_dlopen_libs=
11818 lt_cv_dlopen_self=yes
11819 ;;
11820
11821 mingw* | pw32* | cegcc*)
11822 lt_cv_dlopen="LoadLibrary"
11823 lt_cv_dlopen_libs=
11824 ;;
11825
11826 cygwin*)
11827 lt_cv_dlopen="dlopen"
11828 lt_cv_dlopen_libs=
11829 ;;
11830
11831 darwin*)
11832 # if libdl is installed we need to link against it
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 ac_check_lib_save_LIBS=$LIBS
11839 LIBS="-ldl $LIBS"
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842
11843 /* Override any GCC internal prototype to avoid an error.
11844 Use char because int might match the return type of a GCC
11845 builtin and then its argument prototype would still apply. */
11846 #ifdef __cplusplus
11847 extern "C"
11848 #endif
11849 char dlopen ();
11850 int
11851 main ()
11852 {
11853 return dlopen ();
11854 ;
11855 return 0;
11856 }
11857 _ACEOF
11858 if ac_fn_c_try_link "$LINENO"; then :
11859 ac_cv_lib_dl_dlopen=yes
11860 else
11861 ac_cv_lib_dl_dlopen=no
11862 fi
11863 rm -f core conftest.err conftest.$ac_objext \
11864 conftest$ac_exeext conftest.$ac_ext
11865 LIBS=$ac_check_lib_save_LIBS
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11869 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11871 else
11872
11873 lt_cv_dlopen="dyld"
11874 lt_cv_dlopen_libs=
11875 lt_cv_dlopen_self=yes
11876
11877 fi
11878
11879 ;;
11880
11881 *)
11882 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11883 if test "x$ac_cv_func_shl_load" = x""yes; then :
11884 lt_cv_dlopen="shl_load"
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11887 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 ac_check_lib_save_LIBS=$LIBS
11892 LIBS="-ldld $LIBS"
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char shl_load ();
11903 int
11904 main ()
11905 {
11906 return shl_load ();
11907 ;
11908 return 0;
11909 }
11910 _ACEOF
11911 if ac_fn_c_try_link "$LINENO"; then :
11912 ac_cv_lib_dld_shl_load=yes
11913 else
11914 ac_cv_lib_dld_shl_load=no
11915 fi
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11921 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11922 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11923 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11924 else
11925 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11926 if test "x$ac_cv_func_dlopen" = x""yes; then :
11927 lt_cv_dlopen="dlopen"
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-ldl $LIBS"
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char dlopen ();
11946 int
11947 main ()
11948 {
11949 return dlopen ();
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 if ac_fn_c_try_link "$LINENO"; then :
11955 ac_cv_lib_dl_dlopen=yes
11956 else
11957 ac_cv_lib_dl_dlopen=no
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_lib_save_LIBS
11962 fi
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11965 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11969 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11970 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 ac_check_lib_save_LIBS=$LIBS
11974 LIBS="-lsvld $LIBS"
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11977
11978 /* Override any GCC internal prototype to avoid an error.
11979 Use char because int might match the return type of a GCC
11980 builtin and then its argument prototype would still apply. */
11981 #ifdef __cplusplus
11982 extern "C"
11983 #endif
11984 char dlopen ();
11985 int
11986 main ()
11987 {
11988 return dlopen ();
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 if ac_fn_c_try_link "$LINENO"; then :
11994 ac_cv_lib_svld_dlopen=yes
11995 else
11996 ac_cv_lib_svld_dlopen=no
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000 LIBS=$ac_check_lib_save_LIBS
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12003 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12004 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12008 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 ac_check_lib_save_LIBS=$LIBS
12013 LIBS="-ldld $LIBS"
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016
12017 /* Override any GCC internal prototype to avoid an error.
12018 Use char because int might match the return type of a GCC
12019 builtin and then its argument prototype would still apply. */
12020 #ifdef __cplusplus
12021 extern "C"
12022 #endif
12023 char dld_link ();
12024 int
12025 main ()
12026 {
12027 return dld_link ();
12028 ;
12029 return 0;
12030 }
12031 _ACEOF
12032 if ac_fn_c_try_link "$LINENO"; then :
12033 ac_cv_lib_dld_dld_link=yes
12034 else
12035 ac_cv_lib_dld_dld_link=no
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 LIBS=$ac_check_lib_save_LIBS
12040 fi
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12042 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12043 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12044 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12045 fi
12046
12047
12048 fi
12049
12050
12051 fi
12052
12053
12054 fi
12055
12056
12057 fi
12058
12059
12060 fi
12061
12062 ;;
12063 esac
12064
12065 if test "x$lt_cv_dlopen" != xno; then
12066 enable_dlopen=yes
12067 else
12068 enable_dlopen=no
12069 fi
12070
12071 case $lt_cv_dlopen in
12072 dlopen)
12073 save_CPPFLAGS="$CPPFLAGS"
12074 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12075
12076 save_LDFLAGS="$LDFLAGS"
12077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12078
12079 save_LIBS="$LIBS"
12080 LIBS="$lt_cv_dlopen_libs $LIBS"
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12083 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12084 if test "${lt_cv_dlopen_self+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 if test "$cross_compiling" = yes; then :
12088 lt_cv_dlopen_self=cross
12089 else
12090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12091 lt_status=$lt_dlunknown
12092 cat > conftest.$ac_ext <<_LT_EOF
12093 #line 12093 "configure"
12094 #include "confdefs.h"
12095
12096 #if HAVE_DLFCN_H
12097 #include <dlfcn.h>
12098 #endif
12099
12100 #include <stdio.h>
12101
12102 #ifdef RTLD_GLOBAL
12103 # define LT_DLGLOBAL RTLD_GLOBAL
12104 #else
12105 # ifdef DL_GLOBAL
12106 # define LT_DLGLOBAL DL_GLOBAL
12107 # else
12108 # define LT_DLGLOBAL 0
12109 # endif
12110 #endif
12111
12112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12113 find out it does not work in some platform. */
12114 #ifndef LT_DLLAZY_OR_NOW
12115 # ifdef RTLD_LAZY
12116 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12117 # else
12118 # ifdef DL_LAZY
12119 # define LT_DLLAZY_OR_NOW DL_LAZY
12120 # else
12121 # ifdef RTLD_NOW
12122 # define LT_DLLAZY_OR_NOW RTLD_NOW
12123 # else
12124 # ifdef DL_NOW
12125 # define LT_DLLAZY_OR_NOW DL_NOW
12126 # else
12127 # define LT_DLLAZY_OR_NOW 0
12128 # endif
12129 # endif
12130 # endif
12131 # endif
12132 #endif
12133
12134 /* When -fvisbility=hidden is used, assume the code has been annotated
12135 correspondingly for the symbols needed. */
12136 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12137 void fnord () __attribute__((visibility("default")));
12138 #endif
12139
12140 void fnord () { int i=42; }
12141 int main ()
12142 {
12143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12144 int status = $lt_dlunknown;
12145
12146 if (self)
12147 {
12148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12149 else
12150 {
12151 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12152 else puts (dlerror ());
12153 }
12154 /* dlclose (self); */
12155 }
12156 else
12157 puts (dlerror ());
12158
12159 return status;
12160 }
12161 _LT_EOF
12162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12163 (eval $ac_link) 2>&5
12164 ac_status=$?
12165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12166 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12167 (./conftest; exit; ) >&5 2>/dev/null
12168 lt_status=$?
12169 case x$lt_status in
12170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12173 esac
12174 else :
12175 # compilation failed
12176 lt_cv_dlopen_self=no
12177 fi
12178 fi
12179 rm -fr conftest*
12180
12181
12182 fi
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12184 $as_echo "$lt_cv_dlopen_self" >&6; }
12185
12186 if test "x$lt_cv_dlopen_self" = xyes; then
12187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12189 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12190 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 if test "$cross_compiling" = yes; then :
12194 lt_cv_dlopen_self_static=cross
12195 else
12196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12197 lt_status=$lt_dlunknown
12198 cat > conftest.$ac_ext <<_LT_EOF
12199 #line 12199 "configure"
12200 #include "confdefs.h"
12201
12202 #if HAVE_DLFCN_H
12203 #include <dlfcn.h>
12204 #endif
12205
12206 #include <stdio.h>
12207
12208 #ifdef RTLD_GLOBAL
12209 # define LT_DLGLOBAL RTLD_GLOBAL
12210 #else
12211 # ifdef DL_GLOBAL
12212 # define LT_DLGLOBAL DL_GLOBAL
12213 # else
12214 # define LT_DLGLOBAL 0
12215 # endif
12216 #endif
12217
12218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12219 find out it does not work in some platform. */
12220 #ifndef LT_DLLAZY_OR_NOW
12221 # ifdef RTLD_LAZY
12222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12223 # else
12224 # ifdef DL_LAZY
12225 # define LT_DLLAZY_OR_NOW DL_LAZY
12226 # else
12227 # ifdef RTLD_NOW
12228 # define LT_DLLAZY_OR_NOW RTLD_NOW
12229 # else
12230 # ifdef DL_NOW
12231 # define LT_DLLAZY_OR_NOW DL_NOW
12232 # else
12233 # define LT_DLLAZY_OR_NOW 0
12234 # endif
12235 # endif
12236 # endif
12237 # endif
12238 #endif
12239
12240 /* When -fvisbility=hidden is used, assume the code has been annotated
12241 correspondingly for the symbols needed. */
12242 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12243 void fnord () __attribute__((visibility("default")));
12244 #endif
12245
12246 void fnord () { int i=42; }
12247 int main ()
12248 {
12249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12250 int status = $lt_dlunknown;
12251
12252 if (self)
12253 {
12254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12255 else
12256 {
12257 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12258 else puts (dlerror ());
12259 }
12260 /* dlclose (self); */
12261 }
12262 else
12263 puts (dlerror ());
12264
12265 return status;
12266 }
12267 _LT_EOF
12268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12269 (eval $ac_link) 2>&5
12270 ac_status=$?
12271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12272 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12273 (./conftest; exit; ) >&5 2>/dev/null
12274 lt_status=$?
12275 case x$lt_status in
12276 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12277 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12278 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12279 esac
12280 else :
12281 # compilation failed
12282 lt_cv_dlopen_self_static=no
12283 fi
12284 fi
12285 rm -fr conftest*
12286
12287
12288 fi
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12290 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12291 fi
12292
12293 CPPFLAGS="$save_CPPFLAGS"
12294 LDFLAGS="$save_LDFLAGS"
12295 LIBS="$save_LIBS"
12296 ;;
12297 esac
12298
12299 case $lt_cv_dlopen_self in
12300 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12301 *) enable_dlopen_self=unknown ;;
12302 esac
12303
12304 case $lt_cv_dlopen_self_static in
12305 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12306 *) enable_dlopen_self_static=unknown ;;
12307 esac
12308 fi
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326 striplib=
12327 old_striplib=
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12329 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12330 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12331 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12332 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12334 $as_echo "yes" >&6; }
12335 else
12336 # FIXME - insert some real tests, host_os isn't really good enough
12337 case $host_os in
12338 darwin*)
12339 if test -n "$STRIP" ; then
12340 striplib="$STRIP -x"
12341 old_striplib="$STRIP -S"
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347 fi
12348 ;;
12349 *)
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 ;;
12353 esac
12354 fi
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367 # Report which library types will actually be built
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12369 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12371 $as_echo "$can_build_shared" >&6; }
12372
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12374 $as_echo_n "checking whether to build shared libraries... " >&6; }
12375 test "$can_build_shared" = "no" && enable_shared=no
12376
12377 # On AIX, shared libraries and static libraries use the same namespace, and
12378 # are all built from PIC.
12379 case $host_os in
12380 aix3*)
12381 test "$enable_shared" = yes && enable_static=no
12382 if test -n "$RANLIB"; then
12383 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12384 postinstall_cmds='$RANLIB $lib'
12385 fi
12386 ;;
12387
12388 aix[4-9]*)
12389 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12390 test "$enable_shared" = yes && enable_static=no
12391 fi
12392 ;;
12393 esac
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12395 $as_echo "$enable_shared" >&6; }
12396
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12398 $as_echo_n "checking whether to build static libraries... " >&6; }
12399 # Make sure either enable_shared or enable_static is yes.
12400 test "$enable_shared" = yes || enable_static=yes
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12402 $as_echo "$enable_static" >&6; }
12403
12404
12405
12406
12407 fi
12408 ac_ext=c
12409 ac_cpp='$CPP $CPPFLAGS'
12410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12413
12414 CC="$lt_save_CC"
12415
12416 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12417 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12418 (test "X$CXX" != "Xg++"))) ; then
12419 ac_ext=cpp
12420 ac_cpp='$CXXCPP $CPPFLAGS'
12421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12425 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12426 if test -z "$CXXCPP"; then
12427 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 # Double quotes because CXXCPP needs to be expanded
12431 for CXXCPP in "$CXX -E" "/lib/cpp"
12432 do
12433 ac_preproc_ok=false
12434 for ac_cxx_preproc_warn_flag in '' yes
12435 do
12436 # Use a header file that comes with gcc, so configuring glibc
12437 # with a fresh cross-compiler works.
12438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12439 # <limits.h> exists even on freestanding compilers.
12440 # On the NeXT, cc -E runs the code through the compiler's parser,
12441 # not just through cpp. "Syntax error" is here to catch this case.
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12444 #ifdef __STDC__
12445 # include <limits.h>
12446 #else
12447 # include <assert.h>
12448 #endif
12449 Syntax error
12450 _ACEOF
12451 if ac_fn_cxx_try_cpp "$LINENO"; then :
12452
12453 else
12454 # Broken: fails on valid input.
12455 continue
12456 fi
12457 rm -f conftest.err conftest.$ac_ext
12458
12459 # OK, works on sane cases. Now check whether nonexistent headers
12460 # can be detected and how.
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 #include <ac_nonexistent.h>
12464 _ACEOF
12465 if ac_fn_cxx_try_cpp "$LINENO"; then :
12466 # Broken: success on invalid input.
12467 continue
12468 else
12469 # Passes both tests.
12470 ac_preproc_ok=:
12471 break
12472 fi
12473 rm -f conftest.err conftest.$ac_ext
12474
12475 done
12476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12477 rm -f conftest.err conftest.$ac_ext
12478 if $ac_preproc_ok; then :
12479 break
12480 fi
12481
12482 done
12483 ac_cv_prog_CXXCPP=$CXXCPP
12484
12485 fi
12486 CXXCPP=$ac_cv_prog_CXXCPP
12487 else
12488 ac_cv_prog_CXXCPP=$CXXCPP
12489 fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12491 $as_echo "$CXXCPP" >&6; }
12492 ac_preproc_ok=false
12493 for ac_cxx_preproc_warn_flag in '' yes
12494 do
12495 # Use a header file that comes with gcc, so configuring glibc
12496 # with a fresh cross-compiler works.
12497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12498 # <limits.h> exists even on freestanding compilers.
12499 # On the NeXT, cc -E runs the code through the compiler's parser,
12500 # not just through cpp. "Syntax error" is here to catch this case.
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12503 #ifdef __STDC__
12504 # include <limits.h>
12505 #else
12506 # include <assert.h>
12507 #endif
12508 Syntax error
12509 _ACEOF
12510 if ac_fn_cxx_try_cpp "$LINENO"; then :
12511
12512 else
12513 # Broken: fails on valid input.
12514 continue
12515 fi
12516 rm -f conftest.err conftest.$ac_ext
12517
12518 # OK, works on sane cases. Now check whether nonexistent headers
12519 # can be detected and how.
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12522 #include <ac_nonexistent.h>
12523 _ACEOF
12524 if ac_fn_cxx_try_cpp "$LINENO"; then :
12525 # Broken: success on invalid input.
12526 continue
12527 else
12528 # Passes both tests.
12529 ac_preproc_ok=:
12530 break
12531 fi
12532 rm -f conftest.err conftest.$ac_ext
12533
12534 done
12535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12536 rm -f conftest.err conftest.$ac_ext
12537 if $ac_preproc_ok; then :
12538
12539 else
12540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12542 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12543 See \`config.log' for more details." "$LINENO" 5; }
12544 fi
12545
12546 ac_ext=c
12547 ac_cpp='$CPP $CPPFLAGS'
12548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12551
12552 else
12553 _lt_caught_CXX_error=yes
12554 fi
12555
12556 ac_ext=cpp
12557 ac_cpp='$CXXCPP $CPPFLAGS'
12558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12561
12562 archive_cmds_need_lc_CXX=no
12563 allow_undefined_flag_CXX=
12564 always_export_symbols_CXX=no
12565 archive_expsym_cmds_CXX=
12566 compiler_needs_object_CXX=no
12567 export_dynamic_flag_spec_CXX=
12568 hardcode_direct_CXX=no
12569 hardcode_direct_absolute_CXX=no
12570 hardcode_libdir_flag_spec_CXX=
12571 hardcode_libdir_flag_spec_ld_CXX=
12572 hardcode_libdir_separator_CXX=
12573 hardcode_minus_L_CXX=no
12574 hardcode_shlibpath_var_CXX=unsupported
12575 hardcode_automatic_CXX=no
12576 inherit_rpath_CXX=no
12577 module_cmds_CXX=
12578 module_expsym_cmds_CXX=
12579 link_all_deplibs_CXX=unknown
12580 old_archive_cmds_CXX=$old_archive_cmds
12581 reload_flag_CXX=$reload_flag
12582 reload_cmds_CXX=$reload_cmds
12583 no_undefined_flag_CXX=
12584 whole_archive_flag_spec_CXX=
12585 enable_shared_with_static_runtimes_CXX=no
12586
12587 # Source file extension for C++ test sources.
12588 ac_ext=cpp
12589
12590 # Object file extension for compiled C++ test sources.
12591 objext=o
12592 objext_CXX=$objext
12593
12594 # No sense in running all these tests if we already determined that
12595 # the CXX compiler isn't working. Some variables (like enable_shared)
12596 # are currently assumed to apply to all compilers on this platform,
12597 # and will be corrupted by setting them based on a non-working compiler.
12598 if test "$_lt_caught_CXX_error" != yes; then
12599 # Code to be used in simple compile tests
12600 lt_simple_compile_test_code="int some_variable = 0;"
12601
12602 # Code to be used in simple link tests
12603 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12604
12605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12606
12607
12608
12609
12610
12611
12612 # If no C compiler was specified, use CC.
12613 LTCC=${LTCC-"$CC"}
12614
12615 # If no C compiler flags were specified, use CFLAGS.
12616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12617
12618 # Allow CC to be a program name with arguments.
12619 compiler=$CC
12620
12621
12622 # save warnings/boilerplate of simple test code
12623 ac_outfile=conftest.$ac_objext
12624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12626 _lt_compiler_boilerplate=`cat conftest.err`
12627 $RM conftest*
12628
12629 ac_outfile=conftest.$ac_objext
12630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12632 _lt_linker_boilerplate=`cat conftest.err`
12633 $RM -r conftest*
12634
12635
12636 # Allow CC to be a program name with arguments.
12637 lt_save_CC=$CC
12638 lt_save_LD=$LD
12639 lt_save_GCC=$GCC
12640 GCC=$GXX
12641 lt_save_with_gnu_ld=$with_gnu_ld
12642 lt_save_path_LD=$lt_cv_path_LD
12643 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12644 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12645 else
12646 $as_unset lt_cv_prog_gnu_ld
12647 fi
12648 if test -n "${lt_cv_path_LDCXX+set}"; then
12649 lt_cv_path_LD=$lt_cv_path_LDCXX
12650 else
12651 $as_unset lt_cv_path_LD
12652 fi
12653 test -z "${LDCXX+set}" || LD=$LDCXX
12654 CC=${CXX-"c++"}
12655 compiler=$CC
12656 compiler_CXX=$CC
12657 for cc_temp in $compiler""; do
12658 case $cc_temp in
12659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12661 \-*) ;;
12662 *) break;;
12663 esac
12664 done
12665 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12666
12667
12668 if test -n "$compiler"; then
12669 # We don't want -fno-exception when compiling C++ code, so set the
12670 # no_builtin_flag separately
12671 if test "$GXX" = yes; then
12672 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12673 else
12674 lt_prog_compiler_no_builtin_flag_CXX=
12675 fi
12676
12677 if test "$GXX" = yes; then
12678 # Set up default GNU C++ configuration
12679
12680
12681
12682 # Check whether --with-gnu-ld was given.
12683 if test "${with_gnu_ld+set}" = set; then :
12684 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12685 else
12686 with_gnu_ld=no
12687 fi
12688
12689 ac_prog=ld
12690 if test "$GCC" = yes; then
12691 # Check if gcc -print-prog-name=ld gives a path.
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12693 $as_echo_n "checking for ld used by $CC... " >&6; }
12694 case $host in
12695 *-*-mingw*)
12696 # gcc leaves a trailing carriage return which upsets mingw
12697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12698 *)
12699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12700 esac
12701 case $ac_prog in
12702 # Accept absolute paths.
12703 [\\/]* | ?:[\\/]*)
12704 re_direlt='/[^/][^/]*/\.\./'
12705 # Canonicalize the pathname of ld
12706 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12707 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12708 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12709 done
12710 test -z "$LD" && LD="$ac_prog"
12711 ;;
12712 "")
12713 # If it fails, then pretend we aren't using GCC.
12714 ac_prog=ld
12715 ;;
12716 *)
12717 # If it is relative, then search for the first ld in PATH.
12718 with_gnu_ld=unknown
12719 ;;
12720 esac
12721 elif test "$with_gnu_ld" = yes; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12723 $as_echo_n "checking for GNU ld... " >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12726 $as_echo_n "checking for non-GNU ld... " >&6; }
12727 fi
12728 if test "${lt_cv_path_LD+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 if test -z "$LD"; then
12732 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12733 for ac_dir in $PATH; do
12734 IFS="$lt_save_ifs"
12735 test -z "$ac_dir" && ac_dir=.
12736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12737 lt_cv_path_LD="$ac_dir/$ac_prog"
12738 # Check to see if the program is GNU ld. I'd rather use --version,
12739 # but apparently some variants of GNU ld only accept -v.
12740 # Break only if it was the GNU/non-GNU ld that we prefer.
12741 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12742 *GNU* | *'with BFD'*)
12743 test "$with_gnu_ld" != no && break
12744 ;;
12745 *)
12746 test "$with_gnu_ld" != yes && break
12747 ;;
12748 esac
12749 fi
12750 done
12751 IFS="$lt_save_ifs"
12752 else
12753 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12754 fi
12755 fi
12756
12757 LD="$lt_cv_path_LD"
12758 if test -n "$LD"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12760 $as_echo "$LD" >&6; }
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12764 fi
12765 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12767 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12768 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12772 case `$LD -v 2>&1 </dev/null` in
12773 *GNU* | *'with BFD'*)
12774 lt_cv_prog_gnu_ld=yes
12775 ;;
12776 *)
12777 lt_cv_prog_gnu_ld=no
12778 ;;
12779 esac
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12782 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12783 with_gnu_ld=$lt_cv_prog_gnu_ld
12784
12785
12786
12787
12788
12789
12790
12791 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12792 # archiving commands below assume that GNU ld is being used.
12793 if test "$with_gnu_ld" = yes; then
12794 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12795 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12796
12797 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12798 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12799
12800 # If archive_cmds runs LD, not CC, wlarc should be empty
12801 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12802 # investigate it a little bit more. (MM)
12803 wlarc='${wl}'
12804
12805 # ancient GNU ld didn't support --whole-archive et. al.
12806 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12807 $GREP 'no-whole-archive' > /dev/null; then
12808 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12809 else
12810 whole_archive_flag_spec_CXX=
12811 fi
12812 else
12813 with_gnu_ld=no
12814 wlarc=
12815
12816 # A generic and very simple default shared library creation
12817 # command for GNU C++ for the case where it uses the native
12818 # linker, instead of GNU ld. If possible, this setting should
12819 # overridden to take advantage of the native linker features on
12820 # the platform it is being used on.
12821 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12822 fi
12823
12824 # Commands to make compiler produce verbose output that lists
12825 # what "hidden" libraries, object files and flags are used when
12826 # linking a shared library.
12827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12828
12829 else
12830 GXX=no
12831 with_gnu_ld=no
12832 wlarc=
12833 fi
12834
12835 # PORTME: fill in a description of your system's C++ link characteristics
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12837 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12838 ld_shlibs_CXX=yes
12839 case $host_os in
12840 aix3*)
12841 # FIXME: insert proper C++ library support
12842 ld_shlibs_CXX=no
12843 ;;
12844 aix[4-9]*)
12845 if test "$host_cpu" = ia64; then
12846 # On IA64, the linker does run time linking by default, so we don't
12847 # have to do anything special.
12848 aix_use_runtimelinking=no
12849 exp_sym_flag='-Bexport'
12850 no_entry_flag=""
12851 else
12852 aix_use_runtimelinking=no
12853
12854 # Test if we are trying to use run time linking or normal
12855 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12856 # need to do runtime linking.
12857 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12858 for ld_flag in $LDFLAGS; do
12859 case $ld_flag in
12860 *-brtl*)
12861 aix_use_runtimelinking=yes
12862 break
12863 ;;
12864 esac
12865 done
12866 ;;
12867 esac
12868
12869 exp_sym_flag='-bexport'
12870 no_entry_flag='-bnoentry'
12871 fi
12872
12873 # When large executables or shared objects are built, AIX ld can
12874 # have problems creating the table of contents. If linking a library
12875 # or program results in "error TOC overflow" add -mminimal-toc to
12876 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12877 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12878
12879 archive_cmds_CXX=''
12880 hardcode_direct_CXX=yes
12881 hardcode_direct_absolute_CXX=yes
12882 hardcode_libdir_separator_CXX=':'
12883 link_all_deplibs_CXX=yes
12884 file_list_spec_CXX='${wl}-f,'
12885
12886 if test "$GXX" = yes; then
12887 case $host_os in aix4.[012]|aix4.[012].*)
12888 # We only want to do this on AIX 4.2 and lower, the check
12889 # below for broken collect2 doesn't work under 4.3+
12890 collect2name=`${CC} -print-prog-name=collect2`
12891 if test -f "$collect2name" &&
12892 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12893 then
12894 # We have reworked collect2
12895 :
12896 else
12897 # We have old collect2
12898 hardcode_direct_CXX=unsupported
12899 # It fails to find uninstalled libraries when the uninstalled
12900 # path is not listed in the libpath. Setting hardcode_minus_L
12901 # to unsupported forces relinking
12902 hardcode_minus_L_CXX=yes
12903 hardcode_libdir_flag_spec_CXX='-L$libdir'
12904 hardcode_libdir_separator_CXX=
12905 fi
12906 esac
12907 shared_flag='-shared'
12908 if test "$aix_use_runtimelinking" = yes; then
12909 shared_flag="$shared_flag "'${wl}-G'
12910 fi
12911 else
12912 # not using gcc
12913 if test "$host_cpu" = ia64; then
12914 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12915 # chokes on -Wl,-G. The following line is correct:
12916 shared_flag='-G'
12917 else
12918 if test "$aix_use_runtimelinking" = yes; then
12919 shared_flag='${wl}-G'
12920 else
12921 shared_flag='${wl}-bM:SRE'
12922 fi
12923 fi
12924 fi
12925
12926 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12927 # It seems that -bexpall does not export symbols beginning with
12928 # underscore (_), so it is better to generate a list of symbols to
12929 # export.
12930 always_export_symbols_CXX=yes
12931 if test "$aix_use_runtimelinking" = yes; then
12932 # Warning - without using the other runtime loading flags (-brtl),
12933 # -berok will link without error, but may produce a broken library.
12934 allow_undefined_flag_CXX='-berok'
12935 # Determine the default libpath from the value encoded in an empty
12936 # executable.
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12939
12940 int
12941 main ()
12942 {
12943
12944 ;
12945 return 0;
12946 }
12947 _ACEOF
12948 if ac_fn_cxx_try_link "$LINENO"; then :
12949
12950 lt_aix_libpath_sed='
12951 /Import File Strings/,/^$/ {
12952 /^0/ {
12953 s/^0 *\(.*\)$/\1/
12954 p
12955 }
12956 }'
12957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12958 # Check for a 64-bit object if we didn't find anything.
12959 if test -z "$aix_libpath"; then
12960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12961 fi
12962 fi
12963 rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12966
12967 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12968
12969 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"
12970 else
12971 if test "$host_cpu" = ia64; then
12972 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12973 allow_undefined_flag_CXX="-z nodefs"
12974 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"
12975 else
12976 # Determine the default libpath from the value encoded in an
12977 # empty executable.
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980
12981 int
12982 main ()
12983 {
12984
12985 ;
12986 return 0;
12987 }
12988 _ACEOF
12989 if ac_fn_cxx_try_link "$LINENO"; then :
12990
12991 lt_aix_libpath_sed='
12992 /Import File Strings/,/^$/ {
12993 /^0/ {
12994 s/^0 *\(.*\)$/\1/
12995 p
12996 }
12997 }'
12998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12999 # Check for a 64-bit object if we didn't find anything.
13000 if test -z "$aix_libpath"; then
13001 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13002 fi
13003 fi
13004 rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13007
13008 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13009 # Warning - without using the other run time loading flags,
13010 # -berok will link without error, but may produce a broken library.
13011 no_undefined_flag_CXX=' ${wl}-bernotok'
13012 allow_undefined_flag_CXX=' ${wl}-berok'
13013 if test "$with_gnu_ld" = yes; then
13014 # We only use this code for GNU lds that support --whole-archive.
13015 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13016 else
13017 # Exported symbols can be pulled into shared objects from archives
13018 whole_archive_flag_spec_CXX='$convenience'
13019 fi
13020 archive_cmds_need_lc_CXX=yes
13021 # This is similar to how AIX traditionally builds its shared
13022 # libraries.
13023 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'
13024 fi
13025 fi
13026 ;;
13027
13028 beos*)
13029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13030 allow_undefined_flag_CXX=unsupported
13031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13032 # support --undefined. This deserves some investigation. FIXME
13033 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13034 else
13035 ld_shlibs_CXX=no
13036 fi
13037 ;;
13038
13039 chorus*)
13040 case $cc_basename in
13041 *)
13042 # FIXME: insert proper C++ library support
13043 ld_shlibs_CXX=no
13044 ;;
13045 esac
13046 ;;
13047
13048 cygwin* | mingw* | pw32* | cegcc*)
13049 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13050 # as there is no search path for DLLs.
13051 hardcode_libdir_flag_spec_CXX='-L$libdir'
13052 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13053 allow_undefined_flag_CXX=unsupported
13054 always_export_symbols_CXX=no
13055 enable_shared_with_static_runtimes_CXX=yes
13056
13057 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13058 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'
13059 # If the export-symbols file already is a .def file (1st line
13060 # is EXPORTS), use it as is; otherwise, prepend...
13061 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13062 cp $export_symbols $output_objdir/$soname.def;
13063 else
13064 echo EXPORTS > $output_objdir/$soname.def;
13065 cat $export_symbols >> $output_objdir/$soname.def;
13066 fi~
13067 $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'
13068 else
13069 ld_shlibs_CXX=no
13070 fi
13071 ;;
13072 darwin* | rhapsody*)
13073
13074
13075 archive_cmds_need_lc_CXX=no
13076 hardcode_direct_CXX=no
13077 hardcode_automatic_CXX=yes
13078 hardcode_shlibpath_var_CXX=unsupported
13079 if test "$lt_cv_ld_force_load" = "yes"; then
13080 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\"`'
13081 else
13082 whole_archive_flag_spec_CXX=''
13083 fi
13084 link_all_deplibs_CXX=yes
13085 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13086 case $cc_basename in
13087 ifort*) _lt_dar_can_shared=yes ;;
13088 *) _lt_dar_can_shared=$GCC ;;
13089 esac
13090 if test "$_lt_dar_can_shared" = "yes"; then
13091 output_verbose_link_cmd=func_echo_all
13092 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}"
13093 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13094 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}"
13095 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}"
13096 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13097 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}"
13098 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}"
13099 fi
13100
13101 else
13102 ld_shlibs_CXX=no
13103 fi
13104
13105 ;;
13106
13107 dgux*)
13108 case $cc_basename in
13109 ec++*)
13110 # FIXME: insert proper C++ library support
13111 ld_shlibs_CXX=no
13112 ;;
13113 ghcx*)
13114 # Green Hills C++ Compiler
13115 # FIXME: insert proper C++ library support
13116 ld_shlibs_CXX=no
13117 ;;
13118 *)
13119 # FIXME: insert proper C++ library support
13120 ld_shlibs_CXX=no
13121 ;;
13122 esac
13123 ;;
13124
13125 freebsd2.*)
13126 # C++ shared libraries reported to be fairly broken before
13127 # switch to ELF
13128 ld_shlibs_CXX=no
13129 ;;
13130
13131 freebsd-elf*)
13132 archive_cmds_need_lc_CXX=no
13133 ;;
13134
13135 freebsd* | dragonfly*)
13136 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13137 # conventions
13138 ld_shlibs_CXX=yes
13139 ;;
13140
13141 gnu*)
13142 ;;
13143
13144 haiku*)
13145 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13146 link_all_deplibs_CXX=yes
13147 ;;
13148
13149 hpux9*)
13150 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13151 hardcode_libdir_separator_CXX=:
13152 export_dynamic_flag_spec_CXX='${wl}-E'
13153 hardcode_direct_CXX=yes
13154 hardcode_minus_L_CXX=yes # Not in the search PATH,
13155 # but as the default
13156 # location of the library.
13157
13158 case $cc_basename in
13159 CC*)
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13162 ;;
13163 aCC*)
13164 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'
13165 # Commands to make compiler produce verbose output that lists
13166 # what "hidden" libraries, object files and flags are used when
13167 # linking a shared library.
13168 #
13169 # There doesn't appear to be a way to prevent this compiler from
13170 # explicitly linking system object files so we need to strip them
13171 # from the output so that they don't get included in the library
13172 # dependencies.
13173 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"'
13174 ;;
13175 *)
13176 if test "$GXX" = yes; then
13177 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'
13178 else
13179 # FIXME: insert proper C++ library support
13180 ld_shlibs_CXX=no
13181 fi
13182 ;;
13183 esac
13184 ;;
13185
13186 hpux10*|hpux11*)
13187 if test $with_gnu_ld = no; then
13188 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13189 hardcode_libdir_separator_CXX=:
13190
13191 case $host_cpu in
13192 hppa*64*|ia64*)
13193 ;;
13194 *)
13195 export_dynamic_flag_spec_CXX='${wl}-E'
13196 ;;
13197 esac
13198 fi
13199 case $host_cpu in
13200 hppa*64*|ia64*)
13201 hardcode_direct_CXX=no
13202 hardcode_shlibpath_var_CXX=no
13203 ;;
13204 *)
13205 hardcode_direct_CXX=yes
13206 hardcode_direct_absolute_CXX=yes
13207 hardcode_minus_L_CXX=yes # Not in the search PATH,
13208 # but as the default
13209 # location of the library.
13210 ;;
13211 esac
13212
13213 case $cc_basename in
13214 CC*)
13215 # FIXME: insert proper C++ library support
13216 ld_shlibs_CXX=no
13217 ;;
13218 aCC*)
13219 case $host_cpu in
13220 hppa*64*)
13221 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13222 ;;
13223 ia64*)
13224 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13225 ;;
13226 *)
13227 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13228 ;;
13229 esac
13230 # Commands to make compiler produce verbose output that lists
13231 # what "hidden" libraries, object files and flags are used when
13232 # linking a shared library.
13233 #
13234 # There doesn't appear to be a way to prevent this compiler from
13235 # explicitly linking system object files so we need to strip them
13236 # from the output so that they don't get included in the library
13237 # dependencies.
13238 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"'
13239 ;;
13240 *)
13241 if test "$GXX" = yes; then
13242 if test $with_gnu_ld = no; then
13243 case $host_cpu in
13244 hppa*64*)
13245 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13246 ;;
13247 ia64*)
13248 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13249 ;;
13250 *)
13251 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'
13252 ;;
13253 esac
13254 fi
13255 else
13256 # FIXME: insert proper C++ library support
13257 ld_shlibs_CXX=no
13258 fi
13259 ;;
13260 esac
13261 ;;
13262
13263 interix[3-9]*)
13264 hardcode_direct_CXX=no
13265 hardcode_shlibpath_var_CXX=no
13266 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13267 export_dynamic_flag_spec_CXX='${wl}-E'
13268 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13269 # Instead, shared libraries are loaded at an image base (0x10000000 by
13270 # default) and relocated if they conflict, which is a slow very memory
13271 # consuming and fragmenting process. To avoid this, we pick a random,
13272 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13273 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13274 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'
13275 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'
13276 ;;
13277 irix5* | irix6*)
13278 case $cc_basename in
13279 CC*)
13280 # SGI C++
13281 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'
13282
13283 # Archives containing C++ object files must be created using
13284 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13285 # necessary to make sure instantiated templates are included
13286 # in the archive.
13287 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13288 ;;
13289 *)
13290 if test "$GXX" = yes; then
13291 if test "$with_gnu_ld" = no; then
13292 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'
13293 else
13294 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'
13295 fi
13296 fi
13297 link_all_deplibs_CXX=yes
13298 ;;
13299 esac
13300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13301 hardcode_libdir_separator_CXX=:
13302 inherit_rpath_CXX=yes
13303 ;;
13304
13305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13306 case $cc_basename in
13307 KCC*)
13308 # Kuck and Associates, Inc. (KAI) C++ Compiler
13309
13310 # KCC will only create a shared library if the output file
13311 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13312 # to its proper name (with version) after linking.
13313 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'
13314 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'
13315 # Commands to make compiler produce verbose output that lists
13316 # what "hidden" libraries, object files and flags are used when
13317 # linking a shared library.
13318 #
13319 # There doesn't appear to be a way to prevent this compiler from
13320 # explicitly linking system object files so we need to strip them
13321 # from the output so that they don't get included in the library
13322 # dependencies.
13323 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"'
13324
13325 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13327
13328 # Archives containing C++ object files must be created using
13329 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13330 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13331 ;;
13332 icpc* | ecpc* )
13333 # Intel C++
13334 with_gnu_ld=yes
13335 # version 8.0 and above of icpc choke on multiply defined symbols
13336 # if we add $predep_objects and $postdep_objects, however 7.1 and
13337 # earlier do not add the objects themselves.
13338 case `$CC -V 2>&1` in
13339 *"Version 7."*)
13340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 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'
13342 ;;
13343 *) # Version 8.0 or newer
13344 tmp_idyn=
13345 case $host_cpu in
13346 ia64*) tmp_idyn=' -i_dynamic';;
13347 esac
13348 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13349 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'
13350 ;;
13351 esac
13352 archive_cmds_need_lc_CXX=no
13353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13355 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13356 ;;
13357 pgCC* | pgcpp*)
13358 # Portland Group C++ compiler
13359 case `$CC -V` in
13360 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13361 prelink_cmds_CXX='tpldir=Template.dir~
13362 rm -rf $tpldir~
13363 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13364 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13365 old_archive_cmds_CXX='tpldir=Template.dir~
13366 rm -rf $tpldir~
13367 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13368 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13369 $RANLIB $oldlib'
13370 archive_cmds_CXX='tpldir=Template.dir~
13371 rm -rf $tpldir~
13372 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13373 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13374 archive_expsym_cmds_CXX='tpldir=Template.dir~
13375 rm -rf $tpldir~
13376 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13377 $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'
13378 ;;
13379 *) # Version 6 and above use weak symbols
13380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13381 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'
13382 ;;
13383 esac
13384
13385 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13386 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13387 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'
13388 ;;
13389 cxx*)
13390 # Compaq C++
13391 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13392 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'
13393
13394 runpath_var=LD_RUN_PATH
13395 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13396 hardcode_libdir_separator_CXX=:
13397
13398 # Commands to make compiler produce verbose output that lists
13399 # what "hidden" libraries, object files and flags are used when
13400 # linking a shared library.
13401 #
13402 # There doesn't appear to be a way to prevent this compiler from
13403 # explicitly linking system object files so we need to strip them
13404 # from the output so that they don't get included in the library
13405 # dependencies.
13406 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'
13407 ;;
13408 xl* | mpixl* | bgxl*)
13409 # IBM XL 8.0 on PPC, with GNU ld
13410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13412 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13413 if test "x$supports_anon_versioning" = xyes; then
13414 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13416 echo "local: *; };" >> $output_objdir/$libname.ver~
13417 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13418 fi
13419 ;;
13420 *)
13421 case `$CC -V 2>&1 | sed 5q` in
13422 *Sun\ C*)
13423 # Sun C++ 5.9
13424 no_undefined_flag_CXX=' -zdefs'
13425 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13426 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'
13427 hardcode_libdir_flag_spec_CXX='-R$libdir'
13428 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'
13429 compiler_needs_object_CXX=yes
13430
13431 # Not sure whether something based on
13432 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13433 # would be better.
13434 output_verbose_link_cmd='func_echo_all'
13435
13436 # Archives containing C++ object files must be created using
13437 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13438 # necessary to make sure instantiated templates are included
13439 # in the archive.
13440 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13441 ;;
13442 esac
13443 ;;
13444 esac
13445 ;;
13446
13447 lynxos*)
13448 # FIXME: insert proper C++ library support
13449 ld_shlibs_CXX=no
13450 ;;
13451
13452 m88k*)
13453 # FIXME: insert proper C++ library support
13454 ld_shlibs_CXX=no
13455 ;;
13456
13457 mvs*)
13458 case $cc_basename in
13459 cxx*)
13460 # FIXME: insert proper C++ library support
13461 ld_shlibs_CXX=no
13462 ;;
13463 *)
13464 # FIXME: insert proper C++ library support
13465 ld_shlibs_CXX=no
13466 ;;
13467 esac
13468 ;;
13469
13470 netbsd*)
13471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13472 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13473 wlarc=
13474 hardcode_libdir_flag_spec_CXX='-R$libdir'
13475 hardcode_direct_CXX=yes
13476 hardcode_shlibpath_var_CXX=no
13477 fi
13478 # Workaround some broken pre-1.5 toolchains
13479 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13480 ;;
13481
13482 *nto* | *qnx*)
13483 ld_shlibs_CXX=yes
13484 ;;
13485
13486 openbsd2*)
13487 # C++ shared libraries are fairly broken
13488 ld_shlibs_CXX=no
13489 ;;
13490
13491 openbsd*)
13492 if test -f /usr/libexec/ld.so; then
13493 hardcode_direct_CXX=yes
13494 hardcode_shlibpath_var_CXX=no
13495 hardcode_direct_absolute_CXX=yes
13496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13497 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13499 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13500 export_dynamic_flag_spec_CXX='${wl}-E'
13501 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13502 fi
13503 output_verbose_link_cmd=func_echo_all
13504 else
13505 ld_shlibs_CXX=no
13506 fi
13507 ;;
13508
13509 osf3* | osf4* | osf5*)
13510 case $cc_basename in
13511 KCC*)
13512 # Kuck and Associates, Inc. (KAI) C++ Compiler
13513
13514 # KCC will only create a shared library if the output file
13515 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13516 # to its proper name (with version) after linking.
13517 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'
13518
13519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13520 hardcode_libdir_separator_CXX=:
13521
13522 # Archives containing C++ object files must be created using
13523 # the KAI C++ compiler.
13524 case $host in
13525 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13526 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13527 esac
13528 ;;
13529 RCC*)
13530 # Rational C++ 2.4.1
13531 # FIXME: insert proper C++ library support
13532 ld_shlibs_CXX=no
13533 ;;
13534 cxx*)
13535 case $host in
13536 osf3*)
13537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13538 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'
13539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13540 ;;
13541 *)
13542 allow_undefined_flag_CXX=' -expect_unresolved \*'
13543 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'
13544 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13545 echo "-hidden">> $lib.exp~
13546 $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~
13547 $RM $lib.exp'
13548 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13549 ;;
13550 esac
13551
13552 hardcode_libdir_separator_CXX=:
13553
13554 # Commands to make compiler produce verbose output that lists
13555 # what "hidden" libraries, object files and flags are used when
13556 # linking a shared library.
13557 #
13558 # There doesn't appear to be a way to prevent this compiler from
13559 # explicitly linking system object files so we need to strip them
13560 # from the output so that they don't get included in the library
13561 # dependencies.
13562 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"'
13563 ;;
13564 *)
13565 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13567 case $host in
13568 osf3*)
13569 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'
13570 ;;
13571 *)
13572 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'
13573 ;;
13574 esac
13575
13576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13577 hardcode_libdir_separator_CXX=:
13578
13579 # Commands to make compiler produce verbose output that lists
13580 # what "hidden" libraries, object files and flags are used when
13581 # linking a shared library.
13582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13583
13584 else
13585 # FIXME: insert proper C++ library support
13586 ld_shlibs_CXX=no
13587 fi
13588 ;;
13589 esac
13590 ;;
13591
13592 psos*)
13593 # FIXME: insert proper C++ library support
13594 ld_shlibs_CXX=no
13595 ;;
13596
13597 sunos4*)
13598 case $cc_basename in
13599 CC*)
13600 # Sun C++ 4.x
13601 # FIXME: insert proper C++ library support
13602 ld_shlibs_CXX=no
13603 ;;
13604 lcc*)
13605 # Lucid
13606 # FIXME: insert proper C++ library support
13607 ld_shlibs_CXX=no
13608 ;;
13609 *)
13610 # FIXME: insert proper C++ library support
13611 ld_shlibs_CXX=no
13612 ;;
13613 esac
13614 ;;
13615
13616 solaris*)
13617 case $cc_basename in
13618 CC*)
13619 # Sun C++ 4.2, 5.x and Centerline C++
13620 archive_cmds_need_lc_CXX=yes
13621 no_undefined_flag_CXX=' -zdefs'
13622 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13623 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13624 $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'
13625
13626 hardcode_libdir_flag_spec_CXX='-R$libdir'
13627 hardcode_shlibpath_var_CXX=no
13628 case $host_os in
13629 solaris2.[0-5] | solaris2.[0-5].*) ;;
13630 *)
13631 # The compiler driver will combine and reorder linker options,
13632 # but understands `-z linker_flag'.
13633 # Supported since Solaris 2.6 (maybe 2.5.1?)
13634 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13635 ;;
13636 esac
13637 link_all_deplibs_CXX=yes
13638
13639 output_verbose_link_cmd='func_echo_all'
13640
13641 # Archives containing C++ object files must be created using
13642 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13643 # necessary to make sure instantiated templates are included
13644 # in the archive.
13645 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13646 ;;
13647 gcx*)
13648 # Green Hills C++ Compiler
13649 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13650
13651 # The C++ compiler must be used to create the archive.
13652 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13653 ;;
13654 *)
13655 # GNU C++ compiler with Solaris linker
13656 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13657 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13658 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13659 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13660 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13661 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13662
13663 # Commands to make compiler produce verbose output that lists
13664 # what "hidden" libraries, object files and flags are used when
13665 # linking a shared library.
13666 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13667 else
13668 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13669 # platform.
13670 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13671 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13672 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13673
13674 # Commands to make compiler produce verbose output that lists
13675 # what "hidden" libraries, object files and flags are used when
13676 # linking a shared library.
13677 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13678 fi
13679
13680 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13681 case $host_os in
13682 solaris2.[0-5] | solaris2.[0-5].*) ;;
13683 *)
13684 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13685 ;;
13686 esac
13687 fi
13688 ;;
13689 esac
13690 ;;
13691
13692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13693 no_undefined_flag_CXX='${wl}-z,text'
13694 archive_cmds_need_lc_CXX=no
13695 hardcode_shlibpath_var_CXX=no
13696 runpath_var='LD_RUN_PATH'
13697
13698 case $cc_basename in
13699 CC*)
13700 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13701 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13702 ;;
13703 *)
13704 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13706 ;;
13707 esac
13708 ;;
13709
13710 sysv5* | sco3.2v5* | sco5v6*)
13711 # Note: We can NOT use -z defs as we might desire, because we do not
13712 # link with -lc, and that would cause any symbols used from libc to
13713 # always be unresolved, which means just about no library would
13714 # ever link correctly. If we're not using GNU ld we use -z text
13715 # though, which does catch some bad symbols but isn't as heavy-handed
13716 # as -z defs.
13717 no_undefined_flag_CXX='${wl}-z,text'
13718 allow_undefined_flag_CXX='${wl}-z,nodefs'
13719 archive_cmds_need_lc_CXX=no
13720 hardcode_shlibpath_var_CXX=no
13721 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13722 hardcode_libdir_separator_CXX=':'
13723 link_all_deplibs_CXX=yes
13724 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13725 runpath_var='LD_RUN_PATH'
13726
13727 case $cc_basename in
13728 CC*)
13729 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13730 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13731 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13732 '"$old_archive_cmds_CXX"
13733 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13734 '"$reload_cmds_CXX"
13735 ;;
13736 *)
13737 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 ;;
13740 esac
13741 ;;
13742
13743 tandem*)
13744 case $cc_basename in
13745 NCC*)
13746 # NonStop-UX NCC 3.20
13747 # FIXME: insert proper C++ library support
13748 ld_shlibs_CXX=no
13749 ;;
13750 *)
13751 # FIXME: insert proper C++ library support
13752 ld_shlibs_CXX=no
13753 ;;
13754 esac
13755 ;;
13756
13757 vxworks*)
13758 # FIXME: insert proper C++ library support
13759 ld_shlibs_CXX=no
13760 ;;
13761
13762 *)
13763 # FIXME: insert proper C++ library support
13764 ld_shlibs_CXX=no
13765 ;;
13766 esac
13767
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13769 $as_echo "$ld_shlibs_CXX" >&6; }
13770 test "$ld_shlibs_CXX" = no && can_build_shared=no
13771
13772 GCC_CXX="$GXX"
13773 LD_CXX="$LD"
13774
13775 ## CAVEAT EMPTOR:
13776 ## There is no encapsulation within the following macros, do not change
13777 ## the running order or otherwise move them around unless you know exactly
13778 ## what you are doing...
13779 # Dependencies to place before and after the object being linked:
13780 predep_objects_CXX=
13781 postdep_objects_CXX=
13782 predeps_CXX=
13783 postdeps_CXX=
13784 compiler_lib_search_path_CXX=
13785
13786 cat > conftest.$ac_ext <<_LT_EOF
13787 class Foo
13788 {
13789 public:
13790 Foo (void) { a = 0; }
13791 private:
13792 int a;
13793 };
13794 _LT_EOF
13795
13796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13797 (eval $ac_compile) 2>&5
13798 ac_status=$?
13799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13800 test $ac_status = 0; }; then
13801 # Parse the compiler output and extract the necessary
13802 # objects, libraries and library flags.
13803
13804 # Sentinel used to keep track of whether or not we are before
13805 # the conftest object file.
13806 pre_test_object_deps_done=no
13807
13808 for p in `eval "$output_verbose_link_cmd"`; do
13809 case $p in
13810
13811 -L* | -R* | -l*)
13812 # Some compilers place space between "-{L,R}" and the path.
13813 # Remove the space.
13814 if test $p = "-L" ||
13815 test $p = "-R"; then
13816 prev=$p
13817 continue
13818 else
13819 prev=
13820 fi
13821
13822 if test "$pre_test_object_deps_done" = no; then
13823 case $p in
13824 -L* | -R*)
13825 # Internal compiler library paths should come after those
13826 # provided the user. The postdeps already come after the
13827 # user supplied libs so there is no need to process them.
13828 if test -z "$compiler_lib_search_path_CXX"; then
13829 compiler_lib_search_path_CXX="${prev}${p}"
13830 else
13831 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13832 fi
13833 ;;
13834 # The "-l" case would never come before the object being
13835 # linked, so don't bother handling this case.
13836 esac
13837 else
13838 if test -z "$postdeps_CXX"; then
13839 postdeps_CXX="${prev}${p}"
13840 else
13841 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13842 fi
13843 fi
13844 ;;
13845
13846 *.$objext)
13847 # This assumes that the test object file only shows up
13848 # once in the compiler output.
13849 if test "$p" = "conftest.$objext"; then
13850 pre_test_object_deps_done=yes
13851 continue
13852 fi
13853
13854 if test "$pre_test_object_deps_done" = no; then
13855 if test -z "$predep_objects_CXX"; then
13856 predep_objects_CXX="$p"
13857 else
13858 predep_objects_CXX="$predep_objects_CXX $p"
13859 fi
13860 else
13861 if test -z "$postdep_objects_CXX"; then
13862 postdep_objects_CXX="$p"
13863 else
13864 postdep_objects_CXX="$postdep_objects_CXX $p"
13865 fi
13866 fi
13867 ;;
13868
13869 *) ;; # Ignore the rest.
13870
13871 esac
13872 done
13873
13874 # Clean up.
13875 rm -f a.out a.exe
13876 else
13877 echo "libtool.m4: error: problem compiling CXX test program"
13878 fi
13879
13880 $RM -f confest.$objext
13881
13882 # PORTME: override above test on systems where it is broken
13883 case $host_os in
13884 interix[3-9]*)
13885 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13886 # hack all around it, let's just trust "g++" to DTRT.
13887 predep_objects_CXX=
13888 postdep_objects_CXX=
13889 postdeps_CXX=
13890 ;;
13891
13892 linux*)
13893 case `$CC -V 2>&1 | sed 5q` in
13894 *Sun\ C*)
13895 # Sun C++ 5.9
13896
13897 # The more standards-conforming stlport4 library is
13898 # incompatible with the Cstd library. Avoid specifying
13899 # it if it's in CXXFLAGS. Ignore libCrun as
13900 # -library=stlport4 depends on it.
13901 case " $CXX $CXXFLAGS " in
13902 *" -library=stlport4 "*)
13903 solaris_use_stlport4=yes
13904 ;;
13905 esac
13906
13907 if test "$solaris_use_stlport4" != yes; then
13908 postdeps_CXX='-library=Cstd -library=Crun'
13909 fi
13910 ;;
13911 esac
13912 ;;
13913
13914 solaris*)
13915 case $cc_basename in
13916 CC*)
13917 # The more standards-conforming stlport4 library is
13918 # incompatible with the Cstd library. Avoid specifying
13919 # it if it's in CXXFLAGS. Ignore libCrun as
13920 # -library=stlport4 depends on it.
13921 case " $CXX $CXXFLAGS " in
13922 *" -library=stlport4 "*)
13923 solaris_use_stlport4=yes
13924 ;;
13925 esac
13926
13927 # Adding this requires a known-good setup of shared libraries for
13928 # Sun compiler versions before 5.6, else PIC objects from an old
13929 # archive will be linked into the output, leading to subtle bugs.
13930 if test "$solaris_use_stlport4" != yes; then
13931 postdeps_CXX='-library=Cstd -library=Crun'
13932 fi
13933 ;;
13934 esac
13935 ;;
13936 esac
13937
13938
13939 case " $postdeps_CXX " in
13940 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13941 esac
13942 compiler_lib_search_dirs_CXX=
13943 if test -n "${compiler_lib_search_path_CXX}"; then
13944 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13945 fi
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977 lt_prog_compiler_wl_CXX=
13978 lt_prog_compiler_pic_CXX=
13979 lt_prog_compiler_static_CXX=
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13982 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13983
13984 # C++ specific cases for pic, static, wl, etc.
13985 if test "$GXX" = yes; then
13986 lt_prog_compiler_wl_CXX='-Wl,'
13987 lt_prog_compiler_static_CXX='-static'
13988
13989 case $host_os in
13990 aix*)
13991 # All AIX code is PIC.
13992 if test "$host_cpu" = ia64; then
13993 # AIX 5 now supports IA64 processor
13994 lt_prog_compiler_static_CXX='-Bstatic'
13995 fi
13996 lt_prog_compiler_pic_CXX='-fPIC'
13997 ;;
13998
13999 amigaos*)
14000 case $host_cpu in
14001 powerpc)
14002 # see comment about AmigaOS4 .so support
14003 lt_prog_compiler_pic_CXX='-fPIC'
14004 ;;
14005 m68k)
14006 # FIXME: we need at least 68020 code to build shared libraries, but
14007 # adding the `-m68020' flag to GCC prevents building anything better,
14008 # like `-m68040'.
14009 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14010 ;;
14011 esac
14012 ;;
14013
14014 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14015 # PIC is the default for these OSes.
14016 ;;
14017 mingw* | cygwin* | os2* | pw32* | cegcc*)
14018 # This hack is so that the source file can tell whether it is being
14019 # built for inclusion in a dll (and should export symbols for example).
14020 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14021 # (--disable-auto-import) libraries
14022 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14023 ;;
14024 darwin* | rhapsody*)
14025 # PIC is the default on this platform
14026 # Common symbols not allowed in MH_DYLIB files
14027 lt_prog_compiler_pic_CXX='-fno-common'
14028 ;;
14029 *djgpp*)
14030 # DJGPP does not support shared libraries at all
14031 lt_prog_compiler_pic_CXX=
14032 ;;
14033 haiku*)
14034 # PIC is the default for Haiku.
14035 # The "-static" flag exists, but is broken.
14036 lt_prog_compiler_static_CXX=
14037 ;;
14038 interix[3-9]*)
14039 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14040 # Instead, we relocate shared libraries at runtime.
14041 ;;
14042 sysv4*MP*)
14043 if test -d /usr/nec; then
14044 lt_prog_compiler_pic_CXX=-Kconform_pic
14045 fi
14046 ;;
14047 hpux*)
14048 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14049 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14050 # sets the default TLS model and affects inlining.
14051 case $host_cpu in
14052 hppa*64*)
14053 ;;
14054 *)
14055 lt_prog_compiler_pic_CXX='-fPIC'
14056 ;;
14057 esac
14058 ;;
14059 *qnx* | *nto*)
14060 # QNX uses GNU C++, but need to define -shared option too, otherwise
14061 # it will coredump.
14062 lt_prog_compiler_pic_CXX='-fPIC -shared'
14063 ;;
14064 *)
14065 lt_prog_compiler_pic_CXX='-fPIC'
14066 ;;
14067 esac
14068 else
14069 case $host_os in
14070 aix[4-9]*)
14071 # All AIX code is PIC.
14072 if test "$host_cpu" = ia64; then
14073 # AIX 5 now supports IA64 processor
14074 lt_prog_compiler_static_CXX='-Bstatic'
14075 else
14076 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14077 fi
14078 ;;
14079 chorus*)
14080 case $cc_basename in
14081 cxch68*)
14082 # Green Hills C++ Compiler
14083 # _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"
14084 ;;
14085 esac
14086 ;;
14087 dgux*)
14088 case $cc_basename in
14089 ec++*)
14090 lt_prog_compiler_pic_CXX='-KPIC'
14091 ;;
14092 ghcx*)
14093 # Green Hills C++ Compiler
14094 lt_prog_compiler_pic_CXX='-pic'
14095 ;;
14096 *)
14097 ;;
14098 esac
14099 ;;
14100 freebsd* | dragonfly*)
14101 # FreeBSD uses GNU C++
14102 ;;
14103 hpux9* | hpux10* | hpux11*)
14104 case $cc_basename in
14105 CC*)
14106 lt_prog_compiler_wl_CXX='-Wl,'
14107 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14108 if test "$host_cpu" != ia64; then
14109 lt_prog_compiler_pic_CXX='+Z'
14110 fi
14111 ;;
14112 aCC*)
14113 lt_prog_compiler_wl_CXX='-Wl,'
14114 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14115 case $host_cpu in
14116 hppa*64*|ia64*)
14117 # +Z the default
14118 ;;
14119 *)
14120 lt_prog_compiler_pic_CXX='+Z'
14121 ;;
14122 esac
14123 ;;
14124 *)
14125 ;;
14126 esac
14127 ;;
14128 interix*)
14129 # This is c89, which is MS Visual C++ (no shared libs)
14130 # Anyone wants to do a port?
14131 ;;
14132 irix5* | irix6* | nonstopux*)
14133 case $cc_basename in
14134 CC*)
14135 lt_prog_compiler_wl_CXX='-Wl,'
14136 lt_prog_compiler_static_CXX='-non_shared'
14137 # CC pic flag -KPIC is the default.
14138 ;;
14139 *)
14140 ;;
14141 esac
14142 ;;
14143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14144 case $cc_basename in
14145 KCC*)
14146 # KAI C++ Compiler
14147 lt_prog_compiler_wl_CXX='--backend -Wl,'
14148 lt_prog_compiler_pic_CXX='-fPIC'
14149 ;;
14150 ecpc* )
14151 # old Intel C++ for x86_64 which still supported -KPIC.
14152 lt_prog_compiler_wl_CXX='-Wl,'
14153 lt_prog_compiler_pic_CXX='-KPIC'
14154 lt_prog_compiler_static_CXX='-static'
14155 ;;
14156 icpc* )
14157 # Intel C++, used to be incompatible with GCC.
14158 # ICC 10 doesn't accept -KPIC any more.
14159 lt_prog_compiler_wl_CXX='-Wl,'
14160 lt_prog_compiler_pic_CXX='-fPIC'
14161 lt_prog_compiler_static_CXX='-static'
14162 ;;
14163 pgCC* | pgcpp*)
14164 # Portland Group C++ compiler
14165 lt_prog_compiler_wl_CXX='-Wl,'
14166 lt_prog_compiler_pic_CXX='-fpic'
14167 lt_prog_compiler_static_CXX='-Bstatic'
14168 ;;
14169 cxx*)
14170 # Compaq C++
14171 # Make sure the PIC flag is empty. It appears that all Alpha
14172 # Linux and Compaq Tru64 Unix objects are PIC.
14173 lt_prog_compiler_pic_CXX=
14174 lt_prog_compiler_static_CXX='-non_shared'
14175 ;;
14176 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14177 # IBM XL 8.0, 9.0 on PPC and BlueGene
14178 lt_prog_compiler_wl_CXX='-Wl,'
14179 lt_prog_compiler_pic_CXX='-qpic'
14180 lt_prog_compiler_static_CXX='-qstaticlink'
14181 ;;
14182 *)
14183 case `$CC -V 2>&1 | sed 5q` in
14184 *Sun\ C*)
14185 # Sun C++ 5.9
14186 lt_prog_compiler_pic_CXX='-KPIC'
14187 lt_prog_compiler_static_CXX='-Bstatic'
14188 lt_prog_compiler_wl_CXX='-Qoption ld '
14189 ;;
14190 esac
14191 ;;
14192 esac
14193 ;;
14194 lynxos*)
14195 ;;
14196 m88k*)
14197 ;;
14198 mvs*)
14199 case $cc_basename in
14200 cxx*)
14201 lt_prog_compiler_pic_CXX='-W c,exportall'
14202 ;;
14203 *)
14204 ;;
14205 esac
14206 ;;
14207 netbsd*)
14208 ;;
14209 *qnx* | *nto*)
14210 # QNX uses GNU C++, but need to define -shared option too, otherwise
14211 # it will coredump.
14212 lt_prog_compiler_pic_CXX='-fPIC -shared'
14213 ;;
14214 osf3* | osf4* | osf5*)
14215 case $cc_basename in
14216 KCC*)
14217 lt_prog_compiler_wl_CXX='--backend -Wl,'
14218 ;;
14219 RCC*)
14220 # Rational C++ 2.4.1
14221 lt_prog_compiler_pic_CXX='-pic'
14222 ;;
14223 cxx*)
14224 # Digital/Compaq C++
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 # Make sure the PIC flag is empty. It appears that all Alpha
14227 # Linux and Compaq Tru64 Unix objects are PIC.
14228 lt_prog_compiler_pic_CXX=
14229 lt_prog_compiler_static_CXX='-non_shared'
14230 ;;
14231 *)
14232 ;;
14233 esac
14234 ;;
14235 psos*)
14236 ;;
14237 solaris*)
14238 case $cc_basename in
14239 CC*)
14240 # Sun C++ 4.2, 5.x and Centerline C++
14241 lt_prog_compiler_pic_CXX='-KPIC'
14242 lt_prog_compiler_static_CXX='-Bstatic'
14243 lt_prog_compiler_wl_CXX='-Qoption ld '
14244 ;;
14245 gcx*)
14246 # Green Hills C++ Compiler
14247 lt_prog_compiler_pic_CXX='-PIC'
14248 ;;
14249 *)
14250 ;;
14251 esac
14252 ;;
14253 sunos4*)
14254 case $cc_basename in
14255 CC*)
14256 # Sun C++ 4.x
14257 lt_prog_compiler_pic_CXX='-pic'
14258 lt_prog_compiler_static_CXX='-Bstatic'
14259 ;;
14260 lcc*)
14261 # Lucid
14262 lt_prog_compiler_pic_CXX='-pic'
14263 ;;
14264 *)
14265 ;;
14266 esac
14267 ;;
14268 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14269 case $cc_basename in
14270 CC*)
14271 lt_prog_compiler_wl_CXX='-Wl,'
14272 lt_prog_compiler_pic_CXX='-KPIC'
14273 lt_prog_compiler_static_CXX='-Bstatic'
14274 ;;
14275 esac
14276 ;;
14277 tandem*)
14278 case $cc_basename in
14279 NCC*)
14280 # NonStop-UX NCC 3.20
14281 lt_prog_compiler_pic_CXX='-KPIC'
14282 ;;
14283 *)
14284 ;;
14285 esac
14286 ;;
14287 vxworks*)
14288 ;;
14289 *)
14290 lt_prog_compiler_can_build_shared_CXX=no
14291 ;;
14292 esac
14293 fi
14294
14295 case $host_os in
14296 # For platforms which do not support PIC, -DPIC is meaningless:
14297 *djgpp*)
14298 lt_prog_compiler_pic_CXX=
14299 ;;
14300 *)
14301 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14302 ;;
14303 esac
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14305 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14306
14307
14308
14309 #
14310 # Check to make sure the PIC flag actually works.
14311 #
14312 if test -n "$lt_prog_compiler_pic_CXX"; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14314 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14315 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14318 lt_cv_prog_compiler_pic_works_CXX=no
14319 ac_outfile=conftest.$ac_objext
14320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14321 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14322 # Insert the option either (1) after the last *FLAGS variable, or
14323 # (2) before a word containing "conftest.", or (3) at the end.
14324 # Note that $ac_compile itself does not contain backslashes and begins
14325 # with a dollar sign (not a hyphen), so the echo should work correctly.
14326 # The option is referenced via a variable to avoid confusing sed.
14327 lt_compile=`echo "$ac_compile" | $SED \
14328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14330 -e 's:$: $lt_compiler_flag:'`
14331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14332 (eval "$lt_compile" 2>conftest.err)
14333 ac_status=$?
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 if (exit $ac_status) && test -s "$ac_outfile"; then
14337 # The compiler can only warn and ignore the option if not recognized
14338 # So say no if there are warnings other than the usual output.
14339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14342 lt_cv_prog_compiler_pic_works_CXX=yes
14343 fi
14344 fi
14345 $RM conftest*
14346
14347 fi
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14349 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14350
14351 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14352 case $lt_prog_compiler_pic_CXX in
14353 "" | " "*) ;;
14354 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14355 esac
14356 else
14357 lt_prog_compiler_pic_CXX=
14358 lt_prog_compiler_can_build_shared_CXX=no
14359 fi
14360
14361 fi
14362
14363
14364
14365 #
14366 # Check to make sure the static flag actually works.
14367 #
14368 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14370 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14371 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14373 else
14374 lt_cv_prog_compiler_static_works_CXX=no
14375 save_LDFLAGS="$LDFLAGS"
14376 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14377 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14379 # The linker can only warn and ignore the option if not recognized
14380 # So say no if there are warnings
14381 if test -s conftest.err; then
14382 # Append any errors to the config.log.
14383 cat conftest.err 1>&5
14384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14386 if diff conftest.exp conftest.er2 >/dev/null; then
14387 lt_cv_prog_compiler_static_works_CXX=yes
14388 fi
14389 else
14390 lt_cv_prog_compiler_static_works_CXX=yes
14391 fi
14392 fi
14393 $RM -r conftest*
14394 LDFLAGS="$save_LDFLAGS"
14395
14396 fi
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14398 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14399
14400 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14401 :
14402 else
14403 lt_prog_compiler_static_CXX=
14404 fi
14405
14406
14407
14408
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 lt_cv_prog_compiler_c_o_CXX=no
14415 $RM -r conftest 2>/dev/null
14416 mkdir conftest
14417 cd conftest
14418 mkdir out
14419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14420
14421 lt_compiler_flag="-o out/conftest2.$ac_objext"
14422 # Insert the option either (1) after the last *FLAGS variable, or
14423 # (2) before a word containing "conftest.", or (3) at the end.
14424 # Note that $ac_compile itself does not contain backslashes and begins
14425 # with a dollar sign (not a hyphen), so the echo should work correctly.
14426 lt_compile=`echo "$ac_compile" | $SED \
14427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14429 -e 's:$: $lt_compiler_flag:'`
14430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14431 (eval "$lt_compile" 2>out/conftest.err)
14432 ac_status=$?
14433 cat out/conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14436 then
14437 # The compiler can only warn and ignore the option if not recognized
14438 # So say no if there are warnings
14439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14442 lt_cv_prog_compiler_c_o_CXX=yes
14443 fi
14444 fi
14445 chmod u+w . 2>&5
14446 $RM conftest*
14447 # SGI C++ compiler will create directory out/ii_files/ for
14448 # template instantiation
14449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14450 $RM out/* && rmdir out
14451 cd ..
14452 $RM -r conftest
14453 $RM conftest*
14454
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14457 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14458
14459
14460
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14463 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14465 else
14466 lt_cv_prog_compiler_c_o_CXX=no
14467 $RM -r conftest 2>/dev/null
14468 mkdir conftest
14469 cd conftest
14470 mkdir out
14471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14472
14473 lt_compiler_flag="-o out/conftest2.$ac_objext"
14474 # Insert the option either (1) after the last *FLAGS variable, or
14475 # (2) before a word containing "conftest.", or (3) at the end.
14476 # Note that $ac_compile itself does not contain backslashes and begins
14477 # with a dollar sign (not a hyphen), so the echo should work correctly.
14478 lt_compile=`echo "$ac_compile" | $SED \
14479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14481 -e 's:$: $lt_compiler_flag:'`
14482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14483 (eval "$lt_compile" 2>out/conftest.err)
14484 ac_status=$?
14485 cat out/conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14488 then
14489 # The compiler can only warn and ignore the option if not recognized
14490 # So say no if there are warnings
14491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14494 lt_cv_prog_compiler_c_o_CXX=yes
14495 fi
14496 fi
14497 chmod u+w . 2>&5
14498 $RM conftest*
14499 # SGI C++ compiler will create directory out/ii_files/ for
14500 # template instantiation
14501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14502 $RM out/* && rmdir out
14503 cd ..
14504 $RM -r conftest
14505 $RM conftest*
14506
14507 fi
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14509 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14510
14511
14512
14513
14514 hard_links="nottested"
14515 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14516 # do not overwrite the value of need_locks provided by the user
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14518 $as_echo_n "checking if we can lock with hard links... " >&6; }
14519 hard_links=yes
14520 $RM conftest*
14521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14522 touch conftest.a
14523 ln conftest.a conftest.b 2>&5 || hard_links=no
14524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14526 $as_echo "$hard_links" >&6; }
14527 if test "$hard_links" = no; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14529 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14530 need_locks=warn
14531 fi
14532 else
14533 need_locks=no
14534 fi
14535
14536
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14540
14541 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14542 case $host_os in
14543 aix[4-9]*)
14544 # If we're using GNU nm, then we don't want the "-C" option.
14545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14546 # Also, AIX nm treats weak defined symbols like other global defined
14547 # symbols, whereas GNU nm marks them as "W".
14548 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14549 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'
14550 else
14551 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14552 fi
14553 ;;
14554 pw32*)
14555 export_symbols_cmds_CXX="$ltdll_cmds"
14556 ;;
14557 cygwin* | mingw* | cegcc*)
14558 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'
14559 ;;
14560 *)
14561 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14562 ;;
14563 esac
14564 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14565
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14567 $as_echo "$ld_shlibs_CXX" >&6; }
14568 test "$ld_shlibs_CXX" = no && can_build_shared=no
14569
14570 with_gnu_ld_CXX=$with_gnu_ld
14571
14572
14573
14574
14575
14576
14577 #
14578 # Do we need to explicitly link libc?
14579 #
14580 case "x$archive_cmds_need_lc_CXX" in
14581 x|xyes)
14582 # Assume -lc should be added
14583 archive_cmds_need_lc_CXX=yes
14584
14585 if test "$enable_shared" = yes && test "$GCC" = yes; then
14586 case $archive_cmds_CXX in
14587 *'~'*)
14588 # FIXME: we may have to deal with multi-command sequences.
14589 ;;
14590 '$CC '*)
14591 # Test whether the compiler implicitly links with -lc since on some
14592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14593 # to ld, don't add -lc before -lgcc.
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14596 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 $RM conftest*
14600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14601
14602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14603 (eval $ac_compile) 2>&5
14604 ac_status=$?
14605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14606 test $ac_status = 0; } 2>conftest.err; then
14607 soname=conftest
14608 lib=conftest
14609 libobjs=conftest.$ac_objext
14610 deplibs=
14611 wl=$lt_prog_compiler_wl_CXX
14612 pic_flag=$lt_prog_compiler_pic_CXX
14613 compiler_flags=-v
14614 linker_flags=-v
14615 verstring=
14616 output_objdir=.
14617 libname=conftest
14618 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14619 allow_undefined_flag_CXX=
14620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14621 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14622 ac_status=$?
14623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624 test $ac_status = 0; }
14625 then
14626 lt_cv_archive_cmds_need_lc_CXX=no
14627 else
14628 lt_cv_archive_cmds_need_lc_CXX=yes
14629 fi
14630 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14631 else
14632 cat conftest.err 1>&5
14633 fi
14634 $RM conftest*
14635
14636 fi
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14638 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14639 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14640 ;;
14641 esac
14642 fi
14643 ;;
14644 esac
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
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14710 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14711
14712 library_names_spec=
14713 libname_spec='lib$name'
14714 soname_spec=
14715 shrext_cmds=".so"
14716 postinstall_cmds=
14717 postuninstall_cmds=
14718 finish_cmds=
14719 finish_eval=
14720 shlibpath_var=
14721 shlibpath_overrides_runpath=unknown
14722 version_type=none
14723 dynamic_linker="$host_os ld.so"
14724 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14725 need_lib_prefix=unknown
14726 hardcode_into_libs=no
14727
14728 # when you set need_version to no, make sure it does not cause -set_version
14729 # flags to be left without arguments
14730 need_version=unknown
14731
14732 case $host_os in
14733 aix3*)
14734 version_type=linux
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14736 shlibpath_var=LIBPATH
14737
14738 # AIX 3 has no versioning support, so we append a major version to the name.
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 ;;
14741
14742 aix[4-9]*)
14743 version_type=linux
14744 need_lib_prefix=no
14745 need_version=no
14746 hardcode_into_libs=yes
14747 if test "$host_cpu" = ia64; then
14748 # AIX 5 supports IA64
14749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 else
14752 # With GCC up to 2.95.x, collect2 would create an import file
14753 # for dependence libraries. The import file would start with
14754 # the line `#! .'. This would cause the generated library to
14755 # depend on `.', always an invalid library. This was fixed in
14756 # development snapshots of GCC prior to 3.0.
14757 case $host_os in
14758 aix4 | aix4.[01] | aix4.[01].*)
14759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14760 echo ' yes '
14761 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14762 :
14763 else
14764 can_build_shared=no
14765 fi
14766 ;;
14767 esac
14768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14769 # soname into executable. Probably we can add versioning support to
14770 # collect2, so additional links can be useful in future.
14771 if test "$aix_use_runtimelinking" = yes; then
14772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14773 # instead of lib<name>.a to let people know that these are not
14774 # typical AIX shared libraries.
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 else
14777 # We preserve .a as extension for shared libraries through AIX4.2
14778 # and later when we are not doing run time linking.
14779 library_names_spec='${libname}${release}.a $libname.a'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 fi
14782 shlibpath_var=LIBPATH
14783 fi
14784 ;;
14785
14786 amigaos*)
14787 case $host_cpu in
14788 powerpc)
14789 # Since July 2007 AmigaOS4 officially supports .so libraries.
14790 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 ;;
14793 m68k)
14794 library_names_spec='$libname.ixlibrary $libname.a'
14795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14796 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'
14797 ;;
14798 esac
14799 ;;
14800
14801 beos*)
14802 library_names_spec='${libname}${shared_ext}'
14803 dynamic_linker="$host_os ld.so"
14804 shlibpath_var=LIBRARY_PATH
14805 ;;
14806
14807 bsdi[45]*)
14808 version_type=linux
14809 need_version=no
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14813 shlibpath_var=LD_LIBRARY_PATH
14814 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14815 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14816 # the default ld.so.conf also contains /usr/contrib/lib and
14817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14818 # libtool to hard-code these into programs
14819 ;;
14820
14821 cygwin* | mingw* | pw32* | cegcc*)
14822 version_type=windows
14823 shrext_cmds=".dll"
14824 need_version=no
14825 need_lib_prefix=no
14826
14827 case $GCC,$host_os in
14828 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14829 library_names_spec='$libname.dll.a'
14830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14831 postinstall_cmds='base_file=`basename \${file}`~
14832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14833 dldir=$destdir/`dirname \$dlpath`~
14834 test -d \$dldir || mkdir -p \$dldir~
14835 $install_prog $dir/$dlname \$dldir/$dlname~
14836 chmod a+x \$dldir/$dlname~
14837 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14838 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14839 fi'
14840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14841 dlpath=$dir/\$dldll~
14842 $RM \$dlpath'
14843 shlibpath_overrides_runpath=yes
14844
14845 case $host_os in
14846 cygwin*)
14847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14849
14850 ;;
14851 mingw* | cegcc*)
14852 # MinGW DLLs use traditional 'lib' prefix
14853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14854 ;;
14855 pw32*)
14856 # pw32 DLLs use 'pw' prefix rather than 'lib'
14857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14858 ;;
14859 esac
14860 ;;
14861
14862 *)
14863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14864 ;;
14865 esac
14866 dynamic_linker='Win32 ld.exe'
14867 # FIXME: first we should search . and the directory the executable is in
14868 shlibpath_var=PATH
14869 ;;
14870
14871 darwin* | rhapsody*)
14872 dynamic_linker="$host_os dyld"
14873 version_type=darwin
14874 need_lib_prefix=no
14875 need_version=no
14876 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14877 soname_spec='${libname}${release}${major}$shared_ext'
14878 shlibpath_overrides_runpath=yes
14879 shlibpath_var=DYLD_LIBRARY_PATH
14880 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14881
14882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14883 ;;
14884
14885 dgux*)
14886 version_type=linux
14887 need_lib_prefix=no
14888 need_version=no
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 ;;
14893
14894 freebsd* | dragonfly*)
14895 # DragonFly does not have aout. When/if they implement a new
14896 # versioning mechanism, adjust this.
14897 if test -x /usr/bin/objformat; then
14898 objformat=`/usr/bin/objformat`
14899 else
14900 case $host_os in
14901 freebsd[23].*) objformat=aout ;;
14902 *) objformat=elf ;;
14903 esac
14904 fi
14905 version_type=freebsd-$objformat
14906 case $version_type in
14907 freebsd-elf*)
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14909 need_version=no
14910 need_lib_prefix=no
14911 ;;
14912 freebsd-*)
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14914 need_version=yes
14915 ;;
14916 esac
14917 shlibpath_var=LD_LIBRARY_PATH
14918 case $host_os in
14919 freebsd2.*)
14920 shlibpath_overrides_runpath=yes
14921 ;;
14922 freebsd3.[01]* | freebsdelf3.[01]*)
14923 shlibpath_overrides_runpath=yes
14924 hardcode_into_libs=yes
14925 ;;
14926 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14927 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14928 shlibpath_overrides_runpath=no
14929 hardcode_into_libs=yes
14930 ;;
14931 *) # from 4.6 on, and DragonFly
14932 shlibpath_overrides_runpath=yes
14933 hardcode_into_libs=yes
14934 ;;
14935 esac
14936 ;;
14937
14938 gnu*)
14939 version_type=linux
14940 need_lib_prefix=no
14941 need_version=no
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 hardcode_into_libs=yes
14946 ;;
14947
14948 haiku*)
14949 version_type=linux
14950 need_lib_prefix=no
14951 need_version=no
14952 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
14956 shlibpath_overrides_runpath=yes
14957 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14958 hardcode_into_libs=yes
14959 ;;
14960
14961 hpux9* | hpux10* | hpux11*)
14962 # Give a soname corresponding to the major version so that dld.sl refuses to
14963 # link against other versions.
14964 version_type=sunos
14965 need_lib_prefix=no
14966 need_version=no
14967 case $host_cpu in
14968 ia64*)
14969 shrext_cmds='.so'
14970 hardcode_into_libs=yes
14971 dynamic_linker="$host_os dld.so"
14972 shlibpath_var=LD_LIBRARY_PATH
14973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14975 soname_spec='${libname}${release}${shared_ext}$major'
14976 if test "X$HPUX_IA64_MODE" = X32; then
14977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14978 else
14979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14980 fi
14981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14982 ;;
14983 hppa*64*)
14984 shrext_cmds='.sl'
14985 hardcode_into_libs=yes
14986 dynamic_linker="$host_os dld.sl"
14987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14993 ;;
14994 *)
14995 shrext_cmds='.sl'
14996 dynamic_linker="$host_os dld.sl"
14997 shlibpath_var=SHLIB_PATH
14998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 soname_spec='${libname}${release}${shared_ext}$major'
15001 ;;
15002 esac
15003 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15004 postinstall_cmds='chmod 555 $lib'
15005 # or fails outright, so override atomically:
15006 install_override_mode=555
15007 ;;
15008
15009 interix[3-9]*)
15010 version_type=linux
15011 need_lib_prefix=no
15012 need_version=no
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=no
15018 hardcode_into_libs=yes
15019 ;;
15020
15021 irix5* | irix6* | nonstopux*)
15022 case $host_os in
15023 nonstopux*) version_type=nonstopux ;;
15024 *)
15025 if test "$lt_cv_prog_gnu_ld" = yes; then
15026 version_type=linux
15027 else
15028 version_type=irix
15029 fi ;;
15030 esac
15031 need_lib_prefix=no
15032 need_version=no
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15035 case $host_os in
15036 irix5* | nonstopux*)
15037 libsuff= shlibsuff=
15038 ;;
15039 *)
15040 case $LD in # libtool.m4 will add one of these switches to LD
15041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15042 libsuff= shlibsuff= libmagic=32-bit;;
15043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15044 libsuff=32 shlibsuff=N32 libmagic=N32;;
15045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15047 *) libsuff= shlibsuff= libmagic=never-match;;
15048 esac
15049 ;;
15050 esac
15051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15052 shlibpath_overrides_runpath=no
15053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15055 hardcode_into_libs=yes
15056 ;;
15057
15058 # No shared lib support for Linux oldld, aout, or coff.
15059 linux*oldld* | linux*aout* | linux*coff*)
15060 dynamic_linker=no
15061 ;;
15062
15063 # This must be Linux ELF.
15064 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15065 version_type=linux
15066 need_lib_prefix=no
15067 need_version=no
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=no
15073
15074 # Some binutils ld are patched to set DT_RUNPATH
15075 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15076 $as_echo_n "(cached) " >&6
15077 else
15078 lt_cv_shlibpath_overrides_runpath=no
15079 save_LDFLAGS=$LDFLAGS
15080 save_libdir=$libdir
15081 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15082 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085
15086 int
15087 main ()
15088 {
15089
15090 ;
15091 return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_cxx_try_link "$LINENO"; then :
15095 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15096 lt_cv_shlibpath_overrides_runpath=yes
15097 fi
15098 fi
15099 rm -f core conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101 LDFLAGS=$save_LDFLAGS
15102 libdir=$save_libdir
15103
15104 fi
15105
15106 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15107
15108 # This implies no fast_install, which is unacceptable.
15109 # Some rework will be needed to allow for fast_install
15110 # before this can be enabled.
15111 hardcode_into_libs=yes
15112
15113 # Append ld.so.conf contents to the search path
15114 if test -f /etc/ld.so.conf; then
15115 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' ' '`
15116 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15117 fi
15118
15119 # We used to test for /lib/ld.so.1 and disable shared libraries on
15120 # powerpc, because MkLinux only supported shared libraries with the
15121 # GNU dynamic linker. Since this was broken with cross compilers,
15122 # most powerpc-linux boxes support dynamic linking these days and
15123 # people can always --disable-shared, the test was removed, and we
15124 # assume the GNU/Linux dynamic linker is in use.
15125 dynamic_linker='GNU/Linux ld.so'
15126 ;;
15127
15128 netbsd*)
15129 version_type=sunos
15130 need_lib_prefix=no
15131 need_version=no
15132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15135 dynamic_linker='NetBSD (a.out) ld.so'
15136 else
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 dynamic_linker='NetBSD ld.elf_so'
15140 fi
15141 shlibpath_var=LD_LIBRARY_PATH
15142 shlibpath_overrides_runpath=yes
15143 hardcode_into_libs=yes
15144 ;;
15145
15146 newsos6)
15147 version_type=linux
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 shlibpath_overrides_runpath=yes
15151 ;;
15152
15153 *nto* | *qnx*)
15154 version_type=qnx
15155 need_lib_prefix=no
15156 need_version=no
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=no
15161 hardcode_into_libs=yes
15162 dynamic_linker='ldqnx.so'
15163 ;;
15164
15165 openbsd*)
15166 version_type=sunos
15167 sys_lib_dlsearch_path_spec="/usr/lib"
15168 need_lib_prefix=no
15169 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15170 case $host_os in
15171 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15172 *) need_version=no ;;
15173 esac
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15178 case $host_os in
15179 openbsd2.[89] | openbsd2.[89].*)
15180 shlibpath_overrides_runpath=no
15181 ;;
15182 *)
15183 shlibpath_overrides_runpath=yes
15184 ;;
15185 esac
15186 else
15187 shlibpath_overrides_runpath=yes
15188 fi
15189 ;;
15190
15191 os2*)
15192 libname_spec='$name'
15193 shrext_cmds=".dll"
15194 need_lib_prefix=no
15195 library_names_spec='$libname${shared_ext} $libname.a'
15196 dynamic_linker='OS/2 ld.exe'
15197 shlibpath_var=LIBPATH
15198 ;;
15199
15200 osf3* | osf4* | osf5*)
15201 version_type=osf
15202 need_lib_prefix=no
15203 need_version=no
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15209 ;;
15210
15211 rdos*)
15212 dynamic_linker=no
15213 ;;
15214
15215 solaris*)
15216 version_type=linux
15217 need_lib_prefix=no
15218 need_version=no
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes
15223 hardcode_into_libs=yes
15224 # ldd complains unless libraries are executable
15225 postinstall_cmds='chmod +x $lib'
15226 ;;
15227
15228 sunos4*)
15229 version_type=sunos
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=yes
15234 if test "$with_gnu_ld" = yes; then
15235 need_lib_prefix=no
15236 fi
15237 need_version=yes
15238 ;;
15239
15240 sysv4 | sysv4.3*)
15241 version_type=linux
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 case $host_vendor in
15246 sni)
15247 shlibpath_overrides_runpath=no
15248 need_lib_prefix=no
15249 runpath_var=LD_RUN_PATH
15250 ;;
15251 siemens)
15252 need_lib_prefix=no
15253 ;;
15254 motorola)
15255 need_lib_prefix=no
15256 need_version=no
15257 shlibpath_overrides_runpath=no
15258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15259 ;;
15260 esac
15261 ;;
15262
15263 sysv4*MP*)
15264 if test -d /usr/nec ;then
15265 version_type=linux
15266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15267 soname_spec='$libname${shared_ext}.$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 fi
15270 ;;
15271
15272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15273 version_type=freebsd-elf
15274 need_lib_prefix=no
15275 need_version=no
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes
15280 hardcode_into_libs=yes
15281 if test "$with_gnu_ld" = yes; then
15282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15283 else
15284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15285 case $host_os in
15286 sco3.2v5*)
15287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15288 ;;
15289 esac
15290 fi
15291 sys_lib_dlsearch_path_spec='/usr/lib'
15292 ;;
15293
15294 tpf*)
15295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15296 version_type=linux
15297 need_lib_prefix=no
15298 need_version=no
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=no
15302 hardcode_into_libs=yes
15303 ;;
15304
15305 uts4*)
15306 version_type=linux
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 ;;
15311
15312 *)
15313 dynamic_linker=no
15314 ;;
15315 esac
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15317 $as_echo "$dynamic_linker" >&6; }
15318 test "$dynamic_linker" = no && can_build_shared=no
15319
15320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15321 if test "$GCC" = yes; then
15322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15323 fi
15324
15325 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15326 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15327 fi
15328 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15330 fi
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15370 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15371 hardcode_action_CXX=
15372 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15373 test -n "$runpath_var_CXX" ||
15374 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15375
15376 # We can hardcode non-existent directories.
15377 if test "$hardcode_direct_CXX" != no &&
15378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15379 # have to relink, otherwise we might link with an installed library
15380 # when we should be linking with a yet-to-be-installed one
15381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15382 test "$hardcode_minus_L_CXX" != no; then
15383 # Linking always hardcodes the temporary library directory.
15384 hardcode_action_CXX=relink
15385 else
15386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15387 hardcode_action_CXX=immediate
15388 fi
15389 else
15390 # We cannot hardcode anything, or else we can only hardcode existing
15391 # directories.
15392 hardcode_action_CXX=unsupported
15393 fi
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15395 $as_echo "$hardcode_action_CXX" >&6; }
15396
15397 if test "$hardcode_action_CXX" = relink ||
15398 test "$inherit_rpath_CXX" = yes; then
15399 # Fast installation is not supported
15400 enable_fast_install=no
15401 elif test "$shlibpath_overrides_runpath" = yes ||
15402 test "$enable_shared" = no; then
15403 # Fast installation is not necessary
15404 enable_fast_install=needless
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413 fi # test -n "$compiler"
15414
15415 CC=$lt_save_CC
15416 LDCXX=$LD
15417 LD=$lt_save_LD
15418 GCC=$lt_save_GCC
15419 with_gnu_ld=$lt_save_with_gnu_ld
15420 lt_cv_path_LDCXX=$lt_cv_path_LD
15421 lt_cv_path_LD=$lt_save_path_LD
15422 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15423 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15424 fi # test "$_lt_caught_CXX_error" != yes
15425
15426 ac_ext=c
15427 ac_cpp='$CPP $CPPFLAGS'
15428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444 ac_config_commands="$ac_config_commands libtool"
15445
15446
15447
15448
15449 # Only expand once:
15450
15451
15452
15453
15454
15455 # For libtool versioning info, format is CURRENT:REVISION:AGE
15456 libtool_VERSION=1:0:0
15457
15458
15459 XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
15460
15461
15462 if test "${multilib}" = "yes"; then
15463 multilib_arg="--enable-multilib"
15464 else
15465 multilib_arg=
15466 fi
15467
15468 ac_config_files="$ac_config_files Makefile"
15469
15470
15471 if test "x$VTV_SUPPORTED" = "xyes"; then
15472 ac_config_files="$ac_config_files ./Makefile testsuite/Makefile"
15473
15474 fi
15475
15476 cat >confcache <<\_ACEOF
15477 # This file is a shell script that caches the results of configure
15478 # tests run on this system so they can be shared between configure
15479 # scripts and configure runs, see configure's option --config-cache.
15480 # It is not useful on other systems. If it contains results you don't
15481 # want to keep, you may remove or edit it.
15482 #
15483 # config.status only pays attention to the cache file if you give it
15484 # the --recheck option to rerun configure.
15485 #
15486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15488 # following values.
15489
15490 _ACEOF
15491
15492 # The following way of writing the cache mishandles newlines in values,
15493 # but we know of no workaround that is simple, portable, and efficient.
15494 # So, we kill variables containing newlines.
15495 # Ultrix sh set writes to stderr and can't be redirected directly,
15496 # and sets the high bit in the cache file unless we assign to the vars.
15497 (
15498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15499 eval ac_val=\$$ac_var
15500 case $ac_val in #(
15501 *${as_nl}*)
15502 case $ac_var in #(
15503 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15504 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15505 esac
15506 case $ac_var in #(
15507 _ | IFS | as_nl) ;; #(
15508 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15509 *) { eval $ac_var=; unset $ac_var;} ;;
15510 esac ;;
15511 esac
15512 done
15513
15514 (set) 2>&1 |
15515 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15516 *${as_nl}ac_space=\ *)
15517 # `set' does not quote correctly, so add quotes: double-quote
15518 # substitution turns \\\\ into \\, and sed turns \\ into \.
15519 sed -n \
15520 "s/'/'\\\\''/g;
15521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15522 ;; #(
15523 *)
15524 # `set' quotes correctly as required by POSIX, so do not add quotes.
15525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15526 ;;
15527 esac |
15528 sort
15529 ) |
15530 sed '
15531 /^ac_cv_env_/b end
15532 t clear
15533 :clear
15534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15535 t end
15536 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15537 :end' >>confcache
15538 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15539 if test -w "$cache_file"; then
15540 test "x$cache_file" != "x/dev/null" &&
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15542 $as_echo "$as_me: updating cache $cache_file" >&6;}
15543 cat confcache >$cache_file
15544 else
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15546 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15547 fi
15548 fi
15549 rm -f confcache
15550
15551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15552 # Let make expand exec_prefix.
15553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15554
15555 # Transform confdefs.h into DEFS.
15556 # Protect against shell expansion while executing Makefile rules.
15557 # Protect against Makefile macro expansion.
15558 #
15559 # If the first sed substitution is executed (which looks for macros that
15560 # take arguments), then branch to the quote section. Otherwise,
15561 # look for a macro that doesn't take arguments.
15562 ac_script='
15563 :mline
15564 /\\$/{
15565 N
15566 s,\\\n,,
15567 b mline
15568 }
15569 t clear
15570 :clear
15571 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15572 t quote
15573 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15574 t quote
15575 b any
15576 :quote
15577 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15578 s/\[/\\&/g
15579 s/\]/\\&/g
15580 s/\$/$$/g
15581 H
15582 :any
15583 ${
15584 g
15585 s/^\n//
15586 s/\n/ /g
15587 p
15588 }
15589 '
15590 DEFS=`sed -n "$ac_script" confdefs.h`
15591
15592
15593 ac_libobjs=
15594 ac_ltlibobjs=
15595 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15596 # 1. Remove the extension, and $U if already installed.
15597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15598 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15600 # will be set to the directory where LIBOBJS objects are built.
15601 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15602 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15603 done
15604 LIBOBJS=$ac_libobjs
15605
15606 LTLIBOBJS=$ac_ltlibobjs
15607
15608
15609 if test -n "$EXEEXT"; then
15610 am__EXEEXT_TRUE=
15611 am__EXEEXT_FALSE='#'
15612 else
15613 am__EXEEXT_TRUE='#'
15614 am__EXEEXT_FALSE=
15615 fi
15616
15617 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15618 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15620 fi
15621 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15622 as_fn_error "conditional \"AMDEP\" was never defined.
15623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15624 fi
15625 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15626 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15628 fi
15629 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15630 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15632 fi
15633 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15634 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15636 fi
15637
15638 : ${CONFIG_STATUS=./config.status}
15639 ac_write_fail=0
15640 ac_clean_files_save=$ac_clean_files
15641 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15644 as_write_fail=0
15645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15646 #! $SHELL
15647 # Generated by $as_me.
15648 # Run this file to recreate the current configuration.
15649 # Compiler output produced by configure, useful for debugging
15650 # configure, is in config.log if it exists.
15651
15652 debug=false
15653 ac_cs_recheck=false
15654 ac_cs_silent=false
15655
15656 SHELL=\${CONFIG_SHELL-$SHELL}
15657 export SHELL
15658 _ASEOF
15659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15660 ## -------------------- ##
15661 ## M4sh Initialization. ##
15662 ## -------------------- ##
15663
15664 # Be more Bourne compatible
15665 DUALCASE=1; export DUALCASE # for MKS sh
15666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15667 emulate sh
15668 NULLCMD=:
15669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15670 # is contrary to our usage. Disable this feature.
15671 alias -g '${1+"$@"}'='"$@"'
15672 setopt NO_GLOB_SUBST
15673 else
15674 case `(set -o) 2>/dev/null` in #(
15675 *posix*) :
15676 set -o posix ;; #(
15677 *) :
15678 ;;
15679 esac
15680 fi
15681
15682
15683 as_nl='
15684 '
15685 export as_nl
15686 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15690 # Prefer a ksh shell builtin over an external printf program on Solaris,
15691 # but without wasting forks for bash or zsh.
15692 if test -z "$BASH_VERSION$ZSH_VERSION" \
15693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15694 as_echo='print -r --'
15695 as_echo_n='print -rn --'
15696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15697 as_echo='printf %s\n'
15698 as_echo_n='printf %s'
15699 else
15700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15701 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15702 as_echo_n='/usr/ucb/echo -n'
15703 else
15704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15705 as_echo_n_body='eval
15706 arg=$1;
15707 case $arg in #(
15708 *"$as_nl"*)
15709 expr "X$arg" : "X\\(.*\\)$as_nl";
15710 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15711 esac;
15712 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15713 '
15714 export as_echo_n_body
15715 as_echo_n='sh -c $as_echo_n_body as_echo'
15716 fi
15717 export as_echo_body
15718 as_echo='sh -c $as_echo_body as_echo'
15719 fi
15720
15721 # The user is always right.
15722 if test "${PATH_SEPARATOR+set}" != set; then
15723 PATH_SEPARATOR=:
15724 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15725 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15726 PATH_SEPARATOR=';'
15727 }
15728 fi
15729
15730
15731 # IFS
15732 # We need space, tab and new line, in precisely that order. Quoting is
15733 # there to prevent editors from complaining about space-tab.
15734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15735 # splitting by setting IFS to empty value.)
15736 IFS=" "" $as_nl"
15737
15738 # Find who we are. Look in the path if we contain no directory separator.
15739 case $0 in #((
15740 *[\\/]* ) as_myself=$0 ;;
15741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742 for as_dir in $PATH
15743 do
15744 IFS=$as_save_IFS
15745 test -z "$as_dir" && as_dir=.
15746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15747 done
15748 IFS=$as_save_IFS
15749
15750 ;;
15751 esac
15752 # We did not find ourselves, most probably we were run as `sh COMMAND'
15753 # in which case we are not to be found in the path.
15754 if test "x$as_myself" = x; then
15755 as_myself=$0
15756 fi
15757 if test ! -f "$as_myself"; then
15758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15759 exit 1
15760 fi
15761
15762 # Unset variables that we do not need and which cause bugs (e.g. in
15763 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15764 # suppresses any "Segmentation fault" message there. '((' could
15765 # trigger a bug in pdksh 5.2.14.
15766 for as_var in BASH_ENV ENV MAIL MAILPATH
15767 do eval test x\${$as_var+set} = xset \
15768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15769 done
15770 PS1='$ '
15771 PS2='> '
15772 PS4='+ '
15773
15774 # NLS nuisances.
15775 LC_ALL=C
15776 export LC_ALL
15777 LANGUAGE=C
15778 export LANGUAGE
15779
15780 # CDPATH.
15781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15782
15783
15784 # as_fn_error ERROR [LINENO LOG_FD]
15785 # ---------------------------------
15786 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15787 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15788 # script with status $?, using 1 if that was 0.
15789 as_fn_error ()
15790 {
15791 as_status=$?; test $as_status -eq 0 && as_status=1
15792 if test "$3"; then
15793 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15795 fi
15796 $as_echo "$as_me: error: $1" >&2
15797 as_fn_exit $as_status
15798 } # as_fn_error
15799
15800
15801 # as_fn_set_status STATUS
15802 # -----------------------
15803 # Set $? to STATUS, without forking.
15804 as_fn_set_status ()
15805 {
15806 return $1
15807 } # as_fn_set_status
15808
15809 # as_fn_exit STATUS
15810 # -----------------
15811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15812 as_fn_exit ()
15813 {
15814 set +e
15815 as_fn_set_status $1
15816 exit $1
15817 } # as_fn_exit
15818
15819 # as_fn_unset VAR
15820 # ---------------
15821 # Portably unset VAR.
15822 as_fn_unset ()
15823 {
15824 { eval $1=; unset $1;}
15825 }
15826 as_unset=as_fn_unset
15827 # as_fn_append VAR VALUE
15828 # ----------------------
15829 # Append the text in VALUE to the end of the definition contained in VAR. Take
15830 # advantage of any shell optimizations that allow amortized linear growth over
15831 # repeated appends, instead of the typical quadratic growth present in naive
15832 # implementations.
15833 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15834 eval 'as_fn_append ()
15835 {
15836 eval $1+=\$2
15837 }'
15838 else
15839 as_fn_append ()
15840 {
15841 eval $1=\$$1\$2
15842 }
15843 fi # as_fn_append
15844
15845 # as_fn_arith ARG...
15846 # ------------------
15847 # Perform arithmetic evaluation on the ARGs, and store the result in the
15848 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15849 # must be portable across $(()) and expr.
15850 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15851 eval 'as_fn_arith ()
15852 {
15853 as_val=$(( $* ))
15854 }'
15855 else
15856 as_fn_arith ()
15857 {
15858 as_val=`expr "$@" || test $? -eq 1`
15859 }
15860 fi # as_fn_arith
15861
15862
15863 if expr a : '\(a\)' >/dev/null 2>&1 &&
15864 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15865 as_expr=expr
15866 else
15867 as_expr=false
15868 fi
15869
15870 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15871 as_basename=basename
15872 else
15873 as_basename=false
15874 fi
15875
15876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15877 as_dirname=dirname
15878 else
15879 as_dirname=false
15880 fi
15881
15882 as_me=`$as_basename -- "$0" ||
15883 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15884 X"$0" : 'X\(//\)$' \| \
15885 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15886 $as_echo X/"$0" |
15887 sed '/^.*\/\([^/][^/]*\)\/*$/{
15888 s//\1/
15889 q
15890 }
15891 /^X\/\(\/\/\)$/{
15892 s//\1/
15893 q
15894 }
15895 /^X\/\(\/\).*/{
15896 s//\1/
15897 q
15898 }
15899 s/.*/./; q'`
15900
15901 # Avoid depending upon Character Ranges.
15902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15905 as_cr_digits='0123456789'
15906 as_cr_alnum=$as_cr_Letters$as_cr_digits
15907
15908 ECHO_C= ECHO_N= ECHO_T=
15909 case `echo -n x` in #(((((
15910 -n*)
15911 case `echo 'xy\c'` in
15912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15913 xy) ECHO_C='\c';;
15914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15915 ECHO_T=' ';;
15916 esac;;
15917 *)
15918 ECHO_N='-n';;
15919 esac
15920
15921 rm -f conf$$ conf$$.exe conf$$.file
15922 if test -d conf$$.dir; then
15923 rm -f conf$$.dir/conf$$.file
15924 else
15925 rm -f conf$$.dir
15926 mkdir conf$$.dir 2>/dev/null
15927 fi
15928 if (echo >conf$$.file) 2>/dev/null; then
15929 if ln -s conf$$.file conf$$ 2>/dev/null; then
15930 as_ln_s='ln -s'
15931 # ... but there are two gotchas:
15932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15934 # In both cases, we have to default to `cp -p'.
15935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15936 as_ln_s='cp -p'
15937 elif ln conf$$.file conf$$ 2>/dev/null; then
15938 as_ln_s=ln
15939 else
15940 as_ln_s='cp -p'
15941 fi
15942 else
15943 as_ln_s='cp -p'
15944 fi
15945 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15946 rmdir conf$$.dir 2>/dev/null
15947
15948
15949 # as_fn_mkdir_p
15950 # -------------
15951 # Create "$as_dir" as a directory, including parents if necessary.
15952 as_fn_mkdir_p ()
15953 {
15954
15955 case $as_dir in #(
15956 -*) as_dir=./$as_dir;;
15957 esac
15958 test -d "$as_dir" || eval $as_mkdir_p || {
15959 as_dirs=
15960 while :; do
15961 case $as_dir in #(
15962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15963 *) as_qdir=$as_dir;;
15964 esac
15965 as_dirs="'$as_qdir' $as_dirs"
15966 as_dir=`$as_dirname -- "$as_dir" ||
15967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15968 X"$as_dir" : 'X\(//\)[^/]' \| \
15969 X"$as_dir" : 'X\(//\)$' \| \
15970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15971 $as_echo X"$as_dir" |
15972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15973 s//\1/
15974 q
15975 }
15976 /^X\(\/\/\)[^/].*/{
15977 s//\1/
15978 q
15979 }
15980 /^X\(\/\/\)$/{
15981 s//\1/
15982 q
15983 }
15984 /^X\(\/\).*/{
15985 s//\1/
15986 q
15987 }
15988 s/.*/./; q'`
15989 test -d "$as_dir" && break
15990 done
15991 test -z "$as_dirs" || eval "mkdir $as_dirs"
15992 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15993
15994
15995 } # as_fn_mkdir_p
15996 if mkdir -p . 2>/dev/null; then
15997 as_mkdir_p='mkdir -p "$as_dir"'
15998 else
15999 test -d ./-p && rmdir ./-p
16000 as_mkdir_p=false
16001 fi
16002
16003 if test -x / >/dev/null 2>&1; then
16004 as_test_x='test -x'
16005 else
16006 if ls -dL / >/dev/null 2>&1; then
16007 as_ls_L_option=L
16008 else
16009 as_ls_L_option=
16010 fi
16011 as_test_x='
16012 eval sh -c '\''
16013 if test -d "$1"; then
16014 test -d "$1/.";
16015 else
16016 case $1 in #(
16017 -*)set "./$1";;
16018 esac;
16019 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16020 ???[sx]*):;;*)false;;esac;fi
16021 '\'' sh
16022 '
16023 fi
16024 as_executable_p=$as_test_x
16025
16026 # Sed expression to map a string onto a valid CPP name.
16027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16028
16029 # Sed expression to map a string onto a valid variable name.
16030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16031
16032
16033 exec 6>&1
16034 ## ----------------------------------- ##
16035 ## Main body of $CONFIG_STATUS script. ##
16036 ## ----------------------------------- ##
16037 _ASEOF
16038 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16039
16040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041 # Save the log message, to keep $0 and so on meaningful, and to
16042 # report actual input values of CONFIG_FILES etc. instead of their
16043 # values after options handling.
16044 ac_log="
16045 This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
16046 generated by GNU Autoconf 2.64. Invocation command line was
16047
16048 CONFIG_FILES = $CONFIG_FILES
16049 CONFIG_HEADERS = $CONFIG_HEADERS
16050 CONFIG_LINKS = $CONFIG_LINKS
16051 CONFIG_COMMANDS = $CONFIG_COMMANDS
16052 $ $0 $@
16053
16054 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16055 "
16056
16057 _ACEOF
16058
16059 case $ac_config_files in *"
16060 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16061 esac
16062
16063
16064
16065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16066 # Files that config.status was made for.
16067 config_files="$ac_config_files"
16068 config_commands="$ac_config_commands"
16069
16070 _ACEOF
16071
16072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16073 ac_cs_usage="\
16074 \`$as_me' instantiates files and other configuration actions
16075 from templates according to the current configuration. Unless the files
16076 and actions are specified as TAGs, all are instantiated by default.
16077
16078 Usage: $0 [OPTION]... [TAG]...
16079
16080 -h, --help print this help, then exit
16081 -V, --version print version number and configuration settings, then exit
16082 -q, --quiet, --silent
16083 do not print progress messages
16084 -d, --debug don't remove temporary files
16085 --recheck update $as_me by reconfiguring in the same conditions
16086 --file=FILE[:TEMPLATE]
16087 instantiate the configuration file FILE
16088
16089 Configuration files:
16090 $config_files
16091
16092 Configuration commands:
16093 $config_commands
16094
16095 Report bugs to the package provider.
16096 GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
16097 General help using GNU software: <http://www.gnu.org/gethelp/>."
16098
16099 _ACEOF
16100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101 ac_cs_version="\\
16102 GNU Vtable Verification Runtime Library config.status 1.0
16103 configured by $0, generated by GNU Autoconf 2.64,
16104 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16105
16106 Copyright (C) 2009 Free Software Foundation, Inc.
16107 This config.status script is free software; the Free Software Foundation
16108 gives unlimited permission to copy, distribute and modify it."
16109
16110 ac_pwd='$ac_pwd'
16111 srcdir='$srcdir'
16112 INSTALL='$INSTALL'
16113 MKDIR_P='$MKDIR_P'
16114 AWK='$AWK'
16115 test -n "\$AWK" || AWK=awk
16116 _ACEOF
16117
16118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16119 # The default lists apply if the user does not specify any file.
16120 ac_need_defaults=:
16121 while test $# != 0
16122 do
16123 case $1 in
16124 --*=*)
16125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16126 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16127 ac_shift=:
16128 ;;
16129 *)
16130 ac_option=$1
16131 ac_optarg=$2
16132 ac_shift=shift
16133 ;;
16134 esac
16135
16136 case $ac_option in
16137 # Handling of the options.
16138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16139 ac_cs_recheck=: ;;
16140 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16141 $as_echo "$ac_cs_version"; exit ;;
16142 --debug | --debu | --deb | --de | --d | -d )
16143 debug=: ;;
16144 --file | --fil | --fi | --f )
16145 $ac_shift
16146 case $ac_optarg in
16147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16148 esac
16149 as_fn_append CONFIG_FILES " '$ac_optarg'"
16150 ac_need_defaults=false;;
16151 --he | --h | --help | --hel | -h )
16152 $as_echo "$ac_cs_usage"; exit ;;
16153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16155 ac_cs_silent=: ;;
16156
16157 # This is an error.
16158 -*) as_fn_error "unrecognized option: \`$1'
16159 Try \`$0 --help' for more information." ;;
16160
16161 *) as_fn_append ac_config_targets " $1"
16162 ac_need_defaults=false ;;
16163
16164 esac
16165 shift
16166 done
16167
16168 ac_configure_extra_args=
16169
16170 if $ac_cs_silent; then
16171 exec 6>/dev/null
16172 ac_configure_extra_args="$ac_configure_extra_args --silent"
16173 fi
16174
16175 _ACEOF
16176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16177 if \$ac_cs_recheck; then
16178 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16179 shift
16180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16181 CONFIG_SHELL='$SHELL'
16182 export CONFIG_SHELL
16183 exec "\$@"
16184 fi
16185
16186 _ACEOF
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 exec 5>>config.log
16189 {
16190 echo
16191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16192 ## Running $as_me. ##
16193 _ASBOX
16194 $as_echo "$ac_log"
16195 } >&5
16196
16197 _ACEOF
16198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16199 #
16200 # INIT-COMMANDS
16201 #
16202
16203 srcdir="$srcdir"
16204 host="$host"
16205 target="$target"
16206 with_multisubdir="$with_multisubdir"
16207 with_multisrctop="$with_multisrctop"
16208 with_target_subdir="$with_target_subdir"
16209 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16210 multi_basedir="$multi_basedir"
16211 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16212 CC="$CC"
16213 CXX="$CXX"
16214 GFORTRAN="$GFORTRAN"
16215 GCJ="$GCJ"
16216 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16217
16218
16219 # The HP-UX ksh and POSIX shell print the target directory to stdout
16220 # if CDPATH is set.
16221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16222
16223 sed_quote_subst='$sed_quote_subst'
16224 double_quote_subst='$double_quote_subst'
16225 delay_variable_subst='$delay_variable_subst'
16226 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16227 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16228 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16229 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16230 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16231 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16232 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16233 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16234 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16235 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16236 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16237 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16238 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16239 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16240 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16241 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16242 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16243 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16244 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16245 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16246 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16247 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16248 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16249 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16250 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16251 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16252 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16253 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16254 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16255 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16256 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16257 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16258 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16259 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16260 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16261 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16262 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16263 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16264 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16265 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16266 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16267 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16268 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16269 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16270 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16271 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16272 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16273 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16274 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"`'
16275 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16276 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16277 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16278 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16279 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16280 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16281 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16282 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16283 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16284 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16285 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16286 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16287 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16288 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16289 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16290 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16291 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16292 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16293 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16294 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16295 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16296 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16297 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16298 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16299 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16300 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16301 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16302 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16303 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16304 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16305 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16306 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16307 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16308 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16309 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16310 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16311 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16312 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16313 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16314 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16315 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16316 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16317 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16318 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16319 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16320 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16321 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16322 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16323 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16324 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16325 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16326 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16327 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16328 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16329 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16330 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16331 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16332 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16333 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16334 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16335 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16336 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16337 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16338 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16339 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16340 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16341 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16342 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16343 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16344 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16345 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16346 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16347 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16348 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16349 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16350 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16351 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16352 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16353 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16354 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16355 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16356 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16357 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16358 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16359 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16360 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16361 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16362 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16363 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16364 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16365 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16366 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16367 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16368 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16369 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16370 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16371 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16372 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16373 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16374 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16375 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16376 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16377 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16378 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16379 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16380 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16381 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16382 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16383 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16384 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16385 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16386 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16387 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16388 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16389 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16390 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16391 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16392 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16393 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16394 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16395 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16396 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16397 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16398 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16399 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16400 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16401
16402 LTCC='$LTCC'
16403 LTCFLAGS='$LTCFLAGS'
16404 compiler='$compiler_DEFAULT'
16405
16406 # A function that is used when there is no print builtin or printf.
16407 func_fallback_echo ()
16408 {
16409 eval 'cat <<_LTECHO_EOF
16410 \$1
16411 _LTECHO_EOF'
16412 }
16413
16414 # Quote evaled strings.
16415 for var in SHELL \
16416 ECHO \
16417 SED \
16418 GREP \
16419 EGREP \
16420 FGREP \
16421 LD \
16422 NM \
16423 LN_S \
16424 lt_SP2NL \
16425 lt_NL2SP \
16426 reload_flag \
16427 OBJDUMP \
16428 deplibs_check_method \
16429 file_magic_cmd \
16430 AR \
16431 AR_FLAGS \
16432 STRIP \
16433 RANLIB \
16434 CC \
16435 CFLAGS \
16436 compiler \
16437 lt_cv_sys_global_symbol_pipe \
16438 lt_cv_sys_global_symbol_to_cdecl \
16439 lt_cv_sys_global_symbol_to_c_name_address \
16440 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16441 lt_prog_compiler_no_builtin_flag \
16442 lt_prog_compiler_wl \
16443 lt_prog_compiler_pic \
16444 lt_prog_compiler_static \
16445 lt_cv_prog_compiler_c_o \
16446 need_locks \
16447 DSYMUTIL \
16448 NMEDIT \
16449 LIPO \
16450 OTOOL \
16451 OTOOL64 \
16452 shrext_cmds \
16453 export_dynamic_flag_spec \
16454 whole_archive_flag_spec \
16455 compiler_needs_object \
16456 with_gnu_ld \
16457 allow_undefined_flag \
16458 no_undefined_flag \
16459 hardcode_libdir_flag_spec \
16460 hardcode_libdir_flag_spec_ld \
16461 hardcode_libdir_separator \
16462 fix_srcfile_path \
16463 exclude_expsyms \
16464 include_expsyms \
16465 file_list_spec \
16466 variables_saved_for_relink \
16467 libname_spec \
16468 library_names_spec \
16469 soname_spec \
16470 install_override_mode \
16471 finish_eval \
16472 old_striplib \
16473 striplib \
16474 compiler_lib_search_dirs \
16475 predep_objects \
16476 postdep_objects \
16477 predeps \
16478 postdeps \
16479 compiler_lib_search_path \
16480 LD_CXX \
16481 reload_flag_CXX \
16482 compiler_CXX \
16483 lt_prog_compiler_no_builtin_flag_CXX \
16484 lt_prog_compiler_wl_CXX \
16485 lt_prog_compiler_pic_CXX \
16486 lt_prog_compiler_static_CXX \
16487 lt_cv_prog_compiler_c_o_CXX \
16488 export_dynamic_flag_spec_CXX \
16489 whole_archive_flag_spec_CXX \
16490 compiler_needs_object_CXX \
16491 with_gnu_ld_CXX \
16492 allow_undefined_flag_CXX \
16493 no_undefined_flag_CXX \
16494 hardcode_libdir_flag_spec_CXX \
16495 hardcode_libdir_flag_spec_ld_CXX \
16496 hardcode_libdir_separator_CXX \
16497 fix_srcfile_path_CXX \
16498 exclude_expsyms_CXX \
16499 include_expsyms_CXX \
16500 file_list_spec_CXX \
16501 compiler_lib_search_dirs_CXX \
16502 predep_objects_CXX \
16503 postdep_objects_CXX \
16504 predeps_CXX \
16505 postdeps_CXX \
16506 compiler_lib_search_path_CXX; do
16507 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16508 *[\\\\\\\`\\"\\\$]*)
16509 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16510 ;;
16511 *)
16512 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16513 ;;
16514 esac
16515 done
16516
16517 # Double-quote double-evaled strings.
16518 for var in reload_cmds \
16519 old_postinstall_cmds \
16520 old_postuninstall_cmds \
16521 old_archive_cmds \
16522 extract_expsyms_cmds \
16523 old_archive_from_new_cmds \
16524 old_archive_from_expsyms_cmds \
16525 archive_cmds \
16526 archive_expsym_cmds \
16527 module_cmds \
16528 module_expsym_cmds \
16529 export_symbols_cmds \
16530 prelink_cmds \
16531 postinstall_cmds \
16532 postuninstall_cmds \
16533 finish_cmds \
16534 sys_lib_search_path_spec \
16535 sys_lib_dlsearch_path_spec \
16536 reload_cmds_CXX \
16537 old_archive_cmds_CXX \
16538 old_archive_from_new_cmds_CXX \
16539 old_archive_from_expsyms_cmds_CXX \
16540 archive_cmds_CXX \
16541 archive_expsym_cmds_CXX \
16542 module_cmds_CXX \
16543 module_expsym_cmds_CXX \
16544 export_symbols_cmds_CXX \
16545 prelink_cmds_CXX; do
16546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16547 *[\\\\\\\`\\"\\\$]*)
16548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16549 ;;
16550 *)
16551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16552 ;;
16553 esac
16554 done
16555
16556 ac_aux_dir='$ac_aux_dir'
16557 xsi_shell='$xsi_shell'
16558 lt_shell_append='$lt_shell_append'
16559
16560 # See if we are running on zsh, and set the options which allow our
16561 # commands through without removal of \ escapes INIT.
16562 if test -n "\${ZSH_VERSION+set}" ; then
16563 setopt NO_GLOB_SUBST
16564 fi
16565
16566
16567 PACKAGE='$PACKAGE'
16568 VERSION='$VERSION'
16569 TIMESTAMP='$TIMESTAMP'
16570 RM='$RM'
16571 ofile='$ofile'
16572
16573
16574
16575
16576
16577
16578 _ACEOF
16579
16580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16581
16582 # Handling of arguments.
16583 for ac_config_target in $ac_config_targets
16584 do
16585 case $ac_config_target in
16586 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16587 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16588 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16589 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16590 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
16591 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16592
16593 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16594 esac
16595 done
16596
16597
16598 # If the user did not use the arguments to specify the items to instantiate,
16599 # then the envvar interface is used. Set only those that are not.
16600 # We use the long form for the default assignment because of an extremely
16601 # bizarre bug on SunOS 4.1.3.
16602 if $ac_need_defaults; then
16603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16604 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16605 fi
16606
16607 # Have a temporary directory for convenience. Make it in the build tree
16608 # simply because there is no reason against having it here, and in addition,
16609 # creating and moving files from /tmp can sometimes cause problems.
16610 # Hook for its removal unless debugging.
16611 # Note that there is a small window in which the directory will not be cleaned:
16612 # after its creation but before its name has been assigned to `$tmp'.
16613 $debug ||
16614 {
16615 tmp=
16616 trap 'exit_status=$?
16617 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16618 ' 0
16619 trap 'as_fn_exit 1' 1 2 13 15
16620 }
16621 # Create a (secure) tmp directory for tmp files.
16622
16623 {
16624 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16625 test -n "$tmp" && test -d "$tmp"
16626 } ||
16627 {
16628 tmp=./conf$$-$RANDOM
16629 (umask 077 && mkdir "$tmp")
16630 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16631
16632 # Set up the scripts for CONFIG_FILES section.
16633 # No need to generate them if there are no CONFIG_FILES.
16634 # This happens for instance with `./config.status config.h'.
16635 if test -n "$CONFIG_FILES"; then
16636
16637
16638 ac_cr=`echo X | tr X '\015'`
16639 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16640 # But we know of no other shell where ac_cr would be empty at this
16641 # point, so we can use a bashism as a fallback.
16642 if test "x$ac_cr" = x; then
16643 eval ac_cr=\$\'\\r\'
16644 fi
16645 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16646 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16647 ac_cs_awk_cr='\r'
16648 else
16649 ac_cs_awk_cr=$ac_cr
16650 fi
16651
16652 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16653 _ACEOF
16654
16655
16656 {
16657 echo "cat >conf$$subs.awk <<_ACEOF" &&
16658 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16659 echo "_ACEOF"
16660 } >conf$$subs.sh ||
16661 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16662 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16663 ac_delim='%!_!# '
16664 for ac_last_try in false false false false false :; do
16665 . ./conf$$subs.sh ||
16666 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16667
16668 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16669 if test $ac_delim_n = $ac_delim_num; then
16670 break
16671 elif $ac_last_try; then
16672 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16673 else
16674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16675 fi
16676 done
16677 rm -f conf$$subs.sh
16678
16679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16680 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16681 _ACEOF
16682 sed -n '
16683 h
16684 s/^/S["/; s/!.*/"]=/
16685 p
16686 g
16687 s/^[^!]*!//
16688 :repl
16689 t repl
16690 s/'"$ac_delim"'$//
16691 t delim
16692 :nl
16693 h
16694 s/\(.\{148\}\).*/\1/
16695 t more1
16696 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16697 p
16698 n
16699 b repl
16700 :more1
16701 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16702 p
16703 g
16704 s/.\{148\}//
16705 t nl
16706 :delim
16707 h
16708 s/\(.\{148\}\).*/\1/
16709 t more2
16710 s/["\\]/\\&/g; s/^/"/; s/$/"/
16711 p
16712 b
16713 :more2
16714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16715 p
16716 g
16717 s/.\{148\}//
16718 t delim
16719 ' <conf$$subs.awk | sed '
16720 /^[^""]/{
16721 N
16722 s/\n//
16723 }
16724 ' >>$CONFIG_STATUS || ac_write_fail=1
16725 rm -f conf$$subs.awk
16726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16727 _ACAWK
16728 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16729 for (key in S) S_is_set[key] = 1
16730 FS = "\a"
16731
16732 }
16733 {
16734 line = $ 0
16735 nfields = split(line, field, "@")
16736 substed = 0
16737 len = length(field[1])
16738 for (i = 2; i < nfields; i++) {
16739 key = field[i]
16740 keylen = length(key)
16741 if (S_is_set[key]) {
16742 value = S[key]
16743 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16744 len += length(value) + length(field[++i])
16745 substed = 1
16746 } else
16747 len += 1 + keylen
16748 }
16749
16750 print line
16751 }
16752
16753 _ACAWK
16754 _ACEOF
16755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16756 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16757 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16758 else
16759 cat
16760 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16761 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16762 _ACEOF
16763
16764 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16765 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16766 # trailing colons and then remove the whole line if VPATH becomes empty
16767 # (actually we leave an empty line to preserve line numbers).
16768 if test "x$srcdir" = x.; then
16769 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16770 s/:*\$(srcdir):*/:/
16771 s/:*\${srcdir}:*/:/
16772 s/:*@srcdir@:*/:/
16773 s/^\([^=]*=[ ]*\):*/\1/
16774 s/:*$//
16775 s/^[^=]*=[ ]*$//
16776 }'
16777 fi
16778
16779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16780 fi # test -n "$CONFIG_FILES"
16781
16782
16783 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16784 shift
16785 for ac_tag
16786 do
16787 case $ac_tag in
16788 :[FHLC]) ac_mode=$ac_tag; continue;;
16789 esac
16790 case $ac_mode$ac_tag in
16791 :[FHL]*:*);;
16792 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16793 :[FH]-) ac_tag=-:-;;
16794 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16795 esac
16796 ac_save_IFS=$IFS
16797 IFS=:
16798 set x $ac_tag
16799 IFS=$ac_save_IFS
16800 shift
16801 ac_file=$1
16802 shift
16803
16804 case $ac_mode in
16805 :L) ac_source=$1;;
16806 :[FH])
16807 ac_file_inputs=
16808 for ac_f
16809 do
16810 case $ac_f in
16811 -) ac_f="$tmp/stdin";;
16812 *) # Look for the file first in the build tree, then in the source tree
16813 # (if the path is not absolute). The absolute path cannot be DOS-style,
16814 # because $ac_f cannot contain `:'.
16815 test -f "$ac_f" ||
16816 case $ac_f in
16817 [\\/$]*) false;;
16818 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16819 esac ||
16820 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16821 esac
16822 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16823 as_fn_append ac_file_inputs " '$ac_f'"
16824 done
16825
16826 # Let's still pretend it is `configure' which instantiates (i.e., don't
16827 # use $as_me), people would be surprised to read:
16828 # /* config.h. Generated by config.status. */
16829 configure_input='Generated from '`
16830 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16831 `' by configure.'
16832 if test x"$ac_file" != x-; then
16833 configure_input="$ac_file. $configure_input"
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16835 $as_echo "$as_me: creating $ac_file" >&6;}
16836 fi
16837 # Neutralize special characters interpreted by sed in replacement strings.
16838 case $configure_input in #(
16839 *\&* | *\|* | *\\* )
16840 ac_sed_conf_input=`$as_echo "$configure_input" |
16841 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16842 *) ac_sed_conf_input=$configure_input;;
16843 esac
16844
16845 case $ac_tag in
16846 *:-:* | *:-) cat >"$tmp/stdin" \
16847 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16848 esac
16849 ;;
16850 esac
16851
16852 ac_dir=`$as_dirname -- "$ac_file" ||
16853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16854 X"$ac_file" : 'X\(//\)[^/]' \| \
16855 X"$ac_file" : 'X\(//\)$' \| \
16856 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16857 $as_echo X"$ac_file" |
16858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16859 s//\1/
16860 q
16861 }
16862 /^X\(\/\/\)[^/].*/{
16863 s//\1/
16864 q
16865 }
16866 /^X\(\/\/\)$/{
16867 s//\1/
16868 q
16869 }
16870 /^X\(\/\).*/{
16871 s//\1/
16872 q
16873 }
16874 s/.*/./; q'`
16875 as_dir="$ac_dir"; as_fn_mkdir_p
16876 ac_builddir=.
16877
16878 case "$ac_dir" in
16879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16880 *)
16881 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16882 # A ".." for each directory in $ac_dir_suffix.
16883 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16884 case $ac_top_builddir_sub in
16885 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16886 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16887 esac ;;
16888 esac
16889 ac_abs_top_builddir=$ac_pwd
16890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16891 # for backward compatibility:
16892 ac_top_builddir=$ac_top_build_prefix
16893
16894 case $srcdir in
16895 .) # We are building in place.
16896 ac_srcdir=.
16897 ac_top_srcdir=$ac_top_builddir_sub
16898 ac_abs_top_srcdir=$ac_pwd ;;
16899 [\\/]* | ?:[\\/]* ) # Absolute name.
16900 ac_srcdir=$srcdir$ac_dir_suffix;
16901 ac_top_srcdir=$srcdir
16902 ac_abs_top_srcdir=$srcdir ;;
16903 *) # Relative name.
16904 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16905 ac_top_srcdir=$ac_top_build_prefix$srcdir
16906 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16907 esac
16908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16909
16910
16911 case $ac_mode in
16912 :F)
16913 #
16914 # CONFIG_FILE
16915 #
16916
16917 case $INSTALL in
16918 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16919 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16920 esac
16921 ac_MKDIR_P=$MKDIR_P
16922 case $MKDIR_P in
16923 [\\/$]* | ?:[\\/]* ) ;;
16924 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16925 esac
16926 _ACEOF
16927
16928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16929 # If the template does not know about datarootdir, expand it.
16930 # FIXME: This hack should be removed a few years after 2.60.
16931 ac_datarootdir_hack=; ac_datarootdir_seen=
16932 ac_sed_dataroot='
16933 /datarootdir/ {
16934 p
16935 q
16936 }
16937 /@datadir@/p
16938 /@docdir@/p
16939 /@infodir@/p
16940 /@localedir@/p
16941 /@mandir@/p'
16942 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16943 *datarootdir*) ac_datarootdir_seen=yes;;
16944 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16946 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16947 _ACEOF
16948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16949 ac_datarootdir_hack='
16950 s&@datadir@&$datadir&g
16951 s&@docdir@&$docdir&g
16952 s&@infodir@&$infodir&g
16953 s&@localedir@&$localedir&g
16954 s&@mandir@&$mandir&g
16955 s&\\\${datarootdir}&$datarootdir&g' ;;
16956 esac
16957 _ACEOF
16958
16959 # Neutralize VPATH when `$srcdir' = `.'.
16960 # Shell code in configure.ac might set extrasub.
16961 # FIXME: do we really want to maintain this feature?
16962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16963 ac_sed_extra="$ac_vpsub
16964 $extrasub
16965 _ACEOF
16966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16967 :t
16968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16969 s|@configure_input@|$ac_sed_conf_input|;t t
16970 s&@top_builddir@&$ac_top_builddir_sub&;t t
16971 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16972 s&@srcdir@&$ac_srcdir&;t t
16973 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16974 s&@top_srcdir@&$ac_top_srcdir&;t t
16975 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16976 s&@builddir@&$ac_builddir&;t t
16977 s&@abs_builddir@&$ac_abs_builddir&;t t
16978 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16979 s&@INSTALL@&$ac_INSTALL&;t t
16980 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16981 $ac_datarootdir_hack
16982 "
16983 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16984 || as_fn_error "could not create $ac_file" "$LINENO" 5
16985
16986 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16987 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16988 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16990 which seems to be undefined. Please make sure it is defined." >&5
16991 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16992 which seems to be undefined. Please make sure it is defined." >&2;}
16993
16994 rm -f "$tmp/stdin"
16995 case $ac_file in
16996 -) cat "$tmp/out" && rm -f "$tmp/out";;
16997 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16998 esac \
16999 || as_fn_error "could not create $ac_file" "$LINENO" 5
17000 ;;
17001
17002
17003 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17004 $as_echo "$as_me: executing $ac_file commands" >&6;}
17005 ;;
17006 esac
17007
17008
17009 case $ac_file$ac_mode in
17010 "default-1":C)
17011 # Only add multilib support code if we just rebuilt the top-level
17012 # Makefile.
17013 case " $CONFIG_FILES " in
17014 *" Makefile "*)
17015 ac_file=Makefile . ${multi_basedir}/config-ml.in
17016 ;;
17017 esac ;;
17018 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17019 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17020 # are listed without --file. Let's play safe and only enable the eval
17021 # if we detect the quoting.
17022 case $CONFIG_FILES in
17023 *\'*) eval set x "$CONFIG_FILES" ;;
17024 *) set x $CONFIG_FILES ;;
17025 esac
17026 shift
17027 for mf
17028 do
17029 # Strip MF so we end up with the name of the file.
17030 mf=`echo "$mf" | sed -e 's/:.*$//'`
17031 # Check whether this is an Automake generated Makefile or not.
17032 # We used to match only the files named `Makefile.in', but
17033 # some people rename them; so instead we look at the file content.
17034 # Grep'ing the first line is not enough: some people post-process
17035 # each Makefile.in and add a new line on top of each file to say so.
17036 # Grep'ing the whole file is not good either: AIX grep has a line
17037 # limit of 2048, but all sed's we know have understand at least 4000.
17038 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17039 dirpart=`$as_dirname -- "$mf" ||
17040 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17041 X"$mf" : 'X\(//\)[^/]' \| \
17042 X"$mf" : 'X\(//\)$' \| \
17043 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17044 $as_echo X"$mf" |
17045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17046 s//\1/
17047 q
17048 }
17049 /^X\(\/\/\)[^/].*/{
17050 s//\1/
17051 q
17052 }
17053 /^X\(\/\/\)$/{
17054 s//\1/
17055 q
17056 }
17057 /^X\(\/\).*/{
17058 s//\1/
17059 q
17060 }
17061 s/.*/./; q'`
17062 else
17063 continue
17064 fi
17065 # Extract the definition of DEPDIR, am__include, and am__quote
17066 # from the Makefile without running `make'.
17067 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17068 test -z "$DEPDIR" && continue
17069 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17070 test -z "am__include" && continue
17071 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17072 # When using ansi2knr, U may be empty or an underscore; expand it
17073 U=`sed -n 's/^U = //p' < "$mf"`
17074 # Find all dependency output files, they are included files with
17075 # $(DEPDIR) in their names. We invoke sed twice because it is the
17076 # simplest approach to changing $(DEPDIR) to its actual value in the
17077 # expansion.
17078 for file in `sed -n "
17079 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17080 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17081 # Make sure the directory exists.
17082 test -f "$dirpart/$file" && continue
17083 fdir=`$as_dirname -- "$file" ||
17084 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17085 X"$file" : 'X\(//\)[^/]' \| \
17086 X"$file" : 'X\(//\)$' \| \
17087 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17088 $as_echo X"$file" |
17089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17090 s//\1/
17091 q
17092 }
17093 /^X\(\/\/\)[^/].*/{
17094 s//\1/
17095 q
17096 }
17097 /^X\(\/\/\)$/{
17098 s//\1/
17099 q
17100 }
17101 /^X\(\/\).*/{
17102 s//\1/
17103 q
17104 }
17105 s/.*/./; q'`
17106 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17107 # echo "creating $dirpart/$file"
17108 echo '# dummy' > "$dirpart/$file"
17109 done
17110 done
17111 }
17112 ;;
17113 "libtool":C)
17114
17115 # See if we are running on zsh, and set the options which allow our
17116 # commands through without removal of \ escapes.
17117 if test -n "${ZSH_VERSION+set}" ; then
17118 setopt NO_GLOB_SUBST
17119 fi
17120
17121 cfgfile="${ofile}T"
17122 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17123 $RM "$cfgfile"
17124
17125 cat <<_LT_EOF >> "$cfgfile"
17126 #! $SHELL
17127
17128 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17129 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17131 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17132 #
17133 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17134 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17135 # Written by Gordon Matzigkeit, 1996
17136 #
17137 # This file is part of GNU Libtool.
17138 #
17139 # GNU Libtool is free software; you can redistribute it and/or
17140 # modify it under the terms of the GNU General Public License as
17141 # published by the Free Software Foundation; either version 2 of
17142 # the License, or (at your option) any later version.
17143 #
17144 # As a special exception to the GNU General Public License,
17145 # if you distribute this file as part of a program or library that
17146 # is built using GNU Libtool, you may include this file under the
17147 # same distribution terms that you use for the rest of that program.
17148 #
17149 # GNU Libtool is distributed in the hope that it will be useful,
17150 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17151 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17152 # GNU General Public License for more details.
17153 #
17154 # You should have received a copy of the GNU General Public License
17155 # along with GNU Libtool; see the file COPYING. If not, a copy
17156 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17157 # obtained by writing to the Free Software Foundation, Inc.,
17158 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17159
17160
17161 # The names of the tagged configurations supported by this script.
17162 available_tags="CXX "
17163
17164 # ### BEGIN LIBTOOL CONFIG
17165
17166 # Which release of libtool.m4 was used?
17167 macro_version=$macro_version
17168 macro_revision=$macro_revision
17169
17170 # Whether or not to build shared libraries.
17171 build_libtool_libs=$enable_shared
17172
17173 # Whether or not to build static libraries.
17174 build_old_libs=$enable_static
17175
17176 # What type of objects to build.
17177 pic_mode=$pic_mode
17178
17179 # Whether or not to optimize for fast installation.
17180 fast_install=$enable_fast_install
17181
17182 # Shell to use when invoking shell scripts.
17183 SHELL=$lt_SHELL
17184
17185 # An echo program that protects backslashes.
17186 ECHO=$lt_ECHO
17187
17188 # The host system.
17189 host_alias=$host_alias
17190 host=$host
17191 host_os=$host_os
17192
17193 # The build system.
17194 build_alias=$build_alias
17195 build=$build
17196 build_os=$build_os
17197
17198 # A sed program that does not truncate output.
17199 SED=$lt_SED
17200
17201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17202 Xsed="\$SED -e 1s/^X//"
17203
17204 # A grep program that handles long lines.
17205 GREP=$lt_GREP
17206
17207 # An ERE matcher.
17208 EGREP=$lt_EGREP
17209
17210 # A literal string matcher.
17211 FGREP=$lt_FGREP
17212
17213 # A BSD- or MS-compatible name lister.
17214 NM=$lt_NM
17215
17216 # Whether we need soft or hard links.
17217 LN_S=$lt_LN_S
17218
17219 # What is the maximum length of a command?
17220 max_cmd_len=$max_cmd_len
17221
17222 # Object file suffix (normally "o").
17223 objext=$ac_objext
17224
17225 # Executable file suffix (normally "").
17226 exeext=$exeext
17227
17228 # whether the shell understands "unset".
17229 lt_unset=$lt_unset
17230
17231 # turn spaces into newlines.
17232 SP2NL=$lt_lt_SP2NL
17233
17234 # turn newlines into spaces.
17235 NL2SP=$lt_lt_NL2SP
17236
17237 # An object symbol dumper.
17238 OBJDUMP=$lt_OBJDUMP
17239
17240 # Method to check whether dependent libraries are shared objects.
17241 deplibs_check_method=$lt_deplibs_check_method
17242
17243 # Command to use when deplibs_check_method == "file_magic".
17244 file_magic_cmd=$lt_file_magic_cmd
17245
17246 # The archiver.
17247 AR=$lt_AR
17248 AR_FLAGS=$lt_AR_FLAGS
17249
17250 # A symbol stripping program.
17251 STRIP=$lt_STRIP
17252
17253 # Commands used to install an old-style archive.
17254 RANLIB=$lt_RANLIB
17255 old_postinstall_cmds=$lt_old_postinstall_cmds
17256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17257
17258 # Whether to use a lock for old archive extraction.
17259 lock_old_archive_extraction=$lock_old_archive_extraction
17260
17261 # A C compiler.
17262 LTCC=$lt_CC
17263
17264 # LTCC compiler flags.
17265 LTCFLAGS=$lt_CFLAGS
17266
17267 # Take the output of nm and produce a listing of raw symbols and C names.
17268 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17269
17270 # Transform the output of nm in a proper C declaration.
17271 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17272
17273 # Transform the output of nm in a C name address pair.
17274 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17275
17276 # Transform the output of nm in a C name address pair when lib prefix is needed.
17277 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17278
17279 # The name of the directory that contains temporary libtool files.
17280 objdir=$objdir
17281
17282 # Used to examine libraries when file_magic_cmd begins with "file".
17283 MAGIC_CMD=$MAGIC_CMD
17284
17285 # Must we lock files when doing compilation?
17286 need_locks=$lt_need_locks
17287
17288 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17289 DSYMUTIL=$lt_DSYMUTIL
17290
17291 # Tool to change global to local symbols on Mac OS X.
17292 NMEDIT=$lt_NMEDIT
17293
17294 # Tool to manipulate fat objects and archives on Mac OS X.
17295 LIPO=$lt_LIPO
17296
17297 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17298 OTOOL=$lt_OTOOL
17299
17300 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17301 OTOOL64=$lt_OTOOL64
17302
17303 # Old archive suffix (normally "a").
17304 libext=$libext
17305
17306 # Shared library suffix (normally ".so").
17307 shrext_cmds=$lt_shrext_cmds
17308
17309 # The commands to extract the exported symbol list from a shared archive.
17310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17311
17312 # Variables whose values should be saved in libtool wrapper scripts and
17313 # restored at link time.
17314 variables_saved_for_relink=$lt_variables_saved_for_relink
17315
17316 # Do we need the "lib" prefix for modules?
17317 need_lib_prefix=$need_lib_prefix
17318
17319 # Do we need a version for libraries?
17320 need_version=$need_version
17321
17322 # Library versioning type.
17323 version_type=$version_type
17324
17325 # Shared library runtime path variable.
17326 runpath_var=$runpath_var
17327
17328 # Shared library path variable.
17329 shlibpath_var=$shlibpath_var
17330
17331 # Is shlibpath searched before the hard-coded library search path?
17332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17333
17334 # Format of library name prefix.
17335 libname_spec=$lt_libname_spec
17336
17337 # List of archive names. First name is the real one, the rest are links.
17338 # The last name is the one that the linker finds with -lNAME
17339 library_names_spec=$lt_library_names_spec
17340
17341 # The coded name of the library, if different from the real name.
17342 soname_spec=$lt_soname_spec
17343
17344 # Permission mode override for installation of shared libraries.
17345 install_override_mode=$lt_install_override_mode
17346
17347 # Command to use after installation of a shared archive.
17348 postinstall_cmds=$lt_postinstall_cmds
17349
17350 # Command to use after uninstallation of a shared archive.
17351 postuninstall_cmds=$lt_postuninstall_cmds
17352
17353 # Commands used to finish a libtool library installation in a directory.
17354 finish_cmds=$lt_finish_cmds
17355
17356 # As "finish_cmds", except a single script fragment to be evaled but
17357 # not shown.
17358 finish_eval=$lt_finish_eval
17359
17360 # Whether we should hardcode library paths into libraries.
17361 hardcode_into_libs=$hardcode_into_libs
17362
17363 # Compile-time system search path for libraries.
17364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17365
17366 # Run-time system search path for libraries.
17367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17368
17369 # Whether dlopen is supported.
17370 dlopen_support=$enable_dlopen
17371
17372 # Whether dlopen of programs is supported.
17373 dlopen_self=$enable_dlopen_self
17374
17375 # Whether dlopen of statically linked programs is supported.
17376 dlopen_self_static=$enable_dlopen_self_static
17377
17378 # Commands to strip libraries.
17379 old_striplib=$lt_old_striplib
17380 striplib=$lt_striplib
17381
17382
17383 # The linker used to build libraries.
17384 LD=$lt_LD
17385
17386 # How to create reloadable object files.
17387 reload_flag=$lt_reload_flag
17388 reload_cmds=$lt_reload_cmds
17389
17390 # Commands used to build an old-style archive.
17391 old_archive_cmds=$lt_old_archive_cmds
17392
17393 # A language specific compiler.
17394 CC=$lt_compiler
17395
17396 # Is the compiler the GNU compiler?
17397 with_gcc=$GCC
17398
17399 # Compiler flag to turn off builtin functions.
17400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17401
17402 # How to pass a linker flag through the compiler.
17403 wl=$lt_lt_prog_compiler_wl
17404
17405 # Additional compiler flags for building library objects.
17406 pic_flag=$lt_lt_prog_compiler_pic
17407
17408 # Compiler flag to prevent dynamic linking.
17409 link_static_flag=$lt_lt_prog_compiler_static
17410
17411 # Does compiler simultaneously support -c and -o options?
17412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17413
17414 # Whether or not to add -lc for building shared libraries.
17415 build_libtool_need_lc=$archive_cmds_need_lc
17416
17417 # Whether or not to disallow shared libs when runtime libs are static.
17418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17419
17420 # Compiler flag to allow reflexive dlopens.
17421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17422
17423 # Compiler flag to generate shared objects directly from archives.
17424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17425
17426 # Whether the compiler copes with passing no objects directly.
17427 compiler_needs_object=$lt_compiler_needs_object
17428
17429 # Create an old-style archive from a shared archive.
17430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17431
17432 # Create a temporary old-style archive to link instead of a shared archive.
17433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17434
17435 # Commands used to build a shared archive.
17436 archive_cmds=$lt_archive_cmds
17437 archive_expsym_cmds=$lt_archive_expsym_cmds
17438
17439 # Commands used to build a loadable module if different from building
17440 # a shared archive.
17441 module_cmds=$lt_module_cmds
17442 module_expsym_cmds=$lt_module_expsym_cmds
17443
17444 # Whether we are building with GNU ld or not.
17445 with_gnu_ld=$lt_with_gnu_ld
17446
17447 # Flag that allows shared libraries with undefined symbols to be built.
17448 allow_undefined_flag=$lt_allow_undefined_flag
17449
17450 # Flag that enforces no undefined symbols.
17451 no_undefined_flag=$lt_no_undefined_flag
17452
17453 # Flag to hardcode \$libdir into a binary during linking.
17454 # This must work even if \$libdir does not exist
17455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17456
17457 # If ld is used when linking, flag to hardcode \$libdir into a binary
17458 # during linking. This must work even if \$libdir does not exist.
17459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17460
17461 # Whether we need a single "-rpath" flag with a separated argument.
17462 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17463
17464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17465 # DIR into the resulting binary.
17466 hardcode_direct=$hardcode_direct
17467
17468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17469 # DIR into the resulting binary and the resulting library dependency is
17470 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17471 # library is relocated.
17472 hardcode_direct_absolute=$hardcode_direct_absolute
17473
17474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17475 # into the resulting binary.
17476 hardcode_minus_L=$hardcode_minus_L
17477
17478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17479 # into the resulting binary.
17480 hardcode_shlibpath_var=$hardcode_shlibpath_var
17481
17482 # Set to "yes" if building a shared library automatically hardcodes DIR
17483 # into the library and all subsequent libraries and executables linked
17484 # against it.
17485 hardcode_automatic=$hardcode_automatic
17486
17487 # Set to yes if linker adds runtime paths of dependent libraries
17488 # to runtime path list.
17489 inherit_rpath=$inherit_rpath
17490
17491 # Whether libtool must link a program against all its dependency libraries.
17492 link_all_deplibs=$link_all_deplibs
17493
17494 # Fix the shell variable \$srcfile for the compiler.
17495 fix_srcfile_path=$lt_fix_srcfile_path
17496
17497 # Set to "yes" if exported symbols are required.
17498 always_export_symbols=$always_export_symbols
17499
17500 # The commands to list exported symbols.
17501 export_symbols_cmds=$lt_export_symbols_cmds
17502
17503 # Symbols that should not be listed in the preloaded symbols.
17504 exclude_expsyms=$lt_exclude_expsyms
17505
17506 # Symbols that must always be exported.
17507 include_expsyms=$lt_include_expsyms
17508
17509 # Commands necessary for linking programs (against libraries) with templates.
17510 prelink_cmds=$lt_prelink_cmds
17511
17512 # Specify filename containing input files.
17513 file_list_spec=$lt_file_list_spec
17514
17515 # How to hardcode a shared library path into an executable.
17516 hardcode_action=$hardcode_action
17517
17518 # The directories searched by this compiler when creating a shared library.
17519 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17520
17521 # Dependencies to place before and after the objects being linked to
17522 # create a shared library.
17523 predep_objects=$lt_predep_objects
17524 postdep_objects=$lt_postdep_objects
17525 predeps=$lt_predeps
17526 postdeps=$lt_postdeps
17527
17528 # The library search path used internally by the compiler when linking
17529 # a shared library.
17530 compiler_lib_search_path=$lt_compiler_lib_search_path
17531
17532 # ### END LIBTOOL CONFIG
17533
17534 _LT_EOF
17535
17536 case $host_os in
17537 aix3*)
17538 cat <<\_LT_EOF >> "$cfgfile"
17539 # AIX sometimes has problems with the GCC collect2 program. For some
17540 # reason, if we set the COLLECT_NAMES environment variable, the problems
17541 # vanish in a puff of smoke.
17542 if test "X${COLLECT_NAMES+set}" != Xset; then
17543 COLLECT_NAMES=
17544 export COLLECT_NAMES
17545 fi
17546 _LT_EOF
17547 ;;
17548 esac
17549
17550
17551 ltmain="$ac_aux_dir/ltmain.sh"
17552
17553
17554 # We use sed instead of cat because bash on DJGPP gets confused if
17555 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17556 # text mode, it properly converts lines to CR/LF. This bash problem
17557 # is reportedly fixed, but why not run on old versions too?
17558 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17559 || (rm -f "$cfgfile"; exit 1)
17560
17561 case $xsi_shell in
17562 yes)
17563 cat << \_LT_EOF >> "$cfgfile"
17564
17565 # func_dirname file append nondir_replacement
17566 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17567 # otherwise set result to NONDIR_REPLACEMENT.
17568 func_dirname ()
17569 {
17570 case ${1} in
17571 */*) func_dirname_result="${1%/*}${2}" ;;
17572 * ) func_dirname_result="${3}" ;;
17573 esac
17574 }
17575
17576 # func_basename file
17577 func_basename ()
17578 {
17579 func_basename_result="${1##*/}"
17580 }
17581
17582 # func_dirname_and_basename file append nondir_replacement
17583 # perform func_basename and func_dirname in a single function
17584 # call:
17585 # dirname: Compute the dirname of FILE. If nonempty,
17586 # add APPEND to the result, otherwise set result
17587 # to NONDIR_REPLACEMENT.
17588 # value returned in "$func_dirname_result"
17589 # basename: Compute filename of FILE.
17590 # value retuned in "$func_basename_result"
17591 # Implementation must be kept synchronized with func_dirname
17592 # and func_basename. For efficiency, we do not delegate to
17593 # those functions but instead duplicate the functionality here.
17594 func_dirname_and_basename ()
17595 {
17596 case ${1} in
17597 */*) func_dirname_result="${1%/*}${2}" ;;
17598 * ) func_dirname_result="${3}" ;;
17599 esac
17600 func_basename_result="${1##*/}"
17601 }
17602
17603 # func_stripname prefix suffix name
17604 # strip PREFIX and SUFFIX off of NAME.
17605 # PREFIX and SUFFIX must not contain globbing or regex special
17606 # characters, hashes, percent signs, but SUFFIX may contain a leading
17607 # dot (in which case that matches only a dot).
17608 func_stripname ()
17609 {
17610 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17611 # positional parameters, so assign one to ordinary parameter first.
17612 func_stripname_result=${3}
17613 func_stripname_result=${func_stripname_result#"${1}"}
17614 func_stripname_result=${func_stripname_result%"${2}"}
17615 }
17616
17617 # func_opt_split
17618 func_opt_split ()
17619 {
17620 func_opt_split_opt=${1%%=*}
17621 func_opt_split_arg=${1#*=}
17622 }
17623
17624 # func_lo2o object
17625 func_lo2o ()
17626 {
17627 case ${1} in
17628 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17629 *) func_lo2o_result=${1} ;;
17630 esac
17631 }
17632
17633 # func_xform libobj-or-source
17634 func_xform ()
17635 {
17636 func_xform_result=${1%.*}.lo
17637 }
17638
17639 # func_arith arithmetic-term...
17640 func_arith ()
17641 {
17642 func_arith_result=$(( $* ))
17643 }
17644
17645 # func_len string
17646 # STRING may not start with a hyphen.
17647 func_len ()
17648 {
17649 func_len_result=${#1}
17650 }
17651
17652 _LT_EOF
17653 ;;
17654 *) # Bourne compatible functions.
17655 cat << \_LT_EOF >> "$cfgfile"
17656
17657 # func_dirname file append nondir_replacement
17658 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17659 # otherwise set result to NONDIR_REPLACEMENT.
17660 func_dirname ()
17661 {
17662 # Extract subdirectory from the argument.
17663 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17664 if test "X$func_dirname_result" = "X${1}"; then
17665 func_dirname_result="${3}"
17666 else
17667 func_dirname_result="$func_dirname_result${2}"
17668 fi
17669 }
17670
17671 # func_basename file
17672 func_basename ()
17673 {
17674 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17675 }
17676
17677
17678 # func_stripname prefix suffix name
17679 # strip PREFIX and SUFFIX off of NAME.
17680 # PREFIX and SUFFIX must not contain globbing or regex special
17681 # characters, hashes, percent signs, but SUFFIX may contain a leading
17682 # dot (in which case that matches only a dot).
17683 # func_strip_suffix prefix name
17684 func_stripname ()
17685 {
17686 case ${2} in
17687 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17688 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17689 esac
17690 }
17691
17692 # sed scripts:
17693 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17694 my_sed_long_arg='1s/^-[^=]*=//'
17695
17696 # func_opt_split
17697 func_opt_split ()
17698 {
17699 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17700 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17701 }
17702
17703 # func_lo2o object
17704 func_lo2o ()
17705 {
17706 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17707 }
17708
17709 # func_xform libobj-or-source
17710 func_xform ()
17711 {
17712 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17713 }
17714
17715 # func_arith arithmetic-term...
17716 func_arith ()
17717 {
17718 func_arith_result=`expr "$@"`
17719 }
17720
17721 # func_len string
17722 # STRING may not start with a hyphen.
17723 func_len ()
17724 {
17725 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17726 }
17727
17728 _LT_EOF
17729 esac
17730
17731 case $lt_shell_append in
17732 yes)
17733 cat << \_LT_EOF >> "$cfgfile"
17734
17735 # func_append var value
17736 # Append VALUE to the end of shell variable VAR.
17737 func_append ()
17738 {
17739 eval "$1+=\$2"
17740 }
17741 _LT_EOF
17742 ;;
17743 *)
17744 cat << \_LT_EOF >> "$cfgfile"
17745
17746 # func_append var value
17747 # Append VALUE to the end of shell variable VAR.
17748 func_append ()
17749 {
17750 eval "$1=\$$1\$2"
17751 }
17752
17753 _LT_EOF
17754 ;;
17755 esac
17756
17757
17758 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17759 || (rm -f "$cfgfile"; exit 1)
17760
17761 mv -f "$cfgfile" "$ofile" ||
17762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17763 chmod +x "$ofile"
17764
17765
17766 cat <<_LT_EOF >> "$ofile"
17767
17768 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17769
17770 # The linker used to build libraries.
17771 LD=$lt_LD_CXX
17772
17773 # How to create reloadable object files.
17774 reload_flag=$lt_reload_flag_CXX
17775 reload_cmds=$lt_reload_cmds_CXX
17776
17777 # Commands used to build an old-style archive.
17778 old_archive_cmds=$lt_old_archive_cmds_CXX
17779
17780 # A language specific compiler.
17781 CC=$lt_compiler_CXX
17782
17783 # Is the compiler the GNU compiler?
17784 with_gcc=$GCC_CXX
17785
17786 # Compiler flag to turn off builtin functions.
17787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17788
17789 # How to pass a linker flag through the compiler.
17790 wl=$lt_lt_prog_compiler_wl_CXX
17791
17792 # Additional compiler flags for building library objects.
17793 pic_flag=$lt_lt_prog_compiler_pic_CXX
17794
17795 # Compiler flag to prevent dynamic linking.
17796 link_static_flag=$lt_lt_prog_compiler_static_CXX
17797
17798 # Does compiler simultaneously support -c and -o options?
17799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17800
17801 # Whether or not to add -lc for building shared libraries.
17802 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17803
17804 # Whether or not to disallow shared libs when runtime libs are static.
17805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17806
17807 # Compiler flag to allow reflexive dlopens.
17808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17809
17810 # Compiler flag to generate shared objects directly from archives.
17811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17812
17813 # Whether the compiler copes with passing no objects directly.
17814 compiler_needs_object=$lt_compiler_needs_object_CXX
17815
17816 # Create an old-style archive from a shared archive.
17817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17818
17819 # Create a temporary old-style archive to link instead of a shared archive.
17820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17821
17822 # Commands used to build a shared archive.
17823 archive_cmds=$lt_archive_cmds_CXX
17824 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17825
17826 # Commands used to build a loadable module if different from building
17827 # a shared archive.
17828 module_cmds=$lt_module_cmds_CXX
17829 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17830
17831 # Whether we are building with GNU ld or not.
17832 with_gnu_ld=$lt_with_gnu_ld_CXX
17833
17834 # Flag that allows shared libraries with undefined symbols to be built.
17835 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17836
17837 # Flag that enforces no undefined symbols.
17838 no_undefined_flag=$lt_no_undefined_flag_CXX
17839
17840 # Flag to hardcode \$libdir into a binary during linking.
17841 # This must work even if \$libdir does not exist
17842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17843
17844 # If ld is used when linking, flag to hardcode \$libdir into a binary
17845 # during linking. This must work even if \$libdir does not exist.
17846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17847
17848 # Whether we need a single "-rpath" flag with a separated argument.
17849 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17850
17851 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17852 # DIR into the resulting binary.
17853 hardcode_direct=$hardcode_direct_CXX
17854
17855 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17856 # DIR into the resulting binary and the resulting library dependency is
17857 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17858 # library is relocated.
17859 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17860
17861 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17862 # into the resulting binary.
17863 hardcode_minus_L=$hardcode_minus_L_CXX
17864
17865 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17866 # into the resulting binary.
17867 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17868
17869 # Set to "yes" if building a shared library automatically hardcodes DIR
17870 # into the library and all subsequent libraries and executables linked
17871 # against it.
17872 hardcode_automatic=$hardcode_automatic_CXX
17873
17874 # Set to yes if linker adds runtime paths of dependent libraries
17875 # to runtime path list.
17876 inherit_rpath=$inherit_rpath_CXX
17877
17878 # Whether libtool must link a program against all its dependency libraries.
17879 link_all_deplibs=$link_all_deplibs_CXX
17880
17881 # Fix the shell variable \$srcfile for the compiler.
17882 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17883
17884 # Set to "yes" if exported symbols are required.
17885 always_export_symbols=$always_export_symbols_CXX
17886
17887 # The commands to list exported symbols.
17888 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17889
17890 # Symbols that should not be listed in the preloaded symbols.
17891 exclude_expsyms=$lt_exclude_expsyms_CXX
17892
17893 # Symbols that must always be exported.
17894 include_expsyms=$lt_include_expsyms_CXX
17895
17896 # Commands necessary for linking programs (against libraries) with templates.
17897 prelink_cmds=$lt_prelink_cmds_CXX
17898
17899 # Specify filename containing input files.
17900 file_list_spec=$lt_file_list_spec_CXX
17901
17902 # How to hardcode a shared library path into an executable.
17903 hardcode_action=$hardcode_action_CXX
17904
17905 # The directories searched by this compiler when creating a shared library.
17906 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17907
17908 # Dependencies to place before and after the objects being linked to
17909 # create a shared library.
17910 predep_objects=$lt_predep_objects_CXX
17911 postdep_objects=$lt_postdep_objects_CXX
17912 predeps=$lt_predeps_CXX
17913 postdeps=$lt_postdeps_CXX
17914
17915 # The library search path used internally by the compiler when linking
17916 # a shared library.
17917 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17918
17919 # ### END LIBTOOL TAG CONFIG: CXX
17920 _LT_EOF
17921
17922 ;;
17923 "./Makefile":F) cat > vpsed$$ << \_EOF
17924 s!`test -f '$<' || echo '$(srcdir)/'`!!
17925 _EOF
17926 sed -f vpsed$$ $ac_file > tmp$$
17927 mv tmp$$ $ac_file
17928 rm vpsed$$
17929 echo 'MULTISUBDIR =' >> $ac_file
17930 ml_norecursion=yes
17931 . ${multi_basedir}/config-ml.in
17932 { ml_norecursion=; unset ml_norecursion;}
17933 ;;
17934 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17935 s!`test -f '$<' || echo '$(srcdir)/'`!!
17936 _EOF
17937 sed -f vpsed$$ $ac_file > tmp$$
17938 mv tmp$$ $ac_file
17939 rm vpsed$$
17940 echo 'MULTISUBDIR =' >> $ac_file
17941 ml_norecursion=yes
17942 . ${multi_basedir}/config-ml.in
17943 { ml_norecursion=; unset ml_norecursion;}
17944 ;;
17945
17946 esac
17947 done # for ac_tag
17948
17949
17950 as_fn_exit 0
17951 _ACEOF
17952 ac_clean_files=$ac_clean_files_save
17953
17954 test $ac_write_fail = 0 ||
17955 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17956
17957
17958 # configure is writing to config.log, and then calls config.status.
17959 # config.status does its own redirection, appending to config.log.
17960 # Unfortunately, on DOS this fails, as config.log is still kept open
17961 # by configure, so config.status won't be able to write to it; its
17962 # output is simply discarded. So we exec the FD to /dev/null,
17963 # effectively closing config.log, so it can be properly (re)opened and
17964 # appended to by config.status. When coming back to configure, we
17965 # need to make the FD available again.
17966 if test "$no_create" != yes; then
17967 ac_cs_success=:
17968 ac_config_status_args=
17969 test "$silent" = yes &&
17970 ac_config_status_args="$ac_config_status_args --quiet"
17971 exec 5>/dev/null
17972 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17973 exec 5>>config.log
17974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17975 # would make configure fail if this is the last instruction.
17976 $ac_cs_success || as_fn_exit $?
17977 fi
17978 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17980 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17981 fi
17982