blob: 876ba74ff01aef080a478a63d231f5283b23687f [file] [log] [blame]
Wink Savillefbaaef92010-05-27 16:25:37 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for Google C++ Testing Framework 1.3.0.
4#
5# Report bugs to <googletestframework@googlegroups.com>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$lt_ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565ECHO=${lt_ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $ECHO works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<_LT_EOF
584$*
585_LT_EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$lt_ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
605
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
616
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
619 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 ECHO="$dir/echo"
625 break
626 fi
627 done
628 IFS="$lt_save_ifs"
629
630 if test "X$ECHO" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 ECHO='print -r'
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 ECHO='printf %s\n'
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 ECHO="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
670
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673 then
674 break
675 fi
676 prev="$cmd"
677 done
678
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 ECHO=echo
686 fi
687 fi
688 fi
689 fi
690 fi
691fi
692
693# Copy echo and quote the copy suitably for passing to libtool from
694# the Makefile, instead of quoting the original, which is used later.
695lt_ECHO=$ECHO
696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698fi
699
700
701
702
703exec 7<&0 </dev/null 6>&1
704
705# Name of the host.
706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707# so uname gets run too.
708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710#
711# Initializations.
712#
713ac_default_prefix=/usr/local
714ac_clean_files=
715ac_config_libobj_dir=.
716LIBOBJS=
717cross_compiling=no
718subdirs=
719MFLAGS=
720MAKEFLAGS=
721SHELL=${CONFIG_SHELL-/bin/sh}
722
723# Identity of this package.
724PACKAGE_NAME='Google C++ Testing Framework'
725PACKAGE_TARNAME='gtest'
726PACKAGE_VERSION='1.3.0'
727PACKAGE_STRING='Google C++ Testing Framework 1.3.0'
728PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
729
730ac_unique_file="./COPYING"
731# Factoring default headers for most tests.
732ac_includes_default="\
733#include <stdio.h>
734#ifdef HAVE_SYS_TYPES_H
735# include <sys/types.h>
736#endif
737#ifdef HAVE_SYS_STAT_H
738# include <sys/stat.h>
739#endif
740#ifdef STDC_HEADERS
741# include <stdlib.h>
742# include <stddef.h>
743#else
744# ifdef HAVE_STDLIB_H
745# include <stdlib.h>
746# endif
747#endif
748#ifdef HAVE_STRING_H
749# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
750# include <memory.h>
751# endif
752# include <string.h>
753#endif
754#ifdef HAVE_STRINGS_H
755# include <strings.h>
756#endif
757#ifdef HAVE_INTTYPES_H
758# include <inttypes.h>
759#endif
760#ifdef HAVE_STDINT_H
761# include <stdint.h>
762#endif
763#ifdef HAVE_UNISTD_H
764# include <unistd.h>
765#endif"
766
767ac_subst_vars='SHELL
768PATH_SEPARATOR
769PACKAGE_NAME
770PACKAGE_TARNAME
771PACKAGE_VERSION
772PACKAGE_STRING
773PACKAGE_BUGREPORT
774exec_prefix
775prefix
776program_transform_name
777bindir
778sbindir
779libexecdir
780datarootdir
781datadir
782sysconfdir
783sharedstatedir
784localstatedir
785includedir
786oldincludedir
787docdir
788infodir
789htmldir
790dvidir
791pdfdir
792psdir
793libdir
794localedir
795mandir
796DEFS
797ECHO_C
798ECHO_N
799ECHO_T
800LIBS
801build_alias
802host_alias
803target_alias
804INSTALL_PROGRAM
805INSTALL_SCRIPT
806INSTALL_DATA
807am__isrc
808CYGPATH_W
809PACKAGE
810VERSION
811ACLOCAL
812AUTOCONF
813AUTOMAKE
814AUTOHEADER
815MAKEINFO
816install_sh
817STRIP
818INSTALL_STRIP_PROGRAM
819mkdir_p
820AWK
821SET_MAKE
822am__leading_dot
823AMTAR
824am__tar
825am__untar
826CC
827CFLAGS
828LDFLAGS
829CPPFLAGS
830ac_ct_CC
831EXEEXT
832OBJEXT
833DEPDIR
834am__include
835am__quote
836AMDEP_TRUE
837AMDEP_FALSE
838AMDEPBACKSLASH
839CCDEPMODE
840am__fastdepCC_TRUE
841am__fastdepCC_FALSE
842CXX
843CXXFLAGS
844ac_ct_CXX
845CXXDEPMODE
846am__fastdepCXX_TRUE
847am__fastdepCXX_FALSE
848LIBTOOL
849build
850build_cpu
851build_vendor
852build_os
853host
854host_cpu
855host_vendor
856host_os
857SED
858GREP
859EGREP
860FGREP
861LD
862DUMPBIN
863ac_ct_DUMPBIN
864NM
865LN_S
866AR
867RANLIB
868lt_ECHO
869DSYMUTIL
870NMEDIT
871LIPO
872OTOOL
873OTOOL64
874CPP
875CXXCPP
876PYTHON
877HAVE_PYTHON_TRUE
878HAVE_PYTHON_FALSE
879acx_pthread_config
880PTHREAD_CC
881PTHREAD_LIBS
882PTHREAD_CFLAGS
883LIBOBJS
884LTLIBOBJS'
885ac_subst_files=''
886 ac_precious_vars='build_alias
887host_alias
888target_alias
889CC
890CFLAGS
891LDFLAGS
892LIBS
893CPPFLAGS
894CXX
895CXXFLAGS
896CCC
897CPP
898CXXCPP'
899
900
901# Initialize some variables set by options.
902ac_init_help=
903ac_init_version=false
904# The variables have the same names as the options, with
905# dashes changed to underlines.
906cache_file=/dev/null
907exec_prefix=NONE
908no_create=
909no_recursion=
910prefix=NONE
911program_prefix=NONE
912program_suffix=NONE
913program_transform_name=s,x,x,
914silent=
915site=
916srcdir=
917verbose=
918x_includes=NONE
919x_libraries=NONE
920
921# Installation directory options.
922# These are left unexpanded so users can "make install exec_prefix=/foo"
923# and all the variables that are supposed to be based on exec_prefix
924# by default will actually change.
925# Use braces instead of parens because sh, perl, etc. also accept them.
926# (The list follows the same order as the GNU Coding Standards.)
927bindir='${exec_prefix}/bin'
928sbindir='${exec_prefix}/sbin'
929libexecdir='${exec_prefix}/libexec'
930datarootdir='${prefix}/share'
931datadir='${datarootdir}'
932sysconfdir='${prefix}/etc'
933sharedstatedir='${prefix}/com'
934localstatedir='${prefix}/var'
935includedir='${prefix}/include'
936oldincludedir='/usr/include'
937docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938infodir='${datarootdir}/info'
939htmldir='${docdir}'
940dvidir='${docdir}'
941pdfdir='${docdir}'
942psdir='${docdir}'
943libdir='${exec_prefix}/lib'
944localedir='${datarootdir}/locale'
945mandir='${datarootdir}/man'
946
947ac_prev=
948ac_dashdash=
949for ac_option
950do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
956 fi
957
958 case $ac_option in
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *) ac_optarg=yes ;;
961 esac
962
963 # Accept the important Cygnus configure options, so we can diagnose typos.
964
965 case $ac_dashdash$ac_option in
966 --)
967 ac_dashdash=yes ;;
968
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 ac_prev=bindir ;;
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 bindir=$ac_optarg ;;
973
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
978
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
985
986 --config-cache | -C)
987 cache_file=config.cache ;;
988
989 -datadir | --datadir | --datadi | --datad)
990 ac_prev=datadir ;;
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
993
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1000
1001 -disable-* | --disable-*)
1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1008 eval enable_$ac_feature=no ;;
1009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1019
1020 -enable-* | --enable-*)
1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027 eval enable_$ac_feature=\$ac_optarg ;;
1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1048
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1053
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1083
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1157
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1193
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1216
1217 -with-* | --with-*)
1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224 eval with_$ac_package=\$ac_optarg ;;
1225
1226 -without-* | --without-*)
1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=no ;;
1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1252
1253 -*) { echo "$as_me: error: unrecognized option: $ac_option
1254Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
1256 ;;
1257
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263 { (exit 1); exit 1; }; }
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1266
1267 *)
1268 # FIXME: should be removed in autoconf 3.0.
1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 { echo "$as_me: error: missing argument to $ac_option" >&2
1281 { (exit 1); exit 1; }; }
1282fi
1283
1284# Be sure to have absolute directory names.
1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1289do
1290 eval ac_val=\$$ac_var
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1296 { (exit 1); exit 1; }; }
1297done
1298
1299# There might be people who depend on the old broken behavior: `$host'
1300# used to hold the argument of --host etc.
1301# FIXME: To remove some day.
1302build=$build_alias
1303host=$host_alias
1304target=$target_alias
1305
1306# FIXME: To remove some day.
1307if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1311 If a cross compiler is detected then cross compile mode will be used." >&2
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 { echo "$as_me: error: Working directory cannot be determined" >&2
1327 { (exit 1); exit 1; }; }
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 { echo "$as_me: error: pwd does not report name of working directory" >&2
1330 { (exit 1); exit 1; }; }
1331
1332
1333# Find the source files, if location was not specified.
1334if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$0" ||
1338$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$0" : 'X\(//\)[^/]' \| \
1340 X"$0" : 'X\(//\)$' \| \
1341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1342echo X"$0" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364else
1365 ac_srcdir_defaulted=no
1366fi
1367if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1370 { (exit 1); exit 1; }; }
1371fi
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1375 { (exit 1); exit 1; }; }
1376 pwd)`
1377# When building in place, set srcdir=.
1378if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380fi
1381# Remove unnecessary trailing slashes from srcdir.
1382# Double slashes in file names in object file debugging info
1383# mess up M-x gdb in Emacs.
1384case $srcdir in
1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386esac
1387for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392done
1393
1394#
1395# Report the --help message.
1396#
1397if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401\`configure' configures Google C++ Testing Framework 1.3.0 to adapt to many kinds of systems.
1402
1403Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406VAR=VALUE. See below for descriptions of some of the useful variables.
1407
1408Defaults for the options are specified in brackets.
1409
1410Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
1421Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1426
1427By default, \`make install' will install all the files in
1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430for instance \`--prefix=\$HOME'.
1431
1432For better control, use the options below.
1433
1434Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/gtest]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454_ACEOF
1455
1456 cat <<\_ACEOF
1457
1458Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462
1463System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466_ACEOF
1467fi
1468
1469if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of Google C++ Testing Framework 1.3.0:";;
1472 esac
1473 cat <<\_ACEOF
1474
1475Optional Features:
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492
1493Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 CPP C preprocessor
1504 CXXCPP C++ preprocessor
1505
1506Use these variables to override the choices made by `configure' or to help
1507it to find libraries and programs with nonstandard names/locations.
1508
1509Report bugs to <googletestframework@googlegroups.com>.
1510_ACEOF
1511ac_status=$?
1512fi
1513
1514if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1518 ac_builddir=.
1519
1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
1535
1536case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549esac
1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565fi
1566
1567test -n "$ac_init_help" && exit $ac_status
1568if $ac_init_version; then
1569 cat <<\_ACEOF
1570Google C++ Testing Framework configure 1.3.0
1571generated by GNU Autoconf 2.61
1572
1573Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575This configure script is free software; the Free Software Foundation
1576gives unlimited permission to copy, distribute and modify it.
1577_ACEOF
1578 exit
1579fi
1580cat >config.log <<_ACEOF
1581This file contains any messages produced by compilers while
1582running configure, to aid debugging if configure makes a mistake.
1583
1584It was created by Google C++ Testing Framework $as_me 1.3.0, which was
1585generated by GNU Autoconf 2.61. Invocation command line was
1586
1587 $ $0 $@
1588
1589_ACEOF
1590exec 5>>config.log
1591{
1592cat <<_ASUNAME
1593## --------- ##
1594## Platform. ##
1595## --------- ##
1596
1597hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614_ASUNAME
1615
1616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622done
1623IFS=$as_save_IFS
1624
1625} >&5
1626
1627cat >&5 <<_ACEOF
1628
1629
1630## ----------- ##
1631## Core tests. ##
1632## ----------- ##
1633
1634_ACEOF
1635
1636
1637# Keep a trace of the command line.
1638# Strip out --no-create and --no-recursion so they do not pile up.
1639# Strip out --silent because we don't want to record it for future runs.
1640# Also quote any args containing shell meta-characters.
1641# Make two passes to allow for proper duplicate-argument suppression.
1642ac_configure_args=
1643ac_configure_args0=
1644ac_configure_args1=
1645ac_must_keep_next=false
1646for ac_pass in 1 2
1647do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
1655 *\'*)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 ;;
1679 esac
1680 done
1681done
1682$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685# When interrupted or exit'd, cleanup temporary files, and complete
1686# config.log. We remove comments because anyway the quotes in there
1687# would cause problems or look ugly.
1688# WARNING: Use '\'' to represent an apostrophe within the trap.
1689# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696## ---------------- ##
1697## Cache variables. ##
1698## ---------------- ##
1699_ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
1702(
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
1717 (set) 2>&1 |
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1720 sed -n \
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
1724 *)
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726 ;;
1727 esac |
1728 sort
1729)
1730 echo
1731
1732 cat <<\_ASBOX
1733## ----------------- ##
1734## Output variables. ##
1735## ----------------- ##
1736_ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
1745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
1750## ------------------- ##
1751## File substitutions. ##
1752## ------------------- ##
1753_ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
1762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768## ----------- ##
1769## confdefs.h. ##
1770## ----------- ##
1771_ASBOX
1772 echo
1773 cat confdefs.h
1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 exit $exit_status
1783' 0
1784for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786done
1787ac_signal=0
1788
1789# confdefs.h avoids OS command line length limits that DEFS can exceed.
1790rm -f -r conftest* confdefs.h
1791
1792# Predefined preprocessor variables.
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_NAME "$PACKAGE_NAME"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_VERSION "$PACKAGE_VERSION"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_STRING "$PACKAGE_STRING"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816_ACEOF
1817
1818
1819# Let the site file select an alternate cache file if it wants to.
1820# Prefer explicitly selected file to automatically selected ones.
1821if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1828fi
1829shift
1830for ac_site_file
1831do
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838done
1839
1840if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1849 esac
1850 fi
1851else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855fi
1856
1857# Check that the precious variables saved in the cache have kept the same
1858# value.
1859ac_cache_corrupted=false
1860for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897done
1898if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938# Provide various options to initialize the Autoconf and configure processes.
1939
1940
1941ac_aux_dir=
1942for ac_dir in build-aux "$srcdir"/build-aux; do
1943 if test -f "$ac_dir/install-sh"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
1947 elif test -f "$ac_dir/install.sh"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
1951 elif test -f "$ac_dir/shtool"; then
1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956done
1957if test -z "$ac_aux_dir"; then
1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1960 { (exit 1); exit 1; }; }
1961fi
1962
1963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
1971
1972ac_config_headers="$ac_config_headers build-aux/config.h"
1973
1974ac_config_files="$ac_config_files Makefile"
1975
1976ac_config_files="$ac_config_files scripts/gtest-config"
1977
1978
1979# Initialize Automake with various options. We require at least v1.9, prevent
1980# pedantic complaints about package files, and enable various distribution
1981# targets.
1982am__api_version='1.10'
1983
1984# Find a good install program. We prefer a C program (faster),
1985# so one script is as good as another. But avoid the broken or
1986# incompatible versions:
1987# SysV /etc/install, /usr/sbin/install
1988# SunOS /usr/etc/install
1989# IRIX /sbin/install
1990# AIX /bin/install
1991# AmigaOS /C/install, which installs bootblocks on floppy discs
1992# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1993# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1994# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1995# OS/2's system install, which has a completely different semantic
1996# ./install, which can be erroneously created by make from ./install.sh.
1997{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1998echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1999if test -z "$INSTALL"; then
2000if test "${ac_cv_path_install+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 # Account for people who put trailing slashes in PATH elements.
2009case $as_dir/ in
2010 ./ | .// | /cC/* | \
2011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2012 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2013 /usr/ucb/* ) ;;
2014 *)
2015 # OSF1 and SCO ODT 3.0 have their own names for install.
2016 # Don't use installbsd from OSF since it installs stuff as root
2017 # by default.
2018 for ac_prog in ginstall scoinst install; do
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2021 if test $ac_prog = install &&
2022 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # AIX install. It has an incompatible calling convention.
2024 :
2025 elif test $ac_prog = install &&
2026 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2027 # program-specific install script used by HP pwplus--don't use.
2028 :
2029 else
2030 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2031 break 3
2032 fi
2033 fi
2034 done
2035 done
2036 ;;
2037esac
2038done
2039IFS=$as_save_IFS
2040
2041
2042fi
2043 if test "${ac_cv_path_install+set}" = set; then
2044 INSTALL=$ac_cv_path_install
2045 else
2046 # As a last resort, use the slow shell script. Don't cache a
2047 # value for INSTALL within a source directory, because that will
2048 # break other packages using the cache if that directory is
2049 # removed, or if the value is a relative name.
2050 INSTALL=$ac_install_sh
2051 fi
2052fi
2053{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2054echo "${ECHO_T}$INSTALL" >&6; }
2055
2056# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2057# It thinks the first close brace ends the variable substitution.
2058test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2059
2060test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2061
2062test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2063
2064{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2065echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2066# Just in case
2067sleep 1
2068echo timestamp > conftest.file
2069# Do `set' in a subshell so we don't clobber the current shell's
2070# arguments. Must try -L first in case configure is actually a
2071# symlink; some systems play weird games with the mod time of symlinks
2072# (eg FreeBSD returns the mod time of the symlink's containing
2073# directory).
2074if (
2075 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2076 if test "$*" = "X"; then
2077 # -L didn't work.
2078 set X `ls -t $srcdir/configure conftest.file`
2079 fi
2080 rm -f conftest.file
2081 if test "$*" != "X $srcdir/configure conftest.file" \
2082 && test "$*" != "X conftest.file $srcdir/configure"; then
2083
2084 # If neither matched, then we have a broken ls. This can happen
2085 # if, for instance, CONFIG_SHELL is bash and it inherits a
2086 # broken ls alias from the environment. This has actually
2087 # happened. Such a system could not be considered "sane".
2088 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2089alias in your environment" >&5
2090echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2091alias in your environment" >&2;}
2092 { (exit 1); exit 1; }; }
2093 fi
2094
2095 test "$2" = conftest.file
2096 )
2097then
2098 # Ok.
2099 :
2100else
2101 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2102Check your system clock" >&5
2103echo "$as_me: error: newly created file is older than distributed files!
2104Check your system clock" >&2;}
2105 { (exit 1); exit 1; }; }
2106fi
2107{ echo "$as_me:$LINENO: result: yes" >&5
2108echo "${ECHO_T}yes" >&6; }
2109test "$program_prefix" != NONE &&
2110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111# Use a double $ so make ignores it.
2112test "$program_suffix" != NONE &&
2113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114# Double any \ or $. echo might interpret backslashes.
2115# By default was `s,x,x', remove it if useless.
2116cat <<\_ACEOF >conftest.sed
2117s/[\\$]/&&/g;s/;s,x,x,$//
2118_ACEOF
2119program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2120rm -f conftest.sed
2121
2122# expand $ac_aux_dir to an absolute path
2123am_aux_dir=`cd $ac_aux_dir && pwd`
2124
2125test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2126# Use eval to expand $SHELL
2127if eval "$MISSING --run true"; then
2128 am_missing_run="$MISSING --run "
2129else
2130 am_missing_run=
2131 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2132echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2133fi
2134
2135{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2136echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2137if test -z "$MKDIR_P"; then
2138 if test "${ac_cv_path_mkdir+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_prog in mkdir gmkdir; do
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2149 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2150 'mkdir (GNU coreutils) '* | \
2151 'mkdir (coreutils) '* | \
2152 'mkdir (fileutils) '4.1*)
2153 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2154 break 3;;
2155 esac
2156 done
2157 done
2158done
2159IFS=$as_save_IFS
2160
2161fi
2162
2163 if test "${ac_cv_path_mkdir+set}" = set; then
2164 MKDIR_P="$ac_cv_path_mkdir -p"
2165 else
2166 # As a last resort, use the slow shell script. Don't cache a
2167 # value for MKDIR_P within a source directory, because that will
2168 # break other packages using the cache if that directory is
2169 # removed, or if the value is a relative name.
2170 test -d ./--version && rmdir ./--version
2171 MKDIR_P="$ac_install_sh -d"
2172 fi
2173fi
2174{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2175echo "${ECHO_T}$MKDIR_P" >&6; }
2176
2177mkdir_p="$MKDIR_P"
2178case $mkdir_p in
2179 [\\/$]* | ?:[\\/]*) ;;
2180 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2181esac
2182
2183for ac_prog in gawk mawk nawk awk
2184do
2185 # Extract the first word of "$ac_prog", so it can be a program name with args.
2186set dummy $ac_prog; ac_word=$2
2187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2189if test "${ac_cv_prog_AWK+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
2192 if test -n "$AWK"; then
2193 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2194else
2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH
2197do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2202 ac_cv_prog_AWK="$ac_prog"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2205 fi
2206done
2207done
2208IFS=$as_save_IFS
2209
2210fi
2211fi
2212AWK=$ac_cv_prog_AWK
2213if test -n "$AWK"; then
2214 { echo "$as_me:$LINENO: result: $AWK" >&5
2215echo "${ECHO_T}$AWK" >&6; }
2216else
2217 { echo "$as_me:$LINENO: result: no" >&5
2218echo "${ECHO_T}no" >&6; }
2219fi
2220
2221
2222 test -n "$AWK" && break
2223done
2224
2225{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2226echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2227set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2228if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231 cat >conftest.make <<\_ACEOF
2232SHELL = /bin/sh
2233all:
2234 @echo '@@@%%%=$(MAKE)=@@@%%%'
2235_ACEOF
2236# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2237case `${MAKE-make} -f conftest.make 2>/dev/null` in
2238 *@@@%%%=?*=@@@%%%*)
2239 eval ac_cv_prog_make_${ac_make}_set=yes;;
2240 *)
2241 eval ac_cv_prog_make_${ac_make}_set=no;;
2242esac
2243rm -f conftest.make
2244fi
2245if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2246 { echo "$as_me:$LINENO: result: yes" >&5
2247echo "${ECHO_T}yes" >&6; }
2248 SET_MAKE=
2249else
2250 { echo "$as_me:$LINENO: result: no" >&5
2251echo "${ECHO_T}no" >&6; }
2252 SET_MAKE="MAKE=${MAKE-make}"
2253fi
2254
2255rm -rf .tst 2>/dev/null
2256mkdir .tst 2>/dev/null
2257if test -d .tst; then
2258 am__leading_dot=.
2259else
2260 am__leading_dot=_
2261fi
2262rmdir .tst 2>/dev/null
2263
2264if test "`cd $srcdir && pwd`" != "`pwd`"; then
2265 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2266 # is not polluted with repeated "-I."
2267 am__isrc=' -I$(srcdir)'
2268 # test to see if srcdir already configured
2269 if test -f $srcdir/config.status; then
2270 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2271echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2272 { (exit 1); exit 1; }; }
2273 fi
2274fi
2275
2276# test whether we have cygpath
2277if test -z "$CYGPATH_W"; then
2278 if (cygpath --version) >/dev/null 2>/dev/null; then
2279 CYGPATH_W='cygpath -w'
2280 else
2281 CYGPATH_W=echo
2282 fi
2283fi
2284
2285
2286# Define the identity of the package.
2287 PACKAGE='gtest'
2288 VERSION='1.3.0'
2289
2290
2291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE "$PACKAGE"
2293_ACEOF
2294
2295
2296cat >>confdefs.h <<_ACEOF
2297#define VERSION "$VERSION"
2298_ACEOF
2299
2300# Some tools Automake needs.
2301
2302ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2303
2304
2305AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2306
2307
2308AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2309
2310
2311AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2312
2313
2314MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2315
2316install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2317
2318# Installed binaries are usually stripped using `strip' when the user
2319# run `make install-strip'. However `strip' might not be the right
2320# tool to use in cross-compilation environments, therefore Automake
2321# will honor the `STRIP' environment variable to overrule this program.
2322if test "$cross_compiling" != no; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325set dummy ${ac_tool_prefix}strip; ac_word=$2
2326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328if test "${ac_cv_prog_STRIP+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333else
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345done
2346done
2347IFS=$as_save_IFS
2348
2349fi
2350fi
2351STRIP=$ac_cv_prog_STRIP
2352if test -n "$STRIP"; then
2353 { echo "$as_me:$LINENO: result: $STRIP" >&5
2354echo "${ECHO_T}$STRIP" >&6; }
2355else
2356 { echo "$as_me:$LINENO: result: no" >&5
2357echo "${ECHO_T}no" >&6; }
2358fi
2359
2360
2361fi
2362if test -z "$ac_cv_prog_STRIP"; then
2363 ac_ct_STRIP=$STRIP
2364 # Extract the first word of "strip", so it can be a program name with args.
2365set dummy strip; ac_word=$2
2366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371 if test -n "$ac_ct_STRIP"; then
2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373else
2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_ac_ct_STRIP="strip"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2384 fi
2385done
2386done
2387IFS=$as_save_IFS
2388
2389fi
2390fi
2391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2392if test -n "$ac_ct_STRIP"; then
2393 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2394echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2395else
2396 { echo "$as_me:$LINENO: result: no" >&5
2397echo "${ECHO_T}no" >&6; }
2398fi
2399
2400 if test "x$ac_ct_STRIP" = x; then
2401 STRIP=":"
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404yes:)
2405{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406whose name does not start with the host triplet. If you think this
2407configuration is useful to you, please write to autoconf@gnu.org." >&5
2408echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409whose name does not start with the host triplet. If you think this
2410configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411ac_tool_warned=yes ;;
2412esac
2413 STRIP=$ac_ct_STRIP
2414 fi
2415else
2416 STRIP="$ac_cv_prog_STRIP"
2417fi
2418
2419fi
2420INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2421
2422# We need awk for the "check" target. The system "awk" is bad on
2423# some platforms.
2424# Always define AMTAR for backward compatibility.
2425
2426AMTAR=${AMTAR-"${am_missing_run}tar"}
2427
2428am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2429
2430
2431
2432
2433
2434
2435# Check for programs used in building Google Test.
2436ac_ext=c
2437ac_cpp='$CPP $CPPFLAGS'
2438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443set dummy ${ac_tool_prefix}gcc; ac_word=$2
2444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463done
2464done
2465IFS=$as_save_IFS
2466
2467fi
2468fi
2469CC=$ac_cv_prog_CC
2470if test -n "$CC"; then
2471 { echo "$as_me:$LINENO: result: $CC" >&5
2472echo "${ECHO_T}$CC" >&6; }
2473else
2474 { echo "$as_me:$LINENO: result: no" >&5
2475echo "${ECHO_T}no" >&6; }
2476fi
2477
2478
2479fi
2480if test -z "$ac_cv_prog_CC"; then
2481 ac_ct_CC=$CC
2482 # Extract the first word of "gcc", so it can be a program name with args.
2483set dummy gcc; ac_word=$2
2484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_ac_ct_CC="gcc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503done
2504done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510if test -n "$ac_ct_CC"; then
2511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512echo "${ECHO_T}$ac_ct_CC" >&6; }
2513else
2514 { echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6; }
2516fi
2517
2518 if test "x$ac_ct_CC" = x; then
2519 CC=""
2520 else
2521 case $cross_compiling:$ac_tool_warned in
2522yes:)
2523{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2524whose name does not start with the host triplet. If you think this
2525configuration is useful to you, please write to autoconf@gnu.org." >&5
2526echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2527whose name does not start with the host triplet. If you think this
2528configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2529ac_tool_warned=yes ;;
2530esac
2531 CC=$ac_ct_CC
2532 fi
2533else
2534 CC="$ac_cv_prog_CC"
2535fi
2536
2537if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2540set dummy ${ac_tool_prefix}cc; ac_word=$2
2541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548else
2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_CC="${ac_tool_prefix}cc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560done
2561done
2562IFS=$as_save_IFS
2563
2564fi
2565fi
2566CC=$ac_cv_prog_CC
2567if test -n "$CC"; then
2568 { echo "$as_me:$LINENO: result: $CC" >&5
2569echo "${ECHO_T}$CC" >&6; }
2570else
2571 { echo "$as_me:$LINENO: result: no" >&5
2572echo "${ECHO_T}no" >&6; }
2573fi
2574
2575
2576 fi
2577fi
2578if test -z "$CC"; then
2579 # Extract the first word of "cc", so it can be a program name with args.
2580set dummy cc; ac_word=$2
2581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2588else
2589 ac_prog_rejected=no
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2598 ac_prog_rejected=yes
2599 continue
2600 fi
2601 ac_cv_prog_CC="cc"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605done
2606done
2607IFS=$as_save_IFS
2608
2609if test $ac_prog_rejected = yes; then
2610 # We found a bogon in the path, so make sure we never use it.
2611 set dummy $ac_cv_prog_CC
2612 shift
2613 if test $# != 0; then
2614 # We chose a different compiler from the bogus one.
2615 # However, it has the same basename, so the bogon will be chosen
2616 # first if we set CC to just the basename; use the full file name.
2617 shift
2618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2619 fi
2620fi
2621fi
2622fi
2623CC=$ac_cv_prog_CC
2624if test -n "$CC"; then
2625 { echo "$as_me:$LINENO: result: $CC" >&5
2626echo "${ECHO_T}$CC" >&6; }
2627else
2628 { echo "$as_me:$LINENO: result: no" >&5
2629echo "${ECHO_T}no" >&6; }
2630fi
2631
2632
2633fi
2634if test -z "$CC"; then
2635 if test -n "$ac_tool_prefix"; then
2636 for ac_prog in cl.exe
2637 do
2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659done
2660done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665CC=$ac_cv_prog_CC
2666if test -n "$CC"; then
2667 { echo "$as_me:$LINENO: result: $CC" >&5
2668echo "${ECHO_T}$CC" >&6; }
2669else
2670 { echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6; }
2672fi
2673
2674
2675 test -n "$CC" && break
2676 done
2677fi
2678if test -z "$CC"; then
2679 ac_ct_CC=$CC
2680 for ac_prog in cl.exe
2681do
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683set dummy $ac_prog; ac_word=$2
2684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688else
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC="$ac_prog"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703done
2704done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710if test -n "$ac_ct_CC"; then
2711 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712echo "${ECHO_T}$ac_ct_CC" >&6; }
2713else
2714 { echo "$as_me:$LINENO: result: no" >&5
2715echo "${ECHO_T}no" >&6; }
2716fi
2717
2718
2719 test -n "$ac_ct_CC" && break
2720done
2721
2722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726yes:)
2727{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2728whose name does not start with the host triplet. If you think this
2729configuration is useful to you, please write to autoconf@gnu.org." >&5
2730echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2731whose name does not start with the host triplet. If you think this
2732configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2733ac_tool_warned=yes ;;
2734esac
2735 CC=$ac_ct_CC
2736 fi
2737fi
2738
2739fi
2740
2741
2742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2743See \`config.log' for more details." >&5
2744echo "$as_me: error: no acceptable C compiler found in \$PATH
2745See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
2747
2748# Provide some information about the compiler.
2749echo "$as_me:$LINENO: checking for C compiler version" >&5
2750ac_compiler=`set X $ac_compile; echo $2`
2751{ (ac_try="$ac_compiler --version >&5"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler --version >&5") 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761{ (ac_try="$ac_compiler -v >&5"
2762case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765esac
2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler -v >&5") 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771{ (ac_try="$ac_compiler -V >&5"
2772case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler -V >&5") 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2781
2782cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h. */
2788
2789int
2790main ()
2791{
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797ac_clean_files_save=$ac_clean_files
2798ac_clean_files="$ac_clean_files a.out a.exe b.out"
2799# Try to create an executable without -o first, disregard a.out.
2800# It will help us diagnose broken compilers, and finding out an intuition
2801# of exeext.
2802{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2803echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2804ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2805#
2806# List of possible output files, starting from the most likely.
2807# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2808# only as a last resort. b.out is created by i960 compilers.
2809ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2810#
2811# The IRIX 6 linker writes into existing files which may not be
2812# executable, retaining their permissions. Remove them first so a
2813# subsequent execution test works.
2814ac_rmfiles=
2815for ac_file in $ac_files
2816do
2817 case $ac_file in
2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820 esac
2821done
2822rm -f $ac_rmfiles
2823
2824if { (ac_try="$ac_link_default"
2825case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
2829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link_default") 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836# in a Makefile. We should not override ac_cv_exeext if it was cached,
2837# so that the user can short-circuit this test for compilers unknown to
2838# Autoconf.
2839for ac_file in $ac_files ''
2840do
2841 test -f "$ac_file" || continue
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2844 ;;
2845 [ab].out )
2846 # We found the default executable, but exeext='' is most
2847 # certainly right.
2848 break;;
2849 *.* )
2850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2851 then :; else
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 fi
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an `-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2858 # actually working.
2859 break;;
2860 * )
2861 break;;
2862 esac
2863done
2864test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
2866else
2867 ac_file=''
2868fi
2869
2870{ echo "$as_me:$LINENO: result: $ac_file" >&5
2871echo "${ECHO_T}$ac_file" >&6; }
2872if test -z "$ac_file"; then
2873 echo "$as_me: failed program was:" >&5
2874sed 's/^/| /' conftest.$ac_ext >&5
2875
2876{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2877See \`config.log' for more details." >&5
2878echo "$as_me: error: C compiler cannot create executables
2879See \`config.log' for more details." >&2;}
2880 { (exit 77); exit 77; }; }
2881fi
2882
2883ac_exeext=$ac_cv_exeext
2884
2885# Check that the compiler produces executables we can run. If not, either
2886# the compiler is broken, or we cross compile.
2887{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2888echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2889# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2890# If not cross compiling, check that we can run a simple program.
2891if test "$cross_compiling" != yes; then
2892 if { ac_try='./$ac_file'
2893 { (case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_try") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 cross_compiling=no
2903 else
2904 if test "$cross_compiling" = maybe; then
2905 cross_compiling=yes
2906 else
2907 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2908If you meant to cross compile, use \`--host'.
2909See \`config.log' for more details." >&5
2910echo "$as_me: error: cannot run C compiled programs.
2911If you meant to cross compile, use \`--host'.
2912See \`config.log' for more details." >&2;}
2913 { (exit 1); exit 1; }; }
2914 fi
2915 fi
2916fi
2917{ echo "$as_me:$LINENO: result: yes" >&5
2918echo "${ECHO_T}yes" >&6; }
2919
2920rm -f a.out a.exe conftest$ac_cv_exeext b.out
2921ac_clean_files=$ac_clean_files_save
2922# Check that the compiler produces executables we can run. If not, either
2923# the compiler is broken, or we cross compile.
2924{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2925echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2926{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2927echo "${ECHO_T}$cross_compiling" >&6; }
2928
2929{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2930echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2931if { (ac_try="$ac_link"
2932case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935esac
2936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_link") 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; then
2941 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2942# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2943# work properly (i.e., refer to `conftest.exe'), while it won't with
2944# `rm'.
2945for ac_file in conftest.exe conftest conftest.*; do
2946 test -f "$ac_file" || continue
2947 case $ac_file in
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2949 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950 break;;
2951 * ) break;;
2952 esac
2953done
2954else
2955 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2956See \`config.log' for more details." >&5
2957echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2958See \`config.log' for more details." >&2;}
2959 { (exit 1); exit 1; }; }
2960fi
2961
2962rm -f conftest$ac_cv_exeext
2963{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2964echo "${ECHO_T}$ac_cv_exeext" >&6; }
2965
2966rm -f conftest.$ac_ext
2967EXEEXT=$ac_cv_exeext
2968ac_exeext=$EXEEXT
2969{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2970echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2971if test "${ac_cv_objext+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973else
2974 cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h. */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h. */
2980
2981int
2982main ()
2983{
2984
2985 ;
2986 return 0;
2987}
2988_ACEOF
2989rm -f conftest.o conftest.obj
2990if { (ac_try="$ac_compile"
2991case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compile") 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; then
3000 for ac_file in conftest.o conftest.obj conftest.*; do
3001 test -f "$ac_file" || continue;
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3005 break;;
3006 esac
3007done
3008else
3009 echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3013See \`config.log' for more details." >&5
3014echo "$as_me: error: cannot compute suffix of object files: cannot compile
3015See \`config.log' for more details." >&2;}
3016 { (exit 1); exit 1; }; }
3017fi
3018
3019rm -f conftest.$ac_cv_objext conftest.$ac_ext
3020fi
3021{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3022echo "${ECHO_T}$ac_cv_objext" >&6; }
3023OBJEXT=$ac_cv_objext
3024ac_objext=$OBJEXT
3025{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3026echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3027if test "${ac_cv_c_compiler_gnu+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029else
3030 cat >conftest.$ac_ext <<_ACEOF
3031/* confdefs.h. */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h. */
3036
3037int
3038main ()
3039{
3040#ifndef __GNUC__
3041 choke me
3042#endif
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
3048rm -f conftest.$ac_objext
3049if { (ac_try="$ac_compile"
3050case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3056 ac_status=$?
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } && {
3062 test -z "$ac_c_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.$ac_objext; then
3065 ac_compiler_gnu=yes
3066else
3067 echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 ac_compiler_gnu=no
3071fi
3072
3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074ac_cv_c_compiler_gnu=$ac_compiler_gnu
3075
3076fi
3077{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3078echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3079GCC=`test $ac_compiler_gnu = yes && echo yes`
3080ac_test_CFLAGS=${CFLAGS+set}
3081ac_save_CFLAGS=$CFLAGS
3082{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3083echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3084if test "${ac_cv_prog_cc_g+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087 ac_save_c_werror_flag=$ac_c_werror_flag
3088 ac_c_werror_flag=yes
3089 ac_cv_prog_cc_g=no
3090 CFLAGS="-g"
3091 cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h. */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h. */
3097
3098int
3099main ()
3100{
3101
3102 ;
3103 return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext
3107if { (ac_try="$ac_compile"
3108case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_compile") 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } && {
3120 test -z "$ac_c_werror_flag" ||
3121 test ! -s conftest.err
3122 } && test -s conftest.$ac_objext; then
3123 ac_cv_prog_cc_g=yes
3124else
3125 echo "$as_me: failed program was:" >&5
3126sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 CFLAGS=""
3129 cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h. */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h. */
3135
3136int
3137main ()
3138{
3139
3140 ;
3141 return 0;
3142}
3143_ACEOF
3144rm -f conftest.$ac_objext
3145if { (ac_try="$ac_compile"
3146case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149esac
3150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compile") 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } && {
3158 test -z "$ac_c_werror_flag" ||
3159 test ! -s conftest.err
3160 } && test -s conftest.$ac_objext; then
3161 :
3162else
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 ac_c_werror_flag=$ac_save_c_werror_flag
3167 CFLAGS="-g"
3168 cat >conftest.$ac_ext <<_ACEOF
3169/* confdefs.h. */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
3173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext
3184if { (ac_try="$ac_compile"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3200 ac_cv_prog_cc_g=yes
3201else
3202 echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205
3206fi
3207
3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209fi
3210
3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212fi
3213
3214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_c_werror_flag=$ac_save_c_werror_flag
3216fi
3217{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3218echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3219if test "$ac_test_CFLAGS" = set; then
3220 CFLAGS=$ac_save_CFLAGS
3221elif test $ac_cv_prog_cc_g = yes; then
3222 if test "$GCC" = yes; then
3223 CFLAGS="-g -O2"
3224 else
3225 CFLAGS="-g"
3226 fi
3227else
3228 if test "$GCC" = yes; then
3229 CFLAGS="-O2"
3230 else
3231 CFLAGS=
3232 fi
3233fi
3234{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3235echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3236if test "${ac_cv_prog_cc_c89+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239 ac_cv_prog_cc_c89=no
3240ac_save_CC=$CC
3241cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247#include <stdarg.h>
3248#include <stdio.h>
3249#include <sys/types.h>
3250#include <sys/stat.h>
3251/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3252struct buf { int x; };
3253FILE * (*rcsopen) (struct buf *, struct stat *, int);
3254static char *e (p, i)
3255 char **p;
3256 int i;
3257{
3258 return p[i];
3259}
3260static char *f (char * (*g) (char **, int), char **p, ...)
3261{
3262 char *s;
3263 va_list v;
3264 va_start (v,p);
3265 s = g (p, va_arg (v,int));
3266 va_end (v);
3267 return s;
3268}
3269
3270/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3271 function prototypes and stuff, but not '\xHH' hex character constants.
3272 These don't provoke an error unfortunately, instead are silently treated
3273 as 'x'. The following induces an error, until -std is added to get
3274 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3275 array size at least. It's necessary to write '\x00'==0 to get something
3276 that's true only with -std. */
3277int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3278
3279/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3280 inside strings and character constants. */
3281#define FOO(x) 'x'
3282int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3283
3284int test (int i, double x);
3285struct s1 {int (*f) (int a);};
3286struct s2 {int (*f) (double a);};
3287int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3288int argc;
3289char **argv;
3290int
3291main ()
3292{
3293return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3299 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3300do
3301 CC="$ac_save_CC $ac_arg"
3302 rm -f conftest.$ac_objext
3303if { (ac_try="$ac_compile"
3304case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307esac
3308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_compile") 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } && {
3316 test -z "$ac_c_werror_flag" ||
3317 test ! -s conftest.err
3318 } && test -s conftest.$ac_objext; then
3319 ac_cv_prog_cc_c89=$ac_arg
3320else
3321 echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324
3325fi
3326
3327rm -f core conftest.err conftest.$ac_objext
3328 test "x$ac_cv_prog_cc_c89" != "xno" && break
3329done
3330rm -f conftest.$ac_ext
3331CC=$ac_save_CC
3332
3333fi
3334# AC_CACHE_VAL
3335case "x$ac_cv_prog_cc_c89" in
3336 x)
3337 { echo "$as_me:$LINENO: result: none needed" >&5
3338echo "${ECHO_T}none needed" >&6; } ;;
3339 xno)
3340 { echo "$as_me:$LINENO: result: unsupported" >&5
3341echo "${ECHO_T}unsupported" >&6; } ;;
3342 *)
3343 CC="$CC $ac_cv_prog_cc_c89"
3344 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3345echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3346esac
3347
3348
3349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354DEPDIR="${am__leading_dot}deps"
3355
3356ac_config_commands="$ac_config_commands depfiles"
3357
3358
3359am_make=${MAKE-make}
3360cat > confinc << 'END'
3361am__doit:
3362 @echo done
3363.PHONY: am__doit
3364END
3365# If we don't find an include directive, just comment out the code.
3366{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3367echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3368am__include="#"
3369am__quote=
3370_am_result=none
3371# First try GNU make style include.
3372echo "include confinc" > confmf
3373# We grep out `Entering directory' and `Leaving directory'
3374# messages which can occur if `w' ends up in MAKEFLAGS.
3375# In particular we don't look at `^make:' because GNU make might
3376# be invoked under some other name (usually "gmake"), in which
3377# case it prints its new name instead of `make'.
3378if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3379 am__include=include
3380 am__quote=
3381 _am_result=GNU
3382fi
3383# Now try BSD make style include.
3384if test "$am__include" = "#"; then
3385 echo '.include "confinc"' > confmf
3386 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3387 am__include=.include
3388 am__quote="\""
3389 _am_result=BSD
3390 fi
3391fi
3392
3393
3394{ echo "$as_me:$LINENO: result: $_am_result" >&5
3395echo "${ECHO_T}$_am_result" >&6; }
3396rm -f confinc confmf
3397
3398# Check whether --enable-dependency-tracking was given.
3399if test "${enable_dependency_tracking+set}" = set; then
3400 enableval=$enable_dependency_tracking;
3401fi
3402
3403if test "x$enable_dependency_tracking" != xno; then
3404 am_depcomp="$ac_aux_dir/depcomp"
3405 AMDEPBACKSLASH='\'
3406fi
3407 if test "x$enable_dependency_tracking" != xno; then
3408 AMDEP_TRUE=
3409 AMDEP_FALSE='#'
3410else
3411 AMDEP_TRUE='#'
3412 AMDEP_FALSE=
3413fi
3414
3415
3416
3417depcc="$CC" am_compiler_list=
3418
3419{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3420echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3421if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3425 # We make a subdir and do the tests there. Otherwise we can end up
3426 # making bogus files that we don't know about and never remove. For
3427 # instance it was reported that on HP-UX the gcc test will end up
3428 # making a dummy file named `D' -- because `-MD' means `put the output
3429 # in D'.
3430 mkdir conftest.dir
3431 # Copy depcomp to subdir because otherwise we won't find it if we're
3432 # using a relative directory.
3433 cp "$am_depcomp" conftest.dir
3434 cd conftest.dir
3435 # We will build objects and dependencies in a subdirectory because
3436 # it helps to detect inapplicable dependency modes. For instance
3437 # both Tru64's cc and ICC support -MD to output dependencies as a
3438 # side effect of compilation, but ICC will put the dependencies in
3439 # the current directory while Tru64 will put them in the object
3440 # directory.
3441 mkdir sub
3442
3443 am_cv_CC_dependencies_compiler_type=none
3444 if test "$am_compiler_list" = ""; then
3445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3446 fi
3447 for depmode in $am_compiler_list; do
3448 # Setup a source with many dependencies, because some compilers
3449 # like to wrap large dependency lists on column 80 (with \), and
3450 # we should not choose a depcomp mode which is confused by this.
3451 #
3452 # We need to recreate these files for each test, as the compiler may
3453 # overwrite some of them when testing with obscure command lines.
3454 # This happens at least with the AIX C compiler.
3455 : > sub/conftest.c
3456 for i in 1 2 3 4 5 6; do
3457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3458 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3459 # Solaris 8's {/usr,}/bin/sh.
3460 touch sub/conftst$i.h
3461 done
3462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3463
3464 case $depmode in
3465 nosideeffect)
3466 # after this tag, mechanisms are not by side-effect, so they'll
3467 # only be used when explicitly requested
3468 if test "x$enable_dependency_tracking" = xyes; then
3469 continue
3470 else
3471 break
3472 fi
3473 ;;
3474 none) break ;;
3475 esac
3476 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3477 # mode. It turns out that the SunPro C++ compiler does not properly
3478 # handle `-M -o', and we need to detect this.
3479 if depmode=$depmode \
3480 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3481 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3482 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3483 >/dev/null 2>conftest.err &&
3484 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3485 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3486 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3487 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3488 # icc doesn't choke on unknown options, it will just issue warnings
3489 # or remarks (even with -Werror). So we grep stderr for any message
3490 # that says an option was ignored or not supported.
3491 # When given -MP, icc 7.0 and 7.1 complain thusly:
3492 # icc: Command line warning: ignoring option '-M'; no argument required
3493 # The diagnosis changed in icc 8.0:
3494 # icc: Command line remark: option '-MP' not supported
3495 if (grep 'ignoring option' conftest.err ||
3496 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3497 am_cv_CC_dependencies_compiler_type=$depmode
3498 break
3499 fi
3500 fi
3501 done
3502
3503 cd ..
3504 rm -rf conftest.dir
3505else
3506 am_cv_CC_dependencies_compiler_type=none
3507fi
3508
3509fi
3510{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3511echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3512CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3513
3514 if
3515 test "x$enable_dependency_tracking" != xno \
3516 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3517 am__fastdepCC_TRUE=
3518 am__fastdepCC_FALSE='#'
3519else
3520 am__fastdepCC_TRUE='#'
3521 am__fastdepCC_FALSE=
3522fi
3523
3524
3525ac_ext=cpp
3526ac_cpp='$CXXCPP $CPPFLAGS'
3527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3530if test -z "$CXX"; then
3531 if test -n "$CCC"; then
3532 CXX=$CCC
3533 else
3534 if test -n "$ac_tool_prefix"; then
3535 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3536 do
3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3541if test "${ac_cv_prog_CXX+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 if test -n "$CXX"; then
3545 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3546else
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 break 2
3557 fi
3558done
3559done
3560IFS=$as_save_IFS
3561
3562fi
3563fi
3564CXX=$ac_cv_prog_CXX
3565if test -n "$CXX"; then
3566 { echo "$as_me:$LINENO: result: $CXX" >&5
3567echo "${ECHO_T}$CXX" >&6; }
3568else
3569 { echo "$as_me:$LINENO: result: no" >&5
3570echo "${ECHO_T}no" >&6; }
3571fi
3572
3573
3574 test -n "$CXX" && break
3575 done
3576fi
3577if test -z "$CXX"; then
3578 ac_ct_CXX=$CXX
3579 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3580do
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582set dummy $ac_prog; ac_word=$2
3583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3585if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587else
3588 if test -n "$ac_ct_CXX"; then
3589 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3590else
3591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598 ac_cv_prog_ac_ct_CXX="$ac_prog"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602done
3603done
3604IFS=$as_save_IFS
3605
3606fi
3607fi
3608ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3609if test -n "$ac_ct_CXX"; then
3610 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3611echo "${ECHO_T}$ac_ct_CXX" >&6; }
3612else
3613 { echo "$as_me:$LINENO: result: no" >&5
3614echo "${ECHO_T}no" >&6; }
3615fi
3616
3617
3618 test -n "$ac_ct_CXX" && break
3619done
3620
3621 if test "x$ac_ct_CXX" = x; then
3622 CXX="g++"
3623 else
3624 case $cross_compiling:$ac_tool_warned in
3625yes:)
3626{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3627whose name does not start with the host triplet. If you think this
3628configuration is useful to you, please write to autoconf@gnu.org." >&5
3629echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3630whose name does not start with the host triplet. If you think this
3631configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3632ac_tool_warned=yes ;;
3633esac
3634 CXX=$ac_ct_CXX
3635 fi
3636fi
3637
3638 fi
3639fi
3640# Provide some information about the compiler.
3641echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3642ac_compiler=`set X $ac_compile; echo $2`
3643{ (ac_try="$ac_compiler --version >&5"
3644case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647esac
3648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_compiler --version >&5") 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }
3653{ (ac_try="$ac_compiler -v >&5"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_compiler -v >&5") 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }
3663{ (ac_try="$ac_compiler -V >&5"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
3668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_compiler -V >&5") 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }
3673
3674{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3675echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3676if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679 cat >conftest.$ac_ext <<_ACEOF
3680/* confdefs.h. */
3681_ACEOF
3682cat confdefs.h >>conftest.$ac_ext
3683cat >>conftest.$ac_ext <<_ACEOF
3684/* end confdefs.h. */
3685
3686int
3687main ()
3688{
3689#ifndef __GNUC__
3690 choke me
3691#endif
3692
3693 ;
3694 return 0;
3695}
3696_ACEOF
3697rm -f conftest.$ac_objext
3698if { (ac_try="$ac_compile"
3699case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702esac
3703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_cxx_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3714 ac_compiler_gnu=yes
3715else
3716 echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 ac_compiler_gnu=no
3720fi
3721
3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3724
3725fi
3726{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3727echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3728GXX=`test $ac_compiler_gnu = yes && echo yes`
3729ac_test_CXXFLAGS=${CXXFLAGS+set}
3730ac_save_CXXFLAGS=$CXXFLAGS
3731{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3732echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3733if test "${ac_cv_prog_cxx_g+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3737 ac_cxx_werror_flag=yes
3738 ac_cv_prog_cxx_g=no
3739 CXXFLAGS="-g"
3740 cat >conftest.$ac_ext <<_ACEOF
3741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
3746
3747int
3748main ()
3749{
3750
3751 ;
3752 return 0;
3753}
3754_ACEOF
3755rm -f conftest.$ac_objext
3756if { (ac_try="$ac_compile"
3757case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760esac
3761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_compile") 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } && {
3769 test -z "$ac_cxx_werror_flag" ||
3770 test ! -s conftest.err
3771 } && test -s conftest.$ac_objext; then
3772 ac_cv_prog_cxx_g=yes
3773else
3774 echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 CXXFLAGS=""
3778 cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h. */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h. */
3784
3785int
3786main ()
3787{
3788
3789 ;
3790 return 0;
3791}
3792_ACEOF
3793rm -f conftest.$ac_objext
3794if { (ac_try="$ac_compile"
3795case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798esac
3799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && {
3807 test -z "$ac_cxx_werror_flag" ||
3808 test ! -s conftest.err
3809 } && test -s conftest.$ac_objext; then
3810 :
3811else
3812 echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3816 CXXFLAGS="-g"
3817 cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h. */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h. */
3823
3824int
3825main ()
3826{
3827
3828 ;
3829 return 0;
3830}
3831_ACEOF
3832rm -f conftest.$ac_objext
3833if { (ac_try="$ac_compile"
3834case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837esac
3838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && {
3846 test -z "$ac_cxx_werror_flag" ||
3847 test ! -s conftest.err
3848 } && test -s conftest.$ac_objext; then
3849 ac_cv_prog_cxx_g=yes
3850else
3851 echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854
3855fi
3856
3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858fi
3859
3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861fi
3862
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3865fi
3866{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3867echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3868if test "$ac_test_CXXFLAGS" = set; then
3869 CXXFLAGS=$ac_save_CXXFLAGS
3870elif test $ac_cv_prog_cxx_g = yes; then
3871 if test "$GXX" = yes; then
3872 CXXFLAGS="-g -O2"
3873 else
3874 CXXFLAGS="-g"
3875 fi
3876else
3877 if test "$GXX" = yes; then
3878 CXXFLAGS="-O2"
3879 else
3880 CXXFLAGS=
3881 fi
3882fi
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889depcc="$CXX" am_compiler_list=
3890
3891{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3892echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3893if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3897 # We make a subdir and do the tests there. Otherwise we can end up
3898 # making bogus files that we don't know about and never remove. For
3899 # instance it was reported that on HP-UX the gcc test will end up
3900 # making a dummy file named `D' -- because `-MD' means `put the output
3901 # in D'.
3902 mkdir conftest.dir
3903 # Copy depcomp to subdir because otherwise we won't find it if we're
3904 # using a relative directory.
3905 cp "$am_depcomp" conftest.dir
3906 cd conftest.dir
3907 # We will build objects and dependencies in a subdirectory because
3908 # it helps to detect inapplicable dependency modes. For instance
3909 # both Tru64's cc and ICC support -MD to output dependencies as a
3910 # side effect of compilation, but ICC will put the dependencies in
3911 # the current directory while Tru64 will put them in the object
3912 # directory.
3913 mkdir sub
3914
3915 am_cv_CXX_dependencies_compiler_type=none
3916 if test "$am_compiler_list" = ""; then
3917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3918 fi
3919 for depmode in $am_compiler_list; do
3920 # Setup a source with many dependencies, because some compilers
3921 # like to wrap large dependency lists on column 80 (with \), and
3922 # we should not choose a depcomp mode which is confused by this.
3923 #
3924 # We need to recreate these files for each test, as the compiler may
3925 # overwrite some of them when testing with obscure command lines.
3926 # This happens at least with the AIX C compiler.
3927 : > sub/conftest.c
3928 for i in 1 2 3 4 5 6; do
3929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3930 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3931 # Solaris 8's {/usr,}/bin/sh.
3932 touch sub/conftst$i.h
3933 done
3934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3935
3936 case $depmode in
3937 nosideeffect)
3938 # after this tag, mechanisms are not by side-effect, so they'll
3939 # only be used when explicitly requested
3940 if test "x$enable_dependency_tracking" = xyes; then
3941 continue
3942 else
3943 break
3944 fi
3945 ;;
3946 none) break ;;
3947 esac
3948 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3949 # mode. It turns out that the SunPro C++ compiler does not properly
3950 # handle `-M -o', and we need to detect this.
3951 if depmode=$depmode \
3952 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3954 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3955 >/dev/null 2>conftest.err &&
3956 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3958 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3960 # icc doesn't choke on unknown options, it will just issue warnings
3961 # or remarks (even with -Werror). So we grep stderr for any message
3962 # that says an option was ignored or not supported.
3963 # When given -MP, icc 7.0 and 7.1 complain thusly:
3964 # icc: Command line warning: ignoring option '-M'; no argument required
3965 # The diagnosis changed in icc 8.0:
3966 # icc: Command line remark: option '-MP' not supported
3967 if (grep 'ignoring option' conftest.err ||
3968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3969 am_cv_CXX_dependencies_compiler_type=$depmode
3970 break
3971 fi
3972 fi
3973 done
3974
3975 cd ..
3976 rm -rf conftest.dir
3977else
3978 am_cv_CXX_dependencies_compiler_type=none
3979fi
3980
3981fi
3982{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3983echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3984CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3985
3986 if
3987 test "x$enable_dependency_tracking" != xno \
3988 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3989 am__fastdepCXX_TRUE=
3990 am__fastdepCXX_FALSE='#'
3991else
3992 am__fastdepCXX_TRUE='#'
3993 am__fastdepCXX_FALSE=
3994fi
3995
3996
3997ac_ext=cpp
3998ac_cpp='$CXXCPP $CPPFLAGS'
3999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4002
4003case `pwd` in
4004 *\ * | *\ *)
4005 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4006echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4007esac
4008
4009
4010
4011macro_version='2.2.4'
4012macro_revision='1.2976'
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026ltmain="$ac_aux_dir/ltmain.sh"
4027
4028# Make sure we can run config.sub.
4029$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4030 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4031echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4032 { (exit 1); exit 1; }; }
4033
4034{ echo "$as_me:$LINENO: checking build system type" >&5
4035echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4036if test "${ac_cv_build+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 ac_build_alias=$build_alias
4040test "x$ac_build_alias" = x &&
4041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4042test "x$ac_build_alias" = x &&
4043 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4044echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4045 { (exit 1); exit 1; }; }
4046ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4047 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4048echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4049 { (exit 1); exit 1; }; }
4050
4051fi
4052{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4053echo "${ECHO_T}$ac_cv_build" >&6; }
4054case $ac_cv_build in
4055*-*-*) ;;
4056*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4057echo "$as_me: error: invalid value of canonical build" >&2;}
4058 { (exit 1); exit 1; }; };;
4059esac
4060build=$ac_cv_build
4061ac_save_IFS=$IFS; IFS='-'
4062set x $ac_cv_build
4063shift
4064build_cpu=$1
4065build_vendor=$2
4066shift; shift
4067# Remember, the first character of IFS is used to create $*,
4068# except with old shells:
4069build_os=$*
4070IFS=$ac_save_IFS
4071case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4072
4073
4074{ echo "$as_me:$LINENO: checking host system type" >&5
4075echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4076if test "${ac_cv_host+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079 if test "x$host_alias" = x; then
4080 ac_cv_host=$ac_cv_build
4081else
4082 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4084echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4085 { (exit 1); exit 1; }; }
4086fi
4087
4088fi
4089{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4090echo "${ECHO_T}$ac_cv_host" >&6; }
4091case $ac_cv_host in
4092*-*-*) ;;
4093*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4094echo "$as_me: error: invalid value of canonical host" >&2;}
4095 { (exit 1); exit 1; }; };;
4096esac
4097host=$ac_cv_host
4098ac_save_IFS=$IFS; IFS='-'
4099set x $ac_cv_host
4100shift
4101host_cpu=$1
4102host_vendor=$2
4103shift; shift
4104# Remember, the first character of IFS is used to create $*,
4105# except with old shells:
4106host_os=$*
4107IFS=$ac_save_IFS
4108case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4109
4110
4111{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4112echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4113if test "${ac_cv_path_SED+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4117 for ac_i in 1 2 3 4 5 6 7; do
4118 ac_script="$ac_script$as_nl$ac_script"
4119 done
4120 echo "$ac_script" | sed 99q >conftest.sed
4121 $as_unset ac_script || ac_script=
4122 # Extract the first word of "sed gsed" to use in msg output
4123if test -z "$SED"; then
4124set dummy sed gsed; ac_prog_name=$2
4125if test "${ac_cv_path_SED+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 ac_path_SED_found=false
4129# Loop through the user's path and test for each of PROGNAME-LIST
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in sed gsed; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4139 # Check for GNU ac_path_SED and select it if it is found.
4140 # Check for GNU $ac_path_SED
4141case `"$ac_path_SED" --version 2>&1` in
4142*GNU*)
4143 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4144*)
4145 ac_count=0
4146 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 echo '' >> "conftest.nl"
4153 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 ac_count=`expr $ac_count + 1`
4156 if test $ac_count -gt ${ac_path_SED_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_SED="$ac_path_SED"
4159 ac_path_SED_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165esac
4166
4167
4168 $ac_path_SED_found && break 3
4169 done
4170done
4171
4172done
4173IFS=$as_save_IFS
4174
4175
4176fi
4177
4178SED="$ac_cv_path_SED"
4179if test -z "$SED"; then
4180 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4181echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4182 { (exit 1); exit 1; }; }
4183fi
4184
4185else
4186 ac_cv_path_SED=$SED
4187fi
4188
4189fi
4190{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4191echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4192 SED="$ac_cv_path_SED"
4193 rm -f conftest.sed
4194
4195test -z "$SED" && SED=sed
4196Xsed="$SED -e 1s/^X//"
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4209echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4210if test "${ac_cv_path_GREP+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213 # Extract the first word of "grep ggrep" to use in msg output
4214if test -z "$GREP"; then
4215set dummy grep ggrep; ac_prog_name=$2
4216if test "${ac_cv_path_GREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219 ac_path_GREP_found=false
4220# Loop through the user's path and test for each of PROGNAME-LIST
4221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in grep ggrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4230 # Check for GNU ac_path_GREP and select it if it is found.
4231 # Check for GNU $ac_path_GREP
4232case `"$ac_path_GREP" --version 2>&1` in
4233*GNU*)
4234 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4235*)
4236 ac_count=0
4237 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 echo 'GREP' >> "conftest.nl"
4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 ac_count=`expr $ac_count + 1`
4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_GREP="$ac_path_GREP"
4250 ac_path_GREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256esac
4257
4258
4259 $ac_path_GREP_found && break 3
4260 done
4261done
4262
4263done
4264IFS=$as_save_IFS
4265
4266
4267fi
4268
4269GREP="$ac_cv_path_GREP"
4270if test -z "$GREP"; then
4271 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4272echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4273 { (exit 1); exit 1; }; }
4274fi
4275
4276else
4277 ac_cv_path_GREP=$GREP
4278fi
4279
4280
4281fi
4282{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4283echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4284 GREP="$ac_cv_path_GREP"
4285
4286
4287{ echo "$as_me:$LINENO: checking for egrep" >&5
4288echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4289if test "${ac_cv_path_EGREP+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291else
4292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4293 then ac_cv_path_EGREP="$GREP -E"
4294 else
4295 # Extract the first word of "egrep" to use in msg output
4296if test -z "$EGREP"; then
4297set dummy egrep; ac_prog_name=$2
4298if test "${ac_cv_path_EGREP+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 ac_path_EGREP_found=false
4302# Loop through the user's path and test for each of PROGNAME-LIST
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in egrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4311 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4312 # Check for GNU ac_path_EGREP and select it if it is found.
4313 # Check for GNU $ac_path_EGREP
4314case `"$ac_path_EGREP" --version 2>&1` in
4315*GNU*)
4316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4317*)
4318 ac_count=0
4319 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4320 while :
4321 do
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 echo 'EGREP' >> "conftest.nl"
4326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 ac_count=`expr $ac_count + 1`
4329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_EGREP="$ac_path_EGREP"
4332 ac_path_EGREP_max=$ac_count
4333 fi
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4336 done
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338esac
4339
4340
4341 $ac_path_EGREP_found && break 3
4342 done
4343done
4344
4345done
4346IFS=$as_save_IFS
4347
4348
4349fi
4350
4351EGREP="$ac_cv_path_EGREP"
4352if test -z "$EGREP"; then
4353 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4354echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4355 { (exit 1); exit 1; }; }
4356fi
4357
4358else
4359 ac_cv_path_EGREP=$EGREP
4360fi
4361
4362
4363 fi
4364fi
4365{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4366echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4367 EGREP="$ac_cv_path_EGREP"
4368
4369
4370{ echo "$as_me:$LINENO: checking for fgrep" >&5
4371echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4372if test "${ac_cv_path_FGREP+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4376 then ac_cv_path_FGREP="$GREP -F"
4377 else
4378 # Extract the first word of "fgrep" to use in msg output
4379if test -z "$FGREP"; then
4380set dummy fgrep; ac_prog_name=$2
4381if test "${ac_cv_path_FGREP+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 ac_path_FGREP_found=false
4385# Loop through the user's path and test for each of PROGNAME-LIST
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in fgrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4394 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4395 # Check for GNU ac_path_FGREP and select it if it is found.
4396 # Check for GNU $ac_path_FGREP
4397case `"$ac_path_FGREP" --version 2>&1` in
4398*GNU*)
4399 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4400*)
4401 ac_count=0
4402 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 echo 'FGREP' >> "conftest.nl"
4409 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 ac_count=`expr $ac_count + 1`
4412 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_FGREP="$ac_path_FGREP"
4415 ac_path_FGREP_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421esac
4422
4423
4424 $ac_path_FGREP_found && break 3
4425 done
4426done
4427
4428done
4429IFS=$as_save_IFS
4430
4431
4432fi
4433
4434FGREP="$ac_cv_path_FGREP"
4435if test -z "$FGREP"; then
4436 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4437echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4438 { (exit 1); exit 1; }; }
4439fi
4440
4441else
4442 ac_cv_path_FGREP=$FGREP
4443fi
4444
4445
4446 fi
4447fi
4448{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4449echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4450 FGREP="$ac_cv_path_FGREP"
4451
4452
4453test -z "$GREP" && GREP=grep
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473# Check whether --with-gnu-ld was given.
4474if test "${with_gnu_ld+set}" = set; then
4475 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4476else
4477 with_gnu_ld=no
4478fi
4479
4480ac_prog=ld
4481if test "$GCC" = yes; then
4482 # Check if gcc -print-prog-name=ld gives a path.
4483 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4484echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4485 case $host in
4486 *-*-mingw*)
4487 # gcc leaves a trailing carriage return which upsets mingw
4488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4489 *)
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4491 esac
4492 case $ac_prog in
4493 # Accept absolute paths.
4494 [\\/]* | ?:[\\/]*)
4495 re_direlt='/[^/][^/]*/\.\./'
4496 # Canonicalize the pathname of ld
4497 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4498 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4499 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4500 done
4501 test -z "$LD" && LD="$ac_prog"
4502 ;;
4503 "")
4504 # If it fails, then pretend we aren't using GCC.
4505 ac_prog=ld
4506 ;;
4507 *)
4508 # If it is relative, then search for the first ld in PATH.
4509 with_gnu_ld=unknown
4510 ;;
4511 esac
4512elif test "$with_gnu_ld" = yes; then
4513 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4514echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4515else
4516 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4517echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4518fi
4519if test "${lt_cv_path_LD+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522 if test -z "$LD"; then
4523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4524 for ac_dir in $PATH; do
4525 IFS="$lt_save_ifs"
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4528 lt_cv_path_LD="$ac_dir/$ac_prog"
4529 # Check to see if the program is GNU ld. I'd rather use --version,
4530 # but apparently some variants of GNU ld only accept -v.
4531 # Break only if it was the GNU/non-GNU ld that we prefer.
4532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4533 *GNU* | *'with BFD'*)
4534 test "$with_gnu_ld" != no && break
4535 ;;
4536 *)
4537 test "$with_gnu_ld" != yes && break
4538 ;;
4539 esac
4540 fi
4541 done
4542 IFS="$lt_save_ifs"
4543else
4544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4545fi
4546fi
4547
4548LD="$lt_cv_path_LD"
4549if test -n "$LD"; then
4550 { echo "$as_me:$LINENO: result: $LD" >&5
4551echo "${ECHO_T}$LD" >&6; }
4552else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6; }
4555fi
4556test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4557echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4558 { (exit 1); exit 1; }; }
4559{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4560echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4561if test "${lt_cv_prog_gnu_ld+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563else
4564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565case `$LD -v 2>&1 </dev/null` in
4566*GNU* | *'with BFD'*)
4567 lt_cv_prog_gnu_ld=yes
4568 ;;
4569*)
4570 lt_cv_prog_gnu_ld=no
4571 ;;
4572esac
4573fi
4574{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4575echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4576with_gnu_ld=$lt_cv_prog_gnu_ld
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4587echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4588if test "${lt_cv_path_NM+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591 if test -n "$NM"; then
4592 # Let the user override the test.
4593 lt_cv_path_NM="$NM"
4594else
4595 lt_nm_to_check="${ac_tool_prefix}nm"
4596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4597 lt_nm_to_check="$lt_nm_to_check nm"
4598 fi
4599 for lt_tmp_nm in $lt_nm_to_check; do
4600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4602 IFS="$lt_save_ifs"
4603 test -z "$ac_dir" && ac_dir=.
4604 tmp_nm="$ac_dir/$lt_tmp_nm"
4605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4606 # Check to see if the nm accepts a BSD-compat flag.
4607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4608 # nm: unknown option "B" ignored
4609 # Tru64's nm complains that /dev/null is an invalid object file
4610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4611 */dev/null* | *'Invalid file or object type'*)
4612 lt_cv_path_NM="$tmp_nm -B"
4613 break
4614 ;;
4615 *)
4616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4617 */dev/null*)
4618 lt_cv_path_NM="$tmp_nm -p"
4619 break
4620 ;;
4621 *)
4622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4623 continue # so that we can try to find one that supports BSD flags
4624 ;;
4625 esac
4626 ;;
4627 esac
4628 fi
4629 done
4630 IFS="$lt_save_ifs"
4631 done
4632 : ${lt_cv_path_NM=no}
4633fi
4634fi
4635{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4636echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4637if test "$lt_cv_path_NM" != "no"; then
4638 NM="$lt_cv_path_NM"
4639else
4640 # Didn't find any BSD compatible name lister, look for dumpbin.
4641 if test -n "$ac_tool_prefix"; then
4642 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4643 do
4644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 if test -n "$DUMPBIN"; then
4652 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665done
4666done
4667IFS=$as_save_IFS
4668
4669fi
4670fi
4671DUMPBIN=$ac_cv_prog_DUMPBIN
4672if test -n "$DUMPBIN"; then
4673 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4674echo "${ECHO_T}$DUMPBIN" >&6; }
4675else
4676 { echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6; }
4678fi
4679
4680
4681 test -n "$DUMPBIN" && break
4682 done
4683fi
4684if test -z "$DUMPBIN"; then
4685 ac_ct_DUMPBIN=$DUMPBIN
4686 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4687do
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689set dummy $ac_prog; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$ac_ct_DUMPBIN"; then
4696 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4716if test -n "$ac_ct_DUMPBIN"; then
4717 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4718echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4719else
4720 { echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6; }
4722fi
4723
4724
4725 test -n "$ac_ct_DUMPBIN" && break
4726done
4727
4728 if test "x$ac_ct_DUMPBIN" = x; then
4729 DUMPBIN=":"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732yes:)
4733{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4734whose name does not start with the host triplet. If you think this
4735configuration is useful to you, please write to autoconf@gnu.org." >&5
4736echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4737whose name does not start with the host triplet. If you think this
4738configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4739ac_tool_warned=yes ;;
4740esac
4741 DUMPBIN=$ac_ct_DUMPBIN
4742 fi
4743fi
4744
4745
4746 if test "$DUMPBIN" != ":"; then
4747 NM="$DUMPBIN"
4748 fi
4749fi
4750test -z "$NM" && NM=nm
4751
4752
4753
4754
4755
4756
4757{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4758echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4759if test "${lt_cv_nm_interface+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761else
4762 lt_cv_nm_interface="BSD nm"
4763 echo "int some_variable = 0;" > conftest.$ac_ext
4764 (eval echo "\"\$as_me:4764: $ac_compile\"" >&5)
4765 (eval "$ac_compile" 2>conftest.err)
4766 cat conftest.err >&5
4767 (eval echo "\"\$as_me:4767: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4768 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4769 cat conftest.err >&5
4770 (eval echo "\"\$as_me:4770: output\"" >&5)
4771 cat conftest.out >&5
4772 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4773 lt_cv_nm_interface="MS dumpbin"
4774 fi
4775 rm -f conftest*
4776fi
4777{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4778echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4779
4780{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4781echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4782LN_S=$as_ln_s
4783if test "$LN_S" = "ln -s"; then
4784 { echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6; }
4786else
4787 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4788echo "${ECHO_T}no, using $LN_S" >&6; }
4789fi
4790
4791# find the maximum length of command line arguments
4792{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4793echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4794if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 i=0
4798 teststring="ABCD"
4799
4800 case $build_os in
4801 msdosdjgpp*)
4802 # On DJGPP, this test can blow up pretty badly due to problems in libc
4803 # (any single argument exceeding 2000 bytes causes a buffer overrun
4804 # during glob expansion). Even if it were fixed, the result of this
4805 # check would be larger than it should be.
4806 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4807 ;;
4808
4809 gnu*)
4810 # Under GNU Hurd, this test is not required because there is
4811 # no limit to the length of command line arguments.
4812 # Libtool will interpret -1 as no limit whatsoever
4813 lt_cv_sys_max_cmd_len=-1;
4814 ;;
4815
4816 cygwin* | mingw*)
4817 # On Win9x/ME, this test blows up -- it succeeds, but takes
4818 # about 5 minutes as the teststring grows exponentially.
4819 # Worse, since 9x/ME are not pre-emptively multitasking,
4820 # you end up with a "frozen" computer, even though with patience
4821 # the test eventually succeeds (with a max line length of 256k).
4822 # Instead, let's just punt: use the minimum linelength reported by
4823 # all of the supported platforms: 8192 (on NT/2K/XP).
4824 lt_cv_sys_max_cmd_len=8192;
4825 ;;
4826
4827 amigaos*)
4828 # On AmigaOS with pdksh, this test takes hours, literally.
4829 # So we just punt and use a minimum line length of 8192.
4830 lt_cv_sys_max_cmd_len=8192;
4831 ;;
4832
4833 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4834 # This has been around since 386BSD, at least. Likely further.
4835 if test -x /sbin/sysctl; then
4836 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4837 elif test -x /usr/sbin/sysctl; then
4838 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4839 else
4840 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4841 fi
4842 # And add a safety zone
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4845 ;;
4846
4847 interix*)
4848 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4849 lt_cv_sys_max_cmd_len=196608
4850 ;;
4851
4852 osf*)
4853 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4854 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4855 # nice to cause kernel panics so lets avoid the loop below.
4856 # First set a reasonable default.
4857 lt_cv_sys_max_cmd_len=16384
4858 #
4859 if test -x /sbin/sysconfig; then
4860 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4861 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4862 esac
4863 fi
4864 ;;
4865 sco3.2v5*)
4866 lt_cv_sys_max_cmd_len=102400
4867 ;;
4868 sysv5* | sco5v6* | sysv4.2uw2*)
4869 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4870 if test -n "$kargmax"; then
4871 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4872 else
4873 lt_cv_sys_max_cmd_len=32768
4874 fi
4875 ;;
4876 *)
4877 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4878 if test -n "$lt_cv_sys_max_cmd_len"; then
4879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4881 else
4882 # Make teststring a little bigger before we do anything with it.
4883 # a 1K string should be a reasonable start.
4884 for i in 1 2 3 4 5 6 7 8 ; do
4885 teststring=$teststring$teststring
4886 done
4887 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4888 # If test is not a shell built-in, we'll probably end up computing a
4889 # maximum length that is only half of the actual maximum length, but
4890 # we can't tell.
4891 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4892 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4893 test $i != 17 # 1/2 MB should be enough
4894 do
4895 i=`expr $i + 1`
4896 teststring=$teststring$teststring
4897 done
4898 # Only check the string length outside the loop.
4899 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4900 teststring=
4901 # Add a significant safety factor because C++ compilers can tack on
4902 # massive amounts of additional arguments before passing them to the
4903 # linker. It appears as though 1/2 is a usable value.
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4905 fi
4906 ;;
4907 esac
4908
4909fi
4910
4911if test -n $lt_cv_sys_max_cmd_len ; then
4912 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4913echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4914else
4915 { echo "$as_me:$LINENO: result: none" >&5
4916echo "${ECHO_T}none" >&6; }
4917fi
4918max_cmd_len=$lt_cv_sys_max_cmd_len
4919
4920
4921
4922
4923
4924
4925: ${CP="cp -f"}
4926: ${MV="mv -f"}
4927: ${RM="rm -f"}
4928
4929{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4930echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4931# Try some XSI features
4932xsi_shell=no
4933( _lt_dummy="a/b/c"
4934 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4935 = c,a/b,, \
4936 && eval 'test $(( 1 + 1 )) -eq 2 \
4937 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4938 && xsi_shell=yes
4939{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4940echo "${ECHO_T}$xsi_shell" >&6; }
4941
4942
4943{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4944echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4945lt_shell_append=no
4946( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4947 >/dev/null 2>&1 \
4948 && lt_shell_append=yes
4949{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4950echo "${ECHO_T}$lt_shell_append" >&6; }
4951
4952
4953if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4954 lt_unset=unset
4955else
4956 lt_unset=false
4957fi
4958
4959
4960
4961
4962
4963# test EBCDIC or ASCII
4964case `echo X|tr X '\101'` in
4965 A) # ASCII based system
4966 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4967 lt_SP2NL='tr \040 \012'
4968 lt_NL2SP='tr \015\012 \040\040'
4969 ;;
4970 *) # EBCDIC based system
4971 lt_SP2NL='tr \100 \n'
4972 lt_NL2SP='tr \r\n \100\100'
4973 ;;
4974esac
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4985echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4986if test "${lt_cv_ld_reload_flag+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989 lt_cv_ld_reload_flag='-r'
4990fi
4991{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4992echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4993reload_flag=$lt_cv_ld_reload_flag
4994case $reload_flag in
4995"" | " "*) ;;
4996*) reload_flag=" $reload_flag" ;;
4997esac
4998reload_cmds='$LD$reload_flag -o $output$reload_objs'
4999case $host_os in
5000 darwin*)
5001 if test "$GCC" = yes; then
5002 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5003 else
5004 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5005 fi
5006 ;;
5007esac
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5019echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5020if test "${lt_cv_deplibs_check_method+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022else
5023 lt_cv_file_magic_cmd='$MAGIC_CMD'
5024lt_cv_file_magic_test_file=
5025lt_cv_deplibs_check_method='unknown'
5026# Need to set the preceding variable on all platforms that support
5027# interlibrary dependencies.
5028# 'none' -- dependencies not supported.
5029# `unknown' -- same as none, but documents that we really don't know.
5030# 'pass_all' -- all dependencies passed with no checks.
5031# 'test_compile' -- check by making test program.
5032# 'file_magic [[regex]]' -- check by looking for files in library path
5033# which responds to the $file_magic_cmd with a given extended regex.
5034# If you have `file' or equivalent on your system and you're not sure
5035# whether `pass_all' will *always* work, you probably want this one.
5036
5037case $host_os in
5038aix[4-9]*)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041
5042beos*)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045
5046bsdi[45]*)
5047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5048 lt_cv_file_magic_cmd='/usr/bin/file -L'
5049 lt_cv_file_magic_test_file=/shlib/libc.so
5050 ;;
5051
5052cygwin*)
5053 # func_win32_libid is a shell function defined in ltmain.sh
5054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5055 lt_cv_file_magic_cmd='func_win32_libid'
5056 ;;
5057
5058mingw* | pw32*)
5059 # Base MSYS/MinGW do not provide the 'file' command needed by
5060 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5061 # unless we find 'file', for example because we are cross-compiling.
5062 if ( file / ) >/dev/null 2>&1; then
5063 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5064 lt_cv_file_magic_cmd='func_win32_libid'
5065 else
5066 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5067 lt_cv_file_magic_cmd='$OBJDUMP -f'
5068 fi
5069 ;;
5070
5071darwin* | rhapsody*)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
5074
5075freebsd* | dragonfly*)
5076 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5077 case $host_cpu in
5078 i*86 )
5079 # Not sure whether the presence of OpenBSD here was a mistake.
5080 # Let's accept both of them until this is cleared up.
5081 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5082 lt_cv_file_magic_cmd=/usr/bin/file
5083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5084 ;;
5085 esac
5086 else
5087 lt_cv_deplibs_check_method=pass_all
5088 fi
5089 ;;
5090
5091gnu*)
5092 lt_cv_deplibs_check_method=pass_all
5093 ;;
5094
5095hpux10.20* | hpux11*)
5096 lt_cv_file_magic_cmd=/usr/bin/file
5097 case $host_cpu in
5098 ia64*)
5099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5100 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5101 ;;
5102 hppa*64*)
5103 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5104 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5105 ;;
5106 *)
5107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5108 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5109 ;;
5110 esac
5111 ;;
5112
5113interix[3-9]*)
5114 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5116 ;;
5117
5118irix5* | irix6* | nonstopux*)
5119 case $LD in
5120 *-32|*"-32 ") libmagic=32-bit;;
5121 *-n32|*"-n32 ") libmagic=N32;;
5122 *-64|*"-64 ") libmagic=64-bit;;
5123 *) libmagic=never-match;;
5124 esac
5125 lt_cv_deplibs_check_method=pass_all
5126 ;;
5127
5128# This must be Linux ELF.
5129linux* | k*bsd*-gnu)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133netbsd*)
5134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5136 else
5137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5138 fi
5139 ;;
5140
5141newos6*)
5142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5143 lt_cv_file_magic_cmd=/usr/bin/file
5144 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5145 ;;
5146
5147*nto* | *qnx*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
5151openbsd*)
5152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5154 else
5155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5156 fi
5157 ;;
5158
5159osf3* | osf4* | osf5*)
5160 lt_cv_deplibs_check_method=pass_all
5161 ;;
5162
5163rdos*)
5164 lt_cv_deplibs_check_method=pass_all
5165 ;;
5166
5167solaris*)
5168 lt_cv_deplibs_check_method=pass_all
5169 ;;
5170
5171sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
5174
5175sysv4 | sysv4.3*)
5176 case $host_vendor in
5177 motorola)
5178 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]'
5179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5180 ;;
5181 ncr)
5182 lt_cv_deplibs_check_method=pass_all
5183 ;;
5184 sequent)
5185 lt_cv_file_magic_cmd='/bin/file'
5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5187 ;;
5188 sni)
5189 lt_cv_file_magic_cmd='/bin/file'
5190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5191 lt_cv_file_magic_test_file=/lib/libc.so
5192 ;;
5193 siemens)
5194 lt_cv_deplibs_check_method=pass_all
5195 ;;
5196 pc)
5197 lt_cv_deplibs_check_method=pass_all
5198 ;;
5199 esac
5200 ;;
5201
5202tpf*)
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
5205esac
5206
5207fi
5208{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5209echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5210file_magic_cmd=$lt_cv_file_magic_cmd
5211deplibs_check_method=$lt_cv_deplibs_check_method
5212test -z "$deplibs_check_method" && deplibs_check_method=unknown
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5227set dummy ${ac_tool_prefix}ar; ac_word=$2
5228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5230if test "${ac_cv_prog_AR+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232else
5233 if test -n "$AR"; then
5234 ac_cv_prog_AR="$AR" # Let the user override the test.
5235else
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_AR="${ac_tool_prefix}ar"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5246 fi
5247done
5248done
5249IFS=$as_save_IFS
5250
5251fi
5252fi
5253AR=$ac_cv_prog_AR
5254if test -n "$AR"; then
5255 { echo "$as_me:$LINENO: result: $AR" >&5
5256echo "${ECHO_T}$AR" >&6; }
5257else
5258 { echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6; }
5260fi
5261
5262
5263fi
5264if test -z "$ac_cv_prog_AR"; then
5265 ac_ct_AR=$AR
5266 # Extract the first word of "ar", so it can be a program name with args.
5267set dummy ar; ac_word=$2
5268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273 if test -n "$ac_ct_AR"; then
5274 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_AR="ar"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287done
5288done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293ac_ct_AR=$ac_cv_prog_ac_ct_AR
5294if test -n "$ac_ct_AR"; then
5295 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5296echo "${ECHO_T}$ac_ct_AR" >&6; }
5297else
5298 { echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6; }
5300fi
5301
5302 if test "x$ac_ct_AR" = x; then
5303 AR="false"
5304 else
5305 case $cross_compiling:$ac_tool_warned in
5306yes:)
5307{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5308whose name does not start with the host triplet. If you think this
5309configuration is useful to you, please write to autoconf@gnu.org." >&5
5310echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5311whose name does not start with the host triplet. If you think this
5312configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5313ac_tool_warned=yes ;;
5314esac
5315 AR=$ac_ct_AR
5316 fi
5317else
5318 AR="$ac_cv_prog_AR"
5319fi
5320
5321test -z "$AR" && AR=ar
5322test -z "$AR_FLAGS" && AR_FLAGS=cru
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334if test -n "$ac_tool_prefix"; then
5335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5336set dummy ${ac_tool_prefix}strip; ac_word=$2
5337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5339if test "${ac_cv_prog_STRIP+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342 if test -n "$STRIP"; then
5343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5355 fi
5356done
5357done
5358IFS=$as_save_IFS
5359
5360fi
5361fi
5362STRIP=$ac_cv_prog_STRIP
5363if test -n "$STRIP"; then
5364 { echo "$as_me:$LINENO: result: $STRIP" >&5
5365echo "${ECHO_T}$STRIP" >&6; }
5366else
5367 { echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6; }
5369fi
5370
5371
5372fi
5373if test -z "$ac_cv_prog_STRIP"; then
5374 ac_ct_STRIP=$STRIP
5375 # Extract the first word of "strip", so it can be a program name with args.
5376set dummy strip; ac_word=$2
5377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5379if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382 if test -n "$ac_ct_STRIP"; then
5383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5384else
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_ac_ct_STRIP="strip"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396done
5397done
5398IFS=$as_save_IFS
5399
5400fi
5401fi
5402ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5403if test -n "$ac_ct_STRIP"; then
5404 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5405echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5406else
5407 { echo "$as_me:$LINENO: result: no" >&5
5408echo "${ECHO_T}no" >&6; }
5409fi
5410
5411 if test "x$ac_ct_STRIP" = x; then
5412 STRIP=":"
5413 else
5414 case $cross_compiling:$ac_tool_warned in
5415yes:)
5416{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5417whose name does not start with the host triplet. If you think this
5418configuration is useful to you, please write to autoconf@gnu.org." >&5
5419echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5420whose name does not start with the host triplet. If you think this
5421configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5422ac_tool_warned=yes ;;
5423esac
5424 STRIP=$ac_ct_STRIP
5425 fi
5426else
5427 STRIP="$ac_cv_prog_STRIP"
5428fi
5429
5430test -z "$STRIP" && STRIP=:
5431
5432
5433
5434
5435
5436
5437if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5442if test "${ac_cv_prog_RANLIB+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 if test -n "$RANLIB"; then
5446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 break 2
5458 fi
5459done
5460done
5461IFS=$as_save_IFS
5462
5463fi
5464fi
5465RANLIB=$ac_cv_prog_RANLIB
5466if test -n "$RANLIB"; then
5467 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5468echo "${ECHO_T}$RANLIB" >&6; }
5469else
5470 { echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6; }
5472fi
5473
5474
5475fi
5476if test -z "$ac_cv_prog_RANLIB"; then
5477 ac_ct_RANLIB=$RANLIB
5478 # Extract the first word of "ranlib", so it can be a program name with args.
5479set dummy ranlib; ac_word=$2
5480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5482if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485 if test -n "$ac_ct_RANLIB"; then
5486 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5487else
5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH
5490do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_ac_ct_RANLIB="ranlib"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5498 fi
5499done
5500done
5501IFS=$as_save_IFS
5502
5503fi
5504fi
5505ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5506if test -n "$ac_ct_RANLIB"; then
5507 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5508echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5509else
5510 { echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6; }
5512fi
5513
5514 if test "x$ac_ct_RANLIB" = x; then
5515 RANLIB=":"
5516 else
5517 case $cross_compiling:$ac_tool_warned in
5518yes:)
5519{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5520whose name does not start with the host triplet. If you think this
5521configuration is useful to you, please write to autoconf@gnu.org." >&5
5522echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5523whose name does not start with the host triplet. If you think this
5524configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5525ac_tool_warned=yes ;;
5526esac
5527 RANLIB=$ac_ct_RANLIB
5528 fi
5529else
5530 RANLIB="$ac_cv_prog_RANLIB"
5531fi
5532
5533test -z "$RANLIB" && RANLIB=:
5534
5535
5536
5537
5538
5539
5540# Determine commands to create old-style static archives.
5541old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5542old_postinstall_cmds='chmod 644 $oldlib'
5543old_postuninstall_cmds=
5544
5545if test -n "$RANLIB"; then
5546 case $host_os in
5547 openbsd*)
5548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5549 ;;
5550 *)
5551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5552 ;;
5553 esac
5554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5555fi
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590# If no C compiler was specified, use CC.
5591LTCC=${LTCC-"$CC"}
5592
5593# If no C compiler flags were specified, use CFLAGS.
5594LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5595
5596# Allow CC to be a program name with arguments.
5597compiler=$CC
5598
5599
5600# Check for command to grab the raw symbol name followed by C symbol from nm.
5601{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5602echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5603if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606
5607# These are sane defaults that work on at least a few old systems.
5608# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5609
5610# Character class describing NM global symbol codes.
5611symcode='[BCDEGRST]'
5612
5613# Regexp to match symbols that can be accessed directly from C.
5614sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5615
5616# Define system-specific variables.
5617case $host_os in
5618aix*)
5619 symcode='[BCDT]'
5620 ;;
5621cygwin* | mingw* | pw32*)
5622 symcode='[ABCDGISTW]'
5623 ;;
5624hpux*)
5625 if test "$host_cpu" = ia64; then
5626 symcode='[ABCDEGRST]'
5627 fi
5628 ;;
5629irix* | nonstopux*)
5630 symcode='[BCDEGRST]'
5631 ;;
5632osf*)
5633 symcode='[BCDEGQRST]'
5634 ;;
5635solaris*)
5636 symcode='[BDRT]'
5637 ;;
5638sco3.2v5*)
5639 symcode='[DT]'
5640 ;;
5641sysv4.2uw2*)
5642 symcode='[DT]'
5643 ;;
5644sysv5* | sco5v6* | unixware* | OpenUNIX*)
5645 symcode='[ABDT]'
5646 ;;
5647sysv4)
5648 symcode='[DFNSTU]'
5649 ;;
5650esac
5651
5652# If we're using GNU nm, then use its standard symbol codes.
5653case `$NM -V 2>&1` in
5654*GNU* | *'with BFD'*)
5655 symcode='[ABCDGIRSTW]' ;;
5656esac
5657
5658# Transform an extracted symbol line into a proper C declaration.
5659# Some systems (esp. on ia64) link data and code symbols differently,
5660# so use this general approach.
5661lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5662
5663# Transform an extracted symbol line into symbol name and symbol address
5664lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5665lt_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'"
5666
5667# Handle CRLF in mingw tool chain
5668opt_cr=
5669case $build_os in
5670mingw*)
5671 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5672 ;;
5673esac
5674
5675# Try without a prefix underscore, then with it.
5676for ac_symprfx in "" "_"; do
5677
5678 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5679 symxfrm="\\1 $ac_symprfx\\2 \\2"
5680
5681 # Write the raw and C identifiers.
5682 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5683 # Fake it for dumpbin and say T for any non-static function
5684 # and D for any global variable.
5685 # Also find C++ and __fastcall symbols from MSVC++,
5686 # which start with @ or ?.
5687 lt_cv_sys_global_symbol_pipe="$AWK '"\
5688" {last_section=section; section=\$ 3};"\
5689" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5690" \$ 0!~/External *\|/{next};"\
5691" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5692" {if(hide[section]) next};"\
5693" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5694" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5695" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5696" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5697" ' prfx=^$ac_symprfx"
5698 else
5699 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5700 fi
5701
5702 # Check to see that the pipe works correctly.
5703 pipe_works=no
5704
5705 rm -f conftest*
5706 cat > conftest.$ac_ext <<_LT_EOF
5707#ifdef __cplusplus
5708extern "C" {
5709#endif
5710char nm_test_var;
5711void nm_test_func(void);
5712void nm_test_func(void){}
5713#ifdef __cplusplus
5714}
5715#endif
5716int main(){nm_test_var='a';nm_test_func();return(0);}
5717_LT_EOF
5718
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; then
5724 # Now try to grab the symbols.
5725 nlist=conftest.nm
5726 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5727 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && test -s "$nlist"; then
5731 # Try sorting and uniquifying the output.
5732 if sort "$nlist" | uniq > "$nlist"T; then
5733 mv -f "$nlist"T "$nlist"
5734 else
5735 rm -f "$nlist"T
5736 fi
5737
5738 # Make sure that we snagged all the symbols we need.
5739 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5740 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5741 cat <<_LT_EOF > conftest.$ac_ext
5742#ifdef __cplusplus
5743extern "C" {
5744#endif
5745
5746_LT_EOF
5747 # Now generate the symbol file.
5748 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5749
5750 cat <<_LT_EOF >> conftest.$ac_ext
5751
5752/* The mapping between symbol names and symbols. */
5753const struct {
5754 const char *name;
5755 void *address;
5756}
5757lt__PROGRAM__LTX_preloaded_symbols[] =
5758{
5759 { "@PROGRAM@", (void *) 0 },
5760_LT_EOF
5761 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5762 cat <<\_LT_EOF >> conftest.$ac_ext
5763 {0, (void *) 0}
5764};
5765
5766/* This works around a problem in FreeBSD linker */
5767#ifdef FREEBSD_WORKAROUND
5768static const void *lt_preloaded_setup() {
5769 return lt__PROGRAM__LTX_preloaded_symbols;
5770}
5771#endif
5772
5773#ifdef __cplusplus
5774}
5775#endif
5776_LT_EOF
5777 # Now try linking the two files.
5778 mv conftest.$ac_objext conftstm.$ac_objext
5779 lt_save_LIBS="$LIBS"
5780 lt_save_CFLAGS="$CFLAGS"
5781 LIBS="conftstm.$ac_objext"
5782 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5788 pipe_works=yes
5789 fi
5790 LIBS="$lt_save_LIBS"
5791 CFLAGS="$lt_save_CFLAGS"
5792 else
5793 echo "cannot find nm_test_func in $nlist" >&5
5794 fi
5795 else
5796 echo "cannot find nm_test_var in $nlist" >&5
5797 fi
5798 else
5799 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5800 fi
5801 else
5802 echo "$progname: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 fi
5805 rm -rf conftest* conftst*
5806
5807 # Do not use the global_symbol_pipe unless it works.
5808 if test "$pipe_works" = yes; then
5809 break
5810 else
5811 lt_cv_sys_global_symbol_pipe=
5812 fi
5813done
5814
5815fi
5816
5817if test -z "$lt_cv_sys_global_symbol_pipe"; then
5818 lt_cv_sys_global_symbol_to_cdecl=
5819fi
5820if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5821 { echo "$as_me:$LINENO: result: failed" >&5
5822echo "${ECHO_T}failed" >&6; }
5823else
5824 { echo "$as_me:$LINENO: result: ok" >&5
5825echo "${ECHO_T}ok" >&6; }
5826fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850# Check whether --enable-libtool-lock was given.
5851if test "${enable_libtool_lock+set}" = set; then
5852 enableval=$enable_libtool_lock;
5853fi
5854
5855test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5856
5857# Some flags need to be propagated to the compiler or linker for good
5858# libtool support.
5859case $host in
5860ia64-*-hpux*)
5861 # Find out which ABI we are using.
5862 echo 'int i;' > conftest.$ac_ext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864 (eval $ac_compile) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; then
5868 case `/usr/bin/file conftest.$ac_objext` in
5869 *ELF-32*)
5870 HPUX_IA64_MODE="32"
5871 ;;
5872 *ELF-64*)
5873 HPUX_IA64_MODE="64"
5874 ;;
5875 esac
5876 fi
5877 rm -rf conftest*
5878 ;;
5879*-*-irix6*)
5880 # Find out which ABI we are using.
5881 echo '#line 5881 "configure"' > conftest.$ac_ext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; then
5887 if test "$lt_cv_prog_gnu_ld" = yes; then
5888 case `/usr/bin/file conftest.$ac_objext` in
5889 *32-bit*)
5890 LD="${LD-ld} -melf32bsmip"
5891 ;;
5892 *N32*)
5893 LD="${LD-ld} -melf32bmipn32"
5894 ;;
5895 *64-bit*)
5896 LD="${LD-ld} -melf64bmip"
5897 ;;
5898 esac
5899 else
5900 case `/usr/bin/file conftest.$ac_objext` in
5901 *32-bit*)
5902 LD="${LD-ld} -32"
5903 ;;
5904 *N32*)
5905 LD="${LD-ld} -n32"
5906 ;;
5907 *64-bit*)
5908 LD="${LD-ld} -64"
5909 ;;
5910 esac
5911 fi
5912 fi
5913 rm -rf conftest*
5914 ;;
5915
5916x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5917s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5918 # Find out which ABI we are using.
5919 echo 'int i;' > conftest.$ac_ext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; then
5925 case `/usr/bin/file conftest.o` in
5926 *32-bit*)
5927 case $host in
5928 x86_64-*kfreebsd*-gnu)
5929 LD="${LD-ld} -m elf_i386_fbsd"
5930 ;;
5931 x86_64-*linux*)
5932 LD="${LD-ld} -m elf_i386"
5933 ;;
5934 ppc64-*linux*|powerpc64-*linux*)
5935 LD="${LD-ld} -m elf32ppclinux"
5936 ;;
5937 s390x-*linux*)
5938 LD="${LD-ld} -m elf_s390"
5939 ;;
5940 sparc64-*linux*)
5941 LD="${LD-ld} -m elf32_sparc"
5942 ;;
5943 esac
5944 ;;
5945 *64-bit*)
5946 case $host in
5947 x86_64-*kfreebsd*-gnu)
5948 LD="${LD-ld} -m elf_x86_64_fbsd"
5949 ;;
5950 x86_64-*linux*)
5951 LD="${LD-ld} -m elf_x86_64"
5952 ;;
5953 ppc*-*linux*|powerpc*-*linux*)
5954 LD="${LD-ld} -m elf64ppc"
5955 ;;
5956 s390*-*linux*|s390*-*tpf*)
5957 LD="${LD-ld} -m elf64_s390"
5958 ;;
5959 sparc*-*linux*)
5960 LD="${LD-ld} -m elf64_sparc"
5961 ;;
5962 esac
5963 ;;
5964 esac
5965 fi
5966 rm -rf conftest*
5967 ;;
5968
5969*-*-sco3.2v5*)
5970 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5971 SAVE_CFLAGS="$CFLAGS"
5972 CFLAGS="$CFLAGS -belf"
5973 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5974echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5975if test "${lt_cv_cc_needs_belf+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978 ac_ext=c
5979ac_cpp='$CPP $CPPFLAGS'
5980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984 cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
5990
5991int
5992main ()
5993{
5994
5995 ;
5996 return 0;
5997}
5998_ACEOF
5999rm -f conftest.$ac_objext conftest$ac_exeext
6000if { (ac_try="$ac_link"
6001case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004esac
6005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_link") 2>conftest.er1
6007 ac_status=$?
6008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } && {
6013 test -z "$ac_c_werror_flag" ||
6014 test ! -s conftest.err
6015 } && test -s conftest$ac_exeext &&
6016 $as_test_x conftest$ac_exeext; then
6017 lt_cv_cc_needs_belf=yes
6018else
6019 echo "$as_me: failed program was:" >&5
6020sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 lt_cv_cc_needs_belf=no
6023fi
6024
6025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6026 conftest$ac_exeext conftest.$ac_ext
6027 ac_ext=c
6028ac_cpp='$CPP $CPPFLAGS'
6029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032
6033fi
6034{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6035echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6036 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6037 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6038 CFLAGS="$SAVE_CFLAGS"
6039 fi
6040 ;;
6041sparc*-*solaris*)
6042 # Find out which ABI we are using.
6043 echo 'int i;' > conftest.$ac_ext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045 (eval $ac_compile) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; then
6049 case `/usr/bin/file conftest.o` in
6050 *64-bit*)
6051 case $lt_cv_prog_gnu_ld in
6052 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6053 *)
6054 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6055 LD="${LD-ld} -64"
6056 fi
6057 ;;
6058 esac
6059 ;;
6060 esac
6061 fi
6062 rm -rf conftest*
6063 ;;
6064esac
6065
6066need_locks="$enable_libtool_lock"
6067
6068
6069 case $host_os in
6070 rhapsody* | darwin*)
6071 if test -n "$ac_tool_prefix"; then
6072 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6073set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6076if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078else
6079 if test -n "$DSYMUTIL"; then
6080 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093done
6094done
6095IFS=$as_save_IFS
6096
6097fi
6098fi
6099DSYMUTIL=$ac_cv_prog_DSYMUTIL
6100if test -n "$DSYMUTIL"; then
6101 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6102echo "${ECHO_T}$DSYMUTIL" >&6; }
6103else
6104 { echo "$as_me:$LINENO: result: no" >&5
6105echo "${ECHO_T}no" >&6; }
6106fi
6107
6108
6109fi
6110if test -z "$ac_cv_prog_DSYMUTIL"; then
6111 ac_ct_DSYMUTIL=$DSYMUTIL
6112 # Extract the first word of "dsymutil", so it can be a program name with args.
6113set dummy dsymutil; ac_word=$2
6114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 if test -n "$ac_ct_DSYMUTIL"; then
6120 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6121else
6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH
6124do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6129 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133done
6134done
6135IFS=$as_save_IFS
6136
6137fi
6138fi
6139ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6140if test -n "$ac_ct_DSYMUTIL"; then
6141 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6142echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6143else
6144 { echo "$as_me:$LINENO: result: no" >&5
6145echo "${ECHO_T}no" >&6; }
6146fi
6147
6148 if test "x$ac_ct_DSYMUTIL" = x; then
6149 DSYMUTIL=":"
6150 else
6151 case $cross_compiling:$ac_tool_warned in
6152yes:)
6153{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6154whose name does not start with the host triplet. If you think this
6155configuration is useful to you, please write to autoconf@gnu.org." >&5
6156echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6157whose name does not start with the host triplet. If you think this
6158configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6159ac_tool_warned=yes ;;
6160esac
6161 DSYMUTIL=$ac_ct_DSYMUTIL
6162 fi
6163else
6164 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6165fi
6166
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6169set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6172if test "${ac_cv_prog_NMEDIT+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174else
6175 if test -n "$NMEDIT"; then
6176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189done
6190done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195NMEDIT=$ac_cv_prog_NMEDIT
6196if test -n "$NMEDIT"; then
6197 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6198echo "${ECHO_T}$NMEDIT" >&6; }
6199else
6200 { echo "$as_me:$LINENO: result: no" >&5
6201echo "${ECHO_T}no" >&6; }
6202fi
6203
6204
6205fi
6206if test -z "$ac_cv_prog_NMEDIT"; then
6207 ac_ct_NMEDIT=$NMEDIT
6208 # Extract the first word of "nmedit", so it can be a program name with args.
6209set dummy nmedit; ac_word=$2
6210{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6212if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 if test -n "$ac_ct_NMEDIT"; then
6216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229done
6230done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6236if test -n "$ac_ct_NMEDIT"; then
6237 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6238echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6239else
6240 { echo "$as_me:$LINENO: result: no" >&5
6241echo "${ECHO_T}no" >&6; }
6242fi
6243
6244 if test "x$ac_ct_NMEDIT" = x; then
6245 NMEDIT=":"
6246 else
6247 case $cross_compiling:$ac_tool_warned in
6248yes:)
6249{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6250whose name does not start with the host triplet. If you think this
6251configuration is useful to you, please write to autoconf@gnu.org." >&5
6252echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6253whose name does not start with the host triplet. If you think this
6254configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6255ac_tool_warned=yes ;;
6256esac
6257 NMEDIT=$ac_ct_NMEDIT
6258 fi
6259else
6260 NMEDIT="$ac_cv_prog_NMEDIT"
6261fi
6262
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6265set dummy ${ac_tool_prefix}lipo; ac_word=$2
6266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268if test "${ac_cv_prog_LIPO+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271 if test -n "$LIPO"; then
6272 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6273else
6274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275for as_dir in $PATH
6276do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285done
6286done
6287IFS=$as_save_IFS
6288
6289fi
6290fi
6291LIPO=$ac_cv_prog_LIPO
6292if test -n "$LIPO"; then
6293 { echo "$as_me:$LINENO: result: $LIPO" >&5
6294echo "${ECHO_T}$LIPO" >&6; }
6295else
6296 { echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6; }
6298fi
6299
6300
6301fi
6302if test -z "$ac_cv_prog_LIPO"; then
6303 ac_ct_LIPO=$LIPO
6304 # Extract the first word of "lipo", so it can be a program name with args.
6305set dummy lipo; ac_word=$2
6306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311 if test -n "$ac_ct_LIPO"; then
6312 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_ac_ct_LIPO="lipo"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325done
6326done
6327IFS=$as_save_IFS
6328
6329fi
6330fi
6331ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6332if test -n "$ac_ct_LIPO"; then
6333 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6334echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6335else
6336 { echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6; }
6338fi
6339
6340 if test "x$ac_ct_LIPO" = x; then
6341 LIPO=":"
6342 else
6343 case $cross_compiling:$ac_tool_warned in
6344yes:)
6345{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6346whose name does not start with the host triplet. If you think this
6347configuration is useful to you, please write to autoconf@gnu.org." >&5
6348echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6349whose name does not start with the host triplet. If you think this
6350configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6351ac_tool_warned=yes ;;
6352esac
6353 LIPO=$ac_ct_LIPO
6354 fi
6355else
6356 LIPO="$ac_cv_prog_LIPO"
6357fi
6358
6359 if test -n "$ac_tool_prefix"; then
6360 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6361set dummy ${ac_tool_prefix}otool; ac_word=$2
6362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364if test "${ac_cv_prog_OTOOL+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6366else
6367 if test -n "$OTOOL"; then
6368 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381done
6382done
6383IFS=$as_save_IFS
6384
6385fi
6386fi
6387OTOOL=$ac_cv_prog_OTOOL
6388if test -n "$OTOOL"; then
6389 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6390echo "${ECHO_T}$OTOOL" >&6; }
6391else
6392 { echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6; }
6394fi
6395
6396
6397fi
6398if test -z "$ac_cv_prog_OTOOL"; then
6399 ac_ct_OTOOL=$OTOOL
6400 # Extract the first word of "otool", so it can be a program name with args.
6401set dummy otool; ac_word=$2
6402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6404if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407 if test -n "$ac_ct_OTOOL"; then
6408 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_ac_ct_OTOOL="otool"
6418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6420 fi
6421done
6422done
6423IFS=$as_save_IFS
6424
6425fi
6426fi
6427ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6428if test -n "$ac_ct_OTOOL"; then
6429 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6430echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6431else
6432 { echo "$as_me:$LINENO: result: no" >&5
6433echo "${ECHO_T}no" >&6; }
6434fi
6435
6436 if test "x$ac_ct_OTOOL" = x; then
6437 OTOOL=":"
6438 else
6439 case $cross_compiling:$ac_tool_warned in
6440yes:)
6441{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6442whose name does not start with the host triplet. If you think this
6443configuration is useful to you, please write to autoconf@gnu.org." >&5
6444echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6445whose name does not start with the host triplet. If you think this
6446configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6447ac_tool_warned=yes ;;
6448esac
6449 OTOOL=$ac_ct_OTOOL
6450 fi
6451else
6452 OTOOL="$ac_cv_prog_OTOOL"
6453fi
6454
6455 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6457set dummy ${ac_tool_prefix}otool64; ac_word=$2
6458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460if test "${ac_cv_prog_OTOOL64+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 if test -n "$OTOOL64"; then
6464 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6465else
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477done
6478done
6479IFS=$as_save_IFS
6480
6481fi
6482fi
6483OTOOL64=$ac_cv_prog_OTOOL64
6484if test -n "$OTOOL64"; then
6485 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6486echo "${ECHO_T}$OTOOL64" >&6; }
6487else
6488 { echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6; }
6490fi
6491
6492
6493fi
6494if test -z "$ac_cv_prog_OTOOL64"; then
6495 ac_ct_OTOOL64=$OTOOL64
6496 # Extract the first word of "otool64", so it can be a program name with args.
6497set dummy otool64; ac_word=$2
6498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6500if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503 if test -n "$ac_ct_OTOOL64"; then
6504 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6505else
6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_ac_ct_OTOOL64="otool64"
6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517done
6518done
6519IFS=$as_save_IFS
6520
6521fi
6522fi
6523ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6524if test -n "$ac_ct_OTOOL64"; then
6525 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6526echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6527else
6528 { echo "$as_me:$LINENO: result: no" >&5
6529echo "${ECHO_T}no" >&6; }
6530fi
6531
6532 if test "x$ac_ct_OTOOL64" = x; then
6533 OTOOL64=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536yes:)
6537{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6538whose name does not start with the host triplet. If you think this
6539configuration is useful to you, please write to autoconf@gnu.org." >&5
6540echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6541whose name does not start with the host triplet. If you think this
6542configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6543ac_tool_warned=yes ;;
6544esac
6545 OTOOL64=$ac_ct_OTOOL64
6546 fi
6547else
6548 OTOOL64="$ac_cv_prog_OTOOL64"
6549fi
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6578echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6579if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582 lt_cv_apple_cc_single_mod=no
6583 if test -z "${LT_MULTI_MODULE}"; then
6584 # By default we will add the -single_module flag. You can override
6585 # by either setting the environment variable LT_MULTI_MODULE
6586 # non-empty at configure time, or by adding -multi_module to the
6587 # link flags.
6588 rm -rf libconftest.dylib*
6589 echo "int foo(void){return 1;}" > conftest.c
6590 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6591-dynamiclib -Wl,-single_module conftest.c" >&5
6592 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6593 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6594 _lt_result=$?
6595 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6596 lt_cv_apple_cc_single_mod=yes
6597 else
6598 cat conftest.err >&5
6599 fi
6600 rm -rf libconftest.dylib*
6601 rm -f conftest.*
6602 fi
6603fi
6604{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6605echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6606 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6607echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6608if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 lt_cv_ld_exported_symbols_list=no
6612 save_LDFLAGS=$LDFLAGS
6613 echo "_main" > conftest.sym
6614 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6615 cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621
6622int
6623main ()
6624{
6625
6626 ;
6627 return 0;
6628}
6629_ACEOF
6630rm -f conftest.$ac_objext conftest$ac_exeext
6631if { (ac_try="$ac_link"
6632case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635esac
6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_link") 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest$ac_exeext &&
6647 $as_test_x conftest$ac_exeext; then
6648 lt_cv_ld_exported_symbols_list=yes
6649else
6650 echo "$as_me: failed program was:" >&5
6651sed 's/^/| /' conftest.$ac_ext >&5
6652
6653 lt_cv_ld_exported_symbols_list=no
6654fi
6655
6656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6657 conftest$ac_exeext conftest.$ac_ext
6658 LDFLAGS="$save_LDFLAGS"
6659
6660fi
6661{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6662echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6663 case $host_os in
6664 rhapsody* | darwin1.[012])
6665 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6666 darwin1.*)
6667 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6668 darwin*) # darwin 5.x on
6669 # if running on 10.5 or later, the deployment target defaults
6670 # to the OS version, if on x86, and 10.4, the deployment
6671 # target defaults to 10.4. Don't you love it?
6672 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6673 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6674 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6675 10.[012]*)
6676 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6677 10.*)
6678 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6679 esac
6680 ;;
6681 esac
6682 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6683 _lt_dar_single_mod='$single_module'
6684 fi
6685 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6686 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6687 else
6688 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6689 fi
6690 if test "$DSYMUTIL" != ":"; then
6691 _lt_dsymutil='~$DSYMUTIL $lib || :'
6692 else
6693 _lt_dsymutil=
6694 fi
6695 ;;
6696 esac
6697
6698ac_ext=c
6699ac_cpp='$CPP $CPPFLAGS'
6700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_c_compiler_gnu
6703{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6704echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6705# On Suns, sometimes $CPP names a directory.
6706if test -n "$CPP" && test -d "$CPP"; then
6707 CPP=
6708fi
6709if test -z "$CPP"; then
6710 if test "${ac_cv_prog_CPP+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712else
6713 # Double quotes because CPP needs to be expanded
6714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6715 do
6716 ac_preproc_ok=false
6717for ac_c_preproc_warn_flag in '' yes
6718do
6719 # Use a header file that comes with gcc, so configuring glibc
6720 # with a fresh cross-compiler works.
6721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6722 # <limits.h> exists even on freestanding compilers.
6723 # On the NeXT, cc -E runs the code through the compiler's parser,
6724 # not just through cpp. "Syntax error" is here to catch this case.
6725 cat >conftest.$ac_ext <<_ACEOF
6726/* confdefs.h. */
6727_ACEOF
6728cat confdefs.h >>conftest.$ac_ext
6729cat >>conftest.$ac_ext <<_ACEOF
6730/* end confdefs.h. */
6731#ifdef __STDC__
6732# include <limits.h>
6733#else
6734# include <assert.h>
6735#endif
6736 Syntax error
6737_ACEOF
6738if { (ac_try="$ac_cpp conftest.$ac_ext"
6739case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742esac
6743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev/null && {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 }; then
6754 :
6755else
6756 echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
6758
6759 # Broken: fails on valid input.
6760continue
6761fi
6762
6763rm -f conftest.err conftest.$ac_ext
6764
6765 # OK, works on sane cases. Now check whether nonexistent headers
6766 # can be detected and how.
6767 cat >conftest.$ac_ext <<_ACEOF
6768/* confdefs.h. */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h. */
6773#include <ac_nonexistent.h>
6774_ACEOF
6775if { (ac_try="$ac_cpp conftest.$ac_ext"
6776case "(($ac_try" in
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6779esac
6780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } >/dev/null && {
6788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 }; then
6791 # Broken: success on invalid input.
6792continue
6793else
6794 echo "$as_me: failed program was:" >&5
6795sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 # Passes both tests.
6798ac_preproc_ok=:
6799break
6800fi
6801
6802rm -f conftest.err conftest.$ac_ext
6803
6804done
6805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6806rm -f conftest.err conftest.$ac_ext
6807if $ac_preproc_ok; then
6808 break
6809fi
6810
6811 done
6812 ac_cv_prog_CPP=$CPP
6813
6814fi
6815 CPP=$ac_cv_prog_CPP
6816else
6817 ac_cv_prog_CPP=$CPP
6818fi
6819{ echo "$as_me:$LINENO: result: $CPP" >&5
6820echo "${ECHO_T}$CPP" >&6; }
6821ac_preproc_ok=false
6822for ac_c_preproc_warn_flag in '' yes
6823do
6824 # Use a header file that comes with gcc, so configuring glibc
6825 # with a fresh cross-compiler works.
6826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827 # <limits.h> exists even on freestanding compilers.
6828 # On the NeXT, cc -E runs the code through the compiler's parser,
6829 # not just through cpp. "Syntax error" is here to catch this case.
6830 cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h. */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h. */
6836#ifdef __STDC__
6837# include <limits.h>
6838#else
6839# include <assert.h>
6840#endif
6841 Syntax error
6842_ACEOF
6843if { (ac_try="$ac_cpp conftest.$ac_ext"
6844case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847esac
6848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6850 ac_status=$?
6851 grep -v '^ *+' conftest.er1 >conftest.err
6852 rm -f conftest.er1
6853 cat conftest.err >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } >/dev/null && {
6856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6857 test ! -s conftest.err
6858 }; then
6859 :
6860else
6861 echo "$as_me: failed program was:" >&5
6862sed 's/^/| /' conftest.$ac_ext >&5
6863
6864 # Broken: fails on valid input.
6865continue
6866fi
6867
6868rm -f conftest.err conftest.$ac_ext
6869
6870 # OK, works on sane cases. Now check whether nonexistent headers
6871 # can be detected and how.
6872 cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
6878#include <ac_nonexistent.h>
6879_ACEOF
6880if { (ac_try="$ac_cpp conftest.$ac_ext"
6881case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884esac
6885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } >/dev/null && {
6893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6894 test ! -s conftest.err
6895 }; then
6896 # Broken: success on invalid input.
6897continue
6898else
6899 echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 # Passes both tests.
6903ac_preproc_ok=:
6904break
6905fi
6906
6907rm -f conftest.err conftest.$ac_ext
6908
6909done
6910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6911rm -f conftest.err conftest.$ac_ext
6912if $ac_preproc_ok; then
6913 :
6914else
6915 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6916See \`config.log' for more details." >&5
6917echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6918See \`config.log' for more details." >&2;}
6919 { (exit 1); exit 1; }; }
6920fi
6921
6922ac_ext=c
6923ac_cpp='$CPP $CPPFLAGS'
6924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
6928
6929{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6930echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6931if test "${ac_cv_header_stdc+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934 cat >conftest.$ac_ext <<_ACEOF
6935/* confdefs.h. */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h. */
6940#include <stdlib.h>
6941#include <stdarg.h>
6942#include <string.h>
6943#include <float.h>
6944
6945int
6946main ()
6947{
6948
6949 ;
6950 return 0;
6951}
6952_ACEOF
6953rm -f conftest.$ac_objext
6954if { (ac_try="$ac_compile"
6955case "(($ac_try" in
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6958esac
6959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_compile") 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && {
6967 test -z "$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 } && test -s conftest.$ac_objext; then
6970 ac_cv_header_stdc=yes
6971else
6972 echo "$as_me: failed program was:" >&5
6973sed 's/^/| /' conftest.$ac_ext >&5
6974
6975 ac_cv_header_stdc=no
6976fi
6977
6978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979
6980if test $ac_cv_header_stdc = yes; then
6981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6982 cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h. */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h. */
6988#include <string.h>
6989
6990_ACEOF
6991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992 $EGREP "memchr" >/dev/null 2>&1; then
6993 :
6994else
6995 ac_cv_header_stdc=no
6996fi
6997rm -f conftest*
6998
6999fi
7000
7001if test $ac_cv_header_stdc = yes; then
7002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7003 cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h. */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h. */
7009#include <stdlib.h>
7010
7011_ACEOF
7012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013 $EGREP "free" >/dev/null 2>&1; then
7014 :
7015else
7016 ac_cv_header_stdc=no
7017fi
7018rm -f conftest*
7019
7020fi
7021
7022if test $ac_cv_header_stdc = yes; then
7023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7024 if test "$cross_compiling" = yes; then
7025 :
7026else
7027 cat >conftest.$ac_ext <<_ACEOF
7028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
7033#include <ctype.h>
7034#include <stdlib.h>
7035#if ((' ' & 0x0FF) == 0x020)
7036# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7037# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7038#else
7039# define ISLOWER(c) \
7040 (('a' <= (c) && (c) <= 'i') \
7041 || ('j' <= (c) && (c) <= 'r') \
7042 || ('s' <= (c) && (c) <= 'z'))
7043# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7044#endif
7045
7046#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7047int
7048main ()
7049{
7050 int i;
7051 for (i = 0; i < 256; i++)
7052 if (XOR (islower (i), ISLOWER (i))
7053 || toupper (i) != TOUPPER (i))
7054 return 2;
7055 return 0;
7056}
7057_ACEOF
7058rm -f conftest$ac_exeext
7059if { (ac_try="$ac_link"
7060case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063esac
7064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_link") 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7069 { (case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_try") 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 :
7079else
7080 echo "$as_me: program exited with status $ac_status" >&5
7081echo "$as_me: failed program was:" >&5
7082sed 's/^/| /' conftest.$ac_ext >&5
7083
7084( exit $ac_status )
7085ac_cv_header_stdc=no
7086fi
7087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7088fi
7089
7090
7091fi
7092fi
7093{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7094echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7095if test $ac_cv_header_stdc = yes; then
7096
7097cat >>confdefs.h <<\_ACEOF
7098#define STDC_HEADERS 1
7099_ACEOF
7100
7101fi
7102
7103# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7114 inttypes.h stdint.h unistd.h
7115do
7116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7117{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121else
7122 cat >conftest.$ac_ext <<_ACEOF
7123/* confdefs.h. */
7124_ACEOF
7125cat confdefs.h >>conftest.$ac_ext
7126cat >>conftest.$ac_ext <<_ACEOF
7127/* end confdefs.h. */
7128$ac_includes_default
7129
7130#include <$ac_header>
7131_ACEOF
7132rm -f conftest.$ac_objext
7133if { (ac_try="$ac_compile"
7134case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137esac
7138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_c_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7149 eval "$as_ac_Header=yes"
7150else
7151 echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154 eval "$as_ac_Header=no"
7155fi
7156
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158fi
7159ac_res=`eval echo '${'$as_ac_Header'}'`
7160 { echo "$as_me:$LINENO: result: $ac_res" >&5
7161echo "${ECHO_T}$ac_res" >&6; }
7162if test `eval echo '${'$as_ac_Header'}'` = yes; then
7163 cat >>confdefs.h <<_ACEOF
7164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165_ACEOF
7166
7167fi
7168
7169done
7170
7171
7172
7173for ac_header in dlfcn.h
7174do
7175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7176{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181 cat >conftest.$ac_ext <<_ACEOF
7182/* confdefs.h. */
7183_ACEOF
7184cat confdefs.h >>conftest.$ac_ext
7185cat >>conftest.$ac_ext <<_ACEOF
7186/* end confdefs.h. */
7187$ac_includes_default
7188
7189#include <$ac_header>
7190_ACEOF
7191rm -f conftest.$ac_objext
7192if { (ac_try="$ac_compile"
7193case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196esac
7197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 eval "$as_ac_Header=yes"
7209else
7210 echo "$as_me: failed program was:" >&5
7211sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 eval "$as_ac_Header=no"
7214fi
7215
7216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217fi
7218ac_res=`eval echo '${'$as_ac_Header'}'`
7219 { echo "$as_me:$LINENO: result: $ac_res" >&5
7220echo "${ECHO_T}$ac_res" >&6; }
7221if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224_ACEOF
7225
7226fi
7227
7228done
7229
7230
7231
7232ac_ext=cpp
7233ac_cpp='$CXXCPP $CPPFLAGS'
7234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7237if test -z "$CXX"; then
7238 if test -n "$CCC"; then
7239 CXX=$CCC
7240 else
7241 if test -n "$ac_tool_prefix"; then
7242 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7243 do
7244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248if test "${ac_cv_prog_CXX+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251 if test -n "$CXX"; then
7252 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265done
7266done
7267IFS=$as_save_IFS
7268
7269fi
7270fi
7271CXX=$ac_cv_prog_CXX
7272if test -n "$CXX"; then
7273 { echo "$as_me:$LINENO: result: $CXX" >&5
7274echo "${ECHO_T}$CXX" >&6; }
7275else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6; }
7278fi
7279
7280
7281 test -n "$CXX" && break
7282 done
7283fi
7284if test -z "$CXX"; then
7285 ac_ct_CXX=$CXX
7286 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7287do
7288 # Extract the first word of "$ac_prog", so it can be a program name with args.
7289set dummy $ac_prog; ac_word=$2
7290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7292if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 if test -n "$ac_ct_CXX"; then
7296 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_prog_ac_ct_CXX="$ac_prog"
7306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 break 2
7308 fi
7309done
7310done
7311IFS=$as_save_IFS
7312
7313fi
7314fi
7315ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7316if test -n "$ac_ct_CXX"; then
7317 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7318echo "${ECHO_T}$ac_ct_CXX" >&6; }
7319else
7320 { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
7322fi
7323
7324
7325 test -n "$ac_ct_CXX" && break
7326done
7327
7328 if test "x$ac_ct_CXX" = x; then
7329 CXX="g++"
7330 else
7331 case $cross_compiling:$ac_tool_warned in
7332yes:)
7333{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7334whose name does not start with the host triplet. If you think this
7335configuration is useful to you, please write to autoconf@gnu.org." >&5
7336echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7337whose name does not start with the host triplet. If you think this
7338configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341 CXX=$ac_ct_CXX
7342 fi
7343fi
7344
7345 fi
7346fi
7347# Provide some information about the compiler.
7348echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7349ac_compiler=`set X $ac_compile; echo $2`
7350{ (ac_try="$ac_compiler --version >&5"
7351case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354esac
7355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compiler --version >&5") 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }
7360{ (ac_try="$ac_compiler -v >&5"
7361case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7364esac
7365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_compiler -v >&5") 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }
7370{ (ac_try="$ac_compiler -V >&5"
7371case "(($ac_try" in
7372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7374esac
7375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7376 (eval "$ac_compiler -V >&5") 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }
7380
7381{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7382echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
7383if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h. */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h. */
7392
7393int
7394main ()
7395{
7396#ifndef __GNUC__
7397 choke me
7398#endif
7399
7400 ;
7401 return 0;
7402}
7403_ACEOF
7404rm -f conftest.$ac_objext
7405if { (ac_try="$ac_compile"
7406case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409esac
7410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_cxx_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7421 ac_compiler_gnu=yes
7422else
7423 echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 ac_compiler_gnu=no
7427fi
7428
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7431
7432fi
7433{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7434echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7435GXX=`test $ac_compiler_gnu = yes && echo yes`
7436ac_test_CXXFLAGS=${CXXFLAGS+set}
7437ac_save_CXXFLAGS=$CXXFLAGS
7438{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7439echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7440if test "${ac_cv_prog_cxx_g+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7444 ac_cxx_werror_flag=yes
7445 ac_cv_prog_cxx_g=no
7446 CXXFLAGS="-g"
7447 cat >conftest.$ac_ext <<_ACEOF
7448/* confdefs.h. */
7449_ACEOF
7450cat confdefs.h >>conftest.$ac_ext
7451cat >>conftest.$ac_ext <<_ACEOF
7452/* end confdefs.h. */
7453
7454int
7455main ()
7456{
7457
7458 ;
7459 return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext
7463if { (ac_try="$ac_compile"
7464case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467esac
7468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_cxx_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7479 ac_cv_prog_cxx_g=yes
7480else
7481 echo "$as_me: failed program was:" >&5
7482sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 CXXFLAGS=""
7485 cat >conftest.$ac_ext <<_ACEOF
7486/* confdefs.h. */
7487_ACEOF
7488cat confdefs.h >>conftest.$ac_ext
7489cat >>conftest.$ac_ext <<_ACEOF
7490/* end confdefs.h. */
7491
7492int
7493main ()
7494{
7495
7496 ;
7497 return 0;
7498}
7499_ACEOF
7500rm -f conftest.$ac_objext
7501if { (ac_try="$ac_compile"
7502case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505esac
7506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_cxx_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 :
7518else
7519 echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7523 CXXFLAGS="-g"
7524 cat >conftest.$ac_ext <<_ACEOF
7525/* confdefs.h. */
7526_ACEOF
7527cat confdefs.h >>conftest.$ac_ext
7528cat >>conftest.$ac_ext <<_ACEOF
7529/* end confdefs.h. */
7530
7531int
7532main ()
7533{
7534
7535 ;
7536 return 0;
7537}
7538_ACEOF
7539rm -f conftest.$ac_objext
7540if { (ac_try="$ac_compile"
7541case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544esac
7545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_compile") 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } && {
7553 test -z "$ac_cxx_werror_flag" ||
7554 test ! -s conftest.err
7555 } && test -s conftest.$ac_objext; then
7556 ac_cv_prog_cxx_g=yes
7557else
7558 echo "$as_me: failed program was:" >&5
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
7561
7562fi
7563
7564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565fi
7566
7567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568fi
7569
7570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7572fi
7573{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7574echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7575if test "$ac_test_CXXFLAGS" = set; then
7576 CXXFLAGS=$ac_save_CXXFLAGS
7577elif test $ac_cv_prog_cxx_g = yes; then
7578 if test "$GXX" = yes; then
7579 CXXFLAGS="-g -O2"
7580 else
7581 CXXFLAGS="-g"
7582 fi
7583else
7584 if test "$GXX" = yes; then
7585 CXXFLAGS="-O2"
7586 else
7587 CXXFLAGS=
7588 fi
7589fi
7590ac_ext=cpp
7591ac_cpp='$CXXCPP $CPPFLAGS'
7592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7595
7596depcc="$CXX" am_compiler_list=
7597
7598{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7599echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7600if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602else
7603 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7604 # We make a subdir and do the tests there. Otherwise we can end up
7605 # making bogus files that we don't know about and never remove. For
7606 # instance it was reported that on HP-UX the gcc test will end up
7607 # making a dummy file named `D' -- because `-MD' means `put the output
7608 # in D'.
7609 mkdir conftest.dir
7610 # Copy depcomp to subdir because otherwise we won't find it if we're
7611 # using a relative directory.
7612 cp "$am_depcomp" conftest.dir
7613 cd conftest.dir
7614 # We will build objects and dependencies in a subdirectory because
7615 # it helps to detect inapplicable dependency modes. For instance
7616 # both Tru64's cc and ICC support -MD to output dependencies as a
7617 # side effect of compilation, but ICC will put the dependencies in
7618 # the current directory while Tru64 will put them in the object
7619 # directory.
7620 mkdir sub
7621
7622 am_cv_CXX_dependencies_compiler_type=none
7623 if test "$am_compiler_list" = ""; then
7624 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7625 fi
7626 for depmode in $am_compiler_list; do
7627 # Setup a source with many dependencies, because some compilers
7628 # like to wrap large dependency lists on column 80 (with \), and
7629 # we should not choose a depcomp mode which is confused by this.
7630 #
7631 # We need to recreate these files for each test, as the compiler may
7632 # overwrite some of them when testing with obscure command lines.
7633 # This happens at least with the AIX C compiler.
7634 : > sub/conftest.c
7635 for i in 1 2 3 4 5 6; do
7636 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7637 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7638 # Solaris 8's {/usr,}/bin/sh.
7639 touch sub/conftst$i.h
7640 done
7641 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7642
7643 case $depmode in
7644 nosideeffect)
7645 # after this tag, mechanisms are not by side-effect, so they'll
7646 # only be used when explicitly requested
7647 if test "x$enable_dependency_tracking" = xyes; then
7648 continue
7649 else
7650 break
7651 fi
7652 ;;
7653 none) break ;;
7654 esac
7655 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7656 # mode. It turns out that the SunPro C++ compiler does not properly
7657 # handle `-M -o', and we need to detect this.
7658 if depmode=$depmode \
7659 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7661 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7662 >/dev/null 2>conftest.err &&
7663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7665 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7667 # icc doesn't choke on unknown options, it will just issue warnings
7668 # or remarks (even with -Werror). So we grep stderr for any message
7669 # that says an option was ignored or not supported.
7670 # When given -MP, icc 7.0 and 7.1 complain thusly:
7671 # icc: Command line warning: ignoring option '-M'; no argument required
7672 # The diagnosis changed in icc 8.0:
7673 # icc: Command line remark: option '-MP' not supported
7674 if (grep 'ignoring option' conftest.err ||
7675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7676 am_cv_CXX_dependencies_compiler_type=$depmode
7677 break
7678 fi
7679 fi
7680 done
7681
7682 cd ..
7683 rm -rf conftest.dir
7684else
7685 am_cv_CXX_dependencies_compiler_type=none
7686fi
7687
7688fi
7689{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7690echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7691CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7692
7693 if
7694 test "x$enable_dependency_tracking" != xno \
7695 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7696 am__fastdepCXX_TRUE=
7697 am__fastdepCXX_FALSE='#'
7698else
7699 am__fastdepCXX_TRUE='#'
7700 am__fastdepCXX_FALSE=
7701fi
7702
7703
7704if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7706 (test "X$CXX" != "Xg++"))) ; then
7707 ac_ext=cpp
7708ac_cpp='$CXXCPP $CPPFLAGS'
7709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7712{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7713echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7714if test -z "$CXXCPP"; then
7715 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718 # Double quotes because CXXCPP needs to be expanded
7719 for CXXCPP in "$CXX -E" "/lib/cpp"
7720 do
7721 ac_preproc_ok=false
7722for ac_cxx_preproc_warn_flag in '' yes
7723do
7724 # Use a header file that comes with gcc, so configuring glibc
7725 # with a fresh cross-compiler works.
7726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727 # <limits.h> exists even on freestanding compilers.
7728 # On the NeXT, cc -E runs the code through the compiler's parser,
7729 # not just through cpp. "Syntax error" is here to catch this case.
7730 cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736#ifdef __STDC__
7737# include <limits.h>
7738#else
7739# include <assert.h>
7740#endif
7741 Syntax error
7742_ACEOF
7743if { (ac_try="$ac_cpp conftest.$ac_ext"
7744case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747esac
7748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } >/dev/null && {
7756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7757 test ! -s conftest.err
7758 }; then
7759 :
7760else
7761 echo "$as_me: failed program was:" >&5
7762sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 # Broken: fails on valid input.
7765continue
7766fi
7767
7768rm -f conftest.err conftest.$ac_ext
7769
7770 # OK, works on sane cases. Now check whether nonexistent headers
7771 # can be detected and how.
7772 cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h. */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h. */
7778#include <ac_nonexistent.h>
7779_ACEOF
7780if { (ac_try="$ac_cpp conftest.$ac_ext"
7781case "(($ac_try" in
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7784esac
7785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7787 ac_status=$?
7788 grep -v '^ *+' conftest.er1 >conftest.err
7789 rm -f conftest.er1
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } >/dev/null && {
7793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7794 test ! -s conftest.err
7795 }; then
7796 # Broken: success on invalid input.
7797continue
7798else
7799 echo "$as_me: failed program was:" >&5
7800sed 's/^/| /' conftest.$ac_ext >&5
7801
7802 # Passes both tests.
7803ac_preproc_ok=:
7804break
7805fi
7806
7807rm -f conftest.err conftest.$ac_ext
7808
7809done
7810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7811rm -f conftest.err conftest.$ac_ext
7812if $ac_preproc_ok; then
7813 break
7814fi
7815
7816 done
7817 ac_cv_prog_CXXCPP=$CXXCPP
7818
7819fi
7820 CXXCPP=$ac_cv_prog_CXXCPP
7821else
7822 ac_cv_prog_CXXCPP=$CXXCPP
7823fi
7824{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7825echo "${ECHO_T}$CXXCPP" >&6; }
7826ac_preproc_ok=false
7827for ac_cxx_preproc_warn_flag in '' yes
7828do
7829 # Use a header file that comes with gcc, so configuring glibc
7830 # with a fresh cross-compiler works.
7831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7832 # <limits.h> exists even on freestanding compilers.
7833 # On the NeXT, cc -E runs the code through the compiler's parser,
7834 # not just through cpp. "Syntax error" is here to catch this case.
7835 cat >conftest.$ac_ext <<_ACEOF
7836/* confdefs.h. */
7837_ACEOF
7838cat confdefs.h >>conftest.$ac_ext
7839cat >>conftest.$ac_ext <<_ACEOF
7840/* end confdefs.h. */
7841#ifdef __STDC__
7842# include <limits.h>
7843#else
7844# include <assert.h>
7845#endif
7846 Syntax error
7847_ACEOF
7848if { (ac_try="$ac_cpp conftest.$ac_ext"
7849case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } >/dev/null && {
7861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7862 test ! -s conftest.err
7863 }; then
7864 :
7865else
7866 echo "$as_me: failed program was:" >&5
7867sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 # Broken: fails on valid input.
7870continue
7871fi
7872
7873rm -f conftest.err conftest.$ac_ext
7874
7875 # OK, works on sane cases. Now check whether nonexistent headers
7876 # can be detected and how.
7877 cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
7883#include <ac_nonexistent.h>
7884_ACEOF
7885if { (ac_try="$ac_cpp conftest.$ac_ext"
7886case "(($ac_try" in
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7889esac
7890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } >/dev/null && {
7898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7899 test ! -s conftest.err
7900 }; then
7901 # Broken: success on invalid input.
7902continue
7903else
7904 echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 # Passes both tests.
7908ac_preproc_ok=:
7909break
7910fi
7911
7912rm -f conftest.err conftest.$ac_ext
7913
7914done
7915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7916rm -f conftest.err conftest.$ac_ext
7917if $ac_preproc_ok; then
7918 :
7919else
7920 _lt_caught_CXX_error=yes
7921fi
7922
7923ac_ext=cpp
7924ac_cpp='$CXXCPP $CPPFLAGS'
7925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7928
7929else
7930 _lt_caught_CXX_error=yes
7931fi
7932
7933
7934
7935
7936
7937# Set options
7938
7939
7940
7941 enable_dlopen=no
7942
7943
7944 enable_win32_dll=no
7945
7946
7947 # Check whether --enable-shared was given.
7948if test "${enable_shared+set}" = set; then
7949 enableval=$enable_shared; p=${PACKAGE-default}
7950 case $enableval in
7951 yes) enable_shared=yes ;;
7952 no) enable_shared=no ;;
7953 *)
7954 enable_shared=no
7955 # Look at the argument we got. We use all the common list separators.
7956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7957 for pkg in $enableval; do
7958 IFS="$lt_save_ifs"
7959 if test "X$pkg" = "X$p"; then
7960 enable_shared=yes
7961 fi
7962 done
7963 IFS="$lt_save_ifs"
7964 ;;
7965 esac
7966else
7967 enable_shared=yes
7968fi
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 # Check whether --enable-static was given.
7979if test "${enable_static+set}" = set; then
7980 enableval=$enable_static; p=${PACKAGE-default}
7981 case $enableval in
7982 yes) enable_static=yes ;;
7983 no) enable_static=no ;;
7984 *)
7985 enable_static=no
7986 # Look at the argument we got. We use all the common list separators.
7987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7988 for pkg in $enableval; do
7989 IFS="$lt_save_ifs"
7990 if test "X$pkg" = "X$p"; then
7991 enable_static=yes
7992 fi
7993 done
7994 IFS="$lt_save_ifs"
7995 ;;
7996 esac
7997else
7998 enable_static=yes
7999fi
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010# Check whether --with-pic was given.
8011if test "${with_pic+set}" = set; then
8012 withval=$with_pic; pic_mode="$withval"
8013else
8014 pic_mode=default
8015fi
8016
8017
8018test -z "$pic_mode" && pic_mode=default
8019
8020
8021
8022
8023
8024
8025
8026 # Check whether --enable-fast-install was given.
8027if test "${enable_fast_install+set}" = set; then
8028 enableval=$enable_fast_install; p=${PACKAGE-default}
8029 case $enableval in
8030 yes) enable_fast_install=yes ;;
8031 no) enable_fast_install=no ;;
8032 *)
8033 enable_fast_install=no
8034 # Look at the argument we got. We use all the common list separators.
8035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8036 for pkg in $enableval; do
8037 IFS="$lt_save_ifs"
8038 if test "X$pkg" = "X$p"; then
8039 enable_fast_install=yes
8040 fi
8041 done
8042 IFS="$lt_save_ifs"
8043 ;;
8044 esac
8045else
8046 enable_fast_install=yes
8047fi
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059# This can be used to rebuild libtool when needed
8060LIBTOOL_DEPS="$ltmain"
8061
8062# Always use our own libtool.
8063LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089test -z "$LN_S" && LN_S="ln -s"
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104if test -n "${ZSH_VERSION+set}" ; then
8105 setopt NO_GLOB_SUBST
8106fi
8107
8108{ echo "$as_me:$LINENO: checking for objdir" >&5
8109echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8110if test "${lt_cv_objdir+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 rm -f .libs 2>/dev/null
8114mkdir .libs 2>/dev/null
8115if test -d .libs; then
8116 lt_cv_objdir=.libs
8117else
8118 # MS-DOS does not allow filenames that begin with a dot.
8119 lt_cv_objdir=_libs
8120fi
8121rmdir .libs 2>/dev/null
8122fi
8123{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8124echo "${ECHO_T}$lt_cv_objdir" >&6; }
8125objdir=$lt_cv_objdir
8126
8127
8128
8129
8130
8131cat >>confdefs.h <<_ACEOF
8132#define LT_OBJDIR "$lt_cv_objdir/"
8133_ACEOF
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151case $host_os in
8152aix3*)
8153 # AIX sometimes has problems with the GCC collect2 program. For some
8154 # reason, if we set the COLLECT_NAMES environment variable, the problems
8155 # vanish in a puff of smoke.
8156 if test "X${COLLECT_NAMES+set}" != Xset; then
8157 COLLECT_NAMES=
8158 export COLLECT_NAMES
8159 fi
8160 ;;
8161esac
8162
8163# Sed substitution that helps us do robust quoting. It backslashifies
8164# metacharacters that are still active within double-quoted strings.
8165sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8166
8167# Same as above, but do not quote variable references.
8168double_quote_subst='s/\(["`\\]\)/\\\1/g'
8169
8170# Sed substitution to delay expansion of an escaped shell variable in a
8171# double_quote_subst'ed string.
8172delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8173
8174# Sed substitution to delay expansion of an escaped single quote.
8175delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8176
8177# Sed substitution to avoid accidental globbing in evaled expressions
8178no_glob_subst='s/\*/\\\*/g'
8179
8180# Global variables:
8181ofile=libtool
8182can_build_shared=yes
8183
8184# All known linkers require a `.a' archive for static linking (except MSVC,
8185# which needs '.lib').
8186libext=a
8187
8188with_gnu_ld="$lt_cv_prog_gnu_ld"
8189
8190old_CC="$CC"
8191old_CFLAGS="$CFLAGS"
8192
8193# Set sane defaults for various variables
8194test -z "$CC" && CC=cc
8195test -z "$LTCC" && LTCC=$CC
8196test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8197test -z "$LD" && LD=ld
8198test -z "$ac_objext" && ac_objext=o
8199
8200for cc_temp in $compiler""; do
8201 case $cc_temp in
8202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8204 \-*) ;;
8205 *) break;;
8206 esac
8207done
8208cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8209
8210
8211# Only perform the check for file, if the check method requires it
8212test -z "$MAGIC_CMD" && MAGIC_CMD=file
8213case $deplibs_check_method in
8214file_magic*)
8215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8216 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8217echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8218if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220else
8221 case $MAGIC_CMD in
8222[\\/*] | ?:[\\/]*)
8223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8224 ;;
8225*)
8226 lt_save_MAGIC_CMD="$MAGIC_CMD"
8227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8229 for ac_dir in $ac_dummy; do
8230 IFS="$lt_save_ifs"
8231 test -z "$ac_dir" && ac_dir=.
8232 if test -f $ac_dir/${ac_tool_prefix}file; then
8233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8234 if test -n "$file_magic_test_file"; then
8235 case $deplibs_check_method in
8236 "file_magic "*)
8237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8240 $EGREP "$file_magic_regex" > /dev/null; then
8241 :
8242 else
8243 cat <<_LT_EOF 1>&2
8244
8245*** Warning: the command libtool uses to detect shared libraries,
8246*** $file_magic_cmd, produces output that libtool cannot recognize.
8247*** The result is that libtool may fail to recognize shared libraries
8248*** as such. This will affect the creation of libtool libraries that
8249*** depend on shared libraries, but programs linked with such libtool
8250*** libraries will work regardless of this problem. Nevertheless, you
8251*** may want to report the problem to your system manager and/or to
8252*** bug-libtool@gnu.org
8253
8254_LT_EOF
8255 fi ;;
8256 esac
8257 fi
8258 break
8259 fi
8260 done
8261 IFS="$lt_save_ifs"
8262 MAGIC_CMD="$lt_save_MAGIC_CMD"
8263 ;;
8264esac
8265fi
8266
8267MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8268if test -n "$MAGIC_CMD"; then
8269 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8270echo "${ECHO_T}$MAGIC_CMD" >&6; }
8271else
8272 { echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6; }
8274fi
8275
8276
8277
8278
8279
8280if test -z "$lt_cv_path_MAGIC_CMD"; then
8281 if test -n "$ac_tool_prefix"; then
8282 { echo "$as_me:$LINENO: checking for file" >&5
8283echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8284if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286else
8287 case $MAGIC_CMD in
8288[\\/*] | ?:[\\/]*)
8289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290 ;;
8291*)
8292 lt_save_MAGIC_CMD="$MAGIC_CMD"
8293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8295 for ac_dir in $ac_dummy; do
8296 IFS="$lt_save_ifs"
8297 test -z "$ac_dir" && ac_dir=.
8298 if test -f $ac_dir/file; then
8299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8300 if test -n "$file_magic_test_file"; then
8301 case $deplibs_check_method in
8302 "file_magic "*)
8303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8306 $EGREP "$file_magic_regex" > /dev/null; then
8307 :
8308 else
8309 cat <<_LT_EOF 1>&2
8310
8311*** Warning: the command libtool uses to detect shared libraries,
8312*** $file_magic_cmd, produces output that libtool cannot recognize.
8313*** The result is that libtool may fail to recognize shared libraries
8314*** as such. This will affect the creation of libtool libraries that
8315*** depend on shared libraries, but programs linked with such libtool
8316*** libraries will work regardless of this problem. Nevertheless, you
8317*** may want to report the problem to your system manager and/or to
8318*** bug-libtool@gnu.org
8319
8320_LT_EOF
8321 fi ;;
8322 esac
8323 fi
8324 break
8325 fi
8326 done
8327 IFS="$lt_save_ifs"
8328 MAGIC_CMD="$lt_save_MAGIC_CMD"
8329 ;;
8330esac
8331fi
8332
8333MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8334if test -n "$MAGIC_CMD"; then
8335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8336echo "${ECHO_T}$MAGIC_CMD" >&6; }
8337else
8338 { echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6; }
8340fi
8341
8342
8343 else
8344 MAGIC_CMD=:
8345 fi
8346fi
8347
8348 fi
8349 ;;
8350esac
8351
8352# Use C for the default configuration in the libtool script
8353
8354lt_save_CC="$CC"
8355ac_ext=c
8356ac_cpp='$CPP $CPPFLAGS'
8357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360
8361
8362# Source file extension for C test sources.
8363ac_ext=c
8364
8365# Object file extension for compiled C test sources.
8366objext=o
8367objext=$objext
8368
8369# Code to be used in simple compile tests
8370lt_simple_compile_test_code="int some_variable = 0;"
8371
8372# Code to be used in simple link tests
8373lt_simple_link_test_code='int main(){return(0);}'
8374
8375
8376
8377
8378
8379
8380
8381# If no C compiler was specified, use CC.
8382LTCC=${LTCC-"$CC"}
8383
8384# If no C compiler flags were specified, use CFLAGS.
8385LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8386
8387# Allow CC to be a program name with arguments.
8388compiler=$CC
8389
8390# Save the default compiler, since it gets overwritten when the other
8391# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8392compiler_DEFAULT=$CC
8393
8394# save warnings/boilerplate of simple test code
8395ac_outfile=conftest.$ac_objext
8396echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8397eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8398_lt_compiler_boilerplate=`cat conftest.err`
8399$RM conftest*
8400
8401ac_outfile=conftest.$ac_objext
8402echo "$lt_simple_link_test_code" >conftest.$ac_ext
8403eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8404_lt_linker_boilerplate=`cat conftest.err`
8405$RM -r conftest*
8406
8407
8408if test -n "$compiler"; then
8409
8410lt_prog_compiler_no_builtin_flag=
8411
8412if test "$GCC" = yes; then
8413 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8414
8415 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8416echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8417if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420 lt_cv_prog_compiler_rtti_exceptions=no
8421 ac_outfile=conftest.$ac_objext
8422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8423 lt_compiler_flag="-fno-rtti -fno-exceptions"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 # The option is referenced via a variable to avoid confusing sed.
8429 lt_compile=`echo "$ac_compile" | $SED \
8430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8432 -e 's:$: $lt_compiler_flag:'`
8433 (eval echo "\"\$as_me:8433: $lt_compile\"" >&5)
8434 (eval "$lt_compile" 2>conftest.err)
8435 ac_status=$?
8436 cat conftest.err >&5
8437 echo "$as_me:8437: \$? = $ac_status" >&5
8438 if (exit $ac_status) && test -s "$ac_outfile"; then
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings other than the usual output.
8441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_rtti_exceptions=yes
8445 fi
8446 fi
8447 $RM conftest*
8448
8449fi
8450{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8451echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8452
8453if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8454 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8455else
8456 :
8457fi
8458
8459fi
8460
8461
8462
8463
8464
8465
8466 lt_prog_compiler_wl=
8467lt_prog_compiler_pic=
8468lt_prog_compiler_static=
8469
8470{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8471echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8472
8473 if test "$GCC" = yes; then
8474 lt_prog_compiler_wl='-Wl,'
8475 lt_prog_compiler_static='-static'
8476
8477 case $host_os in
8478 aix*)
8479 # All AIX code is PIC.
8480 if test "$host_cpu" = ia64; then
8481 # AIX 5 now supports IA64 processor
8482 lt_prog_compiler_static='-Bstatic'
8483 fi
8484 ;;
8485
8486 amigaos*)
8487 case $host_cpu in
8488 powerpc)
8489 # see comment about AmigaOS4 .so support
8490 lt_prog_compiler_pic='-fPIC'
8491 ;;
8492 m68k)
8493 # FIXME: we need at least 68020 code to build shared libraries, but
8494 # adding the `-m68020' flag to GCC prevents building anything better,
8495 # like `-m68040'.
8496 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8497 ;;
8498 esac
8499 ;;
8500
8501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8502 # PIC is the default for these OSes.
8503 ;;
8504
8505 mingw* | cygwin* | pw32* | os2*)
8506 # This hack is so that the source file can tell whether it is being
8507 # built for inclusion in a dll (and should export symbols for example).
8508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8509 # (--disable-auto-import) libraries
8510 lt_prog_compiler_pic='-DDLL_EXPORT'
8511 ;;
8512
8513 darwin* | rhapsody*)
8514 # PIC is the default on this platform
8515 # Common symbols not allowed in MH_DYLIB files
8516 lt_prog_compiler_pic='-fno-common'
8517 ;;
8518
8519 hpux*)
8520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8521 # not for PA HP-UX.
8522 case $host_cpu in
8523 hppa*64*|ia64*)
8524 # +Z the default
8525 ;;
8526 *)
8527 lt_prog_compiler_pic='-fPIC'
8528 ;;
8529 esac
8530 ;;
8531
8532 interix[3-9]*)
8533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8534 # Instead, we relocate shared libraries at runtime.
8535 ;;
8536
8537 msdosdjgpp*)
8538 # Just because we use GCC doesn't mean we suddenly get shared libraries
8539 # on systems that don't support them.
8540 lt_prog_compiler_can_build_shared=no
8541 enable_shared=no
8542 ;;
8543
8544 *nto* | *qnx*)
8545 # QNX uses GNU C++, but need to define -shared option too, otherwise
8546 # it will coredump.
8547 lt_prog_compiler_pic='-fPIC -shared'
8548 ;;
8549
8550 sysv4*MP*)
8551 if test -d /usr/nec; then
8552 lt_prog_compiler_pic=-Kconform_pic
8553 fi
8554 ;;
8555
8556 *)
8557 lt_prog_compiler_pic='-fPIC'
8558 ;;
8559 esac
8560 else
8561 # PORTME Check for flag to pass linker flags through the system compiler.
8562 case $host_os in
8563 aix*)
8564 lt_prog_compiler_wl='-Wl,'
8565 if test "$host_cpu" = ia64; then
8566 # AIX 5 now supports IA64 processor
8567 lt_prog_compiler_static='-Bstatic'
8568 else
8569 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8570 fi
8571 ;;
8572
8573 mingw* | cygwin* | pw32* | os2*)
8574 # This hack is so that the source file can tell whether it is being
8575 # built for inclusion in a dll (and should export symbols for example).
8576 lt_prog_compiler_pic='-DDLL_EXPORT'
8577 ;;
8578
8579 hpux9* | hpux10* | hpux11*)
8580 lt_prog_compiler_wl='-Wl,'
8581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8582 # not for PA HP-UX.
8583 case $host_cpu in
8584 hppa*64*|ia64*)
8585 # +Z the default
8586 ;;
8587 *)
8588 lt_prog_compiler_pic='+Z'
8589 ;;
8590 esac
8591 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8592 lt_prog_compiler_static='${wl}-a ${wl}archive'
8593 ;;
8594
8595 irix5* | irix6* | nonstopux*)
8596 lt_prog_compiler_wl='-Wl,'
8597 # PIC (with -KPIC) is the default.
8598 lt_prog_compiler_static='-non_shared'
8599 ;;
8600
8601 linux* | k*bsd*-gnu)
8602 case $cc_basename in
8603 icc* | ecc* | ifort*)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-KPIC'
8606 lt_prog_compiler_static='-static'
8607 ;;
8608 pgcc* | pgf77* | pgf90* | pgf95*)
8609 # Portland Group compilers (*not* the Pentium gcc compiler,
8610 # which looks to be a dead project)
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_pic='-fpic'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615 ccc*)
8616 lt_prog_compiler_wl='-Wl,'
8617 # All Alpha code is PIC.
8618 lt_prog_compiler_static='-non_shared'
8619 ;;
8620 xl*)
8621 # IBM XL C 8.0/Fortran 10.1 on PPC
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-qpic'
8624 lt_prog_compiler_static='-qstaticlink'
8625 ;;
8626 *)
8627 case `$CC -V 2>&1 | sed 5q` in
8628 *Sun\ C*)
8629 # Sun C 5.9
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 lt_prog_compiler_wl='-Wl,'
8633 ;;
8634 *Sun\ F*)
8635 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8636 lt_prog_compiler_pic='-KPIC'
8637 lt_prog_compiler_static='-Bstatic'
8638 lt_prog_compiler_wl=''
8639 ;;
8640 esac
8641 ;;
8642 esac
8643 ;;
8644
8645 newsos6)
8646 lt_prog_compiler_pic='-KPIC'
8647 lt_prog_compiler_static='-Bstatic'
8648 ;;
8649
8650 *nto* | *qnx*)
8651 # QNX uses GNU C++, but need to define -shared option too, otherwise
8652 # it will coredump.
8653 lt_prog_compiler_pic='-fPIC -shared'
8654 ;;
8655
8656 osf3* | osf4* | osf5*)
8657 lt_prog_compiler_wl='-Wl,'
8658 # All OSF/1 code is PIC.
8659 lt_prog_compiler_static='-non_shared'
8660 ;;
8661
8662 rdos*)
8663 lt_prog_compiler_static='-non_shared'
8664 ;;
8665
8666 solaris*)
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 case $cc_basename in
8670 f77* | f90* | f95*)
8671 lt_prog_compiler_wl='-Qoption ld ';;
8672 *)
8673 lt_prog_compiler_wl='-Wl,';;
8674 esac
8675 ;;
8676
8677 sunos4*)
8678 lt_prog_compiler_wl='-Qoption ld '
8679 lt_prog_compiler_pic='-PIC'
8680 lt_prog_compiler_static='-Bstatic'
8681 ;;
8682
8683 sysv4 | sysv4.2uw2* | sysv4.3*)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-Bstatic'
8687 ;;
8688
8689 sysv4*MP*)
8690 if test -d /usr/nec ;then
8691 lt_prog_compiler_pic='-Kconform_pic'
8692 lt_prog_compiler_static='-Bstatic'
8693 fi
8694 ;;
8695
8696 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 ;;
8701
8702 unicos*)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_can_build_shared=no
8705 ;;
8706
8707 uts4*)
8708 lt_prog_compiler_pic='-pic'
8709 lt_prog_compiler_static='-Bstatic'
8710 ;;
8711
8712 *)
8713 lt_prog_compiler_can_build_shared=no
8714 ;;
8715 esac
8716 fi
8717
8718case $host_os in
8719 # For platforms which do not support PIC, -DPIC is meaningless:
8720 *djgpp*)
8721 lt_prog_compiler_pic=
8722 ;;
8723 *)
8724 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8725 ;;
8726esac
8727{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8728echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8729
8730
8731
8732
8733
8734
8735#
8736# Check to make sure the PIC flag actually works.
8737#
8738if test -n "$lt_prog_compiler_pic"; then
8739 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8740echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8741if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743else
8744 lt_cv_prog_compiler_pic_works=no
8745 ac_outfile=conftest.$ac_objext
8746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8747 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8748 # Insert the option either (1) after the last *FLAGS variable, or
8749 # (2) before a word containing "conftest.", or (3) at the end.
8750 # Note that $ac_compile itself does not contain backslashes and begins
8751 # with a dollar sign (not a hyphen), so the echo should work correctly.
8752 # The option is referenced via a variable to avoid confusing sed.
8753 lt_compile=`echo "$ac_compile" | $SED \
8754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8756 -e 's:$: $lt_compiler_flag:'`
8757 (eval echo "\"\$as_me:8757: $lt_compile\"" >&5)
8758 (eval "$lt_compile" 2>conftest.err)
8759 ac_status=$?
8760 cat conftest.err >&5
8761 echo "$as_me:8761: \$? = $ac_status" >&5
8762 if (exit $ac_status) && test -s "$ac_outfile"; then
8763 # The compiler can only warn and ignore the option if not recognized
8764 # So say no if there are warnings other than the usual output.
8765 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8767 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8768 lt_cv_prog_compiler_pic_works=yes
8769 fi
8770 fi
8771 $RM conftest*
8772
8773fi
8774{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8775echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8776
8777if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8778 case $lt_prog_compiler_pic in
8779 "" | " "*) ;;
8780 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8781 esac
8782else
8783 lt_prog_compiler_pic=
8784 lt_prog_compiler_can_build_shared=no
8785fi
8786
8787fi
8788
8789
8790
8791
8792
8793
8794#
8795# Check to make sure the static flag actually works.
8796#
8797wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8798{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8799echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8800if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803 lt_cv_prog_compiler_static_works=no
8804 save_LDFLAGS="$LDFLAGS"
8805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8806 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8808 # The linker can only warn and ignore the option if not recognized
8809 # So say no if there are warnings
8810 if test -s conftest.err; then
8811 # Append any errors to the config.log.
8812 cat conftest.err 1>&5
8813 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8815 if diff conftest.exp conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_static_works=yes
8817 fi
8818 else
8819 lt_cv_prog_compiler_static_works=yes
8820 fi
8821 fi
8822 $RM -r conftest*
8823 LDFLAGS="$save_LDFLAGS"
8824
8825fi
8826{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8827echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8828
8829if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8830 :
8831else
8832 lt_prog_compiler_static=
8833fi
8834
8835
8836
8837
8838
8839
8840
8841 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8842echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8843if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845else
8846 lt_cv_prog_compiler_c_o=no
8847 $RM -r conftest 2>/dev/null
8848 mkdir conftest
8849 cd conftest
8850 mkdir out
8851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8852
8853 lt_compiler_flag="-o out/conftest2.$ac_objext"
8854 # Insert the option either (1) after the last *FLAGS variable, or
8855 # (2) before a word containing "conftest.", or (3) at the end.
8856 # Note that $ac_compile itself does not contain backslashes and begins
8857 # with a dollar sign (not a hyphen), so the echo should work correctly.
8858 lt_compile=`echo "$ac_compile" | $SED \
8859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861 -e 's:$: $lt_compiler_flag:'`
8862 (eval echo "\"\$as_me:8862: $lt_compile\"" >&5)
8863 (eval "$lt_compile" 2>out/conftest.err)
8864 ac_status=$?
8865 cat out/conftest.err >&5
8866 echo "$as_me:8866: \$? = $ac_status" >&5
8867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8868 then
8869 # The compiler can only warn and ignore the option if not recognized
8870 # So say no if there are warnings
8871 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8874 lt_cv_prog_compiler_c_o=yes
8875 fi
8876 fi
8877 chmod u+w . 2>&5
8878 $RM conftest*
8879 # SGI C++ compiler will create directory out/ii_files/ for
8880 # template instantiation
8881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8882 $RM out/* && rmdir out
8883 cd ..
8884 $RM -r conftest
8885 $RM conftest*
8886
8887fi
8888{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8889echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8890
8891
8892
8893
8894
8895
8896 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8897echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8898if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900else
8901 lt_cv_prog_compiler_c_o=no
8902 $RM -r conftest 2>/dev/null
8903 mkdir conftest
8904 cd conftest
8905 mkdir out
8906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907
8908 lt_compiler_flag="-o out/conftest2.$ac_objext"
8909 # Insert the option either (1) after the last *FLAGS variable, or
8910 # (2) before a word containing "conftest.", or (3) at the end.
8911 # Note that $ac_compile itself does not contain backslashes and begins
8912 # with a dollar sign (not a hyphen), so the echo should work correctly.
8913 lt_compile=`echo "$ac_compile" | $SED \
8914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8916 -e 's:$: $lt_compiler_flag:'`
8917 (eval echo "\"\$as_me:8917: $lt_compile\"" >&5)
8918 (eval "$lt_compile" 2>out/conftest.err)
8919 ac_status=$?
8920 cat out/conftest.err >&5
8921 echo "$as_me:8921: \$? = $ac_status" >&5
8922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8923 then
8924 # The compiler can only warn and ignore the option if not recognized
8925 # So say no if there are warnings
8926 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8929 lt_cv_prog_compiler_c_o=yes
8930 fi
8931 fi
8932 chmod u+w . 2>&5
8933 $RM conftest*
8934 # SGI C++ compiler will create directory out/ii_files/ for
8935 # template instantiation
8936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8937 $RM out/* && rmdir out
8938 cd ..
8939 $RM -r conftest
8940 $RM conftest*
8941
8942fi
8943{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8944echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8945
8946
8947
8948
8949hard_links="nottested"
8950if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8951 # do not overwrite the value of need_locks provided by the user
8952 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8953echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8954 hard_links=yes
8955 $RM conftest*
8956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8957 touch conftest.a
8958 ln conftest.a conftest.b 2>&5 || hard_links=no
8959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8960 { echo "$as_me:$LINENO: result: $hard_links" >&5
8961echo "${ECHO_T}$hard_links" >&6; }
8962 if test "$hard_links" = no; then
8963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8964echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8965 need_locks=warn
8966 fi
8967else
8968 need_locks=no
8969fi
8970
8971
8972
8973
8974
8975
8976 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8977echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8978
8979 runpath_var=
8980 allow_undefined_flag=
8981 always_export_symbols=no
8982 archive_cmds=
8983 archive_expsym_cmds=
8984 compiler_needs_object=no
8985 enable_shared_with_static_runtimes=no
8986 export_dynamic_flag_spec=
8987 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8988 hardcode_automatic=no
8989 hardcode_direct=no
8990 hardcode_direct_absolute=no
8991 hardcode_libdir_flag_spec=
8992 hardcode_libdir_flag_spec_ld=
8993 hardcode_libdir_separator=
8994 hardcode_minus_L=no
8995 hardcode_shlibpath_var=unsupported
8996 inherit_rpath=no
8997 link_all_deplibs=unknown
8998 module_cmds=
8999 module_expsym_cmds=
9000 old_archive_from_new_cmds=
9001 old_archive_from_expsyms_cmds=
9002 thread_safe_flag_spec=
9003 whole_archive_flag_spec=
9004 # include_expsyms should be a list of space-separated symbols to be *always*
9005 # included in the symbol list
9006 include_expsyms=
9007 # exclude_expsyms can be an extended regexp of symbols to exclude
9008 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9009 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9010 # as well as any symbol that contains `d'.
9011 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9012 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9013 # platforms (ab)use it in PIC code, but their linkers get confused if
9014 # the symbol is explicitly referenced. Since portable code cannot
9015 # rely on this symbol name, it's probably fine to never include it in
9016 # preloaded symbol tables.
9017 # Exclude shared library initialization/finalization symbols.
9018 extract_expsyms_cmds=
9019
9020 case $host_os in
9021 cygwin* | mingw* | pw32*)
9022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9023 # When not using gcc, we currently assume that we are using
9024 # Microsoft Visual C++.
9025 if test "$GCC" != yes; then
9026 with_gnu_ld=no
9027 fi
9028 ;;
9029 interix*)
9030 # we just hope/assume this is gcc and not c89 (= MSVC++)
9031 with_gnu_ld=yes
9032 ;;
9033 openbsd*)
9034 with_gnu_ld=no
9035 ;;
9036 esac
9037
9038 ld_shlibs=yes
9039 if test "$with_gnu_ld" = yes; then
9040 # If archive_cmds runs LD, not CC, wlarc should be empty
9041 wlarc='${wl}'
9042
9043 # Set some defaults for GNU ld with shared library support. These
9044 # are reset later if shared libraries are not supported. Putting them
9045 # here allows them to be overridden if necessary.
9046 runpath_var=LD_RUN_PATH
9047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9048 export_dynamic_flag_spec='${wl}--export-dynamic'
9049 # ancient GNU ld didn't support --whole-archive et. al.
9050 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9051 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9052 else
9053 whole_archive_flag_spec=
9054 fi
9055 supports_anon_versioning=no
9056 case `$LD -v 2>&1` in
9057 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9058 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9059 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9060 *\ 2.11.*) ;; # other 2.11 versions
9061 *) supports_anon_versioning=yes ;;
9062 esac
9063
9064 # See if GNU ld supports shared libraries.
9065 case $host_os in
9066 aix[3-9]*)
9067 # On AIX/PPC, the GNU linker is very broken
9068 if test "$host_cpu" != ia64; then
9069 ld_shlibs=no
9070 cat <<_LT_EOF 1>&2
9071
9072*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9073*** to be unable to reliably create shared libraries on AIX.
9074*** Therefore, libtool is disabling shared libraries support. If you
9075*** really care for shared libraries, you may want to modify your PATH
9076*** so that a non-GNU linker is found, and then restart.
9077
9078_LT_EOF
9079 fi
9080 ;;
9081
9082 amigaos*)
9083 case $host_cpu in
9084 powerpc)
9085 # see comment about AmigaOS4 .so support
9086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087 archive_expsym_cmds=''
9088 ;;
9089 m68k)
9090 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)'
9091 hardcode_libdir_flag_spec='-L$libdir'
9092 hardcode_minus_L=yes
9093 ;;
9094 esac
9095 ;;
9096
9097 beos*)
9098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9099 allow_undefined_flag=unsupported
9100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9101 # support --undefined. This deserves some investigation. FIXME
9102 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 else
9104 ld_shlibs=no
9105 fi
9106 ;;
9107
9108 cygwin* | mingw* | pw32*)
9109 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9110 # as there is no search path for DLLs.
9111 hardcode_libdir_flag_spec='-L$libdir'
9112 allow_undefined_flag=unsupported
9113 always_export_symbols=no
9114 enable_shared_with_static_runtimes=yes
9115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9116
9117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9119 # If the export-symbols file already is a .def file (1st line
9120 # is EXPORTS), use it as is; otherwise, prepend...
9121 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9122 cp $export_symbols $output_objdir/$soname.def;
9123 else
9124 echo EXPORTS > $output_objdir/$soname.def;
9125 cat $export_symbols >> $output_objdir/$soname.def;
9126 fi~
9127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9128 else
9129 ld_shlibs=no
9130 fi
9131 ;;
9132
9133 interix[3-9]*)
9134 hardcode_direct=no
9135 hardcode_shlibpath_var=no
9136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9137 export_dynamic_flag_spec='${wl}-E'
9138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9139 # Instead, shared libraries are loaded at an image base (0x10000000 by
9140 # default) and relocated if they conflict, which is a slow very memory
9141 # consuming and fragmenting process. To avoid this, we pick a random,
9142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9145 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'
9146 ;;
9147
9148 gnu* | linux* | tpf* | k*bsd*-gnu)
9149 tmp_diet=no
9150 if test "$host_os" = linux-dietlibc; then
9151 case $cc_basename in
9152 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9153 esac
9154 fi
9155 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9156 && test "$tmp_diet" = no
9157 then
9158 tmp_addflag=
9159 tmp_sharedflag='-shared'
9160 case $cc_basename,$host_cpu in
9161 pgcc*) # Portland Group C compiler
9162 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9163 tmp_addflag=' $pic_flag'
9164 ;;
9165 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9166 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9167 tmp_addflag=' $pic_flag -Mnomain' ;;
9168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9169 tmp_addflag=' -i_dynamic' ;;
9170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9171 tmp_addflag=' -i_dynamic -nofor_main' ;;
9172 ifc* | ifort*) # Intel Fortran compiler
9173 tmp_addflag=' -nofor_main' ;;
9174 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9175 tmp_sharedflag='-qmkshrobj'
9176 tmp_addflag= ;;
9177 esac
9178 case `$CC -V 2>&1 | sed 5q` in
9179 *Sun\ C*) # Sun C 5.9
9180 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9181 compiler_needs_object=yes
9182 tmp_sharedflag='-G' ;;
9183 *Sun\ F*) # Sun Fortran 8.3
9184 tmp_sharedflag='-G' ;;
9185 esac
9186 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187
9188 if test "x$supports_anon_versioning" = xyes; then
9189 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191 echo "local: *; };" >> $output_objdir/$libname.ver~
9192 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9193 fi
9194
9195 case $cc_basename in
9196 xlf*)
9197 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9198 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9199 hardcode_libdir_flag_spec=
9200 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9201 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9202 if test "x$supports_anon_versioning" = xyes; then
9203 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9205 echo "local: *; };" >> $output_objdir/$libname.ver~
9206 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9207 fi
9208 ;;
9209 esac
9210 else
9211 ld_shlibs=no
9212 fi
9213 ;;
9214
9215 netbsd*)
9216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9217 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9218 wlarc=
9219 else
9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9222 fi
9223 ;;
9224
9225 solaris*)
9226 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9227 ld_shlibs=no
9228 cat <<_LT_EOF 1>&2
9229
9230*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9231*** create shared libraries on Solaris systems. Therefore, libtool
9232*** is disabling shared libraries support. We urge you to upgrade GNU
9233*** binutils to release 2.9.1 or newer. Another option is to modify
9234*** your PATH or compiler configuration so that the native linker is
9235*** used, and then restart.
9236
9237_LT_EOF
9238 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9241 else
9242 ld_shlibs=no
9243 fi
9244 ;;
9245
9246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9247 case `$LD -v 2>&1` in
9248 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9249 ld_shlibs=no
9250 cat <<_LT_EOF 1>&2
9251
9252*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9253*** reliably create shared libraries on SCO systems. Therefore, libtool
9254*** is disabling shared libraries support. We urge you to upgrade GNU
9255*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9256*** your PATH or compiler configuration so that the native linker is
9257*** used, and then restart.
9258
9259_LT_EOF
9260 ;;
9261 *)
9262 # For security reasons, it is highly recommended that you always
9263 # use absolute paths for naming shared libraries, and exclude the
9264 # DT_RUNPATH tag from executables and libraries. But doing so
9265 # requires that you compile everything twice, which is a pain.
9266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9270 else
9271 ld_shlibs=no
9272 fi
9273 ;;
9274 esac
9275 ;;
9276
9277 sunos4*)
9278 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9279 wlarc=
9280 hardcode_direct=yes
9281 hardcode_shlibpath_var=no
9282 ;;
9283
9284 *)
9285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9288 else
9289 ld_shlibs=no
9290 fi
9291 ;;
9292 esac
9293
9294 if test "$ld_shlibs" = no; then
9295 runpath_var=
9296 hardcode_libdir_flag_spec=
9297 export_dynamic_flag_spec=
9298 whole_archive_flag_spec=
9299 fi
9300 else
9301 # PORTME fill in a description of your system's linker (not GNU ld)
9302 case $host_os in
9303 aix3*)
9304 allow_undefined_flag=unsupported
9305 always_export_symbols=yes
9306 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'
9307 # Note: this linker hardcodes the directories in LIBPATH if there
9308 # are no directories specified by -L.
9309 hardcode_minus_L=yes
9310 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9311 # Neither direct hardcoding nor static linking is supported with a
9312 # broken collect2.
9313 hardcode_direct=unsupported
9314 fi
9315 ;;
9316
9317 aix[4-9]*)
9318 if test "$host_cpu" = ia64; then
9319 # On IA64, the linker does run time linking by default, so we don't
9320 # have to do anything special.
9321 aix_use_runtimelinking=no
9322 exp_sym_flag='-Bexport'
9323 no_entry_flag=""
9324 else
9325 # If we're using GNU nm, then we don't want the "-C" option.
9326 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9327 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9328 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9329 else
9330 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'
9331 fi
9332 aix_use_runtimelinking=no
9333
9334 # Test if we are trying to use run time linking or normal
9335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9336 # need to do runtime linking.
9337 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9338 for ld_flag in $LDFLAGS; do
9339 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9340 aix_use_runtimelinking=yes
9341 break
9342 fi
9343 done
9344 ;;
9345 esac
9346
9347 exp_sym_flag='-bexport'
9348 no_entry_flag='-bnoentry'
9349 fi
9350
9351 # When large executables or shared objects are built, AIX ld can
9352 # have problems creating the table of contents. If linking a library
9353 # or program results in "error TOC overflow" add -mminimal-toc to
9354 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9355 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9356
9357 archive_cmds=''
9358 hardcode_direct=yes
9359 hardcode_direct_absolute=yes
9360 hardcode_libdir_separator=':'
9361 link_all_deplibs=yes
9362 file_list_spec='${wl}-f,'
9363
9364 if test "$GCC" = yes; then
9365 case $host_os in aix4.[012]|aix4.[012].*)
9366 # We only want to do this on AIX 4.2 and lower, the check
9367 # below for broken collect2 doesn't work under 4.3+
9368 collect2name=`${CC} -print-prog-name=collect2`
9369 if test -f "$collect2name" &&
9370 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9371 then
9372 # We have reworked collect2
9373 :
9374 else
9375 # We have old collect2
9376 hardcode_direct=unsupported
9377 # It fails to find uninstalled libraries when the uninstalled
9378 # path is not listed in the libpath. Setting hardcode_minus_L
9379 # to unsupported forces relinking
9380 hardcode_minus_L=yes
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_libdir_separator=
9383 fi
9384 ;;
9385 esac
9386 shared_flag='-shared'
9387 if test "$aix_use_runtimelinking" = yes; then
9388 shared_flag="$shared_flag "'${wl}-G'
9389 fi
9390 else
9391 # not using gcc
9392 if test "$host_cpu" = ia64; then
9393 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9394 # chokes on -Wl,-G. The following line is correct:
9395 shared_flag='-G'
9396 else
9397 if test "$aix_use_runtimelinking" = yes; then
9398 shared_flag='${wl}-G'
9399 else
9400 shared_flag='${wl}-bM:SRE'
9401 fi
9402 fi
9403 fi
9404
9405 # It seems that -bexpall does not export symbols beginning with
9406 # underscore (_), so it is better to generate a list of symbols to export.
9407 always_export_symbols=yes
9408 if test "$aix_use_runtimelinking" = yes; then
9409 # Warning - without using the other runtime loading flags (-brtl),
9410 # -berok will link without error, but may produce a broken library.
9411 allow_undefined_flag='-berok'
9412 # Determine the default libpath from the value encoded in an
9413 # empty executable.
9414 cat >conftest.$ac_ext <<_ACEOF
9415/* confdefs.h. */
9416_ACEOF
9417cat confdefs.h >>conftest.$ac_ext
9418cat >>conftest.$ac_ext <<_ACEOF
9419/* end confdefs.h. */
9420
9421int
9422main ()
9423{
9424
9425 ;
9426 return 0;
9427}
9428_ACEOF
9429rm -f conftest.$ac_objext conftest$ac_exeext
9430if { (ac_try="$ac_link"
9431case "(($ac_try" in
9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9434esac
9435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436 (eval "$ac_link") 2>conftest.er1
9437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && {
9443 test -z "$ac_c_werror_flag" ||
9444 test ! -s conftest.err
9445 } && test -s conftest$ac_exeext &&
9446 $as_test_x conftest$ac_exeext; then
9447
9448lt_aix_libpath_sed='
9449 /Import File Strings/,/^$/ {
9450 /^0/ {
9451 s/^0 *\(.*\)$/\1/
9452 p
9453 }
9454 }'
9455aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9456# Check for a 64-bit object if we didn't find anything.
9457if test -z "$aix_libpath"; then
9458 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9459fi
9460else
9461 echo "$as_me: failed program was:" >&5
9462sed 's/^/| /' conftest.$ac_ext >&5
9463
9464
9465fi
9466
9467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9468 conftest$ac_exeext conftest.$ac_ext
9469if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9470
9471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9472 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9473 else
9474 if test "$host_cpu" = ia64; then
9475 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9476 allow_undefined_flag="-z nodefs"
9477 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"
9478 else
9479 # Determine the default libpath from the value encoded in an
9480 # empty executable.
9481 cat >conftest.$ac_ext <<_ACEOF
9482/* confdefs.h. */
9483_ACEOF
9484cat confdefs.h >>conftest.$ac_ext
9485cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h. */
9487
9488int
9489main ()
9490{
9491
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496rm -f conftest.$ac_objext conftest$ac_exeext
9497if { (ac_try="$ac_link"
9498case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501esac
9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_link") 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest$ac_exeext &&
9513 $as_test_x conftest$ac_exeext; then
9514
9515lt_aix_libpath_sed='
9516 /Import File Strings/,/^$/ {
9517 /^0/ {
9518 s/^0 *\(.*\)$/\1/
9519 p
9520 }
9521 }'
9522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9523# Check for a 64-bit object if we didn't find anything.
9524if test -z "$aix_libpath"; then
9525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9526fi
9527else
9528 echo "$as_me: failed program was:" >&5
9529sed 's/^/| /' conftest.$ac_ext >&5
9530
9531
9532fi
9533
9534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9536if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9537
9538 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9539 # Warning - without using the other run time loading flags,
9540 # -berok will link without error, but may produce a broken library.
9541 no_undefined_flag=' ${wl}-bernotok'
9542 allow_undefined_flag=' ${wl}-berok'
9543 # Exported symbols can be pulled into shared objects from archives
9544 whole_archive_flag_spec='$convenience'
9545 archive_cmds_need_lc=yes
9546 # This is similar to how AIX traditionally builds its shared libraries.
9547 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'
9548 fi
9549 fi
9550 ;;
9551
9552 amigaos*)
9553 case $host_cpu in
9554 powerpc)
9555 # see comment about AmigaOS4 .so support
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 archive_expsym_cmds=''
9558 ;;
9559 m68k)
9560 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)'
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_minus_L=yes
9563 ;;
9564 esac
9565 ;;
9566
9567 bsdi[45]*)
9568 export_dynamic_flag_spec=-rdynamic
9569 ;;
9570
9571 cygwin* | mingw* | pw32*)
9572 # When not using gcc, we currently assume that we are using
9573 # Microsoft Visual C++.
9574 # hardcode_libdir_flag_spec is actually meaningless, as there is
9575 # no search path for DLLs.
9576 hardcode_libdir_flag_spec=' '
9577 allow_undefined_flag=unsupported
9578 # Tell ltmain to make .lib files, not .a files.
9579 libext=lib
9580 # Tell ltmain to make .dll files, not .so files.
9581 shrext_cmds=".dll"
9582 # FIXME: Setting linknames here is a bad hack.
9583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9584 # The linker will automatically build a .lib file if we build a DLL.
9585 old_archive_from_new_cmds='true'
9586 # FIXME: Should let the user specify the lib program.
9587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9588 fix_srcfile_path='`cygpath -w "$srcfile"`'
9589 enable_shared_with_static_runtimes=yes
9590 ;;
9591
9592 darwin* | rhapsody*)
9593
9594
9595 archive_cmds_need_lc=no
9596 hardcode_direct=no
9597 hardcode_automatic=yes
9598 hardcode_shlibpath_var=unsupported
9599 whole_archive_flag_spec=''
9600 link_all_deplibs=yes
9601 allow_undefined_flag="$_lt_dar_allow_undefined"
9602 if test "$GCC" = "yes"; then
9603 output_verbose_link_cmd=echo
9604 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9605 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9606 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}"
9607 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}"
9608
9609 else
9610 ld_shlibs=no
9611 fi
9612
9613 ;;
9614
9615 dgux*)
9616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617 hardcode_libdir_flag_spec='-L$libdir'
9618 hardcode_shlibpath_var=no
9619 ;;
9620
9621 freebsd1*)
9622 ld_shlibs=no
9623 ;;
9624
9625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9626 # support. Future versions do this automatically, but an explicit c++rt0.o
9627 # does not break anything, and helps significantly (at the cost of a little
9628 # extra space).
9629 freebsd2.2*)
9630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9631 hardcode_libdir_flag_spec='-R$libdir'
9632 hardcode_direct=yes
9633 hardcode_shlibpath_var=no
9634 ;;
9635
9636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9637 freebsd2*)
9638 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9639 hardcode_direct=yes
9640 hardcode_minus_L=yes
9641 hardcode_shlibpath_var=no
9642 ;;
9643
9644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9645 freebsd* | dragonfly*)
9646 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9647 hardcode_libdir_flag_spec='-R$libdir'
9648 hardcode_direct=yes
9649 hardcode_shlibpath_var=no
9650 ;;
9651
9652 hpux9*)
9653 if test "$GCC" = yes; then
9654 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'
9655 else
9656 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'
9657 fi
9658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9659 hardcode_libdir_separator=:
9660 hardcode_direct=yes
9661
9662 # hardcode_minus_L: Not really in the search PATH,
9663 # but as the default location of the library.
9664 hardcode_minus_L=yes
9665 export_dynamic_flag_spec='${wl}-E'
9666 ;;
9667
9668 hpux10*)
9669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9670 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9671 else
9672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9673 fi
9674 if test "$with_gnu_ld" = no; then
9675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9676 hardcode_libdir_flag_spec_ld='+b $libdir'
9677 hardcode_libdir_separator=:
9678 hardcode_direct=yes
9679 hardcode_direct_absolute=yes
9680 export_dynamic_flag_spec='${wl}-E'
9681 # hardcode_minus_L: Not really in the search PATH,
9682 # but as the default location of the library.
9683 hardcode_minus_L=yes
9684 fi
9685 ;;
9686
9687 hpux11*)
9688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9689 case $host_cpu in
9690 hppa*64*)
9691 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 ;;
9693 ia64*)
9694 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9695 ;;
9696 *)
9697 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698 ;;
9699 esac
9700 else
9701 case $host_cpu in
9702 hppa*64*)
9703 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 ;;
9705 ia64*)
9706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9707 ;;
9708 *)
9709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9710 ;;
9711 esac
9712 fi
9713 if test "$with_gnu_ld" = no; then
9714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9715 hardcode_libdir_separator=:
9716
9717 case $host_cpu in
9718 hppa*64*|ia64*)
9719 hardcode_direct=no
9720 hardcode_shlibpath_var=no
9721 ;;
9722 *)
9723 hardcode_direct=yes
9724 hardcode_direct_absolute=yes
9725 export_dynamic_flag_spec='${wl}-E'
9726
9727 # hardcode_minus_L: Not really in the search PATH,
9728 # but as the default location of the library.
9729 hardcode_minus_L=yes
9730 ;;
9731 esac
9732 fi
9733 ;;
9734
9735 irix5* | irix6* | nonstopux*)
9736 if test "$GCC" = yes; then
9737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9738 # Try to use the -exported_symbol ld option, if it does not
9739 # work, assume that -exports_file does not work either and
9740 # implicitly export all symbols.
9741 save_LDFLAGS="$LDFLAGS"
9742 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9743 cat >conftest.$ac_ext <<_ACEOF
9744int foo(void) {}
9745_ACEOF
9746rm -f conftest.$ac_objext conftest$ac_exeext
9747if { (ac_try="$ac_link"
9748case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } && {
9760 test -z "$ac_c_werror_flag" ||
9761 test ! -s conftest.err
9762 } && test -s conftest$ac_exeext &&
9763 $as_test_x conftest$ac_exeext; then
9764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9765
9766else
9767 echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770
9771fi
9772
9773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774 conftest$ac_exeext conftest.$ac_ext
9775 LDFLAGS="$save_LDFLAGS"
9776 else
9777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9779 fi
9780 archive_cmds_need_lc='no'
9781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782 hardcode_libdir_separator=:
9783 inherit_rpath=yes
9784 link_all_deplibs=yes
9785 ;;
9786
9787 netbsd*)
9788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9790 else
9791 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9792 fi
9793 hardcode_libdir_flag_spec='-R$libdir'
9794 hardcode_direct=yes
9795 hardcode_shlibpath_var=no
9796 ;;
9797
9798 newsos6)
9799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800 hardcode_direct=yes
9801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9802 hardcode_libdir_separator=:
9803 hardcode_shlibpath_var=no
9804 ;;
9805
9806 *nto* | *qnx*)
9807 ;;
9808
9809 openbsd*)
9810 if test -f /usr/libexec/ld.so; then
9811 hardcode_direct=yes
9812 hardcode_shlibpath_var=no
9813 hardcode_direct_absolute=yes
9814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9818 export_dynamic_flag_spec='${wl}-E'
9819 else
9820 case $host_os in
9821 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9823 hardcode_libdir_flag_spec='-R$libdir'
9824 ;;
9825 *)
9826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9828 ;;
9829 esac
9830 fi
9831 else
9832 ld_shlibs=no
9833 fi
9834 ;;
9835
9836 os2*)
9837 hardcode_libdir_flag_spec='-L$libdir'
9838 hardcode_minus_L=yes
9839 allow_undefined_flag=unsupported
9840 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'
9841 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9842 ;;
9843
9844 osf3*)
9845 if test "$GCC" = yes; then
9846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9847 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9848 else
9849 allow_undefined_flag=' -expect_unresolved \*'
9850 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9851 fi
9852 archive_cmds_need_lc='no'
9853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9854 hardcode_libdir_separator=:
9855 ;;
9856
9857 osf4* | osf5*) # as osf3* with the addition of -msym flag
9858 if test "$GCC" = yes; then
9859 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9860 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9862 else
9863 allow_undefined_flag=' -expect_unresolved \*'
9864 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9865 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~
9866 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9867
9868 # Both c and cxx compiler support -rpath directly
9869 hardcode_libdir_flag_spec='-rpath $libdir'
9870 fi
9871 archive_cmds_need_lc='no'
9872 hardcode_libdir_separator=:
9873 ;;
9874
9875 solaris*)
9876 no_undefined_flag=' -z defs'
9877 if test "$GCC" = yes; then
9878 wlarc='${wl}'
9879 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9881 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9882 else
9883 case `$CC -V 2>&1` in
9884 *"Compilers 5.0"*)
9885 wlarc=''
9886 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9888 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9889 ;;
9890 *)
9891 wlarc='${wl}'
9892 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9894 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9895 ;;
9896 esac
9897 fi
9898 hardcode_libdir_flag_spec='-R$libdir'
9899 hardcode_shlibpath_var=no
9900 case $host_os in
9901 solaris2.[0-5] | solaris2.[0-5].*) ;;
9902 *)
9903 # The compiler driver will combine and reorder linker options,
9904 # but understands `-z linker_flag'. GCC discards it without `$wl',
9905 # but is careful enough not to reorder.
9906 # Supported since Solaris 2.6 (maybe 2.5.1?)
9907 if test "$GCC" = yes; then
9908 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9909 else
9910 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9911 fi
9912 ;;
9913 esac
9914 link_all_deplibs=yes
9915 ;;
9916
9917 sunos4*)
9918 if test "x$host_vendor" = xsequent; then
9919 # Use $CC to link under sequent, because it throws in some extra .o
9920 # files that make .init and .fini sections work.
9921 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9922 else
9923 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9924 fi
9925 hardcode_libdir_flag_spec='-L$libdir'
9926 hardcode_direct=yes
9927 hardcode_minus_L=yes
9928 hardcode_shlibpath_var=no
9929 ;;
9930
9931 sysv4)
9932 case $host_vendor in
9933 sni)
9934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_direct=yes # is this really true???
9936 ;;
9937 siemens)
9938 ## LD is ld it makes a PLAMLIB
9939 ## CC just makes a GrossModule.
9940 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9941 reload_cmds='$CC -r -o $output$reload_objs'
9942 hardcode_direct=no
9943 ;;
9944 motorola)
9945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9947 ;;
9948 esac
9949 runpath_var='LD_RUN_PATH'
9950 hardcode_shlibpath_var=no
9951 ;;
9952
9953 sysv4.3*)
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_shlibpath_var=no
9956 export_dynamic_flag_spec='-Bexport'
9957 ;;
9958
9959 sysv4*MP*)
9960 if test -d /usr/nec; then
9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_shlibpath_var=no
9963 runpath_var=LD_RUN_PATH
9964 hardcode_runpath_var=yes
9965 ld_shlibs=yes
9966 fi
9967 ;;
9968
9969 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9970 no_undefined_flag='${wl}-z,text'
9971 archive_cmds_need_lc=no
9972 hardcode_shlibpath_var=no
9973 runpath_var='LD_RUN_PATH'
9974
9975 if test "$GCC" = yes; then
9976 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9978 else
9979 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 fi
9982 ;;
9983
9984 sysv5* | sco3.2v5* | sco5v6*)
9985 # Note: We can NOT use -z defs as we might desire, because we do not
9986 # link with -lc, and that would cause any symbols used from libc to
9987 # always be unresolved, which means just about no library would
9988 # ever link correctly. If we're not using GNU ld we use -z text
9989 # though, which does catch some bad symbols but isn't as heavy-handed
9990 # as -z defs.
9991 no_undefined_flag='${wl}-z,text'
9992 allow_undefined_flag='${wl}-z,nodefs'
9993 archive_cmds_need_lc=no
9994 hardcode_shlibpath_var=no
9995 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9996 hardcode_libdir_separator=':'
9997 link_all_deplibs=yes
9998 export_dynamic_flag_spec='${wl}-Bexport'
9999 runpath_var='LD_RUN_PATH'
10000
10001 if test "$GCC" = yes; then
10002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004 else
10005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 fi
10008 ;;
10009
10010 uts4*)
10011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_shlibpath_var=no
10014 ;;
10015
10016 *)
10017 ld_shlibs=no
10018 ;;
10019 esac
10020
10021 if test x$host_vendor = xsni; then
10022 case $host in
10023 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10024 export_dynamic_flag_spec='${wl}-Blargedynsym'
10025 ;;
10026 esac
10027 fi
10028 fi
10029
10030{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10031echo "${ECHO_T}$ld_shlibs" >&6; }
10032test "$ld_shlibs" = no && can_build_shared=no
10033
10034with_gnu_ld=$with_gnu_ld
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050#
10051# Do we need to explicitly link libc?
10052#
10053case "x$archive_cmds_need_lc" in
10054x|xyes)
10055 # Assume -lc should be added
10056 archive_cmds_need_lc=yes
10057
10058 if test "$enable_shared" = yes && test "$GCC" = yes; then
10059 case $archive_cmds in
10060 *'~'*)
10061 # FIXME: we may have to deal with multi-command sequences.
10062 ;;
10063 '$CC '*)
10064 # Test whether the compiler implicitly links with -lc since on some
10065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10066 # to ld, don't add -lc before -lgcc.
10067 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10068echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10069 $RM conftest*
10070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10071
10072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073 (eval $ac_compile) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } 2>conftest.err; then
10077 soname=conftest
10078 lib=conftest
10079 libobjs=conftest.$ac_objext
10080 deplibs=
10081 wl=$lt_prog_compiler_wl
10082 pic_flag=$lt_prog_compiler_pic
10083 compiler_flags=-v
10084 linker_flags=-v
10085 verstring=
10086 output_objdir=.
10087 libname=conftest
10088 lt_save_allow_undefined_flag=$allow_undefined_flag
10089 allow_undefined_flag=
10090 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10091 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }
10095 then
10096 archive_cmds_need_lc=no
10097 else
10098 archive_cmds_need_lc=yes
10099 fi
10100 allow_undefined_flag=$lt_save_allow_undefined_flag
10101 else
10102 cat conftest.err 1>&5
10103 fi
10104 $RM conftest*
10105 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10106echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10107 ;;
10108 esac
10109 fi
10110 ;;
10111esac
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10270echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10271
10272if test "$GCC" = yes; then
10273 case $host_os in
10274 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10275 *) lt_awk_arg="/^libraries:/" ;;
10276 esac
10277 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10278 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10279 # if the path contains ";" then we assume it to be the separator
10280 # otherwise default to the standard path separator (i.e. ":") - it is
10281 # assumed that no part of a normal pathname contains ";" but that should
10282 # okay in the real world where ";" in dirpaths is itself problematic.
10283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10284 else
10285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10286 fi
10287 # Ok, now we have the path, separated by spaces, we can step through it
10288 # and add multilib dir if necessary.
10289 lt_tmp_lt_search_path_spec=
10290 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10291 for lt_sys_path in $lt_search_path_spec; do
10292 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10293 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10294 else
10295 test -d "$lt_sys_path" && \
10296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10297 fi
10298 done
10299 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10300BEGIN {RS=" "; FS="/|\n";} {
10301 lt_foo="";
10302 lt_count=0;
10303 for (lt_i = NF; lt_i > 0; lt_i--) {
10304 if ($lt_i != "" && $lt_i != ".") {
10305 if ($lt_i == "..") {
10306 lt_count++;
10307 } else {
10308 if (lt_count == 0) {
10309 lt_foo="/" $lt_i lt_foo;
10310 } else {
10311 lt_count--;
10312 }
10313 }
10314 }
10315 }
10316 if (lt_foo != "") { lt_freq[lt_foo]++; }
10317 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10318}'`
10319 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10320else
10321 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10322fi
10323library_names_spec=
10324libname_spec='lib$name'
10325soname_spec=
10326shrext_cmds=".so"
10327postinstall_cmds=
10328postuninstall_cmds=
10329finish_cmds=
10330finish_eval=
10331shlibpath_var=
10332shlibpath_overrides_runpath=unknown
10333version_type=none
10334dynamic_linker="$host_os ld.so"
10335sys_lib_dlsearch_path_spec="/lib /usr/lib"
10336need_lib_prefix=unknown
10337hardcode_into_libs=no
10338
10339# when you set need_version to no, make sure it does not cause -set_version
10340# flags to be left without arguments
10341need_version=unknown
10342
10343case $host_os in
10344aix3*)
10345 version_type=linux
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10347 shlibpath_var=LIBPATH
10348
10349 # AIX 3 has no versioning support, so we append a major version to the name.
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 ;;
10352
10353aix[4-9]*)
10354 version_type=linux
10355 need_lib_prefix=no
10356 need_version=no
10357 hardcode_into_libs=yes
10358 if test "$host_cpu" = ia64; then
10359 # AIX 5 supports IA64
10360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 else
10363 # With GCC up to 2.95.x, collect2 would create an import file
10364 # for dependence libraries. The import file would start with
10365 # the line `#! .'. This would cause the generated library to
10366 # depend on `.', always an invalid library. This was fixed in
10367 # development snapshots of GCC prior to 3.0.
10368 case $host_os in
10369 aix4 | aix4.[01] | aix4.[01].*)
10370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10371 echo ' yes '
10372 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10373 :
10374 else
10375 can_build_shared=no
10376 fi
10377 ;;
10378 esac
10379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10380 # soname into executable. Probably we can add versioning support to
10381 # collect2, so additional links can be useful in future.
10382 if test "$aix_use_runtimelinking" = yes; then
10383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10384 # instead of lib<name>.a to let people know that these are not
10385 # typical AIX shared libraries.
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 else
10388 # We preserve .a as extension for shared libraries through AIX4.2
10389 # and later when we are not doing run time linking.
10390 library_names_spec='${libname}${release}.a $libname.a'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 fi
10393 shlibpath_var=LIBPATH
10394 fi
10395 ;;
10396
10397amigaos*)
10398 case $host_cpu in
10399 powerpc)
10400 # Since July 2007 AmigaOS4 officially supports .so libraries.
10401 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10403 ;;
10404 m68k)
10405 library_names_spec='$libname.ixlibrary $libname.a'
10406 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10407 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10408 ;;
10409 esac
10410 ;;
10411
10412beos*)
10413 library_names_spec='${libname}${shared_ext}'
10414 dynamic_linker="$host_os ld.so"
10415 shlibpath_var=LIBRARY_PATH
10416 ;;
10417
10418bsdi[45]*)
10419 version_type=linux
10420 need_version=no
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10426 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10427 # the default ld.so.conf also contains /usr/contrib/lib and
10428 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10429 # libtool to hard-code these into programs
10430 ;;
10431
10432cygwin* | mingw* | pw32*)
10433 version_type=windows
10434 shrext_cmds=".dll"
10435 need_version=no
10436 need_lib_prefix=no
10437
10438 case $GCC,$host_os in
10439 yes,cygwin* | yes,mingw* | yes,pw32*)
10440 library_names_spec='$libname.dll.a'
10441 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10442 postinstall_cmds='base_file=`basename \${file}`~
10443 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10444 dldir=$destdir/`dirname \$dlpath`~
10445 test -d \$dldir || mkdir -p \$dldir~
10446 $install_prog $dir/$dlname \$dldir/$dlname~
10447 chmod a+x \$dldir/$dlname~
10448 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10449 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10450 fi'
10451 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10452 dlpath=$dir/\$dldll~
10453 $RM \$dlpath'
10454 shlibpath_overrides_runpath=yes
10455
10456 case $host_os in
10457 cygwin*)
10458 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10459 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10460 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10461 ;;
10462 mingw*)
10463 # MinGW DLLs use traditional 'lib' prefix
10464 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10465 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10466 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10467 # It is most probably a Windows format PATH printed by
10468 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10469 # path with ; separators, and with drive letters. We can handle the
10470 # drive letters (cygwin fileutils understands them), so leave them,
10471 # especially as we might pass files found there to a mingw objdump,
10472 # which wouldn't understand a cygwinified path. Ahh.
10473 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10474 else
10475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10476 fi
10477 ;;
10478 pw32*)
10479 # pw32 DLLs use 'pw' prefix rather than 'lib'
10480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10481 ;;
10482 esac
10483 ;;
10484
10485 *)
10486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10487 ;;
10488 esac
10489 dynamic_linker='Win32 ld.exe'
10490 # FIXME: first we should search . and the directory the executable is in
10491 shlibpath_var=PATH
10492 ;;
10493
10494darwin* | rhapsody*)
10495 dynamic_linker="$host_os dyld"
10496 version_type=darwin
10497 need_lib_prefix=no
10498 need_version=no
10499 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10500 soname_spec='${libname}${release}${major}$shared_ext'
10501 shlibpath_overrides_runpath=yes
10502 shlibpath_var=DYLD_LIBRARY_PATH
10503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10504
10505 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10507 ;;
10508
10509dgux*)
10510 version_type=linux
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 ;;
10517
10518freebsd1*)
10519 dynamic_linker=no
10520 ;;
10521
10522freebsd* | dragonfly*)
10523 # DragonFly does not have aout. When/if they implement a new
10524 # versioning mechanism, adjust this.
10525 if test -x /usr/bin/objformat; then
10526 objformat=`/usr/bin/objformat`
10527 else
10528 case $host_os in
10529 freebsd[123]*) objformat=aout ;;
10530 *) objformat=elf ;;
10531 esac
10532 fi
10533 version_type=freebsd-$objformat
10534 case $version_type in
10535 freebsd-elf*)
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10537 need_version=no
10538 need_lib_prefix=no
10539 ;;
10540 freebsd-*)
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10542 need_version=yes
10543 ;;
10544 esac
10545 shlibpath_var=LD_LIBRARY_PATH
10546 case $host_os in
10547 freebsd2*)
10548 shlibpath_overrides_runpath=yes
10549 ;;
10550 freebsd3.[01]* | freebsdelf3.[01]*)
10551 shlibpath_overrides_runpath=yes
10552 hardcode_into_libs=yes
10553 ;;
10554 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10555 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10556 shlibpath_overrides_runpath=no
10557 hardcode_into_libs=yes
10558 ;;
10559 *) # from 4.6 on, and DragonFly
10560 shlibpath_overrides_runpath=yes
10561 hardcode_into_libs=yes
10562 ;;
10563 esac
10564 ;;
10565
10566gnu*)
10567 version_type=linux
10568 need_lib_prefix=no
10569 need_version=no
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 hardcode_into_libs=yes
10574 ;;
10575
10576hpux9* | hpux10* | hpux11*)
10577 # Give a soname corresponding to the major version so that dld.sl refuses to
10578 # link against other versions.
10579 version_type=sunos
10580 need_lib_prefix=no
10581 need_version=no
10582 case $host_cpu in
10583 ia64*)
10584 shrext_cmds='.so'
10585 hardcode_into_libs=yes
10586 dynamic_linker="$host_os dld.so"
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 if test "X$HPUX_IA64_MODE" = X32; then
10592 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10593 else
10594 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10595 fi
10596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10597 ;;
10598 hppa*64*)
10599 shrext_cmds='.sl'
10600 hardcode_into_libs=yes
10601 dynamic_linker="$host_os dld.sl"
10602 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10608 ;;
10609 *)
10610 shrext_cmds='.sl'
10611 dynamic_linker="$host_os dld.sl"
10612 shlibpath_var=SHLIB_PATH
10613 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 ;;
10617 esac
10618 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10619 postinstall_cmds='chmod 555 $lib'
10620 ;;
10621
10622interix[3-9]*)
10623 version_type=linux
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=no
10631 hardcode_into_libs=yes
10632 ;;
10633
10634irix5* | irix6* | nonstopux*)
10635 case $host_os in
10636 nonstopux*) version_type=nonstopux ;;
10637 *)
10638 if test "$lt_cv_prog_gnu_ld" = yes; then
10639 version_type=linux
10640 else
10641 version_type=irix
10642 fi ;;
10643 esac
10644 need_lib_prefix=no
10645 need_version=no
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10648 case $host_os in
10649 irix5* | nonstopux*)
10650 libsuff= shlibsuff=
10651 ;;
10652 *)
10653 case $LD in # libtool.m4 will add one of these switches to LD
10654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10655 libsuff= shlibsuff= libmagic=32-bit;;
10656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10657 libsuff=32 shlibsuff=N32 libmagic=N32;;
10658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10660 *) libsuff= shlibsuff= libmagic=never-match;;
10661 esac
10662 ;;
10663 esac
10664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10665 shlibpath_overrides_runpath=no
10666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10668 hardcode_into_libs=yes
10669 ;;
10670
10671# No shared lib support for Linux oldld, aout, or coff.
10672linux*oldld* | linux*aout* | linux*coff*)
10673 dynamic_linker=no
10674 ;;
10675
10676# This must be Linux ELF.
10677linux* | k*bsd*-gnu)
10678 version_type=linux
10679 need_lib_prefix=no
10680 need_version=no
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 shlibpath_overrides_runpath=no
10686 # Some binutils ld are patched to set DT_RUNPATH
10687 save_LDFLAGS=$LDFLAGS
10688 save_libdir=$libdir
10689 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10690 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10691 cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
10697
10698int
10699main ()
10700{
10701
10702 ;
10703 return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext conftest$ac_exeext
10707if { (ac_try="$ac_link"
10708case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711esac
10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_link") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest$ac_exeext &&
10723 $as_test_x conftest$ac_exeext; then
10724 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10725 shlibpath_overrides_runpath=yes
10726fi
10727
10728else
10729 echo "$as_me: failed program was:" >&5
10730sed 's/^/| /' conftest.$ac_ext >&5
10731
10732
10733fi
10734
10735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10736 conftest$ac_exeext conftest.$ac_ext
10737 LDFLAGS=$save_LDFLAGS
10738 libdir=$save_libdir
10739
10740 # This implies no fast_install, which is unacceptable.
10741 # Some rework will be needed to allow for fast_install
10742 # before this can be enabled.
10743 hardcode_into_libs=yes
10744
10745 # Append ld.so.conf contents to the search path
10746 if test -f /etc/ld.so.conf; then
10747 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;/^$/d' | tr '\n' ' '`
10748 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10749 fi
10750
10751 # We used to test for /lib/ld.so.1 and disable shared libraries on
10752 # powerpc, because MkLinux only supported shared libraries with the
10753 # GNU dynamic linker. Since this was broken with cross compilers,
10754 # most powerpc-linux boxes support dynamic linking these days and
10755 # people can always --disable-shared, the test was removed, and we
10756 # assume the GNU/Linux dynamic linker is in use.
10757 dynamic_linker='GNU/Linux ld.so'
10758 ;;
10759
10760netbsd*)
10761 version_type=sunos
10762 need_lib_prefix=no
10763 need_version=no
10764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10767 dynamic_linker='NetBSD (a.out) ld.so'
10768 else
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 dynamic_linker='NetBSD ld.elf_so'
10772 fi
10773 shlibpath_var=LD_LIBRARY_PATH
10774 shlibpath_overrides_runpath=yes
10775 hardcode_into_libs=yes
10776 ;;
10777
10778newsos6)
10779 version_type=linux
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=yes
10783 ;;
10784
10785*nto* | *qnx*)
10786 version_type=qnx
10787 need_lib_prefix=no
10788 need_version=no
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 shlibpath_overrides_runpath=no
10793 hardcode_into_libs=yes
10794 dynamic_linker='ldqnx.so'
10795 ;;
10796
10797openbsd*)
10798 version_type=sunos
10799 sys_lib_dlsearch_path_spec="/usr/lib"
10800 need_lib_prefix=no
10801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10802 case $host_os in
10803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10804 *) need_version=no ;;
10805 esac
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10810 case $host_os in
10811 openbsd2.[89] | openbsd2.[89].*)
10812 shlibpath_overrides_runpath=no
10813 ;;
10814 *)
10815 shlibpath_overrides_runpath=yes
10816 ;;
10817 esac
10818 else
10819 shlibpath_overrides_runpath=yes
10820 fi
10821 ;;
10822
10823os2*)
10824 libname_spec='$name'
10825 shrext_cmds=".dll"
10826 need_lib_prefix=no
10827 library_names_spec='$libname${shared_ext} $libname.a'
10828 dynamic_linker='OS/2 ld.exe'
10829 shlibpath_var=LIBPATH
10830 ;;
10831
10832osf3* | osf4* | osf5*)
10833 version_type=osf
10834 need_lib_prefix=no
10835 need_version=no
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10841 ;;
10842
10843rdos*)
10844 dynamic_linker=no
10845 ;;
10846
10847solaris*)
10848 version_type=linux
10849 need_lib_prefix=no
10850 need_version=no
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 shlibpath_overrides_runpath=yes
10855 hardcode_into_libs=yes
10856 # ldd complains unless libraries are executable
10857 postinstall_cmds='chmod +x $lib'
10858 ;;
10859
10860sunos4*)
10861 version_type=sunos
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath=yes
10866 if test "$with_gnu_ld" = yes; then
10867 need_lib_prefix=no
10868 fi
10869 need_version=yes
10870 ;;
10871
10872sysv4 | sysv4.3*)
10873 version_type=linux
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 case $host_vendor in
10878 sni)
10879 shlibpath_overrides_runpath=no
10880 need_lib_prefix=no
10881 runpath_var=LD_RUN_PATH
10882 ;;
10883 siemens)
10884 need_lib_prefix=no
10885 ;;
10886 motorola)
10887 need_lib_prefix=no
10888 need_version=no
10889 shlibpath_overrides_runpath=no
10890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10891 ;;
10892 esac
10893 ;;
10894
10895sysv4*MP*)
10896 if test -d /usr/nec ;then
10897 version_type=linux
10898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10899 soname_spec='$libname${shared_ext}.$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 fi
10902 ;;
10903
10904sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10905 version_type=freebsd-elf
10906 need_lib_prefix=no
10907 need_version=no
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=yes
10912 hardcode_into_libs=yes
10913 if test "$with_gnu_ld" = yes; then
10914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10915 else
10916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10917 case $host_os in
10918 sco3.2v5*)
10919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10920 ;;
10921 esac
10922 fi
10923 sys_lib_dlsearch_path_spec='/usr/lib'
10924 ;;
10925
10926tpf*)
10927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10928 version_type=linux
10929 need_lib_prefix=no
10930 need_version=no
10931 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932 shlibpath_var=LD_LIBRARY_PATH
10933 shlibpath_overrides_runpath=no
10934 hardcode_into_libs=yes
10935 ;;
10936
10937uts4*)
10938 version_type=linux
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 ;;
10943
10944*)
10945 dynamic_linker=no
10946 ;;
10947esac
10948{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10949echo "${ECHO_T}$dynamic_linker" >&6; }
10950test "$dynamic_linker" = no && can_build_shared=no
10951
10952variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10953if test "$GCC" = yes; then
10954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10955fi
10956
10957if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10959fi
10960if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10962fi
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11051echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11052hardcode_action=
11053if test -n "$hardcode_libdir_flag_spec" ||
11054 test -n "$runpath_var" ||
11055 test "X$hardcode_automatic" = "Xyes" ; then
11056
11057 # We can hardcode non-existent directories.
11058 if test "$hardcode_direct" != no &&
11059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11060 # have to relink, otherwise we might link with an installed library
11061 # when we should be linking with a yet-to-be-installed one
11062 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11063 test "$hardcode_minus_L" != no; then
11064 # Linking always hardcodes the temporary library directory.
11065 hardcode_action=relink
11066 else
11067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11068 hardcode_action=immediate
11069 fi
11070else
11071 # We cannot hardcode anything, or else we can only hardcode existing
11072 # directories.
11073 hardcode_action=unsupported
11074fi
11075{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
11076echo "${ECHO_T}$hardcode_action" >&6; }
11077
11078if test "$hardcode_action" = relink ||
11079 test "$inherit_rpath" = yes; then
11080 # Fast installation is not supported
11081 enable_fast_install=no
11082elif test "$shlibpath_overrides_runpath" = yes ||
11083 test "$enable_shared" = no; then
11084 # Fast installation is not necessary
11085 enable_fast_install=needless
11086fi
11087
11088
11089
11090
11091
11092
11093 if test "x$enable_dlopen" != xyes; then
11094 enable_dlopen=unknown
11095 enable_dlopen_self=unknown
11096 enable_dlopen_self_static=unknown
11097else
11098 lt_cv_dlopen=no
11099 lt_cv_dlopen_libs=
11100
11101 case $host_os in
11102 beos*)
11103 lt_cv_dlopen="load_add_on"
11104 lt_cv_dlopen_libs=
11105 lt_cv_dlopen_self=yes
11106 ;;
11107
11108 mingw* | pw32*)
11109 lt_cv_dlopen="LoadLibrary"
11110 lt_cv_dlopen_libs=
11111 ;;
11112
11113 cygwin*)
11114 lt_cv_dlopen="dlopen"
11115 lt_cv_dlopen_libs=
11116 ;;
11117
11118 darwin*)
11119 # if libdl is installed we need to link against it
11120 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11121echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11122if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125 ac_check_lib_save_LIBS=$LIBS
11126LIBS="-ldl $LIBS"
11127cat >conftest.$ac_ext <<_ACEOF
11128/* confdefs.h. */
11129_ACEOF
11130cat confdefs.h >>conftest.$ac_ext
11131cat >>conftest.$ac_ext <<_ACEOF
11132/* end confdefs.h. */
11133
11134/* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
11137#ifdef __cplusplus
11138extern "C"
11139#endif
11140char dlopen ();
11141int
11142main ()
11143{
11144return dlopen ();
11145 ;
11146 return 0;
11147}
11148_ACEOF
11149rm -f conftest.$ac_objext conftest$ac_exeext
11150if { (ac_try="$ac_link"
11151case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11154esac
11155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156 (eval "$ac_link") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest$ac_exeext &&
11166 $as_test_x conftest$ac_exeext; then
11167 ac_cv_lib_dl_dlopen=yes
11168else
11169 echo "$as_me: failed program was:" >&5
11170sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 ac_cv_lib_dl_dlopen=no
11173fi
11174
11175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11176 conftest$ac_exeext conftest.$ac_ext
11177LIBS=$ac_check_lib_save_LIBS
11178fi
11179{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11180echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11181if test $ac_cv_lib_dl_dlopen = yes; then
11182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11183else
11184
11185 lt_cv_dlopen="dyld"
11186 lt_cv_dlopen_libs=
11187 lt_cv_dlopen_self=yes
11188
11189fi
11190
11191 ;;
11192
11193 *)
11194 { echo "$as_me:$LINENO: checking for shl_load" >&5
11195echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11196if test "${ac_cv_func_shl_load+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11207#define shl_load innocuous_shl_load
11208
11209/* System header to define __stub macros and hopefully few prototypes,
11210 which can conflict with char shl_load (); below.
11211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11212 <limits.h> exists even on freestanding compilers. */
11213
11214#ifdef __STDC__
11215# include <limits.h>
11216#else
11217# include <assert.h>
11218#endif
11219
11220#undef shl_load
11221
11222/* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11225#ifdef __cplusplus
11226extern "C"
11227#endif
11228char shl_load ();
11229/* The GNU C library defines this for functions which it implements
11230 to always fail with ENOSYS. Some functions are actually named
11231 something starting with __ and the normal name is an alias. */
11232#if defined __stub_shl_load || defined __stub___shl_load
11233choke me
11234#endif
11235
11236int
11237main ()
11238{
11239return shl_load ();
11240 ;
11241 return 0;
11242}
11243_ACEOF
11244rm -f conftest.$ac_objext conftest$ac_exeext
11245if { (ac_try="$ac_link"
11246case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11249esac
11250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_link") 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && {
11258 test -z "$ac_c_werror_flag" ||
11259 test ! -s conftest.err
11260 } && test -s conftest$ac_exeext &&
11261 $as_test_x conftest$ac_exeext; then
11262 ac_cv_func_shl_load=yes
11263else
11264 echo "$as_me: failed program was:" >&5
11265sed 's/^/| /' conftest.$ac_ext >&5
11266
11267 ac_cv_func_shl_load=no
11268fi
11269
11270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11271 conftest$ac_exeext conftest.$ac_ext
11272fi
11273{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11274echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11275if test $ac_cv_func_shl_load = yes; then
11276 lt_cv_dlopen="shl_load"
11277else
11278 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11279echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11280if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282else
11283 ac_check_lib_save_LIBS=$LIBS
11284LIBS="-ldld $LIBS"
11285cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291
11292/* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295#ifdef __cplusplus
11296extern "C"
11297#endif
11298char shl_load ();
11299int
11300main ()
11301{
11302return shl_load ();
11303 ;
11304 return 0;
11305}
11306_ACEOF
11307rm -f conftest.$ac_objext conftest$ac_exeext
11308if { (ac_try="$ac_link"
11309case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312esac
11313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_link") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest$ac_exeext &&
11324 $as_test_x conftest$ac_exeext; then
11325 ac_cv_lib_dld_shl_load=yes
11326else
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 ac_cv_lib_dld_shl_load=no
11331fi
11332
11333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11334 conftest$ac_exeext conftest.$ac_ext
11335LIBS=$ac_check_lib_save_LIBS
11336fi
11337{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11338echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11339if test $ac_cv_lib_dld_shl_load = yes; then
11340 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11341else
11342 { echo "$as_me:$LINENO: checking for dlopen" >&5
11343echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11344if test "${ac_cv_func_dlopen+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346else
11347 cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
11353/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11355#define dlopen innocuous_dlopen
11356
11357/* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char dlopen (); below.
11359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11360 <limits.h> exists even on freestanding compilers. */
11361
11362#ifdef __STDC__
11363# include <limits.h>
11364#else
11365# include <assert.h>
11366#endif
11367
11368#undef dlopen
11369
11370/* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373#ifdef __cplusplus
11374extern "C"
11375#endif
11376char dlopen ();
11377/* The GNU C library defines this for functions which it implements
11378 to always fail with ENOSYS. Some functions are actually named
11379 something starting with __ and the normal name is an alias. */
11380#if defined __stub_dlopen || defined __stub___dlopen
11381choke me
11382#endif
11383
11384int
11385main ()
11386{
11387return dlopen ();
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext conftest$ac_exeext
11393if { (ac_try="$ac_link"
11394case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397esac
11398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_link") 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } && {
11406 test -z "$ac_c_werror_flag" ||
11407 test ! -s conftest.err
11408 } && test -s conftest$ac_exeext &&
11409 $as_test_x conftest$ac_exeext; then
11410 ac_cv_func_dlopen=yes
11411else
11412 echo "$as_me: failed program was:" >&5
11413sed 's/^/| /' conftest.$ac_ext >&5
11414
11415 ac_cv_func_dlopen=no
11416fi
11417
11418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11419 conftest$ac_exeext conftest.$ac_ext
11420fi
11421{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11422echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11423if test $ac_cv_func_dlopen = yes; then
11424 lt_cv_dlopen="dlopen"
11425else
11426 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11427echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11428if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430else
11431 ac_check_lib_save_LIBS=$LIBS
11432LIBS="-ldl $LIBS"
11433cat >conftest.$ac_ext <<_ACEOF
11434/* confdefs.h. */
11435_ACEOF
11436cat confdefs.h >>conftest.$ac_ext
11437cat >>conftest.$ac_ext <<_ACEOF
11438/* end confdefs.h. */
11439
11440/* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443#ifdef __cplusplus
11444extern "C"
11445#endif
11446char dlopen ();
11447int
11448main ()
11449{
11450return dlopen ();
11451 ;
11452 return 0;
11453}
11454_ACEOF
11455rm -f conftest.$ac_objext conftest$ac_exeext
11456if { (ac_try="$ac_link"
11457case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460esac
11461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_link") 2>conftest.er1
11463 ac_status=$?
11464 grep -v '^ *+' conftest.er1 >conftest.err
11465 rm -f conftest.er1
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } && {
11469 test -z "$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11471 } && test -s conftest$ac_exeext &&
11472 $as_test_x conftest$ac_exeext; then
11473 ac_cv_lib_dl_dlopen=yes
11474else
11475 echo "$as_me: failed program was:" >&5
11476sed 's/^/| /' conftest.$ac_ext >&5
11477
11478 ac_cv_lib_dl_dlopen=no
11479fi
11480
11481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11482 conftest$ac_exeext conftest.$ac_ext
11483LIBS=$ac_check_lib_save_LIBS
11484fi
11485{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11486echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11487if test $ac_cv_lib_dl_dlopen = yes; then
11488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11489else
11490 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11491echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11492if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 ac_check_lib_save_LIBS=$LIBS
11496LIBS="-lsvld $LIBS"
11497cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503
11504/* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507#ifdef __cplusplus
11508extern "C"
11509#endif
11510char dlopen ();
11511int
11512main ()
11513{
11514return dlopen ();
11515 ;
11516 return 0;
11517}
11518_ACEOF
11519rm -f conftest.$ac_objext conftest$ac_exeext
11520if { (ac_try="$ac_link"
11521case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_link") 2>conftest.er1
11527 ac_status=$?
11528 grep -v '^ *+' conftest.er1 >conftest.err
11529 rm -f conftest.er1
11530 cat conftest.err >&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && {
11533 test -z "$ac_c_werror_flag" ||
11534 test ! -s conftest.err
11535 } && test -s conftest$ac_exeext &&
11536 $as_test_x conftest$ac_exeext; then
11537 ac_cv_lib_svld_dlopen=yes
11538else
11539 echo "$as_me: failed program was:" >&5
11540sed 's/^/| /' conftest.$ac_ext >&5
11541
11542 ac_cv_lib_svld_dlopen=no
11543fi
11544
11545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11546 conftest$ac_exeext conftest.$ac_ext
11547LIBS=$ac_check_lib_save_LIBS
11548fi
11549{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11550echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11551if test $ac_cv_lib_svld_dlopen = yes; then
11552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11553else
11554 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11555echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11556if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 ac_check_lib_save_LIBS=$LIBS
11560LIBS="-ldld $LIBS"
11561cat >conftest.$ac_ext <<_ACEOF
11562/* confdefs.h. */
11563_ACEOF
11564cat confdefs.h >>conftest.$ac_ext
11565cat >>conftest.$ac_ext <<_ACEOF
11566/* end confdefs.h. */
11567
11568/* Override any GCC internal prototype to avoid an error.
11569 Use char because int might match the return type of a GCC
11570 builtin and then its argument prototype would still apply. */
11571#ifdef __cplusplus
11572extern "C"
11573#endif
11574char dld_link ();
11575int
11576main ()
11577{
11578return dld_link ();
11579 ;
11580 return 0;
11581}
11582_ACEOF
11583rm -f conftest.$ac_objext conftest$ac_exeext
11584if { (ac_try="$ac_link"
11585case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_link") 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } && {
11597 test -z "$ac_c_werror_flag" ||
11598 test ! -s conftest.err
11599 } && test -s conftest$ac_exeext &&
11600 $as_test_x conftest$ac_exeext; then
11601 ac_cv_lib_dld_dld_link=yes
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606 ac_cv_lib_dld_dld_link=no
11607fi
11608
11609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11610 conftest$ac_exeext conftest.$ac_ext
11611LIBS=$ac_check_lib_save_LIBS
11612fi
11613{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11614echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11615if test $ac_cv_lib_dld_dld_link = yes; then
11616 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11617fi
11618
11619
11620fi
11621
11622
11623fi
11624
11625
11626fi
11627
11628
11629fi
11630
11631
11632fi
11633
11634 ;;
11635 esac
11636
11637 if test "x$lt_cv_dlopen" != xno; then
11638 enable_dlopen=yes
11639 else
11640 enable_dlopen=no
11641 fi
11642
11643 case $lt_cv_dlopen in
11644 dlopen)
11645 save_CPPFLAGS="$CPPFLAGS"
11646 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11647
11648 save_LDFLAGS="$LDFLAGS"
11649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11650
11651 save_LIBS="$LIBS"
11652 LIBS="$lt_cv_dlopen_libs $LIBS"
11653
11654 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11655echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11656if test "${lt_cv_dlopen_self+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659 if test "$cross_compiling" = yes; then :
11660 lt_cv_dlopen_self=cross
11661else
11662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11663 lt_status=$lt_dlunknown
11664 cat > conftest.$ac_ext <<_LT_EOF
11665#line 11665 "configure"
11666#include "confdefs.h"
11667
11668#if HAVE_DLFCN_H
11669#include <dlfcn.h>
11670#endif
11671
11672#include <stdio.h>
11673
11674#ifdef RTLD_GLOBAL
11675# define LT_DLGLOBAL RTLD_GLOBAL
11676#else
11677# ifdef DL_GLOBAL
11678# define LT_DLGLOBAL DL_GLOBAL
11679# else
11680# define LT_DLGLOBAL 0
11681# endif
11682#endif
11683
11684/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11685 find out it does not work in some platform. */
11686#ifndef LT_DLLAZY_OR_NOW
11687# ifdef RTLD_LAZY
11688# define LT_DLLAZY_OR_NOW RTLD_LAZY
11689# else
11690# ifdef DL_LAZY
11691# define LT_DLLAZY_OR_NOW DL_LAZY
11692# else
11693# ifdef RTLD_NOW
11694# define LT_DLLAZY_OR_NOW RTLD_NOW
11695# else
11696# ifdef DL_NOW
11697# define LT_DLLAZY_OR_NOW DL_NOW
11698# else
11699# define LT_DLLAZY_OR_NOW 0
11700# endif
11701# endif
11702# endif
11703# endif
11704#endif
11705
11706#ifdef __cplusplus
11707extern "C" void exit (int);
11708#endif
11709
11710void fnord() { int i=42;}
11711int main ()
11712{
11713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714 int status = $lt_dlunknown;
11715
11716 if (self)
11717 {
11718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11720 /* dlclose (self); */
11721 }
11722 else
11723 puts (dlerror ());
11724
11725 exit (status);
11726}
11727_LT_EOF
11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729 (eval $ac_link) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11733 (./conftest; exit; ) >&5 2>/dev/null
11734 lt_status=$?
11735 case x$lt_status in
11736 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11737 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11738 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11739 esac
11740 else :
11741 # compilation failed
11742 lt_cv_dlopen_self=no
11743 fi
11744fi
11745rm -fr conftest*
11746
11747
11748fi
11749{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11750echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11751
11752 if test "x$lt_cv_dlopen_self" = xyes; then
11753 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11754 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11755echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11756if test "${lt_cv_dlopen_self_static+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759 if test "$cross_compiling" = yes; then :
11760 lt_cv_dlopen_self_static=cross
11761else
11762 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11763 lt_status=$lt_dlunknown
11764 cat > conftest.$ac_ext <<_LT_EOF
11765#line 11765 "configure"
11766#include "confdefs.h"
11767
11768#if HAVE_DLFCN_H
11769#include <dlfcn.h>
11770#endif
11771
11772#include <stdio.h>
11773
11774#ifdef RTLD_GLOBAL
11775# define LT_DLGLOBAL RTLD_GLOBAL
11776#else
11777# ifdef DL_GLOBAL
11778# define LT_DLGLOBAL DL_GLOBAL
11779# else
11780# define LT_DLGLOBAL 0
11781# endif
11782#endif
11783
11784/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11785 find out it does not work in some platform. */
11786#ifndef LT_DLLAZY_OR_NOW
11787# ifdef RTLD_LAZY
11788# define LT_DLLAZY_OR_NOW RTLD_LAZY
11789# else
11790# ifdef DL_LAZY
11791# define LT_DLLAZY_OR_NOW DL_LAZY
11792# else
11793# ifdef RTLD_NOW
11794# define LT_DLLAZY_OR_NOW RTLD_NOW
11795# else
11796# ifdef DL_NOW
11797# define LT_DLLAZY_OR_NOW DL_NOW
11798# else
11799# define LT_DLLAZY_OR_NOW 0
11800# endif
11801# endif
11802# endif
11803# endif
11804#endif
11805
11806#ifdef __cplusplus
11807extern "C" void exit (int);
11808#endif
11809
11810void fnord() { int i=42;}
11811int main ()
11812{
11813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11814 int status = $lt_dlunknown;
11815
11816 if (self)
11817 {
11818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11819 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11820 /* dlclose (self); */
11821 }
11822 else
11823 puts (dlerror ());
11824
11825 exit (status);
11826}
11827_LT_EOF
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11833 (./conftest; exit; ) >&5 2>/dev/null
11834 lt_status=$?
11835 case x$lt_status in
11836 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11837 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11838 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11839 esac
11840 else :
11841 # compilation failed
11842 lt_cv_dlopen_self_static=no
11843 fi
11844fi
11845rm -fr conftest*
11846
11847
11848fi
11849{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11850echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11851 fi
11852
11853 CPPFLAGS="$save_CPPFLAGS"
11854 LDFLAGS="$save_LDFLAGS"
11855 LIBS="$save_LIBS"
11856 ;;
11857 esac
11858
11859 case $lt_cv_dlopen_self in
11860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11861 *) enable_dlopen_self=unknown ;;
11862 esac
11863
11864 case $lt_cv_dlopen_self_static in
11865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11866 *) enable_dlopen_self_static=unknown ;;
11867 esac
11868fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886striplib=
11887old_striplib=
11888{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11889echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11890if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11891 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11892 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11893 { echo "$as_me:$LINENO: result: yes" >&5
11894echo "${ECHO_T}yes" >&6; }
11895else
11896# FIXME - insert some real tests, host_os isn't really good enough
11897 case $host_os in
11898 darwin*)
11899 if test -n "$STRIP" ; then
11900 striplib="$STRIP -x"
11901 old_striplib="$STRIP -S"
11902 { echo "$as_me:$LINENO: result: yes" >&5
11903echo "${ECHO_T}yes" >&6; }
11904 else
11905 { echo "$as_me:$LINENO: result: no" >&5
11906echo "${ECHO_T}no" >&6; }
11907 fi
11908 ;;
11909 *)
11910 { echo "$as_me:$LINENO: result: no" >&5
11911echo "${ECHO_T}no" >&6; }
11912 ;;
11913 esac
11914fi
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927 # Report which library types will actually be built
11928 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11929echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11930 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11931echo "${ECHO_T}$can_build_shared" >&6; }
11932
11933 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11934echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11935 test "$can_build_shared" = "no" && enable_shared=no
11936
11937 # On AIX, shared libraries and static libraries use the same namespace, and
11938 # are all built from PIC.
11939 case $host_os in
11940 aix3*)
11941 test "$enable_shared" = yes && enable_static=no
11942 if test -n "$RANLIB"; then
11943 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11944 postinstall_cmds='$RANLIB $lib'
11945 fi
11946 ;;
11947
11948 aix[4-9]*)
11949 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11950 test "$enable_shared" = yes && enable_static=no
11951 fi
11952 ;;
11953 esac
11954 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11955echo "${ECHO_T}$enable_shared" >&6; }
11956
11957 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11958echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11959 # Make sure either enable_shared or enable_static is yes.
11960 test "$enable_shared" = yes || enable_static=yes
11961 { echo "$as_me:$LINENO: result: $enable_static" >&5
11962echo "${ECHO_T}$enable_static" >&6; }
11963
11964
11965
11966
11967fi
11968ac_ext=cpp
11969ac_cpp='$CXXCPP $CPPFLAGS'
11970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11973
11974CC="$lt_save_CC"
11975
11976
11977ac_ext=cpp
11978ac_cpp='$CXXCPP $CPPFLAGS'
11979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11982
11983archive_cmds_need_lc_CXX=no
11984allow_undefined_flag_CXX=
11985always_export_symbols_CXX=no
11986archive_expsym_cmds_CXX=
11987compiler_needs_object_CXX=no
11988export_dynamic_flag_spec_CXX=
11989hardcode_direct_CXX=no
11990hardcode_direct_absolute_CXX=no
11991hardcode_libdir_flag_spec_CXX=
11992hardcode_libdir_flag_spec_ld_CXX=
11993hardcode_libdir_separator_CXX=
11994hardcode_minus_L_CXX=no
11995hardcode_shlibpath_var_CXX=unsupported
11996hardcode_automatic_CXX=no
11997inherit_rpath_CXX=no
11998module_cmds_CXX=
11999module_expsym_cmds_CXX=
12000link_all_deplibs_CXX=unknown
12001old_archive_cmds_CXX=$old_archive_cmds
12002no_undefined_flag_CXX=
12003whole_archive_flag_spec_CXX=
12004enable_shared_with_static_runtimes_CXX=no
12005
12006# Source file extension for C++ test sources.
12007ac_ext=cpp
12008
12009# Object file extension for compiled C++ test sources.
12010objext=o
12011objext_CXX=$objext
12012
12013# No sense in running all these tests if we already determined that
12014# the CXX compiler isn't working. Some variables (like enable_shared)
12015# are currently assumed to apply to all compilers on this platform,
12016# and will be corrupted by setting them based on a non-working compiler.
12017if test "$_lt_caught_CXX_error" != yes; then
12018 # Code to be used in simple compile tests
12019 lt_simple_compile_test_code="int some_variable = 0;"
12020
12021 # Code to be used in simple link tests
12022 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12023
12024 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12025
12026
12027
12028
12029
12030
12031# If no C compiler was specified, use CC.
12032LTCC=${LTCC-"$CC"}
12033
12034# If no C compiler flags were specified, use CFLAGS.
12035LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12036
12037# Allow CC to be a program name with arguments.
12038compiler=$CC
12039
12040
12041 # save warnings/boilerplate of simple test code
12042 ac_outfile=conftest.$ac_objext
12043echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12045_lt_compiler_boilerplate=`cat conftest.err`
12046$RM conftest*
12047
12048 ac_outfile=conftest.$ac_objext
12049echo "$lt_simple_link_test_code" >conftest.$ac_ext
12050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12051_lt_linker_boilerplate=`cat conftest.err`
12052$RM -r conftest*
12053
12054
12055 # Allow CC to be a program name with arguments.
12056 lt_save_CC=$CC
12057 lt_save_LD=$LD
12058 lt_save_GCC=$GCC
12059 GCC=$GXX
12060 lt_save_with_gnu_ld=$with_gnu_ld
12061 lt_save_path_LD=$lt_cv_path_LD
12062 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12063 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12064 else
12065 $as_unset lt_cv_prog_gnu_ld
12066 fi
12067 if test -n "${lt_cv_path_LDCXX+set}"; then
12068 lt_cv_path_LD=$lt_cv_path_LDCXX
12069 else
12070 $as_unset lt_cv_path_LD
12071 fi
12072 test -z "${LDCXX+set}" || LD=$LDCXX
12073 CC=${CXX-"c++"}
12074 compiler=$CC
12075 compiler_CXX=$CC
12076 for cc_temp in $compiler""; do
12077 case $cc_temp in
12078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12080 \-*) ;;
12081 *) break;;
12082 esac
12083done
12084cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12085
12086
12087 if test -n "$compiler"; then
12088 # We don't want -fno-exception when compiling C++ code, so set the
12089 # no_builtin_flag separately
12090 if test "$GXX" = yes; then
12091 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12092 else
12093 lt_prog_compiler_no_builtin_flag_CXX=
12094 fi
12095
12096 if test "$GXX" = yes; then
12097 # Set up default GNU C++ configuration
12098
12099
12100
12101# Check whether --with-gnu-ld was given.
12102if test "${with_gnu_ld+set}" = set; then
12103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12104else
12105 with_gnu_ld=no
12106fi
12107
12108ac_prog=ld
12109if test "$GCC" = yes; then
12110 # Check if gcc -print-prog-name=ld gives a path.
12111 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12112echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12113 case $host in
12114 *-*-mingw*)
12115 # gcc leaves a trailing carriage return which upsets mingw
12116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12117 *)
12118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12119 esac
12120 case $ac_prog in
12121 # Accept absolute paths.
12122 [\\/]* | ?:[\\/]*)
12123 re_direlt='/[^/][^/]*/\.\./'
12124 # Canonicalize the pathname of ld
12125 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12126 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12127 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12128 done
12129 test -z "$LD" && LD="$ac_prog"
12130 ;;
12131 "")
12132 # If it fails, then pretend we aren't using GCC.
12133 ac_prog=ld
12134 ;;
12135 *)
12136 # If it is relative, then search for the first ld in PATH.
12137 with_gnu_ld=unknown
12138 ;;
12139 esac
12140elif test "$with_gnu_ld" = yes; then
12141 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12142echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12143else
12144 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12145echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12146fi
12147if test "${lt_cv_path_LD+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149else
12150 if test -z "$LD"; then
12151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12152 for ac_dir in $PATH; do
12153 IFS="$lt_save_ifs"
12154 test -z "$ac_dir" && ac_dir=.
12155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12156 lt_cv_path_LD="$ac_dir/$ac_prog"
12157 # Check to see if the program is GNU ld. I'd rather use --version,
12158 # but apparently some variants of GNU ld only accept -v.
12159 # Break only if it was the GNU/non-GNU ld that we prefer.
12160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12161 *GNU* | *'with BFD'*)
12162 test "$with_gnu_ld" != no && break
12163 ;;
12164 *)
12165 test "$with_gnu_ld" != yes && break
12166 ;;
12167 esac
12168 fi
12169 done
12170 IFS="$lt_save_ifs"
12171else
12172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12173fi
12174fi
12175
12176LD="$lt_cv_path_LD"
12177if test -n "$LD"; then
12178 { echo "$as_me:$LINENO: result: $LD" >&5
12179echo "${ECHO_T}$LD" >&6; }
12180else
12181 { echo "$as_me:$LINENO: result: no" >&5
12182echo "${ECHO_T}no" >&6; }
12183fi
12184test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12185echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12186 { (exit 1); exit 1; }; }
12187{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12188echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12189if test "${lt_cv_prog_gnu_ld+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12193case `$LD -v 2>&1 </dev/null` in
12194*GNU* | *'with BFD'*)
12195 lt_cv_prog_gnu_ld=yes
12196 ;;
12197*)
12198 lt_cv_prog_gnu_ld=no
12199 ;;
12200esac
12201fi
12202{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12203echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12204with_gnu_ld=$lt_cv_prog_gnu_ld
12205
12206
12207
12208
12209
12210
12211
12212 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12213 # archiving commands below assume that GNU ld is being used.
12214 if test "$with_gnu_ld" = yes; then
12215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12216 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'
12217
12218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12220
12221 # If archive_cmds runs LD, not CC, wlarc should be empty
12222 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12223 # investigate it a little bit more. (MM)
12224 wlarc='${wl}'
12225
12226 # ancient GNU ld didn't support --whole-archive et. al.
12227 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12228 $GREP 'no-whole-archive' > /dev/null; then
12229 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12230 else
12231 whole_archive_flag_spec_CXX=
12232 fi
12233 else
12234 with_gnu_ld=no
12235 wlarc=
12236
12237 # A generic and very simple default shared library creation
12238 # command for GNU C++ for the case where it uses the native
12239 # linker, instead of GNU ld. If possible, this setting should
12240 # overridden to take advantage of the native linker features on
12241 # the platform it is being used on.
12242 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12243 fi
12244
12245 # Commands to make compiler produce verbose output that lists
12246 # what "hidden" libraries, object files and flags are used when
12247 # linking a shared library.
12248 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12249
12250 else
12251 GXX=no
12252 with_gnu_ld=no
12253 wlarc=
12254 fi
12255
12256 # PORTME: fill in a description of your system's C++ link characteristics
12257 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12258echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12259 ld_shlibs_CXX=yes
12260 case $host_os in
12261 aix3*)
12262 # FIXME: insert proper C++ library support
12263 ld_shlibs_CXX=no
12264 ;;
12265 aix[4-9]*)
12266 if test "$host_cpu" = ia64; then
12267 # On IA64, the linker does run time linking by default, so we don't
12268 # have to do anything special.
12269 aix_use_runtimelinking=no
12270 exp_sym_flag='-Bexport'
12271 no_entry_flag=""
12272 else
12273 aix_use_runtimelinking=no
12274
12275 # Test if we are trying to use run time linking or normal
12276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12277 # need to do runtime linking.
12278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12279 for ld_flag in $LDFLAGS; do
12280 case $ld_flag in
12281 *-brtl*)
12282 aix_use_runtimelinking=yes
12283 break
12284 ;;
12285 esac
12286 done
12287 ;;
12288 esac
12289
12290 exp_sym_flag='-bexport'
12291 no_entry_flag='-bnoentry'
12292 fi
12293
12294 # When large executables or shared objects are built, AIX ld can
12295 # have problems creating the table of contents. If linking a library
12296 # or program results in "error TOC overflow" add -mminimal-toc to
12297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12299
12300 archive_cmds_CXX=''
12301 hardcode_direct_CXX=yes
12302 hardcode_direct_absolute_CXX=yes
12303 hardcode_libdir_separator_CXX=':'
12304 link_all_deplibs_CXX=yes
12305 file_list_spec_CXX='${wl}-f,'
12306
12307 if test "$GXX" = yes; then
12308 case $host_os in aix4.[012]|aix4.[012].*)
12309 # We only want to do this on AIX 4.2 and lower, the check
12310 # below for broken collect2 doesn't work under 4.3+
12311 collect2name=`${CC} -print-prog-name=collect2`
12312 if test -f "$collect2name" &&
12313 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12314 then
12315 # We have reworked collect2
12316 :
12317 else
12318 # We have old collect2
12319 hardcode_direct_CXX=unsupported
12320 # It fails to find uninstalled libraries when the uninstalled
12321 # path is not listed in the libpath. Setting hardcode_minus_L
12322 # to unsupported forces relinking
12323 hardcode_minus_L_CXX=yes
12324 hardcode_libdir_flag_spec_CXX='-L$libdir'
12325 hardcode_libdir_separator_CXX=
12326 fi
12327 esac
12328 shared_flag='-shared'
12329 if test "$aix_use_runtimelinking" = yes; then
12330 shared_flag="$shared_flag "'${wl}-G'
12331 fi
12332 else
12333 # not using gcc
12334 if test "$host_cpu" = ia64; then
12335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12336 # chokes on -Wl,-G. The following line is correct:
12337 shared_flag='-G'
12338 else
12339 if test "$aix_use_runtimelinking" = yes; then
12340 shared_flag='${wl}-G'
12341 else
12342 shared_flag='${wl}-bM:SRE'
12343 fi
12344 fi
12345 fi
12346
12347 # It seems that -bexpall does not export symbols beginning with
12348 # underscore (_), so it is better to generate a list of symbols to
12349 # export.
12350 always_export_symbols_CXX=yes
12351 if test "$aix_use_runtimelinking" = yes; then
12352 # Warning - without using the other runtime loading flags (-brtl),
12353 # -berok will link without error, but may produce a broken library.
12354 allow_undefined_flag_CXX='-berok'
12355 # Determine the default libpath from the value encoded in an empty
12356 # executable.
12357 cat >conftest.$ac_ext <<_ACEOF
12358/* confdefs.h. */
12359_ACEOF
12360cat confdefs.h >>conftest.$ac_ext
12361cat >>conftest.$ac_ext <<_ACEOF
12362/* end confdefs.h. */
12363
12364int
12365main ()
12366{
12367
12368 ;
12369 return 0;
12370}
12371_ACEOF
12372rm -f conftest.$ac_objext conftest$ac_exeext
12373if { (ac_try="$ac_link"
12374case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12377esac
12378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_link") 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && {
12386 test -z "$ac_cxx_werror_flag" ||
12387 test ! -s conftest.err
12388 } && test -s conftest$ac_exeext &&
12389 $as_test_x conftest$ac_exeext; then
12390
12391lt_aix_libpath_sed='
12392 /Import File Strings/,/^$/ {
12393 /^0/ {
12394 s/^0 *\(.*\)$/\1/
12395 p
12396 }
12397 }'
12398aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12399# Check for a 64-bit object if we didn't find anything.
12400if test -z "$aix_libpath"; then
12401 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12402fi
12403else
12404 echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407
12408fi
12409
12410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12411 conftest$ac_exeext conftest.$ac_ext
12412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12413
12414 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12415
12416 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12417 else
12418 if test "$host_cpu" = ia64; then
12419 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12420 allow_undefined_flag_CXX="-z nodefs"
12421 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"
12422 else
12423 # Determine the default libpath from the value encoded in an
12424 # empty executable.
12425 cat >conftest.$ac_ext <<_ACEOF
12426/* confdefs.h. */
12427_ACEOF
12428cat confdefs.h >>conftest.$ac_ext
12429cat >>conftest.$ac_ext <<_ACEOF
12430/* end confdefs.h. */
12431
12432int
12433main ()
12434{
12435
12436 ;
12437 return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext conftest$ac_exeext
12441if { (ac_try="$ac_link"
12442case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12445esac
12446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_link") 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && {
12454 test -z "$ac_cxx_werror_flag" ||
12455 test ! -s conftest.err
12456 } && test -s conftest$ac_exeext &&
12457 $as_test_x conftest$ac_exeext; then
12458
12459lt_aix_libpath_sed='
12460 /Import File Strings/,/^$/ {
12461 /^0/ {
12462 s/^0 *\(.*\)$/\1/
12463 p
12464 }
12465 }'
12466aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12467# Check for a 64-bit object if we didn't find anything.
12468if test -z "$aix_libpath"; then
12469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12470fi
12471else
12472 echo "$as_me: failed program was:" >&5
12473sed 's/^/| /' conftest.$ac_ext >&5
12474
12475
12476fi
12477
12478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12479 conftest$ac_exeext conftest.$ac_ext
12480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12481
12482 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12483 # Warning - without using the other run time loading flags,
12484 # -berok will link without error, but may produce a broken library.
12485 no_undefined_flag_CXX=' ${wl}-bernotok'
12486 allow_undefined_flag_CXX=' ${wl}-berok'
12487 # Exported symbols can be pulled into shared objects from archives
12488 whole_archive_flag_spec_CXX='$convenience'
12489 archive_cmds_need_lc_CXX=yes
12490 # This is similar to how AIX traditionally builds its shared
12491 # libraries.
12492 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'
12493 fi
12494 fi
12495 ;;
12496
12497 beos*)
12498 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12499 allow_undefined_flag_CXX=unsupported
12500 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12501 # support --undefined. This deserves some investigation. FIXME
12502 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12503 else
12504 ld_shlibs_CXX=no
12505 fi
12506 ;;
12507
12508 chorus*)
12509 case $cc_basename in
12510 *)
12511 # FIXME: insert proper C++ library support
12512 ld_shlibs_CXX=no
12513 ;;
12514 esac
12515 ;;
12516
12517 cygwin* | mingw* | pw32*)
12518 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12519 # as there is no search path for DLLs.
12520 hardcode_libdir_flag_spec_CXX='-L$libdir'
12521 allow_undefined_flag_CXX=unsupported
12522 always_export_symbols_CXX=no
12523 enable_shared_with_static_runtimes_CXX=yes
12524
12525 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12526 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'
12527 # If the export-symbols file already is a .def file (1st line
12528 # is EXPORTS), use it as is; otherwise, prepend...
12529 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12530 cp $export_symbols $output_objdir/$soname.def;
12531 else
12532 echo EXPORTS > $output_objdir/$soname.def;
12533 cat $export_symbols >> $output_objdir/$soname.def;
12534 fi~
12535 $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'
12536 else
12537 ld_shlibs_CXX=no
12538 fi
12539 ;;
12540 darwin* | rhapsody*)
12541
12542
12543 archive_cmds_need_lc_CXX=no
12544 hardcode_direct_CXX=no
12545 hardcode_automatic_CXX=yes
12546 hardcode_shlibpath_var_CXX=unsupported
12547 whole_archive_flag_spec_CXX=''
12548 link_all_deplibs_CXX=yes
12549 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12550 if test "$GCC" = "yes"; then
12551 output_verbose_link_cmd=echo
12552 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}"
12553 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12554 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}"
12555 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}"
12556 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12557 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}"
12558 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}"
12559 fi
12560
12561 else
12562 ld_shlibs_CXX=no
12563 fi
12564
12565 ;;
12566
12567 dgux*)
12568 case $cc_basename in
12569 ec++*)
12570 # FIXME: insert proper C++ library support
12571 ld_shlibs_CXX=no
12572 ;;
12573 ghcx*)
12574 # Green Hills C++ Compiler
12575 # FIXME: insert proper C++ library support
12576 ld_shlibs_CXX=no
12577 ;;
12578 *)
12579 # FIXME: insert proper C++ library support
12580 ld_shlibs_CXX=no
12581 ;;
12582 esac
12583 ;;
12584
12585 freebsd[12]*)
12586 # C++ shared libraries reported to be fairly broken before
12587 # switch to ELF
12588 ld_shlibs_CXX=no
12589 ;;
12590
12591 freebsd-elf*)
12592 archive_cmds_need_lc_CXX=no
12593 ;;
12594
12595 freebsd* | dragonfly*)
12596 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12597 # conventions
12598 ld_shlibs_CXX=yes
12599 ;;
12600
12601 gnu*)
12602 ;;
12603
12604 hpux9*)
12605 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12606 hardcode_libdir_separator_CXX=:
12607 export_dynamic_flag_spec_CXX='${wl}-E'
12608 hardcode_direct_CXX=yes
12609 hardcode_minus_L_CXX=yes # Not in the search PATH,
12610 # but as the default
12611 # location of the library.
12612
12613 case $cc_basename in
12614 CC*)
12615 # FIXME: insert proper C++ library support
12616 ld_shlibs_CXX=no
12617 ;;
12618 aCC*)
12619 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'
12620 # Commands to make compiler produce verbose output that lists
12621 # what "hidden" libraries, object files and flags are used when
12622 # linking a shared library.
12623 #
12624 # There doesn't appear to be a way to prevent this compiler from
12625 # explicitly linking system object files so we need to strip them
12626 # from the output so that they don't get included in the library
12627 # dependencies.
12628 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; $ECHO "X$list" | $Xsed'
12629 ;;
12630 *)
12631 if test "$GXX" = yes; then
12632 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'
12633 else
12634 # FIXME: insert proper C++ library support
12635 ld_shlibs_CXX=no
12636 fi
12637 ;;
12638 esac
12639 ;;
12640
12641 hpux10*|hpux11*)
12642 if test $with_gnu_ld = no; then
12643 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12644 hardcode_libdir_separator_CXX=:
12645
12646 case $host_cpu in
12647 hppa*64*|ia64*)
12648 ;;
12649 *)
12650 export_dynamic_flag_spec_CXX='${wl}-E'
12651 ;;
12652 esac
12653 fi
12654 case $host_cpu in
12655 hppa*64*|ia64*)
12656 hardcode_direct_CXX=no
12657 hardcode_shlibpath_var_CXX=no
12658 ;;
12659 *)
12660 hardcode_direct_CXX=yes
12661 hardcode_direct_absolute_CXX=yes
12662 hardcode_minus_L_CXX=yes # Not in the search PATH,
12663 # but as the default
12664 # location of the library.
12665 ;;
12666 esac
12667
12668 case $cc_basename in
12669 CC*)
12670 # FIXME: insert proper C++ library support
12671 ld_shlibs_CXX=no
12672 ;;
12673 aCC*)
12674 case $host_cpu in
12675 hppa*64*)
12676 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12677 ;;
12678 ia64*)
12679 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12680 ;;
12681 *)
12682 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12683 ;;
12684 esac
12685 # Commands to make compiler produce verbose output that lists
12686 # what "hidden" libraries, object files and flags are used when
12687 # linking a shared library.
12688 #
12689 # There doesn't appear to be a way to prevent this compiler from
12690 # explicitly linking system object files so we need to strip them
12691 # from the output so that they don't get included in the library
12692 # dependencies.
12693 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; $ECHO "X$list" | $Xsed'
12694 ;;
12695 *)
12696 if test "$GXX" = yes; then
12697 if test $with_gnu_ld = no; then
12698 case $host_cpu in
12699 hppa*64*)
12700 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12701 ;;
12702 ia64*)
12703 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12704 ;;
12705 *)
12706 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'
12707 ;;
12708 esac
12709 fi
12710 else
12711 # FIXME: insert proper C++ library support
12712 ld_shlibs_CXX=no
12713 fi
12714 ;;
12715 esac
12716 ;;
12717
12718 interix[3-9]*)
12719 hardcode_direct_CXX=no
12720 hardcode_shlibpath_var_CXX=no
12721 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12722 export_dynamic_flag_spec_CXX='${wl}-E'
12723 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12724 # Instead, shared libraries are loaded at an image base (0x10000000 by
12725 # default) and relocated if they conflict, which is a slow very memory
12726 # consuming and fragmenting process. To avoid this, we pick a random,
12727 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12728 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12729 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'
12730 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'
12731 ;;
12732 irix5* | irix6*)
12733 case $cc_basename in
12734 CC*)
12735 # SGI C++
12736 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12737
12738 # Archives containing C++ object files must be created using
12739 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12740 # necessary to make sure instantiated templates are included
12741 # in the archive.
12742 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12743 ;;
12744 *)
12745 if test "$GXX" = yes; then
12746 if test "$with_gnu_ld" = no; then
12747 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12748 else
12749 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12750 fi
12751 fi
12752 link_all_deplibs_CXX=yes
12753 ;;
12754 esac
12755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12756 hardcode_libdir_separator_CXX=:
12757 inherit_rpath_CXX=yes
12758 ;;
12759
12760 linux* | k*bsd*-gnu)
12761 case $cc_basename in
12762 KCC*)
12763 # Kuck and Associates, Inc. (KAI) C++ Compiler
12764
12765 # KCC will only create a shared library if the output file
12766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12767 # to its proper name (with version) after linking.
12768 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'
12769 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'
12770 # Commands to make compiler produce verbose output that lists
12771 # what "hidden" libraries, object files and flags are used when
12772 # linking a shared library.
12773 #
12774 # There doesn't appear to be a way to prevent this compiler from
12775 # explicitly linking system object files so we need to strip them
12776 # from the output so that they don't get included in the library
12777 # dependencies.
12778 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; $ECHO "X$list" | $Xsed'
12779
12780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12781 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12782
12783 # Archives containing C++ object files must be created using
12784 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12785 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12786 ;;
12787 icpc* | ecpc* )
12788 # Intel C++
12789 with_gnu_ld=yes
12790 # version 8.0 and above of icpc choke on multiply defined symbols
12791 # if we add $predep_objects and $postdep_objects, however 7.1 and
12792 # earlier do not add the objects themselves.
12793 case `$CC -V 2>&1` in
12794 *"Version 7."*)
12795 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12796 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'
12797 ;;
12798 *) # Version 8.0 or newer
12799 tmp_idyn=
12800 case $host_cpu in
12801 ia64*) tmp_idyn=' -i_dynamic';;
12802 esac
12803 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12804 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'
12805 ;;
12806 esac
12807 archive_cmds_need_lc_CXX=no
12808 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12810 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12811 ;;
12812 pgCC* | pgcpp*)
12813 # Portland Group C++ compiler
12814 case `$CC -V` in
12815 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12816 prelink_cmds_CXX='tpldir=Template.dir~
12817 rm -rf $tpldir~
12818 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12819 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12820 old_archive_cmds_CXX='tpldir=Template.dir~
12821 rm -rf $tpldir~
12822 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12823 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12824 $RANLIB $oldlib'
12825 archive_cmds_CXX='tpldir=Template.dir~
12826 rm -rf $tpldir~
12827 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12828 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12829 archive_expsym_cmds_CXX='tpldir=Template.dir~
12830 rm -rf $tpldir~
12831 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12832 $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'
12833 ;;
12834 *) # Version 6 will use weak symbols
12835 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12836 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'
12837 ;;
12838 esac
12839
12840 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12841 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12842 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12843 ;;
12844 cxx*)
12845 # Compaq C++
12846 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847 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'
12848
12849 runpath_var=LD_RUN_PATH
12850 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12851 hardcode_libdir_separator_CXX=:
12852
12853 # Commands to make compiler produce verbose output that lists
12854 # what "hidden" libraries, object files and flags are used when
12855 # linking a shared library.
12856 #
12857 # There doesn't appear to be a way to prevent this compiler from
12858 # explicitly linking system object files so we need to strip them
12859 # from the output so that they don't get included in the library
12860 # dependencies.
12861 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12862 ;;
12863 xl*)
12864 # IBM XL 8.0 on PPC, with GNU ld
12865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12866 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12867 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12868 if test "x$supports_anon_versioning" = xyes; then
12869 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12870 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12871 echo "local: *; };" >> $output_objdir/$libname.ver~
12872 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12873 fi
12874 ;;
12875 *)
12876 case `$CC -V 2>&1 | sed 5q` in
12877 *Sun\ C*)
12878 # Sun C++ 5.9
12879 no_undefined_flag_CXX=' -zdefs'
12880 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12881 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'
12882 hardcode_libdir_flag_spec_CXX='-R$libdir'
12883 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12884 compiler_needs_object_CXX=yes
12885
12886 # Not sure whether something based on
12887 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12888 # would be better.
12889 output_verbose_link_cmd='echo'
12890
12891 # Archives containing C++ object files must be created using
12892 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12893 # necessary to make sure instantiated templates are included
12894 # in the archive.
12895 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12896 ;;
12897 esac
12898 ;;
12899 esac
12900 ;;
12901
12902 lynxos*)
12903 # FIXME: insert proper C++ library support
12904 ld_shlibs_CXX=no
12905 ;;
12906
12907 m88k*)
12908 # FIXME: insert proper C++ library support
12909 ld_shlibs_CXX=no
12910 ;;
12911
12912 mvs*)
12913 case $cc_basename in
12914 cxx*)
12915 # FIXME: insert proper C++ library support
12916 ld_shlibs_CXX=no
12917 ;;
12918 *)
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922 esac
12923 ;;
12924
12925 netbsd*)
12926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12927 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12928 wlarc=
12929 hardcode_libdir_flag_spec_CXX='-R$libdir'
12930 hardcode_direct_CXX=yes
12931 hardcode_shlibpath_var_CXX=no
12932 fi
12933 # Workaround some broken pre-1.5 toolchains
12934 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12935 ;;
12936
12937 *nto* | *qnx*)
12938 ld_shlibs_CXX=yes
12939 ;;
12940
12941 openbsd2*)
12942 # C++ shared libraries are fairly broken
12943 ld_shlibs_CXX=no
12944 ;;
12945
12946 openbsd*)
12947 if test -f /usr/libexec/ld.so; then
12948 hardcode_direct_CXX=yes
12949 hardcode_shlibpath_var_CXX=no
12950 hardcode_direct_absolute_CXX=yes
12951 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12954 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12955 export_dynamic_flag_spec_CXX='${wl}-E'
12956 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12957 fi
12958 output_verbose_link_cmd=echo
12959 else
12960 ld_shlibs_CXX=no
12961 fi
12962 ;;
12963
12964 osf3* | osf4* | osf5*)
12965 case $cc_basename in
12966 KCC*)
12967 # Kuck and Associates, Inc. (KAI) C++ Compiler
12968
12969 # KCC will only create a shared library if the output file
12970 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12971 # to its proper name (with version) after linking.
12972 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'
12973
12974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12975 hardcode_libdir_separator_CXX=:
12976
12977 # Archives containing C++ object files must be created using
12978 # the KAI C++ compiler.
12979 case $host in
12980 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12981 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12982 esac
12983 ;;
12984 RCC*)
12985 # Rational C++ 2.4.1
12986 # FIXME: insert proper C++ library support
12987 ld_shlibs_CXX=no
12988 ;;
12989 cxx*)
12990 case $host in
12991 osf3*)
12992 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12993 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12995 ;;
12996 *)
12997 allow_undefined_flag_CXX=' -expect_unresolved \*'
12998 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12999 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13000 echo "-hidden">> $lib.exp~
13001 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13002 $RM $lib.exp'
13003 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13004 ;;
13005 esac
13006
13007 hardcode_libdir_separator_CXX=:
13008
13009 # Commands to make compiler produce verbose output that lists
13010 # what "hidden" libraries, object files and flags are used when
13011 # linking a shared library.
13012 #
13013 # There doesn't appear to be a way to prevent this compiler from
13014 # explicitly linking system object files so we need to strip them
13015 # from the output so that they don't get included in the library
13016 # dependencies.
13017 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13018 ;;
13019 *)
13020 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13021 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13022 case $host in
13023 osf3*)
13024 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13025 ;;
13026 *)
13027 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13028 ;;
13029 esac
13030
13031 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13032 hardcode_libdir_separator_CXX=:
13033
13034 # Commands to make compiler produce verbose output that lists
13035 # what "hidden" libraries, object files and flags are used when
13036 # linking a shared library.
13037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13038
13039 else
13040 # FIXME: insert proper C++ library support
13041 ld_shlibs_CXX=no
13042 fi
13043 ;;
13044 esac
13045 ;;
13046
13047 psos*)
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13050 ;;
13051
13052 sunos4*)
13053 case $cc_basename in
13054 CC*)
13055 # Sun C++ 4.x
13056 # FIXME: insert proper C++ library support
13057 ld_shlibs_CXX=no
13058 ;;
13059 lcc*)
13060 # Lucid
13061 # FIXME: insert proper C++ library support
13062 ld_shlibs_CXX=no
13063 ;;
13064 *)
13065 # FIXME: insert proper C++ library support
13066 ld_shlibs_CXX=no
13067 ;;
13068 esac
13069 ;;
13070
13071 solaris*)
13072 case $cc_basename in
13073 CC*)
13074 # Sun C++ 4.2, 5.x and Centerline C++
13075 archive_cmds_need_lc_CXX=yes
13076 no_undefined_flag_CXX=' -zdefs'
13077 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13078 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13079 $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'
13080
13081 hardcode_libdir_flag_spec_CXX='-R$libdir'
13082 hardcode_shlibpath_var_CXX=no
13083 case $host_os in
13084 solaris2.[0-5] | solaris2.[0-5].*) ;;
13085 *)
13086 # The compiler driver will combine and reorder linker options,
13087 # but understands `-z linker_flag'.
13088 # Supported since Solaris 2.6 (maybe 2.5.1?)
13089 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13090 ;;
13091 esac
13092 link_all_deplibs_CXX=yes
13093
13094 output_verbose_link_cmd='echo'
13095
13096 # Archives containing C++ object files must be created using
13097 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13098 # necessary to make sure instantiated templates are included
13099 # in the archive.
13100 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13101 ;;
13102 gcx*)
13103 # Green Hills C++ Compiler
13104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13105
13106 # The C++ compiler must be used to create the archive.
13107 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13108 ;;
13109 *)
13110 # GNU C++ compiler with Solaris linker
13111 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13112 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13113 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13114 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13115 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13116 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13117
13118 # Commands to make compiler produce verbose output that lists
13119 # what "hidden" libraries, object files and flags are used when
13120 # linking a shared library.
13121 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13122 else
13123 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13124 # platform.
13125 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13126 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13127 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13128
13129 # Commands to make compiler produce verbose output that lists
13130 # what "hidden" libraries, object files and flags are used when
13131 # linking a shared library.
13132 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13133 fi
13134
13135 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13136 case $host_os in
13137 solaris2.[0-5] | solaris2.[0-5].*) ;;
13138 *)
13139 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13140 ;;
13141 esac
13142 fi
13143 ;;
13144 esac
13145 ;;
13146
13147 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13148 no_undefined_flag_CXX='${wl}-z,text'
13149 archive_cmds_need_lc_CXX=no
13150 hardcode_shlibpath_var_CXX=no
13151 runpath_var='LD_RUN_PATH'
13152
13153 case $cc_basename in
13154 CC*)
13155 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13156 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13157 ;;
13158 *)
13159 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13160 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13161 ;;
13162 esac
13163 ;;
13164
13165 sysv5* | sco3.2v5* | sco5v6*)
13166 # Note: We can NOT use -z defs as we might desire, because we do not
13167 # link with -lc, and that would cause any symbols used from libc to
13168 # always be unresolved, which means just about no library would
13169 # ever link correctly. If we're not using GNU ld we use -z text
13170 # though, which does catch some bad symbols but isn't as heavy-handed
13171 # as -z defs.
13172 no_undefined_flag_CXX='${wl}-z,text'
13173 allow_undefined_flag_CXX='${wl}-z,nodefs'
13174 archive_cmds_need_lc_CXX=no
13175 hardcode_shlibpath_var_CXX=no
13176 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13177 hardcode_libdir_separator_CXX=':'
13178 link_all_deplibs_CXX=yes
13179 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13180 runpath_var='LD_RUN_PATH'
13181
13182 case $cc_basename in
13183 CC*)
13184 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13185 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13186 ;;
13187 *)
13188 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13189 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13190 ;;
13191 esac
13192 ;;
13193
13194 tandem*)
13195 case $cc_basename in
13196 NCC*)
13197 # NonStop-UX NCC 3.20
13198 # FIXME: insert proper C++ library support
13199 ld_shlibs_CXX=no
13200 ;;
13201 *)
13202 # FIXME: insert proper C++ library support
13203 ld_shlibs_CXX=no
13204 ;;
13205 esac
13206 ;;
13207
13208 vxworks*)
13209 # FIXME: insert proper C++ library support
13210 ld_shlibs_CXX=no
13211 ;;
13212
13213 *)
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13216 ;;
13217 esac
13218
13219 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13220echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13221 test "$ld_shlibs_CXX" = no && can_build_shared=no
13222
13223 GCC_CXX="$GXX"
13224 LD_CXX="$LD"
13225
13226 ## CAVEAT EMPTOR:
13227 ## There is no encapsulation within the following macros, do not change
13228 ## the running order or otherwise move them around unless you know exactly
13229 ## what you are doing...
13230 # Dependencies to place before and after the object being linked:
13231predep_objects_CXX=
13232postdep_objects_CXX=
13233predeps_CXX=
13234postdeps_CXX=
13235compiler_lib_search_path_CXX=
13236
13237cat > conftest.$ac_ext <<_LT_EOF
13238class Foo
13239{
13240public:
13241 Foo (void) { a = 0; }
13242private:
13243 int a;
13244};
13245_LT_EOF
13246
13247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; then
13252 # Parse the compiler output and extract the necessary
13253 # objects, libraries and library flags.
13254
13255 # Sentinel used to keep track of whether or not we are before
13256 # the conftest object file.
13257 pre_test_object_deps_done=no
13258
13259 for p in `eval "$output_verbose_link_cmd"`; do
13260 case $p in
13261
13262 -L* | -R* | -l*)
13263 # Some compilers place space between "-{L,R}" and the path.
13264 # Remove the space.
13265 if test $p = "-L" ||
13266 test $p = "-R"; then
13267 prev=$p
13268 continue
13269 else
13270 prev=
13271 fi
13272
13273 if test "$pre_test_object_deps_done" = no; then
13274 case $p in
13275 -L* | -R*)
13276 # Internal compiler library paths should come after those
13277 # provided the user. The postdeps already come after the
13278 # user supplied libs so there is no need to process them.
13279 if test -z "$compiler_lib_search_path_CXX"; then
13280 compiler_lib_search_path_CXX="${prev}${p}"
13281 else
13282 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13283 fi
13284 ;;
13285 # The "-l" case would never come before the object being
13286 # linked, so don't bother handling this case.
13287 esac
13288 else
13289 if test -z "$postdeps_CXX"; then
13290 postdeps_CXX="${prev}${p}"
13291 else
13292 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13293 fi
13294 fi
13295 ;;
13296
13297 *.$objext)
13298 # This assumes that the test object file only shows up
13299 # once in the compiler output.
13300 if test "$p" = "conftest.$objext"; then
13301 pre_test_object_deps_done=yes
13302 continue
13303 fi
13304
13305 if test "$pre_test_object_deps_done" = no; then
13306 if test -z "$predep_objects_CXX"; then
13307 predep_objects_CXX="$p"
13308 else
13309 predep_objects_CXX="$predep_objects_CXX $p"
13310 fi
13311 else
13312 if test -z "$postdep_objects_CXX"; then
13313 postdep_objects_CXX="$p"
13314 else
13315 postdep_objects_CXX="$postdep_objects_CXX $p"
13316 fi
13317 fi
13318 ;;
13319
13320 *) ;; # Ignore the rest.
13321
13322 esac
13323 done
13324
13325 # Clean up.
13326 rm -f a.out a.exe
13327else
13328 echo "libtool.m4: error: problem compiling CXX test program"
13329fi
13330
13331$RM -f confest.$objext
13332
13333# PORTME: override above test on systems where it is broken
13334case $host_os in
13335interix[3-9]*)
13336 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13337 # hack all around it, let's just trust "g++" to DTRT.
13338 predep_objects_CXX=
13339 postdep_objects_CXX=
13340 postdeps_CXX=
13341 ;;
13342
13343linux*)
13344 case `$CC -V 2>&1 | sed 5q` in
13345 *Sun\ C*)
13346 # Sun C++ 5.9
13347
13348 # The more standards-conforming stlport4 library is
13349 # incompatible with the Cstd library. Avoid specifying
13350 # it if it's in CXXFLAGS. Ignore libCrun as
13351 # -library=stlport4 depends on it.
13352 case " $CXX $CXXFLAGS " in
13353 *" -library=stlport4 "*)
13354 solaris_use_stlport4=yes
13355 ;;
13356 esac
13357
13358 if test "$solaris_use_stlport4" != yes; then
13359 postdeps_CXX='-library=Cstd -library=Crun'
13360 fi
13361 ;;
13362 esac
13363 ;;
13364
13365solaris*)
13366 case $cc_basename in
13367 CC*)
13368 # The more standards-conforming stlport4 library is
13369 # incompatible with the Cstd library. Avoid specifying
13370 # it if it's in CXXFLAGS. Ignore libCrun as
13371 # -library=stlport4 depends on it.
13372 case " $CXX $CXXFLAGS " in
13373 *" -library=stlport4 "*)
13374 solaris_use_stlport4=yes
13375 ;;
13376 esac
13377
13378 # Adding this requires a known-good setup of shared libraries for
13379 # Sun compiler versions before 5.6, else PIC objects from an old
13380 # archive will be linked into the output, leading to subtle bugs.
13381 if test "$solaris_use_stlport4" != yes; then
13382 postdeps_CXX='-library=Cstd -library=Crun'
13383 fi
13384 ;;
13385 esac
13386 ;;
13387esac
13388
13389
13390case " $postdeps_CXX " in
13391*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13392esac
13393 compiler_lib_search_dirs_CXX=
13394if test -n "${compiler_lib_search_path_CXX}"; then
13395 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13396fi
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428 lt_prog_compiler_wl_CXX=
13429lt_prog_compiler_pic_CXX=
13430lt_prog_compiler_static_CXX=
13431
13432{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13433echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13434
13435 # C++ specific cases for pic, static, wl, etc.
13436 if test "$GXX" = yes; then
13437 lt_prog_compiler_wl_CXX='-Wl,'
13438 lt_prog_compiler_static_CXX='-static'
13439
13440 case $host_os in
13441 aix*)
13442 # All AIX code is PIC.
13443 if test "$host_cpu" = ia64; then
13444 # AIX 5 now supports IA64 processor
13445 lt_prog_compiler_static_CXX='-Bstatic'
13446 fi
13447 ;;
13448
13449 amigaos*)
13450 case $host_cpu in
13451 powerpc)
13452 # see comment about AmigaOS4 .so support
13453 lt_prog_compiler_pic_CXX='-fPIC'
13454 ;;
13455 m68k)
13456 # FIXME: we need at least 68020 code to build shared libraries, but
13457 # adding the `-m68020' flag to GCC prevents building anything better,
13458 # like `-m68040'.
13459 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13460 ;;
13461 esac
13462 ;;
13463
13464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13465 # PIC is the default for these OSes.
13466 ;;
13467 mingw* | cygwin* | os2* | pw32*)
13468 # This hack is so that the source file can tell whether it is being
13469 # built for inclusion in a dll (and should export symbols for example).
13470 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13471 # (--disable-auto-import) libraries
13472 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13473 ;;
13474 darwin* | rhapsody*)
13475 # PIC is the default on this platform
13476 # Common symbols not allowed in MH_DYLIB files
13477 lt_prog_compiler_pic_CXX='-fno-common'
13478 ;;
13479 *djgpp*)
13480 # DJGPP does not support shared libraries at all
13481 lt_prog_compiler_pic_CXX=
13482 ;;
13483 interix[3-9]*)
13484 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13485 # Instead, we relocate shared libraries at runtime.
13486 ;;
13487 sysv4*MP*)
13488 if test -d /usr/nec; then
13489 lt_prog_compiler_pic_CXX=-Kconform_pic
13490 fi
13491 ;;
13492 hpux*)
13493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13494 # not for PA HP-UX.
13495 case $host_cpu in
13496 hppa*64*|ia64*)
13497 ;;
13498 *)
13499 lt_prog_compiler_pic_CXX='-fPIC'
13500 ;;
13501 esac
13502 ;;
13503 *qnx* | *nto*)
13504 # QNX uses GNU C++, but need to define -shared option too, otherwise
13505 # it will coredump.
13506 lt_prog_compiler_pic_CXX='-fPIC -shared'
13507 ;;
13508 *)
13509 lt_prog_compiler_pic_CXX='-fPIC'
13510 ;;
13511 esac
13512 else
13513 case $host_os in
13514 aix[4-9]*)
13515 # All AIX code is PIC.
13516 if test "$host_cpu" = ia64; then
13517 # AIX 5 now supports IA64 processor
13518 lt_prog_compiler_static_CXX='-Bstatic'
13519 else
13520 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13521 fi
13522 ;;
13523 chorus*)
13524 case $cc_basename in
13525 cxch68*)
13526 # Green Hills C++ Compiler
13527 # _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"
13528 ;;
13529 esac
13530 ;;
13531 dgux*)
13532 case $cc_basename in
13533 ec++*)
13534 lt_prog_compiler_pic_CXX='-KPIC'
13535 ;;
13536 ghcx*)
13537 # Green Hills C++ Compiler
13538 lt_prog_compiler_pic_CXX='-pic'
13539 ;;
13540 *)
13541 ;;
13542 esac
13543 ;;
13544 freebsd* | dragonfly*)
13545 # FreeBSD uses GNU C++
13546 ;;
13547 hpux9* | hpux10* | hpux11*)
13548 case $cc_basename in
13549 CC*)
13550 lt_prog_compiler_wl_CXX='-Wl,'
13551 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13552 if test "$host_cpu" != ia64; then
13553 lt_prog_compiler_pic_CXX='+Z'
13554 fi
13555 ;;
13556 aCC*)
13557 lt_prog_compiler_wl_CXX='-Wl,'
13558 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13559 case $host_cpu in
13560 hppa*64*|ia64*)
13561 # +Z the default
13562 ;;
13563 *)
13564 lt_prog_compiler_pic_CXX='+Z'
13565 ;;
13566 esac
13567 ;;
13568 *)
13569 ;;
13570 esac
13571 ;;
13572 interix*)
13573 # This is c89, which is MS Visual C++ (no shared libs)
13574 # Anyone wants to do a port?
13575 ;;
13576 irix5* | irix6* | nonstopux*)
13577 case $cc_basename in
13578 CC*)
13579 lt_prog_compiler_wl_CXX='-Wl,'
13580 lt_prog_compiler_static_CXX='-non_shared'
13581 # CC pic flag -KPIC is the default.
13582 ;;
13583 *)
13584 ;;
13585 esac
13586 ;;
13587 linux* | k*bsd*-gnu)
13588 case $cc_basename in
13589 KCC*)
13590 # KAI C++ Compiler
13591 lt_prog_compiler_wl_CXX='--backend -Wl,'
13592 lt_prog_compiler_pic_CXX='-fPIC'
13593 ;;
13594 icpc* | ecpc* )
13595 # Intel C++
13596 lt_prog_compiler_wl_CXX='-Wl,'
13597 lt_prog_compiler_pic_CXX='-KPIC'
13598 lt_prog_compiler_static_CXX='-static'
13599 ;;
13600 pgCC* | pgcpp*)
13601 # Portland Group C++ compiler
13602 lt_prog_compiler_wl_CXX='-Wl,'
13603 lt_prog_compiler_pic_CXX='-fpic'
13604 lt_prog_compiler_static_CXX='-Bstatic'
13605 ;;
13606 cxx*)
13607 # Compaq C++
13608 # Make sure the PIC flag is empty. It appears that all Alpha
13609 # Linux and Compaq Tru64 Unix objects are PIC.
13610 lt_prog_compiler_pic_CXX=
13611 lt_prog_compiler_static_CXX='-non_shared'
13612 ;;
13613 xlc* | xlC*)
13614 # IBM XL 8.0 on PPC
13615 lt_prog_compiler_wl_CXX='-Wl,'
13616 lt_prog_compiler_pic_CXX='-qpic'
13617 lt_prog_compiler_static_CXX='-qstaticlink'
13618 ;;
13619 *)
13620 case `$CC -V 2>&1 | sed 5q` in
13621 *Sun\ C*)
13622 # Sun C++ 5.9
13623 lt_prog_compiler_pic_CXX='-KPIC'
13624 lt_prog_compiler_static_CXX='-Bstatic'
13625 lt_prog_compiler_wl_CXX='-Qoption ld '
13626 ;;
13627 esac
13628 ;;
13629 esac
13630 ;;
13631 lynxos*)
13632 ;;
13633 m88k*)
13634 ;;
13635 mvs*)
13636 case $cc_basename in
13637 cxx*)
13638 lt_prog_compiler_pic_CXX='-W c,exportall'
13639 ;;
13640 *)
13641 ;;
13642 esac
13643 ;;
13644 netbsd*)
13645 ;;
13646 *qnx* | *nto*)
13647 # QNX uses GNU C++, but need to define -shared option too, otherwise
13648 # it will coredump.
13649 lt_prog_compiler_pic_CXX='-fPIC -shared'
13650 ;;
13651 osf3* | osf4* | osf5*)
13652 case $cc_basename in
13653 KCC*)
13654 lt_prog_compiler_wl_CXX='--backend -Wl,'
13655 ;;
13656 RCC*)
13657 # Rational C++ 2.4.1
13658 lt_prog_compiler_pic_CXX='-pic'
13659 ;;
13660 cxx*)
13661 # Digital/Compaq C++
13662 lt_prog_compiler_wl_CXX='-Wl,'
13663 # Make sure the PIC flag is empty. It appears that all Alpha
13664 # Linux and Compaq Tru64 Unix objects are PIC.
13665 lt_prog_compiler_pic_CXX=
13666 lt_prog_compiler_static_CXX='-non_shared'
13667 ;;
13668 *)
13669 ;;
13670 esac
13671 ;;
13672 psos*)
13673 ;;
13674 solaris*)
13675 case $cc_basename in
13676 CC*)
13677 # Sun C++ 4.2, 5.x and Centerline C++
13678 lt_prog_compiler_pic_CXX='-KPIC'
13679 lt_prog_compiler_static_CXX='-Bstatic'
13680 lt_prog_compiler_wl_CXX='-Qoption ld '
13681 ;;
13682 gcx*)
13683 # Green Hills C++ Compiler
13684 lt_prog_compiler_pic_CXX='-PIC'
13685 ;;
13686 *)
13687 ;;
13688 esac
13689 ;;
13690 sunos4*)
13691 case $cc_basename in
13692 CC*)
13693 # Sun C++ 4.x
13694 lt_prog_compiler_pic_CXX='-pic'
13695 lt_prog_compiler_static_CXX='-Bstatic'
13696 ;;
13697 lcc*)
13698 # Lucid
13699 lt_prog_compiler_pic_CXX='-pic'
13700 ;;
13701 *)
13702 ;;
13703 esac
13704 ;;
13705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13706 case $cc_basename in
13707 CC*)
13708 lt_prog_compiler_wl_CXX='-Wl,'
13709 lt_prog_compiler_pic_CXX='-KPIC'
13710 lt_prog_compiler_static_CXX='-Bstatic'
13711 ;;
13712 esac
13713 ;;
13714 tandem*)
13715 case $cc_basename in
13716 NCC*)
13717 # NonStop-UX NCC 3.20
13718 lt_prog_compiler_pic_CXX='-KPIC'
13719 ;;
13720 *)
13721 ;;
13722 esac
13723 ;;
13724 vxworks*)
13725 ;;
13726 *)
13727 lt_prog_compiler_can_build_shared_CXX=no
13728 ;;
13729 esac
13730 fi
13731
13732case $host_os in
13733 # For platforms which do not support PIC, -DPIC is meaningless:
13734 *djgpp*)
13735 lt_prog_compiler_pic_CXX=
13736 ;;
13737 *)
13738 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13739 ;;
13740esac
13741{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13742echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13743
13744
13745
13746#
13747# Check to make sure the PIC flag actually works.
13748#
13749if test -n "$lt_prog_compiler_pic_CXX"; then
13750 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13751echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13752if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13754else
13755 lt_cv_prog_compiler_pic_works_CXX=no
13756 ac_outfile=conftest.$ac_objext
13757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13758 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13759 # Insert the option either (1) after the last *FLAGS variable, or
13760 # (2) before a word containing "conftest.", or (3) at the end.
13761 # Note that $ac_compile itself does not contain backslashes and begins
13762 # with a dollar sign (not a hyphen), so the echo should work correctly.
13763 # The option is referenced via a variable to avoid confusing sed.
13764 lt_compile=`echo "$ac_compile" | $SED \
13765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13767 -e 's:$: $lt_compiler_flag:'`
13768 (eval echo "\"\$as_me:13768: $lt_compile\"" >&5)
13769 (eval "$lt_compile" 2>conftest.err)
13770 ac_status=$?
13771 cat conftest.err >&5
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 if (exit $ac_status) && test -s "$ac_outfile"; then
13774 # The compiler can only warn and ignore the option if not recognized
13775 # So say no if there are warnings other than the usual output.
13776 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13779 lt_cv_prog_compiler_pic_works_CXX=yes
13780 fi
13781 fi
13782 $RM conftest*
13783
13784fi
13785{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13786echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13787
13788if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13789 case $lt_prog_compiler_pic_CXX in
13790 "" | " "*) ;;
13791 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13792 esac
13793else
13794 lt_prog_compiler_pic_CXX=
13795 lt_prog_compiler_can_build_shared_CXX=no
13796fi
13797
13798fi
13799
13800
13801
13802#
13803# Check to make sure the static flag actually works.
13804#
13805wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13806{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13807echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13808if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811 lt_cv_prog_compiler_static_works_CXX=no
13812 save_LDFLAGS="$LDFLAGS"
13813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13814 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13816 # The linker can only warn and ignore the option if not recognized
13817 # So say no if there are warnings
13818 if test -s conftest.err; then
13819 # Append any errors to the config.log.
13820 cat conftest.err 1>&5
13821 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13823 if diff conftest.exp conftest.er2 >/dev/null; then
13824 lt_cv_prog_compiler_static_works_CXX=yes
13825 fi
13826 else
13827 lt_cv_prog_compiler_static_works_CXX=yes
13828 fi
13829 fi
13830 $RM -r conftest*
13831 LDFLAGS="$save_LDFLAGS"
13832
13833fi
13834{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13835echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13836
13837if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13838 :
13839else
13840 lt_prog_compiler_static_CXX=
13841fi
13842
13843
13844
13845
13846 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13847echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13848if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851 lt_cv_prog_compiler_c_o_CXX=no
13852 $RM -r conftest 2>/dev/null
13853 mkdir conftest
13854 cd conftest
13855 mkdir out
13856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13857
13858 lt_compiler_flag="-o out/conftest2.$ac_objext"
13859 # Insert the option either (1) after the last *FLAGS variable, or
13860 # (2) before a word containing "conftest.", or (3) at the end.
13861 # Note that $ac_compile itself does not contain backslashes and begins
13862 # with a dollar sign (not a hyphen), so the echo should work correctly.
13863 lt_compile=`echo "$ac_compile" | $SED \
13864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13866 -e 's:$: $lt_compiler_flag:'`
13867 (eval echo "\"\$as_me:13867: $lt_compile\"" >&5)
13868 (eval "$lt_compile" 2>out/conftest.err)
13869 ac_status=$?
13870 cat out/conftest.err >&5
13871 echo "$as_me:13871: \$? = $ac_status" >&5
13872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13873 then
13874 # The compiler can only warn and ignore the option if not recognized
13875 # So say no if there are warnings
13876 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13879 lt_cv_prog_compiler_c_o_CXX=yes
13880 fi
13881 fi
13882 chmod u+w . 2>&5
13883 $RM conftest*
13884 # SGI C++ compiler will create directory out/ii_files/ for
13885 # template instantiation
13886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13887 $RM out/* && rmdir out
13888 cd ..
13889 $RM -r conftest
13890 $RM conftest*
13891
13892fi
13893{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13894echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13895
13896
13897
13898 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13899echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13900if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 lt_cv_prog_compiler_c_o_CXX=no
13904 $RM -r conftest 2>/dev/null
13905 mkdir conftest
13906 cd conftest
13907 mkdir out
13908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13909
13910 lt_compiler_flag="-o out/conftest2.$ac_objext"
13911 # Insert the option either (1) after the last *FLAGS variable, or
13912 # (2) before a word containing "conftest.", or (3) at the end.
13913 # Note that $ac_compile itself does not contain backslashes and begins
13914 # with a dollar sign (not a hyphen), so the echo should work correctly.
13915 lt_compile=`echo "$ac_compile" | $SED \
13916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13918 -e 's:$: $lt_compiler_flag:'`
13919 (eval echo "\"\$as_me:13919: $lt_compile\"" >&5)
13920 (eval "$lt_compile" 2>out/conftest.err)
13921 ac_status=$?
13922 cat out/conftest.err >&5
13923 echo "$as_me:13923: \$? = $ac_status" >&5
13924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13925 then
13926 # The compiler can only warn and ignore the option if not recognized
13927 # So say no if there are warnings
13928 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13931 lt_cv_prog_compiler_c_o_CXX=yes
13932 fi
13933 fi
13934 chmod u+w . 2>&5
13935 $RM conftest*
13936 # SGI C++ compiler will create directory out/ii_files/ for
13937 # template instantiation
13938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13939 $RM out/* && rmdir out
13940 cd ..
13941 $RM -r conftest
13942 $RM conftest*
13943
13944fi
13945{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13946echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13947
13948
13949
13950
13951hard_links="nottested"
13952if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13953 # do not overwrite the value of need_locks provided by the user
13954 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13955echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13956 hard_links=yes
13957 $RM conftest*
13958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13959 touch conftest.a
13960 ln conftest.a conftest.b 2>&5 || hard_links=no
13961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13962 { echo "$as_me:$LINENO: result: $hard_links" >&5
13963echo "${ECHO_T}$hard_links" >&6; }
13964 if test "$hard_links" = no; then
13965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13966echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13967 need_locks=warn
13968 fi
13969else
13970 need_locks=no
13971fi
13972
13973
13974
13975 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13976echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13977
13978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13979 case $host_os in
13980 aix[4-9]*)
13981 # If we're using GNU nm, then we don't want the "-C" option.
13982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13983 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13984 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13985 else
13986 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'
13987 fi
13988 ;;
13989 pw32*)
13990 export_symbols_cmds_CXX="$ltdll_cmds"
13991 ;;
13992 cygwin* | mingw*)
13993 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'
13994 ;;
13995 *)
13996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13997 ;;
13998 esac
13999 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14000
14001{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14002echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14003test "$ld_shlibs_CXX" = no && can_build_shared=no
14004
14005with_gnu_ld_CXX=$with_gnu_ld
14006
14007
14008
14009
14010
14011
14012#
14013# Do we need to explicitly link libc?
14014#
14015case "x$archive_cmds_need_lc_CXX" in
14016x|xyes)
14017 # Assume -lc should be added
14018 archive_cmds_need_lc_CXX=yes
14019
14020 if test "$enable_shared" = yes && test "$GCC" = yes; then
14021 case $archive_cmds_CXX in
14022 *'~'*)
14023 # FIXME: we may have to deal with multi-command sequences.
14024 ;;
14025 '$CC '*)
14026 # Test whether the compiler implicitly links with -lc since on some
14027 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14028 # to ld, don't add -lc before -lgcc.
14029 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14030echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14031 $RM conftest*
14032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14033
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035 (eval $ac_compile) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } 2>conftest.err; then
14039 soname=conftest
14040 lib=conftest
14041 libobjs=conftest.$ac_objext
14042 deplibs=
14043 wl=$lt_prog_compiler_wl_CXX
14044 pic_flag=$lt_prog_compiler_pic_CXX
14045 compiler_flags=-v
14046 linker_flags=-v
14047 verstring=
14048 output_objdir=.
14049 libname=conftest
14050 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14051 allow_undefined_flag_CXX=
14052 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14053 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }
14057 then
14058 archive_cmds_need_lc_CXX=no
14059 else
14060 archive_cmds_need_lc_CXX=yes
14061 fi
14062 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14063 else
14064 cat conftest.err 1>&5
14065 fi
14066 $RM conftest*
14067 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14068echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14069 ;;
14070 esac
14071 fi
14072 ;;
14073esac
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14139echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14140
14141library_names_spec=
14142libname_spec='lib$name'
14143soname_spec=
14144shrext_cmds=".so"
14145postinstall_cmds=
14146postuninstall_cmds=
14147finish_cmds=
14148finish_eval=
14149shlibpath_var=
14150shlibpath_overrides_runpath=unknown
14151version_type=none
14152dynamic_linker="$host_os ld.so"
14153sys_lib_dlsearch_path_spec="/lib /usr/lib"
14154need_lib_prefix=unknown
14155hardcode_into_libs=no
14156
14157# when you set need_version to no, make sure it does not cause -set_version
14158# flags to be left without arguments
14159need_version=unknown
14160
14161case $host_os in
14162aix3*)
14163 version_type=linux
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14165 shlibpath_var=LIBPATH
14166
14167 # AIX 3 has no versioning support, so we append a major version to the name.
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 ;;
14170
14171aix[4-9]*)
14172 version_type=linux
14173 need_lib_prefix=no
14174 need_version=no
14175 hardcode_into_libs=yes
14176 if test "$host_cpu" = ia64; then
14177 # AIX 5 supports IA64
14178 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 else
14181 # With GCC up to 2.95.x, collect2 would create an import file
14182 # for dependence libraries. The import file would start with
14183 # the line `#! .'. This would cause the generated library to
14184 # depend on `.', always an invalid library. This was fixed in
14185 # development snapshots of GCC prior to 3.0.
14186 case $host_os in
14187 aix4 | aix4.[01] | aix4.[01].*)
14188 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14189 echo ' yes '
14190 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14191 :
14192 else
14193 can_build_shared=no
14194 fi
14195 ;;
14196 esac
14197 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14198 # soname into executable. Probably we can add versioning support to
14199 # collect2, so additional links can be useful in future.
14200 if test "$aix_use_runtimelinking" = yes; then
14201 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14202 # instead of lib<name>.a to let people know that these are not
14203 # typical AIX shared libraries.
14204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14205 else
14206 # We preserve .a as extension for shared libraries through AIX4.2
14207 # and later when we are not doing run time linking.
14208 library_names_spec='${libname}${release}.a $libname.a'
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 fi
14211 shlibpath_var=LIBPATH
14212 fi
14213 ;;
14214
14215amigaos*)
14216 case $host_cpu in
14217 powerpc)
14218 # Since July 2007 AmigaOS4 officially supports .so libraries.
14219 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14221 ;;
14222 m68k)
14223 library_names_spec='$libname.ixlibrary $libname.a'
14224 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14225 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14226 ;;
14227 esac
14228 ;;
14229
14230beos*)
14231 library_names_spec='${libname}${shared_ext}'
14232 dynamic_linker="$host_os ld.so"
14233 shlibpath_var=LIBRARY_PATH
14234 ;;
14235
14236bsdi[45]*)
14237 version_type=linux
14238 need_version=no
14239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240 soname_spec='${libname}${release}${shared_ext}$major'
14241 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14244 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14245 # the default ld.so.conf also contains /usr/contrib/lib and
14246 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14247 # libtool to hard-code these into programs
14248 ;;
14249
14250cygwin* | mingw* | pw32*)
14251 version_type=windows
14252 shrext_cmds=".dll"
14253 need_version=no
14254 need_lib_prefix=no
14255
14256 case $GCC,$host_os in
14257 yes,cygwin* | yes,mingw* | yes,pw32*)
14258 library_names_spec='$libname.dll.a'
14259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14260 postinstall_cmds='base_file=`basename \${file}`~
14261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14262 dldir=$destdir/`dirname \$dlpath`~
14263 test -d \$dldir || mkdir -p \$dldir~
14264 $install_prog $dir/$dlname \$dldir/$dlname~
14265 chmod a+x \$dldir/$dlname~
14266 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14267 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14268 fi'
14269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14270 dlpath=$dir/\$dldll~
14271 $RM \$dlpath'
14272 shlibpath_overrides_runpath=yes
14273
14274 case $host_os in
14275 cygwin*)
14276 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14277 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14278 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14279 ;;
14280 mingw*)
14281 # MinGW DLLs use traditional 'lib' prefix
14282 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14283 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14284 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14285 # It is most probably a Windows format PATH printed by
14286 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14287 # path with ; separators, and with drive letters. We can handle the
14288 # drive letters (cygwin fileutils understands them), so leave them,
14289 # especially as we might pass files found there to a mingw objdump,
14290 # which wouldn't understand a cygwinified path. Ahh.
14291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14292 else
14293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14294 fi
14295 ;;
14296 pw32*)
14297 # pw32 DLLs use 'pw' prefix rather than 'lib'
14298 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14299 ;;
14300 esac
14301 ;;
14302
14303 *)
14304 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14305 ;;
14306 esac
14307 dynamic_linker='Win32 ld.exe'
14308 # FIXME: first we should search . and the directory the executable is in
14309 shlibpath_var=PATH
14310 ;;
14311
14312darwin* | rhapsody*)
14313 dynamic_linker="$host_os dyld"
14314 version_type=darwin
14315 need_lib_prefix=no
14316 need_version=no
14317 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14318 soname_spec='${libname}${release}${major}$shared_ext'
14319 shlibpath_overrides_runpath=yes
14320 shlibpath_var=DYLD_LIBRARY_PATH
14321 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14322
14323 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14324 ;;
14325
14326dgux*)
14327 version_type=linux
14328 need_lib_prefix=no
14329 need_version=no
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 shlibpath_var=LD_LIBRARY_PATH
14333 ;;
14334
14335freebsd1*)
14336 dynamic_linker=no
14337 ;;
14338
14339freebsd* | dragonfly*)
14340 # DragonFly does not have aout. When/if they implement a new
14341 # versioning mechanism, adjust this.
14342 if test -x /usr/bin/objformat; then
14343 objformat=`/usr/bin/objformat`
14344 else
14345 case $host_os in
14346 freebsd[123]*) objformat=aout ;;
14347 *) objformat=elf ;;
14348 esac
14349 fi
14350 version_type=freebsd-$objformat
14351 case $version_type in
14352 freebsd-elf*)
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14354 need_version=no
14355 need_lib_prefix=no
14356 ;;
14357 freebsd-*)
14358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14359 need_version=yes
14360 ;;
14361 esac
14362 shlibpath_var=LD_LIBRARY_PATH
14363 case $host_os in
14364 freebsd2*)
14365 shlibpath_overrides_runpath=yes
14366 ;;
14367 freebsd3.[01]* | freebsdelf3.[01]*)
14368 shlibpath_overrides_runpath=yes
14369 hardcode_into_libs=yes
14370 ;;
14371 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14372 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14373 shlibpath_overrides_runpath=no
14374 hardcode_into_libs=yes
14375 ;;
14376 *) # from 4.6 on, and DragonFly
14377 shlibpath_overrides_runpath=yes
14378 hardcode_into_libs=yes
14379 ;;
14380 esac
14381 ;;
14382
14383gnu*)
14384 version_type=linux
14385 need_lib_prefix=no
14386 need_version=no
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 hardcode_into_libs=yes
14391 ;;
14392
14393hpux9* | hpux10* | hpux11*)
14394 # Give a soname corresponding to the major version so that dld.sl refuses to
14395 # link against other versions.
14396 version_type=sunos
14397 need_lib_prefix=no
14398 need_version=no
14399 case $host_cpu in
14400 ia64*)
14401 shrext_cmds='.so'
14402 hardcode_into_libs=yes
14403 dynamic_linker="$host_os dld.so"
14404 shlibpath_var=LD_LIBRARY_PATH
14405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14408 if test "X$HPUX_IA64_MODE" = X32; then
14409 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14410 else
14411 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14412 fi
14413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14414 ;;
14415 hppa*64*)
14416 shrext_cmds='.sl'
14417 hardcode_into_libs=yes
14418 dynamic_linker="$host_os dld.sl"
14419 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 soname_spec='${libname}${release}${shared_ext}$major'
14423 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14425 ;;
14426 *)
14427 shrext_cmds='.sl'
14428 dynamic_linker="$host_os dld.sl"
14429 shlibpath_var=SHLIB_PATH
14430 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432 soname_spec='${libname}${release}${shared_ext}$major'
14433 ;;
14434 esac
14435 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14436 postinstall_cmds='chmod 555 $lib'
14437 ;;
14438
14439interix[3-9]*)
14440 version_type=linux
14441 need_lib_prefix=no
14442 need_version=no
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=no
14448 hardcode_into_libs=yes
14449 ;;
14450
14451irix5* | irix6* | nonstopux*)
14452 case $host_os in
14453 nonstopux*) version_type=nonstopux ;;
14454 *)
14455 if test "$lt_cv_prog_gnu_ld" = yes; then
14456 version_type=linux
14457 else
14458 version_type=irix
14459 fi ;;
14460 esac
14461 need_lib_prefix=no
14462 need_version=no
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14465 case $host_os in
14466 irix5* | nonstopux*)
14467 libsuff= shlibsuff=
14468 ;;
14469 *)
14470 case $LD in # libtool.m4 will add one of these switches to LD
14471 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14472 libsuff= shlibsuff= libmagic=32-bit;;
14473 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14474 libsuff=32 shlibsuff=N32 libmagic=N32;;
14475 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14476 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14477 *) libsuff= shlibsuff= libmagic=never-match;;
14478 esac
14479 ;;
14480 esac
14481 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14482 shlibpath_overrides_runpath=no
14483 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14484 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14485 hardcode_into_libs=yes
14486 ;;
14487
14488# No shared lib support for Linux oldld, aout, or coff.
14489linux*oldld* | linux*aout* | linux*coff*)
14490 dynamic_linker=no
14491 ;;
14492
14493# This must be Linux ELF.
14494linux* | k*bsd*-gnu)
14495 version_type=linux
14496 need_lib_prefix=no
14497 need_version=no
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 shlibpath_overrides_runpath=no
14503 # Some binutils ld are patched to set DT_RUNPATH
14504 save_LDFLAGS=$LDFLAGS
14505 save_libdir=$libdir
14506 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14507 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14508 cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
14513/* end confdefs.h. */
14514
14515int
14516main ()
14517{
14518
14519 ;
14520 return 0;
14521}
14522_ACEOF
14523rm -f conftest.$ac_objext conftest$ac_exeext
14524if { (ac_try="$ac_link"
14525case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528esac
14529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_link") 2>conftest.er1
14531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_cxx_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest$ac_exeext &&
14540 $as_test_x conftest$ac_exeext; then
14541 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14542 shlibpath_overrides_runpath=yes
14543fi
14544
14545else
14546 echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549
14550fi
14551
14552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14553 conftest$ac_exeext conftest.$ac_ext
14554 LDFLAGS=$save_LDFLAGS
14555 libdir=$save_libdir
14556
14557 # This implies no fast_install, which is unacceptable.
14558 # Some rework will be needed to allow for fast_install
14559 # before this can be enabled.
14560 hardcode_into_libs=yes
14561
14562 # Append ld.so.conf contents to the search path
14563 if test -f /etc/ld.so.conf; then
14564 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;/^$/d' | tr '\n' ' '`
14565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14566 fi
14567
14568 # We used to test for /lib/ld.so.1 and disable shared libraries on
14569 # powerpc, because MkLinux only supported shared libraries with the
14570 # GNU dynamic linker. Since this was broken with cross compilers,
14571 # most powerpc-linux boxes support dynamic linking these days and
14572 # people can always --disable-shared, the test was removed, and we
14573 # assume the GNU/Linux dynamic linker is in use.
14574 dynamic_linker='GNU/Linux ld.so'
14575 ;;
14576
14577netbsd*)
14578 version_type=sunos
14579 need_lib_prefix=no
14580 need_version=no
14581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14584 dynamic_linker='NetBSD (a.out) ld.so'
14585 else
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 dynamic_linker='NetBSD ld.elf_so'
14589 fi
14590 shlibpath_var=LD_LIBRARY_PATH
14591 shlibpath_overrides_runpath=yes
14592 hardcode_into_libs=yes
14593 ;;
14594
14595newsos6)
14596 version_type=linux
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes
14600 ;;
14601
14602*nto* | *qnx*)
14603 version_type=qnx
14604 need_lib_prefix=no
14605 need_version=no
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=no
14610 hardcode_into_libs=yes
14611 dynamic_linker='ldqnx.so'
14612 ;;
14613
14614openbsd*)
14615 version_type=sunos
14616 sys_lib_dlsearch_path_spec="/usr/lib"
14617 need_lib_prefix=no
14618 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14619 case $host_os in
14620 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14621 *) need_version=no ;;
14622 esac
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14627 case $host_os in
14628 openbsd2.[89] | openbsd2.[89].*)
14629 shlibpath_overrides_runpath=no
14630 ;;
14631 *)
14632 shlibpath_overrides_runpath=yes
14633 ;;
14634 esac
14635 else
14636 shlibpath_overrides_runpath=yes
14637 fi
14638 ;;
14639
14640os2*)
14641 libname_spec='$name'
14642 shrext_cmds=".dll"
14643 need_lib_prefix=no
14644 library_names_spec='$libname${shared_ext} $libname.a'
14645 dynamic_linker='OS/2 ld.exe'
14646 shlibpath_var=LIBPATH
14647 ;;
14648
14649osf3* | osf4* | osf5*)
14650 version_type=osf
14651 need_lib_prefix=no
14652 need_version=no
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14658 ;;
14659
14660rdos*)
14661 dynamic_linker=no
14662 ;;
14663
14664solaris*)
14665 version_type=linux
14666 need_lib_prefix=no
14667 need_version=no
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 shlibpath_var=LD_LIBRARY_PATH
14671 shlibpath_overrides_runpath=yes
14672 hardcode_into_libs=yes
14673 # ldd complains unless libraries are executable
14674 postinstall_cmds='chmod +x $lib'
14675 ;;
14676
14677sunos4*)
14678 version_type=sunos
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 if test "$with_gnu_ld" = yes; then
14684 need_lib_prefix=no
14685 fi
14686 need_version=yes
14687 ;;
14688
14689sysv4 | sysv4.3*)
14690 version_type=linux
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 case $host_vendor in
14695 sni)
14696 shlibpath_overrides_runpath=no
14697 need_lib_prefix=no
14698 runpath_var=LD_RUN_PATH
14699 ;;
14700 siemens)
14701 need_lib_prefix=no
14702 ;;
14703 motorola)
14704 need_lib_prefix=no
14705 need_version=no
14706 shlibpath_overrides_runpath=no
14707 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14708 ;;
14709 esac
14710 ;;
14711
14712sysv4*MP*)
14713 if test -d /usr/nec ;then
14714 version_type=linux
14715 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14716 soname_spec='$libname${shared_ext}.$major'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 fi
14719 ;;
14720
14721sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14722 version_type=freebsd-elf
14723 need_lib_prefix=no
14724 need_version=no
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=yes
14729 hardcode_into_libs=yes
14730 if test "$with_gnu_ld" = yes; then
14731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14732 else
14733 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14734 case $host_os in
14735 sco3.2v5*)
14736 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14737 ;;
14738 esac
14739 fi
14740 sys_lib_dlsearch_path_spec='/usr/lib'
14741 ;;
14742
14743tpf*)
14744 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14745 version_type=linux
14746 need_lib_prefix=no
14747 need_version=no
14748 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 shlibpath_overrides_runpath=no
14751 hardcode_into_libs=yes
14752 ;;
14753
14754uts4*)
14755 version_type=linux
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 ;;
14760
14761*)
14762 dynamic_linker=no
14763 ;;
14764esac
14765{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14766echo "${ECHO_T}$dynamic_linker" >&6; }
14767test "$dynamic_linker" = no && can_build_shared=no
14768
14769variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14770if test "$GCC" = yes; then
14771 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14772fi
14773
14774if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14775 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14776fi
14777if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14778 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14779fi
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14817echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14818hardcode_action_CXX=
14819if test -n "$hardcode_libdir_flag_spec_CXX" ||
14820 test -n "$runpath_var_CXX" ||
14821 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14822
14823 # We can hardcode non-existent directories.
14824 if test "$hardcode_direct_CXX" != no &&
14825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14826 # have to relink, otherwise we might link with an installed library
14827 # when we should be linking with a yet-to-be-installed one
14828 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14829 test "$hardcode_minus_L_CXX" != no; then
14830 # Linking always hardcodes the temporary library directory.
14831 hardcode_action_CXX=relink
14832 else
14833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14834 hardcode_action_CXX=immediate
14835 fi
14836else
14837 # We cannot hardcode anything, or else we can only hardcode existing
14838 # directories.
14839 hardcode_action_CXX=unsupported
14840fi
14841{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14842echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14843
14844if test "$hardcode_action_CXX" = relink ||
14845 test "$inherit_rpath_CXX" = yes; then
14846 # Fast installation is not supported
14847 enable_fast_install=no
14848elif test "$shlibpath_overrides_runpath" = yes ||
14849 test "$enable_shared" = no; then
14850 # Fast installation is not necessary
14851 enable_fast_install=needless
14852fi
14853
14854
14855
14856
14857
14858
14859
14860 fi # test -n "$compiler"
14861
14862 CC=$lt_save_CC
14863 LDCXX=$LD
14864 LD=$lt_save_LD
14865 GCC=$lt_save_GCC
14866 with_gnu_ld=$lt_save_with_gnu_ld
14867 lt_cv_path_LDCXX=$lt_cv_path_LD
14868 lt_cv_path_LD=$lt_save_path_LD
14869 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14870 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14871fi # test "$_lt_caught_CXX_error" != yes
14872
14873ac_ext=cpp
14874ac_cpp='$CXXCPP $CPPFLAGS'
14875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891 ac_config_commands="$ac_config_commands libtool"
14892
14893
14894
14895
14896# Only expand once:
14897
14898
14899
14900# TODO(chandlerc@google.com): Currently we aren't running the Python tests
14901# against the interpreter detected by AM_PATH_PYTHON, and so we condition
14902# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
14903# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
14904# hashbang.
14905PYTHON= # We *do not* allow the user to specify a python interpreter
14906# Extract the first word of "python", so it can be a program name with args.
14907set dummy python; ac_word=$2
14908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14910if test "${ac_cv_path_PYTHON+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14912else
14913 case $PYTHON in
14914 [\\/]* | ?:[\\/]*)
14915 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14916 ;;
14917 *)
14918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919for as_dir in $PATH
14920do
14921 IFS=$as_save_IFS
14922 test -z "$as_dir" && as_dir=.
14923 for ac_exec_ext in '' $ac_executable_extensions; do
14924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14925 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14927 break 2
14928 fi
14929done
14930done
14931IFS=$as_save_IFS
14932
14933 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
14934 ;;
14935esac
14936fi
14937PYTHON=$ac_cv_path_PYTHON
14938if test -n "$PYTHON"; then
14939 { echo "$as_me:$LINENO: result: $PYTHON" >&5
14940echo "${ECHO_T}$PYTHON" >&6; }
14941else
14942 { echo "$as_me:$LINENO: result: no" >&5
14943echo "${ECHO_T}no" >&6; }
14944fi
14945
14946
14947if test "$PYTHON" != ":"; then
14948 prog="import sys, string
14949# split strings by '.' and convert to numeric. Append some zeros
14950# because we need at least 4 digits for the hex conversion.
14951minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
14952minverhex = 0
14953for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
14954sys.exit(sys.hexversion < minverhex)"
14955 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14956 ($PYTHON -c "$prog") >&5 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; then
14960 :
14961else
14962 PYTHON=":"
14963fi
14964
14965fi
14966
14967 if test "$PYTHON" != ":"; then
14968 HAVE_PYTHON_TRUE=
14969 HAVE_PYTHON_FALSE='#'
14970else
14971 HAVE_PYTHON_TRUE='#'
14972 HAVE_PYTHON_FALSE=
14973fi
14974
14975
14976# Check for pthreads.
14977
14978
14979
14980ac_ext=c
14981ac_cpp='$CPP $CPPFLAGS'
14982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984ac_compiler_gnu=$ac_cv_c_compiler_gnu
14985
14986acx_pthread_ok=no
14987
14988# We used to check for pthread.h first, but this fails if pthread.h
14989# requires special compiler flags (e.g. on True64 or Sequent).
14990# It gets checked for in the link test anyway.
14991
14992# First of all, check if the user has set any of the PTHREAD_LIBS,
14993# etcetera environment variables, and if threads linking works using
14994# them:
14995if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14996 save_CFLAGS="$CFLAGS"
14997 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14998 save_LIBS="$LIBS"
14999 LIBS="$PTHREAD_LIBS $LIBS"
15000 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15001echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
15002 cat >conftest.$ac_ext <<_ACEOF
15003/* confdefs.h. */
15004_ACEOF
15005cat confdefs.h >>conftest.$ac_ext
15006cat >>conftest.$ac_ext <<_ACEOF
15007/* end confdefs.h. */
15008
15009/* Override any GCC internal prototype to avoid an error.
15010 Use char because int might match the return type of a GCC
15011 builtin and then its argument prototype would still apply. */
15012#ifdef __cplusplus
15013extern "C"
15014#endif
15015char pthread_join ();
15016int
15017main ()
15018{
15019return pthread_join ();
15020 ;
15021 return 0;
15022}
15023_ACEOF
15024rm -f conftest.$ac_objext conftest$ac_exeext
15025if { (ac_try="$ac_link"
15026case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029esac
15030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_link") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest$ac_exeext &&
15041 $as_test_x conftest$ac_exeext; then
15042 acx_pthread_ok=yes
15043else
15044 echo "$as_me: failed program was:" >&5
15045sed 's/^/| /' conftest.$ac_ext >&5
15046
15047
15048fi
15049
15050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15051 conftest$ac_exeext conftest.$ac_ext
15052 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15053echo "${ECHO_T}$acx_pthread_ok" >&6; }
15054 if test x"$acx_pthread_ok" = xno; then
15055 PTHREAD_LIBS=""
15056 PTHREAD_CFLAGS=""
15057 fi
15058 LIBS="$save_LIBS"
15059 CFLAGS="$save_CFLAGS"
15060fi
15061
15062# We must check for the threads library under a number of different
15063# names; the ordering is very important because some systems
15064# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15065# libraries is broken (non-POSIX).
15066
15067# Create a list of thread flags to try. Items starting with a "-" are
15068# C compiler flags, and other items are library names, except for "none"
15069# which indicates that we try without any flags at all, and "pthread-config"
15070# which is a program returning the flags for the Pth emulation library.
15071
15072acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15073
15074# The ordering *is* (sometimes) important. Some notes on the
15075# individual items follow:
15076
15077# pthreads: AIX (must check this before -lpthread)
15078# none: in case threads are in libc; should be tried before -Kthread and
15079# other compiler flags to prevent continual compiler warnings
15080# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15081# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15082# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15083# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15084# -pthreads: Solaris/gcc
15085# -mthreads: Mingw32/gcc, Lynx/gcc
15086# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15087# doesn't hurt to check since this sometimes defines pthreads too;
15088# also defines -D_REENTRANT)
15089# ... -mt is also the pthreads flag for HP/aCC
15090# pthread: Linux, etcetera
15091# --thread-safe: KAI C++
15092# pthread-config: use pthread-config program (for GNU Pth library)
15093
15094case "${host_cpu}-${host_os}" in
15095 *solaris*)
15096
15097 # On Solaris (at least, for some versions), libc contains stubbed
15098 # (non-functional) versions of the pthreads routines, so link-based
15099 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15100 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15101 # a function called by this macro, so we could check for that, but
15102 # who knows whether they'll stub that too in a future libc.) So,
15103 # we'll just look for -pthreads and -lpthread first:
15104
15105 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15106 ;;
15107esac
15108
15109if test x"$acx_pthread_ok" = xno; then
15110for flag in $acx_pthread_flags; do
15111
15112 case $flag in
15113 none)
15114 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15115echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
15116 ;;
15117
15118 -*)
15119 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15120echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
15121 PTHREAD_CFLAGS="$flag"
15122 ;;
15123
15124 pthread-config)
15125 # Extract the first word of "pthread-config", so it can be a program name with args.
15126set dummy pthread-config; ac_word=$2
15127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15129if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15131else
15132 if test -n "$acx_pthread_config"; then
15133 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15134else
15135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136for as_dir in $PATH
15137do
15138 IFS=$as_save_IFS
15139 test -z "$as_dir" && as_dir=.
15140 for ac_exec_ext in '' $ac_executable_extensions; do
15141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15142 ac_cv_prog_acx_pthread_config="yes"
15143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15144 break 2
15145 fi
15146done
15147done
15148IFS=$as_save_IFS
15149
15150 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15151fi
15152fi
15153acx_pthread_config=$ac_cv_prog_acx_pthread_config
15154if test -n "$acx_pthread_config"; then
15155 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15156echo "${ECHO_T}$acx_pthread_config" >&6; }
15157else
15158 { echo "$as_me:$LINENO: result: no" >&5
15159echo "${ECHO_T}no" >&6; }
15160fi
15161
15162
15163 if test x"$acx_pthread_config" = xno; then continue; fi
15164 PTHREAD_CFLAGS="`pthread-config --cflags`"
15165 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15166 ;;
15167
15168 *)
15169 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15170echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
15171 PTHREAD_LIBS="-l$flag"
15172 ;;
15173 esac
15174
15175 save_LIBS="$LIBS"
15176 save_CFLAGS="$CFLAGS"
15177 LIBS="$PTHREAD_LIBS $LIBS"
15178 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15179
15180 # Check for various functions. We must include pthread.h,
15181 # since some functions may be macros. (On the Sequent, we
15182 # need a special flag -Kthread to make this header compile.)
15183 # We check for pthread_join because it is in -lpthread on IRIX
15184 # while pthread_create is in libc. We check for pthread_attr_init
15185 # due to DEC craziness with -lpthreads. We check for
15186 # pthread_cleanup_push because it is one of the few pthread
15187 # functions on Solaris that doesn't have a non-functional libc stub.
15188 # We try pthread_create on general principles.
15189 cat >conftest.$ac_ext <<_ACEOF
15190/* confdefs.h. */
15191_ACEOF
15192cat confdefs.h >>conftest.$ac_ext
15193cat >>conftest.$ac_ext <<_ACEOF
15194/* end confdefs.h. */
15195#include <pthread.h>
15196int
15197main ()
15198{
15199pthread_t th; pthread_join(th, 0);
15200 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15201 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15202 ;
15203 return 0;
15204}
15205_ACEOF
15206rm -f conftest.$ac_objext conftest$ac_exeext
15207if { (ac_try="$ac_link"
15208case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_link") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext &&
15223 $as_test_x conftest$ac_exeext; then
15224 acx_pthread_ok=yes
15225else
15226 echo "$as_me: failed program was:" >&5
15227sed 's/^/| /' conftest.$ac_ext >&5
15228
15229
15230fi
15231
15232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15233 conftest$ac_exeext conftest.$ac_ext
15234
15235 LIBS="$save_LIBS"
15236 CFLAGS="$save_CFLAGS"
15237
15238 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15239echo "${ECHO_T}$acx_pthread_ok" >&6; }
15240 if test "x$acx_pthread_ok" = xyes; then
15241 break;
15242 fi
15243
15244 PTHREAD_LIBS=""
15245 PTHREAD_CFLAGS=""
15246done
15247fi
15248
15249# Various other checks:
15250if test "x$acx_pthread_ok" = xyes; then
15251 save_LIBS="$LIBS"
15252 LIBS="$PTHREAD_LIBS $LIBS"
15253 save_CFLAGS="$CFLAGS"
15254 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15255
15256 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15257 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
15258echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
15259 attr_name=unknown
15260 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15261 cat >conftest.$ac_ext <<_ACEOF
15262/* confdefs.h. */
15263_ACEOF
15264cat confdefs.h >>conftest.$ac_ext
15265cat >>conftest.$ac_ext <<_ACEOF
15266/* end confdefs.h. */
15267#include <pthread.h>
15268int
15269main ()
15270{
15271int attr=$attr; return attr;
15272 ;
15273 return 0;
15274}
15275_ACEOF
15276rm -f conftest.$ac_objext conftest$ac_exeext
15277if { (ac_try="$ac_link"
15278case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281esac
15282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_link") 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest$ac_exeext &&
15293 $as_test_x conftest$ac_exeext; then
15294 attr_name=$attr; break
15295else
15296 echo "$as_me: failed program was:" >&5
15297sed 's/^/| /' conftest.$ac_ext >&5
15298
15299
15300fi
15301
15302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303 conftest$ac_exeext conftest.$ac_ext
15304 done
15305 { echo "$as_me:$LINENO: result: $attr_name" >&5
15306echo "${ECHO_T}$attr_name" >&6; }
15307 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15308
15309cat >>confdefs.h <<_ACEOF
15310#define PTHREAD_CREATE_JOINABLE $attr_name
15311_ACEOF
15312
15313 fi
15314
15315 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
15316echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
15317 flag=no
15318 case "${host_cpu}-${host_os}" in
15319 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15320 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15321 esac
15322 { echo "$as_me:$LINENO: result: ${flag}" >&5
15323echo "${ECHO_T}${flag}" >&6; }
15324 if test "x$flag" != xno; then
15325 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15326 fi
15327
15328 LIBS="$save_LIBS"
15329 CFLAGS="$save_CFLAGS"
15330 # More AIX lossage: must compile with xlc_r or cc_r
15331 if test x"$GCC" != xyes; then
15332 for ac_prog in xlc_r cc_r
15333do
15334 # Extract the first word of "$ac_prog", so it can be a program name with args.
15335set dummy $ac_prog; ac_word=$2
15336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15338if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340else
15341 if test -n "$PTHREAD_CC"; then
15342 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15343else
15344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345for as_dir in $PATH
15346do
15347 IFS=$as_save_IFS
15348 test -z "$as_dir" && as_dir=.
15349 for ac_exec_ext in '' $ac_executable_extensions; do
15350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15351 ac_cv_prog_PTHREAD_CC="$ac_prog"
15352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15353 break 2
15354 fi
15355done
15356done
15357IFS=$as_save_IFS
15358
15359fi
15360fi
15361PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15362if test -n "$PTHREAD_CC"; then
15363 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
15364echo "${ECHO_T}$PTHREAD_CC" >&6; }
15365else
15366 { echo "$as_me:$LINENO: result: no" >&5
15367echo "${ECHO_T}no" >&6; }
15368fi
15369
15370
15371 test -n "$PTHREAD_CC" && break
15372done
15373test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15374
15375 else
15376 PTHREAD_CC=$CC
15377 fi
15378
15379 # The next part tries to detect GCC inconsistency with -shared on some
15380 # architectures and systems. The problem is that in certain
15381 # configurations, when -shared is specified, GCC "forgets" to
15382 # internally use various flags which are still necessary.
15383
15384 #
15385 # Prepare the flags
15386 #
15387 save_CFLAGS="$CFLAGS"
15388 save_LIBS="$LIBS"
15389 save_CC="$CC"
15390
15391 # Try with the flags determined by the earlier checks.
15392 #
15393 # -Wl,-z,defs forces link-time symbol resolution, so that the
15394 # linking checks with -shared actually have any value
15395 #
15396 # FIXME: -fPIC is required for -shared on many architectures,
15397 # so we specify it here, but the right way would probably be to
15398 # properly detect whether it is actually required.
15399 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15400 LIBS="$PTHREAD_LIBS $LIBS"
15401 CC="$PTHREAD_CC"
15402
15403 # In order not to create several levels of indentation, we test
15404 # the value of "$done" until we find the cure or run out of ideas.
15405 done="no"
15406
15407 # First, make sure the CFLAGS we added are actually accepted by our
15408 # compiler. If not (and OS X's ld, for instance, does not accept -z),
15409 # then we can't do this test.
15410 if test x"$done" = xno; then
15411 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
15412echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
15413 cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419
15420int
15421main ()
15422{
15423
15424 ;
15425 return 0;
15426}
15427_ACEOF
15428rm -f conftest.$ac_objext conftest$ac_exeext
15429if { (ac_try="$ac_link"
15430case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15433esac
15434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_link") 2>conftest.er1
15436 ac_status=$?
15437 grep -v '^ *+' conftest.er1 >conftest.err
15438 rm -f conftest.er1
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } && {
15442 test -z "$ac_c_werror_flag" ||
15443 test ! -s conftest.err
15444 } && test -s conftest$ac_exeext &&
15445 $as_test_x conftest$ac_exeext; then
15446 :
15447else
15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451 done=yes
15452fi
15453
15454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15455 conftest$ac_exeext conftest.$ac_ext
15456
15457 if test "x$done" = xyes ; then
15458 { echo "$as_me:$LINENO: result: no" >&5
15459echo "${ECHO_T}no" >&6; }
15460 else
15461 { echo "$as_me:$LINENO: result: yes" >&5
15462echo "${ECHO_T}yes" >&6; }
15463 fi
15464 fi
15465
15466 if test x"$done" = xno; then
15467 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
15468echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
15469 cat >conftest.$ac_ext <<_ACEOF
15470/* confdefs.h. */
15471_ACEOF
15472cat confdefs.h >>conftest.$ac_ext
15473cat >>conftest.$ac_ext <<_ACEOF
15474/* end confdefs.h. */
15475#include <pthread.h>
15476int
15477main ()
15478{
15479pthread_t th; pthread_join(th, 0);
15480 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15481 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15482 ;
15483 return 0;
15484}
15485_ACEOF
15486rm -f conftest.$ac_objext conftest$ac_exeext
15487if { (ac_try="$ac_link"
15488case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15491esac
15492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_link") 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest$ac_exeext &&
15503 $as_test_x conftest$ac_exeext; then
15504 done=yes
15505else
15506 echo "$as_me: failed program was:" >&5
15507sed 's/^/| /' conftest.$ac_ext >&5
15508
15509
15510fi
15511
15512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15513 conftest$ac_exeext conftest.$ac_ext
15514
15515 if test "x$done" = xyes; then
15516 { echo "$as_me:$LINENO: result: yes" >&5
15517echo "${ECHO_T}yes" >&6; }
15518 else
15519 { echo "$as_me:$LINENO: result: no" >&5
15520echo "${ECHO_T}no" >&6; }
15521 fi
15522 fi
15523
15524 #
15525 # Linux gcc on some architectures such as mips/mipsel forgets
15526 # about -lpthread
15527 #
15528 if test x"$done" = xno; then
15529 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
15530echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
15531 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15532 cat >conftest.$ac_ext <<_ACEOF
15533/* confdefs.h. */
15534_ACEOF
15535cat confdefs.h >>conftest.$ac_ext
15536cat >>conftest.$ac_ext <<_ACEOF
15537/* end confdefs.h. */
15538#include <pthread.h>
15539int
15540main ()
15541{
15542pthread_t th; pthread_join(th, 0);
15543 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15544 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15545 ;
15546 return 0;
15547}
15548_ACEOF
15549rm -f conftest.$ac_objext conftest$ac_exeext
15550if { (ac_try="$ac_link"
15551case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554esac
15555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_link") 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest$ac_exeext &&
15566 $as_test_x conftest$ac_exeext; then
15567 done=yes
15568else
15569 echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572
15573fi
15574
15575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15576 conftest$ac_exeext conftest.$ac_ext
15577
15578 if test "x$done" = xyes; then
15579 { echo "$as_me:$LINENO: result: yes" >&5
15580echo "${ECHO_T}yes" >&6; }
15581 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15582 else
15583 { echo "$as_me:$LINENO: result: no" >&5
15584echo "${ECHO_T}no" >&6; }
15585 fi
15586 fi
15587 #
15588 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15589 #
15590 if test x"$done" = xno; then
15591 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
15592echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
15593 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15594 cat >conftest.$ac_ext <<_ACEOF
15595/* confdefs.h. */
15596_ACEOF
15597cat confdefs.h >>conftest.$ac_ext
15598cat >>conftest.$ac_ext <<_ACEOF
15599/* end confdefs.h. */
15600#include <pthread.h>
15601int
15602main ()
15603{
15604pthread_t th; pthread_join(th, 0);
15605 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15606 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15607 ;
15608 return 0;
15609}
15610_ACEOF
15611rm -f conftest.$ac_objext conftest$ac_exeext
15612if { (ac_try="$ac_link"
15613case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_link") 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } && {
15625 test -z "$ac_c_werror_flag" ||
15626 test ! -s conftest.err
15627 } && test -s conftest$ac_exeext &&
15628 $as_test_x conftest$ac_exeext; then
15629 done=yes
15630else
15631 echo "$as_me: failed program was:" >&5
15632sed 's/^/| /' conftest.$ac_ext >&5
15633
15634
15635fi
15636
15637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15638 conftest$ac_exeext conftest.$ac_ext
15639
15640 if test "x$done" = xyes; then
15641 { echo "$as_me:$LINENO: result: yes" >&5
15642echo "${ECHO_T}yes" >&6; }
15643 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15644 else
15645 { echo "$as_me:$LINENO: result: no" >&5
15646echo "${ECHO_T}no" >&6; }
15647 fi
15648 fi
15649 if test x"$done" = xno; then
15650 # OK, we have run out of ideas
15651 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15652echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15653
15654 # so it's not safe to assume that we may use pthreads
15655 acx_pthread_ok=no
15656 fi
15657
15658 CFLAGS="$save_CFLAGS"
15659 LIBS="$save_LIBS"
15660 CC="$save_CC"
15661else
15662 PTHREAD_CC="$CC"
15663fi
15664
15665
15666
15667
15668
15669# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15670if test x"$acx_pthread_ok" = xyes; then
15671
15672cat >>confdefs.h <<\_ACEOF
15673#define HAVE_PTHREAD 1
15674_ACEOF
15675
15676 :
15677else
15678 acx_pthread_ok=no
15679
15680fi
15681ac_ext=cpp
15682ac_cpp='$CXXCPP $CPPFLAGS'
15683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15686
15687
15688
15689# TODO(chandlerc@google.com) Check for the necessary system headers.
15690
15691# TODO(chandlerc@google.com) Check the types, structures, and other compiler
15692# and architecture characteristics.
15693
15694# Output the generated files. No further autoconf macros may be used.
15695cat >confcache <<\_ACEOF
15696# This file is a shell script that caches the results of configure
15697# tests run on this system so they can be shared between configure
15698# scripts and configure runs, see configure's option --config-cache.
15699# It is not useful on other systems. If it contains results you don't
15700# want to keep, you may remove or edit it.
15701#
15702# config.status only pays attention to the cache file if you give it
15703# the --recheck option to rerun configure.
15704#
15705# `ac_cv_env_foo' variables (set or unset) will be overridden when
15706# loading this file, other *unset* `ac_cv_foo' will be assigned the
15707# following values.
15708
15709_ACEOF
15710
15711# The following way of writing the cache mishandles newlines in values,
15712# but we know of no workaround that is simple, portable, and efficient.
15713# So, we kill variables containing newlines.
15714# Ultrix sh set writes to stderr and can't be redirected directly,
15715# and sets the high bit in the cache file unless we assign to the vars.
15716(
15717 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15718 eval ac_val=\$$ac_var
15719 case $ac_val in #(
15720 *${as_nl}*)
15721 case $ac_var in #(
15722 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15723echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15724 esac
15725 case $ac_var in #(
15726 _ | IFS | as_nl) ;; #(
15727 *) $as_unset $ac_var ;;
15728 esac ;;
15729 esac
15730 done
15731
15732 (set) 2>&1 |
15733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15734 *${as_nl}ac_space=\ *)
15735 # `set' does not quote correctly, so add quotes (double-quote
15736 # substitution turns \\\\ into \\, and sed turns \\ into \).
15737 sed -n \
15738 "s/'/'\\\\''/g;
15739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15740 ;; #(
15741 *)
15742 # `set' quotes correctly as required by POSIX, so do not add quotes.
15743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15744 ;;
15745 esac |
15746 sort
15747) |
15748 sed '
15749 /^ac_cv_env_/b end
15750 t clear
15751 :clear
15752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15753 t end
15754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15755 :end' >>confcache
15756if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15757 if test -w "$cache_file"; then
15758 test "x$cache_file" != "x/dev/null" &&
15759 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15760echo "$as_me: updating cache $cache_file" >&6;}
15761 cat confcache >$cache_file
15762 else
15763 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15764echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15765 fi
15766fi
15767rm -f confcache
15768
15769test "x$prefix" = xNONE && prefix=$ac_default_prefix
15770# Let make expand exec_prefix.
15771test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15772
15773DEFS=-DHAVE_CONFIG_H
15774
15775ac_libobjs=
15776ac_ltlibobjs=
15777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15778 # 1. Remove the extension, and $U if already installed.
15779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15780 ac_i=`echo "$ac_i" | sed "$ac_script"`
15781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15782 # will be set to the directory where LIBOBJS objects are built.
15783 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15784 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15785done
15786LIBOBJS=$ac_libobjs
15787
15788LTLIBOBJS=$ac_ltlibobjs
15789
15790
15791if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15792 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15793Usually this means the macro was only invoked conditionally." >&5
15794echo "$as_me: error: conditional \"AMDEP\" was never defined.
15795Usually this means the macro was only invoked conditionally." >&2;}
15796 { (exit 1); exit 1; }; }
15797fi
15798if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15799 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15800Usually this means the macro was only invoked conditionally." >&5
15801echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15802Usually this means the macro was only invoked conditionally." >&2;}
15803 { (exit 1); exit 1; }; }
15804fi
15805if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15806 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15807Usually this means the macro was only invoked conditionally." >&5
15808echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15809Usually this means the macro was only invoked conditionally." >&2;}
15810 { (exit 1); exit 1; }; }
15811fi
15812if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15813 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15814Usually this means the macro was only invoked conditionally." >&5
15815echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15816Usually this means the macro was only invoked conditionally." >&2;}
15817 { (exit 1); exit 1; }; }
15818fi
15819if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15820 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON\" was never defined.
15821Usually this means the macro was only invoked conditionally." >&5
15822echo "$as_me: error: conditional \"HAVE_PYTHON\" was never defined.
15823Usually this means the macro was only invoked conditionally." >&2;}
15824 { (exit 1); exit 1; }; }
15825fi
15826
15827: ${CONFIG_STATUS=./config.status}
15828ac_clean_files_save=$ac_clean_files
15829ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15830{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15831echo "$as_me: creating $CONFIG_STATUS" >&6;}
15832cat >$CONFIG_STATUS <<_ACEOF
15833#! $SHELL
15834# Generated by $as_me.
15835# Run this file to recreate the current configuration.
15836# Compiler output produced by configure, useful for debugging
15837# configure, is in config.log if it exists.
15838
15839debug=false
15840ac_cs_recheck=false
15841ac_cs_silent=false
15842SHELL=\${CONFIG_SHELL-$SHELL}
15843_ACEOF
15844
15845cat >>$CONFIG_STATUS <<\_ACEOF
15846## --------------------- ##
15847## M4sh Initialization. ##
15848## --------------------- ##
15849
15850# Be more Bourne compatible
15851DUALCASE=1; export DUALCASE # for MKS sh
15852if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15853 emulate sh
15854 NULLCMD=:
15855 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15856 # is contrary to our usage. Disable this feature.
15857 alias -g '${1+"$@"}'='"$@"'
15858 setopt NO_GLOB_SUBST
15859else
15860 case `(set -o) 2>/dev/null` in
15861 *posix*) set -o posix ;;
15862esac
15863
15864fi
15865
15866
15867
15868
15869# PATH needs CR
15870# Avoid depending upon Character Ranges.
15871as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15872as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15873as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15874as_cr_digits='0123456789'
15875as_cr_alnum=$as_cr_Letters$as_cr_digits
15876
15877# The user is always right.
15878if test "${PATH_SEPARATOR+set}" != set; then
15879 echo "#! /bin/sh" >conf$$.sh
15880 echo "exit 0" >>conf$$.sh
15881 chmod +x conf$$.sh
15882 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15883 PATH_SEPARATOR=';'
15884 else
15885 PATH_SEPARATOR=:
15886 fi
15887 rm -f conf$$.sh
15888fi
15889
15890# Support unset when possible.
15891if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15892 as_unset=unset
15893else
15894 as_unset=false
15895fi
15896
15897
15898# IFS
15899# We need space, tab and new line, in precisely that order. Quoting is
15900# there to prevent editors from complaining about space-tab.
15901# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15902# splitting by setting IFS to empty value.)
15903as_nl='
15904'
15905IFS=" "" $as_nl"
15906
15907# Find who we are. Look in the path if we contain no directory separator.
15908case $0 in
15909 *[\\/]* ) as_myself=$0 ;;
15910 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911for as_dir in $PATH
15912do
15913 IFS=$as_save_IFS
15914 test -z "$as_dir" && as_dir=.
15915 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15916done
15917IFS=$as_save_IFS
15918
15919 ;;
15920esac
15921# We did not find ourselves, most probably we were run as `sh COMMAND'
15922# in which case we are not to be found in the path.
15923if test "x$as_myself" = x; then
15924 as_myself=$0
15925fi
15926if test ! -f "$as_myself"; then
15927 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15928 { (exit 1); exit 1; }
15929fi
15930
15931# Work around bugs in pre-3.0 UWIN ksh.
15932for as_var in ENV MAIL MAILPATH
15933do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15934done
15935PS1='$ '
15936PS2='> '
15937PS4='+ '
15938
15939# NLS nuisances.
15940for as_var in \
15941 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15942 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15943 LC_TELEPHONE LC_TIME
15944do
15945 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15946 eval $as_var=C; export $as_var
15947 else
15948 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15949 fi
15950done
15951
15952# Required to use basename.
15953if expr a : '\(a\)' >/dev/null 2>&1 &&
15954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15955 as_expr=expr
15956else
15957 as_expr=false
15958fi
15959
15960if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15961 as_basename=basename
15962else
15963 as_basename=false
15964fi
15965
15966
15967# Name of the executable.
15968as_me=`$as_basename -- "$0" ||
15969$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15970 X"$0" : 'X\(//\)$' \| \
15971 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15972echo X/"$0" |
15973 sed '/^.*\/\([^/][^/]*\)\/*$/{
15974 s//\1/
15975 q
15976 }
15977 /^X\/\(\/\/\)$/{
15978 s//\1/
15979 q
15980 }
15981 /^X\/\(\/\).*/{
15982 s//\1/
15983 q
15984 }
15985 s/.*/./; q'`
15986
15987# CDPATH.
15988$as_unset CDPATH
15989
15990
15991
15992 as_lineno_1=$LINENO
15993 as_lineno_2=$LINENO
15994 test "x$as_lineno_1" != "x$as_lineno_2" &&
15995 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15996
15997 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15998 # uniformly replaced by the line number. The first 'sed' inserts a
15999 # line-number line after each line using $LINENO; the second 'sed'
16000 # does the real work. The second script uses 'N' to pair each
16001 # line-number line with the line containing $LINENO, and appends
16002 # trailing '-' during substitution so that $LINENO is not a special
16003 # case at line end.
16004 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16005 # scripts with optimization help from Paolo Bonzini. Blame Lee
16006 # E. McMahon (1931-1989) for sed's syntax. :-)
16007 sed -n '
16008 p
16009 /[$]LINENO/=
16010 ' <$as_myself |
16011 sed '
16012 s/[$]LINENO.*/&-/
16013 t lineno
16014 b
16015 :lineno
16016 N
16017 :loop
16018 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16019 t loop
16020 s/-\n.*//
16021 ' >$as_me.lineno &&
16022 chmod +x "$as_me.lineno" ||
16023 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16024 { (exit 1); exit 1; }; }
16025
16026 # Don't try to exec as it changes $[0], causing all sort of problems
16027 # (the dirname of $[0] is not the place where we might find the
16028 # original and so on. Autoconf is especially sensitive to this).
16029 . "./$as_me.lineno"
16030 # Exit status is that of the last command.
16031 exit
16032}
16033
16034
16035if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16036 as_dirname=dirname
16037else
16038 as_dirname=false
16039fi
16040
16041ECHO_C= ECHO_N= ECHO_T=
16042case `echo -n x` in
16043-n*)
16044 case `echo 'x\c'` in
16045 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16046 *) ECHO_C='\c';;
16047 esac;;
16048*)
16049 ECHO_N='-n';;
16050esac
16051
16052if expr a : '\(a\)' >/dev/null 2>&1 &&
16053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16054 as_expr=expr
16055else
16056 as_expr=false
16057fi
16058
16059rm -f conf$$ conf$$.exe conf$$.file
16060if test -d conf$$.dir; then
16061 rm -f conf$$.dir/conf$$.file
16062else
16063 rm -f conf$$.dir
16064 mkdir conf$$.dir
16065fi
16066echo >conf$$.file
16067if ln -s conf$$.file conf$$ 2>/dev/null; then
16068 as_ln_s='ln -s'
16069 # ... but there are two gotchas:
16070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16072 # In both cases, we have to default to `cp -p'.
16073 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16074 as_ln_s='cp -p'
16075elif ln conf$$.file conf$$ 2>/dev/null; then
16076 as_ln_s=ln
16077else
16078 as_ln_s='cp -p'
16079fi
16080rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16081rmdir conf$$.dir 2>/dev/null
16082
16083if mkdir -p . 2>/dev/null; then
16084 as_mkdir_p=:
16085else
16086 test -d ./-p && rmdir ./-p
16087 as_mkdir_p=false
16088fi
16089
16090if test -x / >/dev/null 2>&1; then
16091 as_test_x='test -x'
16092else
16093 if ls -dL / >/dev/null 2>&1; then
16094 as_ls_L_option=L
16095 else
16096 as_ls_L_option=
16097 fi
16098 as_test_x='
16099 eval sh -c '\''
16100 if test -d "$1"; then
16101 test -d "$1/.";
16102 else
16103 case $1 in
16104 -*)set "./$1";;
16105 esac;
16106 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16107 ???[sx]*):;;*)false;;esac;fi
16108 '\'' sh
16109 '
16110fi
16111as_executable_p=$as_test_x
16112
16113# Sed expression to map a string onto a valid CPP name.
16114as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16115
16116# Sed expression to map a string onto a valid variable name.
16117as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16118
16119
16120exec 6>&1
16121
16122# Save the log message, to keep $[0] and so on meaningful, and to
16123# report actual input values of CONFIG_FILES etc. instead of their
16124# values after options handling.
16125ac_log="
16126This file was extended by Google C++ Testing Framework $as_me 1.3.0, which was
16127generated by GNU Autoconf 2.61. Invocation command line was
16128
16129 CONFIG_FILES = $CONFIG_FILES
16130 CONFIG_HEADERS = $CONFIG_HEADERS
16131 CONFIG_LINKS = $CONFIG_LINKS
16132 CONFIG_COMMANDS = $CONFIG_COMMANDS
16133 $ $0 $@
16134
16135on `(hostname || uname -n) 2>/dev/null | sed 1q`
16136"
16137
16138_ACEOF
16139
16140cat >>$CONFIG_STATUS <<_ACEOF
16141# Files that config.status was made for.
16142config_files="$ac_config_files"
16143config_headers="$ac_config_headers"
16144config_commands="$ac_config_commands"
16145
16146_ACEOF
16147
16148cat >>$CONFIG_STATUS <<\_ACEOF
16149ac_cs_usage="\
16150\`$as_me' instantiates files from templates according to the
16151current configuration.
16152
16153Usage: $0 [OPTIONS] [FILE]...
16154
16155 -h, --help print this help, then exit
16156 -V, --version print version number and configuration settings, then exit
16157 -q, --quiet do not print progress messages
16158 -d, --debug don't remove temporary files
16159 --recheck update $as_me by reconfiguring in the same conditions
16160 --file=FILE[:TEMPLATE]
16161 instantiate the configuration file FILE
16162 --header=FILE[:TEMPLATE]
16163 instantiate the configuration header FILE
16164
16165Configuration files:
16166$config_files
16167
16168Configuration headers:
16169$config_headers
16170
16171Configuration commands:
16172$config_commands
16173
16174Report bugs to <bug-autoconf@gnu.org>."
16175
16176_ACEOF
16177cat >>$CONFIG_STATUS <<_ACEOF
16178ac_cs_version="\\
16179Google C++ Testing Framework config.status 1.3.0
16180configured by $0, generated by GNU Autoconf 2.61,
16181 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16182
16183Copyright (C) 2006 Free Software Foundation, Inc.
16184This config.status script is free software; the Free Software Foundation
16185gives unlimited permission to copy, distribute and modify it."
16186
16187ac_pwd='$ac_pwd'
16188srcdir='$srcdir'
16189INSTALL='$INSTALL'
16190MKDIR_P='$MKDIR_P'
16191_ACEOF
16192
16193cat >>$CONFIG_STATUS <<\_ACEOF
16194# If no file are specified by the user, then we need to provide default
16195# value. By we need to know if files were specified by the user.
16196ac_need_defaults=:
16197while test $# != 0
16198do
16199 case $1 in
16200 --*=*)
16201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16202 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16203 ac_shift=:
16204 ;;
16205 *)
16206 ac_option=$1
16207 ac_optarg=$2
16208 ac_shift=shift
16209 ;;
16210 esac
16211
16212 case $ac_option in
16213 # Handling of the options.
16214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16215 ac_cs_recheck=: ;;
16216 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16217 echo "$ac_cs_version"; exit ;;
16218 --debug | --debu | --deb | --de | --d | -d )
16219 debug=: ;;
16220 --file | --fil | --fi | --f )
16221 $ac_shift
16222 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16223 ac_need_defaults=false;;
16224 --header | --heade | --head | --hea )
16225 $ac_shift
16226 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16227 ac_need_defaults=false;;
16228 --he | --h)
16229 # Conflict between --help and --header
16230 { echo "$as_me: error: ambiguous option: $1
16231Try \`$0 --help' for more information." >&2
16232 { (exit 1); exit 1; }; };;
16233 --help | --hel | -h )
16234 echo "$ac_cs_usage"; exit ;;
16235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16237 ac_cs_silent=: ;;
16238
16239 # This is an error.
16240 -*) { echo "$as_me: error: unrecognized option: $1
16241Try \`$0 --help' for more information." >&2
16242 { (exit 1); exit 1; }; } ;;
16243
16244 *) ac_config_targets="$ac_config_targets $1"
16245 ac_need_defaults=false ;;
16246
16247 esac
16248 shift
16249done
16250
16251ac_configure_extra_args=
16252
16253if $ac_cs_silent; then
16254 exec 6>/dev/null
16255 ac_configure_extra_args="$ac_configure_extra_args --silent"
16256fi
16257
16258_ACEOF
16259cat >>$CONFIG_STATUS <<_ACEOF
16260if \$ac_cs_recheck; then
16261 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16262 CONFIG_SHELL=$SHELL
16263 export CONFIG_SHELL
16264 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16265fi
16266
16267_ACEOF
16268cat >>$CONFIG_STATUS <<\_ACEOF
16269exec 5>>config.log
16270{
16271 echo
16272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16273## Running $as_me. ##
16274_ASBOX
16275 echo "$ac_log"
16276} >&5
16277
16278_ACEOF
16279cat >>$CONFIG_STATUS <<_ACEOF
16280#
16281# INIT-COMMANDS
16282#
16283AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16284
16285
16286# The HP-UX ksh and POSIX shell print the target directory to stdout
16287# if CDPATH is set.
16288(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16289
16290sed_quote_subst='$sed_quote_subst'
16291double_quote_subst='$double_quote_subst'
16292delay_variable_subst='$delay_variable_subst'
16293macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16294macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16295enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16296enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16297pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16298enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16299host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16300host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16301host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16302build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16303build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16304build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16305SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16306Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16307GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16308EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16309FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16310LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16311NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16312LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16313max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16314ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16315exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16316lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16317lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16318lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16319reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16320reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16321deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16322file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16323AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16324AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16325STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16326RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16327old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16328old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16329old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16330CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16331CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16332compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16333GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16334lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16335lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16336lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16337lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16338objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16339SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16340ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16341MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16342lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16343lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16344lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16345lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16346lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16347need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16348DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16349NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16350LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16351OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16352OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16353libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16354shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16355extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16356archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16357enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16358export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16359whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16360compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16361old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16362old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16363archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16364archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16365module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16366module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16367with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16368allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16369no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16370hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16371hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16372hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16373hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16374hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16375hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16376hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16377hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16378inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16379link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16380fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16381always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16382export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16383exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16384include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16385prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16386file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16387variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16388need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16389need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16390version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16391runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16392shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16393shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16394libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16395library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16396soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16397postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16398postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16399finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16400finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16401hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16402sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16403sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16404hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16405enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16406enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16407enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16408old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16409striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16410compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16411predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16412postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16413predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16414postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16415compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16416LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16417old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16418compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16419GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16420lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16421lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16422lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16423lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16424lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16425archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16426enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16427export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16428whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16429compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16430old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16431old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16432archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16433archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16434module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16435module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16436with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16437allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16438no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16439hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16440hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16441hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16442hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16443hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16444hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16445hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16446hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16447inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16448link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16449fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16450always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16451export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16452exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16453include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16454prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16455file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16456hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16457compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16458predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16459postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16460predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16461postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16462compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16463
16464LTCC='$LTCC'
16465LTCFLAGS='$LTCFLAGS'
16466compiler='$compiler_DEFAULT'
16467
16468# Quote evaled strings.
16469for var in SED \
16470GREP \
16471EGREP \
16472FGREP \
16473LD \
16474NM \
16475LN_S \
16476lt_SP2NL \
16477lt_NL2SP \
16478reload_flag \
16479deplibs_check_method \
16480file_magic_cmd \
16481AR \
16482AR_FLAGS \
16483STRIP \
16484RANLIB \
16485CC \
16486CFLAGS \
16487compiler \
16488lt_cv_sys_global_symbol_pipe \
16489lt_cv_sys_global_symbol_to_cdecl \
16490lt_cv_sys_global_symbol_to_c_name_address \
16491lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16492SHELL \
16493ECHO \
16494lt_prog_compiler_no_builtin_flag \
16495lt_prog_compiler_wl \
16496lt_prog_compiler_pic \
16497lt_prog_compiler_static \
16498lt_cv_prog_compiler_c_o \
16499need_locks \
16500DSYMUTIL \
16501NMEDIT \
16502LIPO \
16503OTOOL \
16504OTOOL64 \
16505shrext_cmds \
16506export_dynamic_flag_spec \
16507whole_archive_flag_spec \
16508compiler_needs_object \
16509with_gnu_ld \
16510allow_undefined_flag \
16511no_undefined_flag \
16512hardcode_libdir_flag_spec \
16513hardcode_libdir_flag_spec_ld \
16514hardcode_libdir_separator \
16515fix_srcfile_path \
16516exclude_expsyms \
16517include_expsyms \
16518file_list_spec \
16519variables_saved_for_relink \
16520libname_spec \
16521library_names_spec \
16522soname_spec \
16523finish_eval \
16524old_striplib \
16525striplib \
16526compiler_lib_search_dirs \
16527predep_objects \
16528postdep_objects \
16529predeps \
16530postdeps \
16531compiler_lib_search_path \
16532LD_CXX \
16533compiler_CXX \
16534lt_prog_compiler_no_builtin_flag_CXX \
16535lt_prog_compiler_wl_CXX \
16536lt_prog_compiler_pic_CXX \
16537lt_prog_compiler_static_CXX \
16538lt_cv_prog_compiler_c_o_CXX \
16539export_dynamic_flag_spec_CXX \
16540whole_archive_flag_spec_CXX \
16541compiler_needs_object_CXX \
16542with_gnu_ld_CXX \
16543allow_undefined_flag_CXX \
16544no_undefined_flag_CXX \
16545hardcode_libdir_flag_spec_CXX \
16546hardcode_libdir_flag_spec_ld_CXX \
16547hardcode_libdir_separator_CXX \
16548fix_srcfile_path_CXX \
16549exclude_expsyms_CXX \
16550include_expsyms_CXX \
16551file_list_spec_CXX \
16552compiler_lib_search_dirs_CXX \
16553predep_objects_CXX \
16554postdep_objects_CXX \
16555predeps_CXX \
16556postdeps_CXX \
16557compiler_lib_search_path_CXX; do
16558 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16559 *[\\\\\\\`\\"\\\$]*)
16560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16561 ;;
16562 *)
16563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16564 ;;
16565 esac
16566done
16567
16568# Double-quote double-evaled strings.
16569for var in reload_cmds \
16570old_postinstall_cmds \
16571old_postuninstall_cmds \
16572old_archive_cmds \
16573extract_expsyms_cmds \
16574old_archive_from_new_cmds \
16575old_archive_from_expsyms_cmds \
16576archive_cmds \
16577archive_expsym_cmds \
16578module_cmds \
16579module_expsym_cmds \
16580export_symbols_cmds \
16581prelink_cmds \
16582postinstall_cmds \
16583postuninstall_cmds \
16584finish_cmds \
16585sys_lib_search_path_spec \
16586sys_lib_dlsearch_path_spec \
16587old_archive_cmds_CXX \
16588old_archive_from_new_cmds_CXX \
16589old_archive_from_expsyms_cmds_CXX \
16590archive_cmds_CXX \
16591archive_expsym_cmds_CXX \
16592module_cmds_CXX \
16593module_expsym_cmds_CXX \
16594export_symbols_cmds_CXX \
16595prelink_cmds_CXX; do
16596 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16597 *[\\\\\\\`\\"\\\$]*)
16598 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16599 ;;
16600 *)
16601 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16602 ;;
16603 esac
16604done
16605
16606# Fix-up fallback echo if it was mangled by the above quoting rules.
16607case \$lt_ECHO in
16608*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16609 ;;
16610esac
16611
16612ac_aux_dir='$ac_aux_dir'
16613xsi_shell='$xsi_shell'
16614lt_shell_append='$lt_shell_append'
16615
16616# See if we are running on zsh, and set the options which allow our
16617# commands through without removal of \ escapes INIT.
16618if test -n "\${ZSH_VERSION+set}" ; then
16619 setopt NO_GLOB_SUBST
16620fi
16621
16622
16623 PACKAGE='$PACKAGE'
16624 VERSION='$VERSION'
16625 TIMESTAMP='$TIMESTAMP'
16626 RM='$RM'
16627 ofile='$ofile'
16628
16629
16630
16631
16632
16633
16634_ACEOF
16635
16636cat >>$CONFIG_STATUS <<\_ACEOF
16637
16638# Handling of arguments.
16639for ac_config_target in $ac_config_targets
16640do
16641 case $ac_config_target in
16642 "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
16643 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16644 "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
16645 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16646 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16647
16648 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16649echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16650 { (exit 1); exit 1; }; };;
16651 esac
16652done
16653
16654
16655# If the user did not use the arguments to specify the items to instantiate,
16656# then the envvar interface is used. Set only those that are not.
16657# We use the long form for the default assignment because of an extremely
16658# bizarre bug on SunOS 4.1.3.
16659if $ac_need_defaults; then
16660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16661 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16662 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16663fi
16664
16665# Have a temporary directory for convenience. Make it in the build tree
16666# simply because there is no reason against having it here, and in addition,
16667# creating and moving files from /tmp can sometimes cause problems.
16668# Hook for its removal unless debugging.
16669# Note that there is a small window in which the directory will not be cleaned:
16670# after its creation but before its name has been assigned to `$tmp'.
16671$debug ||
16672{
16673 tmp=
16674 trap 'exit_status=$?
16675 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16676' 0
16677 trap '{ (exit 1); exit 1; }' 1 2 13 15
16678}
16679# Create a (secure) tmp directory for tmp files.
16680
16681{
16682 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16683 test -n "$tmp" && test -d "$tmp"
16684} ||
16685{
16686 tmp=./conf$$-$RANDOM
16687 (umask 077 && mkdir "$tmp")
16688} ||
16689{
16690 echo "$me: cannot create a temporary directory in ." >&2
16691 { (exit 1); exit 1; }
16692}
16693
16694#
16695# Set up the sed scripts for CONFIG_FILES section.
16696#
16697
16698# No need to generate the scripts if there are no CONFIG_FILES.
16699# This happens for instance when ./config.status config.h
16700if test -n "$CONFIG_FILES"; then
16701
16702_ACEOF
16703
16704
16705
16706ac_delim='%!_!# '
16707for ac_last_try in false false false false false :; do
16708 cat >conf$$subs.sed <<_ACEOF
16709SHELL!$SHELL$ac_delim
16710PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16711PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16712PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16713PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16714PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16715PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16716exec_prefix!$exec_prefix$ac_delim
16717prefix!$prefix$ac_delim
16718program_transform_name!$program_transform_name$ac_delim
16719bindir!$bindir$ac_delim
16720sbindir!$sbindir$ac_delim
16721libexecdir!$libexecdir$ac_delim
16722datarootdir!$datarootdir$ac_delim
16723datadir!$datadir$ac_delim
16724sysconfdir!$sysconfdir$ac_delim
16725sharedstatedir!$sharedstatedir$ac_delim
16726localstatedir!$localstatedir$ac_delim
16727includedir!$includedir$ac_delim
16728oldincludedir!$oldincludedir$ac_delim
16729docdir!$docdir$ac_delim
16730infodir!$infodir$ac_delim
16731htmldir!$htmldir$ac_delim
16732dvidir!$dvidir$ac_delim
16733pdfdir!$pdfdir$ac_delim
16734psdir!$psdir$ac_delim
16735libdir!$libdir$ac_delim
16736localedir!$localedir$ac_delim
16737mandir!$mandir$ac_delim
16738DEFS!$DEFS$ac_delim
16739ECHO_C!$ECHO_C$ac_delim
16740ECHO_N!$ECHO_N$ac_delim
16741ECHO_T!$ECHO_T$ac_delim
16742LIBS!$LIBS$ac_delim
16743build_alias!$build_alias$ac_delim
16744host_alias!$host_alias$ac_delim
16745target_alias!$target_alias$ac_delim
16746INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16747INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16748INSTALL_DATA!$INSTALL_DATA$ac_delim
16749am__isrc!$am__isrc$ac_delim
16750CYGPATH_W!$CYGPATH_W$ac_delim
16751PACKAGE!$PACKAGE$ac_delim
16752VERSION!$VERSION$ac_delim
16753ACLOCAL!$ACLOCAL$ac_delim
16754AUTOCONF!$AUTOCONF$ac_delim
16755AUTOMAKE!$AUTOMAKE$ac_delim
16756AUTOHEADER!$AUTOHEADER$ac_delim
16757MAKEINFO!$MAKEINFO$ac_delim
16758install_sh!$install_sh$ac_delim
16759STRIP!$STRIP$ac_delim
16760INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16761mkdir_p!$mkdir_p$ac_delim
16762AWK!$AWK$ac_delim
16763SET_MAKE!$SET_MAKE$ac_delim
16764am__leading_dot!$am__leading_dot$ac_delim
16765AMTAR!$AMTAR$ac_delim
16766am__tar!$am__tar$ac_delim
16767am__untar!$am__untar$ac_delim
16768CC!$CC$ac_delim
16769CFLAGS!$CFLAGS$ac_delim
16770LDFLAGS!$LDFLAGS$ac_delim
16771CPPFLAGS!$CPPFLAGS$ac_delim
16772ac_ct_CC!$ac_ct_CC$ac_delim
16773EXEEXT!$EXEEXT$ac_delim
16774OBJEXT!$OBJEXT$ac_delim
16775DEPDIR!$DEPDIR$ac_delim
16776am__include!$am__include$ac_delim
16777am__quote!$am__quote$ac_delim
16778AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16779AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16780AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16781CCDEPMODE!$CCDEPMODE$ac_delim
16782am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16783am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16784CXX!$CXX$ac_delim
16785CXXFLAGS!$CXXFLAGS$ac_delim
16786ac_ct_CXX!$ac_ct_CXX$ac_delim
16787CXXDEPMODE!$CXXDEPMODE$ac_delim
16788am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
16789am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
16790LIBTOOL!$LIBTOOL$ac_delim
16791build!$build$ac_delim
16792build_cpu!$build_cpu$ac_delim
16793build_vendor!$build_vendor$ac_delim
16794build_os!$build_os$ac_delim
16795host!$host$ac_delim
16796host_cpu!$host_cpu$ac_delim
16797host_vendor!$host_vendor$ac_delim
16798host_os!$host_os$ac_delim
16799SED!$SED$ac_delim
16800GREP!$GREP$ac_delim
16801EGREP!$EGREP$ac_delim
16802FGREP!$FGREP$ac_delim
16803LD!$LD$ac_delim
16804DUMPBIN!$DUMPBIN$ac_delim
16805ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
16806_ACEOF
16807
16808 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16809 break
16810 elif $ac_last_try; then
16811 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16812echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16813 { (exit 1); exit 1; }; }
16814 else
16815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16816 fi
16817done
16818
16819ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16820if test -n "$ac_eof"; then
16821 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16822 ac_eof=`expr $ac_eof + 1`
16823fi
16824
16825cat >>$CONFIG_STATUS <<_ACEOF
16826cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16827/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16828_ACEOF
16829sed '
16830s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16831s/^/s,@/; s/!/@,|#_!!_#|/
16832:n
16833t n
16834s/'"$ac_delim"'$/,g/; t
16835s/$/\\/; p
16836N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16837' >>$CONFIG_STATUS <conf$$subs.sed
16838rm -f conf$$subs.sed
16839cat >>$CONFIG_STATUS <<_ACEOF
16840CEOF$ac_eof
16841_ACEOF
16842
16843
16844ac_delim='%!_!# '
16845for ac_last_try in false false false false false :; do
16846 cat >conf$$subs.sed <<_ACEOF
16847NM!$NM$ac_delim
16848LN_S!$LN_S$ac_delim
16849AR!$AR$ac_delim
16850RANLIB!$RANLIB$ac_delim
16851lt_ECHO!$lt_ECHO$ac_delim
16852DSYMUTIL!$DSYMUTIL$ac_delim
16853NMEDIT!$NMEDIT$ac_delim
16854LIPO!$LIPO$ac_delim
16855OTOOL!$OTOOL$ac_delim
16856OTOOL64!$OTOOL64$ac_delim
16857CPP!$CPP$ac_delim
16858CXXCPP!$CXXCPP$ac_delim
16859PYTHON!$PYTHON$ac_delim
16860HAVE_PYTHON_TRUE!$HAVE_PYTHON_TRUE$ac_delim
16861HAVE_PYTHON_FALSE!$HAVE_PYTHON_FALSE$ac_delim
16862acx_pthread_config!$acx_pthread_config$ac_delim
16863PTHREAD_CC!$PTHREAD_CC$ac_delim
16864PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
16865PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
16866LIBOBJS!$LIBOBJS$ac_delim
16867LTLIBOBJS!$LTLIBOBJS$ac_delim
16868_ACEOF
16869
16870 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
16871 break
16872 elif $ac_last_try; then
16873 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16874echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16875 { (exit 1); exit 1; }; }
16876 else
16877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16878 fi
16879done
16880
16881ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16882if test -n "$ac_eof"; then
16883 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16884 ac_eof=`expr $ac_eof + 1`
16885fi
16886
16887cat >>$CONFIG_STATUS <<_ACEOF
16888cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16889/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16890_ACEOF
16891sed '
16892s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16893s/^/s,@/; s/!/@,|#_!!_#|/
16894:n
16895t n
16896s/'"$ac_delim"'$/,g/; t
16897s/$/\\/; p
16898N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16899' >>$CONFIG_STATUS <conf$$subs.sed
16900rm -f conf$$subs.sed
16901cat >>$CONFIG_STATUS <<_ACEOF
16902:end
16903s/|#_!!_#|//g
16904CEOF$ac_eof
16905_ACEOF
16906
16907
16908# VPATH may cause trouble with some makes, so we remove $(srcdir),
16909# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16910# trailing colons and then remove the whole line if VPATH becomes empty
16911# (actually we leave an empty line to preserve line numbers).
16912if test "x$srcdir" = x.; then
16913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16914s/:*\$(srcdir):*/:/
16915s/:*\${srcdir}:*/:/
16916s/:*@srcdir@:*/:/
16917s/^\([^=]*=[ ]*\):*/\1/
16918s/:*$//
16919s/^[^=]*=[ ]*$//
16920}'
16921fi
16922
16923cat >>$CONFIG_STATUS <<\_ACEOF
16924fi # test -n "$CONFIG_FILES"
16925
16926
16927for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16928do
16929 case $ac_tag in
16930 :[FHLC]) ac_mode=$ac_tag; continue;;
16931 esac
16932 case $ac_mode$ac_tag in
16933 :[FHL]*:*);;
16934 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16935echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16936 { (exit 1); exit 1; }; };;
16937 :[FH]-) ac_tag=-:-;;
16938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16939 esac
16940 ac_save_IFS=$IFS
16941 IFS=:
16942 set x $ac_tag
16943 IFS=$ac_save_IFS
16944 shift
16945 ac_file=$1
16946 shift
16947
16948 case $ac_mode in
16949 :L) ac_source=$1;;
16950 :[FH])
16951 ac_file_inputs=
16952 for ac_f
16953 do
16954 case $ac_f in
16955 -) ac_f="$tmp/stdin";;
16956 *) # Look for the file first in the build tree, then in the source tree
16957 # (if the path is not absolute). The absolute path cannot be DOS-style,
16958 # because $ac_f cannot contain `:'.
16959 test -f "$ac_f" ||
16960 case $ac_f in
16961 [\\/$]*) false;;
16962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16963 esac ||
16964 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16965echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16966 { (exit 1); exit 1; }; };;
16967 esac
16968 ac_file_inputs="$ac_file_inputs $ac_f"
16969 done
16970
16971 # Let's still pretend it is `configure' which instantiates (i.e., don't
16972 # use $as_me), people would be surprised to read:
16973 # /* config.h. Generated by config.status. */
16974 configure_input="Generated from "`IFS=:
16975 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16976 if test x"$ac_file" != x-; then
16977 configure_input="$ac_file. $configure_input"
16978 { echo "$as_me:$LINENO: creating $ac_file" >&5
16979echo "$as_me: creating $ac_file" >&6;}
16980 fi
16981
16982 case $ac_tag in
16983 *:-:* | *:-) cat >"$tmp/stdin";;
16984 esac
16985 ;;
16986 esac
16987
16988 ac_dir=`$as_dirname -- "$ac_file" ||
16989$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16990 X"$ac_file" : 'X\(//\)[^/]' \| \
16991 X"$ac_file" : 'X\(//\)$' \| \
16992 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16993echo X"$ac_file" |
16994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16995 s//\1/
16996 q
16997 }
16998 /^X\(\/\/\)[^/].*/{
16999 s//\1/
17000 q
17001 }
17002 /^X\(\/\/\)$/{
17003 s//\1/
17004 q
17005 }
17006 /^X\(\/\).*/{
17007 s//\1/
17008 q
17009 }
17010 s/.*/./; q'`
17011 { as_dir="$ac_dir"
17012 case $as_dir in #(
17013 -*) as_dir=./$as_dir;;
17014 esac
17015 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17016 as_dirs=
17017 while :; do
17018 case $as_dir in #(
17019 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17020 *) as_qdir=$as_dir;;
17021 esac
17022 as_dirs="'$as_qdir' $as_dirs"
17023 as_dir=`$as_dirname -- "$as_dir" ||
17024$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17025 X"$as_dir" : 'X\(//\)[^/]' \| \
17026 X"$as_dir" : 'X\(//\)$' \| \
17027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17028echo X"$as_dir" |
17029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17030 s//\1/
17031 q
17032 }
17033 /^X\(\/\/\)[^/].*/{
17034 s//\1/
17035 q
17036 }
17037 /^X\(\/\/\)$/{
17038 s//\1/
17039 q
17040 }
17041 /^X\(\/\).*/{
17042 s//\1/
17043 q
17044 }
17045 s/.*/./; q'`
17046 test -d "$as_dir" && break
17047 done
17048 test -z "$as_dirs" || eval "mkdir $as_dirs"
17049 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17050echo "$as_me: error: cannot create directory $as_dir" >&2;}
17051 { (exit 1); exit 1; }; }; }
17052 ac_builddir=.
17053
17054case "$ac_dir" in
17055.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17056*)
17057 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17058 # A ".." for each directory in $ac_dir_suffix.
17059 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17060 case $ac_top_builddir_sub in
17061 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17062 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17063 esac ;;
17064esac
17065ac_abs_top_builddir=$ac_pwd
17066ac_abs_builddir=$ac_pwd$ac_dir_suffix
17067# for backward compatibility:
17068ac_top_builddir=$ac_top_build_prefix
17069
17070case $srcdir in
17071 .) # We are building in place.
17072 ac_srcdir=.
17073 ac_top_srcdir=$ac_top_builddir_sub
17074 ac_abs_top_srcdir=$ac_pwd ;;
17075 [\\/]* | ?:[\\/]* ) # Absolute name.
17076 ac_srcdir=$srcdir$ac_dir_suffix;
17077 ac_top_srcdir=$srcdir
17078 ac_abs_top_srcdir=$srcdir ;;
17079 *) # Relative name.
17080 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17081 ac_top_srcdir=$ac_top_build_prefix$srcdir
17082 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17083esac
17084ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17085
17086
17087 case $ac_mode in
17088 :F)
17089 #
17090 # CONFIG_FILE
17091 #
17092
17093 case $INSTALL in
17094 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17095 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17096 esac
17097 ac_MKDIR_P=$MKDIR_P
17098 case $MKDIR_P in
17099 [\\/$]* | ?:[\\/]* ) ;;
17100 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17101 esac
17102_ACEOF
17103
17104cat >>$CONFIG_STATUS <<\_ACEOF
17105# If the template does not know about datarootdir, expand it.
17106# FIXME: This hack should be removed a few years after 2.60.
17107ac_datarootdir_hack=; ac_datarootdir_seen=
17108
17109case `sed -n '/datarootdir/ {
17110 p
17111 q
17112}
17113/@datadir@/p
17114/@docdir@/p
17115/@infodir@/p
17116/@localedir@/p
17117/@mandir@/p
17118' $ac_file_inputs` in
17119*datarootdir*) ac_datarootdir_seen=yes;;
17120*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17121 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17122echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17123_ACEOF
17124cat >>$CONFIG_STATUS <<_ACEOF
17125 ac_datarootdir_hack='
17126 s&@datadir@&$datadir&g
17127 s&@docdir@&$docdir&g
17128 s&@infodir@&$infodir&g
17129 s&@localedir@&$localedir&g
17130 s&@mandir@&$mandir&g
17131 s&\\\${datarootdir}&$datarootdir&g' ;;
17132esac
17133_ACEOF
17134
17135# Neutralize VPATH when `$srcdir' = `.'.
17136# Shell code in configure.ac might set extrasub.
17137# FIXME: do we really want to maintain this feature?
17138cat >>$CONFIG_STATUS <<_ACEOF
17139 sed "$ac_vpsub
17140$extrasub
17141_ACEOF
17142cat >>$CONFIG_STATUS <<\_ACEOF
17143:t
17144/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17145s&@configure_input@&$configure_input&;t t
17146s&@top_builddir@&$ac_top_builddir_sub&;t t
17147s&@srcdir@&$ac_srcdir&;t t
17148s&@abs_srcdir@&$ac_abs_srcdir&;t t
17149s&@top_srcdir@&$ac_top_srcdir&;t t
17150s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17151s&@builddir@&$ac_builddir&;t t
17152s&@abs_builddir@&$ac_abs_builddir&;t t
17153s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17154s&@INSTALL@&$ac_INSTALL&;t t
17155s&@MKDIR_P@&$ac_MKDIR_P&;t t
17156$ac_datarootdir_hack
17157" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17158
17159test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17160 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17162 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17163which seems to be undefined. Please make sure it is defined." >&5
17164echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17165which seems to be undefined. Please make sure it is defined." >&2;}
17166
17167 rm -f "$tmp/stdin"
17168 case $ac_file in
17169 -) cat "$tmp/out"; rm -f "$tmp/out";;
17170 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17171 esac
17172 ;;
17173 :H)
17174 #
17175 # CONFIG_HEADER
17176 #
17177_ACEOF
17178
17179# Transform confdefs.h into a sed script `conftest.defines', that
17180# substitutes the proper values into config.h.in to produce config.h.
17181rm -f conftest.defines conftest.tail
17182# First, append a space to every undef/define line, to ease matching.
17183echo 's/$/ /' >conftest.defines
17184# Then, protect against being on the right side of a sed subst, or in
17185# an unquoted here document, in config.status. If some macros were
17186# called several times there might be several #defines for the same
17187# symbol, which is useless. But do not sort them, since the last
17188# AC_DEFINE must be honored.
17189ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17190# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17191# NAME is the cpp macro being defined, VALUE is the value it is being given.
17192# PARAMS is the parameter list in the macro definition--in most cases, it's
17193# just an empty string.
17194ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17195ac_dB='\\)[ (].*,\\1define\\2'
17196ac_dC=' '
17197ac_dD=' ,'
17198
17199uniq confdefs.h |
17200 sed -n '
17201 t rset
17202 :rset
17203 s/^[ ]*#[ ]*define[ ][ ]*//
17204 t ok
17205 d
17206 :ok
17207 s/[\\&,]/\\&/g
17208 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17209 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17210 ' >>conftest.defines
17211
17212# Remove the space that was appended to ease matching.
17213# Then replace #undef with comments. This is necessary, for
17214# example, in the case of _POSIX_SOURCE, which is predefined and required
17215# on some systems where configure will not decide to define it.
17216# (The regexp can be short, since the line contains either #define or #undef.)
17217echo 's/ $//
17218s,^[ #]*u.*,/* & */,' >>conftest.defines
17219
17220# Break up conftest.defines:
17221ac_max_sed_lines=50
17222
17223# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17224# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17225# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17226# et cetera.
17227ac_in='$ac_file_inputs'
17228ac_out='"$tmp/out1"'
17229ac_nxt='"$tmp/out2"'
17230
17231while :
17232do
17233 # Write a here document:
17234 cat >>$CONFIG_STATUS <<_ACEOF
17235 # First, check the format of the line:
17236 cat >"\$tmp/defines.sed" <<\\CEOF
17237/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17238/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17239b
17240:def
17241_ACEOF
17242 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17243 echo 'CEOF
17244 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17245 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17246 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17247 grep . conftest.tail >/dev/null || break
17248 rm -f conftest.defines
17249 mv conftest.tail conftest.defines
17250done
17251rm -f conftest.defines conftest.tail
17252
17253echo "ac_result=$ac_in" >>$CONFIG_STATUS
17254cat >>$CONFIG_STATUS <<\_ACEOF
17255 if test x"$ac_file" != x-; then
17256 echo "/* $configure_input */" >"$tmp/config.h"
17257 cat "$ac_result" >>"$tmp/config.h"
17258 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17259 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17260echo "$as_me: $ac_file is unchanged" >&6;}
17261 else
17262 rm -f $ac_file
17263 mv "$tmp/config.h" $ac_file
17264 fi
17265 else
17266 echo "/* $configure_input */"
17267 cat "$ac_result"
17268 fi
17269 rm -f "$tmp/out12"
17270# Compute $ac_file's index in $config_headers.
17271_am_arg=$ac_file
17272_am_stamp_count=1
17273for _am_header in $config_headers :; do
17274 case $_am_header in
17275 $_am_arg | $_am_arg:* )
17276 break ;;
17277 * )
17278 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17279 esac
17280done
17281echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17282$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17283 X"$_am_arg" : 'X\(//\)[^/]' \| \
17284 X"$_am_arg" : 'X\(//\)$' \| \
17285 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17286echo X"$_am_arg" |
17287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17288 s//\1/
17289 q
17290 }
17291 /^X\(\/\/\)[^/].*/{
17292 s//\1/
17293 q
17294 }
17295 /^X\(\/\/\)$/{
17296 s//\1/
17297 q
17298 }
17299 /^X\(\/\).*/{
17300 s//\1/
17301 q
17302 }
17303 s/.*/./; q'`/stamp-h$_am_stamp_count
17304 ;;
17305
17306 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17307echo "$as_me: executing $ac_file commands" >&6;}
17308 ;;
17309 esac
17310
17311
17312 case $ac_file$ac_mode in
17313 "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
17314 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17315 # Strip MF so we end up with the name of the file.
17316 mf=`echo "$mf" | sed -e 's/:.*$//'`
17317 # Check whether this is an Automake generated Makefile or not.
17318 # We used to match only the files named `Makefile.in', but
17319 # some people rename them; so instead we look at the file content.
17320 # Grep'ing the first line is not enough: some people post-process
17321 # each Makefile.in and add a new line on top of each file to say so.
17322 # Grep'ing the whole file is not good either: AIX grep has a line
17323 # limit of 2048, but all sed's we know have understand at least 4000.
17324 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17325 dirpart=`$as_dirname -- "$mf" ||
17326$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17327 X"$mf" : 'X\(//\)[^/]' \| \
17328 X"$mf" : 'X\(//\)$' \| \
17329 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17330echo X"$mf" |
17331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17332 s//\1/
17333 q
17334 }
17335 /^X\(\/\/\)[^/].*/{
17336 s//\1/
17337 q
17338 }
17339 /^X\(\/\/\)$/{
17340 s//\1/
17341 q
17342 }
17343 /^X\(\/\).*/{
17344 s//\1/
17345 q
17346 }
17347 s/.*/./; q'`
17348 else
17349 continue
17350 fi
17351 # Extract the definition of DEPDIR, am__include, and am__quote
17352 # from the Makefile without running `make'.
17353 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17354 test -z "$DEPDIR" && continue
17355 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17356 test -z "am__include" && continue
17357 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17358 # When using ansi2knr, U may be empty or an underscore; expand it
17359 U=`sed -n 's/^U = //p' < "$mf"`
17360 # Find all dependency output files, they are included files with
17361 # $(DEPDIR) in their names. We invoke sed twice because it is the
17362 # simplest approach to changing $(DEPDIR) to its actual value in the
17363 # expansion.
17364 for file in `sed -n "
17365 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17366 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17367 # Make sure the directory exists.
17368 test -f "$dirpart/$file" && continue
17369 fdir=`$as_dirname -- "$file" ||
17370$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17371 X"$file" : 'X\(//\)[^/]' \| \
17372 X"$file" : 'X\(//\)$' \| \
17373 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17374echo X"$file" |
17375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17376 s//\1/
17377 q
17378 }
17379 /^X\(\/\/\)[^/].*/{
17380 s//\1/
17381 q
17382 }
17383 /^X\(\/\/\)$/{
17384 s//\1/
17385 q
17386 }
17387 /^X\(\/\).*/{
17388 s//\1/
17389 q
17390 }
17391 s/.*/./; q'`
17392 { as_dir=$dirpart/$fdir
17393 case $as_dir in #(
17394 -*) as_dir=./$as_dir;;
17395 esac
17396 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17397 as_dirs=
17398 while :; do
17399 case $as_dir in #(
17400 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17401 *) as_qdir=$as_dir;;
17402 esac
17403 as_dirs="'$as_qdir' $as_dirs"
17404 as_dir=`$as_dirname -- "$as_dir" ||
17405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17406 X"$as_dir" : 'X\(//\)[^/]' \| \
17407 X"$as_dir" : 'X\(//\)$' \| \
17408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17409echo X"$as_dir" |
17410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17411 s//\1/
17412 q
17413 }
17414 /^X\(\/\/\)[^/].*/{
17415 s//\1/
17416 q
17417 }
17418 /^X\(\/\/\)$/{
17419 s//\1/
17420 q
17421 }
17422 /^X\(\/\).*/{
17423 s//\1/
17424 q
17425 }
17426 s/.*/./; q'`
17427 test -d "$as_dir" && break
17428 done
17429 test -z "$as_dirs" || eval "mkdir $as_dirs"
17430 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17431echo "$as_me: error: cannot create directory $as_dir" >&2;}
17432 { (exit 1); exit 1; }; }; }
17433 # echo "creating $dirpart/$file"
17434 echo '# dummy' > "$dirpart/$file"
17435 done
17436done
17437 ;;
17438 "libtool":C)
17439
17440 # See if we are running on zsh, and set the options which allow our
17441 # commands through without removal of \ escapes.
17442 if test -n "${ZSH_VERSION+set}" ; then
17443 setopt NO_GLOB_SUBST
17444 fi
17445
17446 cfgfile="${ofile}T"
17447 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17448 $RM "$cfgfile"
17449
17450 cat <<_LT_EOF >> "$cfgfile"
17451#! $SHELL
17452
17453# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17454# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17455# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17456# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17457#
17458# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17459# 2006, 2007, 2008 Free Software Foundation, Inc.
17460# Written by Gordon Matzigkeit, 1996
17461#
17462# This file is part of GNU Libtool.
17463#
17464# GNU Libtool is free software; you can redistribute it and/or
17465# modify it under the terms of the GNU General Public License as
17466# published by the Free Software Foundation; either version 2 of
17467# the License, or (at your option) any later version.
17468#
17469# As a special exception to the GNU General Public License,
17470# if you distribute this file as part of a program or library that
17471# is built using GNU Libtool, you may include this file under the
17472# same distribution terms that you use for the rest of that program.
17473#
17474# GNU Libtool is distributed in the hope that it will be useful,
17475# but WITHOUT ANY WARRANTY; without even the implied warranty of
17476# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17477# GNU General Public License for more details.
17478#
17479# You should have received a copy of the GNU General Public License
17480# along with GNU Libtool; see the file COPYING. If not, a copy
17481# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17482# obtained by writing to the Free Software Foundation, Inc.,
17483# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17484
17485
17486# The names of the tagged configurations supported by this script.
17487available_tags="CXX "
17488
17489# ### BEGIN LIBTOOL CONFIG
17490
17491# Which release of libtool.m4 was used?
17492macro_version=$macro_version
17493macro_revision=$macro_revision
17494
17495# Whether or not to build shared libraries.
17496build_libtool_libs=$enable_shared
17497
17498# Whether or not to build static libraries.
17499build_old_libs=$enable_static
17500
17501# What type of objects to build.
17502pic_mode=$pic_mode
17503
17504# Whether or not to optimize for fast installation.
17505fast_install=$enable_fast_install
17506
17507# The host system.
17508host_alias=$host_alias
17509host=$host
17510host_os=$host_os
17511
17512# The build system.
17513build_alias=$build_alias
17514build=$build
17515build_os=$build_os
17516
17517# A sed program that does not truncate output.
17518SED=$lt_SED
17519
17520# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17521Xsed="\$SED -e 1s/^X//"
17522
17523# A grep program that handles long lines.
17524GREP=$lt_GREP
17525
17526# An ERE matcher.
17527EGREP=$lt_EGREP
17528
17529# A literal string matcher.
17530FGREP=$lt_FGREP
17531
17532# A BSD- or MS-compatible name lister.
17533NM=$lt_NM
17534
17535# Whether we need soft or hard links.
17536LN_S=$lt_LN_S
17537
17538# What is the maximum length of a command?
17539max_cmd_len=$max_cmd_len
17540
17541# Object file suffix (normally "o").
17542objext=$ac_objext
17543
17544# Executable file suffix (normally "").
17545exeext=$exeext
17546
17547# whether the shell understands "unset".
17548lt_unset=$lt_unset
17549
17550# turn spaces into newlines.
17551SP2NL=$lt_lt_SP2NL
17552
17553# turn newlines into spaces.
17554NL2SP=$lt_lt_NL2SP
17555
17556# How to create reloadable object files.
17557reload_flag=$lt_reload_flag
17558reload_cmds=$lt_reload_cmds
17559
17560# Method to check whether dependent libraries are shared objects.
17561deplibs_check_method=$lt_deplibs_check_method
17562
17563# Command to use when deplibs_check_method == "file_magic".
17564file_magic_cmd=$lt_file_magic_cmd
17565
17566# The archiver.
17567AR=$lt_AR
17568AR_FLAGS=$lt_AR_FLAGS
17569
17570# A symbol stripping program.
17571STRIP=$lt_STRIP
17572
17573# Commands used to install an old-style archive.
17574RANLIB=$lt_RANLIB
17575old_postinstall_cmds=$lt_old_postinstall_cmds
17576old_postuninstall_cmds=$lt_old_postuninstall_cmds
17577
17578# A C compiler.
17579LTCC=$lt_CC
17580
17581# LTCC compiler flags.
17582LTCFLAGS=$lt_CFLAGS
17583
17584# Take the output of nm and produce a listing of raw symbols and C names.
17585global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17586
17587# Transform the output of nm in a proper C declaration.
17588global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17589
17590# Transform the output of nm in a C name address pair.
17591global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17592
17593# Transform the output of nm in a C name address pair when lib prefix is needed.
17594global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17595
17596# The name of the directory that contains temporary libtool files.
17597objdir=$objdir
17598
17599# Shell to use when invoking shell scripts.
17600SHELL=$lt_SHELL
17601
17602# An echo program that does not interpret backslashes.
17603ECHO=$lt_ECHO
17604
17605# Used to examine libraries when file_magic_cmd begins with "file".
17606MAGIC_CMD=$MAGIC_CMD
17607
17608# Must we lock files when doing compilation?
17609need_locks=$lt_need_locks
17610
17611# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17612DSYMUTIL=$lt_DSYMUTIL
17613
17614# Tool to change global to local symbols on Mac OS X.
17615NMEDIT=$lt_NMEDIT
17616
17617# Tool to manipulate fat objects and archives on Mac OS X.
17618LIPO=$lt_LIPO
17619
17620# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17621OTOOL=$lt_OTOOL
17622
17623# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17624OTOOL64=$lt_OTOOL64
17625
17626# Old archive suffix (normally "a").
17627libext=$libext
17628
17629# Shared library suffix (normally ".so").
17630shrext_cmds=$lt_shrext_cmds
17631
17632# The commands to extract the exported symbol list from a shared archive.
17633extract_expsyms_cmds=$lt_extract_expsyms_cmds
17634
17635# Variables whose values should be saved in libtool wrapper scripts and
17636# restored at link time.
17637variables_saved_for_relink=$lt_variables_saved_for_relink
17638
17639# Do we need the "lib" prefix for modules?
17640need_lib_prefix=$need_lib_prefix
17641
17642# Do we need a version for libraries?
17643need_version=$need_version
17644
17645# Library versioning type.
17646version_type=$version_type
17647
17648# Shared library runtime path variable.
17649runpath_var=$runpath_var
17650
17651# Shared library path variable.
17652shlibpath_var=$shlibpath_var
17653
17654# Is shlibpath searched before the hard-coded library search path?
17655shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17656
17657# Format of library name prefix.
17658libname_spec=$lt_libname_spec
17659
17660# List of archive names. First name is the real one, the rest are links.
17661# The last name is the one that the linker finds with -lNAME
17662library_names_spec=$lt_library_names_spec
17663
17664# The coded name of the library, if different from the real name.
17665soname_spec=$lt_soname_spec
17666
17667# Command to use after installation of a shared archive.
17668postinstall_cmds=$lt_postinstall_cmds
17669
17670# Command to use after uninstallation of a shared archive.
17671postuninstall_cmds=$lt_postuninstall_cmds
17672
17673# Commands used to finish a libtool library installation in a directory.
17674finish_cmds=$lt_finish_cmds
17675
17676# As "finish_cmds", except a single script fragment to be evaled but
17677# not shown.
17678finish_eval=$lt_finish_eval
17679
17680# Whether we should hardcode library paths into libraries.
17681hardcode_into_libs=$hardcode_into_libs
17682
17683# Compile-time system search path for libraries.
17684sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17685
17686# Run-time system search path for libraries.
17687sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17688
17689# Whether dlopen is supported.
17690dlopen_support=$enable_dlopen
17691
17692# Whether dlopen of programs is supported.
17693dlopen_self=$enable_dlopen_self
17694
17695# Whether dlopen of statically linked programs is supported.
17696dlopen_self_static=$enable_dlopen_self_static
17697
17698# Commands to strip libraries.
17699old_striplib=$lt_old_striplib
17700striplib=$lt_striplib
17701
17702
17703# The linker used to build libraries.
17704LD=$lt_LD
17705
17706# Commands used to build an old-style archive.
17707old_archive_cmds=$lt_old_archive_cmds
17708
17709# A language specific compiler.
17710CC=$lt_compiler
17711
17712# Is the compiler the GNU compiler?
17713with_gcc=$GCC
17714
17715# Compiler flag to turn off builtin functions.
17716no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17717
17718# How to pass a linker flag through the compiler.
17719wl=$lt_lt_prog_compiler_wl
17720
17721# Additional compiler flags for building library objects.
17722pic_flag=$lt_lt_prog_compiler_pic
17723
17724# Compiler flag to prevent dynamic linking.
17725link_static_flag=$lt_lt_prog_compiler_static
17726
17727# Does compiler simultaneously support -c and -o options?
17728compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17729
17730# Whether or not to add -lc for building shared libraries.
17731build_libtool_need_lc=$archive_cmds_need_lc
17732
17733# Whether or not to disallow shared libs when runtime libs are static.
17734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17735
17736# Compiler flag to allow reflexive dlopens.
17737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17738
17739# Compiler flag to generate shared objects directly from archives.
17740whole_archive_flag_spec=$lt_whole_archive_flag_spec
17741
17742# Whether the compiler copes with passing no objects directly.
17743compiler_needs_object=$lt_compiler_needs_object
17744
17745# Create an old-style archive from a shared archive.
17746old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17747
17748# Create a temporary old-style archive to link instead of a shared archive.
17749old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17750
17751# Commands used to build a shared archive.
17752archive_cmds=$lt_archive_cmds
17753archive_expsym_cmds=$lt_archive_expsym_cmds
17754
17755# Commands used to build a loadable module if different from building
17756# a shared archive.
17757module_cmds=$lt_module_cmds
17758module_expsym_cmds=$lt_module_expsym_cmds
17759
17760# Whether we are building with GNU ld or not.
17761with_gnu_ld=$lt_with_gnu_ld
17762
17763# Flag that allows shared libraries with undefined symbols to be built.
17764allow_undefined_flag=$lt_allow_undefined_flag
17765
17766# Flag that enforces no undefined symbols.
17767no_undefined_flag=$lt_no_undefined_flag
17768
17769# Flag to hardcode \$libdir into a binary during linking.
17770# This must work even if \$libdir does not exist
17771hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17772
17773# If ld is used when linking, flag to hardcode \$libdir into a binary
17774# during linking. This must work even if \$libdir does not exist.
17775hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17776
17777# Whether we need a single "-rpath" flag with a separated argument.
17778hardcode_libdir_separator=$lt_hardcode_libdir_separator
17779
17780# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17781# DIR into the resulting binary.
17782hardcode_direct=$hardcode_direct
17783
17784# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17785# DIR into the resulting binary and the resulting library dependency is
17786# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17787# library is relocated.
17788hardcode_direct_absolute=$hardcode_direct_absolute
17789
17790# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17791# into the resulting binary.
17792hardcode_minus_L=$hardcode_minus_L
17793
17794# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17795# into the resulting binary.
17796hardcode_shlibpath_var=$hardcode_shlibpath_var
17797
17798# Set to "yes" if building a shared library automatically hardcodes DIR
17799# into the library and all subsequent libraries and executables linked
17800# against it.
17801hardcode_automatic=$hardcode_automatic
17802
17803# Set to yes if linker adds runtime paths of dependent libraries
17804# to runtime path list.
17805inherit_rpath=$inherit_rpath
17806
17807# Whether libtool must link a program against all its dependency libraries.
17808link_all_deplibs=$link_all_deplibs
17809
17810# Fix the shell variable \$srcfile for the compiler.
17811fix_srcfile_path=$lt_fix_srcfile_path
17812
17813# Set to "yes" if exported symbols are required.
17814always_export_symbols=$always_export_symbols
17815
17816# The commands to list exported symbols.
17817export_symbols_cmds=$lt_export_symbols_cmds
17818
17819# Symbols that should not be listed in the preloaded symbols.
17820exclude_expsyms=$lt_exclude_expsyms
17821
17822# Symbols that must always be exported.
17823include_expsyms=$lt_include_expsyms
17824
17825# Commands necessary for linking programs (against libraries) with templates.
17826prelink_cmds=$lt_prelink_cmds
17827
17828# Specify filename containing input files.
17829file_list_spec=$lt_file_list_spec
17830
17831# How to hardcode a shared library path into an executable.
17832hardcode_action=$hardcode_action
17833
17834# The directories searched by this compiler when creating a shared library.
17835compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17836
17837# Dependencies to place before and after the objects being linked to
17838# create a shared library.
17839predep_objects=$lt_predep_objects
17840postdep_objects=$lt_postdep_objects
17841predeps=$lt_predeps
17842postdeps=$lt_postdeps
17843
17844# The library search path used internally by the compiler when linking
17845# a shared library.
17846compiler_lib_search_path=$lt_compiler_lib_search_path
17847
17848# ### END LIBTOOL CONFIG
17849
17850_LT_EOF
17851
17852 case $host_os in
17853 aix3*)
17854 cat <<\_LT_EOF >> "$cfgfile"
17855# AIX sometimes has problems with the GCC collect2 program. For some
17856# reason, if we set the COLLECT_NAMES environment variable, the problems
17857# vanish in a puff of smoke.
17858if test "X${COLLECT_NAMES+set}" != Xset; then
17859 COLLECT_NAMES=
17860 export COLLECT_NAMES
17861fi
17862_LT_EOF
17863 ;;
17864 esac
17865
17866
17867ltmain="$ac_aux_dir/ltmain.sh"
17868
17869
17870 # We use sed instead of cat because bash on DJGPP gets confused if
17871 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17872 # text mode, it properly converts lines to CR/LF. This bash problem
17873 # is reportedly fixed, but why not run on old versions too?
17874 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17875 || (rm -f "$cfgfile"; exit 1)
17876
17877 case $xsi_shell in
17878 yes)
17879 cat << \_LT_EOF >> "$cfgfile"
17880
17881# func_dirname file append nondir_replacement
17882# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17883# otherwise set result to NONDIR_REPLACEMENT.
17884func_dirname ()
17885{
17886 case ${1} in
17887 */*) func_dirname_result="${1%/*}${2}" ;;
17888 * ) func_dirname_result="${3}" ;;
17889 esac
17890}
17891
17892# func_basename file
17893func_basename ()
17894{
17895 func_basename_result="${1##*/}"
17896}
17897
17898# func_dirname_and_basename file append nondir_replacement
17899# perform func_basename and func_dirname in a single function
17900# call:
17901# dirname: Compute the dirname of FILE. If nonempty,
17902# add APPEND to the result, otherwise set result
17903# to NONDIR_REPLACEMENT.
17904# value returned in "$func_dirname_result"
17905# basename: Compute filename of FILE.
17906# value retuned in "$func_basename_result"
17907# Implementation must be kept synchronized with func_dirname
17908# and func_basename. For efficiency, we do not delegate to
17909# those functions but instead duplicate the functionality here.
17910func_dirname_and_basename ()
17911{
17912 case ${1} in
17913 */*) func_dirname_result="${1%/*}${2}" ;;
17914 * ) func_dirname_result="${3}" ;;
17915 esac
17916 func_basename_result="${1##*/}"
17917}
17918
17919# func_stripname prefix suffix name
17920# strip PREFIX and SUFFIX off of NAME.
17921# PREFIX and SUFFIX must not contain globbing or regex special
17922# characters, hashes, percent signs, but SUFFIX may contain a leading
17923# dot (in which case that matches only a dot).
17924func_stripname ()
17925{
17926 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17927 # positional parameters, so assign one to ordinary parameter first.
17928 func_stripname_result=${3}
17929 func_stripname_result=${func_stripname_result#"${1}"}
17930 func_stripname_result=${func_stripname_result%"${2}"}
17931}
17932
17933# func_opt_split
17934func_opt_split ()
17935{
17936 func_opt_split_opt=${1%%=*}
17937 func_opt_split_arg=${1#*=}
17938}
17939
17940# func_lo2o object
17941func_lo2o ()
17942{
17943 case ${1} in
17944 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17945 *) func_lo2o_result=${1} ;;
17946 esac
17947}
17948
17949# func_xform libobj-or-source
17950func_xform ()
17951{
17952 func_xform_result=${1%.*}.lo
17953}
17954
17955# func_arith arithmetic-term...
17956func_arith ()
17957{
17958 func_arith_result=$(( $* ))
17959}
17960
17961# func_len string
17962# STRING may not start with a hyphen.
17963func_len ()
17964{
17965 func_len_result=${#1}
17966}
17967
17968_LT_EOF
17969 ;;
17970 *) # Bourne compatible functions.
17971 cat << \_LT_EOF >> "$cfgfile"
17972
17973# func_dirname file append nondir_replacement
17974# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17975# otherwise set result to NONDIR_REPLACEMENT.
17976func_dirname ()
17977{
17978 # Extract subdirectory from the argument.
17979 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17980 if test "X$func_dirname_result" = "X${1}"; then
17981 func_dirname_result="${3}"
17982 else
17983 func_dirname_result="$func_dirname_result${2}"
17984 fi
17985}
17986
17987# func_basename file
17988func_basename ()
17989{
17990 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17991}
17992
17993
17994# func_stripname prefix suffix name
17995# strip PREFIX and SUFFIX off of NAME.
17996# PREFIX and SUFFIX must not contain globbing or regex special
17997# characters, hashes, percent signs, but SUFFIX may contain a leading
17998# dot (in which case that matches only a dot).
17999# func_strip_suffix prefix name
18000func_stripname ()
18001{
18002 case ${2} in
18003 .*) func_stripname_result=`$ECHO "X${3}" \
18004 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18005 *) func_stripname_result=`$ECHO "X${3}" \
18006 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18007 esac
18008}
18009
18010# sed scripts:
18011my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18012my_sed_long_arg='1s/^-[^=]*=//'
18013
18014# func_opt_split
18015func_opt_split ()
18016{
18017 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18018 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18019}
18020
18021# func_lo2o object
18022func_lo2o ()
18023{
18024 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18025}
18026
18027# func_xform libobj-or-source
18028func_xform ()
18029{
18030 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18031}
18032
18033# func_arith arithmetic-term...
18034func_arith ()
18035{
18036 func_arith_result=`expr "$@"`
18037}
18038
18039# func_len string
18040# STRING may not start with a hyphen.
18041func_len ()
18042{
18043 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18044}
18045
18046_LT_EOF
18047esac
18048
18049case $lt_shell_append in
18050 yes)
18051 cat << \_LT_EOF >> "$cfgfile"
18052
18053# func_append var value
18054# Append VALUE to the end of shell variable VAR.
18055func_append ()
18056{
18057 eval "$1+=\$2"
18058}
18059_LT_EOF
18060 ;;
18061 *)
18062 cat << \_LT_EOF >> "$cfgfile"
18063
18064# func_append var value
18065# Append VALUE to the end of shell variable VAR.
18066func_append ()
18067{
18068 eval "$1=\$$1\$2"
18069}
18070
18071_LT_EOF
18072 ;;
18073 esac
18074
18075
18076 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18077 || (rm -f "$cfgfile"; exit 1)
18078
18079 mv -f "$cfgfile" "$ofile" ||
18080 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18081 chmod +x "$ofile"
18082
18083
18084 cat <<_LT_EOF >> "$ofile"
18085
18086# ### BEGIN LIBTOOL TAG CONFIG: CXX
18087
18088# The linker used to build libraries.
18089LD=$lt_LD_CXX
18090
18091# Commands used to build an old-style archive.
18092old_archive_cmds=$lt_old_archive_cmds_CXX
18093
18094# A language specific compiler.
18095CC=$lt_compiler_CXX
18096
18097# Is the compiler the GNU compiler?
18098with_gcc=$GCC_CXX
18099
18100# Compiler flag to turn off builtin functions.
18101no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18102
18103# How to pass a linker flag through the compiler.
18104wl=$lt_lt_prog_compiler_wl_CXX
18105
18106# Additional compiler flags for building library objects.
18107pic_flag=$lt_lt_prog_compiler_pic_CXX
18108
18109# Compiler flag to prevent dynamic linking.
18110link_static_flag=$lt_lt_prog_compiler_static_CXX
18111
18112# Does compiler simultaneously support -c and -o options?
18113compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18114
18115# Whether or not to add -lc for building shared libraries.
18116build_libtool_need_lc=$archive_cmds_need_lc_CXX
18117
18118# Whether or not to disallow shared libs when runtime libs are static.
18119allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18120
18121# Compiler flag to allow reflexive dlopens.
18122export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18123
18124# Compiler flag to generate shared objects directly from archives.
18125whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18126
18127# Whether the compiler copes with passing no objects directly.
18128compiler_needs_object=$lt_compiler_needs_object_CXX
18129
18130# Create an old-style archive from a shared archive.
18131old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18132
18133# Create a temporary old-style archive to link instead of a shared archive.
18134old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18135
18136# Commands used to build a shared archive.
18137archive_cmds=$lt_archive_cmds_CXX
18138archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18139
18140# Commands used to build a loadable module if different from building
18141# a shared archive.
18142module_cmds=$lt_module_cmds_CXX
18143module_expsym_cmds=$lt_module_expsym_cmds_CXX
18144
18145# Whether we are building with GNU ld or not.
18146with_gnu_ld=$lt_with_gnu_ld_CXX
18147
18148# Flag that allows shared libraries with undefined symbols to be built.
18149allow_undefined_flag=$lt_allow_undefined_flag_CXX
18150
18151# Flag that enforces no undefined symbols.
18152no_undefined_flag=$lt_no_undefined_flag_CXX
18153
18154# Flag to hardcode \$libdir into a binary during linking.
18155# This must work even if \$libdir does not exist
18156hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18157
18158# If ld is used when linking, flag to hardcode \$libdir into a binary
18159# during linking. This must work even if \$libdir does not exist.
18160hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18161
18162# Whether we need a single "-rpath" flag with a separated argument.
18163hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18164
18165# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18166# DIR into the resulting binary.
18167hardcode_direct=$hardcode_direct_CXX
18168
18169# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18170# DIR into the resulting binary and the resulting library dependency is
18171# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18172# library is relocated.
18173hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18174
18175# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18176# into the resulting binary.
18177hardcode_minus_L=$hardcode_minus_L_CXX
18178
18179# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18180# into the resulting binary.
18181hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18182
18183# Set to "yes" if building a shared library automatically hardcodes DIR
18184# into the library and all subsequent libraries and executables linked
18185# against it.
18186hardcode_automatic=$hardcode_automatic_CXX
18187
18188# Set to yes if linker adds runtime paths of dependent libraries
18189# to runtime path list.
18190inherit_rpath=$inherit_rpath_CXX
18191
18192# Whether libtool must link a program against all its dependency libraries.
18193link_all_deplibs=$link_all_deplibs_CXX
18194
18195# Fix the shell variable \$srcfile for the compiler.
18196fix_srcfile_path=$lt_fix_srcfile_path_CXX
18197
18198# Set to "yes" if exported symbols are required.
18199always_export_symbols=$always_export_symbols_CXX
18200
18201# The commands to list exported symbols.
18202export_symbols_cmds=$lt_export_symbols_cmds_CXX
18203
18204# Symbols that should not be listed in the preloaded symbols.
18205exclude_expsyms=$lt_exclude_expsyms_CXX
18206
18207# Symbols that must always be exported.
18208include_expsyms=$lt_include_expsyms_CXX
18209
18210# Commands necessary for linking programs (against libraries) with templates.
18211prelink_cmds=$lt_prelink_cmds_CXX
18212
18213# Specify filename containing input files.
18214file_list_spec=$lt_file_list_spec_CXX
18215
18216# How to hardcode a shared library path into an executable.
18217hardcode_action=$hardcode_action_CXX
18218
18219# The directories searched by this compiler when creating a shared library.
18220compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18221
18222# Dependencies to place before and after the objects being linked to
18223# create a shared library.
18224predep_objects=$lt_predep_objects_CXX
18225postdep_objects=$lt_postdep_objects_CXX
18226predeps=$lt_predeps_CXX
18227postdeps=$lt_postdeps_CXX
18228
18229# The library search path used internally by the compiler when linking
18230# a shared library.
18231compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18232
18233# ### END LIBTOOL TAG CONFIG: CXX
18234_LT_EOF
18235
18236 ;;
18237
18238 esac
18239done # for ac_tag
18240
18241
18242{ (exit 0); exit 0; }
18243_ACEOF
18244chmod +x $CONFIG_STATUS
18245ac_clean_files=$ac_clean_files_save
18246
18247
18248# configure is writing to config.log, and then calls config.status.
18249# config.status does its own redirection, appending to config.log.
18250# Unfortunately, on DOS this fails, as config.log is still kept open
18251# by configure, so config.status won't be able to write to it; its
18252# output is simply discarded. So we exec the FD to /dev/null,
18253# effectively closing config.log, so it can be properly (re)opened and
18254# appended to by config.status. When coming back to configure, we
18255# need to make the FD available again.
18256if test "$no_create" != yes; then
18257 ac_cs_success=:
18258 ac_config_status_args=
18259 test "$silent" = yes &&
18260 ac_config_status_args="$ac_config_status_args --quiet"
18261 exec 5>/dev/null
18262 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18263 exec 5>>config.log
18264 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18265 # would make configure fail if this is the last instruction.
18266 $ac_cs_success || { (exit 1); exit 1; }
18267fi
18268