Added cscope_db
[vimicxx.git] / configure
blobf11bbfc78add8aadccdc9a32c04a0c1424b337b3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for vimicxx 0.1.
5 # Report bugs to <ahmed.badran@gmail.com>.
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 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # 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
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if 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=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
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.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
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.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if 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; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for 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
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
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
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
234 done
235 IFS=$as_save_IFS
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
242 if 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
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if 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
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
335 _ASEOF
336 }; then
337 break
342 done
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+"$@"}
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; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$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
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" || {
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 '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
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; }; }
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
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `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;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if 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'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
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
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
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
593 if test -z "$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 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='vimicxx'
730 PACKAGE_TARNAME='vimicxx'
731 PACKAGE_VERSION='0.1'
732 PACKAGE_STRING='vimicxx 0.1'
733 PACKAGE_BUGREPORT='ahmed.badran@gmail.com'
735 ac_unique_file="src/generic_exception.h"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
832 CXXFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CXX
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CXXDEPMODE
845 am__fastdepCXX_TRUE
846 am__fastdepCXX_FALSE
848 CFLAGS
849 ac_ct_CC
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 build
854 build_cpu
855 build_vendor
856 build_os
857 host
858 host_cpu
859 host_vendor
860 host_os
862 GREP
863 EGREP
864 LN_S
865 ECHO
867 RANLIB
869 CXXCPP
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 LIBOBJS
875 subdirs
876 LTLIBOBJS'
877 ac_subst_files=''
878 ac_precious_vars='build_alias
879 host_alias
880 target_alias
882 CXXFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
888 CFLAGS
890 CXXCPP
892 FFLAGS'
893 ac_subdirs_all='libconfigfile-1.0'
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
900 cache_file=/dev/null
901 exec_prefix=NONE
902 no_create=
903 no_recursion=
904 prefix=NONE
905 program_prefix=NONE
906 program_suffix=NONE
907 program_transform_name=s,x,x,
908 silent=
909 site=
910 srcdir=
911 verbose=
912 x_includes=NONE
913 x_libraries=NONE
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932 infodir='${datarootdir}/info'
933 htmldir='${docdir}'
934 dvidir='${docdir}'
935 pdfdir='${docdir}'
936 psdir='${docdir}'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
941 ac_prev=
942 ac_dashdash=
943 for ac_option
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
948 ac_prev=
949 continue
952 case $ac_option in
953 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 *) ac_optarg=yes ;;
955 esac
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
961 ac_dashdash=yes ;;
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
980 --config-cache | -C)
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002 eval enable_$ac_feature=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1005 ac_prev=docdir ;;
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 ac_prev=dvidir ;;
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=\$ac_optarg ;;
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1101 no_create=yes ;;
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1211 -with-* | --with-*)
1212 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218 eval with_$ac_package=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=no ;;
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) { echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269 esac
1270 done
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 { echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1278 # Be sure to have absolute directory names.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val=\$$ac_var
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290 { (exit 1); exit 1; }; }
1291 done
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 { echo "$as_me: error: Working directory cannot be determined" >&2
1321 { (exit 1); exit 1; }; }
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 { echo "$as_me: error: pwd does not report name of working directory" >&2
1324 { (exit 1); exit 1; }; }
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$0" ||
1332 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$0" : 'X\(//\)[^/]' \| \
1334 X"$0" : 'X\(//\)$' \| \
1335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336 echo X"$0" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1345 /^X\(\/\/\)$/{
1346 s//\1/
1349 /^X\(\/\).*/{
1350 s//\1/
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1358 else
1359 ac_srcdir_defaulted=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364 { (exit 1); exit 1; }; }
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369 { (exit 1); exit 1; }; }
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures vimicxx 0.1 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/vimicxx]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 _ACEOF
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of vimicxx 0.1:";;
1466 esac
1467 cat <<\_ACEOF
1469 Optional Features:
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --disable-dependency-tracking speeds up one-time build
1473 --enable-dependency-tracking do not reject slow dependency extractors
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-tags[=TAGS] include additional configurations [automatic]
1488 Some influential environment variables:
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1500 F77 Fortran 77 compiler command
1501 FFLAGS Fortran 77 compiler flags
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1506 Report bugs to <ahmed.badran@gmail.com>.
1507 _ACEOF
1508 ac_status=$?
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" || continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 vimicxx configure 0.1
1568 generated by GNU Autoconf 2.61
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1577 cat >config.log <<_ACEOF
1578 This file contains any messages produced by compilers while
1579 running configure, to aid debugging if configure makes a mistake.
1581 It was created by vimicxx $as_me 0.1, which was
1582 generated by GNU Autoconf 2.61. Invocation command line was
1584 $ $0 $@
1586 _ACEOF
1587 exec 5>>config.log
1589 cat <<_ASUNAME
1590 ## --------- ##
1591 ## Platform. ##
1592 ## --------- ##
1594 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1604 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1605 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1607 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1608 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1609 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611 _ASUNAME
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 echo "PATH: $as_dir"
1619 done
1620 IFS=$as_save_IFS
1622 } >&5
1624 cat >&5 <<_ACEOF
1627 ## ----------- ##
1628 ## Core tests. ##
1629 ## ----------- ##
1631 _ACEOF
1634 # Keep a trace of the command line.
1635 # Strip out --no-create and --no-recursion so they do not pile up.
1636 # Strip out --silent because we don't want to record it for future runs.
1637 # Also quote any args containing shell meta-characters.
1638 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_configure_args=
1640 ac_configure_args0=
1641 ac_configure_args1=
1642 ac_must_keep_next=false
1643 for ac_pass in 1 2
1645 for ac_arg
1647 case $ac_arg in
1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650 | -silent | --silent | --silen | --sile | --sil)
1651 continue ;;
1652 *\'*)
1653 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654 esac
1655 case $ac_pass in
1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659 if test $ac_must_keep_next = true; then
1660 ac_must_keep_next=false # Got value, back to normal.
1661 else
1662 case $ac_arg in
1663 *=* | --config-cache | -C | -disable-* | --disable-* \
1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666 | -with-* | --with-* | -without-* | --without-* | --x)
1667 case "$ac_configure_args0 " in
1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 esac
1671 -* ) ac_must_keep_next=true ;;
1672 esac
1674 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 esac
1677 done
1678 done
1679 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682 # When interrupted or exit'd, cleanup temporary files, and complete
1683 # config.log. We remove comments because anyway the quotes in there
1684 # would cause problems or look ugly.
1685 # WARNING: Use '\'' to represent an apostrophe within the trap.
1686 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687 trap 'exit_status=$?
1688 # Save into config.log some information that might help in debugging.
1690 echo
1692 cat <<\_ASBOX
1693 ## ---------------- ##
1694 ## Cache variables. ##
1695 ## ---------------- ##
1696 _ASBOX
1697 echo
1698 # The following way of writing the cache mishandles newlines in values,
1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701 eval ac_val=\$$ac_var
1702 case $ac_val in #(
1703 *${as_nl}*)
1704 case $ac_var in #(
1705 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 esac
1708 case $ac_var in #(
1709 _ | IFS | as_nl) ;; #(
1710 *) $as_unset $ac_var ;;
1711 esac ;;
1712 esac
1713 done
1714 (set) 2>&1 |
1715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1716 *${as_nl}ac_space=\ *)
1717 sed -n \
1718 "s/'\''/'\''\\\\'\'''\''/g;
1719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720 ;; #(
1722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724 esac |
1725 sort
1727 echo
1729 cat <<\_ASBOX
1730 ## ----------------- ##
1731 ## Output variables. ##
1732 ## ----------------- ##
1733 _ASBOX
1734 echo
1735 for ac_var in $ac_subst_vars
1737 eval ac_val=\$$ac_var
1738 case $ac_val in
1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 esac
1741 echo "$ac_var='\''$ac_val'\''"
1742 done | sort
1743 echo
1745 if test -n "$ac_subst_files"; then
1746 cat <<\_ASBOX
1747 ## ------------------- ##
1748 ## File substitutions. ##
1749 ## ------------------- ##
1750 _ASBOX
1751 echo
1752 for ac_var in $ac_subst_files
1754 eval ac_val=\$$ac_var
1755 case $ac_val in
1756 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 esac
1758 echo "$ac_var='\''$ac_val'\''"
1759 done | sort
1760 echo
1763 if test -s confdefs.h; then
1764 cat <<\_ASBOX
1765 ## ----------- ##
1766 ## confdefs.h. ##
1767 ## ----------- ##
1768 _ASBOX
1769 echo
1770 cat confdefs.h
1771 echo
1773 test "$ac_signal" != 0 &&
1774 echo "$as_me: caught signal $ac_signal"
1775 echo "$as_me: exit $exit_status"
1776 } >&5
1777 rm -f core *.core core.conftest.* &&
1778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779 exit $exit_status
1781 for ac_signal in 1 2 13 15; do
1782 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 done
1784 ac_signal=0
1786 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1787 rm -f -r conftest* confdefs.h
1789 # Predefined preprocessor variables.
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 _ACEOF
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 _ACEOF
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 _ACEOF
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 _ACEOF
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 _ACEOF
1816 # Let the site file select an alternate cache file if it wants to.
1817 # Prefer explicitly selected file to automatically selected ones.
1818 if test -n "$CONFIG_SITE"; then
1819 set x "$CONFIG_SITE"
1820 elif test "x$prefix" != xNONE; then
1821 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 else
1823 set x "$ac_default_prefix/share/config.site" \
1824 "$ac_default_prefix/etc/config.site"
1826 shift
1827 for ac_site_file
1829 if test -r "$ac_site_file"; then
1830 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1831 echo "$as_me: loading site script $ac_site_file" >&6;}
1832 sed 's/^/| /' "$ac_site_file" >&5
1833 . "$ac_site_file"
1835 done
1837 if test -r "$cache_file"; then
1838 # Some versions of bash will fail to source /dev/null (special
1839 # files actually), so we avoid doing that.
1840 if test -f "$cache_file"; then
1841 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1842 echo "$as_me: loading cache $cache_file" >&6;}
1843 case $cache_file in
1844 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1845 *) . "./$cache_file";;
1846 esac
1848 else
1849 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1850 echo "$as_me: creating cache $cache_file" >&6;}
1851 >$cache_file
1854 # Check that the precious variables saved in the cache have kept the same
1855 # value.
1856 ac_cache_corrupted=false
1857 for ac_var in $ac_precious_vars; do
1858 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1859 eval ac_new_set=\$ac_env_${ac_var}_set
1860 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1861 eval ac_new_val=\$ac_env_${ac_var}_value
1862 case $ac_old_set,$ac_new_set in
1863 set,)
1864 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1865 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1866 ac_cache_corrupted=: ;;
1867 ,set)
1868 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1871 ,);;
1873 if test "x$ac_old_val" != "x$ac_new_val"; then
1874 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1875 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1876 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1877 echo "$as_me: former value: $ac_old_val" >&2;}
1878 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1879 echo "$as_me: current value: $ac_new_val" >&2;}
1880 ac_cache_corrupted=:
1881 fi;;
1882 esac
1883 # Pass precious variables to config.status.
1884 if test "$ac_new_set" = set; then
1885 case $ac_new_val in
1886 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1887 *) ac_arg=$ac_var=$ac_new_val ;;
1888 esac
1889 case " $ac_configure_args " in
1890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1891 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 esac
1894 done
1895 if $ac_cache_corrupted; then
1896 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1897 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1898 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1899 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1900 { (exit 1); exit 1; }; }
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 am__api_version='1.10'
1936 ac_aux_dir=
1937 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1938 if test -f "$ac_dir/install-sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1941 break
1942 elif test -f "$ac_dir/install.sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 break
1946 elif test -f "$ac_dir/shtool"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 break
1951 done
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1967 # Find a good install program. We prefer a C program (faster),
1968 # so one script is as good as another. But avoid the broken or
1969 # incompatible versions:
1970 # SysV /etc/install, /usr/sbin/install
1971 # SunOS /usr/etc/install
1972 # IRIX /sbin/install
1973 # AIX /bin/install
1974 # AmigaOS /C/install, which installs bootblocks on floppy discs
1975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1978 # OS/2's system install, which has a completely different semantic
1979 # ./install, which can be erroneously created by make from ./install.sh.
1980 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1981 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1982 if test -z "$INSTALL"; then
1983 if test "${ac_cv_path_install+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 # Account for people who put trailing slashes in PATH elements.
1992 case $as_dir/ in
1993 ./ | .// | /cC/* | \
1994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1995 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1996 /usr/ucb/* ) ;;
1998 # OSF1 and SCO ODT 3.0 have their own names for install.
1999 # Don't use installbsd from OSF since it installs stuff as root
2000 # by default.
2001 for ac_prog in ginstall scoinst install; do
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2004 if test $ac_prog = install &&
2005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006 # AIX install. It has an incompatible calling convention.
2008 elif test $ac_prog = install &&
2009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010 # program-specific install script used by HP pwplus--don't use.
2012 else
2013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2014 break 3
2017 done
2018 done
2020 esac
2021 done
2022 IFS=$as_save_IFS
2026 if test "${ac_cv_path_install+set}" = set; then
2027 INSTALL=$ac_cv_path_install
2028 else
2029 # As a last resort, use the slow shell script. Don't cache a
2030 # value for INSTALL within a source directory, because that will
2031 # break other packages using the cache if that directory is
2032 # removed, or if the value is a relative name.
2033 INSTALL=$ac_install_sh
2036 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2037 echo "${ECHO_T}$INSTALL" >&6; }
2039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2040 # It thinks the first close brace ends the variable substitution.
2041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2047 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2048 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2049 # Just in case
2050 sleep 1
2051 echo timestamp > conftest.file
2052 # Do `set' in a subshell so we don't clobber the current shell's
2053 # arguments. Must try -L first in case configure is actually a
2054 # symlink; some systems play weird games with the mod time of symlinks
2055 # (eg FreeBSD returns the mod time of the symlink's containing
2056 # directory).
2057 if (
2058 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2059 if test "$*" = "X"; then
2060 # -L didn't work.
2061 set X `ls -t $srcdir/configure conftest.file`
2063 rm -f conftest.file
2064 if test "$*" != "X $srcdir/configure conftest.file" \
2065 && test "$*" != "X conftest.file $srcdir/configure"; then
2067 # If neither matched, then we have a broken ls. This can happen
2068 # if, for instance, CONFIG_SHELL is bash and it inherits a
2069 # broken ls alias from the environment. This has actually
2070 # happened. Such a system could not be considered "sane".
2071 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2072 alias in your environment" >&5
2073 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2074 alias in your environment" >&2;}
2075 { (exit 1); exit 1; }; }
2078 test "$2" = conftest.file
2080 then
2081 # Ok.
2083 else
2084 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2085 Check your system clock" >&5
2086 echo "$as_me: error: newly created file is older than distributed files!
2087 Check your system clock" >&2;}
2088 { (exit 1); exit 1; }; }
2090 { echo "$as_me:$LINENO: result: yes" >&5
2091 echo "${ECHO_T}yes" >&6; }
2092 test "$program_prefix" != NONE &&
2093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2094 # Use a double $ so make ignores it.
2095 test "$program_suffix" != NONE &&
2096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2097 # Double any \ or $. echo might interpret backslashes.
2098 # By default was `s,x,x', remove it if useless.
2099 cat <<\_ACEOF >conftest.sed
2100 s/[\\$]/&&/g;s/;s,x,x,$//
2101 _ACEOF
2102 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2103 rm -f conftest.sed
2105 # expand $ac_aux_dir to an absolute path
2106 am_aux_dir=`cd $ac_aux_dir && pwd`
2108 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2109 # Use eval to expand $SHELL
2110 if eval "$MISSING --run true"; then
2111 am_missing_run="$MISSING --run "
2112 else
2113 am_missing_run=
2114 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2115 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2118 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2119 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2120 if test -z "$MKDIR_P"; then
2121 if test "${ac_cv_path_mkdir+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_prog in mkdir gmkdir; do
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2132 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2133 'mkdir (GNU coreutils) '* | \
2134 'mkdir (coreutils) '* | \
2135 'mkdir (fileutils) '4.1*)
2136 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2137 break 3;;
2138 esac
2139 done
2140 done
2141 done
2142 IFS=$as_save_IFS
2146 if test "${ac_cv_path_mkdir+set}" = set; then
2147 MKDIR_P="$ac_cv_path_mkdir -p"
2148 else
2149 # As a last resort, use the slow shell script. Don't cache a
2150 # value for MKDIR_P within a source directory, because that will
2151 # break other packages using the cache if that directory is
2152 # removed, or if the value is a relative name.
2153 test -d ./--version && rmdir ./--version
2154 MKDIR_P="$ac_install_sh -d"
2157 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2158 echo "${ECHO_T}$MKDIR_P" >&6; }
2160 mkdir_p="$MKDIR_P"
2161 case $mkdir_p in
2162 [\\/$]* | ?:[\\/]*) ;;
2163 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2164 esac
2166 for ac_prog in gawk mawk nawk awk
2168 # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_AWK+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175 if test -n "$AWK"; then
2176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 ac_cv_prog_AWK="$ac_prog"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2189 done
2190 done
2191 IFS=$as_save_IFS
2195 AWK=$ac_cv_prog_AWK
2196 if test -n "$AWK"; then
2197 { echo "$as_me:$LINENO: result: $AWK" >&5
2198 echo "${ECHO_T}$AWK" >&6; }
2199 else
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2205 test -n "$AWK" && break
2206 done
2208 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2209 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2210 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 cat >conftest.make <<\_ACEOF
2215 SHELL = /bin/sh
2216 all:
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2218 _ACEOF
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2221 *@@@%%%=?*=@@@%%%*)
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2225 esac
2226 rm -f conftest.make
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2231 SET_MAKE=
2232 else
2233 { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2241 am__leading_dot=.
2242 else
2243 am__leading_dot=_
2245 rmdir .tst 2>/dev/null
2247 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2248 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2249 # is not polluted with repeated "-I."
2250 am__isrc=' -I$(srcdir)'
2251 # test to see if srcdir already configured
2252 if test -f $srcdir/config.status; then
2253 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2254 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2255 { (exit 1); exit 1; }; }
2259 # test whether we have cygpath
2260 if test -z "$CYGPATH_W"; then
2261 if (cygpath --version) >/dev/null 2>/dev/null; then
2262 CYGPATH_W='cygpath -w'
2263 else
2264 CYGPATH_W=echo
2269 # Define the identity of the package.
2270 PACKAGE=vimicxx
2271 VERSION=0.1
2274 # Some tools Automake needs.
2276 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2279 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2282 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2285 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2288 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2290 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2292 # Installed binaries are usually stripped using `strip' when the user
2293 # run `make install-strip'. However `strip' might not be the right
2294 # tool to use in cross-compilation environments, therefore Automake
2295 # will honor the `STRIP' environment variable to overrule this program.
2296 if test "$cross_compiling" != no; then
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}strip; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_STRIP+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305 if test -n "$STRIP"; then
2306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2319 done
2320 done
2321 IFS=$as_save_IFS
2325 STRIP=$ac_cv_prog_STRIP
2326 if test -n "$STRIP"; then
2327 { echo "$as_me:$LINENO: result: $STRIP" >&5
2328 echo "${ECHO_T}$STRIP" >&6; }
2329 else
2330 { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2336 if test -z "$ac_cv_prog_STRIP"; then
2337 ac_ct_STRIP=$STRIP
2338 # Extract the first word of "strip", so it can be a program name with args.
2339 set dummy strip; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 if test -n "$ac_ct_STRIP"; then
2346 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_ac_ct_STRIP="strip"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2359 done
2360 done
2361 IFS=$as_save_IFS
2365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2366 if test -n "$ac_ct_STRIP"; then
2367 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2368 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2369 else
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2374 if test "x$ac_ct_STRIP" = x; then
2375 STRIP=":"
2376 else
2377 case $cross_compiling:$ac_tool_warned in
2378 yes:)
2379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2380 whose name does not start with the host triplet. If you think this
2381 configuration is useful to you, please write to autoconf@gnu.org." >&5
2382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2385 ac_tool_warned=yes ;;
2386 esac
2387 STRIP=$ac_ct_STRIP
2389 else
2390 STRIP="$ac_cv_prog_STRIP"
2394 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2396 # We need awk for the "check" target. The system "awk" is bad on
2397 # some platforms.
2398 # Always define AMTAR for backward compatibility.
2400 AMTAR=${AMTAR-"${am_missing_run}tar"}
2402 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2409 ac_config_headers="$ac_config_headers config.h"
2412 # Checks for programs.
2413 ac_ext=cpp
2414 ac_cpp='$CXXCPP $CPPFLAGS'
2415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2418 if test -z "$CXX"; then
2419 if test -n "$CCC"; then
2420 CXX=$CCC
2421 else
2422 if test -n "$ac_tool_prefix"; then
2423 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_CXX+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 if test -n "$CXX"; then
2433 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2446 done
2447 done
2448 IFS=$as_save_IFS
2452 CXX=$ac_cv_prog_CXX
2453 if test -n "$CXX"; then
2454 { echo "$as_me:$LINENO: result: $CXX" >&5
2455 echo "${ECHO_T}$CXX" >&6; }
2456 else
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2462 test -n "$CXX" && break
2463 done
2465 if test -z "$CXX"; then
2466 ac_ct_CXX=$CXX
2467 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2470 set dummy $ac_prog; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476 if test -n "$ac_ct_CXX"; then
2477 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_ac_ct_CXX="$ac_prog"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2490 done
2491 done
2492 IFS=$as_save_IFS
2496 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2497 if test -n "$ac_ct_CXX"; then
2498 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2499 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2500 else
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2506 test -n "$ac_ct_CXX" && break
2507 done
2509 if test "x$ac_ct_CXX" = x; then
2510 CXX="g++"
2511 else
2512 case $cross_compiling:$ac_tool_warned in
2513 yes:)
2514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to autoconf@gnu.org." >&5
2517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2520 ac_tool_warned=yes ;;
2521 esac
2522 CXX=$ac_ct_CXX
2528 # Provide some information about the compiler.
2529 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (ac_try="$ac_compiler --version >&5"
2532 case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compiler --version >&5") 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (ac_try="$ac_compiler -v >&5"
2542 case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compiler -v >&5") 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2551 { (ac_try="$ac_compiler -V >&5"
2552 case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_compiler -V >&5") 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2570 main ()
2574 return 0;
2576 _ACEOF
2577 ac_clean_files_save=$ac_clean_files
2578 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2579 # Try to create an executable without -o first, disregard a.out.
2580 # It will help us diagnose broken compilers, and finding out an intuition
2581 # of exeext.
2582 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2583 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2584 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2586 # List of possible output files, starting from the most likely.
2587 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2588 # only as a last resort. b.out is created by i960 compilers.
2589 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2591 # The IRIX 6 linker writes into existing files which may not be
2592 # executable, retaining their permissions. Remove them first so a
2593 # subsequent execution test works.
2594 ac_rmfiles=
2595 for ac_file in $ac_files
2597 case $ac_file in
2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2599 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2600 esac
2601 done
2602 rm -f $ac_rmfiles
2604 if { (ac_try="$ac_link_default"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2610 (eval "$ac_link_default") 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; then
2614 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2615 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2616 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2617 # so that the user can short-circuit this test for compilers unknown to
2618 # Autoconf.
2619 for ac_file in $ac_files ''
2621 test -f "$ac_file" || continue
2622 case $ac_file in
2623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2625 [ab].out )
2626 # We found the default executable, but exeext='' is most
2627 # certainly right.
2628 break;;
2629 *.* )
2630 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2631 then :; else
2632 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634 # We set ac_cv_exeext here because the later test for it is not
2635 # safe: cross compilers may not add the suffix if given an `-o'
2636 # argument, so we may need to know it at that point already.
2637 # Even if this section looks crufty: it has the advantage of
2638 # actually working.
2639 break;;
2641 break;;
2642 esac
2643 done
2644 test "$ac_cv_exeext" = no && ac_cv_exeext=
2646 else
2647 ac_file=''
2650 { echo "$as_me:$LINENO: result: $ac_file" >&5
2651 echo "${ECHO_T}$ac_file" >&6; }
2652 if test -z "$ac_file"; then
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2656 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: C++ compiler cannot create executables
2659 See \`config.log' for more details." >&2;}
2660 { (exit 77); exit 77; }; }
2663 ac_exeext=$ac_cv_exeext
2665 # Check that the compiler produces executables we can run. If not, either
2666 # the compiler is broken, or we cross compile.
2667 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2668 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2669 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2670 # If not cross compiling, check that we can run a simple program.
2671 if test "$cross_compiling" != yes; then
2672 if { ac_try='./$ac_file'
2673 { (case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676 esac
2677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_try") 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 cross_compiling=no
2683 else
2684 if test "$cross_compiling" = maybe; then
2685 cross_compiling=yes
2686 else
2687 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details." >&5
2690 echo "$as_me: error: cannot run C++ compiled programs.
2691 If you meant to cross compile, use \`--host'.
2692 See \`config.log' for more details." >&2;}
2693 { (exit 1); exit 1; }; }
2697 { echo "$as_me:$LINENO: result: yes" >&5
2698 echo "${ECHO_T}yes" >&6; }
2700 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2701 ac_clean_files=$ac_clean_files_save
2702 # Check that the compiler produces executables we can run. If not, either
2703 # the compiler is broken, or we cross compile.
2704 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2705 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2706 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2707 echo "${ECHO_T}$cross_compiling" >&6; }
2709 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2710 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2711 if { (ac_try="$ac_link"
2712 case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_link") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; then
2721 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2722 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2723 # work properly (i.e., refer to `conftest.exe'), while it won't with
2724 # `rm'.
2725 for ac_file in conftest.exe conftest conftest.*; do
2726 test -f "$ac_file" || continue
2727 case $ac_file in
2728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2729 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2730 break;;
2731 * ) break;;
2732 esac
2733 done
2734 else
2735 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2738 See \`config.log' for more details." >&2;}
2739 { (exit 1); exit 1; }; }
2742 rm -f conftest$ac_cv_exeext
2743 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2744 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2746 rm -f conftest.$ac_ext
2747 EXEEXT=$ac_cv_exeext
2748 ac_exeext=$EXEEXT
2749 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2750 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2751 if test "${ac_cv_objext+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2762 main ()
2766 return 0;
2768 _ACEOF
2769 rm -f conftest.o conftest.obj
2770 if { (ac_try="$ac_compile"
2771 case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compile") 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; then
2780 for ac_file in conftest.o conftest.obj conftest.*; do
2781 test -f "$ac_file" || continue;
2782 case $ac_file in
2783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2785 break;;
2786 esac
2787 done
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2792 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2793 See \`config.log' for more details." >&5
2794 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2795 See \`config.log' for more details." >&2;}
2796 { (exit 1); exit 1; }; }
2799 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2801 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2802 echo "${ECHO_T}$ac_cv_objext" >&6; }
2803 OBJEXT=$ac_cv_objext
2804 ac_objext=$OBJEXT
2805 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2806 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2807 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2818 main ()
2820 #ifndef __GNUC__
2821 choke me
2822 #endif
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (ac_try="$ac_compile"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compile") 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_cxx_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
2845 ac_compiler_gnu=yes
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 ac_compiler_gnu=no
2853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2857 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2858 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2859 GXX=`test $ac_compiler_gnu = yes && echo yes`
2860 ac_test_CXXFLAGS=${CXXFLAGS+set}
2861 ac_save_CXXFLAGS=$CXXFLAGS
2862 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2863 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_cxx_g+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2868 ac_cxx_werror_flag=yes
2869 ac_cv_prog_cxx_g=no
2870 CXXFLAGS="-g"
2871 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h. */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2879 main ()
2883 return 0;
2885 _ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (ac_try="$ac_compile"
2888 case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891 esac
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_cxx_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_cv_prog_cxx_g=yes
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 CXXFLAGS=""
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2917 main ()
2921 return 0;
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (ac_try="$ac_compile"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compile") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } && {
2938 test -z "$ac_cxx_werror_flag" ||
2939 test ! -s conftest.err
2940 } && test -s conftest.$ac_objext; then
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2947 CXXFLAGS="-g"
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2956 main ()
2960 return 0;
2962 _ACEOF
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } && {
2977 test -z "$ac_cxx_werror_flag" ||
2978 test ! -s conftest.err
2979 } && test -s conftest.$ac_objext; then
2980 ac_cv_prog_cxx_g=yes
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2997 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2998 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2999 if test "$ac_test_CXXFLAGS" = set; then
3000 CXXFLAGS=$ac_save_CXXFLAGS
3001 elif test $ac_cv_prog_cxx_g = yes; then
3002 if test "$GXX" = yes; then
3003 CXXFLAGS="-g -O2"
3004 else
3005 CXXFLAGS="-g"
3007 else
3008 if test "$GXX" = yes; then
3009 CXXFLAGS="-O2"
3010 else
3011 CXXFLAGS=
3014 ac_ext=c
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 DEPDIR="${am__leading_dot}deps"
3021 ac_config_commands="$ac_config_commands depfiles"
3024 am_make=${MAKE-make}
3025 cat > confinc << 'END'
3026 am__doit:
3027 @echo done
3028 .PHONY: am__doit
3030 # If we don't find an include directive, just comment out the code.
3031 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3032 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3033 am__include="#"
3034 am__quote=
3035 _am_result=none
3036 # First try GNU make style include.
3037 echo "include confinc" > confmf
3038 # We grep out `Entering directory' and `Leaving directory'
3039 # messages which can occur if `w' ends up in MAKEFLAGS.
3040 # In particular we don't look at `^make:' because GNU make might
3041 # be invoked under some other name (usually "gmake"), in which
3042 # case it prints its new name instead of `make'.
3043 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3044 am__include=include
3045 am__quote=
3046 _am_result=GNU
3048 # Now try BSD make style include.
3049 if test "$am__include" = "#"; then
3050 echo '.include "confinc"' > confmf
3051 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3052 am__include=.include
3053 am__quote="\""
3054 _am_result=BSD
3059 { echo "$as_me:$LINENO: result: $_am_result" >&5
3060 echo "${ECHO_T}$_am_result" >&6; }
3061 rm -f confinc confmf
3063 # Check whether --enable-dependency-tracking was given.
3064 if test "${enable_dependency_tracking+set}" = set; then
3065 enableval=$enable_dependency_tracking;
3068 if test "x$enable_dependency_tracking" != xno; then
3069 am_depcomp="$ac_aux_dir/depcomp"
3070 AMDEPBACKSLASH='\'
3072 if test "x$enable_dependency_tracking" != xno; then
3073 AMDEP_TRUE=
3074 AMDEP_FALSE='#'
3075 else
3076 AMDEP_TRUE='#'
3077 AMDEP_FALSE=
3082 depcc="$CXX" am_compiler_list=
3084 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3085 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3086 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3090 # We make a subdir and do the tests there. Otherwise we can end up
3091 # making bogus files that we don't know about and never remove. For
3092 # instance it was reported that on HP-UX the gcc test will end up
3093 # making a dummy file named `D' -- because `-MD' means `put the output
3094 # in D'.
3095 mkdir conftest.dir
3096 # Copy depcomp to subdir because otherwise we won't find it if we're
3097 # using a relative directory.
3098 cp "$am_depcomp" conftest.dir
3099 cd conftest.dir
3100 # We will build objects and dependencies in a subdirectory because
3101 # it helps to detect inapplicable dependency modes. For instance
3102 # both Tru64's cc and ICC support -MD to output dependencies as a
3103 # side effect of compilation, but ICC will put the dependencies in
3104 # the current directory while Tru64 will put them in the object
3105 # directory.
3106 mkdir sub
3108 am_cv_CXX_dependencies_compiler_type=none
3109 if test "$am_compiler_list" = ""; then
3110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3112 for depmode in $am_compiler_list; do
3113 # Setup a source with many dependencies, because some compilers
3114 # like to wrap large dependency lists on column 80 (with \), and
3115 # we should not choose a depcomp mode which is confused by this.
3117 # We need to recreate these files for each test, as the compiler may
3118 # overwrite some of them when testing with obscure command lines.
3119 # This happens at least with the AIX C compiler.
3120 : > sub/conftest.c
3121 for i in 1 2 3 4 5 6; do
3122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3123 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3124 # Solaris 8's {/usr,}/bin/sh.
3125 touch sub/conftst$i.h
3126 done
3127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3129 case $depmode in
3130 nosideeffect)
3131 # after this tag, mechanisms are not by side-effect, so they'll
3132 # only be used when explicitly requested
3133 if test "x$enable_dependency_tracking" = xyes; then
3134 continue
3135 else
3136 break
3139 none) break ;;
3140 esac
3141 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3142 # mode. It turns out that the SunPro C++ compiler does not properly
3143 # handle `-M -o', and we need to detect this.
3144 if depmode=$depmode \
3145 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3146 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3147 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3148 >/dev/null 2>conftest.err &&
3149 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3150 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3151 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3152 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3153 # icc doesn't choke on unknown options, it will just issue warnings
3154 # or remarks (even with -Werror). So we grep stderr for any message
3155 # that says an option was ignored or not supported.
3156 # When given -MP, icc 7.0 and 7.1 complain thusly:
3157 # icc: Command line warning: ignoring option '-M'; no argument required
3158 # The diagnosis changed in icc 8.0:
3159 # icc: Command line remark: option '-MP' not supported
3160 if (grep 'ignoring option' conftest.err ||
3161 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3162 am_cv_CXX_dependencies_compiler_type=$depmode
3163 break
3166 done
3168 cd ..
3169 rm -rf conftest.dir
3170 else
3171 am_cv_CXX_dependencies_compiler_type=none
3175 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3176 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3177 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3180 test "x$enable_dependency_tracking" != xno \
3181 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3182 am__fastdepCXX_TRUE=
3183 am__fastdepCXX_FALSE='#'
3184 else
3185 am__fastdepCXX_TRUE='#'
3186 am__fastdepCXX_FALSE=
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3219 IFS=$as_save_IFS
3223 CC=$ac_cv_prog_CC
3224 if test -n "$CC"; then
3225 { echo "$as_me:$LINENO: result: $CC" >&5
3226 echo "${ECHO_T}$CC" >&6; }
3227 else
3228 { echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6; }
3234 if test -z "$ac_cv_prog_CC"; then
3235 ac_ct_CC=$CC
3236 # Extract the first word of "gcc", so it can be a program name with args.
3237 set dummy gcc; ac_word=$2
3238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_ac_ct_CC="gcc"
3254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3257 done
3258 done
3259 IFS=$as_save_IFS
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3266 echo "${ECHO_T}$ac_ct_CC" >&6; }
3267 else
3268 { echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6; }
3272 if test "x$ac_ct_CC" = x; then
3273 CC=""
3274 else
3275 case $cross_compiling:$ac_tool_warned in
3276 yes:)
3277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3278 whose name does not start with the host triplet. If you think this
3279 configuration is useful to you, please write to autoconf@gnu.org." >&5
3280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3281 whose name does not start with the host triplet. If you think this
3282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3283 ac_tool_warned=yes ;;
3284 esac
3285 CC=$ac_ct_CC
3287 else
3288 CC="$ac_cv_prog_CC"
3291 if test -z "$CC"; then
3292 if test -n "$ac_tool_prefix"; then
3293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}cc; ac_word=$2
3295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3297 if test "${ac_cv_prog_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 ac_cv_prog_CC="${ac_tool_prefix}cc"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3314 done
3315 done
3316 IFS=$as_save_IFS
3320 CC=$ac_cv_prog_CC
3321 if test -n "$CC"; then
3322 { echo "$as_me:$LINENO: result: $CC" >&5
3323 echo "${ECHO_T}$CC" >&6; }
3324 else
3325 { echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6; }
3332 if test -z "$CC"; then
3333 # Extract the first word of "cc", so it can be a program name with args.
3334 set dummy cc; ac_word=$2
3335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3337 if test "${ac_cv_prog_CC+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3342 else
3343 ac_prog_rejected=no
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3352 ac_prog_rejected=yes
3353 continue
3355 ac_cv_prog_CC="cc"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3359 done
3360 done
3361 IFS=$as_save_IFS
3363 if test $ac_prog_rejected = yes; then
3364 # We found a bogon in the path, so make sure we never use it.
3365 set dummy $ac_cv_prog_CC
3366 shift
3367 if test $# != 0; then
3368 # We chose a different compiler from the bogus one.
3369 # However, it has the same basename, so the bogon will be chosen
3370 # first if we set CC to just the basename; use the full file name.
3371 shift
3372 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { echo "$as_me:$LINENO: result: $CC" >&5
3380 echo "${ECHO_T}$CC" >&6; }
3381 else
3382 { echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6; }
3388 if test -z "$CC"; then
3389 if test -n "$ac_tool_prefix"; then
3390 for ac_prog in cl.exe
3392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3396 if test "${ac_cv_prog_CC+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3413 done
3414 done
3415 IFS=$as_save_IFS
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421 { echo "$as_me:$LINENO: result: $CC" >&5
3422 echo "${ECHO_T}$CC" >&6; }
3423 else
3424 { echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6; }
3429 test -n "$CC" && break
3430 done
3432 if test -z "$CC"; then
3433 ac_ct_CC=$CC
3434 for ac_prog in cl.exe
3436 # Extract the first word of "$ac_prog", so it can be a program name with args.
3437 set dummy $ac_prog; ac_word=$2
3438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -n "$ac_ct_CC"; then
3444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_ac_ct_CC="$ac_prog"
3454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3457 done
3458 done
3459 IFS=$as_save_IFS
3463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464 if test -n "$ac_ct_CC"; then
3465 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3466 echo "${ECHO_T}$ac_ct_CC" >&6; }
3467 else
3468 { echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6; }
3473 test -n "$ac_ct_CC" && break
3474 done
3476 if test "x$ac_ct_CC" = x; then
3477 CC=""
3478 else
3479 case $cross_compiling:$ac_tool_warned in
3480 yes:)
3481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3482 whose name does not start with the host triplet. If you think this
3483 configuration is useful to you, please write to autoconf@gnu.org." >&5
3484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3485 whose name does not start with the host triplet. If you think this
3486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3487 ac_tool_warned=yes ;;
3488 esac
3489 CC=$ac_ct_CC
3496 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3497 See \`config.log' for more details." >&5
3498 echo "$as_me: error: no acceptable C compiler found in \$PATH
3499 See \`config.log' for more details." >&2;}
3500 { (exit 1); exit 1; }; }
3502 # Provide some information about the compiler.
3503 echo "$as_me:$LINENO: checking for C compiler version" >&5
3504 ac_compiler=`set X $ac_compile; echo $2`
3505 { (ac_try="$ac_compiler --version >&5"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_compiler --version >&5") 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }
3515 { (ac_try="$ac_compiler -v >&5"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compiler -v >&5") 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }
3525 { (ac_try="$ac_compiler -V >&5"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_compiler -V >&5") 2>&5
3532 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }
3536 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3549 main ()
3551 #ifndef __GNUC__
3552 choke me
3553 #endif
3556 return 0;
3558 _ACEOF
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 ac_compiler_gnu=yes
3577 else
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 ac_compiler_gnu=no
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3589 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3590 GCC=`test $ac_compiler_gnu = yes && echo yes`
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3595 if test "${ac_cv_prog_cc_g+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 ac_save_c_werror_flag=$ac_c_werror_flag
3599 ac_c_werror_flag=yes
3600 ac_cv_prog_cc_g=no
3601 CFLAGS="-g"
3602 cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h. */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3610 main ()
3614 return 0;
3616 _ACEOF
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3619 case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_compile") 2>conftest.er1
3625 ac_status=$?
3626 grep -v '^ *+' conftest.er1 >conftest.err
3627 rm -f conftest.er1
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && {
3631 test -z "$ac_c_werror_flag" ||
3632 test ! -s conftest.err
3633 } && test -s conftest.$ac_objext; then
3634 ac_cv_prog_cc_g=yes
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 CFLAGS=""
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3648 main ()
3652 return 0;
3654 _ACEOF
3655 rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3657 case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_compile") 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } && {
3669 test -z "$ac_c_werror_flag" ||
3670 test ! -s conftest.err
3671 } && test -s conftest.$ac_objext; then
3673 else
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 ac_c_werror_flag=$ac_save_c_werror_flag
3678 CFLAGS="-g"
3679 cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h. */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */
3687 main ()
3691 return 0;
3693 _ACEOF
3694 rm -f conftest.$ac_objext
3695 if { (ac_try="$ac_compile"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3711 ac_cv_prog_cc_g=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3729 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3730 if test "$ac_test_CFLAGS" = set; then
3731 CFLAGS=$ac_save_CFLAGS
3732 elif test $ac_cv_prog_cc_g = yes; then
3733 if test "$GCC" = yes; then
3734 CFLAGS="-g -O2"
3735 else
3736 CFLAGS="-g"
3738 else
3739 if test "$GCC" = yes; then
3740 CFLAGS="-O2"
3741 else
3742 CFLAGS=
3745 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3746 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3747 if test "${ac_cv_prog_cc_c89+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 ac_cv_prog_cc_c89=no
3751 ac_save_CC=$CC
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #include <stdarg.h>
3759 #include <stdio.h>
3760 #include <sys/types.h>
3761 #include <sys/stat.h>
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3766 char **p;
3767 int i;
3769 return p[i];
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3773 char *s;
3774 va_list v;
3775 va_start (v,p);
3776 s = g (p, va_arg (v,int));
3777 va_end (v);
3778 return s;
3781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3782 function prototypes and stuff, but not '\xHH' hex character constants.
3783 These don't provoke an error unfortunately, instead are silently treated
3784 as 'x'. The following induces an error, until -std is added to get
3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3786 array size at least. It's necessary to write '\x00'==0 to get something
3787 that's true only with -std. */
3788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791 inside strings and character constants. */
3792 #define FOO(x) 'x'
3793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3795 int test (int i, double x);
3796 struct s1 {int (*f) (int a);};
3797 struct s2 {int (*f) (double a);};
3798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799 int argc;
3800 char **argv;
3802 main ()
3804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3806 return 0;
3808 _ACEOF
3809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3812 CC="$ac_save_CC $ac_arg"
3813 rm -f conftest.$ac_objext
3814 if { (ac_try="$ac_compile"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_prog_cc_c89=$ac_arg
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 done
3841 rm -f conftest.$ac_ext
3842 CC=$ac_save_CC
3845 # AC_CACHE_VAL
3846 case "x$ac_cv_prog_cc_c89" in
3848 { echo "$as_me:$LINENO: result: none needed" >&5
3849 echo "${ECHO_T}none needed" >&6; } ;;
3850 xno)
3851 { echo "$as_me:$LINENO: result: unsupported" >&5
3852 echo "${ECHO_T}unsupported" >&6; } ;;
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3857 esac
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 depcc="$CC" am_compiler_list=
3868 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3869 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3870 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3874 # We make a subdir and do the tests there. Otherwise we can end up
3875 # making bogus files that we don't know about and never remove. For
3876 # instance it was reported that on HP-UX the gcc test will end up
3877 # making a dummy file named `D' -- because `-MD' means `put the output
3878 # in D'.
3879 mkdir conftest.dir
3880 # Copy depcomp to subdir because otherwise we won't find it if we're
3881 # using a relative directory.
3882 cp "$am_depcomp" conftest.dir
3883 cd conftest.dir
3884 # We will build objects and dependencies in a subdirectory because
3885 # it helps to detect inapplicable dependency modes. For instance
3886 # both Tru64's cc and ICC support -MD to output dependencies as a
3887 # side effect of compilation, but ICC will put the dependencies in
3888 # the current directory while Tru64 will put them in the object
3889 # directory.
3890 mkdir sub
3892 am_cv_CC_dependencies_compiler_type=none
3893 if test "$am_compiler_list" = ""; then
3894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3896 for depmode in $am_compiler_list; do
3897 # Setup a source with many dependencies, because some compilers
3898 # like to wrap large dependency lists on column 80 (with \), and
3899 # we should not choose a depcomp mode which is confused by this.
3901 # We need to recreate these files for each test, as the compiler may
3902 # overwrite some of them when testing with obscure command lines.
3903 # This happens at least with the AIX C compiler.
3904 : > sub/conftest.c
3905 for i in 1 2 3 4 5 6; do
3906 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3907 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3908 # Solaris 8's {/usr,}/bin/sh.
3909 touch sub/conftst$i.h
3910 done
3911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3913 case $depmode in
3914 nosideeffect)
3915 # after this tag, mechanisms are not by side-effect, so they'll
3916 # only be used when explicitly requested
3917 if test "x$enable_dependency_tracking" = xyes; then
3918 continue
3919 else
3920 break
3923 none) break ;;
3924 esac
3925 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3926 # mode. It turns out that the SunPro C++ compiler does not properly
3927 # handle `-M -o', and we need to detect this.
3928 if depmode=$depmode \
3929 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3931 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3932 >/dev/null 2>conftest.err &&
3933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937 # icc doesn't choke on unknown options, it will just issue warnings
3938 # or remarks (even with -Werror). So we grep stderr for any message
3939 # that says an option was ignored or not supported.
3940 # When given -MP, icc 7.0 and 7.1 complain thusly:
3941 # icc: Command line warning: ignoring option '-M'; no argument required
3942 # The diagnosis changed in icc 8.0:
3943 # icc: Command line remark: option '-MP' not supported
3944 if (grep 'ignoring option' conftest.err ||
3945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946 am_cv_CC_dependencies_compiler_type=$depmode
3947 break
3950 done
3952 cd ..
3953 rm -rf conftest.dir
3954 else
3955 am_cv_CC_dependencies_compiler_type=none
3959 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3960 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3961 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3964 test "x$enable_dependency_tracking" != xno \
3965 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3966 am__fastdepCC_TRUE=
3967 am__fastdepCC_FALSE='#'
3968 else
3969 am__fastdepCC_TRUE='#'
3970 am__fastdepCC_FALSE=
3974 # Check whether --enable-shared was given.
3975 if test "${enable_shared+set}" = set; then
3976 enableval=$enable_shared; p=${PACKAGE-default}
3977 case $enableval in
3978 yes) enable_shared=yes ;;
3979 no) enable_shared=no ;;
3981 enable_shared=no
3982 # Look at the argument we got. We use all the common list separators.
3983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3984 for pkg in $enableval; do
3985 IFS="$lt_save_ifs"
3986 if test "X$pkg" = "X$p"; then
3987 enable_shared=yes
3989 done
3990 IFS="$lt_save_ifs"
3992 esac
3993 else
3994 enable_shared=yes
3998 # Check whether --enable-static was given.
3999 if test "${enable_static+set}" = set; then
4000 enableval=$enable_static; p=${PACKAGE-default}
4001 case $enableval in
4002 yes) enable_static=yes ;;
4003 no) enable_static=no ;;
4005 enable_static=no
4006 # Look at the argument we got. We use all the common list separators.
4007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4008 for pkg in $enableval; do
4009 IFS="$lt_save_ifs"
4010 if test "X$pkg" = "X$p"; then
4011 enable_static=yes
4013 done
4014 IFS="$lt_save_ifs"
4016 esac
4017 else
4018 enable_static=yes
4022 # Check whether --enable-fast-install was given.
4023 if test "${enable_fast_install+set}" = set; then
4024 enableval=$enable_fast_install; p=${PACKAGE-default}
4025 case $enableval in
4026 yes) enable_fast_install=yes ;;
4027 no) enable_fast_install=no ;;
4029 enable_fast_install=no
4030 # Look at the argument we got. We use all the common list separators.
4031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4032 for pkg in $enableval; do
4033 IFS="$lt_save_ifs"
4034 if test "X$pkg" = "X$p"; then
4035 enable_fast_install=yes
4037 done
4038 IFS="$lt_save_ifs"
4040 esac
4041 else
4042 enable_fast_install=yes
4046 # Make sure we can run config.sub.
4047 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4048 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4049 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4050 { (exit 1); exit 1; }; }
4052 { echo "$as_me:$LINENO: checking build system type" >&5
4053 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4054 if test "${ac_cv_build+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 ac_build_alias=$build_alias
4058 test "x$ac_build_alias" = x &&
4059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4060 test "x$ac_build_alias" = x &&
4061 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4062 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4063 { (exit 1); exit 1; }; }
4064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4065 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4066 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4067 { (exit 1); exit 1; }; }
4070 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4071 echo "${ECHO_T}$ac_cv_build" >&6; }
4072 case $ac_cv_build in
4073 *-*-*) ;;
4074 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4075 echo "$as_me: error: invalid value of canonical build" >&2;}
4076 { (exit 1); exit 1; }; };;
4077 esac
4078 build=$ac_cv_build
4079 ac_save_IFS=$IFS; IFS='-'
4080 set x $ac_cv_build
4081 shift
4082 build_cpu=$1
4083 build_vendor=$2
4084 shift; shift
4085 # Remember, the first character of IFS is used to create $*,
4086 # except with old shells:
4087 build_os=$*
4088 IFS=$ac_save_IFS
4089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4092 { echo "$as_me:$LINENO: checking host system type" >&5
4093 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4094 if test "${ac_cv_host+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 if test "x$host_alias" = x; then
4098 ac_cv_host=$ac_cv_build
4099 else
4100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4101 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4102 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4103 { (exit 1); exit 1; }; }
4107 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4108 echo "${ECHO_T}$ac_cv_host" >&6; }
4109 case $ac_cv_host in
4110 *-*-*) ;;
4111 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4112 echo "$as_me: error: invalid value of canonical host" >&2;}
4113 { (exit 1); exit 1; }; };;
4114 esac
4115 host=$ac_cv_host
4116 ac_save_IFS=$IFS; IFS='-'
4117 set x $ac_cv_host
4118 shift
4119 host_cpu=$1
4120 host_vendor=$2
4121 shift; shift
4122 # Remember, the first character of IFS is used to create $*,
4123 # except with old shells:
4124 host_os=$*
4125 IFS=$ac_save_IFS
4126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4129 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4130 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4131 if test "${lt_cv_path_SED+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 # Loop through the user's path and test for sed and gsed.
4135 # Then use that list of sed's as ones to test for truncation.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for lt_ac_prog in sed gsed; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4144 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4146 done
4147 done
4148 done
4149 IFS=$as_save_IFS
4150 lt_ac_max=0
4151 lt_ac_count=0
4152 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4153 # along with /bin/sed that truncates output.
4154 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4155 test ! -f $lt_ac_sed && continue
4156 cat /dev/null > conftest.in
4157 lt_ac_count=0
4158 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4159 # Check for GNU sed and select it if it is found.
4160 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4161 lt_cv_path_SED=$lt_ac_sed
4162 break
4164 while true; do
4165 cat conftest.in conftest.in >conftest.tmp
4166 mv conftest.tmp conftest.in
4167 cp conftest.in conftest.nl
4168 echo >>conftest.nl
4169 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4170 cmp -s conftest.out conftest.nl || break
4171 # 10000 chars as input seems more than enough
4172 test $lt_ac_count -gt 10 && break
4173 lt_ac_count=`expr $lt_ac_count + 1`
4174 if test $lt_ac_count -gt $lt_ac_max; then
4175 lt_ac_max=$lt_ac_count
4176 lt_cv_path_SED=$lt_ac_sed
4178 done
4179 done
4183 SED=$lt_cv_path_SED
4185 { echo "$as_me:$LINENO: result: $SED" >&5
4186 echo "${ECHO_T}$SED" >&6; }
4188 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4189 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4190 if test "${ac_cv_path_GREP+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 # Extract the first word of "grep ggrep" to use in msg output
4194 if test -z "$GREP"; then
4195 set dummy grep ggrep; ac_prog_name=$2
4196 if test "${ac_cv_path_GREP+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 ac_path_GREP_found=false
4200 # Loop through the user's path and test for each of PROGNAME-LIST
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_prog in grep ggrep; do
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4209 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4210 # Check for GNU ac_path_GREP and select it if it is found.
4211 # Check for GNU $ac_path_GREP
4212 case `"$ac_path_GREP" --version 2>&1` in
4213 *GNU*)
4214 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4216 ac_count=0
4217 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4218 while :
4220 cat "conftest.in" "conftest.in" >"conftest.tmp"
4221 mv "conftest.tmp" "conftest.in"
4222 cp "conftest.in" "conftest.nl"
4223 echo 'GREP' >> "conftest.nl"
4224 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226 ac_count=`expr $ac_count + 1`
4227 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4228 # Best one so far, save it but keep looking for a better one
4229 ac_cv_path_GREP="$ac_path_GREP"
4230 ac_path_GREP_max=$ac_count
4232 # 10*(2^10) chars as input seems more than enough
4233 test $ac_count -gt 10 && break
4234 done
4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 esac
4239 $ac_path_GREP_found && break 3
4240 done
4241 done
4243 done
4244 IFS=$as_save_IFS
4249 GREP="$ac_cv_path_GREP"
4250 if test -z "$GREP"; then
4251 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4252 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4253 { (exit 1); exit 1; }; }
4256 else
4257 ac_cv_path_GREP=$GREP
4262 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4263 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
4267 { echo "$as_me:$LINENO: checking for egrep" >&5
4268 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4269 if test "${ac_cv_path_EGREP+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273 then ac_cv_path_EGREP="$GREP -E"
4274 else
4275 # Extract the first word of "egrep" to use in msg output
4276 if test -z "$EGREP"; then
4277 set dummy egrep; ac_prog_name=$2
4278 if test "${ac_cv_path_EGREP+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281 ac_path_EGREP_found=false
4282 # Loop through the user's path and test for each of PROGNAME-LIST
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_prog in egrep; do
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4291 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4292 # Check for GNU ac_path_EGREP and select it if it is found.
4293 # Check for GNU $ac_path_EGREP
4294 case `"$ac_path_EGREP" --version 2>&1` in
4295 *GNU*)
4296 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4298 ac_count=0
4299 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4300 while :
4302 cat "conftest.in" "conftest.in" >"conftest.tmp"
4303 mv "conftest.tmp" "conftest.in"
4304 cp "conftest.in" "conftest.nl"
4305 echo 'EGREP' >> "conftest.nl"
4306 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308 ac_count=`expr $ac_count + 1`
4309 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4310 # Best one so far, save it but keep looking for a better one
4311 ac_cv_path_EGREP="$ac_path_EGREP"
4312 ac_path_EGREP_max=$ac_count
4314 # 10*(2^10) chars as input seems more than enough
4315 test $ac_count -gt 10 && break
4316 done
4317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318 esac
4321 $ac_path_EGREP_found && break 3
4322 done
4323 done
4325 done
4326 IFS=$as_save_IFS
4331 EGREP="$ac_cv_path_EGREP"
4332 if test -z "$EGREP"; then
4333 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4334 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4335 { (exit 1); exit 1; }; }
4338 else
4339 ac_cv_path_EGREP=$EGREP
4345 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4346 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4347 EGREP="$ac_cv_path_EGREP"
4351 # Check whether --with-gnu-ld was given.
4352 if test "${with_gnu_ld+set}" = set; then
4353 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4354 else
4355 with_gnu_ld=no
4358 ac_prog=ld
4359 if test "$GCC" = yes; then
4360 # Check if gcc -print-prog-name=ld gives a path.
4361 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4362 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4363 case $host in
4364 *-*-mingw*)
4365 # gcc leaves a trailing carriage return which upsets mingw
4366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4369 esac
4370 case $ac_prog in
4371 # Accept absolute paths.
4372 [\\/]* | ?:[\\/]*)
4373 re_direlt='/[^/][^/]*/\.\./'
4374 # Canonicalize the pathname of ld
4375 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4376 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4377 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4378 done
4379 test -z "$LD" && LD="$ac_prog"
4382 # If it fails, then pretend we aren't using GCC.
4383 ac_prog=ld
4386 # If it is relative, then search for the first ld in PATH.
4387 with_gnu_ld=unknown
4389 esac
4390 elif test "$with_gnu_ld" = yes; then
4391 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4392 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4393 else
4394 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4395 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4397 if test "${lt_cv_path_LD+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400 if test -z "$LD"; then
4401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4402 for ac_dir in $PATH; do
4403 IFS="$lt_save_ifs"
4404 test -z "$ac_dir" && ac_dir=.
4405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4406 lt_cv_path_LD="$ac_dir/$ac_prog"
4407 # Check to see if the program is GNU ld. I'd rather use --version,
4408 # but apparently some variants of GNU ld only accept -v.
4409 # Break only if it was the GNU/non-GNU ld that we prefer.
4410 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4411 *GNU* | *'with BFD'*)
4412 test "$with_gnu_ld" != no && break
4415 test "$with_gnu_ld" != yes && break
4417 esac
4419 done
4420 IFS="$lt_save_ifs"
4421 else
4422 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4426 LD="$lt_cv_path_LD"
4427 if test -n "$LD"; then
4428 { echo "$as_me:$LINENO: result: $LD" >&5
4429 echo "${ECHO_T}$LD" >&6; }
4430 else
4431 { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }
4434 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4435 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4436 { (exit 1); exit 1; }; }
4437 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4438 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4439 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4443 case `$LD -v 2>&1 </dev/null` in
4444 *GNU* | *'with BFD'*)
4445 lt_cv_prog_gnu_ld=yes
4448 lt_cv_prog_gnu_ld=no
4450 esac
4452 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4453 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4454 with_gnu_ld=$lt_cv_prog_gnu_ld
4457 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4458 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4459 if test "${lt_cv_ld_reload_flag+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 lt_cv_ld_reload_flag='-r'
4464 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4465 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4466 reload_flag=$lt_cv_ld_reload_flag
4467 case $reload_flag in
4468 "" | " "*) ;;
4469 *) reload_flag=" $reload_flag" ;;
4470 esac
4471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4472 case $host_os in
4473 darwin*)
4474 if test "$GCC" = yes; then
4475 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4476 else
4477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4480 esac
4482 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4483 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4484 if test "${lt_cv_path_NM+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487 if test -n "$NM"; then
4488 # Let the user override the test.
4489 lt_cv_path_NM="$NM"
4490 else
4491 lt_nm_to_check="${ac_tool_prefix}nm"
4492 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4493 lt_nm_to_check="$lt_nm_to_check nm"
4495 for lt_tmp_nm in $lt_nm_to_check; do
4496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4497 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4498 IFS="$lt_save_ifs"
4499 test -z "$ac_dir" && ac_dir=.
4500 tmp_nm="$ac_dir/$lt_tmp_nm"
4501 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4502 # Check to see if the nm accepts a BSD-compat flag.
4503 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4504 # nm: unknown option "B" ignored
4505 # Tru64's nm complains that /dev/null is an invalid object file
4506 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4507 */dev/null* | *'Invalid file or object type'*)
4508 lt_cv_path_NM="$tmp_nm -B"
4509 break
4512 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4513 */dev/null*)
4514 lt_cv_path_NM="$tmp_nm -p"
4515 break
4518 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4519 continue # so that we can try to find one that supports BSD flags
4521 esac
4523 esac
4525 done
4526 IFS="$lt_save_ifs"
4527 done
4528 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4531 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4532 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4533 NM="$lt_cv_path_NM"
4535 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4536 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4537 LN_S=$as_ln_s
4538 if test "$LN_S" = "ln -s"; then
4539 { echo "$as_me:$LINENO: result: yes" >&5
4540 echo "${ECHO_T}yes" >&6; }
4541 else
4542 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4543 echo "${ECHO_T}no, using $LN_S" >&6; }
4546 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4547 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4548 if test "${lt_cv_deplibs_check_method+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 lt_cv_file_magic_cmd='$MAGIC_CMD'
4552 lt_cv_file_magic_test_file=
4553 lt_cv_deplibs_check_method='unknown'
4554 # Need to set the preceding variable on all platforms that support
4555 # interlibrary dependencies.
4556 # 'none' -- dependencies not supported.
4557 # `unknown' -- same as none, but documents that we really don't know.
4558 # 'pass_all' -- all dependencies passed with no checks.
4559 # 'test_compile' -- check by making test program.
4560 # 'file_magic [[regex]]' -- check by looking for files in library path
4561 # which responds to the $file_magic_cmd with a given extended regex.
4562 # If you have `file' or equivalent on your system and you're not sure
4563 # whether `pass_all' will *always* work, you probably want this one.
4565 case $host_os in
4566 aix4* | aix5*)
4567 lt_cv_deplibs_check_method=pass_all
4570 beos*)
4571 lt_cv_deplibs_check_method=pass_all
4574 bsdi[45]*)
4575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4576 lt_cv_file_magic_cmd='/usr/bin/file -L'
4577 lt_cv_file_magic_test_file=/shlib/libc.so
4580 cygwin*)
4581 # func_win32_libid is a shell function defined in ltmain.sh
4582 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4583 lt_cv_file_magic_cmd='func_win32_libid'
4586 mingw* | pw32*)
4587 # Base MSYS/MinGW do not provide the 'file' command needed by
4588 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4589 # unless we find 'file', for example because we are cross-compiling.
4590 if ( file / ) >/dev/null 2>&1; then
4591 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4592 lt_cv_file_magic_cmd='func_win32_libid'
4593 else
4594 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4595 lt_cv_file_magic_cmd='$OBJDUMP -f'
4599 darwin* | rhapsody*)
4600 lt_cv_deplibs_check_method=pass_all
4603 freebsd* | dragonfly*)
4604 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4605 case $host_cpu in
4606 i*86 )
4607 # Not sure whether the presence of OpenBSD here was a mistake.
4608 # Let's accept both of them until this is cleared up.
4609 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4610 lt_cv_file_magic_cmd=/usr/bin/file
4611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4613 esac
4614 else
4615 lt_cv_deplibs_check_method=pass_all
4619 gnu*)
4620 lt_cv_deplibs_check_method=pass_all
4623 hpux10.20* | hpux11*)
4624 lt_cv_file_magic_cmd=/usr/bin/file
4625 case $host_cpu in
4626 ia64*)
4627 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4628 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4630 hppa*64*)
4631 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]'
4632 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4636 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4638 esac
4641 interix[3-9]*)
4642 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4646 irix5* | irix6* | nonstopux*)
4647 case $LD in
4648 *-32|*"-32 ") libmagic=32-bit;;
4649 *-n32|*"-n32 ") libmagic=N32;;
4650 *-64|*"-64 ") libmagic=64-bit;;
4651 *) libmagic=never-match;;
4652 esac
4653 lt_cv_deplibs_check_method=pass_all
4656 # This must be Linux ELF.
4657 linux* | k*bsd*-gnu)
4658 lt_cv_deplibs_check_method=pass_all
4661 netbsd*)
4662 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4664 else
4665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4669 newos6*)
4670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4671 lt_cv_file_magic_cmd=/usr/bin/file
4672 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4675 nto-qnx*)
4676 lt_cv_deplibs_check_method=unknown
4679 openbsd*)
4680 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4682 else
4683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4687 osf3* | osf4* | osf5*)
4688 lt_cv_deplibs_check_method=pass_all
4691 rdos*)
4692 lt_cv_deplibs_check_method=pass_all
4695 solaris*)
4696 lt_cv_deplibs_check_method=pass_all
4699 sysv4 | sysv4.3*)
4700 case $host_vendor in
4701 motorola)
4702 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]'
4703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4705 ncr)
4706 lt_cv_deplibs_check_method=pass_all
4708 sequent)
4709 lt_cv_file_magic_cmd='/bin/file'
4710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4712 sni)
4713 lt_cv_file_magic_cmd='/bin/file'
4714 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4715 lt_cv_file_magic_test_file=/lib/libc.so
4717 siemens)
4718 lt_cv_deplibs_check_method=pass_all
4721 lt_cv_deplibs_check_method=pass_all
4723 esac
4726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4727 lt_cv_deplibs_check_method=pass_all
4729 esac
4732 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4733 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4734 file_magic_cmd=$lt_cv_file_magic_cmd
4735 deplibs_check_method=$lt_cv_deplibs_check_method
4736 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4741 # If no C compiler was specified, use CC.
4742 LTCC=${LTCC-"$CC"}
4744 # If no C compiler flags were specified, use CFLAGS.
4745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4747 # Allow CC to be a program name with arguments.
4748 compiler=$CC
4751 # Check whether --enable-libtool-lock was given.
4752 if test "${enable_libtool_lock+set}" = set; then
4753 enableval=$enable_libtool_lock;
4756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4758 # Some flags need to be propagated to the compiler or linker for good
4759 # libtool support.
4760 case $host in
4761 ia64-*-hpux*)
4762 # Find out which ABI we are using.
4763 echo 'int i;' > conftest.$ac_ext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765 (eval $ac_compile) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; then
4769 case `/usr/bin/file conftest.$ac_objext` in
4770 *ELF-32*)
4771 HPUX_IA64_MODE="32"
4773 *ELF-64*)
4774 HPUX_IA64_MODE="64"
4776 esac
4778 rm -rf conftest*
4780 *-*-irix6*)
4781 # Find out which ABI we are using.
4782 echo '#line 4782 "configure"' > conftest.$ac_ext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; then
4788 if test "$lt_cv_prog_gnu_ld" = yes; then
4789 case `/usr/bin/file conftest.$ac_objext` in
4790 *32-bit*)
4791 LD="${LD-ld} -melf32bsmip"
4793 *N32*)
4794 LD="${LD-ld} -melf32bmipn32"
4796 *64-bit*)
4797 LD="${LD-ld} -melf64bmip"
4799 esac
4800 else
4801 case `/usr/bin/file conftest.$ac_objext` in
4802 *32-bit*)
4803 LD="${LD-ld} -32"
4805 *N32*)
4806 LD="${LD-ld} -n32"
4808 *64-bit*)
4809 LD="${LD-ld} -64"
4811 esac
4814 rm -rf conftest*
4817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4818 s390*-*linux*|sparc*-*linux*)
4819 # Find out which ABI we are using.
4820 echo 'int i;' > conftest.$ac_ext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; then
4826 case `/usr/bin/file conftest.o` in
4827 *32-bit*)
4828 case $host in
4829 x86_64-*kfreebsd*-gnu)
4830 LD="${LD-ld} -m elf_i386_fbsd"
4832 x86_64-*linux*)
4833 LD="${LD-ld} -m elf_i386"
4835 ppc64-*linux*|powerpc64-*linux*)
4836 LD="${LD-ld} -m elf32ppclinux"
4838 s390x-*linux*)
4839 LD="${LD-ld} -m elf_s390"
4841 sparc64-*linux*)
4842 LD="${LD-ld} -m elf32_sparc"
4844 esac
4846 *64-bit*)
4847 case $host in
4848 x86_64-*kfreebsd*-gnu)
4849 LD="${LD-ld} -m elf_x86_64_fbsd"
4851 x86_64-*linux*)
4852 LD="${LD-ld} -m elf_x86_64"
4854 ppc*-*linux*|powerpc*-*linux*)
4855 LD="${LD-ld} -m elf64ppc"
4857 s390*-*linux*)
4858 LD="${LD-ld} -m elf64_s390"
4860 sparc*-*linux*)
4861 LD="${LD-ld} -m elf64_sparc"
4863 esac
4865 esac
4867 rm -rf conftest*
4870 *-*-sco3.2v5*)
4871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4872 SAVE_CFLAGS="$CFLAGS"
4873 CFLAGS="$CFLAGS -belf"
4874 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4875 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4876 if test "${lt_cv_cc_needs_belf+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879 ac_ext=c
4880 ac_cpp='$CPP $CPPFLAGS'
4881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4893 main ()
4897 return 0;
4899 _ACEOF
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (ac_try="$ac_link"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_link") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest$ac_exeext &&
4917 $as_test_x conftest$ac_exeext; then
4918 lt_cv_cc_needs_belf=yes
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 lt_cv_cc_needs_belf=no
4926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4927 conftest$ac_exeext conftest.$ac_ext
4928 ac_ext=c
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4935 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4936 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4937 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4938 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4939 CFLAGS="$SAVE_CFLAGS"
4942 sparc*-*solaris*)
4943 # Find out which ABI we are using.
4944 echo 'int i;' > conftest.$ac_ext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; then
4950 case `/usr/bin/file conftest.o` in
4951 *64-bit*)
4952 case $lt_cv_prog_gnu_ld in
4953 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4954 *) LD="${LD-ld} -64" ;;
4955 esac
4957 esac
4959 rm -rf conftest*
4963 esac
4965 need_locks="$enable_libtool_lock"
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4974 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4977 CPP=
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4986 ac_preproc_ok=false
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #ifdef __STDC__
5002 # include <limits.h>
5003 #else
5004 # include <assert.h>
5005 #endif
5006 Syntax error
5007 _ACEOF
5008 if { (ac_try="$ac_cpp conftest.$ac_ext"
5009 case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } >/dev/null && {
5021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5022 test ! -s conftest.err
5023 }; then
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 # Broken: fails on valid input.
5030 continue
5033 rm -f conftest.err conftest.$ac_ext
5035 # OK, works on sane cases. Now check whether nonexistent headers
5036 # can be detected and how.
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 #include <ac_nonexistent.h>
5044 _ACEOF
5045 if { (ac_try="$ac_cpp conftest.$ac_ext"
5046 case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5052 ac_status=$?
5053 grep -v '^ *+' conftest.er1 >conftest.err
5054 rm -f conftest.er1
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } >/dev/null && {
5058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5059 test ! -s conftest.err
5060 }; then
5061 # Broken: success on invalid input.
5062 continue
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 # Passes both tests.
5068 ac_preproc_ok=:
5069 break
5072 rm -f conftest.err conftest.$ac_ext
5074 done
5075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5076 rm -f conftest.err conftest.$ac_ext
5077 if $ac_preproc_ok; then
5078 break
5081 done
5082 ac_cv_prog_CPP=$CPP
5085 CPP=$ac_cv_prog_CPP
5086 else
5087 ac_cv_prog_CPP=$CPP
5089 { echo "$as_me:$LINENO: result: $CPP" >&5
5090 echo "${ECHO_T}$CPP" >&6; }
5091 ac_preproc_ok=false
5092 for ac_c_preproc_warn_flag in '' yes
5094 # Use a header file that comes with gcc, so configuring glibc
5095 # with a fresh cross-compiler works.
5096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5097 # <limits.h> exists even on freestanding compilers.
5098 # On the NeXT, cc -E runs the code through the compiler's parser,
5099 # not just through cpp. "Syntax error" is here to catch this case.
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #ifdef __STDC__
5107 # include <limits.h>
5108 #else
5109 # include <assert.h>
5110 #endif
5111 Syntax error
5112 _ACEOF
5113 if { (ac_try="$ac_cpp conftest.$ac_ext"
5114 case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117 esac
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5120 ac_status=$?
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } >/dev/null && {
5126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5127 test ! -s conftest.err
5128 }; then
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 # Broken: fails on valid input.
5135 continue
5138 rm -f conftest.err conftest.$ac_ext
5140 # OK, works on sane cases. Now check whether nonexistent headers
5141 # can be detected and how.
5142 cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h. */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 #include <ac_nonexistent.h>
5149 _ACEOF
5150 if { (ac_try="$ac_cpp conftest.$ac_ext"
5151 case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154 esac
5155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null && {
5163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5164 test ! -s conftest.err
5165 }; then
5166 # Broken: success on invalid input.
5167 continue
5168 else
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 # Passes both tests.
5173 ac_preproc_ok=:
5174 break
5177 rm -f conftest.err conftest.$ac_ext
5179 done
5180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5181 rm -f conftest.err conftest.$ac_ext
5182 if $ac_preproc_ok; then
5184 else
5185 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5186 See \`config.log' for more details." >&5
5187 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5188 See \`config.log' for more details." >&2;}
5189 { (exit 1); exit 1; }; }
5192 ac_ext=c
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5200 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5201 if test "${ac_cv_header_stdc+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204 cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h. */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #include <stdlib.h>
5211 #include <stdarg.h>
5212 #include <string.h>
5213 #include <float.h>
5216 main ()
5220 return 0;
5222 _ACEOF
5223 rm -f conftest.$ac_objext
5224 if { (ac_try="$ac_compile"
5225 case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228 esac
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230 (eval "$ac_compile") 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && {
5237 test -z "$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 } && test -s conftest.$ac_objext; then
5240 ac_cv_header_stdc=yes
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 ac_cv_header_stdc=no
5248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 if test $ac_cv_header_stdc = yes; then
5251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5252 cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h. */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 #include <string.h>
5260 _ACEOF
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "memchr" >/dev/null 2>&1; then
5264 else
5265 ac_cv_header_stdc=no
5267 rm -f conftest*
5271 if test $ac_cv_header_stdc = yes; then
5272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 #include <stdlib.h>
5281 _ACEOF
5282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283 $EGREP "free" >/dev/null 2>&1; then
5285 else
5286 ac_cv_header_stdc=no
5288 rm -f conftest*
5292 if test $ac_cv_header_stdc = yes; then
5293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5294 if test "$cross_compiling" = yes; then
5296 else
5297 cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <ctype.h>
5304 #include <stdlib.h>
5305 #if ((' ' & 0x0FF) == 0x020)
5306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5308 #else
5309 # define ISLOWER(c) \
5310 (('a' <= (c) && (c) <= 'i') \
5311 || ('j' <= (c) && (c) <= 'r') \
5312 || ('s' <= (c) && (c) <= 'z'))
5313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5314 #endif
5316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5318 main ()
5320 int i;
5321 for (i = 0; i < 256; i++)
5322 if (XOR (islower (i), ISLOWER (i))
5323 || toupper (i) != TOUPPER (i))
5324 return 2;
5325 return 0;
5327 _ACEOF
5328 rm -f conftest$ac_exeext
5329 if { (ac_try="$ac_link"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_link") 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5339 { (case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_try") 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5349 else
5350 echo "$as_me: program exited with status $ac_status" >&5
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ( exit $ac_status )
5355 ac_cv_header_stdc=no
5357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5363 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5364 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5365 if test $ac_cv_header_stdc = yes; then
5367 cat >>confdefs.h <<\_ACEOF
5368 #define STDC_HEADERS 1
5369 _ACEOF
5373 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5383 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5384 inttypes.h stdint.h unistd.h
5386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5400 #include <$ac_header>
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (ac_try="$ac_compile"
5404 case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_compile") 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && {
5416 test -z "$ac_c_werror_flag" ||
5417 test ! -s conftest.err
5418 } && test -s conftest.$ac_objext; then
5419 eval "$as_ac_Header=yes"
5420 else
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 eval "$as_ac_Header=no"
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 ac_res=`eval echo '${'$as_ac_Header'}'`
5430 { echo "$as_me:$LINENO: result: $ac_res" >&5
5431 echo "${ECHO_T}$ac_res" >&6; }
5432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 _ACEOF
5439 done
5443 for ac_header in dlfcn.h
5445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 ac_res=`eval echo '${'$as_ac_Header'}'`
5453 { echo "$as_me:$LINENO: result: $ac_res" >&5
5454 echo "${ECHO_T}$ac_res" >&6; }
5455 else
5456 # Is the header compilable?
5457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 $ac_includes_default
5466 #include <$ac_header>
5467 _ACEOF
5468 rm -f conftest.$ac_objext
5469 if { (ac_try="$ac_compile"
5470 case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473 esac
5474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_compile") 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } && {
5482 test -z "$ac_c_werror_flag" ||
5483 test ! -s conftest.err
5484 } && test -s conftest.$ac_objext; then
5485 ac_header_compiler=yes
5486 else
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5490 ac_header_compiler=no
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5495 echo "${ECHO_T}$ac_header_compiler" >&6; }
5497 # Is the header present?
5498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 #include <$ac_header>
5507 _ACEOF
5508 if { (ac_try="$ac_cpp conftest.$ac_ext"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } >/dev/null && {
5521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 }; then
5524 ac_header_preproc=yes
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_header_preproc=no
5532 rm -f conftest.err conftest.$ac_ext
5533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5534 echo "${ECHO_T}$ac_header_preproc" >&6; }
5536 # So? What about this header?
5537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5538 yes:no: )
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5543 ac_header_preproc=yes
5545 no:yes:* )
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5558 ( cat <<\_ASBOX
5559 ## ------------------------------------- ##
5560 ## Report this to ahmed.badran@gmail.com ##
5561 ## ------------------------------------- ##
5562 _ASBOX
5563 ) | sed "s/^/$as_me: WARNING: /" >&2
5565 esac
5566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 eval "$as_ac_Header=\$ac_header_preproc"
5573 ac_res=`eval echo '${'$as_ac_Header'}'`
5574 { echo "$as_me:$LINENO: result: $ac_res" >&5
5575 echo "${ECHO_T}$ac_res" >&6; }
5578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579 cat >>confdefs.h <<_ACEOF
5580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5581 _ACEOF
5585 done
5589 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5590 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5591 (test "X$CXX" != "Xg++"))) ; then
5592 ac_ext=cpp
5593 ac_cpp='$CXXCPP $CPPFLAGS'
5594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5597 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5598 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5599 if test -z "$CXXCPP"; then
5600 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 # Double quotes because CXXCPP needs to be expanded
5604 for CXXCPP in "$CXX -E" "/lib/cpp"
5606 ac_preproc_ok=false
5607 for ac_cxx_preproc_warn_flag in '' yes
5609 # Use a header file that comes with gcc, so configuring glibc
5610 # with a fresh cross-compiler works.
5611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5612 # <limits.h> exists even on freestanding compilers.
5613 # On the NeXT, cc -E runs the code through the compiler's parser,
5614 # not just through cpp. "Syntax error" is here to catch this case.
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h. */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5621 #ifdef __STDC__
5622 # include <limits.h>
5623 #else
5624 # include <assert.h>
5625 #endif
5626 Syntax error
5627 _ACEOF
5628 if { (ac_try="$ac_cpp conftest.$ac_ext"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } >/dev/null && {
5641 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5642 test ! -s conftest.err
5643 }; then
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 # Broken: fails on valid input.
5650 continue
5653 rm -f conftest.err conftest.$ac_ext
5655 # OK, works on sane cases. Now check whether nonexistent headers
5656 # can be detected and how.
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #include <ac_nonexistent.h>
5664 _ACEOF
5665 if { (ac_try="$ac_cpp conftest.$ac_ext"
5666 case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669 esac
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } >/dev/null && {
5678 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5679 test ! -s conftest.err
5680 }; then
5681 # Broken: success on invalid input.
5682 continue
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 # Passes both tests.
5688 ac_preproc_ok=:
5689 break
5692 rm -f conftest.err conftest.$ac_ext
5694 done
5695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5696 rm -f conftest.err conftest.$ac_ext
5697 if $ac_preproc_ok; then
5698 break
5701 done
5702 ac_cv_prog_CXXCPP=$CXXCPP
5705 CXXCPP=$ac_cv_prog_CXXCPP
5706 else
5707 ac_cv_prog_CXXCPP=$CXXCPP
5709 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5710 echo "${ECHO_T}$CXXCPP" >&6; }
5711 ac_preproc_ok=false
5712 for ac_cxx_preproc_warn_flag in '' yes
5714 # Use a header file that comes with gcc, so configuring glibc
5715 # with a fresh cross-compiler works.
5716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5717 # <limits.h> exists even on freestanding compilers.
5718 # On the NeXT, cc -E runs the code through the compiler's parser,
5719 # not just through cpp. "Syntax error" is here to catch this case.
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #ifdef __STDC__
5727 # include <limits.h>
5728 #else
5729 # include <assert.h>
5730 #endif
5731 Syntax error
5732 _ACEOF
5733 if { (ac_try="$ac_cpp conftest.$ac_ext"
5734 case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } >/dev/null && {
5746 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5747 test ! -s conftest.err
5748 }; then
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 # Broken: fails on valid input.
5755 continue
5758 rm -f conftest.err conftest.$ac_ext
5760 # OK, works on sane cases. Now check whether nonexistent headers
5761 # can be detected and how.
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h. */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #include <ac_nonexistent.h>
5769 _ACEOF
5770 if { (ac_try="$ac_cpp conftest.$ac_ext"
5771 case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } >/dev/null && {
5783 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5784 test ! -s conftest.err
5785 }; then
5786 # Broken: success on invalid input.
5787 continue
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5792 # Passes both tests.
5793 ac_preproc_ok=:
5794 break
5797 rm -f conftest.err conftest.$ac_ext
5799 done
5800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5801 rm -f conftest.err conftest.$ac_ext
5802 if $ac_preproc_ok; then
5804 else
5805 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5806 See \`config.log' for more details." >&5
5807 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5808 See \`config.log' for more details." >&2;}
5809 { (exit 1); exit 1; }; }
5812 ac_ext=cpp
5813 ac_cpp='$CXXCPP $CPPFLAGS'
5814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5821 ac_ext=f
5822 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5823 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5825 if test -n "$ac_tool_prefix"; then
5826 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832 if test "${ac_cv_prog_F77+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835 if test -n "$F77"; then
5836 ac_cv_prog_F77="$F77" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5849 done
5850 done
5851 IFS=$as_save_IFS
5855 F77=$ac_cv_prog_F77
5856 if test -n "$F77"; then
5857 { echo "$as_me:$LINENO: result: $F77" >&5
5858 echo "${ECHO_T}$F77" >&6; }
5859 else
5860 { echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6; }
5865 test -n "$F77" && break
5866 done
5868 if test -z "$F77"; then
5869 ac_ct_F77=$F77
5870 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5872 # Extract the first word of "$ac_prog", so it can be a program name with args.
5873 set dummy $ac_prog; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879 if test -n "$ac_ct_F77"; then
5880 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889 ac_cv_prog_ac_ct_F77="$ac_prog"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5893 done
5894 done
5895 IFS=$as_save_IFS
5899 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5900 if test -n "$ac_ct_F77"; then
5901 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5902 echo "${ECHO_T}$ac_ct_F77" >&6; }
5903 else
5904 { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5909 test -n "$ac_ct_F77" && break
5910 done
5912 if test "x$ac_ct_F77" = x; then
5913 F77=""
5914 else
5915 case $cross_compiling:$ac_tool_warned in
5916 yes:)
5917 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5918 whose name does not start with the host triplet. If you think this
5919 configuration is useful to you, please write to autoconf@gnu.org." >&5
5920 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5921 whose name does not start with the host triplet. If you think this
5922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5923 ac_tool_warned=yes ;;
5924 esac
5925 F77=$ac_ct_F77
5930 # Provide some information about the compiler.
5931 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5932 ac_compiler=`set X $ac_compile; echo $2`
5933 { (ac_try="$ac_compiler --version >&5"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compiler --version >&5") 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }
5943 { (ac_try="$ac_compiler -v >&5"
5944 case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compiler -v >&5") 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }
5953 { (ac_try="$ac_compiler -V >&5"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_compiler -V >&5") 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }
5963 rm -f a.out
5965 # If we don't use `.F' as extension, the preprocessor is not run on the
5966 # input file. (Note that this only needs to work for GNU compilers.)
5967 ac_save_ext=$ac_ext
5968 ac_ext=F
5969 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5970 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5971 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 cat >conftest.$ac_ext <<_ACEOF
5975 program main
5976 #ifndef __GNUC__
5977 choke me
5978 #endif
5981 _ACEOF
5982 rm -f conftest.$ac_objext
5983 if { (ac_try="$ac_compile"
5984 case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_compile") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_f77_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest.$ac_objext; then
5999 ac_compiler_gnu=yes
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 ac_compiler_gnu=no
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6011 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6012 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6013 ac_ext=$ac_save_ext
6014 ac_test_FFLAGS=${FFLAGS+set}
6015 ac_save_FFLAGS=$FFLAGS
6016 FFLAGS=
6017 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6018 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6019 if test "${ac_cv_prog_f77_g+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 FFLAGS=-g
6023 cat >conftest.$ac_ext <<_ACEOF
6024 program main
6027 _ACEOF
6028 rm -f conftest.$ac_objext
6029 if { (ac_try="$ac_compile"
6030 case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_f77_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.$ac_objext; then
6045 ac_cv_prog_f77_g=yes
6046 else
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6050 ac_cv_prog_f77_g=no
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6057 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6058 if test "$ac_test_FFLAGS" = set; then
6059 FFLAGS=$ac_save_FFLAGS
6060 elif test $ac_cv_prog_f77_g = yes; then
6061 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6062 FFLAGS="-g -O2"
6063 else
6064 FFLAGS="-g"
6066 else
6067 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6068 FFLAGS="-O2"
6069 else
6070 FFLAGS=
6074 G77=`test $ac_compiler_gnu = yes && echo yes`
6075 ac_ext=c
6076 ac_cpp='$CPP $CPPFLAGS'
6077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6083 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6085 # find the maximum length of command line arguments
6086 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6087 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6088 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6092 teststring="ABCD"
6094 case $build_os in
6095 msdosdjgpp*)
6096 # On DJGPP, this test can blow up pretty badly due to problems in libc
6097 # (any single argument exceeding 2000 bytes causes a buffer overrun
6098 # during glob expansion). Even if it were fixed, the result of this
6099 # check would be larger than it should be.
6100 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6103 gnu*)
6104 # Under GNU Hurd, this test is not required because there is
6105 # no limit to the length of command line arguments.
6106 # Libtool will interpret -1 as no limit whatsoever
6107 lt_cv_sys_max_cmd_len=-1;
6110 cygwin* | mingw*)
6111 # On Win9x/ME, this test blows up -- it succeeds, but takes
6112 # about 5 minutes as the teststring grows exponentially.
6113 # Worse, since 9x/ME are not pre-emptively multitasking,
6114 # you end up with a "frozen" computer, even though with patience
6115 # the test eventually succeeds (with a max line length of 256k).
6116 # Instead, let's just punt: use the minimum linelength reported by
6117 # all of the supported platforms: 8192 (on NT/2K/XP).
6118 lt_cv_sys_max_cmd_len=8192;
6121 amigaos*)
6122 # On AmigaOS with pdksh, this test takes hours, literally.
6123 # So we just punt and use a minimum line length of 8192.
6124 lt_cv_sys_max_cmd_len=8192;
6127 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6128 # This has been around since 386BSD, at least. Likely further.
6129 if test -x /sbin/sysctl; then
6130 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6131 elif test -x /usr/sbin/sysctl; then
6132 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6133 else
6134 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6136 # And add a safety zone
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6141 interix*)
6142 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6143 lt_cv_sys_max_cmd_len=196608
6146 osf*)
6147 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6148 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6149 # nice to cause kernel panics so lets avoid the loop below.
6150 # First set a reasonable default.
6151 lt_cv_sys_max_cmd_len=16384
6153 if test -x /sbin/sysconfig; then
6154 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6155 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6156 esac
6159 sco3.2v5*)
6160 lt_cv_sys_max_cmd_len=102400
6162 sysv5* | sco5v6* | sysv4.2uw2*)
6163 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6164 if test -n "$kargmax"; then
6165 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6166 else
6167 lt_cv_sys_max_cmd_len=32768
6171 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6172 if test -n "$lt_cv_sys_max_cmd_len"; then
6173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6175 else
6176 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6177 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6178 = "XX$teststring") >/dev/null 2>&1 &&
6179 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6180 lt_cv_sys_max_cmd_len=$new_result &&
6181 test $i != 17 # 1/2 MB should be enough
6183 i=`expr $i + 1`
6184 teststring=$teststring$teststring
6185 done
6186 teststring=
6187 # Add a significant safety factor because C++ compilers can tack on massive
6188 # amounts of additional arguments before passing them to the linker.
6189 # It appears as though 1/2 is a usable value.
6190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6193 esac
6197 if test -n $lt_cv_sys_max_cmd_len ; then
6198 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6199 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6200 else
6201 { echo "$as_me:$LINENO: result: none" >&5
6202 echo "${ECHO_T}none" >&6; }
6209 # Check for command to grab the raw symbol name followed by C symbol from nm.
6210 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6211 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6212 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6216 # These are sane defaults that work on at least a few old systems.
6217 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6219 # Character class describing NM global symbol codes.
6220 symcode='[BCDEGRST]'
6222 # Regexp to match symbols that can be accessed directly from C.
6223 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6225 # Transform an extracted symbol line into a proper C declaration
6226 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6228 # Transform an extracted symbol line into symbol name and symbol address
6229 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6231 # Define system-specific variables.
6232 case $host_os in
6233 aix*)
6234 symcode='[BCDT]'
6236 cygwin* | mingw* | pw32*)
6237 symcode='[ABCDGISTW]'
6239 hpux*) # Its linker distinguishes data from code symbols
6240 if test "$host_cpu" = ia64; then
6241 symcode='[ABCDEGRST]'
6243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6244 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6246 linux* | k*bsd*-gnu)
6247 if test "$host_cpu" = ia64; then
6248 symcode='[ABCDGIRSTW]'
6249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6250 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6253 irix* | nonstopux*)
6254 symcode='[BCDEGRST]'
6256 osf*)
6257 symcode='[BCDEGQRST]'
6259 solaris*)
6260 symcode='[BDRT]'
6262 sco3.2v5*)
6263 symcode='[DT]'
6265 sysv4.2uw2*)
6266 symcode='[DT]'
6268 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6269 symcode='[ABDT]'
6271 sysv4)
6272 symcode='[DFNSTU]'
6274 esac
6276 # Handle CRLF in mingw tool chain
6277 opt_cr=
6278 case $build_os in
6279 mingw*)
6280 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6282 esac
6284 # If we're using GNU nm, then use its standard symbol codes.
6285 case `$NM -V 2>&1` in
6286 *GNU* | *'with BFD'*)
6287 symcode='[ABCDGIRSTW]' ;;
6288 esac
6290 # Try without a prefix undercore, then with it.
6291 for ac_symprfx in "" "_"; do
6293 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6294 symxfrm="\\1 $ac_symprfx\\2 \\2"
6296 # Write the raw and C identifiers.
6297 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6299 # Check to see that the pipe works correctly.
6300 pipe_works=no
6302 rm -f conftest*
6303 cat > conftest.$ac_ext <<EOF
6304 #ifdef __cplusplus
6305 extern "C" {
6306 #endif
6307 char nm_test_var;
6308 void nm_test_func(){}
6309 #ifdef __cplusplus
6311 #endif
6312 int main(){nm_test_var='a';nm_test_func();return(0);}
6315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6316 (eval $ac_compile) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; then
6320 # Now try to grab the symbols.
6321 nlist=conftest.nm
6322 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6323 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && test -s "$nlist"; then
6327 # Try sorting and uniquifying the output.
6328 if sort "$nlist" | uniq > "$nlist"T; then
6329 mv -f "$nlist"T "$nlist"
6330 else
6331 rm -f "$nlist"T
6334 # Make sure that we snagged all the symbols we need.
6335 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6336 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6337 cat <<EOF > conftest.$ac_ext
6338 #ifdef __cplusplus
6339 extern "C" {
6340 #endif
6343 # Now generate the symbol file.
6344 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6346 cat <<EOF >> conftest.$ac_ext
6347 #if defined (__STDC__) && __STDC__
6348 # define lt_ptr_t void *
6349 #else
6350 # define lt_ptr_t char *
6351 # define const
6352 #endif
6354 /* The mapping between symbol names and symbols. */
6355 const struct {
6356 const char *name;
6357 lt_ptr_t address;
6359 lt_preloaded_symbols[] =
6362 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6363 cat <<\EOF >> conftest.$ac_ext
6364 {0, (lt_ptr_t) 0}
6367 #ifdef __cplusplus
6369 #endif
6371 # Now try linking the two files.
6372 mv conftest.$ac_objext conftstm.$ac_objext
6373 lt_save_LIBS="$LIBS"
6374 lt_save_CFLAGS="$CFLAGS"
6375 LIBS="conftstm.$ac_objext"
6376 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6382 pipe_works=yes
6384 LIBS="$lt_save_LIBS"
6385 CFLAGS="$lt_save_CFLAGS"
6386 else
6387 echo "cannot find nm_test_func in $nlist" >&5
6389 else
6390 echo "cannot find nm_test_var in $nlist" >&5
6392 else
6393 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6395 else
6396 echo "$progname: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6399 rm -f conftest* conftst*
6401 # Do not use the global_symbol_pipe unless it works.
6402 if test "$pipe_works" = yes; then
6403 break
6404 else
6405 lt_cv_sys_global_symbol_pipe=
6407 done
6411 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6412 lt_cv_sys_global_symbol_to_cdecl=
6414 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6415 { echo "$as_me:$LINENO: result: failed" >&5
6416 echo "${ECHO_T}failed" >&6; }
6417 else
6418 { echo "$as_me:$LINENO: result: ok" >&5
6419 echo "${ECHO_T}ok" >&6; }
6422 { echo "$as_me:$LINENO: checking for objdir" >&5
6423 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6424 if test "${lt_cv_objdir+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427 rm -f .libs 2>/dev/null
6428 mkdir .libs 2>/dev/null
6429 if test -d .libs; then
6430 lt_cv_objdir=.libs
6431 else
6432 # MS-DOS does not allow filenames that begin with a dot.
6433 lt_cv_objdir=_libs
6435 rmdir .libs 2>/dev/null
6437 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6438 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6439 objdir=$lt_cv_objdir
6445 case $host_os in
6446 aix3*)
6447 # AIX sometimes has problems with the GCC collect2 program. For some
6448 # reason, if we set the COLLECT_NAMES environment variable, the problems
6449 # vanish in a puff of smoke.
6450 if test "X${COLLECT_NAMES+set}" != Xset; then
6451 COLLECT_NAMES=
6452 export COLLECT_NAMES
6455 esac
6457 # Sed substitution that helps us do robust quoting. It backslashifies
6458 # metacharacters that are still active within double-quoted strings.
6459 Xsed='sed -e 1s/^X//'
6460 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6462 # Same as above, but do not quote variable references.
6463 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6465 # Sed substitution to delay expansion of an escaped shell variable in a
6466 # double_quote_subst'ed string.
6467 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6469 # Sed substitution to avoid accidental globbing in evaled expressions
6470 no_glob_subst='s/\*/\\\*/g'
6472 # Constants:
6473 rm="rm -f"
6475 # Global variables:
6476 default_ofile=libtool
6477 can_build_shared=yes
6479 # All known linkers require a `.a' archive for static linking (except MSVC,
6480 # which needs '.lib').
6481 libext=a
6482 ltmain="$ac_aux_dir/ltmain.sh"
6483 ofile="$default_ofile"
6484 with_gnu_ld="$lt_cv_prog_gnu_ld"
6486 if test -n "$ac_tool_prefix"; then
6487 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6488 set dummy ${ac_tool_prefix}ar; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_prog_AR+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494 if test -n "$AR"; then
6495 ac_cv_prog_AR="$AR" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_AR="${ac_tool_prefix}ar"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6508 done
6509 done
6510 IFS=$as_save_IFS
6514 AR=$ac_cv_prog_AR
6515 if test -n "$AR"; then
6516 { echo "$as_me:$LINENO: result: $AR" >&5
6517 echo "${ECHO_T}$AR" >&6; }
6518 else
6519 { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6525 if test -z "$ac_cv_prog_AR"; then
6526 ac_ct_AR=$AR
6527 # Extract the first word of "ar", so it can be a program name with args.
6528 set dummy ar; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 if test -n "$ac_ct_AR"; then
6535 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_prog_ac_ct_AR="ar"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 break 2
6548 done
6549 done
6550 IFS=$as_save_IFS
6554 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6555 if test -n "$ac_ct_AR"; then
6556 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6557 echo "${ECHO_T}$ac_ct_AR" >&6; }
6558 else
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6563 if test "x$ac_ct_AR" = x; then
6564 AR="false"
6565 else
6566 case $cross_compiling:$ac_tool_warned in
6567 yes:)
6568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6569 whose name does not start with the host triplet. If you think this
6570 configuration is useful to you, please write to autoconf@gnu.org." >&5
6571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6572 whose name does not start with the host triplet. If you think this
6573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576 AR=$ac_ct_AR
6578 else
6579 AR="$ac_cv_prog_AR"
6582 if test -n "$ac_tool_prefix"; then
6583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_prog_RANLIB+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590 if test -n "$RANLIB"; then
6591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6604 done
6605 done
6606 IFS=$as_save_IFS
6610 RANLIB=$ac_cv_prog_RANLIB
6611 if test -n "$RANLIB"; then
6612 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6613 echo "${ECHO_T}$RANLIB" >&6; }
6614 else
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6621 if test -z "$ac_cv_prog_RANLIB"; then
6622 ac_ct_RANLIB=$RANLIB
6623 # Extract the first word of "ranlib", so it can be a program name with args.
6624 set dummy ranlib; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 if test -n "$ac_ct_RANLIB"; then
6631 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_ac_ct_RANLIB="ranlib"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6644 done
6645 done
6646 IFS=$as_save_IFS
6650 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6651 if test -n "$ac_ct_RANLIB"; then
6652 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6653 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6654 else
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6659 if test "x$ac_ct_RANLIB" = x; then
6660 RANLIB=":"
6661 else
6662 case $cross_compiling:$ac_tool_warned in
6663 yes:)
6664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6665 whose name does not start with the host triplet. If you think this
6666 configuration is useful to you, please write to autoconf@gnu.org." >&5
6667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6668 whose name does not start with the host triplet. If you think this
6669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6670 ac_tool_warned=yes ;;
6671 esac
6672 RANLIB=$ac_ct_RANLIB
6674 else
6675 RANLIB="$ac_cv_prog_RANLIB"
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_STRIP+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 if test -n "$STRIP"; then
6687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6700 done
6701 done
6702 IFS=$as_save_IFS
6706 STRIP=$ac_cv_prog_STRIP
6707 if test -n "$STRIP"; then
6708 { echo "$as_me:$LINENO: result: $STRIP" >&5
6709 echo "${ECHO_T}$STRIP" >&6; }
6710 else
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6717 if test -z "$ac_cv_prog_STRIP"; then
6718 ac_ct_STRIP=$STRIP
6719 # Extract the first word of "strip", so it can be a program name with args.
6720 set dummy strip; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 if test -n "$ac_ct_STRIP"; then
6727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_ac_ct_STRIP="strip"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6740 done
6741 done
6742 IFS=$as_save_IFS
6746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6747 if test -n "$ac_ct_STRIP"; then
6748 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6749 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6750 else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6755 if test "x$ac_ct_STRIP" = x; then
6756 STRIP=":"
6757 else
6758 case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet. If you think this
6762 configuration is useful to you, please write to autoconf@gnu.org." >&5
6763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6764 whose name does not start with the host triplet. If you think this
6765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768 STRIP=$ac_ct_STRIP
6770 else
6771 STRIP="$ac_cv_prog_STRIP"
6775 old_CC="$CC"
6776 old_CFLAGS="$CFLAGS"
6778 # Set sane defaults for various variables
6779 test -z "$AR" && AR=ar
6780 test -z "$AR_FLAGS" && AR_FLAGS=cru
6781 test -z "$AS" && AS=as
6782 test -z "$CC" && CC=cc
6783 test -z "$LTCC" && LTCC=$CC
6784 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6785 test -z "$DLLTOOL" && DLLTOOL=dlltool
6786 test -z "$LD" && LD=ld
6787 test -z "$LN_S" && LN_S="ln -s"
6788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6789 test -z "$NM" && NM=nm
6790 test -z "$SED" && SED=sed
6791 test -z "$OBJDUMP" && OBJDUMP=objdump
6792 test -z "$RANLIB" && RANLIB=:
6793 test -z "$STRIP" && STRIP=:
6794 test -z "$ac_objext" && ac_objext=o
6796 # Determine commands to create old-style static archives.
6797 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6798 old_postinstall_cmds='chmod 644 $oldlib'
6799 old_postuninstall_cmds=
6801 if test -n "$RANLIB"; then
6802 case $host_os in
6803 openbsd*)
6804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6807 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6809 esac
6810 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6813 for cc_temp in $compiler""; do
6814 case $cc_temp in
6815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6817 \-*) ;;
6818 *) break;;
6819 esac
6820 done
6821 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6824 # Only perform the check for file, if the check method requires it
6825 case $deplibs_check_method in
6826 file_magic*)
6827 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6828 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6829 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6830 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 case $MAGIC_CMD in
6834 [\\/*] | ?:[\\/]*)
6835 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6838 lt_save_MAGIC_CMD="$MAGIC_CMD"
6839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6840 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6841 for ac_dir in $ac_dummy; do
6842 IFS="$lt_save_ifs"
6843 test -z "$ac_dir" && ac_dir=.
6844 if test -f $ac_dir/${ac_tool_prefix}file; then
6845 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6846 if test -n "$file_magic_test_file"; then
6847 case $deplibs_check_method in
6848 "file_magic "*)
6849 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6851 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6852 $EGREP "$file_magic_regex" > /dev/null; then
6854 else
6855 cat <<EOF 1>&2
6857 *** Warning: the command libtool uses to detect shared libraries,
6858 *** $file_magic_cmd, produces output that libtool cannot recognize.
6859 *** The result is that libtool may fail to recognize shared libraries
6860 *** as such. This will affect the creation of libtool libraries that
6861 *** depend on shared libraries, but programs linked with such libtool
6862 *** libraries will work regardless of this problem. Nevertheless, you
6863 *** may want to report the problem to your system manager and/or to
6864 *** bug-libtool@gnu.org
6867 fi ;;
6868 esac
6870 break
6872 done
6873 IFS="$lt_save_ifs"
6874 MAGIC_CMD="$lt_save_MAGIC_CMD"
6876 esac
6879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6880 if test -n "$MAGIC_CMD"; then
6881 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6882 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6883 else
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6888 if test -z "$lt_cv_path_MAGIC_CMD"; then
6889 if test -n "$ac_tool_prefix"; then
6890 { echo "$as_me:$LINENO: checking for file" >&5
6891 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6892 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 case $MAGIC_CMD in
6896 [\\/*] | ?:[\\/]*)
6897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6900 lt_save_MAGIC_CMD="$MAGIC_CMD"
6901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6903 for ac_dir in $ac_dummy; do
6904 IFS="$lt_save_ifs"
6905 test -z "$ac_dir" && ac_dir=.
6906 if test -f $ac_dir/file; then
6907 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6908 if test -n "$file_magic_test_file"; then
6909 case $deplibs_check_method in
6910 "file_magic "*)
6911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6914 $EGREP "$file_magic_regex" > /dev/null; then
6916 else
6917 cat <<EOF 1>&2
6919 *** Warning: the command libtool uses to detect shared libraries,
6920 *** $file_magic_cmd, produces output that libtool cannot recognize.
6921 *** The result is that libtool may fail to recognize shared libraries
6922 *** as such. This will affect the creation of libtool libraries that
6923 *** depend on shared libraries, but programs linked with such libtool
6924 *** libraries will work regardless of this problem. Nevertheless, you
6925 *** may want to report the problem to your system manager and/or to
6926 *** bug-libtool@gnu.org
6929 fi ;;
6930 esac
6932 break
6934 done
6935 IFS="$lt_save_ifs"
6936 MAGIC_CMD="$lt_save_MAGIC_CMD"
6938 esac
6941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6942 if test -n "$MAGIC_CMD"; then
6943 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6944 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6945 else
6946 { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6950 else
6951 MAGIC_CMD=:
6957 esac
6959 enable_dlopen=no
6960 enable_win32_dll=no
6962 # Check whether --enable-libtool-lock was given.
6963 if test "${enable_libtool_lock+set}" = set; then
6964 enableval=$enable_libtool_lock;
6967 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6970 # Check whether --with-pic was given.
6971 if test "${with_pic+set}" = set; then
6972 withval=$with_pic; pic_mode="$withval"
6973 else
6974 pic_mode=default
6977 test -z "$pic_mode" && pic_mode=default
6979 # Use C for the default configuration in the libtool script
6980 tagname=
6981 lt_save_CC="$CC"
6982 ac_ext=c
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989 # Source file extension for C test sources.
6990 ac_ext=c
6992 # Object file extension for compiled C test sources.
6993 objext=o
6994 objext=$objext
6996 # Code to be used in simple compile tests
6997 lt_simple_compile_test_code="int some_variable = 0;"
6999 # Code to be used in simple link tests
7000 lt_simple_link_test_code='int main(){return(0);}'
7003 # If no C compiler was specified, use CC.
7004 LTCC=${LTCC-"$CC"}
7006 # If no C compiler flags were specified, use CFLAGS.
7007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7009 # Allow CC to be a program name with arguments.
7010 compiler=$CC
7013 # save warnings/boilerplate of simple test code
7014 ac_outfile=conftest.$ac_objext
7015 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7017 _lt_compiler_boilerplate=`cat conftest.err`
7018 $rm conftest*
7020 ac_outfile=conftest.$ac_objext
7021 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7023 _lt_linker_boilerplate=`cat conftest.err`
7024 $rm conftest*
7028 lt_prog_compiler_no_builtin_flag=
7030 if test "$GCC" = yes; then
7031 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7034 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7035 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7036 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 lt_cv_prog_compiler_rtti_exceptions=no
7040 ac_outfile=conftest.$ac_objext
7041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7042 lt_compiler_flag="-fno-rtti -fno-exceptions"
7043 # Insert the option either (1) after the last *FLAGS variable, or
7044 # (2) before a word containing "conftest.", or (3) at the end.
7045 # Note that $ac_compile itself does not contain backslashes and begins
7046 # with a dollar sign (not a hyphen), so the echo should work correctly.
7047 # The option is referenced via a variable to avoid confusing sed.
7048 lt_compile=`echo "$ac_compile" | $SED \
7049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7051 -e 's:$: $lt_compiler_flag:'`
7052 (eval echo "\"\$as_me:7052: $lt_compile\"" >&5)
7053 (eval "$lt_compile" 2>conftest.err)
7054 ac_status=$?
7055 cat conftest.err >&5
7056 echo "$as_me:7056: \$? = $ac_status" >&5
7057 if (exit $ac_status) && test -s "$ac_outfile"; then
7058 # The compiler can only warn and ignore the option if not recognized
7059 # So say no if there are warnings other than the usual output.
7060 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7063 lt_cv_prog_compiler_rtti_exceptions=yes
7066 $rm conftest*
7069 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7070 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7072 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7073 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7074 else
7080 lt_prog_compiler_wl=
7081 lt_prog_compiler_pic=
7082 lt_prog_compiler_static=
7084 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7085 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7087 if test "$GCC" = yes; then
7088 lt_prog_compiler_wl='-Wl,'
7089 lt_prog_compiler_static='-static'
7091 case $host_os in
7092 aix*)
7093 # All AIX code is PIC.
7094 if test "$host_cpu" = ia64; then
7095 # AIX 5 now supports IA64 processor
7096 lt_prog_compiler_static='-Bstatic'
7100 amigaos*)
7101 # FIXME: we need at least 68020 code to build shared libraries, but
7102 # adding the `-m68020' flag to GCC prevents building anything better,
7103 # like `-m68040'.
7104 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7108 # PIC is the default for these OSes.
7111 mingw* | cygwin* | pw32* | os2*)
7112 # This hack is so that the source file can tell whether it is being
7113 # built for inclusion in a dll (and should export symbols for example).
7114 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7115 # (--disable-auto-import) libraries
7116 lt_prog_compiler_pic='-DDLL_EXPORT'
7119 darwin* | rhapsody*)
7120 # PIC is the default on this platform
7121 # Common symbols not allowed in MH_DYLIB files
7122 lt_prog_compiler_pic='-fno-common'
7125 interix[3-9]*)
7126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7127 # Instead, we relocate shared libraries at runtime.
7130 msdosdjgpp*)
7131 # Just because we use GCC doesn't mean we suddenly get shared libraries
7132 # on systems that don't support them.
7133 lt_prog_compiler_can_build_shared=no
7134 enable_shared=no
7137 sysv4*MP*)
7138 if test -d /usr/nec; then
7139 lt_prog_compiler_pic=-Kconform_pic
7143 hpux*)
7144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7145 # not for PA HP-UX.
7146 case $host_cpu in
7147 hppa*64*|ia64*)
7148 # +Z the default
7151 lt_prog_compiler_pic='-fPIC'
7153 esac
7157 lt_prog_compiler_pic='-fPIC'
7159 esac
7160 else
7161 # PORTME Check for flag to pass linker flags through the system compiler.
7162 case $host_os in
7163 aix*)
7164 lt_prog_compiler_wl='-Wl,'
7165 if test "$host_cpu" = ia64; then
7166 # AIX 5 now supports IA64 processor
7167 lt_prog_compiler_static='-Bstatic'
7168 else
7169 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7172 darwin*)
7173 # PIC is the default on this platform
7174 # Common symbols not allowed in MH_DYLIB files
7175 case $cc_basename in
7176 xlc*)
7177 lt_prog_compiler_pic='-qnocommon'
7178 lt_prog_compiler_wl='-Wl,'
7180 esac
7183 mingw* | cygwin* | pw32* | os2*)
7184 # This hack is so that the source file can tell whether it is being
7185 # built for inclusion in a dll (and should export symbols for example).
7186 lt_prog_compiler_pic='-DDLL_EXPORT'
7189 hpux9* | hpux10* | hpux11*)
7190 lt_prog_compiler_wl='-Wl,'
7191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7192 # not for PA HP-UX.
7193 case $host_cpu in
7194 hppa*64*|ia64*)
7195 # +Z the default
7198 lt_prog_compiler_pic='+Z'
7200 esac
7201 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7202 lt_prog_compiler_static='${wl}-a ${wl}archive'
7205 irix5* | irix6* | nonstopux*)
7206 lt_prog_compiler_wl='-Wl,'
7207 # PIC (with -KPIC) is the default.
7208 lt_prog_compiler_static='-non_shared'
7211 newsos6)
7212 lt_prog_compiler_pic='-KPIC'
7213 lt_prog_compiler_static='-Bstatic'
7216 linux* | k*bsd*-gnu)
7217 case $cc_basename in
7218 icc* | ecc*)
7219 lt_prog_compiler_wl='-Wl,'
7220 lt_prog_compiler_pic='-KPIC'
7221 lt_prog_compiler_static='-static'
7223 pgcc* | pgf77* | pgf90* | pgf95*)
7224 # Portland Group compilers (*not* the Pentium gcc compiler,
7225 # which looks to be a dead project)
7226 lt_prog_compiler_wl='-Wl,'
7227 lt_prog_compiler_pic='-fpic'
7228 lt_prog_compiler_static='-Bstatic'
7230 ccc*)
7231 lt_prog_compiler_wl='-Wl,'
7232 # All Alpha code is PIC.
7233 lt_prog_compiler_static='-non_shared'
7236 case `$CC -V 2>&1 | sed 5q` in
7237 *Sun\ C*)
7238 # Sun C 5.9
7239 lt_prog_compiler_pic='-KPIC'
7240 lt_prog_compiler_static='-Bstatic'
7241 lt_prog_compiler_wl='-Wl,'
7243 *Sun\ F*)
7244 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7245 lt_prog_compiler_pic='-KPIC'
7246 lt_prog_compiler_static='-Bstatic'
7247 lt_prog_compiler_wl=''
7249 esac
7251 esac
7254 osf3* | osf4* | osf5*)
7255 lt_prog_compiler_wl='-Wl,'
7256 # All OSF/1 code is PIC.
7257 lt_prog_compiler_static='-non_shared'
7260 rdos*)
7261 lt_prog_compiler_static='-non_shared'
7264 solaris*)
7265 lt_prog_compiler_pic='-KPIC'
7266 lt_prog_compiler_static='-Bstatic'
7267 case $cc_basename in
7268 f77* | f90* | f95*)
7269 lt_prog_compiler_wl='-Qoption ld ';;
7271 lt_prog_compiler_wl='-Wl,';;
7272 esac
7275 sunos4*)
7276 lt_prog_compiler_wl='-Qoption ld '
7277 lt_prog_compiler_pic='-PIC'
7278 lt_prog_compiler_static='-Bstatic'
7281 sysv4 | sysv4.2uw2* | sysv4.3*)
7282 lt_prog_compiler_wl='-Wl,'
7283 lt_prog_compiler_pic='-KPIC'
7284 lt_prog_compiler_static='-Bstatic'
7287 sysv4*MP*)
7288 if test -d /usr/nec ;then
7289 lt_prog_compiler_pic='-Kconform_pic'
7290 lt_prog_compiler_static='-Bstatic'
7294 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_pic='-KPIC'
7297 lt_prog_compiler_static='-Bstatic'
7300 unicos*)
7301 lt_prog_compiler_wl='-Wl,'
7302 lt_prog_compiler_can_build_shared=no
7305 uts4*)
7306 lt_prog_compiler_pic='-pic'
7307 lt_prog_compiler_static='-Bstatic'
7311 lt_prog_compiler_can_build_shared=no
7313 esac
7316 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7317 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7320 # Check to make sure the PIC flag actually works.
7322 if test -n "$lt_prog_compiler_pic"; then
7324 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7325 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7326 if test "${lt_prog_compiler_pic_works+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329 lt_prog_compiler_pic_works=no
7330 ac_outfile=conftest.$ac_objext
7331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7332 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7333 # Insert the option either (1) after the last *FLAGS variable, or
7334 # (2) before a word containing "conftest.", or (3) at the end.
7335 # Note that $ac_compile itself does not contain backslashes and begins
7336 # with a dollar sign (not a hyphen), so the echo should work correctly.
7337 # The option is referenced via a variable to avoid confusing sed.
7338 lt_compile=`echo "$ac_compile" | $SED \
7339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7341 -e 's:$: $lt_compiler_flag:'`
7342 (eval echo "\"\$as_me:7342: $lt_compile\"" >&5)
7343 (eval "$lt_compile" 2>conftest.err)
7344 ac_status=$?
7345 cat conftest.err >&5
7346 echo "$as_me:7346: \$? = $ac_status" >&5
7347 if (exit $ac_status) && test -s "$ac_outfile"; then
7348 # The compiler can only warn and ignore the option if not recognized
7349 # So say no if there are warnings other than the usual output.
7350 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7353 lt_prog_compiler_pic_works=yes
7356 $rm conftest*
7359 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7360 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7362 if test x"$lt_prog_compiler_pic_works" = xyes; then
7363 case $lt_prog_compiler_pic in
7364 "" | " "*) ;;
7365 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7366 esac
7367 else
7368 lt_prog_compiler_pic=
7369 lt_prog_compiler_can_build_shared=no
7373 case $host_os in
7374 # For platforms which do not support PIC, -DPIC is meaningless:
7375 *djgpp*)
7376 lt_prog_compiler_pic=
7379 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7381 esac
7384 # Check to make sure the static flag actually works.
7386 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7387 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7388 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7389 if test "${lt_prog_compiler_static_works+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 lt_prog_compiler_static_works=no
7393 save_LDFLAGS="$LDFLAGS"
7394 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7397 # The linker can only warn and ignore the option if not recognized
7398 # So say no if there are warnings
7399 if test -s conftest.err; then
7400 # Append any errors to the config.log.
7401 cat conftest.err 1>&5
7402 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7404 if diff conftest.exp conftest.er2 >/dev/null; then
7405 lt_prog_compiler_static_works=yes
7407 else
7408 lt_prog_compiler_static_works=yes
7411 $rm conftest*
7412 LDFLAGS="$save_LDFLAGS"
7415 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7416 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7418 if test x"$lt_prog_compiler_static_works" = xyes; then
7420 else
7421 lt_prog_compiler_static=
7425 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7426 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7427 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 lt_cv_prog_compiler_c_o=no
7431 $rm -r conftest 2>/dev/null
7432 mkdir conftest
7433 cd conftest
7434 mkdir out
7435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7437 lt_compiler_flag="-o out/conftest2.$ac_objext"
7438 # Insert the option either (1) after the last *FLAGS variable, or
7439 # (2) before a word containing "conftest.", or (3) at the end.
7440 # Note that $ac_compile itself does not contain backslashes and begins
7441 # with a dollar sign (not a hyphen), so the echo should work correctly.
7442 lt_compile=`echo "$ac_compile" | $SED \
7443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7445 -e 's:$: $lt_compiler_flag:'`
7446 (eval echo "\"\$as_me:7446: $lt_compile\"" >&5)
7447 (eval "$lt_compile" 2>out/conftest.err)
7448 ac_status=$?
7449 cat out/conftest.err >&5
7450 echo "$as_me:7450: \$? = $ac_status" >&5
7451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7452 then
7453 # The compiler can only warn and ignore the option if not recognized
7454 # So say no if there are warnings
7455 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7458 lt_cv_prog_compiler_c_o=yes
7461 chmod u+w . 2>&5
7462 $rm conftest*
7463 # SGI C++ compiler will create directory out/ii_files/ for
7464 # template instantiation
7465 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7466 $rm out/* && rmdir out
7467 cd ..
7468 rmdir conftest
7469 $rm conftest*
7472 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7473 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7476 hard_links="nottested"
7477 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7478 # do not overwrite the value of need_locks provided by the user
7479 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7480 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7481 hard_links=yes
7482 $rm conftest*
7483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7484 touch conftest.a
7485 ln conftest.a conftest.b 2>&5 || hard_links=no
7486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7487 { echo "$as_me:$LINENO: result: $hard_links" >&5
7488 echo "${ECHO_T}$hard_links" >&6; }
7489 if test "$hard_links" = no; then
7490 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7491 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7492 need_locks=warn
7494 else
7495 need_locks=no
7498 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7499 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7501 runpath_var=
7502 allow_undefined_flag=
7503 enable_shared_with_static_runtimes=no
7504 archive_cmds=
7505 archive_expsym_cmds=
7506 old_archive_From_new_cmds=
7507 old_archive_from_expsyms_cmds=
7508 export_dynamic_flag_spec=
7509 whole_archive_flag_spec=
7510 thread_safe_flag_spec=
7511 hardcode_libdir_flag_spec=
7512 hardcode_libdir_flag_spec_ld=
7513 hardcode_libdir_separator=
7514 hardcode_direct=no
7515 hardcode_minus_L=no
7516 hardcode_shlibpath_var=unsupported
7517 link_all_deplibs=unknown
7518 hardcode_automatic=no
7519 module_cmds=
7520 module_expsym_cmds=
7521 always_export_symbols=no
7522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7523 # include_expsyms should be a list of space-separated symbols to be *always*
7524 # included in the symbol list
7525 include_expsyms=
7526 # exclude_expsyms can be an extended regexp of symbols to exclude
7527 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7528 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7529 # as well as any symbol that contains `d'.
7530 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7531 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7532 # platforms (ab)use it in PIC code, but their linkers get confused if
7533 # the symbol is explicitly referenced. Since portable code cannot
7534 # rely on this symbol name, it's probably fine to never include it in
7535 # preloaded symbol tables.
7536 extract_expsyms_cmds=
7537 # Just being paranoid about ensuring that cc_basename is set.
7538 for cc_temp in $compiler""; do
7539 case $cc_temp in
7540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7542 \-*) ;;
7543 *) break;;
7544 esac
7545 done
7546 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7548 case $host_os in
7549 cygwin* | mingw* | pw32*)
7550 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7551 # When not using gcc, we currently assume that we are using
7552 # Microsoft Visual C++.
7553 if test "$GCC" != yes; then
7554 with_gnu_ld=no
7557 interix*)
7558 # we just hope/assume this is gcc and not c89 (= MSVC++)
7559 with_gnu_ld=yes
7561 openbsd*)
7562 with_gnu_ld=no
7564 esac
7566 ld_shlibs=yes
7567 if test "$with_gnu_ld" = yes; then
7568 # If archive_cmds runs LD, not CC, wlarc should be empty
7569 wlarc='${wl}'
7571 # Set some defaults for GNU ld with shared library support. These
7572 # are reset later if shared libraries are not supported. Putting them
7573 # here allows them to be overridden if necessary.
7574 runpath_var=LD_RUN_PATH
7575 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7576 export_dynamic_flag_spec='${wl}--export-dynamic'
7577 # ancient GNU ld didn't support --whole-archive et. al.
7578 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7579 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7580 else
7581 whole_archive_flag_spec=
7583 supports_anon_versioning=no
7584 case `$LD -v 2>/dev/null` in
7585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7588 *\ 2.11.*) ;; # other 2.11 versions
7589 *) supports_anon_versioning=yes ;;
7590 esac
7592 # See if GNU ld supports shared libraries.
7593 case $host_os in
7594 aix3* | aix4* | aix5*)
7595 # On AIX/PPC, the GNU linker is very broken
7596 if test "$host_cpu" != ia64; then
7597 ld_shlibs=no
7598 cat <<EOF 1>&2
7600 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7601 *** to be unable to reliably create shared libraries on AIX.
7602 *** Therefore, libtool is disabling shared libraries support. If you
7603 *** really care for shared libraries, you may want to modify your PATH
7604 *** so that a non-GNU linker is found, and then restart.
7610 amigaos*)
7611 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)'
7612 hardcode_libdir_flag_spec='-L$libdir'
7613 hardcode_minus_L=yes
7615 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7616 # that the semantics of dynamic libraries on AmigaOS, at least up
7617 # to version 4, is to share data among multiple programs linked
7618 # with the same dynamic library. Since this doesn't match the
7619 # behavior of shared libraries on other platforms, we can't use
7620 # them.
7621 ld_shlibs=no
7624 beos*)
7625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7626 allow_undefined_flag=unsupported
7627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7628 # support --undefined. This deserves some investigation. FIXME
7629 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7630 else
7631 ld_shlibs=no
7635 cygwin* | mingw* | pw32*)
7636 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7637 # as there is no search path for DLLs.
7638 hardcode_libdir_flag_spec='-L$libdir'
7639 allow_undefined_flag=unsupported
7640 always_export_symbols=no
7641 enable_shared_with_static_runtimes=yes
7642 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7644 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7646 # If the export-symbols file already is a .def file (1st line
7647 # is EXPORTS), use it as is; otherwise, prepend...
7648 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7649 cp $export_symbols $output_objdir/$soname.def;
7650 else
7651 echo EXPORTS > $output_objdir/$soname.def;
7652 cat $export_symbols >> $output_objdir/$soname.def;
7654 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7655 else
7656 ld_shlibs=no
7660 interix[3-9]*)
7661 hardcode_direct=no
7662 hardcode_shlibpath_var=no
7663 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7664 export_dynamic_flag_spec='${wl}-E'
7665 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7666 # Instead, shared libraries are loaded at an image base (0x10000000 by
7667 # default) and relocated if they conflict, which is a slow very memory
7668 # consuming and fragmenting process. To avoid this, we pick a random,
7669 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7670 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7671 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7672 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'
7675 gnu* | linux* | k*bsd*-gnu)
7676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7677 tmp_addflag=
7678 case $cc_basename,$host_cpu in
7679 pgcc*) # Portland Group C compiler
7680 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'
7681 tmp_addflag=' $pic_flag'
7683 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7684 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'
7685 tmp_addflag=' $pic_flag -Mnomain' ;;
7686 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7687 tmp_addflag=' -i_dynamic' ;;
7688 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7689 tmp_addflag=' -i_dynamic -nofor_main' ;;
7690 ifc* | ifort*) # Intel Fortran compiler
7691 tmp_addflag=' -nofor_main' ;;
7692 esac
7693 case `$CC -V 2>&1 | sed 5q` in
7694 *Sun\ C*) # Sun C 5.9
7695 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'
7696 tmp_sharedflag='-G' ;;
7697 *Sun\ F*) # Sun Fortran 8.3
7698 tmp_sharedflag='-G' ;;
7700 tmp_sharedflag='-shared' ;;
7701 esac
7702 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7704 if test $supports_anon_versioning = yes; then
7705 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7707 $echo "local: *; };" >> $output_objdir/$libname.ver~
7708 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7710 else
7711 ld_shlibs=no
7715 netbsd*)
7716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7717 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7718 wlarc=
7719 else
7720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7725 solaris*)
7726 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7727 ld_shlibs=no
7728 cat <<EOF 1>&2
7730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7731 *** create shared libraries on Solaris systems. Therefore, libtool
7732 *** is disabling shared libraries support. We urge you to upgrade GNU
7733 *** binutils to release 2.9.1 or newer. Another option is to modify
7734 *** your PATH or compiler configuration so that the native linker is
7735 *** used, and then restart.
7738 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7741 else
7742 ld_shlibs=no
7746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7747 case `$LD -v 2>&1` in
7748 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7749 ld_shlibs=no
7750 cat <<_LT_EOF 1>&2
7752 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7753 *** reliably create shared libraries on SCO systems. Therefore, libtool
7754 *** is disabling shared libraries support. We urge you to upgrade GNU
7755 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7756 *** your PATH or compiler configuration so that the native linker is
7757 *** used, and then restart.
7759 _LT_EOF
7762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7763 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7766 else
7767 ld_shlibs=no
7770 esac
7773 sunos4*)
7774 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7775 wlarc=
7776 hardcode_direct=yes
7777 hardcode_shlibpath_var=no
7781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7784 else
7785 ld_shlibs=no
7788 esac
7790 if test "$ld_shlibs" = no; then
7791 runpath_var=
7792 hardcode_libdir_flag_spec=
7793 export_dynamic_flag_spec=
7794 whole_archive_flag_spec=
7796 else
7797 # PORTME fill in a description of your system's linker (not GNU ld)
7798 case $host_os in
7799 aix3*)
7800 allow_undefined_flag=unsupported
7801 always_export_symbols=yes
7802 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'
7803 # Note: this linker hardcodes the directories in LIBPATH if there
7804 # are no directories specified by -L.
7805 hardcode_minus_L=yes
7806 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7807 # Neither direct hardcoding nor static linking is supported with a
7808 # broken collect2.
7809 hardcode_direct=unsupported
7813 aix4* | aix5*)
7814 if test "$host_cpu" = ia64; then
7815 # On IA64, the linker does run time linking by default, so we don't
7816 # have to do anything special.
7817 aix_use_runtimelinking=no
7818 exp_sym_flag='-Bexport'
7819 no_entry_flag=""
7820 else
7821 # If we're using GNU nm, then we don't want the "-C" option.
7822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7823 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7824 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'
7825 else
7826 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'
7828 aix_use_runtimelinking=no
7830 # Test if we are trying to use run time linking or normal
7831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7832 # need to do runtime linking.
7833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7834 for ld_flag in $LDFLAGS; do
7835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7836 aix_use_runtimelinking=yes
7837 break
7839 done
7841 esac
7843 exp_sym_flag='-bexport'
7844 no_entry_flag='-bnoentry'
7847 # When large executables or shared objects are built, AIX ld can
7848 # have problems creating the table of contents. If linking a library
7849 # or program results in "error TOC overflow" add -mminimal-toc to
7850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7853 archive_cmds=''
7854 hardcode_direct=yes
7855 hardcode_libdir_separator=':'
7856 link_all_deplibs=yes
7858 if test "$GCC" = yes; then
7859 case $host_os in aix4.[012]|aix4.[012].*)
7860 # We only want to do this on AIX 4.2 and lower, the check
7861 # below for broken collect2 doesn't work under 4.3+
7862 collect2name=`${CC} -print-prog-name=collect2`
7863 if test -f "$collect2name" && \
7864 strings "$collect2name" | grep resolve_lib_name >/dev/null
7865 then
7866 # We have reworked collect2
7868 else
7869 # We have old collect2
7870 hardcode_direct=unsupported
7871 # It fails to find uninstalled libraries when the uninstalled
7872 # path is not listed in the libpath. Setting hardcode_minus_L
7873 # to unsupported forces relinking
7874 hardcode_minus_L=yes
7875 hardcode_libdir_flag_spec='-L$libdir'
7876 hardcode_libdir_separator=
7879 esac
7880 shared_flag='-shared'
7881 if test "$aix_use_runtimelinking" = yes; then
7882 shared_flag="$shared_flag "'${wl}-G'
7884 else
7885 # not using gcc
7886 if test "$host_cpu" = ia64; then
7887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7888 # chokes on -Wl,-G. The following line is correct:
7889 shared_flag='-G'
7890 else
7891 if test "$aix_use_runtimelinking" = yes; then
7892 shared_flag='${wl}-G'
7893 else
7894 shared_flag='${wl}-bM:SRE'
7899 # It seems that -bexpall does not export symbols beginning with
7900 # underscore (_), so it is better to generate a list of symbols to export.
7901 always_export_symbols=yes
7902 if test "$aix_use_runtimelinking" = yes; then
7903 # Warning - without using the other runtime loading flags (-brtl),
7904 # -berok will link without error, but may produce a broken library.
7905 allow_undefined_flag='-berok'
7906 # Determine the default libpath from the value encoded in an empty executable.
7907 cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h. */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7915 main ()
7919 return 0;
7921 _ACEOF
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7924 case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_link") 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest$ac_exeext &&
7939 $as_test_x conftest$ac_exeext; then
7941 lt_aix_libpath_sed='
7942 /Import File Strings/,/^$/ {
7943 /^0/ {
7944 s/^0 *\(.*\)$/\1/
7948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949 # Check for a 64-bit object if we didn't find anything.
7950 if test -z "$aix_libpath"; then
7951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
7962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7965 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7966 else
7967 if test "$host_cpu" = ia64; then
7968 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7969 allow_undefined_flag="-z nodefs"
7970 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"
7971 else
7972 # Determine the default libpath from the value encoded in an empty executable.
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7981 main ()
7985 return 0;
7987 _ACEOF
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (ac_try="$ac_link"
7990 case "(($ac_try" in
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7993 esac
7994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995 (eval "$ac_link") 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } && {
8002 test -z "$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 } && test -s conftest$ac_exeext &&
8005 $as_test_x conftest$ac_exeext; then
8007 lt_aix_libpath_sed='
8008 /Import File Strings/,/^$/ {
8009 /^0/ {
8010 s/^0 *\(.*\)$/\1/
8014 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8015 # Check for a 64-bit object if we didn't find anything.
8016 if test -z "$aix_libpath"; then
8017 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8027 conftest$ac_exeext conftest.$ac_ext
8028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8031 # Warning - without using the other run time loading flags,
8032 # -berok will link without error, but may produce a broken library.
8033 no_undefined_flag=' ${wl}-bernotok'
8034 allow_undefined_flag=' ${wl}-berok'
8035 # Exported symbols can be pulled into shared objects from archives
8036 whole_archive_flag_spec='$convenience'
8037 archive_cmds_need_lc=yes
8038 # This is similar to how AIX traditionally builds its shared libraries.
8039 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'
8044 amigaos*)
8045 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)'
8046 hardcode_libdir_flag_spec='-L$libdir'
8047 hardcode_minus_L=yes
8048 # see comment about different semantics on the GNU ld section
8049 ld_shlibs=no
8052 bsdi[45]*)
8053 export_dynamic_flag_spec=-rdynamic
8056 cygwin* | mingw* | pw32*)
8057 # When not using gcc, we currently assume that we are using
8058 # Microsoft Visual C++.
8059 # hardcode_libdir_flag_spec is actually meaningless, as there is
8060 # no search path for DLLs.
8061 hardcode_libdir_flag_spec=' '
8062 allow_undefined_flag=unsupported
8063 # Tell ltmain to make .lib files, not .a files.
8064 libext=lib
8065 # Tell ltmain to make .dll files, not .so files.
8066 shrext_cmds=".dll"
8067 # FIXME: Setting linknames here is a bad hack.
8068 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8069 # The linker will automatically build a .lib file if we build a DLL.
8070 old_archive_From_new_cmds='true'
8071 # FIXME: Should let the user specify the lib program.
8072 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8073 fix_srcfile_path='`cygpath -w "$srcfile"`'
8074 enable_shared_with_static_runtimes=yes
8077 darwin* | rhapsody*)
8078 case $host_os in
8079 rhapsody* | darwin1.[012])
8080 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8082 *) # Darwin 1.3 on
8083 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8084 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8085 else
8086 case ${MACOSX_DEPLOYMENT_TARGET} in
8087 10.[012])
8088 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8090 10.*)
8091 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8093 esac
8096 esac
8097 archive_cmds_need_lc=no
8098 hardcode_direct=no
8099 hardcode_automatic=yes
8100 hardcode_shlibpath_var=unsupported
8101 whole_archive_flag_spec=''
8102 link_all_deplibs=yes
8103 if test "$GCC" = yes ; then
8104 output_verbose_link_cmd='echo'
8105 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8106 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8107 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8108 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8109 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8110 else
8111 case $cc_basename in
8112 xlc*)
8113 output_verbose_link_cmd='echo'
8114 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8115 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8117 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8118 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8121 ld_shlibs=no
8123 esac
8127 dgux*)
8128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 hardcode_shlibpath_var=no
8133 freebsd1*)
8134 ld_shlibs=no
8137 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8138 # support. Future versions do this automatically, but an explicit c++rt0.o
8139 # does not break anything, and helps significantly (at the cost of a little
8140 # extra space).
8141 freebsd2.2*)
8142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8143 hardcode_libdir_flag_spec='-R$libdir'
8144 hardcode_direct=yes
8145 hardcode_shlibpath_var=no
8148 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8149 freebsd2*)
8150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_direct=yes
8152 hardcode_minus_L=yes
8153 hardcode_shlibpath_var=no
8156 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8157 freebsd* | dragonfly*)
8158 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8159 hardcode_libdir_flag_spec='-R$libdir'
8160 hardcode_direct=yes
8161 hardcode_shlibpath_var=no
8164 hpux9*)
8165 if test "$GCC" = yes; then
8166 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'
8167 else
8168 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'
8170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8171 hardcode_libdir_separator=:
8172 hardcode_direct=yes
8174 # hardcode_minus_L: Not really in the search PATH,
8175 # but as the default location of the library.
8176 hardcode_minus_L=yes
8177 export_dynamic_flag_spec='${wl}-E'
8180 hpux10*)
8181 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8183 else
8184 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8186 if test "$with_gnu_ld" = no; then
8187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8188 hardcode_libdir_separator=:
8190 hardcode_direct=yes
8191 export_dynamic_flag_spec='${wl}-E'
8193 # hardcode_minus_L: Not really in the search PATH,
8194 # but as the default location of the library.
8195 hardcode_minus_L=yes
8199 hpux11*)
8200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8201 case $host_cpu in
8202 hppa*64*)
8203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8205 ia64*)
8206 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8209 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8211 esac
8212 else
8213 case $host_cpu in
8214 hppa*64*)
8215 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8217 ia64*)
8218 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8221 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8223 esac
8225 if test "$with_gnu_ld" = no; then
8226 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8227 hardcode_libdir_separator=:
8229 case $host_cpu in
8230 hppa*64*|ia64*)
8231 hardcode_libdir_flag_spec_ld='+b $libdir'
8232 hardcode_direct=no
8233 hardcode_shlibpath_var=no
8236 hardcode_direct=yes
8237 export_dynamic_flag_spec='${wl}-E'
8239 # hardcode_minus_L: Not really in the search PATH,
8240 # but as the default location of the library.
8241 hardcode_minus_L=yes
8243 esac
8247 irix5* | irix6* | nonstopux*)
8248 if test "$GCC" = yes; then
8249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8250 else
8251 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8252 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8255 hardcode_libdir_separator=:
8256 link_all_deplibs=yes
8259 netbsd*)
8260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8262 else
8263 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8265 hardcode_libdir_flag_spec='-R$libdir'
8266 hardcode_direct=yes
8267 hardcode_shlibpath_var=no
8270 newsos6)
8271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8272 hardcode_direct=yes
8273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8274 hardcode_libdir_separator=:
8275 hardcode_shlibpath_var=no
8278 openbsd*)
8279 if test -f /usr/libexec/ld.so; then
8280 hardcode_direct=yes
8281 hardcode_shlibpath_var=no
8282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8284 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286 export_dynamic_flag_spec='${wl}-E'
8287 else
8288 case $host_os in
8289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8291 hardcode_libdir_flag_spec='-R$libdir'
8294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8297 esac
8299 else
8300 ld_shlibs=no
8304 os2*)
8305 hardcode_libdir_flag_spec='-L$libdir'
8306 hardcode_minus_L=yes
8307 allow_undefined_flag=unsupported
8308 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'
8309 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8312 osf3*)
8313 if test "$GCC" = yes; then
8314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8315 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8316 else
8317 allow_undefined_flag=' -expect_unresolved \*'
8318 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321 hardcode_libdir_separator=:
8324 osf4* | osf5*) # as osf3* with the addition of -msym flag
8325 if test "$GCC" = yes; then
8326 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8327 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8329 else
8330 allow_undefined_flag=' -expect_unresolved \*'
8331 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8332 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8333 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8335 # Both c and cxx compiler support -rpath directly
8336 hardcode_libdir_flag_spec='-rpath $libdir'
8338 hardcode_libdir_separator=:
8341 solaris*)
8342 no_undefined_flag=' -z text'
8343 if test "$GCC" = yes; then
8344 wlarc='${wl}'
8345 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8347 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8348 else
8349 wlarc=''
8350 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8352 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8354 hardcode_libdir_flag_spec='-R$libdir'
8355 hardcode_shlibpath_var=no
8356 case $host_os in
8357 solaris2.[0-5] | solaris2.[0-5].*) ;;
8359 # The compiler driver will combine and reorder linker options,
8360 # but understands `-z linker_flag'. GCC discards it without `$wl',
8361 # but is careful enough not to reorder.
8362 # Supported since Solaris 2.6 (maybe 2.5.1?)
8363 if test "$GCC" = yes; then
8364 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8365 else
8366 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8369 esac
8370 link_all_deplibs=yes
8373 sunos4*)
8374 if test "x$host_vendor" = xsequent; then
8375 # Use $CC to link under sequent, because it throws in some extra .o
8376 # files that make .init and .fini sections work.
8377 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8378 else
8379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_libdir_flag_spec='-L$libdir'
8382 hardcode_direct=yes
8383 hardcode_minus_L=yes
8384 hardcode_shlibpath_var=no
8387 sysv4)
8388 case $host_vendor in
8389 sni)
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_direct=yes # is this really true???
8393 siemens)
8394 ## LD is ld it makes a PLAMLIB
8395 ## CC just makes a GrossModule.
8396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8397 reload_cmds='$CC -r -o $output$reload_objs'
8398 hardcode_direct=no
8400 motorola)
8401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8404 esac
8405 runpath_var='LD_RUN_PATH'
8406 hardcode_shlibpath_var=no
8409 sysv4.3*)
8410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_shlibpath_var=no
8412 export_dynamic_flag_spec='-Bexport'
8415 sysv4*MP*)
8416 if test -d /usr/nec; then
8417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8418 hardcode_shlibpath_var=no
8419 runpath_var=LD_RUN_PATH
8420 hardcode_runpath_var=yes
8421 ld_shlibs=yes
8425 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8426 no_undefined_flag='${wl}-z,text'
8427 archive_cmds_need_lc=no
8428 hardcode_shlibpath_var=no
8429 runpath_var='LD_RUN_PATH'
8431 if test "$GCC" = yes; then
8432 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434 else
8435 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8436 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 sysv5* | sco3.2v5* | sco5v6*)
8441 # Note: We can NOT use -z defs as we might desire, because we do not
8442 # link with -lc, and that would cause any symbols used from libc to
8443 # always be unresolved, which means just about no library would
8444 # ever link correctly. If we're not using GNU ld we use -z text
8445 # though, which does catch some bad symbols but isn't as heavy-handed
8446 # as -z defs.
8447 no_undefined_flag='${wl}-z,text'
8448 allow_undefined_flag='${wl}-z,nodefs'
8449 archive_cmds_need_lc=no
8450 hardcode_shlibpath_var=no
8451 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8452 hardcode_libdir_separator=':'
8453 link_all_deplibs=yes
8454 export_dynamic_flag_spec='${wl}-Bexport'
8455 runpath_var='LD_RUN_PATH'
8457 if test "$GCC" = yes; then
8458 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460 else
8461 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8462 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466 uts4*)
8467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468 hardcode_libdir_flag_spec='-L$libdir'
8469 hardcode_shlibpath_var=no
8473 ld_shlibs=no
8475 esac
8478 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8479 echo "${ECHO_T}$ld_shlibs" >&6; }
8480 test "$ld_shlibs" = no && can_build_shared=no
8483 # Do we need to explicitly link libc?
8485 case "x$archive_cmds_need_lc" in
8486 x|xyes)
8487 # Assume -lc should be added
8488 archive_cmds_need_lc=yes
8490 if test "$enable_shared" = yes && test "$GCC" = yes; then
8491 case $archive_cmds in
8492 *'~'*)
8493 # FIXME: we may have to deal with multi-command sequences.
8495 '$CC '*)
8496 # Test whether the compiler implicitly links with -lc since on some
8497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8498 # to ld, don't add -lc before -lgcc.
8499 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8500 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8501 $rm conftest*
8502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8505 (eval $ac_compile) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } 2>conftest.err; then
8509 soname=conftest
8510 lib=conftest
8511 libobjs=conftest.$ac_objext
8512 deplibs=
8513 wl=$lt_prog_compiler_wl
8514 pic_flag=$lt_prog_compiler_pic
8515 compiler_flags=-v
8516 linker_flags=-v
8517 verstring=
8518 output_objdir=.
8519 libname=conftest
8520 lt_save_allow_undefined_flag=$allow_undefined_flag
8521 allow_undefined_flag=
8522 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8523 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }
8527 then
8528 archive_cmds_need_lc=no
8529 else
8530 archive_cmds_need_lc=yes
8532 allow_undefined_flag=$lt_save_allow_undefined_flag
8533 else
8534 cat conftest.err 1>&5
8536 $rm conftest*
8537 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8538 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8540 esac
8543 esac
8545 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8546 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8547 library_names_spec=
8548 libname_spec='lib$name'
8549 soname_spec=
8550 shrext_cmds=".so"
8551 postinstall_cmds=
8552 postuninstall_cmds=
8553 finish_cmds=
8554 finish_eval=
8555 shlibpath_var=
8556 shlibpath_overrides_runpath=unknown
8557 version_type=none
8558 dynamic_linker="$host_os ld.so"
8559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8561 if test "$GCC" = yes; then
8562 case $host_os in
8563 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8564 *) lt_awk_arg="/^libraries:/" ;;
8565 esac
8566 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8567 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8568 # if the path contains ";" then we assume it to be the separator
8569 # otherwise default to the standard path separator (i.e. ":") - it is
8570 # assumed that no part of a normal pathname contains ";" but that should
8571 # okay in the real world where ";" in dirpaths is itself problematic.
8572 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8573 else
8574 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8576 # Ok, now we have the path, separated by spaces, we can step through it
8577 # and add multilib dir if necessary.
8578 lt_tmp_lt_search_path_spec=
8579 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8580 for lt_sys_path in $lt_search_path_spec; do
8581 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8583 else
8584 test -d "$lt_sys_path" && \
8585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8587 done
8588 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8589 BEGIN {RS=" "; FS="/|\n";} {
8590 lt_foo="";
8591 lt_count=0;
8592 for (lt_i = NF; lt_i > 0; lt_i--) {
8593 if ($lt_i != "" && $lt_i != ".") {
8594 if ($lt_i == "..") {
8595 lt_count++;
8596 } else {
8597 if (lt_count == 0) {
8598 lt_foo="/" $lt_i lt_foo;
8599 } else {
8600 lt_count--;
8605 if (lt_foo != "") { lt_freq[lt_foo]++; }
8606 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8608 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8609 else
8610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8612 need_lib_prefix=unknown
8613 hardcode_into_libs=no
8615 # when you set need_version to no, make sure it does not cause -set_version
8616 # flags to be left without arguments
8617 need_version=unknown
8619 case $host_os in
8620 aix3*)
8621 version_type=linux
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8623 shlibpath_var=LIBPATH
8625 # AIX 3 has no versioning support, so we append a major version to the name.
8626 soname_spec='${libname}${release}${shared_ext}$major'
8629 aix4* | aix5*)
8630 version_type=linux
8631 need_lib_prefix=no
8632 need_version=no
8633 hardcode_into_libs=yes
8634 if test "$host_cpu" = ia64; then
8635 # AIX 5 supports IA64
8636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8637 shlibpath_var=LD_LIBRARY_PATH
8638 else
8639 # With GCC up to 2.95.x, collect2 would create an import file
8640 # for dependence libraries. The import file would start with
8641 # the line `#! .'. This would cause the generated library to
8642 # depend on `.', always an invalid library. This was fixed in
8643 # development snapshots of GCC prior to 3.0.
8644 case $host_os in
8645 aix4 | aix4.[01] | aix4.[01].*)
8646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8647 echo ' yes '
8648 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8650 else
8651 can_build_shared=no
8654 esac
8655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8656 # soname into executable. Probably we can add versioning support to
8657 # collect2, so additional links can be useful in future.
8658 if test "$aix_use_runtimelinking" = yes; then
8659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8660 # instead of lib<name>.a to let people know that these are not
8661 # typical AIX shared libraries.
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8663 else
8664 # We preserve .a as extension for shared libraries through AIX4.2
8665 # and later when we are not doing run time linking.
8666 library_names_spec='${libname}${release}.a $libname.a'
8667 soname_spec='${libname}${release}${shared_ext}$major'
8669 shlibpath_var=LIBPATH
8673 amigaos*)
8674 library_names_spec='$libname.ixlibrary $libname.a'
8675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8676 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'
8679 beos*)
8680 library_names_spec='${libname}${shared_ext}'
8681 dynamic_linker="$host_os ld.so"
8682 shlibpath_var=LIBRARY_PATH
8685 bsdi[45]*)
8686 version_type=linux
8687 need_version=no
8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689 soname_spec='${libname}${release}${shared_ext}$major'
8690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8691 shlibpath_var=LD_LIBRARY_PATH
8692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8694 # the default ld.so.conf also contains /usr/contrib/lib and
8695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8696 # libtool to hard-code these into programs
8699 cygwin* | mingw* | pw32*)
8700 version_type=windows
8701 shrext_cmds=".dll"
8702 need_version=no
8703 need_lib_prefix=no
8705 case $GCC,$host_os in
8706 yes,cygwin* | yes,mingw* | yes,pw32*)
8707 library_names_spec='$libname.dll.a'
8708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8709 postinstall_cmds='base_file=`basename \${file}`~
8710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8711 dldir=$destdir/`dirname \$dlpath`~
8712 test -d \$dldir || mkdir -p \$dldir~
8713 $install_prog $dir/$dlname \$dldir/$dlname~
8714 chmod a+x \$dldir/$dlname'
8715 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8716 dlpath=$dir/\$dldll~
8717 $rm \$dlpath'
8718 shlibpath_overrides_runpath=yes
8720 case $host_os in
8721 cygwin*)
8722 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8723 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8724 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8726 mingw*)
8727 # MinGW DLLs use traditional 'lib' prefix
8728 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8729 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8730 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8731 # It is most probably a Windows format PATH printed by
8732 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8733 # path with ; separators, and with drive letters. We can handle the
8734 # drive letters (cygwin fileutils understands them), so leave them,
8735 # especially as we might pass files found there to a mingw objdump,
8736 # which wouldn't understand a cygwinified path. Ahh.
8737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8738 else
8739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8742 pw32*)
8743 # pw32 DLLs use 'pw' prefix rather than 'lib'
8744 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8746 esac
8750 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8752 esac
8753 dynamic_linker='Win32 ld.exe'
8754 # FIXME: first we should search . and the directory the executable is in
8755 shlibpath_var=PATH
8758 darwin* | rhapsody*)
8759 dynamic_linker="$host_os dyld"
8760 version_type=darwin
8761 need_lib_prefix=no
8762 need_version=no
8763 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8764 soname_spec='${libname}${release}${major}$shared_ext'
8765 shlibpath_overrides_runpath=yes
8766 shlibpath_var=DYLD_LIBRARY_PATH
8767 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8769 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8770 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8773 dgux*)
8774 version_type=linux
8775 need_lib_prefix=no
8776 need_version=no
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 shlibpath_var=LD_LIBRARY_PATH
8782 freebsd1*)
8783 dynamic_linker=no
8786 freebsd* | dragonfly*)
8787 # DragonFly does not have aout. When/if they implement a new
8788 # versioning mechanism, adjust this.
8789 if test -x /usr/bin/objformat; then
8790 objformat=`/usr/bin/objformat`
8791 else
8792 case $host_os in
8793 freebsd[123]*) objformat=aout ;;
8794 *) objformat=elf ;;
8795 esac
8797 version_type=freebsd-$objformat
8798 case $version_type in
8799 freebsd-elf*)
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8801 need_version=no
8802 need_lib_prefix=no
8804 freebsd-*)
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8806 need_version=yes
8808 esac
8809 shlibpath_var=LD_LIBRARY_PATH
8810 case $host_os in
8811 freebsd2*)
8812 shlibpath_overrides_runpath=yes
8814 freebsd3.[01]* | freebsdelf3.[01]*)
8815 shlibpath_overrides_runpath=yes
8816 hardcode_into_libs=yes
8818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8820 shlibpath_overrides_runpath=no
8821 hardcode_into_libs=yes
8823 *) # from 4.6 on, and DragonFly
8824 shlibpath_overrides_runpath=yes
8825 hardcode_into_libs=yes
8827 esac
8830 gnu*)
8831 version_type=linux
8832 need_lib_prefix=no
8833 need_version=no
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8835 soname_spec='${libname}${release}${shared_ext}$major'
8836 shlibpath_var=LD_LIBRARY_PATH
8837 hardcode_into_libs=yes
8840 hpux9* | hpux10* | hpux11*)
8841 # Give a soname corresponding to the major version so that dld.sl refuses to
8842 # link against other versions.
8843 version_type=sunos
8844 need_lib_prefix=no
8845 need_version=no
8846 case $host_cpu in
8847 ia64*)
8848 shrext_cmds='.so'
8849 hardcode_into_libs=yes
8850 dynamic_linker="$host_os dld.so"
8851 shlibpath_var=LD_LIBRARY_PATH
8852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8855 if test "X$HPUX_IA64_MODE" = X32; then
8856 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8857 else
8858 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8862 hppa*64*)
8863 shrext_cmds='.sl'
8864 hardcode_into_libs=yes
8865 dynamic_linker="$host_os dld.sl"
8866 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869 soname_spec='${libname}${release}${shared_ext}$major'
8870 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8874 shrext_cmds='.sl'
8875 dynamic_linker="$host_os dld.sl"
8876 shlibpath_var=SHLIB_PATH
8877 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8881 esac
8882 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8883 postinstall_cmds='chmod 555 $lib'
8886 interix[3-9]*)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 shlibpath_overrides_runpath=no
8895 hardcode_into_libs=yes
8898 irix5* | irix6* | nonstopux*)
8899 case $host_os in
8900 nonstopux*) version_type=nonstopux ;;
8902 if test "$lt_cv_prog_gnu_ld" = yes; then
8903 version_type=linux
8904 else
8905 version_type=irix
8906 fi ;;
8907 esac
8908 need_lib_prefix=no
8909 need_version=no
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8912 case $host_os in
8913 irix5* | nonstopux*)
8914 libsuff= shlibsuff=
8917 case $LD in # libtool.m4 will add one of these switches to LD
8918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8919 libsuff= shlibsuff= libmagic=32-bit;;
8920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8921 libsuff=32 shlibsuff=N32 libmagic=N32;;
8922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8924 *) libsuff= shlibsuff= libmagic=never-match;;
8925 esac
8927 esac
8928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8929 shlibpath_overrides_runpath=no
8930 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8931 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8932 hardcode_into_libs=yes
8935 # No shared lib support for Linux oldld, aout, or coff.
8936 linux*oldld* | linux*aout* | linux*coff*)
8937 dynamic_linker=no
8940 # This must be Linux ELF.
8941 linux* | k*bsd*-gnu)
8942 version_type=linux
8943 need_lib_prefix=no
8944 need_version=no
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 shlibpath_overrides_runpath=no
8950 # This implies no fast_install, which is unacceptable.
8951 # Some rework will be needed to allow for fast_install
8952 # before this can be enabled.
8953 hardcode_into_libs=yes
8955 # Append ld.so.conf contents to the search path
8956 if test -f /etc/ld.so.conf; then
8957 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' ' '`
8958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8961 # We used to test for /lib/ld.so.1 and disable shared libraries on
8962 # powerpc, because MkLinux only supported shared libraries with the
8963 # GNU dynamic linker. Since this was broken with cross compilers,
8964 # most powerpc-linux boxes support dynamic linking these days and
8965 # people can always --disable-shared, the test was removed, and we
8966 # assume the GNU/Linux dynamic linker is in use.
8967 dynamic_linker='GNU/Linux ld.so'
8970 netbsd*)
8971 version_type=sunos
8972 need_lib_prefix=no
8973 need_version=no
8974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8977 dynamic_linker='NetBSD (a.out) ld.so'
8978 else
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 dynamic_linker='NetBSD ld.elf_so'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=yes
8985 hardcode_into_libs=yes
8988 newsos6)
8989 version_type=linux
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=yes
8995 nto-qnx*)
8996 version_type=linux
8997 need_lib_prefix=no
8998 need_version=no
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=yes
9005 openbsd*)
9006 version_type=sunos
9007 sys_lib_dlsearch_path_spec="/usr/lib"
9008 need_lib_prefix=no
9009 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9010 case $host_os in
9011 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9012 *) need_version=no ;;
9013 esac
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9018 case $host_os in
9019 openbsd2.[89] | openbsd2.[89].*)
9020 shlibpath_overrides_runpath=no
9023 shlibpath_overrides_runpath=yes
9025 esac
9026 else
9027 shlibpath_overrides_runpath=yes
9031 os2*)
9032 libname_spec='$name'
9033 shrext_cmds=".dll"
9034 need_lib_prefix=no
9035 library_names_spec='$libname${shared_ext} $libname.a'
9036 dynamic_linker='OS/2 ld.exe'
9037 shlibpath_var=LIBPATH
9040 osf3* | osf4* | osf5*)
9041 version_type=osf
9042 need_lib_prefix=no
9043 need_version=no
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9051 rdos*)
9052 dynamic_linker=no
9055 solaris*)
9056 version_type=linux
9057 need_lib_prefix=no
9058 need_version=no
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 # ldd complains unless libraries are executable
9065 postinstall_cmds='chmod +x $lib'
9068 sunos4*)
9069 version_type=sunos
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 if test "$with_gnu_ld" = yes; then
9075 need_lib_prefix=no
9077 need_version=yes
9080 sysv4 | sysv4.3*)
9081 version_type=linux
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 case $host_vendor in
9086 sni)
9087 shlibpath_overrides_runpath=no
9088 need_lib_prefix=no
9089 export_dynamic_flag_spec='${wl}-Blargedynsym'
9090 runpath_var=LD_RUN_PATH
9092 siemens)
9093 need_lib_prefix=no
9095 motorola)
9096 need_lib_prefix=no
9097 need_version=no
9098 shlibpath_overrides_runpath=no
9099 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9101 esac
9104 sysv4*MP*)
9105 if test -d /usr/nec ;then
9106 version_type=linux
9107 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9108 soname_spec='$libname${shared_ext}.$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9114 version_type=freebsd-elf
9115 need_lib_prefix=no
9116 need_version=no
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 hardcode_into_libs=yes
9121 if test "$with_gnu_ld" = yes; then
9122 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9123 shlibpath_overrides_runpath=no
9124 else
9125 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9126 shlibpath_overrides_runpath=yes
9127 case $host_os in
9128 sco3.2v5*)
9129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9131 esac
9133 sys_lib_dlsearch_path_spec='/usr/lib'
9136 uts4*)
9137 version_type=linux
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9144 dynamic_linker=no
9146 esac
9147 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9148 echo "${ECHO_T}$dynamic_linker" >&6; }
9149 test "$dynamic_linker" = no && can_build_shared=no
9151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9152 if test "$GCC" = yes; then
9153 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9156 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9158 hardcode_action=
9159 if test -n "$hardcode_libdir_flag_spec" || \
9160 test -n "$runpath_var" || \
9161 test "X$hardcode_automatic" = "Xyes" ; then
9163 # We can hardcode non-existant directories.
9164 if test "$hardcode_direct" != no &&
9165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9166 # have to relink, otherwise we might link with an installed library
9167 # when we should be linking with a yet-to-be-installed one
9168 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9169 test "$hardcode_minus_L" != no; then
9170 # Linking always hardcodes the temporary library directory.
9171 hardcode_action=relink
9172 else
9173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9174 hardcode_action=immediate
9176 else
9177 # We cannot hardcode anything, or else we can only hardcode existing
9178 # directories.
9179 hardcode_action=unsupported
9181 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9182 echo "${ECHO_T}$hardcode_action" >&6; }
9184 if test "$hardcode_action" = relink; then
9185 # Fast installation is not supported
9186 enable_fast_install=no
9187 elif test "$shlibpath_overrides_runpath" = yes ||
9188 test "$enable_shared" = no; then
9189 # Fast installation is not necessary
9190 enable_fast_install=needless
9193 striplib=
9194 old_striplib=
9195 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9196 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9197 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9198 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9199 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9200 { echo "$as_me:$LINENO: result: yes" >&5
9201 echo "${ECHO_T}yes" >&6; }
9202 else
9203 # FIXME - insert some real tests, host_os isn't really good enough
9204 case $host_os in
9205 darwin*)
9206 if test -n "$STRIP" ; then
9207 striplib="$STRIP -x"
9208 old_striplib="$STRIP -S"
9209 { echo "$as_me:$LINENO: result: yes" >&5
9210 echo "${ECHO_T}yes" >&6; }
9211 else
9212 { echo "$as_me:$LINENO: result: no" >&5
9213 echo "${ECHO_T}no" >&6; }
9217 { echo "$as_me:$LINENO: result: no" >&5
9218 echo "${ECHO_T}no" >&6; }
9220 esac
9223 if test "x$enable_dlopen" != xyes; then
9224 enable_dlopen=unknown
9225 enable_dlopen_self=unknown
9226 enable_dlopen_self_static=unknown
9227 else
9228 lt_cv_dlopen=no
9229 lt_cv_dlopen_libs=
9231 case $host_os in
9232 beos*)
9233 lt_cv_dlopen="load_add_on"
9234 lt_cv_dlopen_libs=
9235 lt_cv_dlopen_self=yes
9238 mingw* | pw32*)
9239 lt_cv_dlopen="LoadLibrary"
9240 lt_cv_dlopen_libs=
9243 cygwin*)
9244 lt_cv_dlopen="dlopen"
9245 lt_cv_dlopen_libs=
9248 darwin*)
9249 # if libdl is installed we need to link against it
9250 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9251 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9252 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-ldl $LIBS"
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9264 /* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 char dlopen ();
9272 main ()
9274 return dlopen ();
9276 return 0;
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_link") 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && {
9293 test -z "$ac_c_werror_flag" ||
9294 test ! -s conftest.err
9295 } && test -s conftest$ac_exeext &&
9296 $as_test_x conftest$ac_exeext; then
9297 ac_cv_lib_dl_dlopen=yes
9298 else
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_cv_lib_dl_dlopen=no
9305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9309 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9311 if test $ac_cv_lib_dl_dlopen = yes; then
9312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9313 else
9315 lt_cv_dlopen="dyld"
9316 lt_cv_dlopen_libs=
9317 lt_cv_dlopen_self=yes
9324 { echo "$as_me:$LINENO: checking for shl_load" >&5
9325 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9326 if test "${ac_cv_func_shl_load+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h. */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9337 #define shl_load innocuous_shl_load
9339 /* System header to define __stub macros and hopefully few prototypes,
9340 which can conflict with char shl_load (); below.
9341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9342 <limits.h> exists even on freestanding compilers. */
9344 #ifdef __STDC__
9345 # include <limits.h>
9346 #else
9347 # include <assert.h>
9348 #endif
9350 #undef shl_load
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 char shl_load ();
9359 /* The GNU C library defines this for functions which it implements
9360 to always fail with ENOSYS. Some functions are actually named
9361 something starting with __ and the normal name is an alias. */
9362 #if defined __stub_shl_load || defined __stub___shl_load
9363 choke me
9364 #endif
9367 main ()
9369 return shl_load ();
9371 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext conftest$ac_exeext
9375 if { (ac_try="$ac_link"
9376 case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_link") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } && {
9388 test -z "$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 } && test -s conftest$ac_exeext &&
9391 $as_test_x conftest$ac_exeext; then
9392 ac_cv_func_shl_load=yes
9393 else
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_cv_func_shl_load=no
9400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9401 conftest$ac_exeext conftest.$ac_ext
9403 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9404 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9405 if test $ac_cv_func_shl_load = yes; then
9406 lt_cv_dlopen="shl_load"
9407 else
9408 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9409 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9410 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 ac_check_lib_save_LIBS=$LIBS
9414 LIBS="-ldld $LIBS"
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h. */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9422 /* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9425 #ifdef __cplusplus
9426 extern "C"
9427 #endif
9428 char shl_load ();
9430 main ()
9432 return shl_load ();
9434 return 0;
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (ac_try="$ac_link"
9439 case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442 esac
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_link") 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest$ac_exeext &&
9454 $as_test_x conftest$ac_exeext; then
9455 ac_cv_lib_dld_shl_load=yes
9456 else
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_cv_lib_dld_shl_load=no
9463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9464 conftest$ac_exeext conftest.$ac_ext
9465 LIBS=$ac_check_lib_save_LIBS
9467 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9468 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9469 if test $ac_cv_lib_dld_shl_load = yes; then
9470 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9471 else
9472 { echo "$as_me:$LINENO: checking for dlopen" >&5
9473 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9474 if test "${ac_cv_func_dlopen+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9485 #define dlopen innocuous_dlopen
9487 /* System header to define __stub macros and hopefully few prototypes,
9488 which can conflict with char dlopen (); below.
9489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9490 <limits.h> exists even on freestanding compilers. */
9492 #ifdef __STDC__
9493 # include <limits.h>
9494 #else
9495 # include <assert.h>
9496 #endif
9498 #undef dlopen
9500 /* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 char dlopen ();
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined __stub_dlopen || defined __stub___dlopen
9511 choke me
9512 #endif
9515 main ()
9517 return dlopen ();
9519 return 0;
9521 _ACEOF
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9524 case "(($ac_try" in
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9527 esac
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529 (eval "$ac_link") 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } && {
9536 test -z "$ac_c_werror_flag" ||
9537 test ! -s conftest.err
9538 } && test -s conftest$ac_exeext &&
9539 $as_test_x conftest$ac_exeext; then
9540 ac_cv_func_dlopen=yes
9541 else
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9545 ac_cv_func_dlopen=no
9548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9549 conftest$ac_exeext conftest.$ac_ext
9551 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9552 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9553 if test $ac_cv_func_dlopen = yes; then
9554 lt_cv_dlopen="dlopen"
9555 else
9556 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561 ac_check_lib_save_LIBS=$LIBS
9562 LIBS="-ldl $LIBS"
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h. */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9570 /* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9573 #ifdef __cplusplus
9574 extern "C"
9575 #endif
9576 char dlopen ();
9578 main ()
9580 return dlopen ();
9582 return 0;
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9587 case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest$ac_exeext &&
9602 $as_test_x conftest$ac_exeext; then
9603 ac_cv_lib_dl_dlopen=yes
9604 else
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_cv_lib_dl_dlopen=no
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_lib_save_LIBS
9615 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9616 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9617 if test $ac_cv_lib_dl_dlopen = yes; then
9618 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9619 else
9620 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9621 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9622 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625 ac_check_lib_save_LIBS=$LIBS
9626 LIBS="-lsvld $LIBS"
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char dlopen ();
9642 main ()
9644 return dlopen ();
9646 return 0;
9648 _ACEOF
9649 rm -f conftest.$ac_objext conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9651 case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_link") 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest$ac_exeext &&
9666 $as_test_x conftest$ac_exeext; then
9667 ac_cv_lib_svld_dlopen=yes
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_cv_lib_svld_dlopen=no
9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9679 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9680 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9681 if test $ac_cv_lib_svld_dlopen = yes; then
9682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9683 else
9684 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9685 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9686 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-ldld $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 char dld_link ();
9706 main ()
9708 return dld_link ();
9710 return 0;
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
9731 ac_cv_lib_dld_dld_link=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_cv_lib_dld_dld_link=no
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9744 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9745 if test $ac_cv_lib_dld_dld_link = yes; then
9746 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9765 esac
9767 if test "x$lt_cv_dlopen" != xno; then
9768 enable_dlopen=yes
9769 else
9770 enable_dlopen=no
9773 case $lt_cv_dlopen in
9774 dlopen)
9775 save_CPPFLAGS="$CPPFLAGS"
9776 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9778 save_LDFLAGS="$LDFLAGS"
9779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9781 save_LIBS="$LIBS"
9782 LIBS="$lt_cv_dlopen_libs $LIBS"
9784 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9785 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9786 if test "${lt_cv_dlopen_self+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789 if test "$cross_compiling" = yes; then :
9790 lt_cv_dlopen_self=cross
9791 else
9792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9793 lt_status=$lt_dlunknown
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9795 "configure"
9796 #include "confdefs.h"
9798 #if HAVE_DLFCN_H
9799 #include <dlfcn.h>
9800 #endif
9802 #include <stdio.h>
9804 #ifdef RTLD_GLOBAL
9805 # define LT_DLGLOBAL RTLD_GLOBAL
9806 #else
9807 # ifdef DL_GLOBAL
9808 # define LT_DLGLOBAL DL_GLOBAL
9809 # else
9810 # define LT_DLGLOBAL 0
9811 # endif
9812 #endif
9814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9815 find out it does not work in some platform. */
9816 #ifndef LT_DLLAZY_OR_NOW
9817 # ifdef RTLD_LAZY
9818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9819 # else
9820 # ifdef DL_LAZY
9821 # define LT_DLLAZY_OR_NOW DL_LAZY
9822 # else
9823 # ifdef RTLD_NOW
9824 # define LT_DLLAZY_OR_NOW RTLD_NOW
9825 # else
9826 # ifdef DL_NOW
9827 # define LT_DLLAZY_OR_NOW DL_NOW
9828 # else
9829 # define LT_DLLAZY_OR_NOW 0
9830 # endif
9831 # endif
9832 # endif
9833 # endif
9834 #endif
9836 #ifdef __cplusplus
9837 extern "C" void exit (int);
9838 #endif
9840 void fnord() { int i=42;}
9841 int main ()
9843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9844 int status = $lt_dlunknown;
9846 if (self)
9848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9849 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9850 /* dlclose (self); */
9852 else
9853 puts (dlerror ());
9855 exit (status);
9858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859 (eval $ac_link) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9863 (./conftest; exit; ) >&5 2>/dev/null
9864 lt_status=$?
9865 case x$lt_status in
9866 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9867 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9868 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9869 esac
9870 else :
9871 # compilation failed
9872 lt_cv_dlopen_self=no
9875 rm -fr conftest*
9879 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9880 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9882 if test "x$lt_cv_dlopen_self" = xyes; then
9883 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9884 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9885 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9886 if test "${lt_cv_dlopen_self_static+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889 if test "$cross_compiling" = yes; then :
9890 lt_cv_dlopen_self_static=cross
9891 else
9892 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9893 lt_status=$lt_dlunknown
9894 cat > conftest.$ac_ext <<EOF
9895 #line 9895 "configure"
9896 #include "confdefs.h"
9898 #if HAVE_DLFCN_H
9899 #include <dlfcn.h>
9900 #endif
9902 #include <stdio.h>
9904 #ifdef RTLD_GLOBAL
9905 # define LT_DLGLOBAL RTLD_GLOBAL
9906 #else
9907 # ifdef DL_GLOBAL
9908 # define LT_DLGLOBAL DL_GLOBAL
9909 # else
9910 # define LT_DLGLOBAL 0
9911 # endif
9912 #endif
9914 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9915 find out it does not work in some platform. */
9916 #ifndef LT_DLLAZY_OR_NOW
9917 # ifdef RTLD_LAZY
9918 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9919 # else
9920 # ifdef DL_LAZY
9921 # define LT_DLLAZY_OR_NOW DL_LAZY
9922 # else
9923 # ifdef RTLD_NOW
9924 # define LT_DLLAZY_OR_NOW RTLD_NOW
9925 # else
9926 # ifdef DL_NOW
9927 # define LT_DLLAZY_OR_NOW DL_NOW
9928 # else
9929 # define LT_DLLAZY_OR_NOW 0
9930 # endif
9931 # endif
9932 # endif
9933 # endif
9934 #endif
9936 #ifdef __cplusplus
9937 extern "C" void exit (int);
9938 #endif
9940 void fnord() { int i=42;}
9941 int main ()
9943 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9944 int status = $lt_dlunknown;
9946 if (self)
9948 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9949 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9950 /* dlclose (self); */
9952 else
9953 puts (dlerror ());
9955 exit (status);
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959 (eval $ac_link) 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9963 (./conftest; exit; ) >&5 2>/dev/null
9964 lt_status=$?
9965 case x$lt_status in
9966 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9967 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9968 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9969 esac
9970 else :
9971 # compilation failed
9972 lt_cv_dlopen_self_static=no
9975 rm -fr conftest*
9979 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9980 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9983 CPPFLAGS="$save_CPPFLAGS"
9984 LDFLAGS="$save_LDFLAGS"
9985 LIBS="$save_LIBS"
9987 esac
9989 case $lt_cv_dlopen_self in
9990 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9991 *) enable_dlopen_self=unknown ;;
9992 esac
9994 case $lt_cv_dlopen_self_static in
9995 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9996 *) enable_dlopen_self_static=unknown ;;
9997 esac
10001 # Report which library types will actually be built
10002 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10003 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10004 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10005 echo "${ECHO_T}$can_build_shared" >&6; }
10007 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10008 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10009 test "$can_build_shared" = "no" && enable_shared=no
10011 # On AIX, shared libraries and static libraries use the same namespace, and
10012 # are all built from PIC.
10013 case $host_os in
10014 aix3*)
10015 test "$enable_shared" = yes && enable_static=no
10016 if test -n "$RANLIB"; then
10017 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10018 postinstall_cmds='$RANLIB $lib'
10022 aix4* | aix5*)
10023 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10024 test "$enable_shared" = yes && enable_static=no
10027 esac
10028 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10029 echo "${ECHO_T}$enable_shared" >&6; }
10031 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10032 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10033 # Make sure either enable_shared or enable_static is yes.
10034 test "$enable_shared" = yes || enable_static=yes
10035 { echo "$as_me:$LINENO: result: $enable_static" >&5
10036 echo "${ECHO_T}$enable_static" >&6; }
10038 # The else clause should only fire when bootstrapping the
10039 # libtool distribution, otherwise you forgot to ship ltmain.sh
10040 # with your package, and you will get complaints that there are
10041 # no rules to generate ltmain.sh.
10042 if test -f "$ltmain"; then
10043 # See if we are running on zsh, and set the options which allow our commands through
10044 # without removal of \ escapes.
10045 if test -n "${ZSH_VERSION+set}" ; then
10046 setopt NO_GLOB_SUBST
10048 # Now quote all the things that may contain metacharacters while being
10049 # careful not to overquote the AC_SUBSTed values. We take copies of the
10050 # variables and quote the copies for generation of the libtool script.
10051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10052 SED SHELL STRIP \
10053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10055 deplibs_check_method reload_flag reload_cmds need_locks \
10056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10057 lt_cv_sys_global_symbol_to_c_name_address \
10058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10059 old_postinstall_cmds old_postuninstall_cmds \
10060 compiler \
10061 CC \
10062 LD \
10063 lt_prog_compiler_wl \
10064 lt_prog_compiler_pic \
10065 lt_prog_compiler_static \
10066 lt_prog_compiler_no_builtin_flag \
10067 export_dynamic_flag_spec \
10068 thread_safe_flag_spec \
10069 whole_archive_flag_spec \
10070 enable_shared_with_static_runtimes \
10071 old_archive_cmds \
10072 old_archive_from_new_cmds \
10073 predep_objects \
10074 postdep_objects \
10075 predeps \
10076 postdeps \
10077 compiler_lib_search_path \
10078 archive_cmds \
10079 archive_expsym_cmds \
10080 postinstall_cmds \
10081 postuninstall_cmds \
10082 old_archive_from_expsyms_cmds \
10083 allow_undefined_flag \
10084 no_undefined_flag \
10085 export_symbols_cmds \
10086 hardcode_libdir_flag_spec \
10087 hardcode_libdir_flag_spec_ld \
10088 hardcode_libdir_separator \
10089 hardcode_automatic \
10090 module_cmds \
10091 module_expsym_cmds \
10092 lt_cv_prog_compiler_c_o \
10093 fix_srcfile_path \
10094 exclude_expsyms \
10095 include_expsyms; do
10097 case $var in
10098 old_archive_cmds | \
10099 old_archive_from_new_cmds | \
10100 archive_cmds | \
10101 archive_expsym_cmds | \
10102 module_cmds | \
10103 module_expsym_cmds | \
10104 old_archive_from_expsyms_cmds | \
10105 export_symbols_cmds | \
10106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10107 postinstall_cmds | postuninstall_cmds | \
10108 old_postinstall_cmds | old_postuninstall_cmds | \
10109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10110 # Double-quote double-evaled strings.
10111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10116 esac
10117 done
10119 case $lt_echo in
10120 *'\$0 --fallback-echo"')
10121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10123 esac
10125 cfgfile="${ofile}T"
10126 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10127 $rm -f "$cfgfile"
10128 { echo "$as_me:$LINENO: creating $ofile" >&5
10129 echo "$as_me: creating $ofile" >&6;}
10131 cat <<__EOF__ >> "$cfgfile"
10132 #! $SHELL
10134 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10135 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10136 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10138 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10139 # Free Software Foundation, Inc.
10141 # This file is part of GNU Libtool:
10142 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10144 # This program is free software; you can redistribute it and/or modify
10145 # it under the terms of the GNU General Public License as published by
10146 # the Free Software Foundation; either version 2 of the License, or
10147 # (at your option) any later version.
10149 # This program is distributed in the hope that it will be useful, but
10150 # WITHOUT ANY WARRANTY; without even the implied warranty of
10151 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10152 # General Public License for more details.
10154 # You should have received a copy of the GNU General Public License
10155 # along with this program; if not, write to the Free Software
10156 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10158 # As a special exception to the GNU General Public License, if you
10159 # distribute this file as part of a program that contains a
10160 # configuration script generated by Autoconf, you may include it under
10161 # the same distribution terms that you use for the rest of that program.
10163 # A sed program that does not truncate output.
10164 SED=$lt_SED
10166 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10167 Xsed="$SED -e 1s/^X//"
10169 # The HP-UX ksh and POSIX shell print the target directory to stdout
10170 # if CDPATH is set.
10171 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10173 # The names of the tagged configurations supported by this script.
10174 available_tags=
10176 # ### BEGIN LIBTOOL CONFIG
10178 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10180 # Shell to use when invoking shell scripts.
10181 SHELL=$lt_SHELL
10183 # Whether or not to build shared libraries.
10184 build_libtool_libs=$enable_shared
10186 # Whether or not to build static libraries.
10187 build_old_libs=$enable_static
10189 # Whether or not to add -lc for building shared libraries.
10190 build_libtool_need_lc=$archive_cmds_need_lc
10192 # Whether or not to disallow shared libs when runtime libs are static
10193 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10195 # Whether or not to optimize for fast installation.
10196 fast_install=$enable_fast_install
10198 # The host system.
10199 host_alias=$host_alias
10200 host=$host
10201 host_os=$host_os
10203 # The build system.
10204 build_alias=$build_alias
10205 build=$build
10206 build_os=$build_os
10208 # An echo program that does not interpret backslashes.
10209 echo=$lt_echo
10211 # The archiver.
10212 AR=$lt_AR
10213 AR_FLAGS=$lt_AR_FLAGS
10215 # A C compiler.
10216 LTCC=$lt_LTCC
10218 # LTCC compiler flags.
10219 LTCFLAGS=$lt_LTCFLAGS
10221 # A language-specific compiler.
10222 CC=$lt_compiler
10224 # Is the compiler the GNU C compiler?
10225 with_gcc=$GCC
10227 # An ERE matcher.
10228 EGREP=$lt_EGREP
10230 # The linker used to build libraries.
10231 LD=$lt_LD
10233 # Whether we need hard or soft links.
10234 LN_S=$lt_LN_S
10236 # A BSD-compatible nm program.
10237 NM=$lt_NM
10239 # A symbol stripping program
10240 STRIP=$lt_STRIP
10242 # Used to examine libraries when file_magic_cmd begins "file"
10243 MAGIC_CMD=$MAGIC_CMD
10245 # Used on cygwin: DLL creation program.
10246 DLLTOOL="$DLLTOOL"
10248 # Used on cygwin: object dumper.
10249 OBJDUMP="$OBJDUMP"
10251 # Used on cygwin: assembler.
10252 AS="$AS"
10254 # The name of the directory that contains temporary libtool files.
10255 objdir=$objdir
10257 # How to create reloadable object files.
10258 reload_flag=$lt_reload_flag
10259 reload_cmds=$lt_reload_cmds
10261 # How to pass a linker flag through the compiler.
10262 wl=$lt_lt_prog_compiler_wl
10264 # Object file suffix (normally "o").
10265 objext="$ac_objext"
10267 # Old archive suffix (normally "a").
10268 libext="$libext"
10270 # Shared library suffix (normally ".so").
10271 shrext_cmds='$shrext_cmds'
10273 # Executable file suffix (normally "").
10274 exeext="$exeext"
10276 # Additional compiler flags for building library objects.
10277 pic_flag=$lt_lt_prog_compiler_pic
10278 pic_mode=$pic_mode
10280 # What is the maximum length of a command?
10281 max_cmd_len=$lt_cv_sys_max_cmd_len
10283 # Does compiler simultaneously support -c and -o options?
10284 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10286 # Must we lock files when doing compilation?
10287 need_locks=$lt_need_locks
10289 # Do we need the lib prefix for modules?
10290 need_lib_prefix=$need_lib_prefix
10292 # Do we need a version for libraries?
10293 need_version=$need_version
10295 # Whether dlopen is supported.
10296 dlopen_support=$enable_dlopen
10298 # Whether dlopen of programs is supported.
10299 dlopen_self=$enable_dlopen_self
10301 # Whether dlopen of statically linked programs is supported.
10302 dlopen_self_static=$enable_dlopen_self_static
10304 # Compiler flag to prevent dynamic linking.
10305 link_static_flag=$lt_lt_prog_compiler_static
10307 # Compiler flag to turn off builtin functions.
10308 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10310 # Compiler flag to allow reflexive dlopens.
10311 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10313 # Compiler flag to generate shared objects directly from archives.
10314 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10316 # Compiler flag to generate thread-safe objects.
10317 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10319 # Library versioning type.
10320 version_type=$version_type
10322 # Format of library name prefix.
10323 libname_spec=$lt_libname_spec
10325 # List of archive names. First name is the real one, the rest are links.
10326 # The last name is the one that the linker finds with -lNAME.
10327 library_names_spec=$lt_library_names_spec
10329 # The coded name of the library, if different from the real name.
10330 soname_spec=$lt_soname_spec
10332 # Commands used to build and install an old-style archive.
10333 RANLIB=$lt_RANLIB
10334 old_archive_cmds=$lt_old_archive_cmds
10335 old_postinstall_cmds=$lt_old_postinstall_cmds
10336 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10338 # Create an old-style archive from a shared archive.
10339 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10341 # Create a temporary old-style archive to link instead of a shared archive.
10342 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10344 # Commands used to build and install a shared archive.
10345 archive_cmds=$lt_archive_cmds
10346 archive_expsym_cmds=$lt_archive_expsym_cmds
10347 postinstall_cmds=$lt_postinstall_cmds
10348 postuninstall_cmds=$lt_postuninstall_cmds
10350 # Commands used to build a loadable module (assumed same as above if empty)
10351 module_cmds=$lt_module_cmds
10352 module_expsym_cmds=$lt_module_expsym_cmds
10354 # Commands to strip libraries.
10355 old_striplib=$lt_old_striplib
10356 striplib=$lt_striplib
10358 # Dependencies to place before the objects being linked to create a
10359 # shared library.
10360 predep_objects=$lt_predep_objects
10362 # Dependencies to place after the objects being linked to create a
10363 # shared library.
10364 postdep_objects=$lt_postdep_objects
10366 # Dependencies to place before the objects being linked to create a
10367 # shared library.
10368 predeps=$lt_predeps
10370 # Dependencies to place after the objects being linked to create a
10371 # shared library.
10372 postdeps=$lt_postdeps
10374 # The library search path used internally by the compiler when linking
10375 # a shared library.
10376 compiler_lib_search_path=$lt_compiler_lib_search_path
10378 # Method to check whether dependent libraries are shared objects.
10379 deplibs_check_method=$lt_deplibs_check_method
10381 # Command to use when deplibs_check_method == file_magic.
10382 file_magic_cmd=$lt_file_magic_cmd
10384 # Flag that allows shared libraries with undefined symbols to be built.
10385 allow_undefined_flag=$lt_allow_undefined_flag
10387 # Flag that forces no undefined symbols.
10388 no_undefined_flag=$lt_no_undefined_flag
10390 # Commands used to finish a libtool library installation in a directory.
10391 finish_cmds=$lt_finish_cmds
10393 # Same as above, but a single script fragment to be evaled but not shown.
10394 finish_eval=$lt_finish_eval
10396 # Take the output of nm and produce a listing of raw symbols and C names.
10397 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10399 # Transform the output of nm in a proper C declaration
10400 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10402 # Transform the output of nm in a C name address pair
10403 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10405 # This is the shared library runtime path variable.
10406 runpath_var=$runpath_var
10408 # This is the shared library path variable.
10409 shlibpath_var=$shlibpath_var
10411 # Is shlibpath searched before the hard-coded library search path?
10412 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10414 # How to hardcode a shared library path into an executable.
10415 hardcode_action=$hardcode_action
10417 # Whether we should hardcode library paths into libraries.
10418 hardcode_into_libs=$hardcode_into_libs
10420 # Flag to hardcode \$libdir into a binary during linking.
10421 # This must work even if \$libdir does not exist.
10422 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10424 # If ld is used when linking, flag to hardcode \$libdir into
10425 # a binary during linking. This must work even if \$libdir does
10426 # not exist.
10427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10429 # Whether we need a single -rpath flag with a separated argument.
10430 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10432 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10433 # resulting binary.
10434 hardcode_direct=$hardcode_direct
10436 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10437 # resulting binary.
10438 hardcode_minus_L=$hardcode_minus_L
10440 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10441 # the resulting binary.
10442 hardcode_shlibpath_var=$hardcode_shlibpath_var
10444 # Set to yes if building a shared library automatically hardcodes DIR into the library
10445 # and all subsequent libraries and executables linked against it.
10446 hardcode_automatic=$hardcode_automatic
10448 # Variables whose values should be saved in libtool wrapper scripts and
10449 # restored at relink time.
10450 variables_saved_for_relink="$variables_saved_for_relink"
10452 # Whether libtool must link a program against all its dependency libraries.
10453 link_all_deplibs=$link_all_deplibs
10455 # Compile-time system search path for libraries
10456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10458 # Run-time system search path for libraries
10459 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10461 # Fix the shell variable \$srcfile for the compiler.
10462 fix_srcfile_path=$lt_fix_srcfile_path
10464 # Set to yes if exported symbols are required.
10465 always_export_symbols=$always_export_symbols
10467 # The commands to list exported symbols.
10468 export_symbols_cmds=$lt_export_symbols_cmds
10470 # The commands to extract the exported symbol list from a shared archive.
10471 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10473 # Symbols that should not be listed in the preloaded symbols.
10474 exclude_expsyms=$lt_exclude_expsyms
10476 # Symbols that must always be exported.
10477 include_expsyms=$lt_include_expsyms
10479 # ### END LIBTOOL CONFIG
10481 __EOF__
10484 case $host_os in
10485 aix3*)
10486 cat <<\EOF >> "$cfgfile"
10488 # AIX sometimes has problems with the GCC collect2 program. For some
10489 # reason, if we set the COLLECT_NAMES environment variable, the problems
10490 # vanish in a puff of smoke.
10491 if test "X${COLLECT_NAMES+set}" != Xset; then
10492 COLLECT_NAMES=
10493 export COLLECT_NAMES
10497 esac
10499 # We use sed instead of cat because bash on DJGPP gets confused if
10500 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10501 # text mode, it properly converts lines to CR/LF. This bash problem
10502 # is reportedly fixed, but why not run on old versions too?
10503 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10505 mv -f "$cfgfile" "$ofile" || \
10506 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10507 chmod +x "$ofile"
10509 else
10510 # If there is no Makefile yet, we rely on a make rule to execute
10511 # `config.status --recheck' to rerun these tests and create the
10512 # libtool script then.
10513 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10514 if test -f "$ltmain_in"; then
10515 test -f Makefile && make "$ltmain"
10520 ac_ext=c
10521 ac_cpp='$CPP $CPPFLAGS'
10522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10526 CC="$lt_save_CC"
10529 # Check whether --with-tags was given.
10530 if test "${with_tags+set}" = set; then
10531 withval=$with_tags; tagnames="$withval"
10535 if test -f "$ltmain" && test -n "$tagnames"; then
10536 if test ! -f "${ofile}"; then
10537 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10538 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10541 if test -z "$LTCC"; then
10542 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10543 if test -z "$LTCC"; then
10544 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10545 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10546 else
10547 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10548 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10551 if test -z "$LTCFLAGS"; then
10552 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10555 # Extract list of available tagged configurations in $ofile.
10556 # Note that this assumes the entire list is on one line.
10557 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10560 for tagname in $tagnames; do
10561 IFS="$lt_save_ifs"
10562 # Check whether tagname contains only valid characters
10563 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10564 "") ;;
10565 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10566 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10567 { (exit 1); exit 1; }; }
10569 esac
10571 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10572 then
10573 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10574 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10575 { (exit 1); exit 1; }; }
10578 # Update the list of available tags.
10579 if test -n "$tagname"; then
10580 echo appending configuration tag \"$tagname\" to $ofile
10582 case $tagname in
10583 CXX)
10584 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10585 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10586 (test "X$CXX" != "Xg++"))) ; then
10587 ac_ext=cpp
10588 ac_cpp='$CXXCPP $CPPFLAGS'
10589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10596 archive_cmds_need_lc_CXX=no
10597 allow_undefined_flag_CXX=
10598 always_export_symbols_CXX=no
10599 archive_expsym_cmds_CXX=
10600 export_dynamic_flag_spec_CXX=
10601 hardcode_direct_CXX=no
10602 hardcode_libdir_flag_spec_CXX=
10603 hardcode_libdir_flag_spec_ld_CXX=
10604 hardcode_libdir_separator_CXX=
10605 hardcode_minus_L_CXX=no
10606 hardcode_shlibpath_var_CXX=unsupported
10607 hardcode_automatic_CXX=no
10608 module_cmds_CXX=
10609 module_expsym_cmds_CXX=
10610 link_all_deplibs_CXX=unknown
10611 old_archive_cmds_CXX=$old_archive_cmds
10612 no_undefined_flag_CXX=
10613 whole_archive_flag_spec_CXX=
10614 enable_shared_with_static_runtimes_CXX=no
10616 # Dependencies to place before and after the object being linked:
10617 predep_objects_CXX=
10618 postdep_objects_CXX=
10619 predeps_CXX=
10620 postdeps_CXX=
10621 compiler_lib_search_path_CXX=
10623 # Source file extension for C++ test sources.
10624 ac_ext=cpp
10626 # Object file extension for compiled C++ test sources.
10627 objext=o
10628 objext_CXX=$objext
10630 # Code to be used in simple compile tests
10631 lt_simple_compile_test_code="int some_variable = 0;"
10633 # Code to be used in simple link tests
10634 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10636 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10638 # If no C compiler was specified, use CC.
10639 LTCC=${LTCC-"$CC"}
10641 # If no C compiler flags were specified, use CFLAGS.
10642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10644 # Allow CC to be a program name with arguments.
10645 compiler=$CC
10648 # save warnings/boilerplate of simple test code
10649 ac_outfile=conftest.$ac_objext
10650 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10651 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10652 _lt_compiler_boilerplate=`cat conftest.err`
10653 $rm conftest*
10655 ac_outfile=conftest.$ac_objext
10656 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10657 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10658 _lt_linker_boilerplate=`cat conftest.err`
10659 $rm conftest*
10662 # Allow CC to be a program name with arguments.
10663 lt_save_CC=$CC
10664 lt_save_LD=$LD
10665 lt_save_GCC=$GCC
10666 GCC=$GXX
10667 lt_save_with_gnu_ld=$with_gnu_ld
10668 lt_save_path_LD=$lt_cv_path_LD
10669 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10670 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10671 else
10672 $as_unset lt_cv_prog_gnu_ld
10674 if test -n "${lt_cv_path_LDCXX+set}"; then
10675 lt_cv_path_LD=$lt_cv_path_LDCXX
10676 else
10677 $as_unset lt_cv_path_LD
10679 test -z "${LDCXX+set}" || LD=$LDCXX
10680 CC=${CXX-"c++"}
10681 compiler=$CC
10682 compiler_CXX=$CC
10683 for cc_temp in $compiler""; do
10684 case $cc_temp in
10685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10687 \-*) ;;
10688 *) break;;
10689 esac
10690 done
10691 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10694 # We don't want -fno-exception wen compiling C++ code, so set the
10695 # no_builtin_flag separately
10696 if test "$GXX" = yes; then
10697 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10698 else
10699 lt_prog_compiler_no_builtin_flag_CXX=
10702 if test "$GXX" = yes; then
10703 # Set up default GNU C++ configuration
10706 # Check whether --with-gnu-ld was given.
10707 if test "${with_gnu_ld+set}" = set; then
10708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10709 else
10710 with_gnu_ld=no
10713 ac_prog=ld
10714 if test "$GCC" = yes; then
10715 # Check if gcc -print-prog-name=ld gives a path.
10716 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10717 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10718 case $host in
10719 *-*-mingw*)
10720 # gcc leaves a trailing carriage return which upsets mingw
10721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10724 esac
10725 case $ac_prog in
10726 # Accept absolute paths.
10727 [\\/]* | ?:[\\/]*)
10728 re_direlt='/[^/][^/]*/\.\./'
10729 # Canonicalize the pathname of ld
10730 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10731 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10732 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10733 done
10734 test -z "$LD" && LD="$ac_prog"
10737 # If it fails, then pretend we aren't using GCC.
10738 ac_prog=ld
10741 # If it is relative, then search for the first ld in PATH.
10742 with_gnu_ld=unknown
10744 esac
10745 elif test "$with_gnu_ld" = yes; then
10746 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10747 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10748 else
10749 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10750 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10752 if test "${lt_cv_path_LD+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755 if test -z "$LD"; then
10756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10757 for ac_dir in $PATH; do
10758 IFS="$lt_save_ifs"
10759 test -z "$ac_dir" && ac_dir=.
10760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10761 lt_cv_path_LD="$ac_dir/$ac_prog"
10762 # Check to see if the program is GNU ld. I'd rather use --version,
10763 # but apparently some variants of GNU ld only accept -v.
10764 # Break only if it was the GNU/non-GNU ld that we prefer.
10765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10766 *GNU* | *'with BFD'*)
10767 test "$with_gnu_ld" != no && break
10770 test "$with_gnu_ld" != yes && break
10772 esac
10774 done
10775 IFS="$lt_save_ifs"
10776 else
10777 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10781 LD="$lt_cv_path_LD"
10782 if test -n "$LD"; then
10783 { echo "$as_me:$LINENO: result: $LD" >&5
10784 echo "${ECHO_T}$LD" >&6; }
10785 else
10786 { echo "$as_me:$LINENO: result: no" >&5
10787 echo "${ECHO_T}no" >&6; }
10789 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10790 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10791 { (exit 1); exit 1; }; }
10792 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10793 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10794 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10798 case `$LD -v 2>&1 </dev/null` in
10799 *GNU* | *'with BFD'*)
10800 lt_cv_prog_gnu_ld=yes
10803 lt_cv_prog_gnu_ld=no
10805 esac
10807 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10808 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10809 with_gnu_ld=$lt_cv_prog_gnu_ld
10813 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10814 # archiving commands below assume that GNU ld is being used.
10815 if test "$with_gnu_ld" = yes; then
10816 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10817 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'
10819 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10822 # If archive_cmds runs LD, not CC, wlarc should be empty
10823 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10824 # investigate it a little bit more. (MM)
10825 wlarc='${wl}'
10827 # ancient GNU ld didn't support --whole-archive et. al.
10828 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10829 grep 'no-whole-archive' > /dev/null; then
10830 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10831 else
10832 whole_archive_flag_spec_CXX=
10834 else
10835 with_gnu_ld=no
10836 wlarc=
10838 # A generic and very simple default shared library creation
10839 # command for GNU C++ for the case where it uses the native
10840 # linker, instead of GNU ld. If possible, this setting should
10841 # overridden to take advantage of the native linker features on
10842 # the platform it is being used on.
10843 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10846 # Commands to make compiler produce verbose output that lists
10847 # what "hidden" libraries, object files and flags are used when
10848 # linking a shared library.
10849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10851 else
10852 GXX=no
10853 with_gnu_ld=no
10854 wlarc=
10857 # PORTME: fill in a description of your system's C++ link characteristics
10858 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10859 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10860 ld_shlibs_CXX=yes
10861 case $host_os in
10862 aix3*)
10863 # FIXME: insert proper C++ library support
10864 ld_shlibs_CXX=no
10866 aix4* | aix5*)
10867 if test "$host_cpu" = ia64; then
10868 # On IA64, the linker does run time linking by default, so we don't
10869 # have to do anything special.
10870 aix_use_runtimelinking=no
10871 exp_sym_flag='-Bexport'
10872 no_entry_flag=""
10873 else
10874 aix_use_runtimelinking=no
10876 # Test if we are trying to use run time linking or normal
10877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10878 # need to do runtime linking.
10879 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10880 for ld_flag in $LDFLAGS; do
10881 case $ld_flag in
10882 *-brtl*)
10883 aix_use_runtimelinking=yes
10884 break
10886 esac
10887 done
10889 esac
10891 exp_sym_flag='-bexport'
10892 no_entry_flag='-bnoentry'
10895 # When large executables or shared objects are built, AIX ld can
10896 # have problems creating the table of contents. If linking a library
10897 # or program results in "error TOC overflow" add -mminimal-toc to
10898 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10899 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10901 archive_cmds_CXX=''
10902 hardcode_direct_CXX=yes
10903 hardcode_libdir_separator_CXX=':'
10904 link_all_deplibs_CXX=yes
10906 if test "$GXX" = yes; then
10907 case $host_os in aix4.[012]|aix4.[012].*)
10908 # We only want to do this on AIX 4.2 and lower, the check
10909 # below for broken collect2 doesn't work under 4.3+
10910 collect2name=`${CC} -print-prog-name=collect2`
10911 if test -f "$collect2name" && \
10912 strings "$collect2name" | grep resolve_lib_name >/dev/null
10913 then
10914 # We have reworked collect2
10916 else
10917 # We have old collect2
10918 hardcode_direct_CXX=unsupported
10919 # It fails to find uninstalled libraries when the uninstalled
10920 # path is not listed in the libpath. Setting hardcode_minus_L
10921 # to unsupported forces relinking
10922 hardcode_minus_L_CXX=yes
10923 hardcode_libdir_flag_spec_CXX='-L$libdir'
10924 hardcode_libdir_separator_CXX=
10927 esac
10928 shared_flag='-shared'
10929 if test "$aix_use_runtimelinking" = yes; then
10930 shared_flag="$shared_flag "'${wl}-G'
10932 else
10933 # not using gcc
10934 if test "$host_cpu" = ia64; then
10935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10936 # chokes on -Wl,-G. The following line is correct:
10937 shared_flag='-G'
10938 else
10939 if test "$aix_use_runtimelinking" = yes; then
10940 shared_flag='${wl}-G'
10941 else
10942 shared_flag='${wl}-bM:SRE'
10947 # It seems that -bexpall does not export symbols beginning with
10948 # underscore (_), so it is better to generate a list of symbols to export.
10949 always_export_symbols_CXX=yes
10950 if test "$aix_use_runtimelinking" = yes; then
10951 # Warning - without using the other runtime loading flags (-brtl),
10952 # -berok will link without error, but may produce a broken library.
10953 allow_undefined_flag_CXX='-berok'
10954 # Determine the default libpath from the value encoded in an empty executable.
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10963 main ()
10967 return 0;
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_cxx_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest$ac_exeext &&
10987 $as_test_x conftest$ac_exeext; then
10989 lt_aix_libpath_sed='
10990 /Import File Strings/,/^$/ {
10991 /^0/ {
10992 s/^0 *\(.*\)$/\1/
10996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10997 # Check for a 64-bit object if we didn't find anything.
10998 if test -z "$aix_libpath"; then
10999 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11001 else
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11009 conftest$ac_exeext conftest.$ac_ext
11010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11012 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11014 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11015 else
11016 if test "$host_cpu" = ia64; then
11017 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11018 allow_undefined_flag_CXX="-z nodefs"
11019 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"
11020 else
11021 # Determine the default libpath from the value encoded in an empty executable.
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11030 main ()
11034 return 0;
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_cxx_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext &&
11054 $as_test_x conftest$ac_exeext; then
11056 lt_aix_libpath_sed='
11057 /Import File Strings/,/^$/ {
11058 /^0/ {
11059 s/^0 *\(.*\)$/\1/
11063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11064 # Check for a 64-bit object if we didn't find anything.
11065 if test -z "$aix_libpath"; then
11066 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11068 else
11069 echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext conftest.$ac_ext
11077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11079 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11080 # Warning - without using the other run time loading flags,
11081 # -berok will link without error, but may produce a broken library.
11082 no_undefined_flag_CXX=' ${wl}-bernotok'
11083 allow_undefined_flag_CXX=' ${wl}-berok'
11084 # Exported symbols can be pulled into shared objects from archives
11085 whole_archive_flag_spec_CXX='$convenience'
11086 archive_cmds_need_lc_CXX=yes
11087 # This is similar to how AIX traditionally builds its shared libraries.
11088 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'
11093 beos*)
11094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11095 allow_undefined_flag_CXX=unsupported
11096 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11097 # support --undefined. This deserves some investigation. FIXME
11098 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11099 else
11100 ld_shlibs_CXX=no
11104 chorus*)
11105 case $cc_basename in
11107 # FIXME: insert proper C++ library support
11108 ld_shlibs_CXX=no
11110 esac
11113 cygwin* | mingw* | pw32*)
11114 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11115 # as there is no search path for DLLs.
11116 hardcode_libdir_flag_spec_CXX='-L$libdir'
11117 allow_undefined_flag_CXX=unsupported
11118 always_export_symbols_CXX=no
11119 enable_shared_with_static_runtimes_CXX=yes
11121 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11122 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'
11123 # If the export-symbols file already is a .def file (1st line
11124 # is EXPORTS), use it as is; otherwise, prepend...
11125 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11126 cp $export_symbols $output_objdir/$soname.def;
11127 else
11128 echo EXPORTS > $output_objdir/$soname.def;
11129 cat $export_symbols >> $output_objdir/$soname.def;
11131 $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'
11132 else
11133 ld_shlibs_CXX=no
11136 darwin* | rhapsody*)
11137 case $host_os in
11138 rhapsody* | darwin1.[012])
11139 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11141 *) # Darwin 1.3 on
11142 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11143 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11144 else
11145 case ${MACOSX_DEPLOYMENT_TARGET} in
11146 10.[012])
11147 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11149 10.*)
11150 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11152 esac
11155 esac
11156 archive_cmds_need_lc_CXX=no
11157 hardcode_direct_CXX=no
11158 hardcode_automatic_CXX=yes
11159 hardcode_shlibpath_var_CXX=unsupported
11160 whole_archive_flag_spec_CXX=''
11161 link_all_deplibs_CXX=yes
11163 if test "$GXX" = yes ; then
11164 lt_int_apple_cc_single_mod=no
11165 output_verbose_link_cmd='echo'
11166 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11167 lt_int_apple_cc_single_mod=yes
11169 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11170 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11171 else
11172 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'
11174 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11175 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11176 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11177 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11178 else
11179 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11181 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11182 else
11183 case $cc_basename in
11184 xlc*)
11185 output_verbose_link_cmd='echo'
11186 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11187 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11189 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11190 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11193 ld_shlibs_CXX=no
11195 esac
11199 dgux*)
11200 case $cc_basename in
11201 ec++*)
11202 # FIXME: insert proper C++ library support
11203 ld_shlibs_CXX=no
11205 ghcx*)
11206 # Green Hills C++ Compiler
11207 # FIXME: insert proper C++ library support
11208 ld_shlibs_CXX=no
11211 # FIXME: insert proper C++ library support
11212 ld_shlibs_CXX=no
11214 esac
11216 freebsd[12]*)
11217 # C++ shared libraries reported to be fairly broken before switch to ELF
11218 ld_shlibs_CXX=no
11220 freebsd-elf*)
11221 archive_cmds_need_lc_CXX=no
11223 freebsd* | dragonfly*)
11224 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11225 # conventions
11226 ld_shlibs_CXX=yes
11228 gnu*)
11230 hpux9*)
11231 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11232 hardcode_libdir_separator_CXX=:
11233 export_dynamic_flag_spec_CXX='${wl}-E'
11234 hardcode_direct_CXX=yes
11235 hardcode_minus_L_CXX=yes # Not in the search PATH,
11236 # but as the default
11237 # location of the library.
11239 case $cc_basename in
11240 CC*)
11241 # FIXME: insert proper C++ library support
11242 ld_shlibs_CXX=no
11244 aCC*)
11245 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'
11246 # Commands to make compiler produce verbose output that lists
11247 # what "hidden" libraries, object files and flags are used when
11248 # linking a shared library.
11250 # There doesn't appear to be a way to prevent this compiler from
11251 # explicitly linking system object files so we need to strip them
11252 # from the output so that they don't get included in the library
11253 # dependencies.
11254 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 $list'
11257 if test "$GXX" = yes; then
11258 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'
11259 else
11260 # FIXME: insert proper C++ library support
11261 ld_shlibs_CXX=no
11264 esac
11266 hpux10*|hpux11*)
11267 if test $with_gnu_ld = no; then
11268 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11269 hardcode_libdir_separator_CXX=:
11271 case $host_cpu in
11272 hppa*64*|ia64*) ;;
11274 export_dynamic_flag_spec_CXX='${wl}-E'
11276 esac
11278 case $host_cpu in
11279 hppa*64*|ia64*)
11280 hardcode_direct_CXX=no
11281 hardcode_shlibpath_var_CXX=no
11284 hardcode_direct_CXX=yes
11285 hardcode_minus_L_CXX=yes # Not in the search PATH,
11286 # but as the default
11287 # location of the library.
11289 esac
11291 case $cc_basename in
11292 CC*)
11293 # FIXME: insert proper C++ library support
11294 ld_shlibs_CXX=no
11296 aCC*)
11297 case $host_cpu in
11298 hppa*64*)
11299 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11301 ia64*)
11302 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11305 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11307 esac
11308 # Commands to make compiler produce verbose output that lists
11309 # what "hidden" libraries, object files and flags are used when
11310 # linking a shared library.
11312 # There doesn't appear to be a way to prevent this compiler from
11313 # explicitly linking system object files so we need to strip them
11314 # from the output so that they don't get included in the library
11315 # dependencies.
11316 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 $list'
11319 if test "$GXX" = yes; then
11320 if test $with_gnu_ld = no; then
11321 case $host_cpu in
11322 hppa*64*)
11323 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11325 ia64*)
11326 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11329 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'
11331 esac
11333 else
11334 # FIXME: insert proper C++ library support
11335 ld_shlibs_CXX=no
11338 esac
11340 interix[3-9]*)
11341 hardcode_direct_CXX=no
11342 hardcode_shlibpath_var_CXX=no
11343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11344 export_dynamic_flag_spec_CXX='${wl}-E'
11345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11346 # Instead, shared libraries are loaded at an image base (0x10000000 by
11347 # default) and relocated if they conflict, which is a slow very memory
11348 # consuming and fragmenting process. To avoid this, we pick a random,
11349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11351 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'
11352 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'
11354 irix5* | irix6*)
11355 case $cc_basename in
11356 CC*)
11357 # SGI C++
11358 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11360 # Archives containing C++ object files must be created using
11361 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11362 # necessary to make sure instantiated templates are included
11363 # in the archive.
11364 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11367 if test "$GXX" = yes; then
11368 if test "$with_gnu_ld" = no; then
11369 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11370 else
11371 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11374 link_all_deplibs_CXX=yes
11376 esac
11377 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11378 hardcode_libdir_separator_CXX=:
11380 linux* | k*bsd*-gnu)
11381 case $cc_basename in
11382 KCC*)
11383 # Kuck and Associates, Inc. (KAI) C++ Compiler
11385 # KCC will only create a shared library if the output file
11386 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11387 # to its proper name (with version) after linking.
11388 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'
11389 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'
11390 # Commands to make compiler produce verbose output that lists
11391 # what "hidden" libraries, object files and flags are used when
11392 # linking a shared library.
11394 # There doesn't appear to be a way to prevent this compiler from
11395 # explicitly linking system object files so we need to strip them
11396 # from the output so that they don't get included in the library
11397 # dependencies.
11398 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 $list'
11400 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11403 # Archives containing C++ object files must be created using
11404 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11405 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11407 icpc*)
11408 # Intel C++
11409 with_gnu_ld=yes
11410 # version 8.0 and above of icpc choke on multiply defined symbols
11411 # if we add $predep_objects and $postdep_objects, however 7.1 and
11412 # earlier do not add the objects themselves.
11413 case `$CC -V 2>&1` in
11414 *"Version 7."*)
11415 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11416 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'
11418 *) # Version 8.0 or newer
11419 tmp_idyn=
11420 case $host_cpu in
11421 ia64*) tmp_idyn=' -i_dynamic';;
11422 esac
11423 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11424 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'
11426 esac
11427 archive_cmds_need_lc_CXX=no
11428 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11430 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11432 pgCC*)
11433 # Portland Group C++ compiler
11434 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11435 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'
11437 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11439 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'
11441 cxx*)
11442 # Compaq C++
11443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11444 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'
11446 runpath_var=LD_RUN_PATH
11447 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11448 hardcode_libdir_separator_CXX=:
11450 # Commands to make compiler produce verbose output that lists
11451 # what "hidden" libraries, object files and flags are used when
11452 # linking a shared library.
11454 # There doesn't appear to be a way to prevent this compiler from
11455 # explicitly linking system object files so we need to strip them
11456 # from the output so that they don't get included in the library
11457 # dependencies.
11458 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11461 case `$CC -V 2>&1 | sed 5q` in
11462 *Sun\ C*)
11463 # Sun C++ 5.9
11464 no_undefined_flag_CXX=' -zdefs'
11465 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11466 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'
11467 hardcode_libdir_flag_spec_CXX='-R$libdir'
11468 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'
11470 # Not sure whether something based on
11471 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11472 # would be better.
11473 output_verbose_link_cmd='echo'
11475 # Archives containing C++ object files must be created using
11476 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11477 # necessary to make sure instantiated templates are included
11478 # in the archive.
11479 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11481 esac
11483 esac
11485 lynxos*)
11486 # FIXME: insert proper C++ library support
11487 ld_shlibs_CXX=no
11489 m88k*)
11490 # FIXME: insert proper C++ library support
11491 ld_shlibs_CXX=no
11493 mvs*)
11494 case $cc_basename in
11495 cxx*)
11496 # FIXME: insert proper C++ library support
11497 ld_shlibs_CXX=no
11500 # FIXME: insert proper C++ library support
11501 ld_shlibs_CXX=no
11503 esac
11505 netbsd*)
11506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11507 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11508 wlarc=
11509 hardcode_libdir_flag_spec_CXX='-R$libdir'
11510 hardcode_direct_CXX=yes
11511 hardcode_shlibpath_var_CXX=no
11513 # Workaround some broken pre-1.5 toolchains
11514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11516 openbsd2*)
11517 # C++ shared libraries are fairly broken
11518 ld_shlibs_CXX=no
11520 openbsd*)
11521 if test -f /usr/libexec/ld.so; then
11522 hardcode_direct_CXX=yes
11523 hardcode_shlibpath_var_CXX=no
11524 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11527 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11528 export_dynamic_flag_spec_CXX='${wl}-E'
11529 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11531 output_verbose_link_cmd='echo'
11532 else
11533 ld_shlibs_CXX=no
11536 osf3*)
11537 case $cc_basename in
11538 KCC*)
11539 # Kuck and Associates, Inc. (KAI) C++ Compiler
11541 # KCC will only create a shared library if the output file
11542 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11543 # to its proper name (with version) after linking.
11544 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'
11546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11547 hardcode_libdir_separator_CXX=:
11549 # Archives containing C++ object files must be created using
11550 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11551 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11554 RCC*)
11555 # Rational C++ 2.4.1
11556 # FIXME: insert proper C++ library support
11557 ld_shlibs_CXX=no
11559 cxx*)
11560 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11561 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11564 hardcode_libdir_separator_CXX=:
11566 # Commands to make compiler produce verbose output that lists
11567 # what "hidden" libraries, object files and flags are used when
11568 # linking a shared library.
11570 # There doesn't appear to be a way to prevent this compiler from
11571 # explicitly linking system object files so we need to strip them
11572 # from the output so that they don't get included in the library
11573 # dependencies.
11574 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11577 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11578 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11579 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11582 hardcode_libdir_separator_CXX=:
11584 # Commands to make compiler produce verbose output that lists
11585 # what "hidden" libraries, object files and flags are used when
11586 # linking a shared library.
11587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11589 else
11590 # FIXME: insert proper C++ library support
11591 ld_shlibs_CXX=no
11594 esac
11596 osf4* | osf5*)
11597 case $cc_basename in
11598 KCC*)
11599 # Kuck and Associates, Inc. (KAI) C++ Compiler
11601 # KCC will only create a shared library if the output file
11602 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11603 # to its proper name (with version) after linking.
11604 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'
11606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11607 hardcode_libdir_separator_CXX=:
11609 # Archives containing C++ object files must be created using
11610 # the KAI C++ compiler.
11611 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11613 RCC*)
11614 # Rational C++ 2.4.1
11615 # FIXME: insert proper C++ library support
11616 ld_shlibs_CXX=no
11618 cxx*)
11619 allow_undefined_flag_CXX=' -expect_unresolved \*'
11620 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11621 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11622 echo "-hidden">> $lib.exp~
11623 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11624 $rm $lib.exp'
11626 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11627 hardcode_libdir_separator_CXX=:
11629 # Commands to make compiler produce verbose output that lists
11630 # what "hidden" libraries, object files and flags are used when
11631 # linking a shared library.
11633 # There doesn't appear to be a way to prevent this compiler from
11634 # explicitly linking system object files so we need to strip them
11635 # from the output so that they don't get included in the library
11636 # dependencies.
11637 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11640 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11641 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11642 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11645 hardcode_libdir_separator_CXX=:
11647 # Commands to make compiler produce verbose output that lists
11648 # what "hidden" libraries, object files and flags are used when
11649 # linking a shared library.
11650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11652 else
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11657 esac
11659 psos*)
11660 # FIXME: insert proper C++ library support
11661 ld_shlibs_CXX=no
11663 sunos4*)
11664 case $cc_basename in
11665 CC*)
11666 # Sun C++ 4.x
11667 # FIXME: insert proper C++ library support
11668 ld_shlibs_CXX=no
11670 lcc*)
11671 # Lucid
11672 # FIXME: insert proper C++ library support
11673 ld_shlibs_CXX=no
11676 # FIXME: insert proper C++ library support
11677 ld_shlibs_CXX=no
11679 esac
11681 solaris*)
11682 case $cc_basename in
11683 CC*)
11684 # Sun C++ 4.2, 5.x and Centerline C++
11685 archive_cmds_need_lc_CXX=yes
11686 no_undefined_flag_CXX=' -zdefs'
11687 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11688 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11689 $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'
11691 hardcode_libdir_flag_spec_CXX='-R$libdir'
11692 hardcode_shlibpath_var_CXX=no
11693 case $host_os in
11694 solaris2.[0-5] | solaris2.[0-5].*) ;;
11696 # The compiler driver will combine and reorder linker options,
11697 # but understands `-z linker_flag'.
11698 # Supported since Solaris 2.6 (maybe 2.5.1?)
11699 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11701 esac
11702 link_all_deplibs_CXX=yes
11704 output_verbose_link_cmd='echo'
11706 # Archives containing C++ object files must be created using
11707 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11708 # necessary to make sure instantiated templates are included
11709 # in the archive.
11710 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11712 gcx*)
11713 # Green Hills C++ Compiler
11714 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11716 # The C++ compiler must be used to create the archive.
11717 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11720 # GNU C++ compiler with Solaris linker
11721 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11722 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11723 if $CC --version | grep -v '^2\.7' > /dev/null; then
11724 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11725 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11726 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11728 # Commands to make compiler produce verbose output that lists
11729 # what "hidden" libraries, object files and flags are used when
11730 # linking a shared library.
11731 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11732 else
11733 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11734 # platform.
11735 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11736 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11737 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11739 # Commands to make compiler produce verbose output that lists
11740 # what "hidden" libraries, object files and flags are used when
11741 # linking a shared library.
11742 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11745 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11746 case $host_os in
11747 solaris2.[0-5] | solaris2.[0-5].*) ;;
11749 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11751 esac
11754 esac
11756 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11757 no_undefined_flag_CXX='${wl}-z,text'
11758 archive_cmds_need_lc_CXX=no
11759 hardcode_shlibpath_var_CXX=no
11760 runpath_var='LD_RUN_PATH'
11762 case $cc_basename in
11763 CC*)
11764 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11765 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11768 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11769 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11771 esac
11773 sysv5* | sco3.2v5* | sco5v6*)
11774 # Note: We can NOT use -z defs as we might desire, because we do not
11775 # link with -lc, and that would cause any symbols used from libc to
11776 # always be unresolved, which means just about no library would
11777 # ever link correctly. If we're not using GNU ld we use -z text
11778 # though, which does catch some bad symbols but isn't as heavy-handed
11779 # as -z defs.
11780 # For security reasons, it is highly recommended that you always
11781 # use absolute paths for naming shared libraries, and exclude the
11782 # DT_RUNPATH tag from executables and libraries. But doing so
11783 # requires that you compile everything twice, which is a pain.
11784 # So that behaviour is only enabled if SCOABSPATH is set to a
11785 # non-empty value in the environment. Most likely only useful for
11786 # creating official distributions of packages.
11787 # This is a hack until libtool officially supports absolute path
11788 # names for shared libraries.
11789 no_undefined_flag_CXX='${wl}-z,text'
11790 allow_undefined_flag_CXX='${wl}-z,nodefs'
11791 archive_cmds_need_lc_CXX=no
11792 hardcode_shlibpath_var_CXX=no
11793 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11794 hardcode_libdir_separator_CXX=':'
11795 link_all_deplibs_CXX=yes
11796 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11797 runpath_var='LD_RUN_PATH'
11799 case $cc_basename in
11800 CC*)
11801 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11802 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11805 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11806 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11808 esac
11810 tandem*)
11811 case $cc_basename in
11812 NCC*)
11813 # NonStop-UX NCC 3.20
11814 # FIXME: insert proper C++ library support
11815 ld_shlibs_CXX=no
11818 # FIXME: insert proper C++ library support
11819 ld_shlibs_CXX=no
11821 esac
11823 vxworks*)
11824 # FIXME: insert proper C++ library support
11825 ld_shlibs_CXX=no
11828 # FIXME: insert proper C++ library support
11829 ld_shlibs_CXX=no
11831 esac
11832 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11833 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11834 test "$ld_shlibs_CXX" = no && can_build_shared=no
11836 GCC_CXX="$GXX"
11837 LD_CXX="$LD"
11840 cat > conftest.$ac_ext <<EOF
11841 class Foo
11843 public:
11844 Foo (void) { a = 0; }
11845 private:
11846 int a;
11850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11851 (eval $ac_compile) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; then
11855 # Parse the compiler output and extract the necessary
11856 # objects, libraries and library flags.
11858 # Sentinel used to keep track of whether or not we are before
11859 # the conftest object file.
11860 pre_test_object_deps_done=no
11862 # The `*' in the case matches for architectures that use `case' in
11863 # $output_verbose_cmd can trigger glob expansion during the loop
11864 # eval without this substitution.
11865 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11867 for p in `eval $output_verbose_link_cmd`; do
11868 case $p in
11870 -L* | -R* | -l*)
11871 # Some compilers place space between "-{L,R}" and the path.
11872 # Remove the space.
11873 if test $p = "-L" \
11874 || test $p = "-R"; then
11875 prev=$p
11876 continue
11877 else
11878 prev=
11881 if test "$pre_test_object_deps_done" = no; then
11882 case $p in
11883 -L* | -R*)
11884 # Internal compiler library paths should come after those
11885 # provided the user. The postdeps already come after the
11886 # user supplied libs so there is no need to process them.
11887 if test -z "$compiler_lib_search_path_CXX"; then
11888 compiler_lib_search_path_CXX="${prev}${p}"
11889 else
11890 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11893 # The "-l" case would never come before the object being
11894 # linked, so don't bother handling this case.
11895 esac
11896 else
11897 if test -z "$postdeps_CXX"; then
11898 postdeps_CXX="${prev}${p}"
11899 else
11900 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11905 *.$objext)
11906 # This assumes that the test object file only shows up
11907 # once in the compiler output.
11908 if test "$p" = "conftest.$objext"; then
11909 pre_test_object_deps_done=yes
11910 continue
11913 if test "$pre_test_object_deps_done" = no; then
11914 if test -z "$predep_objects_CXX"; then
11915 predep_objects_CXX="$p"
11916 else
11917 predep_objects_CXX="$predep_objects_CXX $p"
11919 else
11920 if test -z "$postdep_objects_CXX"; then
11921 postdep_objects_CXX="$p"
11922 else
11923 postdep_objects_CXX="$postdep_objects_CXX $p"
11928 *) ;; # Ignore the rest.
11930 esac
11931 done
11933 # Clean up.
11934 rm -f a.out a.exe
11935 else
11936 echo "libtool.m4: error: problem compiling CXX test program"
11939 $rm -f confest.$objext
11941 # PORTME: override above test on systems where it is broken
11942 case $host_os in
11943 interix[3-9]*)
11944 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11945 # hack all around it, let's just trust "g++" to DTRT.
11946 predep_objects_CXX=
11947 postdep_objects_CXX=
11948 postdeps_CXX=
11951 linux*)
11952 case `$CC -V 2>&1 | sed 5q` in
11953 *Sun\ C*)
11954 # Sun C++ 5.9
11956 # The more standards-conforming stlport4 library is
11957 # incompatible with the Cstd library. Avoid specifying
11958 # it if it's in CXXFLAGS. Ignore libCrun as
11959 # -library=stlport4 depends on it.
11960 case " $CXX $CXXFLAGS " in
11961 *" -library=stlport4 "*)
11962 solaris_use_stlport4=yes
11964 esac
11965 if test "$solaris_use_stlport4" != yes; then
11966 postdeps_CXX='-library=Cstd -library=Crun'
11969 esac
11972 solaris*)
11973 case $cc_basename in
11974 CC*)
11975 # The more standards-conforming stlport4 library is
11976 # incompatible with the Cstd library. Avoid specifying
11977 # it if it's in CXXFLAGS. Ignore libCrun as
11978 # -library=stlport4 depends on it.
11979 case " $CXX $CXXFLAGS " in
11980 *" -library=stlport4 "*)
11981 solaris_use_stlport4=yes
11983 esac
11985 # Adding this requires a known-good setup of shared libraries for
11986 # Sun compiler versions before 5.6, else PIC objects from an old
11987 # archive will be linked into the output, leading to subtle bugs.
11988 if test "$solaris_use_stlport4" != yes; then
11989 postdeps_CXX='-library=Cstd -library=Crun'
11992 esac
11994 esac
11997 case " $postdeps_CXX " in
11998 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11999 esac
12001 lt_prog_compiler_wl_CXX=
12002 lt_prog_compiler_pic_CXX=
12003 lt_prog_compiler_static_CXX=
12005 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12006 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12008 # C++ specific cases for pic, static, wl, etc.
12009 if test "$GXX" = yes; then
12010 lt_prog_compiler_wl_CXX='-Wl,'
12011 lt_prog_compiler_static_CXX='-static'
12013 case $host_os in
12014 aix*)
12015 # All AIX code is PIC.
12016 if test "$host_cpu" = ia64; then
12017 # AIX 5 now supports IA64 processor
12018 lt_prog_compiler_static_CXX='-Bstatic'
12021 amigaos*)
12022 # FIXME: we need at least 68020 code to build shared libraries, but
12023 # adding the `-m68020' flag to GCC prevents building anything better,
12024 # like `-m68040'.
12025 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12027 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12028 # PIC is the default for these OSes.
12030 mingw* | cygwin* | os2* | pw32*)
12031 # This hack is so that the source file can tell whether it is being
12032 # built for inclusion in a dll (and should export symbols for example).
12033 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12034 # (--disable-auto-import) libraries
12035 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12037 darwin* | rhapsody*)
12038 # PIC is the default on this platform
12039 # Common symbols not allowed in MH_DYLIB files
12040 lt_prog_compiler_pic_CXX='-fno-common'
12042 *djgpp*)
12043 # DJGPP does not support shared libraries at all
12044 lt_prog_compiler_pic_CXX=
12046 interix[3-9]*)
12047 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12048 # Instead, we relocate shared libraries at runtime.
12050 sysv4*MP*)
12051 if test -d /usr/nec; then
12052 lt_prog_compiler_pic_CXX=-Kconform_pic
12055 hpux*)
12056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12057 # not for PA HP-UX.
12058 case $host_cpu in
12059 hppa*64*|ia64*)
12062 lt_prog_compiler_pic_CXX='-fPIC'
12064 esac
12067 lt_prog_compiler_pic_CXX='-fPIC'
12069 esac
12070 else
12071 case $host_os in
12072 aix4* | aix5*)
12073 # All AIX code is PIC.
12074 if test "$host_cpu" = ia64; then
12075 # AIX 5 now supports IA64 processor
12076 lt_prog_compiler_static_CXX='-Bstatic'
12077 else
12078 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12081 chorus*)
12082 case $cc_basename in
12083 cxch68*)
12084 # Green Hills C++ Compiler
12085 # _LT_AC_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"
12087 esac
12089 darwin*)
12090 # PIC is the default on this platform
12091 # Common symbols not allowed in MH_DYLIB files
12092 case $cc_basename in
12093 xlc*)
12094 lt_prog_compiler_pic_CXX='-qnocommon'
12095 lt_prog_compiler_wl_CXX='-Wl,'
12097 esac
12099 dgux*)
12100 case $cc_basename in
12101 ec++*)
12102 lt_prog_compiler_pic_CXX='-KPIC'
12104 ghcx*)
12105 # Green Hills C++ Compiler
12106 lt_prog_compiler_pic_CXX='-pic'
12110 esac
12112 freebsd* | dragonfly*)
12113 # FreeBSD uses GNU C++
12115 hpux9* | hpux10* | hpux11*)
12116 case $cc_basename in
12117 CC*)
12118 lt_prog_compiler_wl_CXX='-Wl,'
12119 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12120 if test "$host_cpu" != ia64; then
12121 lt_prog_compiler_pic_CXX='+Z'
12124 aCC*)
12125 lt_prog_compiler_wl_CXX='-Wl,'
12126 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12127 case $host_cpu in
12128 hppa*64*|ia64*)
12129 # +Z the default
12132 lt_prog_compiler_pic_CXX='+Z'
12134 esac
12138 esac
12140 interix*)
12141 # This is c89, which is MS Visual C++ (no shared libs)
12142 # Anyone wants to do a port?
12144 irix5* | irix6* | nonstopux*)
12145 case $cc_basename in
12146 CC*)
12147 lt_prog_compiler_wl_CXX='-Wl,'
12148 lt_prog_compiler_static_CXX='-non_shared'
12149 # CC pic flag -KPIC is the default.
12153 esac
12155 linux* | k*bsd*-gnu)
12156 case $cc_basename in
12157 KCC*)
12158 # KAI C++ Compiler
12159 lt_prog_compiler_wl_CXX='--backend -Wl,'
12160 lt_prog_compiler_pic_CXX='-fPIC'
12162 icpc* | ecpc*)
12163 # Intel C++
12164 lt_prog_compiler_wl_CXX='-Wl,'
12165 lt_prog_compiler_pic_CXX='-KPIC'
12166 lt_prog_compiler_static_CXX='-static'
12168 pgCC*)
12169 # Portland Group C++ compiler.
12170 lt_prog_compiler_wl_CXX='-Wl,'
12171 lt_prog_compiler_pic_CXX='-fpic'
12172 lt_prog_compiler_static_CXX='-Bstatic'
12174 cxx*)
12175 # Compaq C++
12176 # Make sure the PIC flag is empty. It appears that all Alpha
12177 # Linux and Compaq Tru64 Unix objects are PIC.
12178 lt_prog_compiler_pic_CXX=
12179 lt_prog_compiler_static_CXX='-non_shared'
12182 case `$CC -V 2>&1 | sed 5q` in
12183 *Sun\ C*)
12184 # Sun C++ 5.9
12185 lt_prog_compiler_pic_CXX='-KPIC'
12186 lt_prog_compiler_static_CXX='-Bstatic'
12187 lt_prog_compiler_wl_CXX='-Qoption ld '
12189 esac
12191 esac
12193 lynxos*)
12195 m88k*)
12197 mvs*)
12198 case $cc_basename in
12199 cxx*)
12200 lt_prog_compiler_pic_CXX='-W c,exportall'
12204 esac
12206 netbsd*)
12208 osf3* | osf4* | osf5*)
12209 case $cc_basename in
12210 KCC*)
12211 lt_prog_compiler_wl_CXX='--backend -Wl,'
12213 RCC*)
12214 # Rational C++ 2.4.1
12215 lt_prog_compiler_pic_CXX='-pic'
12217 cxx*)
12218 # Digital/Compaq C++
12219 lt_prog_compiler_wl_CXX='-Wl,'
12220 # Make sure the PIC flag is empty. It appears that all Alpha
12221 # Linux and Compaq Tru64 Unix objects are PIC.
12222 lt_prog_compiler_pic_CXX=
12223 lt_prog_compiler_static_CXX='-non_shared'
12227 esac
12229 psos*)
12231 solaris*)
12232 case $cc_basename in
12233 CC*)
12234 # Sun C++ 4.2, 5.x and Centerline C++
12235 lt_prog_compiler_pic_CXX='-KPIC'
12236 lt_prog_compiler_static_CXX='-Bstatic'
12237 lt_prog_compiler_wl_CXX='-Qoption ld '
12239 gcx*)
12240 # Green Hills C++ Compiler
12241 lt_prog_compiler_pic_CXX='-PIC'
12245 esac
12247 sunos4*)
12248 case $cc_basename in
12249 CC*)
12250 # Sun C++ 4.x
12251 lt_prog_compiler_pic_CXX='-pic'
12252 lt_prog_compiler_static_CXX='-Bstatic'
12254 lcc*)
12255 # Lucid
12256 lt_prog_compiler_pic_CXX='-pic'
12260 esac
12262 tandem*)
12263 case $cc_basename in
12264 NCC*)
12265 # NonStop-UX NCC 3.20
12266 lt_prog_compiler_pic_CXX='-KPIC'
12270 esac
12272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12273 case $cc_basename in
12274 CC*)
12275 lt_prog_compiler_wl_CXX='-Wl,'
12276 lt_prog_compiler_pic_CXX='-KPIC'
12277 lt_prog_compiler_static_CXX='-Bstatic'
12279 esac
12281 vxworks*)
12284 lt_prog_compiler_can_build_shared_CXX=no
12286 esac
12289 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12290 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12293 # Check to make sure the PIC flag actually works.
12295 if test -n "$lt_prog_compiler_pic_CXX"; then
12297 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12298 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12299 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302 lt_prog_compiler_pic_works_CXX=no
12303 ac_outfile=conftest.$ac_objext
12304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12305 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12306 # Insert the option either (1) after the last *FLAGS variable, or
12307 # (2) before a word containing "conftest.", or (3) at the end.
12308 # Note that $ac_compile itself does not contain backslashes and begins
12309 # with a dollar sign (not a hyphen), so the echo should work correctly.
12310 # The option is referenced via a variable to avoid confusing sed.
12311 lt_compile=`echo "$ac_compile" | $SED \
12312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12314 -e 's:$: $lt_compiler_flag:'`
12315 (eval echo "\"\$as_me:12315: $lt_compile\"" >&5)
12316 (eval "$lt_compile" 2>conftest.err)
12317 ac_status=$?
12318 cat conftest.err >&5
12319 echo "$as_me:12319: \$? = $ac_status" >&5
12320 if (exit $ac_status) && test -s "$ac_outfile"; then
12321 # The compiler can only warn and ignore the option if not recognized
12322 # So say no if there are warnings other than the usual output.
12323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12326 lt_prog_compiler_pic_works_CXX=yes
12329 $rm conftest*
12332 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12333 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12335 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12336 case $lt_prog_compiler_pic_CXX in
12337 "" | " "*) ;;
12338 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12339 esac
12340 else
12341 lt_prog_compiler_pic_CXX=
12342 lt_prog_compiler_can_build_shared_CXX=no
12346 case $host_os in
12347 # For platforms which do not support PIC, -DPIC is meaningless:
12348 *djgpp*)
12349 lt_prog_compiler_pic_CXX=
12352 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12354 esac
12357 # Check to make sure the static flag actually works.
12359 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12360 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12361 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12362 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365 lt_prog_compiler_static_works_CXX=no
12366 save_LDFLAGS="$LDFLAGS"
12367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12368 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12370 # The linker can only warn and ignore the option if not recognized
12371 # So say no if there are warnings
12372 if test -s conftest.err; then
12373 # Append any errors to the config.log.
12374 cat conftest.err 1>&5
12375 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12377 if diff conftest.exp conftest.er2 >/dev/null; then
12378 lt_prog_compiler_static_works_CXX=yes
12380 else
12381 lt_prog_compiler_static_works_CXX=yes
12384 $rm conftest*
12385 LDFLAGS="$save_LDFLAGS"
12388 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12389 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12391 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12393 else
12394 lt_prog_compiler_static_CXX=
12398 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12399 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12400 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403 lt_cv_prog_compiler_c_o_CXX=no
12404 $rm -r conftest 2>/dev/null
12405 mkdir conftest
12406 cd conftest
12407 mkdir out
12408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12410 lt_compiler_flag="-o out/conftest2.$ac_objext"
12411 # Insert the option either (1) after the last *FLAGS variable, or
12412 # (2) before a word containing "conftest.", or (3) at the end.
12413 # Note that $ac_compile itself does not contain backslashes and begins
12414 # with a dollar sign (not a hyphen), so the echo should work correctly.
12415 lt_compile=`echo "$ac_compile" | $SED \
12416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12418 -e 's:$: $lt_compiler_flag:'`
12419 (eval echo "\"\$as_me:12419: $lt_compile\"" >&5)
12420 (eval "$lt_compile" 2>out/conftest.err)
12421 ac_status=$?
12422 cat out/conftest.err >&5
12423 echo "$as_me:12423: \$? = $ac_status" >&5
12424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12425 then
12426 # The compiler can only warn and ignore the option if not recognized
12427 # So say no if there are warnings
12428 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12431 lt_cv_prog_compiler_c_o_CXX=yes
12434 chmod u+w . 2>&5
12435 $rm conftest*
12436 # SGI C++ compiler will create directory out/ii_files/ for
12437 # template instantiation
12438 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12439 $rm out/* && rmdir out
12440 cd ..
12441 rmdir conftest
12442 $rm conftest*
12445 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12446 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12449 hard_links="nottested"
12450 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12451 # do not overwrite the value of need_locks provided by the user
12452 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12453 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12454 hard_links=yes
12455 $rm conftest*
12456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12457 touch conftest.a
12458 ln conftest.a conftest.b 2>&5 || hard_links=no
12459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12460 { echo "$as_me:$LINENO: result: $hard_links" >&5
12461 echo "${ECHO_T}$hard_links" >&6; }
12462 if test "$hard_links" = no; then
12463 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12464 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12465 need_locks=warn
12467 else
12468 need_locks=no
12471 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12472 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12474 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12475 case $host_os in
12476 aix4* | aix5*)
12477 # If we're using GNU nm, then we don't want the "-C" option.
12478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12479 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12480 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'
12481 else
12482 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'
12485 pw32*)
12486 export_symbols_cmds_CXX="$ltdll_cmds"
12488 cygwin* | mingw*)
12489 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'
12492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12494 esac
12496 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12497 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12498 test "$ld_shlibs_CXX" = no && can_build_shared=no
12501 # Do we need to explicitly link libc?
12503 case "x$archive_cmds_need_lc_CXX" in
12504 x|xyes)
12505 # Assume -lc should be added
12506 archive_cmds_need_lc_CXX=yes
12508 if test "$enable_shared" = yes && test "$GCC" = yes; then
12509 case $archive_cmds_CXX in
12510 *'~'*)
12511 # FIXME: we may have to deal with multi-command sequences.
12513 '$CC '*)
12514 # Test whether the compiler implicitly links with -lc since on some
12515 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12516 # to ld, don't add -lc before -lgcc.
12517 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12518 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12519 $rm conftest*
12520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12523 (eval $ac_compile) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } 2>conftest.err; then
12527 soname=conftest
12528 lib=conftest
12529 libobjs=conftest.$ac_objext
12530 deplibs=
12531 wl=$lt_prog_compiler_wl_CXX
12532 pic_flag=$lt_prog_compiler_pic_CXX
12533 compiler_flags=-v
12534 linker_flags=-v
12535 verstring=
12536 output_objdir=.
12537 libname=conftest
12538 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12539 allow_undefined_flag_CXX=
12540 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12541 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }
12545 then
12546 archive_cmds_need_lc_CXX=no
12547 else
12548 archive_cmds_need_lc_CXX=yes
12550 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12551 else
12552 cat conftest.err 1>&5
12554 $rm conftest*
12555 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12556 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12558 esac
12561 esac
12563 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12564 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12565 library_names_spec=
12566 libname_spec='lib$name'
12567 soname_spec=
12568 shrext_cmds=".so"
12569 postinstall_cmds=
12570 postuninstall_cmds=
12571 finish_cmds=
12572 finish_eval=
12573 shlibpath_var=
12574 shlibpath_overrides_runpath=unknown
12575 version_type=none
12576 dynamic_linker="$host_os ld.so"
12577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12579 need_lib_prefix=unknown
12580 hardcode_into_libs=no
12582 # when you set need_version to no, make sure it does not cause -set_version
12583 # flags to be left without arguments
12584 need_version=unknown
12586 case $host_os in
12587 aix3*)
12588 version_type=linux
12589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12590 shlibpath_var=LIBPATH
12592 # AIX 3 has no versioning support, so we append a major version to the name.
12593 soname_spec='${libname}${release}${shared_ext}$major'
12596 aix4* | aix5*)
12597 version_type=linux
12598 need_lib_prefix=no
12599 need_version=no
12600 hardcode_into_libs=yes
12601 if test "$host_cpu" = ia64; then
12602 # AIX 5 supports IA64
12603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12604 shlibpath_var=LD_LIBRARY_PATH
12605 else
12606 # With GCC up to 2.95.x, collect2 would create an import file
12607 # for dependence libraries. The import file would start with
12608 # the line `#! .'. This would cause the generated library to
12609 # depend on `.', always an invalid library. This was fixed in
12610 # development snapshots of GCC prior to 3.0.
12611 case $host_os in
12612 aix4 | aix4.[01] | aix4.[01].*)
12613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12614 echo ' yes '
12615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12617 else
12618 can_build_shared=no
12621 esac
12622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12623 # soname into executable. Probably we can add versioning support to
12624 # collect2, so additional links can be useful in future.
12625 if test "$aix_use_runtimelinking" = yes; then
12626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12627 # instead of lib<name>.a to let people know that these are not
12628 # typical AIX shared libraries.
12629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12630 else
12631 # We preserve .a as extension for shared libraries through AIX4.2
12632 # and later when we are not doing run time linking.
12633 library_names_spec='${libname}${release}.a $libname.a'
12634 soname_spec='${libname}${release}${shared_ext}$major'
12636 shlibpath_var=LIBPATH
12640 amigaos*)
12641 library_names_spec='$libname.ixlibrary $libname.a'
12642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12643 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'
12646 beos*)
12647 library_names_spec='${libname}${shared_ext}'
12648 dynamic_linker="$host_os ld.so"
12649 shlibpath_var=LIBRARY_PATH
12652 bsdi[45]*)
12653 version_type=linux
12654 need_version=no
12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656 soname_spec='${libname}${release}${shared_ext}$major'
12657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12658 shlibpath_var=LD_LIBRARY_PATH
12659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12661 # the default ld.so.conf also contains /usr/contrib/lib and
12662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12663 # libtool to hard-code these into programs
12666 cygwin* | mingw* | pw32*)
12667 version_type=windows
12668 shrext_cmds=".dll"
12669 need_version=no
12670 need_lib_prefix=no
12672 case $GCC,$host_os in
12673 yes,cygwin* | yes,mingw* | yes,pw32*)
12674 library_names_spec='$libname.dll.a'
12675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12676 postinstall_cmds='base_file=`basename \${file}`~
12677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12678 dldir=$destdir/`dirname \$dlpath`~
12679 test -d \$dldir || mkdir -p \$dldir~
12680 $install_prog $dir/$dlname \$dldir/$dlname~
12681 chmod a+x \$dldir/$dlname'
12682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12683 dlpath=$dir/\$dldll~
12684 $rm \$dlpath'
12685 shlibpath_overrides_runpath=yes
12687 case $host_os in
12688 cygwin*)
12689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12691 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12693 mingw*)
12694 # MinGW DLLs use traditional 'lib' prefix
12695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12697 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12698 # It is most probably a Windows format PATH printed by
12699 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12700 # path with ; separators, and with drive letters. We can handle the
12701 # drive letters (cygwin fileutils understands them), so leave them,
12702 # especially as we might pass files found there to a mingw objdump,
12703 # which wouldn't understand a cygwinified path. Ahh.
12704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12705 else
12706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12709 pw32*)
12710 # pw32 DLLs use 'pw' prefix rather than 'lib'
12711 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12713 esac
12717 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12719 esac
12720 dynamic_linker='Win32 ld.exe'
12721 # FIXME: first we should search . and the directory the executable is in
12722 shlibpath_var=PATH
12725 darwin* | rhapsody*)
12726 dynamic_linker="$host_os dyld"
12727 version_type=darwin
12728 need_lib_prefix=no
12729 need_version=no
12730 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12731 soname_spec='${libname}${release}${major}$shared_ext'
12732 shlibpath_overrides_runpath=yes
12733 shlibpath_var=DYLD_LIBRARY_PATH
12734 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12739 dgux*)
12740 version_type=linux
12741 need_lib_prefix=no
12742 need_version=no
12743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12744 soname_spec='${libname}${release}${shared_ext}$major'
12745 shlibpath_var=LD_LIBRARY_PATH
12748 freebsd1*)
12749 dynamic_linker=no
12752 freebsd* | dragonfly*)
12753 # DragonFly does not have aout. When/if they implement a new
12754 # versioning mechanism, adjust this.
12755 if test -x /usr/bin/objformat; then
12756 objformat=`/usr/bin/objformat`
12757 else
12758 case $host_os in
12759 freebsd[123]*) objformat=aout ;;
12760 *) objformat=elf ;;
12761 esac
12763 version_type=freebsd-$objformat
12764 case $version_type in
12765 freebsd-elf*)
12766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12767 need_version=no
12768 need_lib_prefix=no
12770 freebsd-*)
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12772 need_version=yes
12774 esac
12775 shlibpath_var=LD_LIBRARY_PATH
12776 case $host_os in
12777 freebsd2*)
12778 shlibpath_overrides_runpath=yes
12780 freebsd3.[01]* | freebsdelf3.[01]*)
12781 shlibpath_overrides_runpath=yes
12782 hardcode_into_libs=yes
12784 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12785 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12786 shlibpath_overrides_runpath=no
12787 hardcode_into_libs=yes
12789 *) # from 4.6 on, and DragonFly
12790 shlibpath_overrides_runpath=yes
12791 hardcode_into_libs=yes
12793 esac
12796 gnu*)
12797 version_type=linux
12798 need_lib_prefix=no
12799 need_version=no
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 hardcode_into_libs=yes
12806 hpux9* | hpux10* | hpux11*)
12807 # Give a soname corresponding to the major version so that dld.sl refuses to
12808 # link against other versions.
12809 version_type=sunos
12810 need_lib_prefix=no
12811 need_version=no
12812 case $host_cpu in
12813 ia64*)
12814 shrext_cmds='.so'
12815 hardcode_into_libs=yes
12816 dynamic_linker="$host_os dld.so"
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820 soname_spec='${libname}${release}${shared_ext}$major'
12821 if test "X$HPUX_IA64_MODE" = X32; then
12822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12823 else
12824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12828 hppa*64*)
12829 shrext_cmds='.sl'
12830 hardcode_into_libs=yes
12831 dynamic_linker="$host_os dld.sl"
12832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12835 soname_spec='${libname}${release}${shared_ext}$major'
12836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12840 shrext_cmds='.sl'
12841 dynamic_linker="$host_os dld.sl"
12842 shlibpath_var=SHLIB_PATH
12843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 soname_spec='${libname}${release}${shared_ext}$major'
12847 esac
12848 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12849 postinstall_cmds='chmod 555 $lib'
12852 interix[3-9]*)
12853 version_type=linux
12854 need_lib_prefix=no
12855 need_version=no
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12857 soname_spec='${libname}${release}${shared_ext}$major'
12858 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 shlibpath_overrides_runpath=no
12861 hardcode_into_libs=yes
12864 irix5* | irix6* | nonstopux*)
12865 case $host_os in
12866 nonstopux*) version_type=nonstopux ;;
12868 if test "$lt_cv_prog_gnu_ld" = yes; then
12869 version_type=linux
12870 else
12871 version_type=irix
12872 fi ;;
12873 esac
12874 need_lib_prefix=no
12875 need_version=no
12876 soname_spec='${libname}${release}${shared_ext}$major'
12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12878 case $host_os in
12879 irix5* | nonstopux*)
12880 libsuff= shlibsuff=
12883 case $LD in # libtool.m4 will add one of these switches to LD
12884 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12885 libsuff= shlibsuff= libmagic=32-bit;;
12886 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12887 libsuff=32 shlibsuff=N32 libmagic=N32;;
12888 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12889 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12890 *) libsuff= shlibsuff= libmagic=never-match;;
12891 esac
12893 esac
12894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12895 shlibpath_overrides_runpath=no
12896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12898 hardcode_into_libs=yes
12901 # No shared lib support for Linux oldld, aout, or coff.
12902 linux*oldld* | linux*aout* | linux*coff*)
12903 dynamic_linker=no
12906 # This must be Linux ELF.
12907 linux* | k*bsd*-gnu)
12908 version_type=linux
12909 need_lib_prefix=no
12910 need_version=no
12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=no
12916 # This implies no fast_install, which is unacceptable.
12917 # Some rework will be needed to allow for fast_install
12918 # before this can be enabled.
12919 hardcode_into_libs=yes
12921 # Append ld.so.conf contents to the search path
12922 if test -f /etc/ld.so.conf; then
12923 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' ' '`
12924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12927 # We used to test for /lib/ld.so.1 and disable shared libraries on
12928 # powerpc, because MkLinux only supported shared libraries with the
12929 # GNU dynamic linker. Since this was broken with cross compilers,
12930 # most powerpc-linux boxes support dynamic linking these days and
12931 # people can always --disable-shared, the test was removed, and we
12932 # assume the GNU/Linux dynamic linker is in use.
12933 dynamic_linker='GNU/Linux ld.so'
12936 netbsd*)
12937 version_type=sunos
12938 need_lib_prefix=no
12939 need_version=no
12940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12943 dynamic_linker='NetBSD (a.out) ld.so'
12944 else
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 dynamic_linker='NetBSD ld.elf_so'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=yes
12951 hardcode_into_libs=yes
12954 newsos6)
12955 version_type=linux
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12957 shlibpath_var=LD_LIBRARY_PATH
12958 shlibpath_overrides_runpath=yes
12961 nto-qnx*)
12962 version_type=linux
12963 need_lib_prefix=no
12964 need_version=no
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966 soname_spec='${libname}${release}${shared_ext}$major'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 shlibpath_overrides_runpath=yes
12971 openbsd*)
12972 version_type=sunos
12973 sys_lib_dlsearch_path_spec="/usr/lib"
12974 need_lib_prefix=no
12975 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12976 case $host_os in
12977 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12978 *) need_version=no ;;
12979 esac
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12984 case $host_os in
12985 openbsd2.[89] | openbsd2.[89].*)
12986 shlibpath_overrides_runpath=no
12989 shlibpath_overrides_runpath=yes
12991 esac
12992 else
12993 shlibpath_overrides_runpath=yes
12997 os2*)
12998 libname_spec='$name'
12999 shrext_cmds=".dll"
13000 need_lib_prefix=no
13001 library_names_spec='$libname${shared_ext} $libname.a'
13002 dynamic_linker='OS/2 ld.exe'
13003 shlibpath_var=LIBPATH
13006 osf3* | osf4* | osf5*)
13007 version_type=osf
13008 need_lib_prefix=no
13009 need_version=no
13010 soname_spec='${libname}${release}${shared_ext}$major'
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13014 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13017 rdos*)
13018 dynamic_linker=no
13021 solaris*)
13022 version_type=linux
13023 need_lib_prefix=no
13024 need_version=no
13025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026 soname_spec='${libname}${release}${shared_ext}$major'
13027 shlibpath_var=LD_LIBRARY_PATH
13028 shlibpath_overrides_runpath=yes
13029 hardcode_into_libs=yes
13030 # ldd complains unless libraries are executable
13031 postinstall_cmds='chmod +x $lib'
13034 sunos4*)
13035 version_type=sunos
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 shlibpath_overrides_runpath=yes
13040 if test "$with_gnu_ld" = yes; then
13041 need_lib_prefix=no
13043 need_version=yes
13046 sysv4 | sysv4.3*)
13047 version_type=linux
13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 case $host_vendor in
13052 sni)
13053 shlibpath_overrides_runpath=no
13054 need_lib_prefix=no
13055 export_dynamic_flag_spec='${wl}-Blargedynsym'
13056 runpath_var=LD_RUN_PATH
13058 siemens)
13059 need_lib_prefix=no
13061 motorola)
13062 need_lib_prefix=no
13063 need_version=no
13064 shlibpath_overrides_runpath=no
13065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13067 esac
13070 sysv4*MP*)
13071 if test -d /usr/nec ;then
13072 version_type=linux
13073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13074 soname_spec='$libname${shared_ext}.$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13080 version_type=freebsd-elf
13081 need_lib_prefix=no
13082 need_version=no
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 hardcode_into_libs=yes
13087 if test "$with_gnu_ld" = yes; then
13088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13089 shlibpath_overrides_runpath=no
13090 else
13091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13092 shlibpath_overrides_runpath=yes
13093 case $host_os in
13094 sco3.2v5*)
13095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13097 esac
13099 sys_lib_dlsearch_path_spec='/usr/lib'
13102 uts4*)
13103 version_type=linux
13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105 soname_spec='${libname}${release}${shared_ext}$major'
13106 shlibpath_var=LD_LIBRARY_PATH
13110 dynamic_linker=no
13112 esac
13113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13114 echo "${ECHO_T}$dynamic_linker" >&6; }
13115 test "$dynamic_linker" = no && can_build_shared=no
13117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13118 if test "$GCC" = yes; then
13119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13122 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13123 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13124 hardcode_action_CXX=
13125 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13126 test -n "$runpath_var_CXX" || \
13127 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13129 # We can hardcode non-existant directories.
13130 if test "$hardcode_direct_CXX" != no &&
13131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13132 # have to relink, otherwise we might link with an installed library
13133 # when we should be linking with a yet-to-be-installed one
13134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13135 test "$hardcode_minus_L_CXX" != no; then
13136 # Linking always hardcodes the temporary library directory.
13137 hardcode_action_CXX=relink
13138 else
13139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13140 hardcode_action_CXX=immediate
13142 else
13143 # We cannot hardcode anything, or else we can only hardcode existing
13144 # directories.
13145 hardcode_action_CXX=unsupported
13147 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13148 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13150 if test "$hardcode_action_CXX" = relink; then
13151 # Fast installation is not supported
13152 enable_fast_install=no
13153 elif test "$shlibpath_overrides_runpath" = yes ||
13154 test "$enable_shared" = no; then
13155 # Fast installation is not necessary
13156 enable_fast_install=needless
13160 # The else clause should only fire when bootstrapping the
13161 # libtool distribution, otherwise you forgot to ship ltmain.sh
13162 # with your package, and you will get complaints that there are
13163 # no rules to generate ltmain.sh.
13164 if test -f "$ltmain"; then
13165 # See if we are running on zsh, and set the options which allow our commands through
13166 # without removal of \ escapes.
13167 if test -n "${ZSH_VERSION+set}" ; then
13168 setopt NO_GLOB_SUBST
13170 # Now quote all the things that may contain metacharacters while being
13171 # careful not to overquote the AC_SUBSTed values. We take copies of the
13172 # variables and quote the copies for generation of the libtool script.
13173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13174 SED SHELL STRIP \
13175 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13176 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13177 deplibs_check_method reload_flag reload_cmds need_locks \
13178 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13179 lt_cv_sys_global_symbol_to_c_name_address \
13180 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13181 old_postinstall_cmds old_postuninstall_cmds \
13182 compiler_CXX \
13183 CC_CXX \
13184 LD_CXX \
13185 lt_prog_compiler_wl_CXX \
13186 lt_prog_compiler_pic_CXX \
13187 lt_prog_compiler_static_CXX \
13188 lt_prog_compiler_no_builtin_flag_CXX \
13189 export_dynamic_flag_spec_CXX \
13190 thread_safe_flag_spec_CXX \
13191 whole_archive_flag_spec_CXX \
13192 enable_shared_with_static_runtimes_CXX \
13193 old_archive_cmds_CXX \
13194 old_archive_from_new_cmds_CXX \
13195 predep_objects_CXX \
13196 postdep_objects_CXX \
13197 predeps_CXX \
13198 postdeps_CXX \
13199 compiler_lib_search_path_CXX \
13200 archive_cmds_CXX \
13201 archive_expsym_cmds_CXX \
13202 postinstall_cmds_CXX \
13203 postuninstall_cmds_CXX \
13204 old_archive_from_expsyms_cmds_CXX \
13205 allow_undefined_flag_CXX \
13206 no_undefined_flag_CXX \
13207 export_symbols_cmds_CXX \
13208 hardcode_libdir_flag_spec_CXX \
13209 hardcode_libdir_flag_spec_ld_CXX \
13210 hardcode_libdir_separator_CXX \
13211 hardcode_automatic_CXX \
13212 module_cmds_CXX \
13213 module_expsym_cmds_CXX \
13214 lt_cv_prog_compiler_c_o_CXX \
13215 fix_srcfile_path_CXX \
13216 exclude_expsyms_CXX \
13217 include_expsyms_CXX; do
13219 case $var in
13220 old_archive_cmds_CXX | \
13221 old_archive_from_new_cmds_CXX | \
13222 archive_cmds_CXX | \
13223 archive_expsym_cmds_CXX | \
13224 module_cmds_CXX | \
13225 module_expsym_cmds_CXX | \
13226 old_archive_from_expsyms_cmds_CXX | \
13227 export_symbols_cmds_CXX | \
13228 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13229 postinstall_cmds | postuninstall_cmds | \
13230 old_postinstall_cmds | old_postuninstall_cmds | \
13231 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13232 # Double-quote double-evaled strings.
13233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13238 esac
13239 done
13241 case $lt_echo in
13242 *'\$0 --fallback-echo"')
13243 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13245 esac
13247 cfgfile="$ofile"
13249 cat <<__EOF__ >> "$cfgfile"
13250 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13252 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13254 # Shell to use when invoking shell scripts.
13255 SHELL=$lt_SHELL
13257 # Whether or not to build shared libraries.
13258 build_libtool_libs=$enable_shared
13260 # Whether or not to build static libraries.
13261 build_old_libs=$enable_static
13263 # Whether or not to add -lc for building shared libraries.
13264 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13266 # Whether or not to disallow shared libs when runtime libs are static
13267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13269 # Whether or not to optimize for fast installation.
13270 fast_install=$enable_fast_install
13272 # The host system.
13273 host_alias=$host_alias
13274 host=$host
13275 host_os=$host_os
13277 # The build system.
13278 build_alias=$build_alias
13279 build=$build
13280 build_os=$build_os
13282 # An echo program that does not interpret backslashes.
13283 echo=$lt_echo
13285 # The archiver.
13286 AR=$lt_AR
13287 AR_FLAGS=$lt_AR_FLAGS
13289 # A C compiler.
13290 LTCC=$lt_LTCC
13292 # LTCC compiler flags.
13293 LTCFLAGS=$lt_LTCFLAGS
13295 # A language-specific compiler.
13296 CC=$lt_compiler_CXX
13298 # Is the compiler the GNU C compiler?
13299 with_gcc=$GCC_CXX
13301 # An ERE matcher.
13302 EGREP=$lt_EGREP
13304 # The linker used to build libraries.
13305 LD=$lt_LD_CXX
13307 # Whether we need hard or soft links.
13308 LN_S=$lt_LN_S
13310 # A BSD-compatible nm program.
13311 NM=$lt_NM
13313 # A symbol stripping program
13314 STRIP=$lt_STRIP
13316 # Used to examine libraries when file_magic_cmd begins "file"
13317 MAGIC_CMD=$MAGIC_CMD
13319 # Used on cygwin: DLL creation program.
13320 DLLTOOL="$DLLTOOL"
13322 # Used on cygwin: object dumper.
13323 OBJDUMP="$OBJDUMP"
13325 # Used on cygwin: assembler.
13326 AS="$AS"
13328 # The name of the directory that contains temporary libtool files.
13329 objdir=$objdir
13331 # How to create reloadable object files.
13332 reload_flag=$lt_reload_flag
13333 reload_cmds=$lt_reload_cmds
13335 # How to pass a linker flag through the compiler.
13336 wl=$lt_lt_prog_compiler_wl_CXX
13338 # Object file suffix (normally "o").
13339 objext="$ac_objext"
13341 # Old archive suffix (normally "a").
13342 libext="$libext"
13344 # Shared library suffix (normally ".so").
13345 shrext_cmds='$shrext_cmds'
13347 # Executable file suffix (normally "").
13348 exeext="$exeext"
13350 # Additional compiler flags for building library objects.
13351 pic_flag=$lt_lt_prog_compiler_pic_CXX
13352 pic_mode=$pic_mode
13354 # What is the maximum length of a command?
13355 max_cmd_len=$lt_cv_sys_max_cmd_len
13357 # Does compiler simultaneously support -c and -o options?
13358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13360 # Must we lock files when doing compilation?
13361 need_locks=$lt_need_locks
13363 # Do we need the lib prefix for modules?
13364 need_lib_prefix=$need_lib_prefix
13366 # Do we need a version for libraries?
13367 need_version=$need_version
13369 # Whether dlopen is supported.
13370 dlopen_support=$enable_dlopen
13372 # Whether dlopen of programs is supported.
13373 dlopen_self=$enable_dlopen_self
13375 # Whether dlopen of statically linked programs is supported.
13376 dlopen_self_static=$enable_dlopen_self_static
13378 # Compiler flag to prevent dynamic linking.
13379 link_static_flag=$lt_lt_prog_compiler_static_CXX
13381 # Compiler flag to turn off builtin functions.
13382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13384 # Compiler flag to allow reflexive dlopens.
13385 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13387 # Compiler flag to generate shared objects directly from archives.
13388 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13390 # Compiler flag to generate thread-safe objects.
13391 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13393 # Library versioning type.
13394 version_type=$version_type
13396 # Format of library name prefix.
13397 libname_spec=$lt_libname_spec
13399 # List of archive names. First name is the real one, the rest are links.
13400 # The last name is the one that the linker finds with -lNAME.
13401 library_names_spec=$lt_library_names_spec
13403 # The coded name of the library, if different from the real name.
13404 soname_spec=$lt_soname_spec
13406 # Commands used to build and install an old-style archive.
13407 RANLIB=$lt_RANLIB
13408 old_archive_cmds=$lt_old_archive_cmds_CXX
13409 old_postinstall_cmds=$lt_old_postinstall_cmds
13410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13412 # Create an old-style archive from a shared archive.
13413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13415 # Create a temporary old-style archive to link instead of a shared archive.
13416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13418 # Commands used to build and install a shared archive.
13419 archive_cmds=$lt_archive_cmds_CXX
13420 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13421 postinstall_cmds=$lt_postinstall_cmds
13422 postuninstall_cmds=$lt_postuninstall_cmds
13424 # Commands used to build a loadable module (assumed same as above if empty)
13425 module_cmds=$lt_module_cmds_CXX
13426 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13428 # Commands to strip libraries.
13429 old_striplib=$lt_old_striplib
13430 striplib=$lt_striplib
13432 # Dependencies to place before the objects being linked to create a
13433 # shared library.
13434 predep_objects=$lt_predep_objects_CXX
13436 # Dependencies to place after the objects being linked to create a
13437 # shared library.
13438 postdep_objects=$lt_postdep_objects_CXX
13440 # Dependencies to place before the objects being linked to create a
13441 # shared library.
13442 predeps=$lt_predeps_CXX
13444 # Dependencies to place after the objects being linked to create a
13445 # shared library.
13446 postdeps=$lt_postdeps_CXX
13448 # The library search path used internally by the compiler when linking
13449 # a shared library.
13450 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13452 # Method to check whether dependent libraries are shared objects.
13453 deplibs_check_method=$lt_deplibs_check_method
13455 # Command to use when deplibs_check_method == file_magic.
13456 file_magic_cmd=$lt_file_magic_cmd
13458 # Flag that allows shared libraries with undefined symbols to be built.
13459 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13461 # Flag that forces no undefined symbols.
13462 no_undefined_flag=$lt_no_undefined_flag_CXX
13464 # Commands used to finish a libtool library installation in a directory.
13465 finish_cmds=$lt_finish_cmds
13467 # Same as above, but a single script fragment to be evaled but not shown.
13468 finish_eval=$lt_finish_eval
13470 # Take the output of nm and produce a listing of raw symbols and C names.
13471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13473 # Transform the output of nm in a proper C declaration
13474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13476 # Transform the output of nm in a C name address pair
13477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13479 # This is the shared library runtime path variable.
13480 runpath_var=$runpath_var
13482 # This is the shared library path variable.
13483 shlibpath_var=$shlibpath_var
13485 # Is shlibpath searched before the hard-coded library search path?
13486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13488 # How to hardcode a shared library path into an executable.
13489 hardcode_action=$hardcode_action_CXX
13491 # Whether we should hardcode library paths into libraries.
13492 hardcode_into_libs=$hardcode_into_libs
13494 # Flag to hardcode \$libdir into a binary during linking.
13495 # This must work even if \$libdir does not exist.
13496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13498 # If ld is used when linking, flag to hardcode \$libdir into
13499 # a binary during linking. This must work even if \$libdir does
13500 # not exist.
13501 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13503 # Whether we need a single -rpath flag with a separated argument.
13504 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13506 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13507 # resulting binary.
13508 hardcode_direct=$hardcode_direct_CXX
13510 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13511 # resulting binary.
13512 hardcode_minus_L=$hardcode_minus_L_CXX
13514 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13515 # the resulting binary.
13516 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13518 # Set to yes if building a shared library automatically hardcodes DIR into the library
13519 # and all subsequent libraries and executables linked against it.
13520 hardcode_automatic=$hardcode_automatic_CXX
13522 # Variables whose values should be saved in libtool wrapper scripts and
13523 # restored at relink time.
13524 variables_saved_for_relink="$variables_saved_for_relink"
13526 # Whether libtool must link a program against all its dependency libraries.
13527 link_all_deplibs=$link_all_deplibs_CXX
13529 # Compile-time system search path for libraries
13530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13532 # Run-time system search path for libraries
13533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13535 # Fix the shell variable \$srcfile for the compiler.
13536 fix_srcfile_path=$lt_fix_srcfile_path
13538 # Set to yes if exported symbols are required.
13539 always_export_symbols=$always_export_symbols_CXX
13541 # The commands to list exported symbols.
13542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13544 # The commands to extract the exported symbol list from a shared archive.
13545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13547 # Symbols that should not be listed in the preloaded symbols.
13548 exclude_expsyms=$lt_exclude_expsyms_CXX
13550 # Symbols that must always be exported.
13551 include_expsyms=$lt_include_expsyms_CXX
13553 # ### END LIBTOOL TAG CONFIG: $tagname
13555 __EOF__
13558 else
13559 # If there is no Makefile yet, we rely on a make rule to execute
13560 # `config.status --recheck' to rerun these tests and create the
13561 # libtool script then.
13562 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13563 if test -f "$ltmain_in"; then
13564 test -f Makefile && make "$ltmain"
13569 ac_ext=c
13570 ac_cpp='$CPP $CPPFLAGS'
13571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13575 CC=$lt_save_CC
13576 LDCXX=$LD
13577 LD=$lt_save_LD
13578 GCC=$lt_save_GCC
13579 with_gnu_ldcxx=$with_gnu_ld
13580 with_gnu_ld=$lt_save_with_gnu_ld
13581 lt_cv_path_LDCXX=$lt_cv_path_LD
13582 lt_cv_path_LD=$lt_save_path_LD
13583 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13584 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13586 else
13587 tagname=""
13591 F77)
13592 if test -n "$F77" && test "X$F77" != "Xno"; then
13594 ac_ext=f
13595 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13596 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13597 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13600 archive_cmds_need_lc_F77=no
13601 allow_undefined_flag_F77=
13602 always_export_symbols_F77=no
13603 archive_expsym_cmds_F77=
13604 export_dynamic_flag_spec_F77=
13605 hardcode_direct_F77=no
13606 hardcode_libdir_flag_spec_F77=
13607 hardcode_libdir_flag_spec_ld_F77=
13608 hardcode_libdir_separator_F77=
13609 hardcode_minus_L_F77=no
13610 hardcode_automatic_F77=no
13611 module_cmds_F77=
13612 module_expsym_cmds_F77=
13613 link_all_deplibs_F77=unknown
13614 old_archive_cmds_F77=$old_archive_cmds
13615 no_undefined_flag_F77=
13616 whole_archive_flag_spec_F77=
13617 enable_shared_with_static_runtimes_F77=no
13619 # Source file extension for f77 test sources.
13620 ac_ext=f
13622 # Object file extension for compiled f77 test sources.
13623 objext=o
13624 objext_F77=$objext
13626 # Code to be used in simple compile tests
13627 lt_simple_compile_test_code="\
13628 subroutine t
13629 return
13633 # Code to be used in simple link tests
13634 lt_simple_link_test_code="\
13635 program t
13639 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13641 # If no C compiler was specified, use CC.
13642 LTCC=${LTCC-"$CC"}
13644 # If no C compiler flags were specified, use CFLAGS.
13645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13647 # Allow CC to be a program name with arguments.
13648 compiler=$CC
13651 # save warnings/boilerplate of simple test code
13652 ac_outfile=conftest.$ac_objext
13653 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13654 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13655 _lt_compiler_boilerplate=`cat conftest.err`
13656 $rm conftest*
13658 ac_outfile=conftest.$ac_objext
13659 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13660 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13661 _lt_linker_boilerplate=`cat conftest.err`
13662 $rm conftest*
13665 # Allow CC to be a program name with arguments.
13666 lt_save_CC="$CC"
13667 CC=${F77-"f77"}
13668 compiler=$CC
13669 compiler_F77=$CC
13670 for cc_temp in $compiler""; do
13671 case $cc_temp in
13672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13674 \-*) ;;
13675 *) break;;
13676 esac
13677 done
13678 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13681 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13682 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13683 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13684 echo "${ECHO_T}$can_build_shared" >&6; }
13686 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13687 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13688 test "$can_build_shared" = "no" && enable_shared=no
13690 # On AIX, shared libraries and static libraries use the same namespace, and
13691 # are all built from PIC.
13692 case $host_os in
13693 aix3*)
13694 test "$enable_shared" = yes && enable_static=no
13695 if test -n "$RANLIB"; then
13696 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13697 postinstall_cmds='$RANLIB $lib'
13700 aix4* | aix5*)
13701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13702 test "$enable_shared" = yes && enable_static=no
13705 esac
13706 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13707 echo "${ECHO_T}$enable_shared" >&6; }
13709 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13710 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13711 # Make sure either enable_shared or enable_static is yes.
13712 test "$enable_shared" = yes || enable_static=yes
13713 { echo "$as_me:$LINENO: result: $enable_static" >&5
13714 echo "${ECHO_T}$enable_static" >&6; }
13716 GCC_F77="$G77"
13717 LD_F77="$LD"
13719 lt_prog_compiler_wl_F77=
13720 lt_prog_compiler_pic_F77=
13721 lt_prog_compiler_static_F77=
13723 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13724 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13726 if test "$GCC" = yes; then
13727 lt_prog_compiler_wl_F77='-Wl,'
13728 lt_prog_compiler_static_F77='-static'
13730 case $host_os in
13731 aix*)
13732 # All AIX code is PIC.
13733 if test "$host_cpu" = ia64; then
13734 # AIX 5 now supports IA64 processor
13735 lt_prog_compiler_static_F77='-Bstatic'
13739 amigaos*)
13740 # FIXME: we need at least 68020 code to build shared libraries, but
13741 # adding the `-m68020' flag to GCC prevents building anything better,
13742 # like `-m68040'.
13743 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13746 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13747 # PIC is the default for these OSes.
13750 mingw* | cygwin* | pw32* | os2*)
13751 # This hack is so that the source file can tell whether it is being
13752 # built for inclusion in a dll (and should export symbols for example).
13753 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13754 # (--disable-auto-import) libraries
13755 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13758 darwin* | rhapsody*)
13759 # PIC is the default on this platform
13760 # Common symbols not allowed in MH_DYLIB files
13761 lt_prog_compiler_pic_F77='-fno-common'
13764 interix[3-9]*)
13765 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13766 # Instead, we relocate shared libraries at runtime.
13769 msdosdjgpp*)
13770 # Just because we use GCC doesn't mean we suddenly get shared libraries
13771 # on systems that don't support them.
13772 lt_prog_compiler_can_build_shared_F77=no
13773 enable_shared=no
13776 sysv4*MP*)
13777 if test -d /usr/nec; then
13778 lt_prog_compiler_pic_F77=-Kconform_pic
13782 hpux*)
13783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13784 # not for PA HP-UX.
13785 case $host_cpu in
13786 hppa*64*|ia64*)
13787 # +Z the default
13790 lt_prog_compiler_pic_F77='-fPIC'
13792 esac
13796 lt_prog_compiler_pic_F77='-fPIC'
13798 esac
13799 else
13800 # PORTME Check for flag to pass linker flags through the system compiler.
13801 case $host_os in
13802 aix*)
13803 lt_prog_compiler_wl_F77='-Wl,'
13804 if test "$host_cpu" = ia64; then
13805 # AIX 5 now supports IA64 processor
13806 lt_prog_compiler_static_F77='-Bstatic'
13807 else
13808 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13811 darwin*)
13812 # PIC is the default on this platform
13813 # Common symbols not allowed in MH_DYLIB files
13814 case $cc_basename in
13815 xlc*)
13816 lt_prog_compiler_pic_F77='-qnocommon'
13817 lt_prog_compiler_wl_F77='-Wl,'
13819 esac
13822 mingw* | cygwin* | pw32* | os2*)
13823 # This hack is so that the source file can tell whether it is being
13824 # built for inclusion in a dll (and should export symbols for example).
13825 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13828 hpux9* | hpux10* | hpux11*)
13829 lt_prog_compiler_wl_F77='-Wl,'
13830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13831 # not for PA HP-UX.
13832 case $host_cpu in
13833 hppa*64*|ia64*)
13834 # +Z the default
13837 lt_prog_compiler_pic_F77='+Z'
13839 esac
13840 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13841 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13844 irix5* | irix6* | nonstopux*)
13845 lt_prog_compiler_wl_F77='-Wl,'
13846 # PIC (with -KPIC) is the default.
13847 lt_prog_compiler_static_F77='-non_shared'
13850 newsos6)
13851 lt_prog_compiler_pic_F77='-KPIC'
13852 lt_prog_compiler_static_F77='-Bstatic'
13855 linux* | k*bsd*-gnu)
13856 case $cc_basename in
13857 icc* | ecc*)
13858 lt_prog_compiler_wl_F77='-Wl,'
13859 lt_prog_compiler_pic_F77='-KPIC'
13860 lt_prog_compiler_static_F77='-static'
13862 pgcc* | pgf77* | pgf90* | pgf95*)
13863 # Portland Group compilers (*not* the Pentium gcc compiler,
13864 # which looks to be a dead project)
13865 lt_prog_compiler_wl_F77='-Wl,'
13866 lt_prog_compiler_pic_F77='-fpic'
13867 lt_prog_compiler_static_F77='-Bstatic'
13869 ccc*)
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 # All Alpha code is PIC.
13872 lt_prog_compiler_static_F77='-non_shared'
13875 case `$CC -V 2>&1 | sed 5q` in
13876 *Sun\ C*)
13877 # Sun C 5.9
13878 lt_prog_compiler_pic_F77='-KPIC'
13879 lt_prog_compiler_static_F77='-Bstatic'
13880 lt_prog_compiler_wl_F77='-Wl,'
13882 *Sun\ F*)
13883 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13884 lt_prog_compiler_pic_F77='-KPIC'
13885 lt_prog_compiler_static_F77='-Bstatic'
13886 lt_prog_compiler_wl_F77=''
13888 esac
13890 esac
13893 osf3* | osf4* | osf5*)
13894 lt_prog_compiler_wl_F77='-Wl,'
13895 # All OSF/1 code is PIC.
13896 lt_prog_compiler_static_F77='-non_shared'
13899 rdos*)
13900 lt_prog_compiler_static_F77='-non_shared'
13903 solaris*)
13904 lt_prog_compiler_pic_F77='-KPIC'
13905 lt_prog_compiler_static_F77='-Bstatic'
13906 case $cc_basename in
13907 f77* | f90* | f95*)
13908 lt_prog_compiler_wl_F77='-Qoption ld ';;
13910 lt_prog_compiler_wl_F77='-Wl,';;
13911 esac
13914 sunos4*)
13915 lt_prog_compiler_wl_F77='-Qoption ld '
13916 lt_prog_compiler_pic_F77='-PIC'
13917 lt_prog_compiler_static_F77='-Bstatic'
13920 sysv4 | sysv4.2uw2* | sysv4.3*)
13921 lt_prog_compiler_wl_F77='-Wl,'
13922 lt_prog_compiler_pic_F77='-KPIC'
13923 lt_prog_compiler_static_F77='-Bstatic'
13926 sysv4*MP*)
13927 if test -d /usr/nec ;then
13928 lt_prog_compiler_pic_F77='-Kconform_pic'
13929 lt_prog_compiler_static_F77='-Bstatic'
13933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13934 lt_prog_compiler_wl_F77='-Wl,'
13935 lt_prog_compiler_pic_F77='-KPIC'
13936 lt_prog_compiler_static_F77='-Bstatic'
13939 unicos*)
13940 lt_prog_compiler_wl_F77='-Wl,'
13941 lt_prog_compiler_can_build_shared_F77=no
13944 uts4*)
13945 lt_prog_compiler_pic_F77='-pic'
13946 lt_prog_compiler_static_F77='-Bstatic'
13950 lt_prog_compiler_can_build_shared_F77=no
13952 esac
13955 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13956 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13959 # Check to make sure the PIC flag actually works.
13961 if test -n "$lt_prog_compiler_pic_F77"; then
13963 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13964 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13965 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 lt_prog_compiler_pic_works_F77=no
13969 ac_outfile=conftest.$ac_objext
13970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13971 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13972 # Insert the option either (1) after the last *FLAGS variable, or
13973 # (2) before a word containing "conftest.", or (3) at the end.
13974 # Note that $ac_compile itself does not contain backslashes and begins
13975 # with a dollar sign (not a hyphen), so the echo should work correctly.
13976 # The option is referenced via a variable to avoid confusing sed.
13977 lt_compile=`echo "$ac_compile" | $SED \
13978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13980 -e 's:$: $lt_compiler_flag:'`
13981 (eval echo "\"\$as_me:13981: $lt_compile\"" >&5)
13982 (eval "$lt_compile" 2>conftest.err)
13983 ac_status=$?
13984 cat conftest.err >&5
13985 echo "$as_me:13985: \$? = $ac_status" >&5
13986 if (exit $ac_status) && test -s "$ac_outfile"; then
13987 # The compiler can only warn and ignore the option if not recognized
13988 # So say no if there are warnings other than the usual output.
13989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13992 lt_prog_compiler_pic_works_F77=yes
13995 $rm conftest*
13998 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13999 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14001 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14002 case $lt_prog_compiler_pic_F77 in
14003 "" | " "*) ;;
14004 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14005 esac
14006 else
14007 lt_prog_compiler_pic_F77=
14008 lt_prog_compiler_can_build_shared_F77=no
14012 case $host_os in
14013 # For platforms which do not support PIC, -DPIC is meaningless:
14014 *djgpp*)
14015 lt_prog_compiler_pic_F77=
14018 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14020 esac
14023 # Check to make sure the static flag actually works.
14025 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14026 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14027 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14028 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031 lt_prog_compiler_static_works_F77=no
14032 save_LDFLAGS="$LDFLAGS"
14033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14034 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14036 # The linker can only warn and ignore the option if not recognized
14037 # So say no if there are warnings
14038 if test -s conftest.err; then
14039 # Append any errors to the config.log.
14040 cat conftest.err 1>&5
14041 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14043 if diff conftest.exp conftest.er2 >/dev/null; then
14044 lt_prog_compiler_static_works_F77=yes
14046 else
14047 lt_prog_compiler_static_works_F77=yes
14050 $rm conftest*
14051 LDFLAGS="$save_LDFLAGS"
14054 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14055 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14057 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14059 else
14060 lt_prog_compiler_static_F77=
14064 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14065 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14066 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069 lt_cv_prog_compiler_c_o_F77=no
14070 $rm -r conftest 2>/dev/null
14071 mkdir conftest
14072 cd conftest
14073 mkdir out
14074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14076 lt_compiler_flag="-o out/conftest2.$ac_objext"
14077 # Insert the option either (1) after the last *FLAGS variable, or
14078 # (2) before a word containing "conftest.", or (3) at the end.
14079 # Note that $ac_compile itself does not contain backslashes and begins
14080 # with a dollar sign (not a hyphen), so the echo should work correctly.
14081 lt_compile=`echo "$ac_compile" | $SED \
14082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14084 -e 's:$: $lt_compiler_flag:'`
14085 (eval echo "\"\$as_me:14085: $lt_compile\"" >&5)
14086 (eval "$lt_compile" 2>out/conftest.err)
14087 ac_status=$?
14088 cat out/conftest.err >&5
14089 echo "$as_me:14089: \$? = $ac_status" >&5
14090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14091 then
14092 # The compiler can only warn and ignore the option if not recognized
14093 # So say no if there are warnings
14094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14097 lt_cv_prog_compiler_c_o_F77=yes
14100 chmod u+w . 2>&5
14101 $rm conftest*
14102 # SGI C++ compiler will create directory out/ii_files/ for
14103 # template instantiation
14104 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14105 $rm out/* && rmdir out
14106 cd ..
14107 rmdir conftest
14108 $rm conftest*
14111 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14112 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14115 hard_links="nottested"
14116 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14117 # do not overwrite the value of need_locks provided by the user
14118 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14119 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14120 hard_links=yes
14121 $rm conftest*
14122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14123 touch conftest.a
14124 ln conftest.a conftest.b 2>&5 || hard_links=no
14125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14126 { echo "$as_me:$LINENO: result: $hard_links" >&5
14127 echo "${ECHO_T}$hard_links" >&6; }
14128 if test "$hard_links" = no; then
14129 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14130 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14131 need_locks=warn
14133 else
14134 need_locks=no
14137 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14138 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14140 runpath_var=
14141 allow_undefined_flag_F77=
14142 enable_shared_with_static_runtimes_F77=no
14143 archive_cmds_F77=
14144 archive_expsym_cmds_F77=
14145 old_archive_From_new_cmds_F77=
14146 old_archive_from_expsyms_cmds_F77=
14147 export_dynamic_flag_spec_F77=
14148 whole_archive_flag_spec_F77=
14149 thread_safe_flag_spec_F77=
14150 hardcode_libdir_flag_spec_F77=
14151 hardcode_libdir_flag_spec_ld_F77=
14152 hardcode_libdir_separator_F77=
14153 hardcode_direct_F77=no
14154 hardcode_minus_L_F77=no
14155 hardcode_shlibpath_var_F77=unsupported
14156 link_all_deplibs_F77=unknown
14157 hardcode_automatic_F77=no
14158 module_cmds_F77=
14159 module_expsym_cmds_F77=
14160 always_export_symbols_F77=no
14161 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14162 # include_expsyms should be a list of space-separated symbols to be *always*
14163 # included in the symbol list
14164 include_expsyms_F77=
14165 # exclude_expsyms can be an extended regexp of symbols to exclude
14166 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14167 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14168 # as well as any symbol that contains `d'.
14169 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14170 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14171 # platforms (ab)use it in PIC code, but their linkers get confused if
14172 # the symbol is explicitly referenced. Since portable code cannot
14173 # rely on this symbol name, it's probably fine to never include it in
14174 # preloaded symbol tables.
14175 extract_expsyms_cmds=
14176 # Just being paranoid about ensuring that cc_basename is set.
14177 for cc_temp in $compiler""; do
14178 case $cc_temp in
14179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14181 \-*) ;;
14182 *) break;;
14183 esac
14184 done
14185 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14187 case $host_os in
14188 cygwin* | mingw* | pw32*)
14189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14190 # When not using gcc, we currently assume that we are using
14191 # Microsoft Visual C++.
14192 if test "$GCC" != yes; then
14193 with_gnu_ld=no
14196 interix*)
14197 # we just hope/assume this is gcc and not c89 (= MSVC++)
14198 with_gnu_ld=yes
14200 openbsd*)
14201 with_gnu_ld=no
14203 esac
14205 ld_shlibs_F77=yes
14206 if test "$with_gnu_ld" = yes; then
14207 # If archive_cmds runs LD, not CC, wlarc should be empty
14208 wlarc='${wl}'
14210 # Set some defaults for GNU ld with shared library support. These
14211 # are reset later if shared libraries are not supported. Putting them
14212 # here allows them to be overridden if necessary.
14213 runpath_var=LD_RUN_PATH
14214 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14215 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14216 # ancient GNU ld didn't support --whole-archive et. al.
14217 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14218 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14219 else
14220 whole_archive_flag_spec_F77=
14222 supports_anon_versioning=no
14223 case `$LD -v 2>/dev/null` in
14224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14227 *\ 2.11.*) ;; # other 2.11 versions
14228 *) supports_anon_versioning=yes ;;
14229 esac
14231 # See if GNU ld supports shared libraries.
14232 case $host_os in
14233 aix3* | aix4* | aix5*)
14234 # On AIX/PPC, the GNU linker is very broken
14235 if test "$host_cpu" != ia64; then
14236 ld_shlibs_F77=no
14237 cat <<EOF 1>&2
14239 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14240 *** to be unable to reliably create shared libraries on AIX.
14241 *** Therefore, libtool is disabling shared libraries support. If you
14242 *** really care for shared libraries, you may want to modify your PATH
14243 *** so that a non-GNU linker is found, and then restart.
14249 amigaos*)
14250 archive_cmds_F77='$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)'
14251 hardcode_libdir_flag_spec_F77='-L$libdir'
14252 hardcode_minus_L_F77=yes
14254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14255 # that the semantics of dynamic libraries on AmigaOS, at least up
14256 # to version 4, is to share data among multiple programs linked
14257 # with the same dynamic library. Since this doesn't match the
14258 # behavior of shared libraries on other platforms, we can't use
14259 # them.
14260 ld_shlibs_F77=no
14263 beos*)
14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14265 allow_undefined_flag_F77=unsupported
14266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14267 # support --undefined. This deserves some investigation. FIXME
14268 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14269 else
14270 ld_shlibs_F77=no
14274 cygwin* | mingw* | pw32*)
14275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14276 # as there is no search path for DLLs.
14277 hardcode_libdir_flag_spec_F77='-L$libdir'
14278 allow_undefined_flag_F77=unsupported
14279 always_export_symbols_F77=no
14280 enable_shared_with_static_runtimes_F77=yes
14281 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14285 # If the export-symbols file already is a .def file (1st line
14286 # is EXPORTS), use it as is; otherwise, prepend...
14287 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14288 cp $export_symbols $output_objdir/$soname.def;
14289 else
14290 echo EXPORTS > $output_objdir/$soname.def;
14291 cat $export_symbols >> $output_objdir/$soname.def;
14293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14294 else
14295 ld_shlibs_F77=no
14299 interix[3-9]*)
14300 hardcode_direct_F77=no
14301 hardcode_shlibpath_var_F77=no
14302 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14303 export_dynamic_flag_spec_F77='${wl}-E'
14304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14305 # Instead, shared libraries are loaded at an image base (0x10000000 by
14306 # default) and relocated if they conflict, which is a slow very memory
14307 # consuming and fragmenting process. To avoid this, we pick a random,
14308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14310 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14311 archive_expsym_cmds_F77='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'
14314 gnu* | linux* | k*bsd*-gnu)
14315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14316 tmp_addflag=
14317 case $cc_basename,$host_cpu in
14318 pgcc*) # Portland Group C compiler
14319 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14320 tmp_addflag=' $pic_flag'
14322 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14323 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14324 tmp_addflag=' $pic_flag -Mnomain' ;;
14325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14326 tmp_addflag=' -i_dynamic' ;;
14327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14328 tmp_addflag=' -i_dynamic -nofor_main' ;;
14329 ifc* | ifort*) # Intel Fortran compiler
14330 tmp_addflag=' -nofor_main' ;;
14331 esac
14332 case `$CC -V 2>&1 | sed 5q` in
14333 *Sun\ C*) # Sun C 5.9
14334 whole_archive_flag_spec_F77='${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'
14335 tmp_sharedflag='-G' ;;
14336 *Sun\ F*) # Sun Fortran 8.3
14337 tmp_sharedflag='-G' ;;
14339 tmp_sharedflag='-shared' ;;
14340 esac
14341 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14343 if test $supports_anon_versioning = yes; then
14344 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14346 $echo "local: *; };" >> $output_objdir/$libname.ver~
14347 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14349 else
14350 ld_shlibs_F77=no
14354 netbsd*)
14355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14356 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14357 wlarc=
14358 else
14359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14360 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14364 solaris*)
14365 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14366 ld_shlibs_F77=no
14367 cat <<EOF 1>&2
14369 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14370 *** create shared libraries on Solaris systems. Therefore, libtool
14371 *** is disabling shared libraries support. We urge you to upgrade GNU
14372 *** binutils to release 2.9.1 or newer. Another option is to modify
14373 *** your PATH or compiler configuration so that the native linker is
14374 *** used, and then restart.
14377 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380 else
14381 ld_shlibs_F77=no
14385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14386 case `$LD -v 2>&1` in
14387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14388 ld_shlibs_F77=no
14389 cat <<_LT_EOF 1>&2
14391 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14392 *** reliably create shared libraries on SCO systems. Therefore, libtool
14393 *** is disabling shared libraries support. We urge you to upgrade GNU
14394 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14395 *** your PATH or compiler configuration so that the native linker is
14396 *** used, and then restart.
14398 _LT_EOF
14401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14405 else
14406 ld_shlibs_F77=no
14409 esac
14412 sunos4*)
14413 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14414 wlarc=
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14423 else
14424 ld_shlibs_F77=no
14427 esac
14429 if test "$ld_shlibs_F77" = no; then
14430 runpath_var=
14431 hardcode_libdir_flag_spec_F77=
14432 export_dynamic_flag_spec_F77=
14433 whole_archive_flag_spec_F77=
14435 else
14436 # PORTME fill in a description of your system's linker (not GNU ld)
14437 case $host_os in
14438 aix3*)
14439 allow_undefined_flag_F77=unsupported
14440 always_export_symbols_F77=yes
14441 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14442 # Note: this linker hardcodes the directories in LIBPATH if there
14443 # are no directories specified by -L.
14444 hardcode_minus_L_F77=yes
14445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14446 # Neither direct hardcoding nor static linking is supported with a
14447 # broken collect2.
14448 hardcode_direct_F77=unsupported
14452 aix4* | aix5*)
14453 if test "$host_cpu" = ia64; then
14454 # On IA64, the linker does run time linking by default, so we don't
14455 # have to do anything special.
14456 aix_use_runtimelinking=no
14457 exp_sym_flag='-Bexport'
14458 no_entry_flag=""
14459 else
14460 # If we're using GNU nm, then we don't want the "-C" option.
14461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14462 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14463 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14464 else
14465 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14467 aix_use_runtimelinking=no
14469 # Test if we are trying to use run time linking or normal
14470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14471 # need to do runtime linking.
14472 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14473 for ld_flag in $LDFLAGS; do
14474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14475 aix_use_runtimelinking=yes
14476 break
14478 done
14480 esac
14482 exp_sym_flag='-bexport'
14483 no_entry_flag='-bnoentry'
14486 # When large executables or shared objects are built, AIX ld can
14487 # have problems creating the table of contents. If linking a library
14488 # or program results in "error TOC overflow" add -mminimal-toc to
14489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14492 archive_cmds_F77=''
14493 hardcode_direct_F77=yes
14494 hardcode_libdir_separator_F77=':'
14495 link_all_deplibs_F77=yes
14497 if test "$GCC" = yes; then
14498 case $host_os in aix4.[012]|aix4.[012].*)
14499 # We only want to do this on AIX 4.2 and lower, the check
14500 # below for broken collect2 doesn't work under 4.3+
14501 collect2name=`${CC} -print-prog-name=collect2`
14502 if test -f "$collect2name" && \
14503 strings "$collect2name" | grep resolve_lib_name >/dev/null
14504 then
14505 # We have reworked collect2
14507 else
14508 # We have old collect2
14509 hardcode_direct_F77=unsupported
14510 # It fails to find uninstalled libraries when the uninstalled
14511 # path is not listed in the libpath. Setting hardcode_minus_L
14512 # to unsupported forces relinking
14513 hardcode_minus_L_F77=yes
14514 hardcode_libdir_flag_spec_F77='-L$libdir'
14515 hardcode_libdir_separator_F77=
14518 esac
14519 shared_flag='-shared'
14520 if test "$aix_use_runtimelinking" = yes; then
14521 shared_flag="$shared_flag "'${wl}-G'
14523 else
14524 # not using gcc
14525 if test "$host_cpu" = ia64; then
14526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14527 # chokes on -Wl,-G. The following line is correct:
14528 shared_flag='-G'
14529 else
14530 if test "$aix_use_runtimelinking" = yes; then
14531 shared_flag='${wl}-G'
14532 else
14533 shared_flag='${wl}-bM:SRE'
14538 # It seems that -bexpall does not export symbols beginning with
14539 # underscore (_), so it is better to generate a list of symbols to export.
14540 always_export_symbols_F77=yes
14541 if test "$aix_use_runtimelinking" = yes; then
14542 # Warning - without using the other runtime loading flags (-brtl),
14543 # -berok will link without error, but may produce a broken library.
14544 allow_undefined_flag_F77='-berok'
14545 # Determine the default libpath from the value encoded in an empty executable.
14546 cat >conftest.$ac_ext <<_ACEOF
14547 program main
14550 _ACEOF
14551 rm -f conftest.$ac_objext conftest$ac_exeext
14552 if { (ac_try="$ac_link"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_link") 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_f77_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest$ac_exeext &&
14568 $as_test_x conftest$ac_exeext; then
14570 lt_aix_libpath_sed='
14571 /Import File Strings/,/^$/ {
14572 /^0/ {
14573 s/^0 *\(.*\)$/\1/
14577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14578 # Check for a 64-bit object if we didn't find anything.
14579 if test -z "$aix_libpath"; then
14580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14582 else
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14590 conftest$ac_exeext conftest.$ac_ext
14591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14593 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14594 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14595 else
14596 if test "$host_cpu" = ia64; then
14597 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14598 allow_undefined_flag_F77="-z nodefs"
14599 archive_expsym_cmds_F77="\$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"
14600 else
14601 # Determine the default libpath from the value encoded in an empty executable.
14602 cat >conftest.$ac_ext <<_ACEOF
14603 program main
14606 _ACEOF
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (ac_try="$ac_link"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_link") 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } && {
14621 test -z "$ac_f77_werror_flag" ||
14622 test ! -s conftest.err
14623 } && test -s conftest$ac_exeext &&
14624 $as_test_x conftest$ac_exeext; then
14626 lt_aix_libpath_sed='
14627 /Import File Strings/,/^$/ {
14628 /^0/ {
14629 s/^0 *\(.*\)$/\1/
14633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14634 # Check for a 64-bit object if we didn't find anything.
14635 if test -z "$aix_libpath"; then
14636 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14638 else
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14646 conftest$ac_exeext conftest.$ac_ext
14647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14649 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14650 # Warning - without using the other run time loading flags,
14651 # -berok will link without error, but may produce a broken library.
14652 no_undefined_flag_F77=' ${wl}-bernotok'
14653 allow_undefined_flag_F77=' ${wl}-berok'
14654 # Exported symbols can be pulled into shared objects from archives
14655 whole_archive_flag_spec_F77='$convenience'
14656 archive_cmds_need_lc_F77=yes
14657 # This is similar to how AIX traditionally builds its shared libraries.
14658 archive_expsym_cmds_F77="\$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'
14663 amigaos*)
14664 archive_cmds_F77='$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)'
14665 hardcode_libdir_flag_spec_F77='-L$libdir'
14666 hardcode_minus_L_F77=yes
14667 # see comment about different semantics on the GNU ld section
14668 ld_shlibs_F77=no
14671 bsdi[45]*)
14672 export_dynamic_flag_spec_F77=-rdynamic
14675 cygwin* | mingw* | pw32*)
14676 # When not using gcc, we currently assume that we are using
14677 # Microsoft Visual C++.
14678 # hardcode_libdir_flag_spec is actually meaningless, as there is
14679 # no search path for DLLs.
14680 hardcode_libdir_flag_spec_F77=' '
14681 allow_undefined_flag_F77=unsupported
14682 # Tell ltmain to make .lib files, not .a files.
14683 libext=lib
14684 # Tell ltmain to make .dll files, not .so files.
14685 shrext_cmds=".dll"
14686 # FIXME: Setting linknames here is a bad hack.
14687 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14688 # The linker will automatically build a .lib file if we build a DLL.
14689 old_archive_From_new_cmds_F77='true'
14690 # FIXME: Should let the user specify the lib program.
14691 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14692 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14693 enable_shared_with_static_runtimes_F77=yes
14696 darwin* | rhapsody*)
14697 case $host_os in
14698 rhapsody* | darwin1.[012])
14699 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14701 *) # Darwin 1.3 on
14702 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14703 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14704 else
14705 case ${MACOSX_DEPLOYMENT_TARGET} in
14706 10.[012])
14707 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14709 10.*)
14710 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14712 esac
14715 esac
14716 archive_cmds_need_lc_F77=no
14717 hardcode_direct_F77=no
14718 hardcode_automatic_F77=yes
14719 hardcode_shlibpath_var_F77=unsupported
14720 whole_archive_flag_spec_F77=''
14721 link_all_deplibs_F77=yes
14722 if test "$GCC" = yes ; then
14723 output_verbose_link_cmd='echo'
14724 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14725 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14727 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14728 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14729 else
14730 case $cc_basename in
14731 xlc*)
14732 output_verbose_link_cmd='echo'
14733 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14734 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14735 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14736 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14737 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14740 ld_shlibs_F77=no
14742 esac
14746 dgux*)
14747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14748 hardcode_libdir_flag_spec_F77='-L$libdir'
14749 hardcode_shlibpath_var_F77=no
14752 freebsd1*)
14753 ld_shlibs_F77=no
14756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14757 # support. Future versions do this automatically, but an explicit c++rt0.o
14758 # does not break anything, and helps significantly (at the cost of a little
14759 # extra space).
14760 freebsd2.2*)
14761 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14762 hardcode_libdir_flag_spec_F77='-R$libdir'
14763 hardcode_direct_F77=yes
14764 hardcode_shlibpath_var_F77=no
14767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14768 freebsd2*)
14769 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14770 hardcode_direct_F77=yes
14771 hardcode_minus_L_F77=yes
14772 hardcode_shlibpath_var_F77=no
14775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14776 freebsd* | dragonfly*)
14777 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14778 hardcode_libdir_flag_spec_F77='-R$libdir'
14779 hardcode_direct_F77=yes
14780 hardcode_shlibpath_var_F77=no
14783 hpux9*)
14784 if test "$GCC" = yes; then
14785 archive_cmds_F77='$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'
14786 else
14787 archive_cmds_F77='$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'
14789 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14790 hardcode_libdir_separator_F77=:
14791 hardcode_direct_F77=yes
14793 # hardcode_minus_L: Not really in the search PATH,
14794 # but as the default location of the library.
14795 hardcode_minus_L_F77=yes
14796 export_dynamic_flag_spec_F77='${wl}-E'
14799 hpux10*)
14800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14801 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14802 else
14803 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14805 if test "$with_gnu_ld" = no; then
14806 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14807 hardcode_libdir_separator_F77=:
14809 hardcode_direct_F77=yes
14810 export_dynamic_flag_spec_F77='${wl}-E'
14812 # hardcode_minus_L: Not really in the search PATH,
14813 # but as the default location of the library.
14814 hardcode_minus_L_F77=yes
14818 hpux11*)
14819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14820 case $host_cpu in
14821 hppa*64*)
14822 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 ia64*)
14825 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14830 esac
14831 else
14832 case $host_cpu in
14833 hppa*64*)
14834 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14836 ia64*)
14837 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14840 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14842 esac
14844 if test "$with_gnu_ld" = no; then
14845 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14846 hardcode_libdir_separator_F77=:
14848 case $host_cpu in
14849 hppa*64*|ia64*)
14850 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14851 hardcode_direct_F77=no
14852 hardcode_shlibpath_var_F77=no
14855 hardcode_direct_F77=yes
14856 export_dynamic_flag_spec_F77='${wl}-E'
14858 # hardcode_minus_L: Not really in the search PATH,
14859 # but as the default location of the library.
14860 hardcode_minus_L_F77=yes
14862 esac
14866 irix5* | irix6* | nonstopux*)
14867 if test "$GCC" = yes; then
14868 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14869 else
14870 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14871 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14873 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14874 hardcode_libdir_separator_F77=:
14875 link_all_deplibs_F77=yes
14878 netbsd*)
14879 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14881 else
14882 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14884 hardcode_libdir_flag_spec_F77='-R$libdir'
14885 hardcode_direct_F77=yes
14886 hardcode_shlibpath_var_F77=no
14889 newsos6)
14890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891 hardcode_direct_F77=yes
14892 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14893 hardcode_libdir_separator_F77=:
14894 hardcode_shlibpath_var_F77=no
14897 openbsd*)
14898 if test -f /usr/libexec/ld.so; then
14899 hardcode_direct_F77=yes
14900 hardcode_shlibpath_var_F77=no
14901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14902 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14903 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14904 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14905 export_dynamic_flag_spec_F77='${wl}-E'
14906 else
14907 case $host_os in
14908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14909 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14910 hardcode_libdir_flag_spec_F77='-R$libdir'
14913 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14914 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14916 esac
14918 else
14919 ld_shlibs_F77=no
14923 os2*)
14924 hardcode_libdir_flag_spec_F77='-L$libdir'
14925 hardcode_minus_L_F77=yes
14926 allow_undefined_flag_F77=unsupported
14927 archive_cmds_F77='$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'
14928 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14931 osf3*)
14932 if test "$GCC" = yes; then
14933 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14934 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14935 else
14936 allow_undefined_flag_F77=' -expect_unresolved \*'
14937 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14939 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14940 hardcode_libdir_separator_F77=:
14943 osf4* | osf5*) # as osf3* with the addition of -msym flag
14944 if test "$GCC" = yes; then
14945 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14946 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14947 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14948 else
14949 allow_undefined_flag_F77=' -expect_unresolved \*'
14950 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14951 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14952 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14954 # Both c and cxx compiler support -rpath directly
14955 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14957 hardcode_libdir_separator_F77=:
14960 solaris*)
14961 no_undefined_flag_F77=' -z text'
14962 if test "$GCC" = yes; then
14963 wlarc='${wl}'
14964 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14965 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14966 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14967 else
14968 wlarc=''
14969 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14971 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14973 hardcode_libdir_flag_spec_F77='-R$libdir'
14974 hardcode_shlibpath_var_F77=no
14975 case $host_os in
14976 solaris2.[0-5] | solaris2.[0-5].*) ;;
14978 # The compiler driver will combine and reorder linker options,
14979 # but understands `-z linker_flag'. GCC discards it without `$wl',
14980 # but is careful enough not to reorder.
14981 # Supported since Solaris 2.6 (maybe 2.5.1?)
14982 if test "$GCC" = yes; then
14983 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14984 else
14985 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14988 esac
14989 link_all_deplibs_F77=yes
14992 sunos4*)
14993 if test "x$host_vendor" = xsequent; then
14994 # Use $CC to link under sequent, because it throws in some extra .o
14995 # files that make .init and .fini sections work.
14996 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14997 else
14998 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15000 hardcode_libdir_flag_spec_F77='-L$libdir'
15001 hardcode_direct_F77=yes
15002 hardcode_minus_L_F77=yes
15003 hardcode_shlibpath_var_F77=no
15006 sysv4)
15007 case $host_vendor in
15008 sni)
15009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15010 hardcode_direct_F77=yes # is this really true???
15012 siemens)
15013 ## LD is ld it makes a PLAMLIB
15014 ## CC just makes a GrossModule.
15015 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15016 reload_cmds_F77='$CC -r -o $output$reload_objs'
15017 hardcode_direct_F77=no
15019 motorola)
15020 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15021 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15023 esac
15024 runpath_var='LD_RUN_PATH'
15025 hardcode_shlibpath_var_F77=no
15028 sysv4.3*)
15029 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15030 hardcode_shlibpath_var_F77=no
15031 export_dynamic_flag_spec_F77='-Bexport'
15034 sysv4*MP*)
15035 if test -d /usr/nec; then
15036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15037 hardcode_shlibpath_var_F77=no
15038 runpath_var=LD_RUN_PATH
15039 hardcode_runpath_var=yes
15040 ld_shlibs_F77=yes
15044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15045 no_undefined_flag_F77='${wl}-z,text'
15046 archive_cmds_need_lc_F77=no
15047 hardcode_shlibpath_var_F77=no
15048 runpath_var='LD_RUN_PATH'
15050 if test "$GCC" = yes; then
15051 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15052 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15053 else
15054 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15055 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 sysv5* | sco3.2v5* | sco5v6*)
15060 # Note: We can NOT use -z defs as we might desire, because we do not
15061 # link with -lc, and that would cause any symbols used from libc to
15062 # always be unresolved, which means just about no library would
15063 # ever link correctly. If we're not using GNU ld we use -z text
15064 # though, which does catch some bad symbols but isn't as heavy-handed
15065 # as -z defs.
15066 no_undefined_flag_F77='${wl}-z,text'
15067 allow_undefined_flag_F77='${wl}-z,nodefs'
15068 archive_cmds_need_lc_F77=no
15069 hardcode_shlibpath_var_F77=no
15070 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15071 hardcode_libdir_separator_F77=':'
15072 link_all_deplibs_F77=yes
15073 export_dynamic_flag_spec_F77='${wl}-Bexport'
15074 runpath_var='LD_RUN_PATH'
15076 if test "$GCC" = yes; then
15077 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15079 else
15080 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15081 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15085 uts4*)
15086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15087 hardcode_libdir_flag_spec_F77='-L$libdir'
15088 hardcode_shlibpath_var_F77=no
15092 ld_shlibs_F77=no
15094 esac
15097 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15098 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15099 test "$ld_shlibs_F77" = no && can_build_shared=no
15102 # Do we need to explicitly link libc?
15104 case "x$archive_cmds_need_lc_F77" in
15105 x|xyes)
15106 # Assume -lc should be added
15107 archive_cmds_need_lc_F77=yes
15109 if test "$enable_shared" = yes && test "$GCC" = yes; then
15110 case $archive_cmds_F77 in
15111 *'~'*)
15112 # FIXME: we may have to deal with multi-command sequences.
15114 '$CC '*)
15115 # Test whether the compiler implicitly links with -lc since on some
15116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15117 # to ld, don't add -lc before -lgcc.
15118 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15119 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15120 $rm conftest*
15121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124 (eval $ac_compile) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } 2>conftest.err; then
15128 soname=conftest
15129 lib=conftest
15130 libobjs=conftest.$ac_objext
15131 deplibs=
15132 wl=$lt_prog_compiler_wl_F77
15133 pic_flag=$lt_prog_compiler_pic_F77
15134 compiler_flags=-v
15135 linker_flags=-v
15136 verstring=
15137 output_objdir=.
15138 libname=conftest
15139 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15140 allow_undefined_flag_F77=
15141 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15142 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }
15146 then
15147 archive_cmds_need_lc_F77=no
15148 else
15149 archive_cmds_need_lc_F77=yes
15151 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15152 else
15153 cat conftest.err 1>&5
15155 $rm conftest*
15156 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15157 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15159 esac
15162 esac
15164 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15165 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15166 library_names_spec=
15167 libname_spec='lib$name'
15168 soname_spec=
15169 shrext_cmds=".so"
15170 postinstall_cmds=
15171 postuninstall_cmds=
15172 finish_cmds=
15173 finish_eval=
15174 shlibpath_var=
15175 shlibpath_overrides_runpath=unknown
15176 version_type=none
15177 dynamic_linker="$host_os ld.so"
15178 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15180 need_lib_prefix=unknown
15181 hardcode_into_libs=no
15183 # when you set need_version to no, make sure it does not cause -set_version
15184 # flags to be left without arguments
15185 need_version=unknown
15187 case $host_os in
15188 aix3*)
15189 version_type=linux
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15191 shlibpath_var=LIBPATH
15193 # AIX 3 has no versioning support, so we append a major version to the name.
15194 soname_spec='${libname}${release}${shared_ext}$major'
15197 aix4* | aix5*)
15198 version_type=linux
15199 need_lib_prefix=no
15200 need_version=no
15201 hardcode_into_libs=yes
15202 if test "$host_cpu" = ia64; then
15203 # AIX 5 supports IA64
15204 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 else
15207 # With GCC up to 2.95.x, collect2 would create an import file
15208 # for dependence libraries. The import file would start with
15209 # the line `#! .'. This would cause the generated library to
15210 # depend on `.', always an invalid library. This was fixed in
15211 # development snapshots of GCC prior to 3.0.
15212 case $host_os in
15213 aix4 | aix4.[01] | aix4.[01].*)
15214 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15215 echo ' yes '
15216 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15218 else
15219 can_build_shared=no
15222 esac
15223 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15224 # soname into executable. Probably we can add versioning support to
15225 # collect2, so additional links can be useful in future.
15226 if test "$aix_use_runtimelinking" = yes; then
15227 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15228 # instead of lib<name>.a to let people know that these are not
15229 # typical AIX shared libraries.
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231 else
15232 # We preserve .a as extension for shared libraries through AIX4.2
15233 # and later when we are not doing run time linking.
15234 library_names_spec='${libname}${release}.a $libname.a'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LIBPATH
15241 amigaos*)
15242 library_names_spec='$libname.ixlibrary $libname.a'
15243 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15244 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'
15247 beos*)
15248 library_names_spec='${libname}${shared_ext}'
15249 dynamic_linker="$host_os ld.so"
15250 shlibpath_var=LIBRARY_PATH
15253 bsdi[45]*)
15254 version_type=linux
15255 need_version=no
15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15259 shlibpath_var=LD_LIBRARY_PATH
15260 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15261 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15262 # the default ld.so.conf also contains /usr/contrib/lib and
15263 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15264 # libtool to hard-code these into programs
15267 cygwin* | mingw* | pw32*)
15268 version_type=windows
15269 shrext_cmds=".dll"
15270 need_version=no
15271 need_lib_prefix=no
15273 case $GCC,$host_os in
15274 yes,cygwin* | yes,mingw* | yes,pw32*)
15275 library_names_spec='$libname.dll.a'
15276 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15277 postinstall_cmds='base_file=`basename \${file}`~
15278 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15279 dldir=$destdir/`dirname \$dlpath`~
15280 test -d \$dldir || mkdir -p \$dldir~
15281 $install_prog $dir/$dlname \$dldir/$dlname~
15282 chmod a+x \$dldir/$dlname'
15283 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15284 dlpath=$dir/\$dldll~
15285 $rm \$dlpath'
15286 shlibpath_overrides_runpath=yes
15288 case $host_os in
15289 cygwin*)
15290 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15291 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15292 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15294 mingw*)
15295 # MinGW DLLs use traditional 'lib' prefix
15296 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15298 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15299 # It is most probably a Windows format PATH printed by
15300 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15301 # path with ; separators, and with drive letters. We can handle the
15302 # drive letters (cygwin fileutils understands them), so leave them,
15303 # especially as we might pass files found there to a mingw objdump,
15304 # which wouldn't understand a cygwinified path. Ahh.
15305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15306 else
15307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15310 pw32*)
15311 # pw32 DLLs use 'pw' prefix rather than 'lib'
15312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314 esac
15318 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15320 esac
15321 dynamic_linker='Win32 ld.exe'
15322 # FIXME: first we should search . and the directory the executable is in
15323 shlibpath_var=PATH
15326 darwin* | rhapsody*)
15327 dynamic_linker="$host_os dyld"
15328 version_type=darwin
15329 need_lib_prefix=no
15330 need_version=no
15331 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15332 soname_spec='${libname}${release}${major}$shared_ext'
15333 shlibpath_overrides_runpath=yes
15334 shlibpath_var=DYLD_LIBRARY_PATH
15335 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15337 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15340 dgux*)
15341 version_type=linux
15342 need_lib_prefix=no
15343 need_version=no
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15349 freebsd1*)
15350 dynamic_linker=no
15353 freebsd* | dragonfly*)
15354 # DragonFly does not have aout. When/if they implement a new
15355 # versioning mechanism, adjust this.
15356 if test -x /usr/bin/objformat; then
15357 objformat=`/usr/bin/objformat`
15358 else
15359 case $host_os in
15360 freebsd[123]*) objformat=aout ;;
15361 *) objformat=elf ;;
15362 esac
15364 version_type=freebsd-$objformat
15365 case $version_type in
15366 freebsd-elf*)
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15368 need_version=no
15369 need_lib_prefix=no
15371 freebsd-*)
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15373 need_version=yes
15375 esac
15376 shlibpath_var=LD_LIBRARY_PATH
15377 case $host_os in
15378 freebsd2*)
15379 shlibpath_overrides_runpath=yes
15381 freebsd3.[01]* | freebsdelf3.[01]*)
15382 shlibpath_overrides_runpath=yes
15383 hardcode_into_libs=yes
15385 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15386 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15387 shlibpath_overrides_runpath=no
15388 hardcode_into_libs=yes
15390 *) # from 4.6 on, and DragonFly
15391 shlibpath_overrides_runpath=yes
15392 hardcode_into_libs=yes
15394 esac
15397 gnu*)
15398 version_type=linux
15399 need_lib_prefix=no
15400 need_version=no
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 hardcode_into_libs=yes
15407 hpux9* | hpux10* | hpux11*)
15408 # Give a soname corresponding to the major version so that dld.sl refuses to
15409 # link against other versions.
15410 version_type=sunos
15411 need_lib_prefix=no
15412 need_version=no
15413 case $host_cpu in
15414 ia64*)
15415 shrext_cmds='.so'
15416 hardcode_into_libs=yes
15417 dynamic_linker="$host_os dld.so"
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 if test "X$HPUX_IA64_MODE" = X32; then
15423 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15424 else
15425 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15429 hppa*64*)
15430 shrext_cmds='.sl'
15431 hardcode_into_libs=yes
15432 dynamic_linker="$host_os dld.sl"
15433 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15441 shrext_cmds='.sl'
15442 dynamic_linker="$host_os dld.sl"
15443 shlibpath_var=SHLIB_PATH
15444 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446 soname_spec='${libname}${release}${shared_ext}$major'
15448 esac
15449 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15450 postinstall_cmds='chmod 555 $lib'
15453 interix[3-9]*)
15454 version_type=linux
15455 need_lib_prefix=no
15456 need_version=no
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15460 shlibpath_var=LD_LIBRARY_PATH
15461 shlibpath_overrides_runpath=no
15462 hardcode_into_libs=yes
15465 irix5* | irix6* | nonstopux*)
15466 case $host_os in
15467 nonstopux*) version_type=nonstopux ;;
15469 if test "$lt_cv_prog_gnu_ld" = yes; then
15470 version_type=linux
15471 else
15472 version_type=irix
15473 fi ;;
15474 esac
15475 need_lib_prefix=no
15476 need_version=no
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15479 case $host_os in
15480 irix5* | nonstopux*)
15481 libsuff= shlibsuff=
15484 case $LD in # libtool.m4 will add one of these switches to LD
15485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15486 libsuff= shlibsuff= libmagic=32-bit;;
15487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15488 libsuff=32 shlibsuff=N32 libmagic=N32;;
15489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15490 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15491 *) libsuff= shlibsuff= libmagic=never-match;;
15492 esac
15494 esac
15495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15496 shlibpath_overrides_runpath=no
15497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15499 hardcode_into_libs=yes
15502 # No shared lib support for Linux oldld, aout, or coff.
15503 linux*oldld* | linux*aout* | linux*coff*)
15504 dynamic_linker=no
15507 # This must be Linux ELF.
15508 linux* | k*bsd*-gnu)
15509 version_type=linux
15510 need_lib_prefix=no
15511 need_version=no
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15515 shlibpath_var=LD_LIBRARY_PATH
15516 shlibpath_overrides_runpath=no
15517 # This implies no fast_install, which is unacceptable.
15518 # Some rework will be needed to allow for fast_install
15519 # before this can be enabled.
15520 hardcode_into_libs=yes
15522 # Append ld.so.conf contents to the search path
15523 if test -f /etc/ld.so.conf; then
15524 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' ' '`
15525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15528 # We used to test for /lib/ld.so.1 and disable shared libraries on
15529 # powerpc, because MkLinux only supported shared libraries with the
15530 # GNU dynamic linker. Since this was broken with cross compilers,
15531 # most powerpc-linux boxes support dynamic linking these days and
15532 # people can always --disable-shared, the test was removed, and we
15533 # assume the GNU/Linux dynamic linker is in use.
15534 dynamic_linker='GNU/Linux ld.so'
15537 netbsd*)
15538 version_type=sunos
15539 need_lib_prefix=no
15540 need_version=no
15541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15544 dynamic_linker='NetBSD (a.out) ld.so'
15545 else
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 dynamic_linker='NetBSD ld.elf_so'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15552 hardcode_into_libs=yes
15555 newsos6)
15556 version_type=linux
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=yes
15562 nto-qnx*)
15563 version_type=linux
15564 need_lib_prefix=no
15565 need_version=no
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LD_LIBRARY_PATH
15569 shlibpath_overrides_runpath=yes
15572 openbsd*)
15573 version_type=sunos
15574 sys_lib_dlsearch_path_spec="/usr/lib"
15575 need_lib_prefix=no
15576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15577 case $host_os in
15578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15579 *) need_version=no ;;
15580 esac
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15585 case $host_os in
15586 openbsd2.[89] | openbsd2.[89].*)
15587 shlibpath_overrides_runpath=no
15590 shlibpath_overrides_runpath=yes
15592 esac
15593 else
15594 shlibpath_overrides_runpath=yes
15598 os2*)
15599 libname_spec='$name'
15600 shrext_cmds=".dll"
15601 need_lib_prefix=no
15602 library_names_spec='$libname${shared_ext} $libname.a'
15603 dynamic_linker='OS/2 ld.exe'
15604 shlibpath_var=LIBPATH
15607 osf3* | osf4* | osf5*)
15608 version_type=osf
15609 need_lib_prefix=no
15610 need_version=no
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15618 rdos*)
15619 dynamic_linker=no
15622 solaris*)
15623 version_type=linux
15624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 shlibpath_overrides_runpath=yes
15630 hardcode_into_libs=yes
15631 # ldd complains unless libraries are executable
15632 postinstall_cmds='chmod +x $lib'
15635 sunos4*)
15636 version_type=sunos
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 shlibpath_overrides_runpath=yes
15641 if test "$with_gnu_ld" = yes; then
15642 need_lib_prefix=no
15644 need_version=yes
15647 sysv4 | sysv4.3*)
15648 version_type=linux
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 case $host_vendor in
15653 sni)
15654 shlibpath_overrides_runpath=no
15655 need_lib_prefix=no
15656 export_dynamic_flag_spec='${wl}-Blargedynsym'
15657 runpath_var=LD_RUN_PATH
15659 siemens)
15660 need_lib_prefix=no
15662 motorola)
15663 need_lib_prefix=no
15664 need_version=no
15665 shlibpath_overrides_runpath=no
15666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15668 esac
15671 sysv4*MP*)
15672 if test -d /usr/nec ;then
15673 version_type=linux
15674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15675 soname_spec='$libname${shared_ext}.$major'
15676 shlibpath_var=LD_LIBRARY_PATH
15680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15681 version_type=freebsd-elf
15682 need_lib_prefix=no
15683 need_version=no
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 hardcode_into_libs=yes
15688 if test "$with_gnu_ld" = yes; then
15689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15690 shlibpath_overrides_runpath=no
15691 else
15692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15693 shlibpath_overrides_runpath=yes
15694 case $host_os in
15695 sco3.2v5*)
15696 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15698 esac
15700 sys_lib_dlsearch_path_spec='/usr/lib'
15703 uts4*)
15704 version_type=linux
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15711 dynamic_linker=no
15713 esac
15714 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15715 echo "${ECHO_T}$dynamic_linker" >&6; }
15716 test "$dynamic_linker" = no && can_build_shared=no
15718 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15719 if test "$GCC" = yes; then
15720 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15723 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15724 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15725 hardcode_action_F77=
15726 if test -n "$hardcode_libdir_flag_spec_F77" || \
15727 test -n "$runpath_var_F77" || \
15728 test "X$hardcode_automatic_F77" = "Xyes" ; then
15730 # We can hardcode non-existant directories.
15731 if test "$hardcode_direct_F77" != no &&
15732 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15733 # have to relink, otherwise we might link with an installed library
15734 # when we should be linking with a yet-to-be-installed one
15735 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15736 test "$hardcode_minus_L_F77" != no; then
15737 # Linking always hardcodes the temporary library directory.
15738 hardcode_action_F77=relink
15739 else
15740 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15741 hardcode_action_F77=immediate
15743 else
15744 # We cannot hardcode anything, or else we can only hardcode existing
15745 # directories.
15746 hardcode_action_F77=unsupported
15748 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15749 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15751 if test "$hardcode_action_F77" = relink; then
15752 # Fast installation is not supported
15753 enable_fast_install=no
15754 elif test "$shlibpath_overrides_runpath" = yes ||
15755 test "$enable_shared" = no; then
15756 # Fast installation is not necessary
15757 enable_fast_install=needless
15761 # The else clause should only fire when bootstrapping the
15762 # libtool distribution, otherwise you forgot to ship ltmain.sh
15763 # with your package, and you will get complaints that there are
15764 # no rules to generate ltmain.sh.
15765 if test -f "$ltmain"; then
15766 # See if we are running on zsh, and set the options which allow our commands through
15767 # without removal of \ escapes.
15768 if test -n "${ZSH_VERSION+set}" ; then
15769 setopt NO_GLOB_SUBST
15771 # Now quote all the things that may contain metacharacters while being
15772 # careful not to overquote the AC_SUBSTed values. We take copies of the
15773 # variables and quote the copies for generation of the libtool script.
15774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15775 SED SHELL STRIP \
15776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15778 deplibs_check_method reload_flag reload_cmds need_locks \
15779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15780 lt_cv_sys_global_symbol_to_c_name_address \
15781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15782 old_postinstall_cmds old_postuninstall_cmds \
15783 compiler_F77 \
15784 CC_F77 \
15785 LD_F77 \
15786 lt_prog_compiler_wl_F77 \
15787 lt_prog_compiler_pic_F77 \
15788 lt_prog_compiler_static_F77 \
15789 lt_prog_compiler_no_builtin_flag_F77 \
15790 export_dynamic_flag_spec_F77 \
15791 thread_safe_flag_spec_F77 \
15792 whole_archive_flag_spec_F77 \
15793 enable_shared_with_static_runtimes_F77 \
15794 old_archive_cmds_F77 \
15795 old_archive_from_new_cmds_F77 \
15796 predep_objects_F77 \
15797 postdep_objects_F77 \
15798 predeps_F77 \
15799 postdeps_F77 \
15800 compiler_lib_search_path_F77 \
15801 archive_cmds_F77 \
15802 archive_expsym_cmds_F77 \
15803 postinstall_cmds_F77 \
15804 postuninstall_cmds_F77 \
15805 old_archive_from_expsyms_cmds_F77 \
15806 allow_undefined_flag_F77 \
15807 no_undefined_flag_F77 \
15808 export_symbols_cmds_F77 \
15809 hardcode_libdir_flag_spec_F77 \
15810 hardcode_libdir_flag_spec_ld_F77 \
15811 hardcode_libdir_separator_F77 \
15812 hardcode_automatic_F77 \
15813 module_cmds_F77 \
15814 module_expsym_cmds_F77 \
15815 lt_cv_prog_compiler_c_o_F77 \
15816 fix_srcfile_path_F77 \
15817 exclude_expsyms_F77 \
15818 include_expsyms_F77; do
15820 case $var in
15821 old_archive_cmds_F77 | \
15822 old_archive_from_new_cmds_F77 | \
15823 archive_cmds_F77 | \
15824 archive_expsym_cmds_F77 | \
15825 module_cmds_F77 | \
15826 module_expsym_cmds_F77 | \
15827 old_archive_from_expsyms_cmds_F77 | \
15828 export_symbols_cmds_F77 | \
15829 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15830 postinstall_cmds | postuninstall_cmds | \
15831 old_postinstall_cmds | old_postuninstall_cmds | \
15832 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15833 # Double-quote double-evaled strings.
15834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15837 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15839 esac
15840 done
15842 case $lt_echo in
15843 *'\$0 --fallback-echo"')
15844 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15846 esac
15848 cfgfile="$ofile"
15850 cat <<__EOF__ >> "$cfgfile"
15851 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15853 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15855 # Shell to use when invoking shell scripts.
15856 SHELL=$lt_SHELL
15858 # Whether or not to build shared libraries.
15859 build_libtool_libs=$enable_shared
15861 # Whether or not to build static libraries.
15862 build_old_libs=$enable_static
15864 # Whether or not to add -lc for building shared libraries.
15865 build_libtool_need_lc=$archive_cmds_need_lc_F77
15867 # Whether or not to disallow shared libs when runtime libs are static
15868 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15870 # Whether or not to optimize for fast installation.
15871 fast_install=$enable_fast_install
15873 # The host system.
15874 host_alias=$host_alias
15875 host=$host
15876 host_os=$host_os
15878 # The build system.
15879 build_alias=$build_alias
15880 build=$build
15881 build_os=$build_os
15883 # An echo program that does not interpret backslashes.
15884 echo=$lt_echo
15886 # The archiver.
15887 AR=$lt_AR
15888 AR_FLAGS=$lt_AR_FLAGS
15890 # A C compiler.
15891 LTCC=$lt_LTCC
15893 # LTCC compiler flags.
15894 LTCFLAGS=$lt_LTCFLAGS
15896 # A language-specific compiler.
15897 CC=$lt_compiler_F77
15899 # Is the compiler the GNU C compiler?
15900 with_gcc=$GCC_F77
15902 # An ERE matcher.
15903 EGREP=$lt_EGREP
15905 # The linker used to build libraries.
15906 LD=$lt_LD_F77
15908 # Whether we need hard or soft links.
15909 LN_S=$lt_LN_S
15911 # A BSD-compatible nm program.
15912 NM=$lt_NM
15914 # A symbol stripping program
15915 STRIP=$lt_STRIP
15917 # Used to examine libraries when file_magic_cmd begins "file"
15918 MAGIC_CMD=$MAGIC_CMD
15920 # Used on cygwin: DLL creation program.
15921 DLLTOOL="$DLLTOOL"
15923 # Used on cygwin: object dumper.
15924 OBJDUMP="$OBJDUMP"
15926 # Used on cygwin: assembler.
15927 AS="$AS"
15929 # The name of the directory that contains temporary libtool files.
15930 objdir=$objdir
15932 # How to create reloadable object files.
15933 reload_flag=$lt_reload_flag
15934 reload_cmds=$lt_reload_cmds
15936 # How to pass a linker flag through the compiler.
15937 wl=$lt_lt_prog_compiler_wl_F77
15939 # Object file suffix (normally "o").
15940 objext="$ac_objext"
15942 # Old archive suffix (normally "a").
15943 libext="$libext"
15945 # Shared library suffix (normally ".so").
15946 shrext_cmds='$shrext_cmds'
15948 # Executable file suffix (normally "").
15949 exeext="$exeext"
15951 # Additional compiler flags for building library objects.
15952 pic_flag=$lt_lt_prog_compiler_pic_F77
15953 pic_mode=$pic_mode
15955 # What is the maximum length of a command?
15956 max_cmd_len=$lt_cv_sys_max_cmd_len
15958 # Does compiler simultaneously support -c and -o options?
15959 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15961 # Must we lock files when doing compilation?
15962 need_locks=$lt_need_locks
15964 # Do we need the lib prefix for modules?
15965 need_lib_prefix=$need_lib_prefix
15967 # Do we need a version for libraries?
15968 need_version=$need_version
15970 # Whether dlopen is supported.
15971 dlopen_support=$enable_dlopen
15973 # Whether dlopen of programs is supported.
15974 dlopen_self=$enable_dlopen_self
15976 # Whether dlopen of statically linked programs is supported.
15977 dlopen_self_static=$enable_dlopen_self_static
15979 # Compiler flag to prevent dynamic linking.
15980 link_static_flag=$lt_lt_prog_compiler_static_F77
15982 # Compiler flag to turn off builtin functions.
15983 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15985 # Compiler flag to allow reflexive dlopens.
15986 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15988 # Compiler flag to generate shared objects directly from archives.
15989 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15991 # Compiler flag to generate thread-safe objects.
15992 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15994 # Library versioning type.
15995 version_type=$version_type
15997 # Format of library name prefix.
15998 libname_spec=$lt_libname_spec
16000 # List of archive names. First name is the real one, the rest are links.
16001 # The last name is the one that the linker finds with -lNAME.
16002 library_names_spec=$lt_library_names_spec
16004 # The coded name of the library, if different from the real name.
16005 soname_spec=$lt_soname_spec
16007 # Commands used to build and install an old-style archive.
16008 RANLIB=$lt_RANLIB
16009 old_archive_cmds=$lt_old_archive_cmds_F77
16010 old_postinstall_cmds=$lt_old_postinstall_cmds
16011 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16013 # Create an old-style archive from a shared archive.
16014 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16016 # Create a temporary old-style archive to link instead of a shared archive.
16017 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16019 # Commands used to build and install a shared archive.
16020 archive_cmds=$lt_archive_cmds_F77
16021 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16022 postinstall_cmds=$lt_postinstall_cmds
16023 postuninstall_cmds=$lt_postuninstall_cmds
16025 # Commands used to build a loadable module (assumed same as above if empty)
16026 module_cmds=$lt_module_cmds_F77
16027 module_expsym_cmds=$lt_module_expsym_cmds_F77
16029 # Commands to strip libraries.
16030 old_striplib=$lt_old_striplib
16031 striplib=$lt_striplib
16033 # Dependencies to place before the objects being linked to create a
16034 # shared library.
16035 predep_objects=$lt_predep_objects_F77
16037 # Dependencies to place after the objects being linked to create a
16038 # shared library.
16039 postdep_objects=$lt_postdep_objects_F77
16041 # Dependencies to place before the objects being linked to create a
16042 # shared library.
16043 predeps=$lt_predeps_F77
16045 # Dependencies to place after the objects being linked to create a
16046 # shared library.
16047 postdeps=$lt_postdeps_F77
16049 # The library search path used internally by the compiler when linking
16050 # a shared library.
16051 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16053 # Method to check whether dependent libraries are shared objects.
16054 deplibs_check_method=$lt_deplibs_check_method
16056 # Command to use when deplibs_check_method == file_magic.
16057 file_magic_cmd=$lt_file_magic_cmd
16059 # Flag that allows shared libraries with undefined symbols to be built.
16060 allow_undefined_flag=$lt_allow_undefined_flag_F77
16062 # Flag that forces no undefined symbols.
16063 no_undefined_flag=$lt_no_undefined_flag_F77
16065 # Commands used to finish a libtool library installation in a directory.
16066 finish_cmds=$lt_finish_cmds
16068 # Same as above, but a single script fragment to be evaled but not shown.
16069 finish_eval=$lt_finish_eval
16071 # Take the output of nm and produce a listing of raw symbols and C names.
16072 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16074 # Transform the output of nm in a proper C declaration
16075 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16077 # Transform the output of nm in a C name address pair
16078 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16080 # This is the shared library runtime path variable.
16081 runpath_var=$runpath_var
16083 # This is the shared library path variable.
16084 shlibpath_var=$shlibpath_var
16086 # Is shlibpath searched before the hard-coded library search path?
16087 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16089 # How to hardcode a shared library path into an executable.
16090 hardcode_action=$hardcode_action_F77
16092 # Whether we should hardcode library paths into libraries.
16093 hardcode_into_libs=$hardcode_into_libs
16095 # Flag to hardcode \$libdir into a binary during linking.
16096 # This must work even if \$libdir does not exist.
16097 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16099 # If ld is used when linking, flag to hardcode \$libdir into
16100 # a binary during linking. This must work even if \$libdir does
16101 # not exist.
16102 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16104 # Whether we need a single -rpath flag with a separated argument.
16105 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16107 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16108 # resulting binary.
16109 hardcode_direct=$hardcode_direct_F77
16111 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16112 # resulting binary.
16113 hardcode_minus_L=$hardcode_minus_L_F77
16115 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16116 # the resulting binary.
16117 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16119 # Set to yes if building a shared library automatically hardcodes DIR into the library
16120 # and all subsequent libraries and executables linked against it.
16121 hardcode_automatic=$hardcode_automatic_F77
16123 # Variables whose values should be saved in libtool wrapper scripts and
16124 # restored at relink time.
16125 variables_saved_for_relink="$variables_saved_for_relink"
16127 # Whether libtool must link a program against all its dependency libraries.
16128 link_all_deplibs=$link_all_deplibs_F77
16130 # Compile-time system search path for libraries
16131 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16133 # Run-time system search path for libraries
16134 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16136 # Fix the shell variable \$srcfile for the compiler.
16137 fix_srcfile_path=$lt_fix_srcfile_path
16139 # Set to yes if exported symbols are required.
16140 always_export_symbols=$always_export_symbols_F77
16142 # The commands to list exported symbols.
16143 export_symbols_cmds=$lt_export_symbols_cmds_F77
16145 # The commands to extract the exported symbol list from a shared archive.
16146 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16148 # Symbols that should not be listed in the preloaded symbols.
16149 exclude_expsyms=$lt_exclude_expsyms_F77
16151 # Symbols that must always be exported.
16152 include_expsyms=$lt_include_expsyms_F77
16154 # ### END LIBTOOL TAG CONFIG: $tagname
16156 __EOF__
16159 else
16160 # If there is no Makefile yet, we rely on a make rule to execute
16161 # `config.status --recheck' to rerun these tests and create the
16162 # libtool script then.
16163 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16164 if test -f "$ltmain_in"; then
16165 test -f Makefile && make "$ltmain"
16170 ac_ext=c
16171 ac_cpp='$CPP $CPPFLAGS'
16172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16176 CC="$lt_save_CC"
16178 else
16179 tagname=""
16183 GCJ)
16184 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16187 # Source file extension for Java test sources.
16188 ac_ext=java
16190 # Object file extension for compiled Java test sources.
16191 objext=o
16192 objext_GCJ=$objext
16194 # Code to be used in simple compile tests
16195 lt_simple_compile_test_code="class foo {}"
16197 # Code to be used in simple link tests
16198 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16202 # If no C compiler was specified, use CC.
16203 LTCC=${LTCC-"$CC"}
16205 # If no C compiler flags were specified, use CFLAGS.
16206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16208 # Allow CC to be a program name with arguments.
16209 compiler=$CC
16212 # save warnings/boilerplate of simple test code
16213 ac_outfile=conftest.$ac_objext
16214 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16215 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16216 _lt_compiler_boilerplate=`cat conftest.err`
16217 $rm conftest*
16219 ac_outfile=conftest.$ac_objext
16220 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16221 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16222 _lt_linker_boilerplate=`cat conftest.err`
16223 $rm conftest*
16226 # Allow CC to be a program name with arguments.
16227 lt_save_CC="$CC"
16228 CC=${GCJ-"gcj"}
16229 compiler=$CC
16230 compiler_GCJ=$CC
16231 for cc_temp in $compiler""; do
16232 case $cc_temp in
16233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16235 \-*) ;;
16236 *) break;;
16237 esac
16238 done
16239 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16242 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16243 archive_cmds_need_lc_GCJ=no
16245 old_archive_cmds_GCJ=$old_archive_cmds
16248 lt_prog_compiler_no_builtin_flag_GCJ=
16250 if test "$GCC" = yes; then
16251 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16254 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16255 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16256 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16257 echo $ECHO_N "(cached) $ECHO_C" >&6
16258 else
16259 lt_cv_prog_compiler_rtti_exceptions=no
16260 ac_outfile=conftest.$ac_objext
16261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16262 lt_compiler_flag="-fno-rtti -fno-exceptions"
16263 # Insert the option either (1) after the last *FLAGS variable, or
16264 # (2) before a word containing "conftest.", or (3) at the end.
16265 # Note that $ac_compile itself does not contain backslashes and begins
16266 # with a dollar sign (not a hyphen), so the echo should work correctly.
16267 # The option is referenced via a variable to avoid confusing sed.
16268 lt_compile=`echo "$ac_compile" | $SED \
16269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16271 -e 's:$: $lt_compiler_flag:'`
16272 (eval echo "\"\$as_me:16272: $lt_compile\"" >&5)
16273 (eval "$lt_compile" 2>conftest.err)
16274 ac_status=$?
16275 cat conftest.err >&5
16276 echo "$as_me:16276: \$? = $ac_status" >&5
16277 if (exit $ac_status) && test -s "$ac_outfile"; then
16278 # The compiler can only warn and ignore the option if not recognized
16279 # So say no if there are warnings other than the usual output.
16280 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16282 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16283 lt_cv_prog_compiler_rtti_exceptions=yes
16286 $rm conftest*
16289 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16290 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16292 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16293 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16294 else
16300 lt_prog_compiler_wl_GCJ=
16301 lt_prog_compiler_pic_GCJ=
16302 lt_prog_compiler_static_GCJ=
16304 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16305 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16307 if test "$GCC" = yes; then
16308 lt_prog_compiler_wl_GCJ='-Wl,'
16309 lt_prog_compiler_static_GCJ='-static'
16311 case $host_os in
16312 aix*)
16313 # All AIX code is PIC.
16314 if test "$host_cpu" = ia64; then
16315 # AIX 5 now supports IA64 processor
16316 lt_prog_compiler_static_GCJ='-Bstatic'
16320 amigaos*)
16321 # FIXME: we need at least 68020 code to build shared libraries, but
16322 # adding the `-m68020' flag to GCC prevents building anything better,
16323 # like `-m68040'.
16324 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16328 # PIC is the default for these OSes.
16331 mingw* | cygwin* | pw32* | os2*)
16332 # This hack is so that the source file can tell whether it is being
16333 # built for inclusion in a dll (and should export symbols for example).
16334 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16335 # (--disable-auto-import) libraries
16336 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16339 darwin* | rhapsody*)
16340 # PIC is the default on this platform
16341 # Common symbols not allowed in MH_DYLIB files
16342 lt_prog_compiler_pic_GCJ='-fno-common'
16345 interix[3-9]*)
16346 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16347 # Instead, we relocate shared libraries at runtime.
16350 msdosdjgpp*)
16351 # Just because we use GCC doesn't mean we suddenly get shared libraries
16352 # on systems that don't support them.
16353 lt_prog_compiler_can_build_shared_GCJ=no
16354 enable_shared=no
16357 sysv4*MP*)
16358 if test -d /usr/nec; then
16359 lt_prog_compiler_pic_GCJ=-Kconform_pic
16363 hpux*)
16364 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16365 # not for PA HP-UX.
16366 case $host_cpu in
16367 hppa*64*|ia64*)
16368 # +Z the default
16371 lt_prog_compiler_pic_GCJ='-fPIC'
16373 esac
16377 lt_prog_compiler_pic_GCJ='-fPIC'
16379 esac
16380 else
16381 # PORTME Check for flag to pass linker flags through the system compiler.
16382 case $host_os in
16383 aix*)
16384 lt_prog_compiler_wl_GCJ='-Wl,'
16385 if test "$host_cpu" = ia64; then
16386 # AIX 5 now supports IA64 processor
16387 lt_prog_compiler_static_GCJ='-Bstatic'
16388 else
16389 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16392 darwin*)
16393 # PIC is the default on this platform
16394 # Common symbols not allowed in MH_DYLIB files
16395 case $cc_basename in
16396 xlc*)
16397 lt_prog_compiler_pic_GCJ='-qnocommon'
16398 lt_prog_compiler_wl_GCJ='-Wl,'
16400 esac
16403 mingw* | cygwin* | pw32* | os2*)
16404 # This hack is so that the source file can tell whether it is being
16405 # built for inclusion in a dll (and should export symbols for example).
16406 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16409 hpux9* | hpux10* | hpux11*)
16410 lt_prog_compiler_wl_GCJ='-Wl,'
16411 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16412 # not for PA HP-UX.
16413 case $host_cpu in
16414 hppa*64*|ia64*)
16415 # +Z the default
16418 lt_prog_compiler_pic_GCJ='+Z'
16420 esac
16421 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16422 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16425 irix5* | irix6* | nonstopux*)
16426 lt_prog_compiler_wl_GCJ='-Wl,'
16427 # PIC (with -KPIC) is the default.
16428 lt_prog_compiler_static_GCJ='-non_shared'
16431 newsos6)
16432 lt_prog_compiler_pic_GCJ='-KPIC'
16433 lt_prog_compiler_static_GCJ='-Bstatic'
16436 linux* | k*bsd*-gnu)
16437 case $cc_basename in
16438 icc* | ecc*)
16439 lt_prog_compiler_wl_GCJ='-Wl,'
16440 lt_prog_compiler_pic_GCJ='-KPIC'
16441 lt_prog_compiler_static_GCJ='-static'
16443 pgcc* | pgf77* | pgf90* | pgf95*)
16444 # Portland Group compilers (*not* the Pentium gcc compiler,
16445 # which looks to be a dead project)
16446 lt_prog_compiler_wl_GCJ='-Wl,'
16447 lt_prog_compiler_pic_GCJ='-fpic'
16448 lt_prog_compiler_static_GCJ='-Bstatic'
16450 ccc*)
16451 lt_prog_compiler_wl_GCJ='-Wl,'
16452 # All Alpha code is PIC.
16453 lt_prog_compiler_static_GCJ='-non_shared'
16456 case `$CC -V 2>&1 | sed 5q` in
16457 *Sun\ C*)
16458 # Sun C 5.9
16459 lt_prog_compiler_pic_GCJ='-KPIC'
16460 lt_prog_compiler_static_GCJ='-Bstatic'
16461 lt_prog_compiler_wl_GCJ='-Wl,'
16463 *Sun\ F*)
16464 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16465 lt_prog_compiler_pic_GCJ='-KPIC'
16466 lt_prog_compiler_static_GCJ='-Bstatic'
16467 lt_prog_compiler_wl_GCJ=''
16469 esac
16471 esac
16474 osf3* | osf4* | osf5*)
16475 lt_prog_compiler_wl_GCJ='-Wl,'
16476 # All OSF/1 code is PIC.
16477 lt_prog_compiler_static_GCJ='-non_shared'
16480 rdos*)
16481 lt_prog_compiler_static_GCJ='-non_shared'
16484 solaris*)
16485 lt_prog_compiler_pic_GCJ='-KPIC'
16486 lt_prog_compiler_static_GCJ='-Bstatic'
16487 case $cc_basename in
16488 f77* | f90* | f95*)
16489 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16491 lt_prog_compiler_wl_GCJ='-Wl,';;
16492 esac
16495 sunos4*)
16496 lt_prog_compiler_wl_GCJ='-Qoption ld '
16497 lt_prog_compiler_pic_GCJ='-PIC'
16498 lt_prog_compiler_static_GCJ='-Bstatic'
16501 sysv4 | sysv4.2uw2* | sysv4.3*)
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 lt_prog_compiler_pic_GCJ='-KPIC'
16504 lt_prog_compiler_static_GCJ='-Bstatic'
16507 sysv4*MP*)
16508 if test -d /usr/nec ;then
16509 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16510 lt_prog_compiler_static_GCJ='-Bstatic'
16514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16515 lt_prog_compiler_wl_GCJ='-Wl,'
16516 lt_prog_compiler_pic_GCJ='-KPIC'
16517 lt_prog_compiler_static_GCJ='-Bstatic'
16520 unicos*)
16521 lt_prog_compiler_wl_GCJ='-Wl,'
16522 lt_prog_compiler_can_build_shared_GCJ=no
16525 uts4*)
16526 lt_prog_compiler_pic_GCJ='-pic'
16527 lt_prog_compiler_static_GCJ='-Bstatic'
16531 lt_prog_compiler_can_build_shared_GCJ=no
16533 esac
16536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16537 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16540 # Check to make sure the PIC flag actually works.
16542 if test -n "$lt_prog_compiler_pic_GCJ"; then
16544 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16545 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16546 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549 lt_prog_compiler_pic_works_GCJ=no
16550 ac_outfile=conftest.$ac_objext
16551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16552 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16553 # Insert the option either (1) after the last *FLAGS variable, or
16554 # (2) before a word containing "conftest.", or (3) at the end.
16555 # Note that $ac_compile itself does not contain backslashes and begins
16556 # with a dollar sign (not a hyphen), so the echo should work correctly.
16557 # The option is referenced via a variable to avoid confusing sed.
16558 lt_compile=`echo "$ac_compile" | $SED \
16559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16561 -e 's:$: $lt_compiler_flag:'`
16562 (eval echo "\"\$as_me:16562: $lt_compile\"" >&5)
16563 (eval "$lt_compile" 2>conftest.err)
16564 ac_status=$?
16565 cat conftest.err >&5
16566 echo "$as_me:16566: \$? = $ac_status" >&5
16567 if (exit $ac_status) && test -s "$ac_outfile"; then
16568 # The compiler can only warn and ignore the option if not recognized
16569 # So say no if there are warnings other than the usual output.
16570 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16573 lt_prog_compiler_pic_works_GCJ=yes
16576 $rm conftest*
16579 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16580 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16582 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16583 case $lt_prog_compiler_pic_GCJ in
16584 "" | " "*) ;;
16585 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16586 esac
16587 else
16588 lt_prog_compiler_pic_GCJ=
16589 lt_prog_compiler_can_build_shared_GCJ=no
16593 case $host_os in
16594 # For platforms which do not support PIC, -DPIC is meaningless:
16595 *djgpp*)
16596 lt_prog_compiler_pic_GCJ=
16599 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16601 esac
16604 # Check to make sure the static flag actually works.
16606 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16607 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16608 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16609 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 lt_prog_compiler_static_works_GCJ=no
16613 save_LDFLAGS="$LDFLAGS"
16614 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16615 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16617 # The linker can only warn and ignore the option if not recognized
16618 # So say no if there are warnings
16619 if test -s conftest.err; then
16620 # Append any errors to the config.log.
16621 cat conftest.err 1>&5
16622 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16624 if diff conftest.exp conftest.er2 >/dev/null; then
16625 lt_prog_compiler_static_works_GCJ=yes
16627 else
16628 lt_prog_compiler_static_works_GCJ=yes
16631 $rm conftest*
16632 LDFLAGS="$save_LDFLAGS"
16635 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16636 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16638 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16640 else
16641 lt_prog_compiler_static_GCJ=
16645 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16647 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650 lt_cv_prog_compiler_c_o_GCJ=no
16651 $rm -r conftest 2>/dev/null
16652 mkdir conftest
16653 cd conftest
16654 mkdir out
16655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16657 lt_compiler_flag="-o out/conftest2.$ac_objext"
16658 # Insert the option either (1) after the last *FLAGS variable, or
16659 # (2) before a word containing "conftest.", or (3) at the end.
16660 # Note that $ac_compile itself does not contain backslashes and begins
16661 # with a dollar sign (not a hyphen), so the echo should work correctly.
16662 lt_compile=`echo "$ac_compile" | $SED \
16663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16665 -e 's:$: $lt_compiler_flag:'`
16666 (eval echo "\"\$as_me:16666: $lt_compile\"" >&5)
16667 (eval "$lt_compile" 2>out/conftest.err)
16668 ac_status=$?
16669 cat out/conftest.err >&5
16670 echo "$as_me:16670: \$? = $ac_status" >&5
16671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16672 then
16673 # The compiler can only warn and ignore the option if not recognized
16674 # So say no if there are warnings
16675 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16678 lt_cv_prog_compiler_c_o_GCJ=yes
16681 chmod u+w . 2>&5
16682 $rm conftest*
16683 # SGI C++ compiler will create directory out/ii_files/ for
16684 # template instantiation
16685 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16686 $rm out/* && rmdir out
16687 cd ..
16688 rmdir conftest
16689 $rm conftest*
16692 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16693 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16696 hard_links="nottested"
16697 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16698 # do not overwrite the value of need_locks provided by the user
16699 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16700 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16701 hard_links=yes
16702 $rm conftest*
16703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16704 touch conftest.a
16705 ln conftest.a conftest.b 2>&5 || hard_links=no
16706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16707 { echo "$as_me:$LINENO: result: $hard_links" >&5
16708 echo "${ECHO_T}$hard_links" >&6; }
16709 if test "$hard_links" = no; then
16710 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16711 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16712 need_locks=warn
16714 else
16715 need_locks=no
16718 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16719 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16721 runpath_var=
16722 allow_undefined_flag_GCJ=
16723 enable_shared_with_static_runtimes_GCJ=no
16724 archive_cmds_GCJ=
16725 archive_expsym_cmds_GCJ=
16726 old_archive_From_new_cmds_GCJ=
16727 old_archive_from_expsyms_cmds_GCJ=
16728 export_dynamic_flag_spec_GCJ=
16729 whole_archive_flag_spec_GCJ=
16730 thread_safe_flag_spec_GCJ=
16731 hardcode_libdir_flag_spec_GCJ=
16732 hardcode_libdir_flag_spec_ld_GCJ=
16733 hardcode_libdir_separator_GCJ=
16734 hardcode_direct_GCJ=no
16735 hardcode_minus_L_GCJ=no
16736 hardcode_shlibpath_var_GCJ=unsupported
16737 link_all_deplibs_GCJ=unknown
16738 hardcode_automatic_GCJ=no
16739 module_cmds_GCJ=
16740 module_expsym_cmds_GCJ=
16741 always_export_symbols_GCJ=no
16742 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16743 # include_expsyms should be a list of space-separated symbols to be *always*
16744 # included in the symbol list
16745 include_expsyms_GCJ=
16746 # exclude_expsyms can be an extended regexp of symbols to exclude
16747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16749 # as well as any symbol that contains `d'.
16750 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16752 # platforms (ab)use it in PIC code, but their linkers get confused if
16753 # the symbol is explicitly referenced. Since portable code cannot
16754 # rely on this symbol name, it's probably fine to never include it in
16755 # preloaded symbol tables.
16756 extract_expsyms_cmds=
16757 # Just being paranoid about ensuring that cc_basename is set.
16758 for cc_temp in $compiler""; do
16759 case $cc_temp in
16760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16762 \-*) ;;
16763 *) break;;
16764 esac
16765 done
16766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16768 case $host_os in
16769 cygwin* | mingw* | pw32*)
16770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16771 # When not using gcc, we currently assume that we are using
16772 # Microsoft Visual C++.
16773 if test "$GCC" != yes; then
16774 with_gnu_ld=no
16777 interix*)
16778 # we just hope/assume this is gcc and not c89 (= MSVC++)
16779 with_gnu_ld=yes
16781 openbsd*)
16782 with_gnu_ld=no
16784 esac
16786 ld_shlibs_GCJ=yes
16787 if test "$with_gnu_ld" = yes; then
16788 # If archive_cmds runs LD, not CC, wlarc should be empty
16789 wlarc='${wl}'
16791 # Set some defaults for GNU ld with shared library support. These
16792 # are reset later if shared libraries are not supported. Putting them
16793 # here allows them to be overridden if necessary.
16794 runpath_var=LD_RUN_PATH
16795 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16796 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16797 # ancient GNU ld didn't support --whole-archive et. al.
16798 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16799 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16800 else
16801 whole_archive_flag_spec_GCJ=
16803 supports_anon_versioning=no
16804 case `$LD -v 2>/dev/null` in
16805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16808 *\ 2.11.*) ;; # other 2.11 versions
16809 *) supports_anon_versioning=yes ;;
16810 esac
16812 # See if GNU ld supports shared libraries.
16813 case $host_os in
16814 aix3* | aix4* | aix5*)
16815 # On AIX/PPC, the GNU linker is very broken
16816 if test "$host_cpu" != ia64; then
16817 ld_shlibs_GCJ=no
16818 cat <<EOF 1>&2
16820 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16821 *** to be unable to reliably create shared libraries on AIX.
16822 *** Therefore, libtool is disabling shared libraries support. If you
16823 *** really care for shared libraries, you may want to modify your PATH
16824 *** so that a non-GNU linker is found, and then restart.
16830 amigaos*)
16831 archive_cmds_GCJ='$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)'
16832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16833 hardcode_minus_L_GCJ=yes
16835 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16836 # that the semantics of dynamic libraries on AmigaOS, at least up
16837 # to version 4, is to share data among multiple programs linked
16838 # with the same dynamic library. Since this doesn't match the
16839 # behavior of shared libraries on other platforms, we can't use
16840 # them.
16841 ld_shlibs_GCJ=no
16844 beos*)
16845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16846 allow_undefined_flag_GCJ=unsupported
16847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16848 # support --undefined. This deserves some investigation. FIXME
16849 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16850 else
16851 ld_shlibs_GCJ=no
16855 cygwin* | mingw* | pw32*)
16856 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16857 # as there is no search path for DLLs.
16858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16859 allow_undefined_flag_GCJ=unsupported
16860 always_export_symbols_GCJ=no
16861 enable_shared_with_static_runtimes_GCJ=yes
16862 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16866 # If the export-symbols file already is a .def file (1st line
16867 # is EXPORTS), use it as is; otherwise, prepend...
16868 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16869 cp $export_symbols $output_objdir/$soname.def;
16870 else
16871 echo EXPORTS > $output_objdir/$soname.def;
16872 cat $export_symbols >> $output_objdir/$soname.def;
16874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16875 else
16876 ld_shlibs_GCJ=no
16880 interix[3-9]*)
16881 hardcode_direct_GCJ=no
16882 hardcode_shlibpath_var_GCJ=no
16883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16884 export_dynamic_flag_spec_GCJ='${wl}-E'
16885 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16886 # Instead, shared libraries are loaded at an image base (0x10000000 by
16887 # default) and relocated if they conflict, which is a slow very memory
16888 # consuming and fragmenting process. To avoid this, we pick a random,
16889 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16890 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16891 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16892 archive_expsym_cmds_GCJ='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'
16895 gnu* | linux* | k*bsd*-gnu)
16896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16897 tmp_addflag=
16898 case $cc_basename,$host_cpu in
16899 pgcc*) # Portland Group C compiler
16900 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16901 tmp_addflag=' $pic_flag'
16903 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16904 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16905 tmp_addflag=' $pic_flag -Mnomain' ;;
16906 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16907 tmp_addflag=' -i_dynamic' ;;
16908 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16909 tmp_addflag=' -i_dynamic -nofor_main' ;;
16910 ifc* | ifort*) # Intel Fortran compiler
16911 tmp_addflag=' -nofor_main' ;;
16912 esac
16913 case `$CC -V 2>&1 | sed 5q` in
16914 *Sun\ C*) # Sun C 5.9
16915 whole_archive_flag_spec_GCJ='${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'
16916 tmp_sharedflag='-G' ;;
16917 *Sun\ F*) # Sun Fortran 8.3
16918 tmp_sharedflag='-G' ;;
16920 tmp_sharedflag='-shared' ;;
16921 esac
16922 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16924 if test $supports_anon_versioning = yes; then
16925 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16927 $echo "local: *; };" >> $output_objdir/$libname.ver~
16928 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16930 else
16931 ld_shlibs_GCJ=no
16935 netbsd*)
16936 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16937 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16938 wlarc=
16939 else
16940 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16941 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16945 solaris*)
16946 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16947 ld_shlibs_GCJ=no
16948 cat <<EOF 1>&2
16950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16951 *** create shared libraries on Solaris systems. Therefore, libtool
16952 *** is disabling shared libraries support. We urge you to upgrade GNU
16953 *** binutils to release 2.9.1 or newer. Another option is to modify
16954 *** your PATH or compiler configuration so that the native linker is
16955 *** used, and then restart.
16958 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16959 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16960 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16961 else
16962 ld_shlibs_GCJ=no
16966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16967 case `$LD -v 2>&1` in
16968 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16969 ld_shlibs_GCJ=no
16970 cat <<_LT_EOF 1>&2
16972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16973 *** reliably create shared libraries on SCO systems. Therefore, libtool
16974 *** is disabling shared libraries support. We urge you to upgrade GNU
16975 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16976 *** your PATH or compiler configuration so that the native linker is
16977 *** used, and then restart.
16979 _LT_EOF
16982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16983 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16984 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16985 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16986 else
16987 ld_shlibs_GCJ=no
16990 esac
16993 sunos4*)
16994 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16995 wlarc=
16996 hardcode_direct_GCJ=yes
16997 hardcode_shlibpath_var_GCJ=no
17001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17002 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17003 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17004 else
17005 ld_shlibs_GCJ=no
17008 esac
17010 if test "$ld_shlibs_GCJ" = no; then
17011 runpath_var=
17012 hardcode_libdir_flag_spec_GCJ=
17013 export_dynamic_flag_spec_GCJ=
17014 whole_archive_flag_spec_GCJ=
17016 else
17017 # PORTME fill in a description of your system's linker (not GNU ld)
17018 case $host_os in
17019 aix3*)
17020 allow_undefined_flag_GCJ=unsupported
17021 always_export_symbols_GCJ=yes
17022 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17023 # Note: this linker hardcodes the directories in LIBPATH if there
17024 # are no directories specified by -L.
17025 hardcode_minus_L_GCJ=yes
17026 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17027 # Neither direct hardcoding nor static linking is supported with a
17028 # broken collect2.
17029 hardcode_direct_GCJ=unsupported
17033 aix4* | aix5*)
17034 if test "$host_cpu" = ia64; then
17035 # On IA64, the linker does run time linking by default, so we don't
17036 # have to do anything special.
17037 aix_use_runtimelinking=no
17038 exp_sym_flag='-Bexport'
17039 no_entry_flag=""
17040 else
17041 # If we're using GNU nm, then we don't want the "-C" option.
17042 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17043 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17044 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17045 else
17046 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17048 aix_use_runtimelinking=no
17050 # Test if we are trying to use run time linking or normal
17051 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17052 # need to do runtime linking.
17053 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17054 for ld_flag in $LDFLAGS; do
17055 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17056 aix_use_runtimelinking=yes
17057 break
17059 done
17061 esac
17063 exp_sym_flag='-bexport'
17064 no_entry_flag='-bnoentry'
17067 # When large executables or shared objects are built, AIX ld can
17068 # have problems creating the table of contents. If linking a library
17069 # or program results in "error TOC overflow" add -mminimal-toc to
17070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17073 archive_cmds_GCJ=''
17074 hardcode_direct_GCJ=yes
17075 hardcode_libdir_separator_GCJ=':'
17076 link_all_deplibs_GCJ=yes
17078 if test "$GCC" = yes; then
17079 case $host_os in aix4.[012]|aix4.[012].*)
17080 # We only want to do this on AIX 4.2 and lower, the check
17081 # below for broken collect2 doesn't work under 4.3+
17082 collect2name=`${CC} -print-prog-name=collect2`
17083 if test -f "$collect2name" && \
17084 strings "$collect2name" | grep resolve_lib_name >/dev/null
17085 then
17086 # We have reworked collect2
17088 else
17089 # We have old collect2
17090 hardcode_direct_GCJ=unsupported
17091 # It fails to find uninstalled libraries when the uninstalled
17092 # path is not listed in the libpath. Setting hardcode_minus_L
17093 # to unsupported forces relinking
17094 hardcode_minus_L_GCJ=yes
17095 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17096 hardcode_libdir_separator_GCJ=
17099 esac
17100 shared_flag='-shared'
17101 if test "$aix_use_runtimelinking" = yes; then
17102 shared_flag="$shared_flag "'${wl}-G'
17104 else
17105 # not using gcc
17106 if test "$host_cpu" = ia64; then
17107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17108 # chokes on -Wl,-G. The following line is correct:
17109 shared_flag='-G'
17110 else
17111 if test "$aix_use_runtimelinking" = yes; then
17112 shared_flag='${wl}-G'
17113 else
17114 shared_flag='${wl}-bM:SRE'
17119 # It seems that -bexpall does not export symbols beginning with
17120 # underscore (_), so it is better to generate a list of symbols to export.
17121 always_export_symbols_GCJ=yes
17122 if test "$aix_use_runtimelinking" = yes; then
17123 # Warning - without using the other runtime loading flags (-brtl),
17124 # -berok will link without error, but may produce a broken library.
17125 allow_undefined_flag_GCJ='-berok'
17126 # Determine the default libpath from the value encoded in an empty executable.
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17135 main ()
17139 return 0;
17141 _ACEOF
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && {
17156 test -z "$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17158 } && test -s conftest$ac_exeext &&
17159 $as_test_x conftest$ac_exeext; then
17161 lt_aix_libpath_sed='
17162 /Import File Strings/,/^$/ {
17163 /^0/ {
17164 s/^0 *\(.*\)$/\1/
17168 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17169 # Check for a 64-bit object if we didn't find anything.
17170 if test -z "$aix_libpath"; then
17171 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17173 else
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17181 conftest$ac_exeext conftest.$ac_ext
17182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17184 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17185 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17186 else
17187 if test "$host_cpu" = ia64; then
17188 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17189 allow_undefined_flag_GCJ="-z nodefs"
17190 archive_expsym_cmds_GCJ="\$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"
17191 else
17192 # Determine the default libpath from the value encoded in an empty executable.
17193 cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h. */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17201 main ()
17205 return 0;
17207 _ACEOF
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17216 ac_status=$?
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } && {
17222 test -z "$ac_c_werror_flag" ||
17223 test ! -s conftest.err
17224 } && test -s conftest$ac_exeext &&
17225 $as_test_x conftest$ac_exeext; then
17227 lt_aix_libpath_sed='
17228 /Import File Strings/,/^$/ {
17229 /^0/ {
17230 s/^0 *\(.*\)$/\1/
17234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17235 # Check for a 64-bit object if we didn't find anything.
17236 if test -z "$aix_libpath"; then
17237 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17239 else
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17247 conftest$ac_exeext conftest.$ac_ext
17248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17250 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17251 # Warning - without using the other run time loading flags,
17252 # -berok will link without error, but may produce a broken library.
17253 no_undefined_flag_GCJ=' ${wl}-bernotok'
17254 allow_undefined_flag_GCJ=' ${wl}-berok'
17255 # Exported symbols can be pulled into shared objects from archives
17256 whole_archive_flag_spec_GCJ='$convenience'
17257 archive_cmds_need_lc_GCJ=yes
17258 # This is similar to how AIX traditionally builds its shared libraries.
17259 archive_expsym_cmds_GCJ="\$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'
17264 amigaos*)
17265 archive_cmds_GCJ='$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)'
17266 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17267 hardcode_minus_L_GCJ=yes
17268 # see comment about different semantics on the GNU ld section
17269 ld_shlibs_GCJ=no
17272 bsdi[45]*)
17273 export_dynamic_flag_spec_GCJ=-rdynamic
17276 cygwin* | mingw* | pw32*)
17277 # When not using gcc, we currently assume that we are using
17278 # Microsoft Visual C++.
17279 # hardcode_libdir_flag_spec is actually meaningless, as there is
17280 # no search path for DLLs.
17281 hardcode_libdir_flag_spec_GCJ=' '
17282 allow_undefined_flag_GCJ=unsupported
17283 # Tell ltmain to make .lib files, not .a files.
17284 libext=lib
17285 # Tell ltmain to make .dll files, not .so files.
17286 shrext_cmds=".dll"
17287 # FIXME: Setting linknames here is a bad hack.
17288 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17289 # The linker will automatically build a .lib file if we build a DLL.
17290 old_archive_From_new_cmds_GCJ='true'
17291 # FIXME: Should let the user specify the lib program.
17292 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17293 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17294 enable_shared_with_static_runtimes_GCJ=yes
17297 darwin* | rhapsody*)
17298 case $host_os in
17299 rhapsody* | darwin1.[012])
17300 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17302 *) # Darwin 1.3 on
17303 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17304 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17305 else
17306 case ${MACOSX_DEPLOYMENT_TARGET} in
17307 10.[012])
17308 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17310 10.*)
17311 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17313 esac
17316 esac
17317 archive_cmds_need_lc_GCJ=no
17318 hardcode_direct_GCJ=no
17319 hardcode_automatic_GCJ=yes
17320 hardcode_shlibpath_var_GCJ=unsupported
17321 whole_archive_flag_spec_GCJ=''
17322 link_all_deplibs_GCJ=yes
17323 if test "$GCC" = yes ; then
17324 output_verbose_link_cmd='echo'
17325 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17326 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17328 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17329 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17330 else
17331 case $cc_basename in
17332 xlc*)
17333 output_verbose_link_cmd='echo'
17334 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17335 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17336 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17337 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17338 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17341 ld_shlibs_GCJ=no
17343 esac
17347 dgux*)
17348 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17349 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350 hardcode_shlibpath_var_GCJ=no
17353 freebsd1*)
17354 ld_shlibs_GCJ=no
17357 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17358 # support. Future versions do this automatically, but an explicit c++rt0.o
17359 # does not break anything, and helps significantly (at the cost of a little
17360 # extra space).
17361 freebsd2.2*)
17362 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17363 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17364 hardcode_direct_GCJ=yes
17365 hardcode_shlibpath_var_GCJ=no
17368 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17369 freebsd2*)
17370 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17371 hardcode_direct_GCJ=yes
17372 hardcode_minus_L_GCJ=yes
17373 hardcode_shlibpath_var_GCJ=no
17376 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17377 freebsd* | dragonfly*)
17378 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17379 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17380 hardcode_direct_GCJ=yes
17381 hardcode_shlibpath_var_GCJ=no
17384 hpux9*)
17385 if test "$GCC" = yes; then
17386 archive_cmds_GCJ='$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'
17387 else
17388 archive_cmds_GCJ='$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'
17390 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17391 hardcode_libdir_separator_GCJ=:
17392 hardcode_direct_GCJ=yes
17394 # hardcode_minus_L: Not really in the search PATH,
17395 # but as the default location of the library.
17396 hardcode_minus_L_GCJ=yes
17397 export_dynamic_flag_spec_GCJ='${wl}-E'
17400 hpux10*)
17401 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17402 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17403 else
17404 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17406 if test "$with_gnu_ld" = no; then
17407 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17408 hardcode_libdir_separator_GCJ=:
17410 hardcode_direct_GCJ=yes
17411 export_dynamic_flag_spec_GCJ='${wl}-E'
17413 # hardcode_minus_L: Not really in the search PATH,
17414 # but as the default location of the library.
17415 hardcode_minus_L_GCJ=yes
17419 hpux11*)
17420 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17421 case $host_cpu in
17422 hppa*64*)
17423 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17425 ia64*)
17426 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17429 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17431 esac
17432 else
17433 case $host_cpu in
17434 hppa*64*)
17435 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17437 ia64*)
17438 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17441 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17443 esac
17445 if test "$with_gnu_ld" = no; then
17446 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17447 hardcode_libdir_separator_GCJ=:
17449 case $host_cpu in
17450 hppa*64*|ia64*)
17451 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17452 hardcode_direct_GCJ=no
17453 hardcode_shlibpath_var_GCJ=no
17456 hardcode_direct_GCJ=yes
17457 export_dynamic_flag_spec_GCJ='${wl}-E'
17459 # hardcode_minus_L: Not really in the search PATH,
17460 # but as the default location of the library.
17461 hardcode_minus_L_GCJ=yes
17463 esac
17467 irix5* | irix6* | nonstopux*)
17468 if test "$GCC" = yes; then
17469 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17470 else
17471 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17472 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17474 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17475 hardcode_libdir_separator_GCJ=:
17476 link_all_deplibs_GCJ=yes
17479 netbsd*)
17480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17481 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17482 else
17483 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17485 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17486 hardcode_direct_GCJ=yes
17487 hardcode_shlibpath_var_GCJ=no
17490 newsos6)
17491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17492 hardcode_direct_GCJ=yes
17493 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17494 hardcode_libdir_separator_GCJ=:
17495 hardcode_shlibpath_var_GCJ=no
17498 openbsd*)
17499 if test -f /usr/libexec/ld.so; then
17500 hardcode_direct_GCJ=yes
17501 hardcode_shlibpath_var_GCJ=no
17502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17503 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17505 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17506 export_dynamic_flag_spec_GCJ='${wl}-E'
17507 else
17508 case $host_os in
17509 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17510 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17511 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17514 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17515 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17517 esac
17519 else
17520 ld_shlibs_GCJ=no
17524 os2*)
17525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17526 hardcode_minus_L_GCJ=yes
17527 allow_undefined_flag_GCJ=unsupported
17528 archive_cmds_GCJ='$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'
17529 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17532 osf3*)
17533 if test "$GCC" = yes; then
17534 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17535 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17536 else
17537 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17538 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17541 hardcode_libdir_separator_GCJ=:
17544 osf4* | osf5*) # as osf3* with the addition of -msym flag
17545 if test "$GCC" = yes; then
17546 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17547 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17548 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17549 else
17550 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17551 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17552 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17553 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17555 # Both c and cxx compiler support -rpath directly
17556 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17558 hardcode_libdir_separator_GCJ=:
17561 solaris*)
17562 no_undefined_flag_GCJ=' -z text'
17563 if test "$GCC" = yes; then
17564 wlarc='${wl}'
17565 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17566 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17567 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17568 else
17569 wlarc=''
17570 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17571 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17572 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17574 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17575 hardcode_shlibpath_var_GCJ=no
17576 case $host_os in
17577 solaris2.[0-5] | solaris2.[0-5].*) ;;
17579 # The compiler driver will combine and reorder linker options,
17580 # but understands `-z linker_flag'. GCC discards it without `$wl',
17581 # but is careful enough not to reorder.
17582 # Supported since Solaris 2.6 (maybe 2.5.1?)
17583 if test "$GCC" = yes; then
17584 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17585 else
17586 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17589 esac
17590 link_all_deplibs_GCJ=yes
17593 sunos4*)
17594 if test "x$host_vendor" = xsequent; then
17595 # Use $CC to link under sequent, because it throws in some extra .o
17596 # files that make .init and .fini sections work.
17597 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17598 else
17599 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17602 hardcode_direct_GCJ=yes
17603 hardcode_minus_L_GCJ=yes
17604 hardcode_shlibpath_var_GCJ=no
17607 sysv4)
17608 case $host_vendor in
17609 sni)
17610 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17611 hardcode_direct_GCJ=yes # is this really true???
17613 siemens)
17614 ## LD is ld it makes a PLAMLIB
17615 ## CC just makes a GrossModule.
17616 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17617 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17618 hardcode_direct_GCJ=no
17620 motorola)
17621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17622 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17624 esac
17625 runpath_var='LD_RUN_PATH'
17626 hardcode_shlibpath_var_GCJ=no
17629 sysv4.3*)
17630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17631 hardcode_shlibpath_var_GCJ=no
17632 export_dynamic_flag_spec_GCJ='-Bexport'
17635 sysv4*MP*)
17636 if test -d /usr/nec; then
17637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17638 hardcode_shlibpath_var_GCJ=no
17639 runpath_var=LD_RUN_PATH
17640 hardcode_runpath_var=yes
17641 ld_shlibs_GCJ=yes
17645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17646 no_undefined_flag_GCJ='${wl}-z,text'
17647 archive_cmds_need_lc_GCJ=no
17648 hardcode_shlibpath_var_GCJ=no
17649 runpath_var='LD_RUN_PATH'
17651 if test "$GCC" = yes; then
17652 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17653 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17654 else
17655 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17656 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17660 sysv5* | sco3.2v5* | sco5v6*)
17661 # Note: We can NOT use -z defs as we might desire, because we do not
17662 # link with -lc, and that would cause any symbols used from libc to
17663 # always be unresolved, which means just about no library would
17664 # ever link correctly. If we're not using GNU ld we use -z text
17665 # though, which does catch some bad symbols but isn't as heavy-handed
17666 # as -z defs.
17667 no_undefined_flag_GCJ='${wl}-z,text'
17668 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17669 archive_cmds_need_lc_GCJ=no
17670 hardcode_shlibpath_var_GCJ=no
17671 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17672 hardcode_libdir_separator_GCJ=':'
17673 link_all_deplibs_GCJ=yes
17674 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17675 runpath_var='LD_RUN_PATH'
17677 if test "$GCC" = yes; then
17678 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17679 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17680 else
17681 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17682 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17686 uts4*)
17687 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17688 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17689 hardcode_shlibpath_var_GCJ=no
17693 ld_shlibs_GCJ=no
17695 esac
17698 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17699 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17700 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17703 # Do we need to explicitly link libc?
17705 case "x$archive_cmds_need_lc_GCJ" in
17706 x|xyes)
17707 # Assume -lc should be added
17708 archive_cmds_need_lc_GCJ=yes
17710 if test "$enable_shared" = yes && test "$GCC" = yes; then
17711 case $archive_cmds_GCJ in
17712 *'~'*)
17713 # FIXME: we may have to deal with multi-command sequences.
17715 '$CC '*)
17716 # Test whether the compiler implicitly links with -lc since on some
17717 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17718 # to ld, don't add -lc before -lgcc.
17719 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17720 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17721 $rm conftest*
17722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17725 (eval $ac_compile) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } 2>conftest.err; then
17729 soname=conftest
17730 lib=conftest
17731 libobjs=conftest.$ac_objext
17732 deplibs=
17733 wl=$lt_prog_compiler_wl_GCJ
17734 pic_flag=$lt_prog_compiler_pic_GCJ
17735 compiler_flags=-v
17736 linker_flags=-v
17737 verstring=
17738 output_objdir=.
17739 libname=conftest
17740 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17741 allow_undefined_flag_GCJ=
17742 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17743 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }
17747 then
17748 archive_cmds_need_lc_GCJ=no
17749 else
17750 archive_cmds_need_lc_GCJ=yes
17752 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17753 else
17754 cat conftest.err 1>&5
17756 $rm conftest*
17757 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17758 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17760 esac
17763 esac
17765 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17766 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17767 library_names_spec=
17768 libname_spec='lib$name'
17769 soname_spec=
17770 shrext_cmds=".so"
17771 postinstall_cmds=
17772 postuninstall_cmds=
17773 finish_cmds=
17774 finish_eval=
17775 shlibpath_var=
17776 shlibpath_overrides_runpath=unknown
17777 version_type=none
17778 dynamic_linker="$host_os ld.so"
17779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17781 need_lib_prefix=unknown
17782 hardcode_into_libs=no
17784 # when you set need_version to no, make sure it does not cause -set_version
17785 # flags to be left without arguments
17786 need_version=unknown
17788 case $host_os in
17789 aix3*)
17790 version_type=linux
17791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17792 shlibpath_var=LIBPATH
17794 # AIX 3 has no versioning support, so we append a major version to the name.
17795 soname_spec='${libname}${release}${shared_ext}$major'
17798 aix4* | aix5*)
17799 version_type=linux
17800 need_lib_prefix=no
17801 need_version=no
17802 hardcode_into_libs=yes
17803 if test "$host_cpu" = ia64; then
17804 # AIX 5 supports IA64
17805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17806 shlibpath_var=LD_LIBRARY_PATH
17807 else
17808 # With GCC up to 2.95.x, collect2 would create an import file
17809 # for dependence libraries. The import file would start with
17810 # the line `#! .'. This would cause the generated library to
17811 # depend on `.', always an invalid library. This was fixed in
17812 # development snapshots of GCC prior to 3.0.
17813 case $host_os in
17814 aix4 | aix4.[01] | aix4.[01].*)
17815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17816 echo ' yes '
17817 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17819 else
17820 can_build_shared=no
17823 esac
17824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17825 # soname into executable. Probably we can add versioning support to
17826 # collect2, so additional links can be useful in future.
17827 if test "$aix_use_runtimelinking" = yes; then
17828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17829 # instead of lib<name>.a to let people know that these are not
17830 # typical AIX shared libraries.
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 else
17833 # We preserve .a as extension for shared libraries through AIX4.2
17834 # and later when we are not doing run time linking.
17835 library_names_spec='${libname}${release}.a $libname.a'
17836 soname_spec='${libname}${release}${shared_ext}$major'
17838 shlibpath_var=LIBPATH
17842 amigaos*)
17843 library_names_spec='$libname.ixlibrary $libname.a'
17844 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17845 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'
17848 beos*)
17849 library_names_spec='${libname}${shared_ext}'
17850 dynamic_linker="$host_os ld.so"
17851 shlibpath_var=LIBRARY_PATH
17854 bsdi[45]*)
17855 version_type=linux
17856 need_version=no
17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17858 soname_spec='${libname}${release}${shared_ext}$major'
17859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17860 shlibpath_var=LD_LIBRARY_PATH
17861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17863 # the default ld.so.conf also contains /usr/contrib/lib and
17864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17865 # libtool to hard-code these into programs
17868 cygwin* | mingw* | pw32*)
17869 version_type=windows
17870 shrext_cmds=".dll"
17871 need_version=no
17872 need_lib_prefix=no
17874 case $GCC,$host_os in
17875 yes,cygwin* | yes,mingw* | yes,pw32*)
17876 library_names_spec='$libname.dll.a'
17877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17878 postinstall_cmds='base_file=`basename \${file}`~
17879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17880 dldir=$destdir/`dirname \$dlpath`~
17881 test -d \$dldir || mkdir -p \$dldir~
17882 $install_prog $dir/$dlname \$dldir/$dlname~
17883 chmod a+x \$dldir/$dlname'
17884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17885 dlpath=$dir/\$dldll~
17886 $rm \$dlpath'
17887 shlibpath_overrides_runpath=yes
17889 case $host_os in
17890 cygwin*)
17891 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17892 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17893 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17895 mingw*)
17896 # MinGW DLLs use traditional 'lib' prefix
17897 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17899 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17900 # It is most probably a Windows format PATH printed by
17901 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17902 # path with ; separators, and with drive letters. We can handle the
17903 # drive letters (cygwin fileutils understands them), so leave them,
17904 # especially as we might pass files found there to a mingw objdump,
17905 # which wouldn't understand a cygwinified path. Ahh.
17906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17907 else
17908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17911 pw32*)
17912 # pw32 DLLs use 'pw' prefix rather than 'lib'
17913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17915 esac
17919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17921 esac
17922 dynamic_linker='Win32 ld.exe'
17923 # FIXME: first we should search . and the directory the executable is in
17924 shlibpath_var=PATH
17927 darwin* | rhapsody*)
17928 dynamic_linker="$host_os dyld"
17929 version_type=darwin
17930 need_lib_prefix=no
17931 need_version=no
17932 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17933 soname_spec='${libname}${release}${major}$shared_ext'
17934 shlibpath_overrides_runpath=yes
17935 shlibpath_var=DYLD_LIBRARY_PATH
17936 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17938 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17941 dgux*)
17942 version_type=linux
17943 need_lib_prefix=no
17944 need_version=no
17945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17946 soname_spec='${libname}${release}${shared_ext}$major'
17947 shlibpath_var=LD_LIBRARY_PATH
17950 freebsd1*)
17951 dynamic_linker=no
17954 freebsd* | dragonfly*)
17955 # DragonFly does not have aout. When/if they implement a new
17956 # versioning mechanism, adjust this.
17957 if test -x /usr/bin/objformat; then
17958 objformat=`/usr/bin/objformat`
17959 else
17960 case $host_os in
17961 freebsd[123]*) objformat=aout ;;
17962 *) objformat=elf ;;
17963 esac
17965 version_type=freebsd-$objformat
17966 case $version_type in
17967 freebsd-elf*)
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17969 need_version=no
17970 need_lib_prefix=no
17972 freebsd-*)
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17974 need_version=yes
17976 esac
17977 shlibpath_var=LD_LIBRARY_PATH
17978 case $host_os in
17979 freebsd2*)
17980 shlibpath_overrides_runpath=yes
17982 freebsd3.[01]* | freebsdelf3.[01]*)
17983 shlibpath_overrides_runpath=yes
17984 hardcode_into_libs=yes
17986 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17987 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17988 shlibpath_overrides_runpath=no
17989 hardcode_into_libs=yes
17991 *) # from 4.6 on, and DragonFly
17992 shlibpath_overrides_runpath=yes
17993 hardcode_into_libs=yes
17995 esac
17998 gnu*)
17999 version_type=linux
18000 need_lib_prefix=no
18001 need_version=no
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 shlibpath_var=LD_LIBRARY_PATH
18005 hardcode_into_libs=yes
18008 hpux9* | hpux10* | hpux11*)
18009 # Give a soname corresponding to the major version so that dld.sl refuses to
18010 # link against other versions.
18011 version_type=sunos
18012 need_lib_prefix=no
18013 need_version=no
18014 case $host_cpu in
18015 ia64*)
18016 shrext_cmds='.so'
18017 hardcode_into_libs=yes
18018 dynamic_linker="$host_os dld.so"
18019 shlibpath_var=LD_LIBRARY_PATH
18020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 soname_spec='${libname}${release}${shared_ext}$major'
18023 if test "X$HPUX_IA64_MODE" = X32; then
18024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18025 else
18026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18030 hppa*64*)
18031 shrext_cmds='.sl'
18032 hardcode_into_libs=yes
18033 dynamic_linker="$host_os dld.sl"
18034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18042 shrext_cmds='.sl'
18043 dynamic_linker="$host_os dld.sl"
18044 shlibpath_var=SHLIB_PATH
18045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18047 soname_spec='${libname}${release}${shared_ext}$major'
18049 esac
18050 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18051 postinstall_cmds='chmod 555 $lib'
18054 interix[3-9]*)
18055 version_type=linux
18056 need_lib_prefix=no
18057 need_version=no
18058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18059 soname_spec='${libname}${release}${shared_ext}$major'
18060 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18061 shlibpath_var=LD_LIBRARY_PATH
18062 shlibpath_overrides_runpath=no
18063 hardcode_into_libs=yes
18066 irix5* | irix6* | nonstopux*)
18067 case $host_os in
18068 nonstopux*) version_type=nonstopux ;;
18070 if test "$lt_cv_prog_gnu_ld" = yes; then
18071 version_type=linux
18072 else
18073 version_type=irix
18074 fi ;;
18075 esac
18076 need_lib_prefix=no
18077 need_version=no
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18080 case $host_os in
18081 irix5* | nonstopux*)
18082 libsuff= shlibsuff=
18085 case $LD in # libtool.m4 will add one of these switches to LD
18086 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18087 libsuff= shlibsuff= libmagic=32-bit;;
18088 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18089 libsuff=32 shlibsuff=N32 libmagic=N32;;
18090 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18091 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18092 *) libsuff= shlibsuff= libmagic=never-match;;
18093 esac
18095 esac
18096 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18097 shlibpath_overrides_runpath=no
18098 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18099 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18100 hardcode_into_libs=yes
18103 # No shared lib support for Linux oldld, aout, or coff.
18104 linux*oldld* | linux*aout* | linux*coff*)
18105 dynamic_linker=no
18108 # This must be Linux ELF.
18109 linux* | k*bsd*-gnu)
18110 version_type=linux
18111 need_lib_prefix=no
18112 need_version=no
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18114 soname_spec='${libname}${release}${shared_ext}$major'
18115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18116 shlibpath_var=LD_LIBRARY_PATH
18117 shlibpath_overrides_runpath=no
18118 # This implies no fast_install, which is unacceptable.
18119 # Some rework will be needed to allow for fast_install
18120 # before this can be enabled.
18121 hardcode_into_libs=yes
18123 # Append ld.so.conf contents to the search path
18124 if test -f /etc/ld.so.conf; then
18125 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' ' '`
18126 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18129 # We used to test for /lib/ld.so.1 and disable shared libraries on
18130 # powerpc, because MkLinux only supported shared libraries with the
18131 # GNU dynamic linker. Since this was broken with cross compilers,
18132 # most powerpc-linux boxes support dynamic linking these days and
18133 # people can always --disable-shared, the test was removed, and we
18134 # assume the GNU/Linux dynamic linker is in use.
18135 dynamic_linker='GNU/Linux ld.so'
18138 netbsd*)
18139 version_type=sunos
18140 need_lib_prefix=no
18141 need_version=no
18142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18145 dynamic_linker='NetBSD (a.out) ld.so'
18146 else
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 dynamic_linker='NetBSD ld.elf_so'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=yes
18153 hardcode_into_libs=yes
18156 newsos6)
18157 version_type=linux
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159 shlibpath_var=LD_LIBRARY_PATH
18160 shlibpath_overrides_runpath=yes
18163 nto-qnx*)
18164 version_type=linux
18165 need_lib_prefix=no
18166 need_version=no
18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18168 soname_spec='${libname}${release}${shared_ext}$major'
18169 shlibpath_var=LD_LIBRARY_PATH
18170 shlibpath_overrides_runpath=yes
18173 openbsd*)
18174 version_type=sunos
18175 sys_lib_dlsearch_path_spec="/usr/lib"
18176 need_lib_prefix=no
18177 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18178 case $host_os in
18179 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18180 *) need_version=no ;;
18181 esac
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18184 shlibpath_var=LD_LIBRARY_PATH
18185 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18186 case $host_os in
18187 openbsd2.[89] | openbsd2.[89].*)
18188 shlibpath_overrides_runpath=no
18191 shlibpath_overrides_runpath=yes
18193 esac
18194 else
18195 shlibpath_overrides_runpath=yes
18199 os2*)
18200 libname_spec='$name'
18201 shrext_cmds=".dll"
18202 need_lib_prefix=no
18203 library_names_spec='$libname${shared_ext} $libname.a'
18204 dynamic_linker='OS/2 ld.exe'
18205 shlibpath_var=LIBPATH
18208 osf3* | osf4* | osf5*)
18209 version_type=osf
18210 need_lib_prefix=no
18211 need_version=no
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18216 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18219 rdos*)
18220 dynamic_linker=no
18223 solaris*)
18224 version_type=linux
18225 need_lib_prefix=no
18226 need_version=no
18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18228 soname_spec='${libname}${release}${shared_ext}$major'
18229 shlibpath_var=LD_LIBRARY_PATH
18230 shlibpath_overrides_runpath=yes
18231 hardcode_into_libs=yes
18232 # ldd complains unless libraries are executable
18233 postinstall_cmds='chmod +x $lib'
18236 sunos4*)
18237 version_type=sunos
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18239 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18240 shlibpath_var=LD_LIBRARY_PATH
18241 shlibpath_overrides_runpath=yes
18242 if test "$with_gnu_ld" = yes; then
18243 need_lib_prefix=no
18245 need_version=yes
18248 sysv4 | sysv4.3*)
18249 version_type=linux
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251 soname_spec='${libname}${release}${shared_ext}$major'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 case $host_vendor in
18254 sni)
18255 shlibpath_overrides_runpath=no
18256 need_lib_prefix=no
18257 export_dynamic_flag_spec='${wl}-Blargedynsym'
18258 runpath_var=LD_RUN_PATH
18260 siemens)
18261 need_lib_prefix=no
18263 motorola)
18264 need_lib_prefix=no
18265 need_version=no
18266 shlibpath_overrides_runpath=no
18267 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18269 esac
18272 sysv4*MP*)
18273 if test -d /usr/nec ;then
18274 version_type=linux
18275 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18276 soname_spec='$libname${shared_ext}.$major'
18277 shlibpath_var=LD_LIBRARY_PATH
18281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18282 version_type=freebsd-elf
18283 need_lib_prefix=no
18284 need_version=no
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 shlibpath_var=LD_LIBRARY_PATH
18288 hardcode_into_libs=yes
18289 if test "$with_gnu_ld" = yes; then
18290 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18291 shlibpath_overrides_runpath=no
18292 else
18293 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18294 shlibpath_overrides_runpath=yes
18295 case $host_os in
18296 sco3.2v5*)
18297 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18299 esac
18301 sys_lib_dlsearch_path_spec='/usr/lib'
18304 uts4*)
18305 version_type=linux
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307 soname_spec='${libname}${release}${shared_ext}$major'
18308 shlibpath_var=LD_LIBRARY_PATH
18312 dynamic_linker=no
18314 esac
18315 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18316 echo "${ECHO_T}$dynamic_linker" >&6; }
18317 test "$dynamic_linker" = no && can_build_shared=no
18319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18320 if test "$GCC" = yes; then
18321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18324 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18325 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18326 hardcode_action_GCJ=
18327 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18328 test -n "$runpath_var_GCJ" || \
18329 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18331 # We can hardcode non-existant directories.
18332 if test "$hardcode_direct_GCJ" != no &&
18333 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18334 # have to relink, otherwise we might link with an installed library
18335 # when we should be linking with a yet-to-be-installed one
18336 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18337 test "$hardcode_minus_L_GCJ" != no; then
18338 # Linking always hardcodes the temporary library directory.
18339 hardcode_action_GCJ=relink
18340 else
18341 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18342 hardcode_action_GCJ=immediate
18344 else
18345 # We cannot hardcode anything, or else we can only hardcode existing
18346 # directories.
18347 hardcode_action_GCJ=unsupported
18349 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18350 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18352 if test "$hardcode_action_GCJ" = relink; then
18353 # Fast installation is not supported
18354 enable_fast_install=no
18355 elif test "$shlibpath_overrides_runpath" = yes ||
18356 test "$enable_shared" = no; then
18357 # Fast installation is not necessary
18358 enable_fast_install=needless
18362 # The else clause should only fire when bootstrapping the
18363 # libtool distribution, otherwise you forgot to ship ltmain.sh
18364 # with your package, and you will get complaints that there are
18365 # no rules to generate ltmain.sh.
18366 if test -f "$ltmain"; then
18367 # See if we are running on zsh, and set the options which allow our commands through
18368 # without removal of \ escapes.
18369 if test -n "${ZSH_VERSION+set}" ; then
18370 setopt NO_GLOB_SUBST
18372 # Now quote all the things that may contain metacharacters while being
18373 # careful not to overquote the AC_SUBSTed values. We take copies of the
18374 # variables and quote the copies for generation of the libtool script.
18375 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18376 SED SHELL STRIP \
18377 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18378 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18379 deplibs_check_method reload_flag reload_cmds need_locks \
18380 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18381 lt_cv_sys_global_symbol_to_c_name_address \
18382 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18383 old_postinstall_cmds old_postuninstall_cmds \
18384 compiler_GCJ \
18385 CC_GCJ \
18386 LD_GCJ \
18387 lt_prog_compiler_wl_GCJ \
18388 lt_prog_compiler_pic_GCJ \
18389 lt_prog_compiler_static_GCJ \
18390 lt_prog_compiler_no_builtin_flag_GCJ \
18391 export_dynamic_flag_spec_GCJ \
18392 thread_safe_flag_spec_GCJ \
18393 whole_archive_flag_spec_GCJ \
18394 enable_shared_with_static_runtimes_GCJ \
18395 old_archive_cmds_GCJ \
18396 old_archive_from_new_cmds_GCJ \
18397 predep_objects_GCJ \
18398 postdep_objects_GCJ \
18399 predeps_GCJ \
18400 postdeps_GCJ \
18401 compiler_lib_search_path_GCJ \
18402 archive_cmds_GCJ \
18403 archive_expsym_cmds_GCJ \
18404 postinstall_cmds_GCJ \
18405 postuninstall_cmds_GCJ \
18406 old_archive_from_expsyms_cmds_GCJ \
18407 allow_undefined_flag_GCJ \
18408 no_undefined_flag_GCJ \
18409 export_symbols_cmds_GCJ \
18410 hardcode_libdir_flag_spec_GCJ \
18411 hardcode_libdir_flag_spec_ld_GCJ \
18412 hardcode_libdir_separator_GCJ \
18413 hardcode_automatic_GCJ \
18414 module_cmds_GCJ \
18415 module_expsym_cmds_GCJ \
18416 lt_cv_prog_compiler_c_o_GCJ \
18417 fix_srcfile_path_GCJ \
18418 exclude_expsyms_GCJ \
18419 include_expsyms_GCJ; do
18421 case $var in
18422 old_archive_cmds_GCJ | \
18423 old_archive_from_new_cmds_GCJ | \
18424 archive_cmds_GCJ | \
18425 archive_expsym_cmds_GCJ | \
18426 module_cmds_GCJ | \
18427 module_expsym_cmds_GCJ | \
18428 old_archive_from_expsyms_cmds_GCJ | \
18429 export_symbols_cmds_GCJ | \
18430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18431 postinstall_cmds | postuninstall_cmds | \
18432 old_postinstall_cmds | old_postuninstall_cmds | \
18433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18434 # Double-quote double-evaled strings.
18435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18440 esac
18441 done
18443 case $lt_echo in
18444 *'\$0 --fallback-echo"')
18445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18447 esac
18449 cfgfile="$ofile"
18451 cat <<__EOF__ >> "$cfgfile"
18452 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18456 # Shell to use when invoking shell scripts.
18457 SHELL=$lt_SHELL
18459 # Whether or not to build shared libraries.
18460 build_libtool_libs=$enable_shared
18462 # Whether or not to build static libraries.
18463 build_old_libs=$enable_static
18465 # Whether or not to add -lc for building shared libraries.
18466 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18468 # Whether or not to disallow shared libs when runtime libs are static
18469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18471 # Whether or not to optimize for fast installation.
18472 fast_install=$enable_fast_install
18474 # The host system.
18475 host_alias=$host_alias
18476 host=$host
18477 host_os=$host_os
18479 # The build system.
18480 build_alias=$build_alias
18481 build=$build
18482 build_os=$build_os
18484 # An echo program that does not interpret backslashes.
18485 echo=$lt_echo
18487 # The archiver.
18488 AR=$lt_AR
18489 AR_FLAGS=$lt_AR_FLAGS
18491 # A C compiler.
18492 LTCC=$lt_LTCC
18494 # LTCC compiler flags.
18495 LTCFLAGS=$lt_LTCFLAGS
18497 # A language-specific compiler.
18498 CC=$lt_compiler_GCJ
18500 # Is the compiler the GNU C compiler?
18501 with_gcc=$GCC_GCJ
18503 # An ERE matcher.
18504 EGREP=$lt_EGREP
18506 # The linker used to build libraries.
18507 LD=$lt_LD_GCJ
18509 # Whether we need hard or soft links.
18510 LN_S=$lt_LN_S
18512 # A BSD-compatible nm program.
18513 NM=$lt_NM
18515 # A symbol stripping program
18516 STRIP=$lt_STRIP
18518 # Used to examine libraries when file_magic_cmd begins "file"
18519 MAGIC_CMD=$MAGIC_CMD
18521 # Used on cygwin: DLL creation program.
18522 DLLTOOL="$DLLTOOL"
18524 # Used on cygwin: object dumper.
18525 OBJDUMP="$OBJDUMP"
18527 # Used on cygwin: assembler.
18528 AS="$AS"
18530 # The name of the directory that contains temporary libtool files.
18531 objdir=$objdir
18533 # How to create reloadable object files.
18534 reload_flag=$lt_reload_flag
18535 reload_cmds=$lt_reload_cmds
18537 # How to pass a linker flag through the compiler.
18538 wl=$lt_lt_prog_compiler_wl_GCJ
18540 # Object file suffix (normally "o").
18541 objext="$ac_objext"
18543 # Old archive suffix (normally "a").
18544 libext="$libext"
18546 # Shared library suffix (normally ".so").
18547 shrext_cmds='$shrext_cmds'
18549 # Executable file suffix (normally "").
18550 exeext="$exeext"
18552 # Additional compiler flags for building library objects.
18553 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18554 pic_mode=$pic_mode
18556 # What is the maximum length of a command?
18557 max_cmd_len=$lt_cv_sys_max_cmd_len
18559 # Does compiler simultaneously support -c and -o options?
18560 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18562 # Must we lock files when doing compilation?
18563 need_locks=$lt_need_locks
18565 # Do we need the lib prefix for modules?
18566 need_lib_prefix=$need_lib_prefix
18568 # Do we need a version for libraries?
18569 need_version=$need_version
18571 # Whether dlopen is supported.
18572 dlopen_support=$enable_dlopen
18574 # Whether dlopen of programs is supported.
18575 dlopen_self=$enable_dlopen_self
18577 # Whether dlopen of statically linked programs is supported.
18578 dlopen_self_static=$enable_dlopen_self_static
18580 # Compiler flag to prevent dynamic linking.
18581 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18583 # Compiler flag to turn off builtin functions.
18584 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18586 # Compiler flag to allow reflexive dlopens.
18587 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18589 # Compiler flag to generate shared objects directly from archives.
18590 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18592 # Compiler flag to generate thread-safe objects.
18593 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18595 # Library versioning type.
18596 version_type=$version_type
18598 # Format of library name prefix.
18599 libname_spec=$lt_libname_spec
18601 # List of archive names. First name is the real one, the rest are links.
18602 # The last name is the one that the linker finds with -lNAME.
18603 library_names_spec=$lt_library_names_spec
18605 # The coded name of the library, if different from the real name.
18606 soname_spec=$lt_soname_spec
18608 # Commands used to build and install an old-style archive.
18609 RANLIB=$lt_RANLIB
18610 old_archive_cmds=$lt_old_archive_cmds_GCJ
18611 old_postinstall_cmds=$lt_old_postinstall_cmds
18612 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18614 # Create an old-style archive from a shared archive.
18615 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18617 # Create a temporary old-style archive to link instead of a shared archive.
18618 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18620 # Commands used to build and install a shared archive.
18621 archive_cmds=$lt_archive_cmds_GCJ
18622 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18623 postinstall_cmds=$lt_postinstall_cmds
18624 postuninstall_cmds=$lt_postuninstall_cmds
18626 # Commands used to build a loadable module (assumed same as above if empty)
18627 module_cmds=$lt_module_cmds_GCJ
18628 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18630 # Commands to strip libraries.
18631 old_striplib=$lt_old_striplib
18632 striplib=$lt_striplib
18634 # Dependencies to place before the objects being linked to create a
18635 # shared library.
18636 predep_objects=$lt_predep_objects_GCJ
18638 # Dependencies to place after the objects being linked to create a
18639 # shared library.
18640 postdep_objects=$lt_postdep_objects_GCJ
18642 # Dependencies to place before the objects being linked to create a
18643 # shared library.
18644 predeps=$lt_predeps_GCJ
18646 # Dependencies to place after the objects being linked to create a
18647 # shared library.
18648 postdeps=$lt_postdeps_GCJ
18650 # The library search path used internally by the compiler when linking
18651 # a shared library.
18652 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18654 # Method to check whether dependent libraries are shared objects.
18655 deplibs_check_method=$lt_deplibs_check_method
18657 # Command to use when deplibs_check_method == file_magic.
18658 file_magic_cmd=$lt_file_magic_cmd
18660 # Flag that allows shared libraries with undefined symbols to be built.
18661 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18663 # Flag that forces no undefined symbols.
18664 no_undefined_flag=$lt_no_undefined_flag_GCJ
18666 # Commands used to finish a libtool library installation in a directory.
18667 finish_cmds=$lt_finish_cmds
18669 # Same as above, but a single script fragment to be evaled but not shown.
18670 finish_eval=$lt_finish_eval
18672 # Take the output of nm and produce a listing of raw symbols and C names.
18673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18675 # Transform the output of nm in a proper C declaration
18676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18678 # Transform the output of nm in a C name address pair
18679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18681 # This is the shared library runtime path variable.
18682 runpath_var=$runpath_var
18684 # This is the shared library path variable.
18685 shlibpath_var=$shlibpath_var
18687 # Is shlibpath searched before the hard-coded library search path?
18688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18690 # How to hardcode a shared library path into an executable.
18691 hardcode_action=$hardcode_action_GCJ
18693 # Whether we should hardcode library paths into libraries.
18694 hardcode_into_libs=$hardcode_into_libs
18696 # Flag to hardcode \$libdir into a binary during linking.
18697 # This must work even if \$libdir does not exist.
18698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18700 # If ld is used when linking, flag to hardcode \$libdir into
18701 # a binary during linking. This must work even if \$libdir does
18702 # not exist.
18703 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18705 # Whether we need a single -rpath flag with a separated argument.
18706 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18708 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18709 # resulting binary.
18710 hardcode_direct=$hardcode_direct_GCJ
18712 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18713 # resulting binary.
18714 hardcode_minus_L=$hardcode_minus_L_GCJ
18716 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18717 # the resulting binary.
18718 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18720 # Set to yes if building a shared library automatically hardcodes DIR into the library
18721 # and all subsequent libraries and executables linked against it.
18722 hardcode_automatic=$hardcode_automatic_GCJ
18724 # Variables whose values should be saved in libtool wrapper scripts and
18725 # restored at relink time.
18726 variables_saved_for_relink="$variables_saved_for_relink"
18728 # Whether libtool must link a program against all its dependency libraries.
18729 link_all_deplibs=$link_all_deplibs_GCJ
18731 # Compile-time system search path for libraries
18732 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18734 # Run-time system search path for libraries
18735 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18737 # Fix the shell variable \$srcfile for the compiler.
18738 fix_srcfile_path=$lt_fix_srcfile_path
18740 # Set to yes if exported symbols are required.
18741 always_export_symbols=$always_export_symbols_GCJ
18743 # The commands to list exported symbols.
18744 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18746 # The commands to extract the exported symbol list from a shared archive.
18747 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18749 # Symbols that should not be listed in the preloaded symbols.
18750 exclude_expsyms=$lt_exclude_expsyms_GCJ
18752 # Symbols that must always be exported.
18753 include_expsyms=$lt_include_expsyms_GCJ
18755 # ### END LIBTOOL TAG CONFIG: $tagname
18757 __EOF__
18760 else
18761 # If there is no Makefile yet, we rely on a make rule to execute
18762 # `config.status --recheck' to rerun these tests and create the
18763 # libtool script then.
18764 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18765 if test -f "$ltmain_in"; then
18766 test -f Makefile && make "$ltmain"
18771 ac_ext=c
18772 ac_cpp='$CPP $CPPFLAGS'
18773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18777 CC="$lt_save_CC"
18779 else
18780 tagname=""
18787 # Source file extension for RC test sources.
18788 ac_ext=rc
18790 # Object file extension for compiled RC test sources.
18791 objext=o
18792 objext_RC=$objext
18794 # Code to be used in simple compile tests
18795 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18797 # Code to be used in simple link tests
18798 lt_simple_link_test_code="$lt_simple_compile_test_code"
18800 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18802 # If no C compiler was specified, use CC.
18803 LTCC=${LTCC-"$CC"}
18805 # If no C compiler flags were specified, use CFLAGS.
18806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18808 # Allow CC to be a program name with arguments.
18809 compiler=$CC
18812 # save warnings/boilerplate of simple test code
18813 ac_outfile=conftest.$ac_objext
18814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18816 _lt_compiler_boilerplate=`cat conftest.err`
18817 $rm conftest*
18819 ac_outfile=conftest.$ac_objext
18820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18822 _lt_linker_boilerplate=`cat conftest.err`
18823 $rm conftest*
18826 # Allow CC to be a program name with arguments.
18827 lt_save_CC="$CC"
18828 CC=${RC-"windres"}
18829 compiler=$CC
18830 compiler_RC=$CC
18831 for cc_temp in $compiler""; do
18832 case $cc_temp in
18833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18835 \-*) ;;
18836 *) break;;
18837 esac
18838 done
18839 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18841 lt_cv_prog_compiler_c_o_RC=yes
18843 # The else clause should only fire when bootstrapping the
18844 # libtool distribution, otherwise you forgot to ship ltmain.sh
18845 # with your package, and you will get complaints that there are
18846 # no rules to generate ltmain.sh.
18847 if test -f "$ltmain"; then
18848 # See if we are running on zsh, and set the options which allow our commands through
18849 # without removal of \ escapes.
18850 if test -n "${ZSH_VERSION+set}" ; then
18851 setopt NO_GLOB_SUBST
18853 # Now quote all the things that may contain metacharacters while being
18854 # careful not to overquote the AC_SUBSTed values. We take copies of the
18855 # variables and quote the copies for generation of the libtool script.
18856 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18857 SED SHELL STRIP \
18858 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18859 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18860 deplibs_check_method reload_flag reload_cmds need_locks \
18861 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18862 lt_cv_sys_global_symbol_to_c_name_address \
18863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18864 old_postinstall_cmds old_postuninstall_cmds \
18865 compiler_RC \
18866 CC_RC \
18867 LD_RC \
18868 lt_prog_compiler_wl_RC \
18869 lt_prog_compiler_pic_RC \
18870 lt_prog_compiler_static_RC \
18871 lt_prog_compiler_no_builtin_flag_RC \
18872 export_dynamic_flag_spec_RC \
18873 thread_safe_flag_spec_RC \
18874 whole_archive_flag_spec_RC \
18875 enable_shared_with_static_runtimes_RC \
18876 old_archive_cmds_RC \
18877 old_archive_from_new_cmds_RC \
18878 predep_objects_RC \
18879 postdep_objects_RC \
18880 predeps_RC \
18881 postdeps_RC \
18882 compiler_lib_search_path_RC \
18883 archive_cmds_RC \
18884 archive_expsym_cmds_RC \
18885 postinstall_cmds_RC \
18886 postuninstall_cmds_RC \
18887 old_archive_from_expsyms_cmds_RC \
18888 allow_undefined_flag_RC \
18889 no_undefined_flag_RC \
18890 export_symbols_cmds_RC \
18891 hardcode_libdir_flag_spec_RC \
18892 hardcode_libdir_flag_spec_ld_RC \
18893 hardcode_libdir_separator_RC \
18894 hardcode_automatic_RC \
18895 module_cmds_RC \
18896 module_expsym_cmds_RC \
18897 lt_cv_prog_compiler_c_o_RC \
18898 fix_srcfile_path_RC \
18899 exclude_expsyms_RC \
18900 include_expsyms_RC; do
18902 case $var in
18903 old_archive_cmds_RC | \
18904 old_archive_from_new_cmds_RC | \
18905 archive_cmds_RC | \
18906 archive_expsym_cmds_RC | \
18907 module_cmds_RC | \
18908 module_expsym_cmds_RC | \
18909 old_archive_from_expsyms_cmds_RC | \
18910 export_symbols_cmds_RC | \
18911 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18912 postinstall_cmds | postuninstall_cmds | \
18913 old_postinstall_cmds | old_postuninstall_cmds | \
18914 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18915 # Double-quote double-evaled strings.
18916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18921 esac
18922 done
18924 case $lt_echo in
18925 *'\$0 --fallback-echo"')
18926 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18928 esac
18930 cfgfile="$ofile"
18932 cat <<__EOF__ >> "$cfgfile"
18933 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18935 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18937 # Shell to use when invoking shell scripts.
18938 SHELL=$lt_SHELL
18940 # Whether or not to build shared libraries.
18941 build_libtool_libs=$enable_shared
18943 # Whether or not to build static libraries.
18944 build_old_libs=$enable_static
18946 # Whether or not to add -lc for building shared libraries.
18947 build_libtool_need_lc=$archive_cmds_need_lc_RC
18949 # Whether or not to disallow shared libs when runtime libs are static
18950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18952 # Whether or not to optimize for fast installation.
18953 fast_install=$enable_fast_install
18955 # The host system.
18956 host_alias=$host_alias
18957 host=$host
18958 host_os=$host_os
18960 # The build system.
18961 build_alias=$build_alias
18962 build=$build
18963 build_os=$build_os
18965 # An echo program that does not interpret backslashes.
18966 echo=$lt_echo
18968 # The archiver.
18969 AR=$lt_AR
18970 AR_FLAGS=$lt_AR_FLAGS
18972 # A C compiler.
18973 LTCC=$lt_LTCC
18975 # LTCC compiler flags.
18976 LTCFLAGS=$lt_LTCFLAGS
18978 # A language-specific compiler.
18979 CC=$lt_compiler_RC
18981 # Is the compiler the GNU C compiler?
18982 with_gcc=$GCC_RC
18984 # An ERE matcher.
18985 EGREP=$lt_EGREP
18987 # The linker used to build libraries.
18988 LD=$lt_LD_RC
18990 # Whether we need hard or soft links.
18991 LN_S=$lt_LN_S
18993 # A BSD-compatible nm program.
18994 NM=$lt_NM
18996 # A symbol stripping program
18997 STRIP=$lt_STRIP
18999 # Used to examine libraries when file_magic_cmd begins "file"
19000 MAGIC_CMD=$MAGIC_CMD
19002 # Used on cygwin: DLL creation program.
19003 DLLTOOL="$DLLTOOL"
19005 # Used on cygwin: object dumper.
19006 OBJDUMP="$OBJDUMP"
19008 # Used on cygwin: assembler.
19009 AS="$AS"
19011 # The name of the directory that contains temporary libtool files.
19012 objdir=$objdir
19014 # How to create reloadable object files.
19015 reload_flag=$lt_reload_flag
19016 reload_cmds=$lt_reload_cmds
19018 # How to pass a linker flag through the compiler.
19019 wl=$lt_lt_prog_compiler_wl_RC
19021 # Object file suffix (normally "o").
19022 objext="$ac_objext"
19024 # Old archive suffix (normally "a").
19025 libext="$libext"
19027 # Shared library suffix (normally ".so").
19028 shrext_cmds='$shrext_cmds'
19030 # Executable file suffix (normally "").
19031 exeext="$exeext"
19033 # Additional compiler flags for building library objects.
19034 pic_flag=$lt_lt_prog_compiler_pic_RC
19035 pic_mode=$pic_mode
19037 # What is the maximum length of a command?
19038 max_cmd_len=$lt_cv_sys_max_cmd_len
19040 # Does compiler simultaneously support -c and -o options?
19041 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19043 # Must we lock files when doing compilation?
19044 need_locks=$lt_need_locks
19046 # Do we need the lib prefix for modules?
19047 need_lib_prefix=$need_lib_prefix
19049 # Do we need a version for libraries?
19050 need_version=$need_version
19052 # Whether dlopen is supported.
19053 dlopen_support=$enable_dlopen
19055 # Whether dlopen of programs is supported.
19056 dlopen_self=$enable_dlopen_self
19058 # Whether dlopen of statically linked programs is supported.
19059 dlopen_self_static=$enable_dlopen_self_static
19061 # Compiler flag to prevent dynamic linking.
19062 link_static_flag=$lt_lt_prog_compiler_static_RC
19064 # Compiler flag to turn off builtin functions.
19065 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19067 # Compiler flag to allow reflexive dlopens.
19068 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19070 # Compiler flag to generate shared objects directly from archives.
19071 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19073 # Compiler flag to generate thread-safe objects.
19074 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19076 # Library versioning type.
19077 version_type=$version_type
19079 # Format of library name prefix.
19080 libname_spec=$lt_libname_spec
19082 # List of archive names. First name is the real one, the rest are links.
19083 # The last name is the one that the linker finds with -lNAME.
19084 library_names_spec=$lt_library_names_spec
19086 # The coded name of the library, if different from the real name.
19087 soname_spec=$lt_soname_spec
19089 # Commands used to build and install an old-style archive.
19090 RANLIB=$lt_RANLIB
19091 old_archive_cmds=$lt_old_archive_cmds_RC
19092 old_postinstall_cmds=$lt_old_postinstall_cmds
19093 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19095 # Create an old-style archive from a shared archive.
19096 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19098 # Create a temporary old-style archive to link instead of a shared archive.
19099 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19101 # Commands used to build and install a shared archive.
19102 archive_cmds=$lt_archive_cmds_RC
19103 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19104 postinstall_cmds=$lt_postinstall_cmds
19105 postuninstall_cmds=$lt_postuninstall_cmds
19107 # Commands used to build a loadable module (assumed same as above if empty)
19108 module_cmds=$lt_module_cmds_RC
19109 module_expsym_cmds=$lt_module_expsym_cmds_RC
19111 # Commands to strip libraries.
19112 old_striplib=$lt_old_striplib
19113 striplib=$lt_striplib
19115 # Dependencies to place before the objects being linked to create a
19116 # shared library.
19117 predep_objects=$lt_predep_objects_RC
19119 # Dependencies to place after the objects being linked to create a
19120 # shared library.
19121 postdep_objects=$lt_postdep_objects_RC
19123 # Dependencies to place before the objects being linked to create a
19124 # shared library.
19125 predeps=$lt_predeps_RC
19127 # Dependencies to place after the objects being linked to create a
19128 # shared library.
19129 postdeps=$lt_postdeps_RC
19131 # The library search path used internally by the compiler when linking
19132 # a shared library.
19133 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19135 # Method to check whether dependent libraries are shared objects.
19136 deplibs_check_method=$lt_deplibs_check_method
19138 # Command to use when deplibs_check_method == file_magic.
19139 file_magic_cmd=$lt_file_magic_cmd
19141 # Flag that allows shared libraries with undefined symbols to be built.
19142 allow_undefined_flag=$lt_allow_undefined_flag_RC
19144 # Flag that forces no undefined symbols.
19145 no_undefined_flag=$lt_no_undefined_flag_RC
19147 # Commands used to finish a libtool library installation in a directory.
19148 finish_cmds=$lt_finish_cmds
19150 # Same as above, but a single script fragment to be evaled but not shown.
19151 finish_eval=$lt_finish_eval
19153 # Take the output of nm and produce a listing of raw symbols and C names.
19154 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19156 # Transform the output of nm in a proper C declaration
19157 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19159 # Transform the output of nm in a C name address pair
19160 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19162 # This is the shared library runtime path variable.
19163 runpath_var=$runpath_var
19165 # This is the shared library path variable.
19166 shlibpath_var=$shlibpath_var
19168 # Is shlibpath searched before the hard-coded library search path?
19169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19171 # How to hardcode a shared library path into an executable.
19172 hardcode_action=$hardcode_action_RC
19174 # Whether we should hardcode library paths into libraries.
19175 hardcode_into_libs=$hardcode_into_libs
19177 # Flag to hardcode \$libdir into a binary during linking.
19178 # This must work even if \$libdir does not exist.
19179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19181 # If ld is used when linking, flag to hardcode \$libdir into
19182 # a binary during linking. This must work even if \$libdir does
19183 # not exist.
19184 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19186 # Whether we need a single -rpath flag with a separated argument.
19187 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19189 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19190 # resulting binary.
19191 hardcode_direct=$hardcode_direct_RC
19193 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19194 # resulting binary.
19195 hardcode_minus_L=$hardcode_minus_L_RC
19197 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19198 # the resulting binary.
19199 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19201 # Set to yes if building a shared library automatically hardcodes DIR into the library
19202 # and all subsequent libraries and executables linked against it.
19203 hardcode_automatic=$hardcode_automatic_RC
19205 # Variables whose values should be saved in libtool wrapper scripts and
19206 # restored at relink time.
19207 variables_saved_for_relink="$variables_saved_for_relink"
19209 # Whether libtool must link a program against all its dependency libraries.
19210 link_all_deplibs=$link_all_deplibs_RC
19212 # Compile-time system search path for libraries
19213 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19215 # Run-time system search path for libraries
19216 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19218 # Fix the shell variable \$srcfile for the compiler.
19219 fix_srcfile_path=$lt_fix_srcfile_path
19221 # Set to yes if exported symbols are required.
19222 always_export_symbols=$always_export_symbols_RC
19224 # The commands to list exported symbols.
19225 export_symbols_cmds=$lt_export_symbols_cmds_RC
19227 # The commands to extract the exported symbol list from a shared archive.
19228 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19230 # Symbols that should not be listed in the preloaded symbols.
19231 exclude_expsyms=$lt_exclude_expsyms_RC
19233 # Symbols that must always be exported.
19234 include_expsyms=$lt_include_expsyms_RC
19236 # ### END LIBTOOL TAG CONFIG: $tagname
19238 __EOF__
19241 else
19242 # If there is no Makefile yet, we rely on a make rule to execute
19243 # `config.status --recheck' to rerun these tests and create the
19244 # libtool script then.
19245 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19246 if test -f "$ltmain_in"; then
19247 test -f Makefile && make "$ltmain"
19252 ac_ext=c
19253 ac_cpp='$CPP $CPPFLAGS'
19254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19258 CC="$lt_save_CC"
19263 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19264 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19265 { (exit 1); exit 1; }; }
19267 esac
19269 # Append the new tag name to the list of available tags.
19270 if test -n "$tagname" ; then
19271 available_tags="$available_tags $tagname"
19274 done
19275 IFS="$lt_save_ifs"
19277 # Now substitute the updated list of available tags.
19278 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19279 mv "${ofile}T" "$ofile"
19280 chmod +x "$ofile"
19281 else
19282 rm -f "${ofile}T"
19283 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19284 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19285 { (exit 1); exit 1; }; }
19291 # This can be used to rebuild libtool when needed
19292 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19294 # Always use our own libtool.
19295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19297 # Prevent multiple expansion
19319 # Checks for libraries.
19321 # Checks for header files.
19323 # Checks for typedefs, structures, and compiler characteristics.
19324 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
19325 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
19326 if test "${ac_cv_header_stdbool_h+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329 cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h. */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19336 #include <stdbool.h>
19337 #ifndef bool
19338 "error: bool is not defined"
19339 #endif
19340 #ifndef false
19341 "error: false is not defined"
19342 #endif
19343 #if false
19344 "error: false is not 0"
19345 #endif
19346 #ifndef true
19347 "error: true is not defined"
19348 #endif
19349 #if true != 1
19350 "error: true is not 1"
19351 #endif
19352 #ifndef __bool_true_false_are_defined
19353 "error: __bool_true_false_are_defined is not defined"
19354 #endif
19356 struct s { _Bool s: 1; _Bool t; } s;
19358 char a[true == 1 ? 1 : -1];
19359 char b[false == 0 ? 1 : -1];
19360 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19361 char d[(bool) 0.5 == true ? 1 : -1];
19362 bool e = &s;
19363 char f[(_Bool) 0.0 == false ? 1 : -1];
19364 char g[true];
19365 char h[sizeof (_Bool)];
19366 char i[sizeof s.t];
19367 enum { j = false, k = true, l = false * true, m = true * 256 };
19368 _Bool n[m];
19369 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19370 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19371 # if defined __xlc__ || defined __GNUC__
19372 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19373 reported by James Lemley on 2005-10-05; see
19374 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19375 This test is not quite right, since xlc is allowed to
19376 reject this program, as the initializer for xlcbug is
19377 not one of the forms that C requires support for.
19378 However, doing the test right would require a runtime
19379 test, and that would make cross-compilation harder.
19380 Let us hope that IBM fixes the xlc bug, and also adds
19381 support for this kind of constant expression. In the
19382 meantime, this test will reject xlc, which is OK, since
19383 our stdbool.h substitute should suffice. We also test
19384 this with GCC, where it should work, to detect more
19385 quickly whether someone messes up the test in the
19386 future. */
19387 char digs[] = "0123456789";
19388 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19389 # endif
19390 /* Catch a bug in an HP-UX C compiler. See
19391 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19392 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19394 _Bool q = true;
19395 _Bool *pq = &q;
19398 main ()
19401 *pq |= q;
19402 *pq |= ! q;
19403 /* Refer to every declared value, to avoid compiler optimizations. */
19404 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19405 + !m + !n + !o + !p + !q + !pq);
19408 return 0;
19410 _ACEOF
19411 rm -f conftest.$ac_objext
19412 if { (ac_try="$ac_compile"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest.$ac_objext; then
19428 ac_cv_header_stdbool_h=yes
19429 else
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_cv_header_stdbool_h=no
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
19439 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
19440 { echo "$as_me:$LINENO: checking for _Bool" >&5
19441 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
19442 if test "${ac_cv_type__Bool+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445 cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h. */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 $ac_includes_default
19452 typedef _Bool ac__type_new_;
19454 main ()
19456 if ((ac__type_new_ *) 0)
19457 return 0;
19458 if (sizeof (ac__type_new_))
19459 return 0;
19461 return 0;
19463 _ACEOF
19464 rm -f conftest.$ac_objext
19465 if { (ac_try="$ac_compile"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_compile") 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest.$ac_objext; then
19481 ac_cv_type__Bool=yes
19482 else
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_type__Bool=no
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
19492 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
19493 if test $ac_cv_type__Bool = yes; then
19495 cat >>confdefs.h <<_ACEOF
19496 #define HAVE__BOOL 1
19497 _ACEOF
19502 if test $ac_cv_header_stdbool_h = yes; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_STDBOOL_H 1
19506 _ACEOF
19510 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19511 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19512 if test "${ac_cv_c_const+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19523 main ()
19525 /* FIXME: Include the comments suggested by Paul. */
19526 #ifndef __cplusplus
19527 /* Ultrix mips cc rejects this. */
19528 typedef int charset[2];
19529 const charset cs;
19530 /* SunOS 4.1.1 cc rejects this. */
19531 char const *const *pcpcc;
19532 char **ppc;
19533 /* NEC SVR4.0.2 mips cc rejects this. */
19534 struct point {int x, y;};
19535 static struct point const zero = {0,0};
19536 /* AIX XL C 1.02.0.0 rejects this.
19537 It does not let you subtract one const X* pointer from another in
19538 an arm of an if-expression whose if-part is not a constant
19539 expression */
19540 const char *g = "string";
19541 pcpcc = &g + (g ? g-g : 0);
19542 /* HPUX 7.0 cc rejects these. */
19543 ++pcpcc;
19544 ppc = (char**) pcpcc;
19545 pcpcc = (char const *const *) ppc;
19546 { /* SCO 3.2v4 cc rejects this. */
19547 char *t;
19548 char const *s = 0 ? (char *) 0 : (char const *) 0;
19550 *t++ = 0;
19551 if (s) return 0;
19553 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19554 int x[] = {25, 17};
19555 const int *foo = &x[0];
19556 ++foo;
19558 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19559 typedef const int *iptr;
19560 iptr p = 0;
19561 ++p;
19563 { /* AIX XL C 1.02.0.0 rejects this saying
19564 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19565 struct s { int j; const int *ap[3]; };
19566 struct s *b; b->j = 5;
19568 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19569 const int foo = 10;
19570 if (!foo) return 0;
19572 return !cs[0] && !zero.x;
19573 #endif
19576 return 0;
19578 _ACEOF
19579 rm -f conftest.$ac_objext
19580 if { (ac_try="$ac_compile"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_compile") 2>conftest.er1
19587 ac_status=$?
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest.$ac_objext; then
19596 ac_cv_c_const=yes
19597 else
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 ac_cv_c_const=no
19604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19606 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19607 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19608 if test $ac_cv_c_const = no; then
19610 cat >>confdefs.h <<\_ACEOF
19611 #define const
19612 _ACEOF
19617 # Checks for library functions.
19618 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
19619 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
19620 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623 rm -f conftest.sym conftest.file
19624 echo >conftest.file
19625 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19626 if test "$cross_compiling" = yes; then
19627 ac_cv_func_lstat_dereferences_slashed_symlink=no
19628 else
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 $ac_includes_default
19637 main ()
19639 struct stat sbuf;
19640 /* Linux will dereference the symlink and fail.
19641 That is better in the sense that it means we will not
19642 have to compile and use the lstat wrapper. */
19643 return lstat ("conftest.sym/", &sbuf) == 0;
19645 return 0;
19647 _ACEOF
19648 rm -f conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_link") 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19659 { (case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662 esac
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_try") 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; }; then
19668 ac_cv_func_lstat_dereferences_slashed_symlink=yes
19669 else
19670 echo "$as_me: program exited with status $ac_status" >&5
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ( exit $ac_status )
19675 ac_cv_func_lstat_dereferences_slashed_symlink=no
19677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19681 else
19682 # If the `ln -s' command failed, then we probably don't even
19683 # have an lstat function.
19684 ac_cv_func_lstat_dereferences_slashed_symlink=no
19686 rm -f conftest.sym conftest.file
19689 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19690 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19692 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19694 cat >>confdefs.h <<_ACEOF
19695 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19696 _ACEOF
19699 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
19700 case " $LIBOBJS " in
19701 *" lstat.$ac_objext "* ) ;;
19702 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
19704 esac
19708 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
19709 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
19710 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713 if test "$cross_compiling" = yes; then
19714 ac_cv_func_stat_empty_string_bug=yes
19715 else
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h. */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 $ac_includes_default
19724 main ()
19726 struct stat sbuf;
19727 return stat ("", &sbuf) == 0;
19729 return 0;
19731 _ACEOF
19732 rm -f conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19743 { (case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_try") 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_func_stat_empty_string_bug=no
19753 else
19754 echo "$as_me: program exited with status $ac_status" >&5
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 ( exit $ac_status )
19759 ac_cv_func_stat_empty_string_bug=yes
19761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19766 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
19767 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
19768 if test $ac_cv_func_stat_empty_string_bug = yes; then
19769 case " $LIBOBJS " in
19770 *" stat.$ac_objext "* ) ;;
19771 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
19773 esac
19776 cat >>confdefs.h <<_ACEOF
19777 #define HAVE_STAT_EMPTY_STRING_BUG 1
19778 _ACEOF
19783 ac_config_files="$ac_config_files Makefile src/Makefile src/fs/Makefile src/tests/Makefile"
19785 subdirs="$subdirs libconfigfile-1.0"
19787 cat >confcache <<\_ACEOF
19788 # This file is a shell script that caches the results of configure
19789 # tests run on this system so they can be shared between configure
19790 # scripts and configure runs, see configure's option --config-cache.
19791 # It is not useful on other systems. If it contains results you don't
19792 # want to keep, you may remove or edit it.
19794 # config.status only pays attention to the cache file if you give it
19795 # the --recheck option to rerun configure.
19797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19799 # following values.
19801 _ACEOF
19803 # The following way of writing the cache mishandles newlines in values,
19804 # but we know of no workaround that is simple, portable, and efficient.
19805 # So, we kill variables containing newlines.
19806 # Ultrix sh set writes to stderr and can't be redirected directly,
19807 # and sets the high bit in the cache file unless we assign to the vars.
19809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19810 eval ac_val=\$$ac_var
19811 case $ac_val in #(
19812 *${as_nl}*)
19813 case $ac_var in #(
19814 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19815 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19816 esac
19817 case $ac_var in #(
19818 _ | IFS | as_nl) ;; #(
19819 *) $as_unset $ac_var ;;
19820 esac ;;
19821 esac
19822 done
19824 (set) 2>&1 |
19825 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19826 *${as_nl}ac_space=\ *)
19827 # `set' does not quote correctly, so add quotes (double-quote
19828 # substitution turns \\\\ into \\, and sed turns \\ into \).
19829 sed -n \
19830 "s/'/'\\\\''/g;
19831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19832 ;; #(
19834 # `set' quotes correctly as required by POSIX, so do not add quotes.
19835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19837 esac |
19838 sort
19840 sed '
19841 /^ac_cv_env_/b end
19842 t clear
19843 :clear
19844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19845 t end
19846 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19847 :end' >>confcache
19848 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19849 if test -w "$cache_file"; then
19850 test "x$cache_file" != "x/dev/null" &&
19851 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19852 echo "$as_me: updating cache $cache_file" >&6;}
19853 cat confcache >$cache_file
19854 else
19855 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19856 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19859 rm -f confcache
19861 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19862 # Let make expand exec_prefix.
19863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19865 DEFS=-DHAVE_CONFIG_H
19867 ac_libobjs=
19868 ac_ltlibobjs=
19869 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19870 # 1. Remove the extension, and $U if already installed.
19871 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19872 ac_i=`echo "$ac_i" | sed "$ac_script"`
19873 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19874 # will be set to the directory where LIBOBJS objects are built.
19875 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19876 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19877 done
19878 LIBOBJS=$ac_libobjs
19880 LTLIBOBJS=$ac_ltlibobjs
19883 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19884 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19885 Usually this means the macro was only invoked conditionally." >&5
19886 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19887 Usually this means the macro was only invoked conditionally." >&2;}
19888 { (exit 1); exit 1; }; }
19890 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19891 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19892 Usually this means the macro was only invoked conditionally." >&5
19893 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19894 Usually this means the macro was only invoked conditionally." >&2;}
19895 { (exit 1); exit 1; }; }
19897 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19898 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19899 Usually this means the macro was only invoked conditionally." >&5
19900 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19901 Usually this means the macro was only invoked conditionally." >&2;}
19902 { (exit 1); exit 1; }; }
19905 : ${CONFIG_STATUS=./config.status}
19906 ac_clean_files_save=$ac_clean_files
19907 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19908 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19909 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19910 cat >$CONFIG_STATUS <<_ACEOF
19911 #! $SHELL
19912 # Generated by $as_me.
19913 # Run this file to recreate the current configuration.
19914 # Compiler output produced by configure, useful for debugging
19915 # configure, is in config.log if it exists.
19917 debug=false
19918 ac_cs_recheck=false
19919 ac_cs_silent=false
19920 SHELL=\${CONFIG_SHELL-$SHELL}
19921 _ACEOF
19923 cat >>$CONFIG_STATUS <<\_ACEOF
19924 ## --------------------- ##
19925 ## M4sh Initialization. ##
19926 ## --------------------- ##
19928 # Be more Bourne compatible
19929 DUALCASE=1; export DUALCASE # for MKS sh
19930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19931 emulate sh
19932 NULLCMD=:
19933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19934 # is contrary to our usage. Disable this feature.
19935 alias -g '${1+"$@"}'='"$@"'
19936 setopt NO_GLOB_SUBST
19937 else
19938 case `(set -o) 2>/dev/null` in
19939 *posix*) set -o posix ;;
19940 esac
19947 # PATH needs CR
19948 # Avoid depending upon Character Ranges.
19949 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19950 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19951 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19952 as_cr_digits='0123456789'
19953 as_cr_alnum=$as_cr_Letters$as_cr_digits
19955 # The user is always right.
19956 if test "${PATH_SEPARATOR+set}" != set; then
19957 echo "#! /bin/sh" >conf$$.sh
19958 echo "exit 0" >>conf$$.sh
19959 chmod +x conf$$.sh
19960 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19961 PATH_SEPARATOR=';'
19962 else
19963 PATH_SEPARATOR=:
19965 rm -f conf$$.sh
19968 # Support unset when possible.
19969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19970 as_unset=unset
19971 else
19972 as_unset=false
19976 # IFS
19977 # We need space, tab and new line, in precisely that order. Quoting is
19978 # there to prevent editors from complaining about space-tab.
19979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19980 # splitting by setting IFS to empty value.)
19981 as_nl='
19983 IFS=" "" $as_nl"
19985 # Find who we are. Look in the path if we contain no directory separator.
19986 case $0 in
19987 *[\\/]* ) as_myself=$0 ;;
19988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19989 for as_dir in $PATH
19991 IFS=$as_save_IFS
19992 test -z "$as_dir" && as_dir=.
19993 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19994 done
19995 IFS=$as_save_IFS
19998 esac
19999 # We did not find ourselves, most probably we were run as `sh COMMAND'
20000 # in which case we are not to be found in the path.
20001 if test "x$as_myself" = x; then
20002 as_myself=$0
20004 if test ! -f "$as_myself"; then
20005 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20006 { (exit 1); exit 1; }
20009 # Work around bugs in pre-3.0 UWIN ksh.
20010 for as_var in ENV MAIL MAILPATH
20011 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20012 done
20013 PS1='$ '
20014 PS2='> '
20015 PS4='+ '
20017 # NLS nuisances.
20018 for as_var in \
20019 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20020 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20021 LC_TELEPHONE LC_TIME
20023 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20024 eval $as_var=C; export $as_var
20025 else
20026 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20028 done
20030 # Required to use basename.
20031 if expr a : '\(a\)' >/dev/null 2>&1 &&
20032 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20033 as_expr=expr
20034 else
20035 as_expr=false
20038 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20039 as_basename=basename
20040 else
20041 as_basename=false
20045 # Name of the executable.
20046 as_me=`$as_basename -- "$0" ||
20047 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20048 X"$0" : 'X\(//\)$' \| \
20049 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20050 echo X/"$0" |
20051 sed '/^.*\/\([^/][^/]*\)\/*$/{
20052 s//\1/
20055 /^X\/\(\/\/\)$/{
20056 s//\1/
20059 /^X\/\(\/\).*/{
20060 s//\1/
20063 s/.*/./; q'`
20065 # CDPATH.
20066 $as_unset CDPATH
20070 as_lineno_1=$LINENO
20071 as_lineno_2=$LINENO
20072 test "x$as_lineno_1" != "x$as_lineno_2" &&
20073 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20075 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20076 # uniformly replaced by the line number. The first 'sed' inserts a
20077 # line-number line after each line using $LINENO; the second 'sed'
20078 # does the real work. The second script uses 'N' to pair each
20079 # line-number line with the line containing $LINENO, and appends
20080 # trailing '-' during substitution so that $LINENO is not a special
20081 # case at line end.
20082 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20083 # scripts with optimization help from Paolo Bonzini. Blame Lee
20084 # E. McMahon (1931-1989) for sed's syntax. :-)
20085 sed -n '
20087 /[$]LINENO/=
20088 ' <$as_myself |
20089 sed '
20090 s/[$]LINENO.*/&-/
20091 t lineno
20093 :lineno
20095 :loop
20096 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20097 t loop
20098 s/-\n.*//
20099 ' >$as_me.lineno &&
20100 chmod +x "$as_me.lineno" ||
20101 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20102 { (exit 1); exit 1; }; }
20104 # Don't try to exec as it changes $[0], causing all sort of problems
20105 # (the dirname of $[0] is not the place where we might find the
20106 # original and so on. Autoconf is especially sensitive to this).
20107 . "./$as_me.lineno"
20108 # Exit status is that of the last command.
20109 exit
20113 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20114 as_dirname=dirname
20115 else
20116 as_dirname=false
20119 ECHO_C= ECHO_N= ECHO_T=
20120 case `echo -n x` in
20121 -n*)
20122 case `echo 'x\c'` in
20123 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20124 *) ECHO_C='\c';;
20125 esac;;
20127 ECHO_N='-n';;
20128 esac
20130 if expr a : '\(a\)' >/dev/null 2>&1 &&
20131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20132 as_expr=expr
20133 else
20134 as_expr=false
20137 rm -f conf$$ conf$$.exe conf$$.file
20138 if test -d conf$$.dir; then
20139 rm -f conf$$.dir/conf$$.file
20140 else
20141 rm -f conf$$.dir
20142 mkdir conf$$.dir
20144 echo >conf$$.file
20145 if ln -s conf$$.file conf$$ 2>/dev/null; then
20146 as_ln_s='ln -s'
20147 # ... but there are two gotchas:
20148 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20149 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20150 # In both cases, we have to default to `cp -p'.
20151 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20152 as_ln_s='cp -p'
20153 elif ln conf$$.file conf$$ 2>/dev/null; then
20154 as_ln_s=ln
20155 else
20156 as_ln_s='cp -p'
20158 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20159 rmdir conf$$.dir 2>/dev/null
20161 if mkdir -p . 2>/dev/null; then
20162 as_mkdir_p=:
20163 else
20164 test -d ./-p && rmdir ./-p
20165 as_mkdir_p=false
20168 if test -x / >/dev/null 2>&1; then
20169 as_test_x='test -x'
20170 else
20171 if ls -dL / >/dev/null 2>&1; then
20172 as_ls_L_option=L
20173 else
20174 as_ls_L_option=
20176 as_test_x='
20177 eval sh -c '\''
20178 if test -d "$1"; then
20179 test -d "$1/.";
20180 else
20181 case $1 in
20182 -*)set "./$1";;
20183 esac;
20184 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20185 ???[sx]*):;;*)false;;esac;fi
20186 '\'' sh
20189 as_executable_p=$as_test_x
20191 # Sed expression to map a string onto a valid CPP name.
20192 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20194 # Sed expression to map a string onto a valid variable name.
20195 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20198 exec 6>&1
20200 # Save the log message, to keep $[0] and so on meaningful, and to
20201 # report actual input values of CONFIG_FILES etc. instead of their
20202 # values after options handling.
20203 ac_log="
20204 This file was extended by vimicxx $as_me 0.1, which was
20205 generated by GNU Autoconf 2.61. Invocation command line was
20207 CONFIG_FILES = $CONFIG_FILES
20208 CONFIG_HEADERS = $CONFIG_HEADERS
20209 CONFIG_LINKS = $CONFIG_LINKS
20210 CONFIG_COMMANDS = $CONFIG_COMMANDS
20211 $ $0 $@
20213 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20216 _ACEOF
20218 cat >>$CONFIG_STATUS <<_ACEOF
20219 # Files that config.status was made for.
20220 config_files="$ac_config_files"
20221 config_headers="$ac_config_headers"
20222 config_commands="$ac_config_commands"
20224 _ACEOF
20226 cat >>$CONFIG_STATUS <<\_ACEOF
20227 ac_cs_usage="\
20228 \`$as_me' instantiates files from templates according to the
20229 current configuration.
20231 Usage: $0 [OPTIONS] [FILE]...
20233 -h, --help print this help, then exit
20234 -V, --version print version number and configuration settings, then exit
20235 -q, --quiet do not print progress messages
20236 -d, --debug don't remove temporary files
20237 --recheck update $as_me by reconfiguring in the same conditions
20238 --file=FILE[:TEMPLATE]
20239 instantiate the configuration file FILE
20240 --header=FILE[:TEMPLATE]
20241 instantiate the configuration header FILE
20243 Configuration files:
20244 $config_files
20246 Configuration headers:
20247 $config_headers
20249 Configuration commands:
20250 $config_commands
20252 Report bugs to <bug-autoconf@gnu.org>."
20254 _ACEOF
20255 cat >>$CONFIG_STATUS <<_ACEOF
20256 ac_cs_version="\\
20257 vimicxx config.status 0.1
20258 configured by $0, generated by GNU Autoconf 2.61,
20259 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20261 Copyright (C) 2006 Free Software Foundation, Inc.
20262 This config.status script is free software; the Free Software Foundation
20263 gives unlimited permission to copy, distribute and modify it."
20265 ac_pwd='$ac_pwd'
20266 srcdir='$srcdir'
20267 INSTALL='$INSTALL'
20268 MKDIR_P='$MKDIR_P'
20269 _ACEOF
20271 cat >>$CONFIG_STATUS <<\_ACEOF
20272 # If no file are specified by the user, then we need to provide default
20273 # value. By we need to know if files were specified by the user.
20274 ac_need_defaults=:
20275 while test $# != 0
20277 case $1 in
20278 --*=*)
20279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20281 ac_shift=:
20284 ac_option=$1
20285 ac_optarg=$2
20286 ac_shift=shift
20288 esac
20290 case $ac_option in
20291 # Handling of the options.
20292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20293 ac_cs_recheck=: ;;
20294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20295 echo "$ac_cs_version"; exit ;;
20296 --debug | --debu | --deb | --de | --d | -d )
20297 debug=: ;;
20298 --file | --fil | --fi | --f )
20299 $ac_shift
20300 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20301 ac_need_defaults=false;;
20302 --header | --heade | --head | --hea )
20303 $ac_shift
20304 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20305 ac_need_defaults=false;;
20306 --he | --h)
20307 # Conflict between --help and --header
20308 { echo "$as_me: error: ambiguous option: $1
20309 Try \`$0 --help' for more information." >&2
20310 { (exit 1); exit 1; }; };;
20311 --help | --hel | -h )
20312 echo "$ac_cs_usage"; exit ;;
20313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20315 ac_cs_silent=: ;;
20317 # This is an error.
20318 -*) { echo "$as_me: error: unrecognized option: $1
20319 Try \`$0 --help' for more information." >&2
20320 { (exit 1); exit 1; }; } ;;
20322 *) ac_config_targets="$ac_config_targets $1"
20323 ac_need_defaults=false ;;
20325 esac
20326 shift
20327 done
20329 ac_configure_extra_args=
20331 if $ac_cs_silent; then
20332 exec 6>/dev/null
20333 ac_configure_extra_args="$ac_configure_extra_args --silent"
20336 _ACEOF
20337 cat >>$CONFIG_STATUS <<_ACEOF
20338 if \$ac_cs_recheck; then
20339 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20340 CONFIG_SHELL=$SHELL
20341 export CONFIG_SHELL
20342 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20345 _ACEOF
20346 cat >>$CONFIG_STATUS <<\_ACEOF
20347 exec 5>>config.log
20349 echo
20350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20351 ## Running $as_me. ##
20352 _ASBOX
20353 echo "$ac_log"
20354 } >&5
20356 _ACEOF
20357 cat >>$CONFIG_STATUS <<_ACEOF
20359 # INIT-COMMANDS
20361 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20363 _ACEOF
20365 cat >>$CONFIG_STATUS <<\_ACEOF
20367 # Handling of arguments.
20368 for ac_config_target in $ac_config_targets
20370 case $ac_config_target in
20371 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20372 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20373 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20374 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20375 "src/fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/Makefile" ;;
20376 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
20378 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20379 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20380 { (exit 1); exit 1; }; };;
20381 esac
20382 done
20385 # If the user did not use the arguments to specify the items to instantiate,
20386 # then the envvar interface is used. Set only those that are not.
20387 # We use the long form for the default assignment because of an extremely
20388 # bizarre bug on SunOS 4.1.3.
20389 if $ac_need_defaults; then
20390 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20391 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20392 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20395 # Have a temporary directory for convenience. Make it in the build tree
20396 # simply because there is no reason against having it here, and in addition,
20397 # creating and moving files from /tmp can sometimes cause problems.
20398 # Hook for its removal unless debugging.
20399 # Note that there is a small window in which the directory will not be cleaned:
20400 # after its creation but before its name has been assigned to `$tmp'.
20401 $debug ||
20403 tmp=
20404 trap 'exit_status=$?
20405 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20407 trap '{ (exit 1); exit 1; }' 1 2 13 15
20409 # Create a (secure) tmp directory for tmp files.
20412 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20413 test -n "$tmp" && test -d "$tmp"
20414 } ||
20416 tmp=./conf$$-$RANDOM
20417 (umask 077 && mkdir "$tmp")
20418 } ||
20420 echo "$me: cannot create a temporary directory in ." >&2
20421 { (exit 1); exit 1; }
20425 # Set up the sed scripts for CONFIG_FILES section.
20428 # No need to generate the scripts if there are no CONFIG_FILES.
20429 # This happens for instance when ./config.status config.h
20430 if test -n "$CONFIG_FILES"; then
20432 _ACEOF
20436 ac_delim='%!_!# '
20437 for ac_last_try in false false false false false :; do
20438 cat >conf$$subs.sed <<_ACEOF
20439 SHELL!$SHELL$ac_delim
20440 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20441 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20442 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20443 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20444 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20445 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20446 exec_prefix!$exec_prefix$ac_delim
20447 prefix!$prefix$ac_delim
20448 program_transform_name!$program_transform_name$ac_delim
20449 bindir!$bindir$ac_delim
20450 sbindir!$sbindir$ac_delim
20451 libexecdir!$libexecdir$ac_delim
20452 datarootdir!$datarootdir$ac_delim
20453 datadir!$datadir$ac_delim
20454 sysconfdir!$sysconfdir$ac_delim
20455 sharedstatedir!$sharedstatedir$ac_delim
20456 localstatedir!$localstatedir$ac_delim
20457 includedir!$includedir$ac_delim
20458 oldincludedir!$oldincludedir$ac_delim
20459 docdir!$docdir$ac_delim
20460 infodir!$infodir$ac_delim
20461 htmldir!$htmldir$ac_delim
20462 dvidir!$dvidir$ac_delim
20463 pdfdir!$pdfdir$ac_delim
20464 psdir!$psdir$ac_delim
20465 libdir!$libdir$ac_delim
20466 localedir!$localedir$ac_delim
20467 mandir!$mandir$ac_delim
20468 DEFS!$DEFS$ac_delim
20469 ECHO_C!$ECHO_C$ac_delim
20470 ECHO_N!$ECHO_N$ac_delim
20471 ECHO_T!$ECHO_T$ac_delim
20472 LIBS!$LIBS$ac_delim
20473 build_alias!$build_alias$ac_delim
20474 host_alias!$host_alias$ac_delim
20475 target_alias!$target_alias$ac_delim
20476 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20477 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20478 INSTALL_DATA!$INSTALL_DATA$ac_delim
20479 am__isrc!$am__isrc$ac_delim
20480 CYGPATH_W!$CYGPATH_W$ac_delim
20481 PACKAGE!$PACKAGE$ac_delim
20482 VERSION!$VERSION$ac_delim
20483 ACLOCAL!$ACLOCAL$ac_delim
20484 AUTOCONF!$AUTOCONF$ac_delim
20485 AUTOMAKE!$AUTOMAKE$ac_delim
20486 AUTOHEADER!$AUTOHEADER$ac_delim
20487 MAKEINFO!$MAKEINFO$ac_delim
20488 install_sh!$install_sh$ac_delim
20489 STRIP!$STRIP$ac_delim
20490 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20491 mkdir_p!$mkdir_p$ac_delim
20492 AWK!$AWK$ac_delim
20493 SET_MAKE!$SET_MAKE$ac_delim
20494 am__leading_dot!$am__leading_dot$ac_delim
20495 AMTAR!$AMTAR$ac_delim
20496 am__tar!$am__tar$ac_delim
20497 am__untar!$am__untar$ac_delim
20498 CXX!$CXX$ac_delim
20499 CXXFLAGS!$CXXFLAGS$ac_delim
20500 LDFLAGS!$LDFLAGS$ac_delim
20501 CPPFLAGS!$CPPFLAGS$ac_delim
20502 ac_ct_CXX!$ac_ct_CXX$ac_delim
20503 EXEEXT!$EXEEXT$ac_delim
20504 OBJEXT!$OBJEXT$ac_delim
20505 DEPDIR!$DEPDIR$ac_delim
20506 am__include!$am__include$ac_delim
20507 am__quote!$am__quote$ac_delim
20508 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20509 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20510 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20511 CXXDEPMODE!$CXXDEPMODE$ac_delim
20512 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20513 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20514 CC!$CC$ac_delim
20515 CFLAGS!$CFLAGS$ac_delim
20516 ac_ct_CC!$ac_ct_CC$ac_delim
20517 CCDEPMODE!$CCDEPMODE$ac_delim
20518 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20519 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20520 build!$build$ac_delim
20521 build_cpu!$build_cpu$ac_delim
20522 build_vendor!$build_vendor$ac_delim
20523 build_os!$build_os$ac_delim
20524 host!$host$ac_delim
20525 host_cpu!$host_cpu$ac_delim
20526 host_vendor!$host_vendor$ac_delim
20527 host_os!$host_os$ac_delim
20528 SED!$SED$ac_delim
20529 GREP!$GREP$ac_delim
20530 EGREP!$EGREP$ac_delim
20531 LN_S!$LN_S$ac_delim
20532 ECHO!$ECHO$ac_delim
20533 AR!$AR$ac_delim
20534 RANLIB!$RANLIB$ac_delim
20535 CPP!$CPP$ac_delim
20536 _ACEOF
20538 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20539 break
20540 elif $ac_last_try; then
20541 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20542 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20543 { (exit 1); exit 1; }; }
20544 else
20545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20547 done
20549 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20550 if test -n "$ac_eof"; then
20551 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20552 ac_eof=`expr $ac_eof + 1`
20555 cat >>$CONFIG_STATUS <<_ACEOF
20556 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20558 _ACEOF
20559 sed '
20560 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20561 s/^/s,@/; s/!/@,|#_!!_#|/
20564 s/'"$ac_delim"'$/,g/; t
20565 s/$/\\/; p
20566 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20567 ' >>$CONFIG_STATUS <conf$$subs.sed
20568 rm -f conf$$subs.sed
20569 cat >>$CONFIG_STATUS <<_ACEOF
20570 CEOF$ac_eof
20571 _ACEOF
20574 ac_delim='%!_!# '
20575 for ac_last_try in false false false false false :; do
20576 cat >conf$$subs.sed <<_ACEOF
20577 CXXCPP!$CXXCPP$ac_delim
20578 F77!$F77$ac_delim
20579 FFLAGS!$FFLAGS$ac_delim
20580 ac_ct_F77!$ac_ct_F77$ac_delim
20581 LIBTOOL!$LIBTOOL$ac_delim
20582 LIBOBJS!$LIBOBJS$ac_delim
20583 subdirs!$subdirs$ac_delim
20584 LTLIBOBJS!$LTLIBOBJS$ac_delim
20585 _ACEOF
20587 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
20588 break
20589 elif $ac_last_try; then
20590 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20591 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20592 { (exit 1); exit 1; }; }
20593 else
20594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20596 done
20598 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20599 if test -n "$ac_eof"; then
20600 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20601 ac_eof=`expr $ac_eof + 1`
20604 cat >>$CONFIG_STATUS <<_ACEOF
20605 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20607 _ACEOF
20608 sed '
20609 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20610 s/^/s,@/; s/!/@,|#_!!_#|/
20613 s/'"$ac_delim"'$/,g/; t
20614 s/$/\\/; p
20615 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20616 ' >>$CONFIG_STATUS <conf$$subs.sed
20617 rm -f conf$$subs.sed
20618 cat >>$CONFIG_STATUS <<_ACEOF
20619 :end
20620 s/|#_!!_#|//g
20621 CEOF$ac_eof
20622 _ACEOF
20625 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20626 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20627 # trailing colons and then remove the whole line if VPATH becomes empty
20628 # (actually we leave an empty line to preserve line numbers).
20629 if test "x$srcdir" = x.; then
20630 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20631 s/:*\$(srcdir):*/:/
20632 s/:*\${srcdir}:*/:/
20633 s/:*@srcdir@:*/:/
20634 s/^\([^=]*=[ ]*\):*/\1/
20635 s/:*$//
20636 s/^[^=]*=[ ]*$//
20640 cat >>$CONFIG_STATUS <<\_ACEOF
20641 fi # test -n "$CONFIG_FILES"
20644 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20646 case $ac_tag in
20647 :[FHLC]) ac_mode=$ac_tag; continue;;
20648 esac
20649 case $ac_mode$ac_tag in
20650 :[FHL]*:*);;
20651 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20652 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20653 { (exit 1); exit 1; }; };;
20654 :[FH]-) ac_tag=-:-;;
20655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20656 esac
20657 ac_save_IFS=$IFS
20658 IFS=:
20659 set x $ac_tag
20660 IFS=$ac_save_IFS
20661 shift
20662 ac_file=$1
20663 shift
20665 case $ac_mode in
20666 :L) ac_source=$1;;
20667 :[FH])
20668 ac_file_inputs=
20669 for ac_f
20671 case $ac_f in
20672 -) ac_f="$tmp/stdin";;
20673 *) # Look for the file first in the build tree, then in the source tree
20674 # (if the path is not absolute). The absolute path cannot be DOS-style,
20675 # because $ac_f cannot contain `:'.
20676 test -f "$ac_f" ||
20677 case $ac_f in
20678 [\\/$]*) false;;
20679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20680 esac ||
20681 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20682 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20683 { (exit 1); exit 1; }; };;
20684 esac
20685 ac_file_inputs="$ac_file_inputs $ac_f"
20686 done
20688 # Let's still pretend it is `configure' which instantiates (i.e., don't
20689 # use $as_me), people would be surprised to read:
20690 # /* config.h. Generated by config.status. */
20691 configure_input="Generated from "`IFS=:
20692 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20693 if test x"$ac_file" != x-; then
20694 configure_input="$ac_file. $configure_input"
20695 { echo "$as_me:$LINENO: creating $ac_file" >&5
20696 echo "$as_me: creating $ac_file" >&6;}
20699 case $ac_tag in
20700 *:-:* | *:-) cat >"$tmp/stdin";;
20701 esac
20703 esac
20705 ac_dir=`$as_dirname -- "$ac_file" ||
20706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20707 X"$ac_file" : 'X\(//\)[^/]' \| \
20708 X"$ac_file" : 'X\(//\)$' \| \
20709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20710 echo X"$ac_file" |
20711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20712 s//\1/
20715 /^X\(\/\/\)[^/].*/{
20716 s//\1/
20719 /^X\(\/\/\)$/{
20720 s//\1/
20723 /^X\(\/\).*/{
20724 s//\1/
20727 s/.*/./; q'`
20728 { as_dir="$ac_dir"
20729 case $as_dir in #(
20730 -*) as_dir=./$as_dir;;
20731 esac
20732 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20733 as_dirs=
20734 while :; do
20735 case $as_dir in #(
20736 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20737 *) as_qdir=$as_dir;;
20738 esac
20739 as_dirs="'$as_qdir' $as_dirs"
20740 as_dir=`$as_dirname -- "$as_dir" ||
20741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20742 X"$as_dir" : 'X\(//\)[^/]' \| \
20743 X"$as_dir" : 'X\(//\)$' \| \
20744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20745 echo X"$as_dir" |
20746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20747 s//\1/
20750 /^X\(\/\/\)[^/].*/{
20751 s//\1/
20754 /^X\(\/\/\)$/{
20755 s//\1/
20758 /^X\(\/\).*/{
20759 s//\1/
20762 s/.*/./; q'`
20763 test -d "$as_dir" && break
20764 done
20765 test -z "$as_dirs" || eval "mkdir $as_dirs"
20766 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20767 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20768 { (exit 1); exit 1; }; }; }
20769 ac_builddir=.
20771 case "$ac_dir" in
20772 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20774 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20775 # A ".." for each directory in $ac_dir_suffix.
20776 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20777 case $ac_top_builddir_sub in
20778 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20779 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20780 esac ;;
20781 esac
20782 ac_abs_top_builddir=$ac_pwd
20783 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20784 # for backward compatibility:
20785 ac_top_builddir=$ac_top_build_prefix
20787 case $srcdir in
20788 .) # We are building in place.
20789 ac_srcdir=.
20790 ac_top_srcdir=$ac_top_builddir_sub
20791 ac_abs_top_srcdir=$ac_pwd ;;
20792 [\\/]* | ?:[\\/]* ) # Absolute name.
20793 ac_srcdir=$srcdir$ac_dir_suffix;
20794 ac_top_srcdir=$srcdir
20795 ac_abs_top_srcdir=$srcdir ;;
20796 *) # Relative name.
20797 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20798 ac_top_srcdir=$ac_top_build_prefix$srcdir
20799 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20800 esac
20801 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20804 case $ac_mode in
20807 # CONFIG_FILE
20810 case $INSTALL in
20811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20812 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20813 esac
20814 ac_MKDIR_P=$MKDIR_P
20815 case $MKDIR_P in
20816 [\\/$]* | ?:[\\/]* ) ;;
20817 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20818 esac
20819 _ACEOF
20821 cat >>$CONFIG_STATUS <<\_ACEOF
20822 # If the template does not know about datarootdir, expand it.
20823 # FIXME: This hack should be removed a few years after 2.60.
20824 ac_datarootdir_hack=; ac_datarootdir_seen=
20826 case `sed -n '/datarootdir/ {
20830 /@datadir@/p
20831 /@docdir@/p
20832 /@infodir@/p
20833 /@localedir@/p
20834 /@mandir@/p
20835 ' $ac_file_inputs` in
20836 *datarootdir*) ac_datarootdir_seen=yes;;
20837 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20838 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20839 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20840 _ACEOF
20841 cat >>$CONFIG_STATUS <<_ACEOF
20842 ac_datarootdir_hack='
20843 s&@datadir@&$datadir&g
20844 s&@docdir@&$docdir&g
20845 s&@infodir@&$infodir&g
20846 s&@localedir@&$localedir&g
20847 s&@mandir@&$mandir&g
20848 s&\\\${datarootdir}&$datarootdir&g' ;;
20849 esac
20850 _ACEOF
20852 # Neutralize VPATH when `$srcdir' = `.'.
20853 # Shell code in configure.ac might set extrasub.
20854 # FIXME: do we really want to maintain this feature?
20855 cat >>$CONFIG_STATUS <<_ACEOF
20856 sed "$ac_vpsub
20857 $extrasub
20858 _ACEOF
20859 cat >>$CONFIG_STATUS <<\_ACEOF
20861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20862 s&@configure_input@&$configure_input&;t t
20863 s&@top_builddir@&$ac_top_builddir_sub&;t t
20864 s&@srcdir@&$ac_srcdir&;t t
20865 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20866 s&@top_srcdir@&$ac_top_srcdir&;t t
20867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20868 s&@builddir@&$ac_builddir&;t t
20869 s&@abs_builddir@&$ac_abs_builddir&;t t
20870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20871 s&@INSTALL@&$ac_INSTALL&;t t
20872 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20873 $ac_datarootdir_hack
20874 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20877 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20879 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20880 which seems to be undefined. Please make sure it is defined." >&5
20881 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20882 which seems to be undefined. Please make sure it is defined." >&2;}
20884 rm -f "$tmp/stdin"
20885 case $ac_file in
20886 -) cat "$tmp/out"; rm -f "$tmp/out";;
20887 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20888 esac
20892 # CONFIG_HEADER
20894 _ACEOF
20896 # Transform confdefs.h into a sed script `conftest.defines', that
20897 # substitutes the proper values into config.h.in to produce config.h.
20898 rm -f conftest.defines conftest.tail
20899 # First, append a space to every undef/define line, to ease matching.
20900 echo 's/$/ /' >conftest.defines
20901 # Then, protect against being on the right side of a sed subst, or in
20902 # an unquoted here document, in config.status. If some macros were
20903 # called several times there might be several #defines for the same
20904 # symbol, which is useless. But do not sort them, since the last
20905 # AC_DEFINE must be honored.
20906 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20907 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20908 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20909 # PARAMS is the parameter list in the macro definition--in most cases, it's
20910 # just an empty string.
20911 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20912 ac_dB='\\)[ (].*,\\1define\\2'
20913 ac_dC=' '
20914 ac_dD=' ,'
20916 uniq confdefs.h |
20917 sed -n '
20918 t rset
20919 :rset
20920 s/^[ ]*#[ ]*define[ ][ ]*//
20921 t ok
20924 s/[\\&,]/\\&/g
20925 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20926 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20927 ' >>conftest.defines
20929 # Remove the space that was appended to ease matching.
20930 # Then replace #undef with comments. This is necessary, for
20931 # example, in the case of _POSIX_SOURCE, which is predefined and required
20932 # on some systems where configure will not decide to define it.
20933 # (The regexp can be short, since the line contains either #define or #undef.)
20934 echo 's/ $//
20935 s,^[ #]*u.*,/* & */,' >>conftest.defines
20937 # Break up conftest.defines:
20938 ac_max_sed_lines=50
20940 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20941 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20942 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20943 # et cetera.
20944 ac_in='$ac_file_inputs'
20945 ac_out='"$tmp/out1"'
20946 ac_nxt='"$tmp/out2"'
20948 while :
20950 # Write a here document:
20951 cat >>$CONFIG_STATUS <<_ACEOF
20952 # First, check the format of the line:
20953 cat >"\$tmp/defines.sed" <<\\CEOF
20954 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
20955 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20957 :def
20958 _ACEOF
20959 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20960 echo 'CEOF
20961 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20962 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20963 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20964 grep . conftest.tail >/dev/null || break
20965 rm -f conftest.defines
20966 mv conftest.tail conftest.defines
20967 done
20968 rm -f conftest.defines conftest.tail
20970 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20971 cat >>$CONFIG_STATUS <<\_ACEOF
20972 if test x"$ac_file" != x-; then
20973 echo "/* $configure_input */" >"$tmp/config.h"
20974 cat "$ac_result" >>"$tmp/config.h"
20975 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20976 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20977 echo "$as_me: $ac_file is unchanged" >&6;}
20978 else
20979 rm -f $ac_file
20980 mv "$tmp/config.h" $ac_file
20982 else
20983 echo "/* $configure_input */"
20984 cat "$ac_result"
20986 rm -f "$tmp/out12"
20987 # Compute $ac_file's index in $config_headers.
20988 _am_stamp_count=1
20989 for _am_header in $config_headers :; do
20990 case $_am_header in
20991 $ac_file | $ac_file:* )
20992 break ;;
20994 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20995 esac
20996 done
20997 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20998 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20999 X$ac_file : 'X\(//\)[^/]' \| \
21000 X$ac_file : 'X\(//\)$' \| \
21001 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21002 echo X$ac_file |
21003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21004 s//\1/
21007 /^X\(\/\/\)[^/].*/{
21008 s//\1/
21011 /^X\(\/\/\)$/{
21012 s//\1/
21015 /^X\(\/\).*/{
21016 s//\1/
21019 s/.*/./; q'`/stamp-h$_am_stamp_count
21022 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21023 echo "$as_me: executing $ac_file commands" >&6;}
21025 esac
21028 case $ac_file$ac_mode in
21029 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21030 # Strip MF so we end up with the name of the file.
21031 mf=`echo "$mf" | sed -e 's/:.*$//'`
21032 # Check whether this is an Automake generated Makefile or not.
21033 # We used to match only the files named `Makefile.in', but
21034 # some people rename them; so instead we look at the file content.
21035 # Grep'ing the first line is not enough: some people post-process
21036 # each Makefile.in and add a new line on top of each file to say so.
21037 # Grep'ing the whole file is not good either: AIX grep has a line
21038 # limit of 2048, but all sed's we know have understand at least 4000.
21039 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21040 dirpart=`$as_dirname -- "$mf" ||
21041 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21042 X"$mf" : 'X\(//\)[^/]' \| \
21043 X"$mf" : 'X\(//\)$' \| \
21044 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21045 echo X"$mf" |
21046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21047 s//\1/
21050 /^X\(\/\/\)[^/].*/{
21051 s//\1/
21054 /^X\(\/\/\)$/{
21055 s//\1/
21058 /^X\(\/\).*/{
21059 s//\1/
21062 s/.*/./; q'`
21063 else
21064 continue
21066 # Extract the definition of DEPDIR, am__include, and am__quote
21067 # from the Makefile without running `make'.
21068 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21069 test -z "$DEPDIR" && continue
21070 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21071 test -z "am__include" && continue
21072 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21073 # When using ansi2knr, U may be empty or an underscore; expand it
21074 U=`sed -n 's/^U = //p' < "$mf"`
21075 # Find all dependency output files, they are included files with
21076 # $(DEPDIR) in their names. We invoke sed twice because it is the
21077 # simplest approach to changing $(DEPDIR) to its actual value in the
21078 # expansion.
21079 for file in `sed -n "
21080 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21081 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21082 # Make sure the directory exists.
21083 test -f "$dirpart/$file" && continue
21084 fdir=`$as_dirname -- "$file" ||
21085 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21086 X"$file" : 'X\(//\)[^/]' \| \
21087 X"$file" : 'X\(//\)$' \| \
21088 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21089 echo X"$file" |
21090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21091 s//\1/
21094 /^X\(\/\/\)[^/].*/{
21095 s//\1/
21098 /^X\(\/\/\)$/{
21099 s//\1/
21102 /^X\(\/\).*/{
21103 s//\1/
21106 s/.*/./; q'`
21107 { as_dir=$dirpart/$fdir
21108 case $as_dir in #(
21109 -*) as_dir=./$as_dir;;
21110 esac
21111 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21112 as_dirs=
21113 while :; do
21114 case $as_dir in #(
21115 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21116 *) as_qdir=$as_dir;;
21117 esac
21118 as_dirs="'$as_qdir' $as_dirs"
21119 as_dir=`$as_dirname -- "$as_dir" ||
21120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21121 X"$as_dir" : 'X\(//\)[^/]' \| \
21122 X"$as_dir" : 'X\(//\)$' \| \
21123 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21124 echo X"$as_dir" |
21125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21126 s//\1/
21129 /^X\(\/\/\)[^/].*/{
21130 s//\1/
21133 /^X\(\/\/\)$/{
21134 s//\1/
21137 /^X\(\/\).*/{
21138 s//\1/
21141 s/.*/./; q'`
21142 test -d "$as_dir" && break
21143 done
21144 test -z "$as_dirs" || eval "mkdir $as_dirs"
21145 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21146 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21147 { (exit 1); exit 1; }; }; }
21148 # echo "creating $dirpart/$file"
21149 echo '# dummy' > "$dirpart/$file"
21150 done
21151 done
21154 esac
21155 done # for ac_tag
21158 { (exit 0); exit 0; }
21159 _ACEOF
21160 chmod +x $CONFIG_STATUS
21161 ac_clean_files=$ac_clean_files_save
21164 # configure is writing to config.log, and then calls config.status.
21165 # config.status does its own redirection, appending to config.log.
21166 # Unfortunately, on DOS this fails, as config.log is still kept open
21167 # by configure, so config.status won't be able to write to it; its
21168 # output is simply discarded. So we exec the FD to /dev/null,
21169 # effectively closing config.log, so it can be properly (re)opened and
21170 # appended to by config.status. When coming back to configure, we
21171 # need to make the FD available again.
21172 if test "$no_create" != yes; then
21173 ac_cs_success=:
21174 ac_config_status_args=
21175 test "$silent" = yes &&
21176 ac_config_status_args="$ac_config_status_args --quiet"
21177 exec 5>/dev/null
21178 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21179 exec 5>>config.log
21180 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21181 # would make configure fail if this is the last instruction.
21182 $ac_cs_success || { (exit 1); exit 1; }
21186 # CONFIG_SUBDIRS section.
21188 if test "$no_recursion" != yes; then
21190 # Remove --cache-file and --srcdir arguments so they do not pile up.
21191 ac_sub_configure_args=
21192 ac_prev=
21193 eval "set x $ac_configure_args"
21194 shift
21195 for ac_arg
21197 if test -n "$ac_prev"; then
21198 ac_prev=
21199 continue
21201 case $ac_arg in
21202 -cache-file | --cache-file | --cache-fil | --cache-fi \
21203 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21204 ac_prev=cache_file ;;
21205 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21206 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21207 | --c=*)
21209 --config-cache | -C)
21211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21212 ac_prev=srcdir ;;
21213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21216 ac_prev=prefix ;;
21217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21220 case $ac_arg in
21221 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21222 esac
21223 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21224 esac
21225 done
21227 # Always prepend --prefix to ensure using the same prefix
21228 # in subdir configurations.
21229 ac_arg="--prefix=$prefix"
21230 case $ac_arg in
21231 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21232 esac
21233 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21235 # Pass --silent
21236 if test "$silent" = yes; then
21237 ac_sub_configure_args="--silent $ac_sub_configure_args"
21240 ac_popdir=`pwd`
21241 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21243 # Do not complain, so a configure script can configure whichever
21244 # parts of a large source tree are present.
21245 test -d "$srcdir/$ac_dir" || continue
21247 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21248 echo "$as_me:$LINENO: $ac_msg" >&5
21249 echo "$ac_msg" >&6
21250 { as_dir="$ac_dir"
21251 case $as_dir in #(
21252 -*) as_dir=./$as_dir;;
21253 esac
21254 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21255 as_dirs=
21256 while :; do
21257 case $as_dir in #(
21258 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21259 *) as_qdir=$as_dir;;
21260 esac
21261 as_dirs="'$as_qdir' $as_dirs"
21262 as_dir=`$as_dirname -- "$as_dir" ||
21263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21264 X"$as_dir" : 'X\(//\)[^/]' \| \
21265 X"$as_dir" : 'X\(//\)$' \| \
21266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21267 echo X"$as_dir" |
21268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21269 s//\1/
21272 /^X\(\/\/\)[^/].*/{
21273 s//\1/
21276 /^X\(\/\/\)$/{
21277 s//\1/
21280 /^X\(\/\).*/{
21281 s//\1/
21284 s/.*/./; q'`
21285 test -d "$as_dir" && break
21286 done
21287 test -z "$as_dirs" || eval "mkdir $as_dirs"
21288 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21289 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21290 { (exit 1); exit 1; }; }; }
21291 ac_builddir=.
21293 case "$ac_dir" in
21294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21296 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21297 # A ".." for each directory in $ac_dir_suffix.
21298 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21299 case $ac_top_builddir_sub in
21300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21302 esac ;;
21303 esac
21304 ac_abs_top_builddir=$ac_pwd
21305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21306 # for backward compatibility:
21307 ac_top_builddir=$ac_top_build_prefix
21309 case $srcdir in
21310 .) # We are building in place.
21311 ac_srcdir=.
21312 ac_top_srcdir=$ac_top_builddir_sub
21313 ac_abs_top_srcdir=$ac_pwd ;;
21314 [\\/]* | ?:[\\/]* ) # Absolute name.
21315 ac_srcdir=$srcdir$ac_dir_suffix;
21316 ac_top_srcdir=$srcdir
21317 ac_abs_top_srcdir=$srcdir ;;
21318 *) # Relative name.
21319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21320 ac_top_srcdir=$ac_top_build_prefix$srcdir
21321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21322 esac
21323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21326 cd "$ac_dir"
21328 # Check for guested configure; otherwise get Cygnus style configure.
21329 if test -f "$ac_srcdir/configure.gnu"; then
21330 ac_sub_configure=$ac_srcdir/configure.gnu
21331 elif test -f "$ac_srcdir/configure"; then
21332 ac_sub_configure=$ac_srcdir/configure
21333 elif test -f "$ac_srcdir/configure.in"; then
21334 # This should be Cygnus configure.
21335 ac_sub_configure=$ac_aux_dir/configure
21336 else
21337 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21338 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21339 ac_sub_configure=
21342 # The recursion is here.
21343 if test -n "$ac_sub_configure"; then
21344 # Make the cache file name correct relative to the subdirectory.
21345 case $cache_file in
21346 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21347 *) # Relative name.
21348 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21349 esac
21351 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21352 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21353 # The eval makes quoting arguments work.
21354 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21355 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21356 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21357 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21358 { (exit 1); exit 1; }; }
21361 cd "$ac_popdir"
21362 done