Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / openldap / dist / contrib / ldapc++ / configure
blobd97626ba35e3efb36603684ef5900ebc7b081a88
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/contrib/ldapc++/configure.in,v 1.8.2.7 2008/07/09 21:59:44 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for ldapcpplib .
6 # Report bugs to <http://www.openldap.org/its/ >.
8 # Copyright 2000-2008 The OpenLDAP Foundation. All rights reserved.
9 # Restrictions apply, see COPYRIGHT and LICENSE files.
11 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
12 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## --------------------- ##
16 ## M4sh Initialization. ##
17 ## --------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 emulate sh
23 NULLCMD=:
24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in
30 *posix*) set -o posix ;;
31 esac
38 # PATH needs CR
39 # Avoid depending upon Character Ranges.
40 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43 as_cr_digits='0123456789'
44 as_cr_alnum=$as_cr_Letters$as_cr_digits
46 # The user is always right.
47 if test "${PATH_SEPARATOR+set}" != set; then
48 echo "#! /bin/sh" >conf$$.sh
49 echo "exit 0" >>conf$$.sh
50 chmod +x conf$$.sh
51 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52 PATH_SEPARATOR=';'
53 else
54 PATH_SEPARATOR=:
56 rm -f conf$$.sh
59 # Support unset when possible.
60 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61 as_unset=unset
62 else
63 as_unset=false
67 # IFS
68 # We need space, tab and new line, in precisely that order. Quoting is
69 # there to prevent editors from complaining about space-tab.
70 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
71 # splitting by setting IFS to empty value.)
72 as_nl='
74 IFS=" "" $as_nl"
76 # Find who we are. Look in the path if we contain no directory separator.
77 case $0 in
78 *[\\/]* ) as_myself=$0 ;;
79 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 for as_dir in $PATH
82 IFS=$as_save_IFS
83 test -z "$as_dir" && as_dir=.
84 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 done
86 IFS=$as_save_IFS
89 esac
90 # We did not find ourselves, most probably we were run as `sh COMMAND'
91 # in which case we are not to be found in the path.
92 if test "x$as_myself" = x; then
93 as_myself=$0
95 if test ! -f "$as_myself"; then
96 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 { (exit 1); exit 1; }
100 # Work around bugs in pre-3.0 UWIN ksh.
101 for as_var in ENV MAIL MAILPATH
102 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 done
104 PS1='$ '
105 PS2='> '
106 PS4='+ '
108 # NLS nuisances.
109 for as_var in \
110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 LC_TELEPHONE LC_TIME
114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
115 eval $as_var=C; export $as_var
116 else
117 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 done
121 # Required to use basename.
122 if expr a : '\(a\)' >/dev/null 2>&1 &&
123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 as_expr=expr
125 else
126 as_expr=false
129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 as_basename=basename
131 else
132 as_basename=false
136 # Name of the executable.
137 as_me=`$as_basename -- "$0" ||
138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
139 X"$0" : 'X\(//\)$' \| \
140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 echo X/"$0" |
142 sed '/^.*\/\([^/][^/]*\)\/*$/{
143 s//\1/
146 /^X\/\(\/\/\)$/{
147 s//\1/
150 /^X\/\(\/\).*/{
151 s//\1/
154 s/.*/./; q'`
156 # CDPATH.
157 $as_unset CDPATH
160 if test "x$CONFIG_SHELL" = x; then
161 if (eval ":") 2>/dev/null; then
162 as_have_required=yes
163 else
164 as_have_required=no
167 if test $as_have_required = yes && (eval ":
168 (as_func_return () {
169 (exit \$1)
171 as_func_success () {
172 as_func_return 0
174 as_func_failure () {
175 as_func_return 1
177 as_func_ret_success () {
178 return 0
180 as_func_ret_failure () {
181 return 1
184 exitcode=0
185 if as_func_success; then
187 else
188 exitcode=1
189 echo as_func_success failed.
192 if as_func_failure; then
193 exitcode=1
194 echo as_func_failure succeeded.
197 if as_func_ret_success; then
199 else
200 exitcode=1
201 echo as_func_ret_success failed.
204 if as_func_ret_failure; then
205 exitcode=1
206 echo as_func_ret_failure succeeded.
209 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 else
212 exitcode=1
213 echo positional parameters were not saved.
216 test \$exitcode = 0) || { (exit 1); exit 1; }
219 as_lineno_1=\$LINENO
220 as_lineno_2=\$LINENO
221 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
222 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
223 ") 2> /dev/null; then
225 else
226 as_candidate_shells=
227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
228 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
230 IFS=$as_save_IFS
231 test -z "$as_dir" && as_dir=.
232 case $as_dir in
234 for as_base in sh bash ksh sh5; do
235 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 done;;
237 esac
238 done
239 IFS=$as_save_IFS
242 for as_shell in $as_candidate_shells $SHELL; do
243 # Try only shells that exist, to save several forks.
244 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
245 { ("$as_shell") 2> /dev/null <<\_ASEOF
246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 emulate sh
248 NULLCMD=:
249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
250 # is contrary to our usage. Disable this feature.
251 alias -g '${1+"$@"}'='"$@"'
252 setopt NO_GLOB_SUBST
253 else
254 case `(set -o) 2>/dev/null` in
255 *posix*) set -o posix ;;
256 esac
262 _ASEOF
263 }; then
264 CONFIG_SHELL=$as_shell
265 as_have_required=yes
266 if { "$as_shell" 2> /dev/null <<\_ASEOF
267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 emulate sh
269 NULLCMD=:
270 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
271 # is contrary to our usage. Disable this feature.
272 alias -g '${1+"$@"}'='"$@"'
273 setopt NO_GLOB_SUBST
274 else
275 case `(set -o) 2>/dev/null` in
276 *posix*) set -o posix ;;
277 esac
283 (as_func_return () {
284 (exit $1)
286 as_func_success () {
287 as_func_return 0
289 as_func_failure () {
290 as_func_return 1
292 as_func_ret_success () {
293 return 0
295 as_func_ret_failure () {
296 return 1
299 exitcode=0
300 if as_func_success; then
302 else
303 exitcode=1
304 echo as_func_success failed.
307 if as_func_failure; then
308 exitcode=1
309 echo as_func_failure succeeded.
312 if as_func_ret_success; then
314 else
315 exitcode=1
316 echo as_func_ret_success failed.
319 if as_func_ret_failure; then
320 exitcode=1
321 echo as_func_ret_failure succeeded.
324 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 else
327 exitcode=1
328 echo positional parameters were not saved.
331 test $exitcode = 0) || { (exit 1); exit 1; }
334 as_lineno_1=$LINENO
335 as_lineno_2=$LINENO
336 test "x$as_lineno_1" != "x$as_lineno_2" &&
337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
339 _ASEOF
340 }; then
341 break
346 done
348 if test "x$CONFIG_SHELL" != x; then
349 for as_var in BASH_ENV ENV
350 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 done
352 export CONFIG_SHELL
353 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
357 if test $as_have_required = no; then
358 echo This script requires a shell more modern than all the
359 echo shells that I found on your system. Please install a
360 echo modern shell, or manually run the script under such a
361 echo shell if you do have one.
362 { (exit 1); exit 1; }
372 (eval "as_func_return () {
373 (exit \$1)
375 as_func_success () {
376 as_func_return 0
378 as_func_failure () {
379 as_func_return 1
381 as_func_ret_success () {
382 return 0
384 as_func_ret_failure () {
385 return 1
388 exitcode=0
389 if as_func_success; then
391 else
392 exitcode=1
393 echo as_func_success failed.
396 if as_func_failure; then
397 exitcode=1
398 echo as_func_failure succeeded.
401 if as_func_ret_success; then
403 else
404 exitcode=1
405 echo as_func_ret_success failed.
408 if as_func_ret_failure; then
409 exitcode=1
410 echo as_func_ret_failure succeeded.
413 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 else
416 exitcode=1
417 echo positional parameters were not saved.
420 test \$exitcode = 0") || {
421 echo No shell found that supports shell functions.
422 echo Please tell autoconf@gnu.org about your system,
423 echo including any error possibly output before this
424 echo message
429 as_lineno_1=$LINENO
430 as_lineno_2=$LINENO
431 test "x$as_lineno_1" != "x$as_lineno_2" &&
432 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
434 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
435 # uniformly replaced by the line number. The first 'sed' inserts a
436 # line-number line after each line using $LINENO; the second 'sed'
437 # does the real work. The second script uses 'N' to pair each
438 # line-number line with the line containing $LINENO, and appends
439 # trailing '-' during substitution so that $LINENO is not a special
440 # case at line end.
441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
442 # scripts with optimization help from Paolo Bonzini. Blame Lee
443 # E. McMahon (1931-1989) for sed's syntax. :-)
444 sed -n '
446 /[$]LINENO/=
447 ' <$as_myself |
448 sed '
449 s/[$]LINENO.*/&-/
450 t lineno
452 :lineno
454 :loop
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 t loop
457 s/-\n.*//
458 ' >$as_me.lineno &&
459 chmod +x "$as_me.lineno" ||
460 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
461 { (exit 1); exit 1; }; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 as_dirname=dirname
474 else
475 as_dirname=false
478 ECHO_C= ECHO_N= ECHO_T=
479 case `echo -n x` in
480 -n*)
481 case `echo 'x\c'` in
482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 *) ECHO_C='\c';;
484 esac;;
486 ECHO_N='-n';;
487 esac
489 if expr a : '\(a\)' >/dev/null 2>&1 &&
490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 as_expr=expr
492 else
493 as_expr=false
496 rm -f conf$$ conf$$.exe conf$$.file
497 if test -d conf$$.dir; then
498 rm -f conf$$.dir/conf$$.file
499 else
500 rm -f conf$$.dir
501 mkdir conf$$.dir
503 echo >conf$$.file
504 if ln -s conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s='ln -s'
506 # ... but there are two gotchas:
507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
509 # In both cases, we have to default to `cp -p'.
510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
511 as_ln_s='cp -p'
512 elif ln conf$$.file conf$$ 2>/dev/null; then
513 as_ln_s=ln
514 else
515 as_ln_s='cp -p'
517 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
518 rmdir conf$$.dir 2>/dev/null
520 if mkdir -p . 2>/dev/null; then
521 as_mkdir_p=:
522 else
523 test -d ./-p && rmdir ./-p
524 as_mkdir_p=false
527 if test -x / >/dev/null 2>&1; then
528 as_test_x='test -x'
529 else
530 if ls -dL / >/dev/null 2>&1; then
531 as_ls_L_option=L
532 else
533 as_ls_L_option=
535 as_test_x='
536 eval sh -c '\''
537 if test -d "$1"; then
538 test -d "$1/.";
539 else
540 case $1 in
541 -*)set "./$1";;
542 esac;
543 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
544 ???[sx]*):;;*)false;;esac;fi
545 '\'' sh
548 as_executable_p=$as_test_x
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 # Check that we are running under the correct shell.
560 SHELL=${CONFIG_SHELL-/bin/sh}
562 case X$ECHO in
563 X*--fallback-echo)
564 # Remove one level of quotation (which was required for Make).
565 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 esac
569 echo=${ECHO-echo}
570 if test "X$1" = X--no-reexec; then
571 # Discard the --no-reexec flag, and continue.
572 shift
573 elif test "X$1" = X--fallback-echo; then
574 # Avoid inline document here, it may be left over
576 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
577 # Yippee, $echo works!
579 else
580 # Restart under the correct shell.
581 exec $SHELL "$0" --no-reexec ${1+"$@"}
584 if test "X$1" = X--fallback-echo; then
585 # used as fallback echo
586 shift
587 cat <<EOF
590 exit 0
593 # The HP-UX ksh and POSIX shell print the target directory to stdout
594 # if CDPATH is set.
595 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
597 if test -z "$ECHO"; then
598 if test "X${echo_test_string+set}" != Xset; then
599 # find a string as large as possible, as long as the shell can cope with it
600 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
601 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
602 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
603 echo_test_string=`eval $cmd` &&
604 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 then
606 break
608 done
611 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
615 else
616 # The Solaris, AIX, and Digital Unix default echo programs unquote
617 # backslashes. This makes it impossible to quote backslashes using
618 # echo "$something" | sed 's/\\/\\\\/g'
620 # So, first we look for a working echo in the user's PATH.
622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
623 for dir in $PATH /usr/ucb; do
624 IFS="$lt_save_ifs"
625 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
626 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 echo="$dir/echo"
630 break
632 done
633 IFS="$lt_save_ifs"
635 if test "X$echo" = Xecho; then
636 # We didn't find a better echo, so look for alternatives.
637 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
638 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 # This shell has a builtin print -r that does the trick.
641 echo='print -r'
642 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
643 test "X$CONFIG_SHELL" != X/bin/ksh; then
644 # If we have ksh, try running configure again with it.
645 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
646 export ORIGINAL_CONFIG_SHELL
647 CONFIG_SHELL=/bin/ksh
648 export CONFIG_SHELL
649 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 else
651 # Try using printf.
652 echo='printf %s\n'
653 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # Cool, printf works
658 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
659 test "X$echo_testing_string" = 'X\t' &&
660 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
662 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
663 export CONFIG_SHELL
664 SHELL="$CONFIG_SHELL"
665 export SHELL
666 echo="$CONFIG_SHELL $0 --fallback-echo"
667 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668 test "X$echo_testing_string" = 'X\t' &&
669 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 echo="$CONFIG_SHELL $0 --fallback-echo"
672 else
673 # maybe with a smaller string...
674 prev=:
676 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
677 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 then
679 break
681 prev="$cmd"
682 done
684 if test "$prev" != 'sed 50q "$0"'; then
685 echo_test_string=`eval $prev`
686 export echo_test_string
687 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
688 else
689 # Oops. We lost completely, so just stick with echo.
690 echo=echo
698 # Copy echo and quote the copy suitably for passing to libtool from
699 # the Makefile, instead of quoting the original, which is used later.
700 ECHO=$echo
701 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
702 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
708 tagnames=${tagnames+${tagnames},}CXX
710 tagnames=${tagnames+${tagnames},}F77
712 exec 7<&0 </dev/null 6>&1
714 # Name of the host.
715 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
720 # Initializations.
722 ac_default_prefix=/usr/local
723 ac_clean_files=
724 ac_config_libobj_dir=.
725 LIBOBJS=
726 cross_compiling=no
727 subdirs=
728 MFLAGS=
729 MAKEFLAGS=
730 SHELL=${CONFIG_SHELL-/bin/sh}
732 # Identity of this package.
733 PACKAGE_NAME='ldapcpplib'
734 PACKAGE_TARNAME='ldapcpplib'
735 PACKAGE_VERSION=' '
736 PACKAGE_STRING='ldapcpplib '
737 PACKAGE_BUGREPORT='http://www.openldap.org/its/ '
739 ac_unique_file="src/LDAPConnection.h"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
742 #include <stdio.h>
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
745 #endif
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
748 #endif
749 #ifdef STDC_HEADERS
750 # include <stdlib.h>
751 # include <stddef.h>
752 #else
753 # ifdef HAVE_STDLIB_H
754 # include <stdlib.h>
755 # endif
756 #endif
757 #ifdef HAVE_STRING_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 # include <memory.h>
760 # endif
761 # include <string.h>
762 #endif
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
765 #endif
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
768 #endif
769 #ifdef HAVE_STDINT_H
770 # include <stdint.h>
771 #endif
772 #ifdef HAVE_UNISTD_H
773 # include <unistd.h>
774 #endif"
776 ac_subst_vars='SHELL
777 PATH_SEPARATOR
778 PACKAGE_NAME
779 PACKAGE_TARNAME
780 PACKAGE_VERSION
781 PACKAGE_STRING
782 PACKAGE_BUGREPORT
783 exec_prefix
784 prefix
785 program_transform_name
786 bindir
787 sbindir
788 libexecdir
789 datarootdir
790 datadir
791 sysconfdir
792 sharedstatedir
793 localstatedir
794 includedir
795 oldincludedir
796 docdir
797 infodir
798 htmldir
799 dvidir
800 pdfdir
801 psdir
802 libdir
803 localedir
804 mandir
805 DEFS
806 ECHO_C
807 ECHO_N
808 ECHO_T
809 LIBS
810 build_alias
811 host_alias
812 target_alias
813 INSTALL_PROGRAM
814 INSTALL_SCRIPT
815 INSTALL_DATA
816 am__isrc
817 CYGPATH_W
818 PACKAGE
819 VERSION
820 ACLOCAL
821 AUTOCONF
822 AUTOMAKE
823 AUTOHEADER
824 MAKEINFO
825 install_sh
826 STRIP
827 INSTALL_STRIP_PROGRAM
828 mkdir_p
830 SET_MAKE
831 am__leading_dot
832 AMTAR
833 am__tar
834 am__untar
835 OPENLDAP_CPP_API_VERSION
837 CXXFLAGS
838 LDFLAGS
839 CPPFLAGS
840 ac_ct_CXX
841 EXEEXT
842 OBJEXT
843 DEPDIR
844 am__include
845 am__quote
846 AMDEP_TRUE
847 AMDEP_FALSE
848 AMDEPBACKSLASH
849 CXXDEPMODE
850 am__fastdepCXX_TRUE
851 am__fastdepCXX_FALSE
852 build
853 build_cpu
854 build_vendor
855 build_os
856 host
857 host_cpu
858 host_vendor
859 host_os
861 CFLAGS
862 ac_ct_CC
863 CCDEPMODE
864 am__fastdepCC_TRUE
865 am__fastdepCC_FALSE
867 GREP
868 EGREP
869 LN_S
870 ECHO
872 RANLIB
873 DSYMUTIL
874 NMEDIT
876 CXXCPP
878 FFLAGS
879 ac_ct_F77
880 LIBTOOL
881 LIBOBJS
882 LTLIBOBJS'
883 ac_subst_files=''
884 ac_precious_vars='build_alias
885 host_alias
886 target_alias
888 CXXFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
894 CFLAGS
896 CXXCPP
898 FFLAGS'
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
947 ac_prev=
948 ac_dashdash=
949 for ac_option
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
958 case $ac_option in
959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *) ac_optarg=yes ;;
961 esac
963 # Accept the important Cygnus configure options, so we can diagnose typos.
965 case $ac_dashdash$ac_option in
967 ac_dashdash=yes ;;
969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 ac_prev=bindir ;;
971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 bindir=$ac_optarg ;;
974 -build | --build | --buil | --bui | --bu)
975 ac_prev=build_alias ;;
976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
977 build_alias=$ac_optarg ;;
979 -cache-file | --cache-file | --cache-fil | --cache-fi \
980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
981 ac_prev=cache_file ;;
982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
984 cache_file=$ac_optarg ;;
986 --config-cache | -C)
987 cache_file=config.cache ;;
989 -datadir | --datadir | --datadi | --datad)
990 ac_prev=datadir ;;
991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
992 datadir=$ac_optarg ;;
994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
995 | --dataroo | --dataro | --datar)
996 ac_prev=datarootdir ;;
997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
999 datarootdir=$ac_optarg ;;
1001 -disable-* | --disable-*)
1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1008 eval enable_$ac_feature=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1027 eval enable_$ac_feature=\$ac_optarg ;;
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1107 no_create=yes ;;
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
1176 sbindir=$ac_optarg ;;
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
1187 sharedstatedir=$ac_optarg ;;
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
1192 site=$ac_optarg ;;
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197 srcdir=$ac_optarg ;;
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204 sysconfdir=$ac_optarg ;;
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
1207 ac_prev=target_alias ;;
1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209 target_alias=$ac_optarg ;;
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
1217 -with-* | --with-*)
1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224 eval with_$ac_package=\$ac_optarg ;;
1226 -without-* | --without-*)
1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=no ;;
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) { echo "$as_me: error: unrecognized option: $ac_option
1254 Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
1258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263 { (exit 1); exit 1; }; }
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 esac
1276 done
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 { echo "$as_me: error: missing argument to $ac_option" >&2
1281 { (exit 1); exit 1; }; }
1284 # Be sure to have absolute directory names.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1290 eval ac_val=\$$ac_var
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1296 { (exit 1); exit 1; }; }
1297 done
1299 # There might be people who depend on the old broken behavior: `$host'
1300 # used to hold the argument of --host etc.
1301 # FIXME: To remove some day.
1302 build=$build_alias
1303 host=$host_alias
1304 target=$target_alias
1306 # FIXME: To remove some day.
1307 if test "x$host_alias" != x; then
1308 if test "x$build_alias" = x; then
1309 cross_compiling=maybe
1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1311 If a cross compiler is detected then cross compile mode will be used." >&2
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320 test "$silent" = yes && exec 6>/dev/null
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 { echo "$as_me: error: Working directory cannot be determined" >&2
1327 { (exit 1); exit 1; }; }
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 { echo "$as_me: error: pwd does not report name of working directory" >&2
1330 { (exit 1); exit 1; }; }
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$0" ||
1338 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$0" : 'X\(//\)[^/]' \| \
1340 X"$0" : 'X\(//\)$' \| \
1341 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1342 echo X"$0" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1351 /^X\(\/\/\)$/{
1352 s//\1/
1355 /^X\(\/\).*/{
1356 s//\1/
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1364 else
1365 ac_srcdir_defaulted=no
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1370 { (exit 1); exit 1; }; }
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1375 { (exit 1); exit 1; }; }
1376 pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1395 # Report the --help message.
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401 \`configure' configures ldapcpplib to adapt to many kinds of systems.
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1408 Defaults for the options are specified in brackets.
1410 Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1432 For better control, use the options below.
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454 _ACEOF
1456 cat <<\_ACEOF
1458 Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 _ACEOF
1469 if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of ldapcpplib :";;
1472 esac
1473 cat <<\_ACEOF
1475 Optional Features:
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --enable-debug
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-tags[=TAGS] include additional configurations [automatic]
1494 --with-libldap=DIR Path to the libldap library /usr/local/lib
1495 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1497 Some influential environment variables:
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 CPP C preprocessor
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to <http://www.openldap.org/its/ >.
1516 _ACEOF
1517 ac_status=$?
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1524 ac_builddir=.
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 ldapcpplib configure
1577 generated by GNU Autoconf 2.61
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1584 Copyright 2000-2008 The OpenLDAP Foundation. All rights reserved.
1585 Restrictions apply, see COPYRIGHT and LICENSE files.
1586 _ACEOF
1587 exit
1589 cat >config.log <<_ACEOF
1590 This file contains any messages produced by compilers while
1591 running configure, to aid debugging if configure makes a mistake.
1593 It was created by ldapcpplib $as_me , which was
1594 generated by GNU Autoconf 2.61. Invocation command line was
1596 $ $0 $@
1598 _ACEOF
1599 exec 5>>config.log
1601 cat <<_ASUNAME
1602 ## --------- ##
1603 ## Platform. ##
1604 ## --------- ##
1606 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1615 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1619 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1623 _ASUNAME
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1631 done
1632 IFS=$as_save_IFS
1634 } >&5
1636 cat >&5 <<_ACEOF
1639 ## ----------- ##
1640 ## Core tests. ##
1641 ## ----------- ##
1643 _ACEOF
1646 # Keep a trace of the command line.
1647 # Strip out --no-create and --no-recursion so they do not pile up.
1648 # Strip out --silent because we don't want to record it for future runs.
1649 # Also quote any args containing shell meta-characters.
1650 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_configure_args=
1652 ac_configure_args0=
1653 ac_configure_args1=
1654 ac_must_keep_next=false
1655 for ac_pass in 1 2
1657 for ac_arg
1659 case $ac_arg in
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 continue ;;
1664 *\'*)
1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 esac
1667 case $ac_pass in
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
1672 ac_must_keep_next=false # Got value, back to normal.
1673 else
1674 case $ac_arg in
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 esac
1683 -* ) ac_must_keep_next=true ;;
1684 esac
1686 ac_configure_args="$ac_configure_args '$ac_arg'"
1688 esac
1689 done
1690 done
1691 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694 # When interrupted or exit'd, cleanup temporary files, and complete
1695 # config.log. We remove comments because anyway the quotes in there
1696 # would cause problems or look ugly.
1697 # WARNING: Use '\'' to represent an apostrophe within the trap.
1698 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699 trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
1702 echo
1704 cat <<\_ASBOX
1705 ## ---------------- ##
1706 ## Cache variables. ##
1707 ## ---------------- ##
1708 _ASBOX
1709 echo
1710 # The following way of writing the cache mishandles newlines in values,
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1714 case $ac_val in #(
1715 *${as_nl}*)
1716 case $ac_var in #(
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 esac
1720 case $ac_var in #(
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
1726 (set) 2>&1 |
1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1729 sed -n \
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736 esac |
1737 sort
1739 echo
1741 cat <<\_ASBOX
1742 ## ----------------- ##
1743 ## Output variables. ##
1744 ## ----------------- ##
1745 _ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
1754 done | sort
1755 echo
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
1759 ## ------------------- ##
1760 ## File substitutions. ##
1761 ## ------------------- ##
1762 _ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 echo "$ac_var='\''$ac_val'\''"
1771 done | sort
1772 echo
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777 ## ----------- ##
1778 ## confdefs.h. ##
1779 ## ----------- ##
1780 _ASBOX
1781 echo
1782 cat confdefs.h
1783 echo
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1788 } >&5
1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791 exit $exit_status
1793 for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 done
1796 ac_signal=0
1798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1799 rm -f -r conftest* confdefs.h
1801 # Predefined preprocessor variables.
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 _ACEOF
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 _ACEOF
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 _ACEOF
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 _ACEOF
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 _ACEOF
1828 # Let the site file select an alternate cache file if it wants to.
1829 # Prefer explicitly selected file to automatically selected ones.
1830 if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832 elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 else
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
1838 shift
1839 for ac_site_file
1841 if test -r "$ac_site_file"; then
1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1845 . "$ac_site_file"
1847 done
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1858 esac
1860 else
1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1866 # Check that the precious variables saved in the cache have kept the same
1867 # value.
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1875 set,)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,set)
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,);;
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889 echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891 echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1893 fi;;
1894 esac
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1897 case $ac_new_val in
1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 *) ac_arg=$ac_var=$ac_new_val ;;
1900 esac
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 esac
1906 done
1907 if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1939 ac_ext=c
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 am__api_version='1.10'
1949 ac_aux_dir=
1950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1951 if test -f "$ac_dir/install-sh"; then
1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 break
1955 elif test -f "$ac_dir/install.sh"; then
1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 break
1959 elif test -f "$ac_dir/shtool"; then
1960 ac_aux_dir=$ac_dir
1961 ac_install_sh="$ac_aux_dir/shtool install -c"
1962 break
1964 done
1965 if test -z "$ac_aux_dir"; then
1966 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1968 { (exit 1); exit 1; }; }
1971 # These three variables are undocumented and unsupported,
1972 # and are intended to be withdrawn in a future Autoconf release.
1973 # They can cause serious problems if a builder's source tree is in a directory
1974 # whose full name contains unusual characters.
1975 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1976 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1977 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1980 # Find a good install program. We prefer a C program (faster),
1981 # so one script is as good as another. But avoid the broken or
1982 # incompatible versions:
1983 # SysV /etc/install, /usr/sbin/install
1984 # SunOS /usr/etc/install
1985 # IRIX /sbin/install
1986 # AIX /bin/install
1987 # AmigaOS /C/install, which installs bootblocks on floppy discs
1988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991 # OS/2's system install, which has a completely different semantic
1992 # ./install, which can be erroneously created by make from ./install.sh.
1993 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1995 if test -z "$INSTALL"; then
1996 if test "${ac_cv_path_install+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 # Account for people who put trailing slashes in PATH elements.
2005 case $as_dir/ in
2006 ./ | .// | /cC/* | \
2007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2009 /usr/ucb/* ) ;;
2011 # OSF1 and SCO ODT 3.0 have their own names for install.
2012 # Don't use installbsd from OSF since it installs stuff as root
2013 # by default.
2014 for ac_prog in ginstall scoinst install; do
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017 if test $ac_prog = install &&
2018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019 # AIX install. It has an incompatible calling convention.
2021 elif test $ac_prog = install &&
2022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023 # program-specific install script used by HP pwplus--don't use.
2025 else
2026 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2027 break 3
2030 done
2031 done
2033 esac
2034 done
2035 IFS=$as_save_IFS
2039 if test "${ac_cv_path_install+set}" = set; then
2040 INSTALL=$ac_cv_path_install
2041 else
2042 # As a last resort, use the slow shell script. Don't cache a
2043 # value for INSTALL within a source directory, because that will
2044 # break other packages using the cache if that directory is
2045 # removed, or if the value is a relative name.
2046 INSTALL=$ac_install_sh
2049 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2050 echo "${ECHO_T}$INSTALL" >&6; }
2052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053 # It thinks the first close brace ends the variable substitution.
2054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2058 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2060 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2061 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2062 # Just in case
2063 sleep 1
2064 echo timestamp > conftest.file
2065 # Do `set' in a subshell so we don't clobber the current shell's
2066 # arguments. Must try -L first in case configure is actually a
2067 # symlink; some systems play weird games with the mod time of symlinks
2068 # (eg FreeBSD returns the mod time of the symlink's containing
2069 # directory).
2070 if (
2071 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2072 if test "$*" = "X"; then
2073 # -L didn't work.
2074 set X `ls -t $srcdir/configure conftest.file`
2076 rm -f conftest.file
2077 if test "$*" != "X $srcdir/configure conftest.file" \
2078 && test "$*" != "X conftest.file $srcdir/configure"; then
2080 # If neither matched, then we have a broken ls. This can happen
2081 # if, for instance, CONFIG_SHELL is bash and it inherits a
2082 # broken ls alias from the environment. This has actually
2083 # happened. Such a system could not be considered "sane".
2084 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2085 alias in your environment" >&5
2086 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2087 alias in your environment" >&2;}
2088 { (exit 1); exit 1; }; }
2091 test "$2" = conftest.file
2093 then
2094 # Ok.
2096 else
2097 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2098 Check your system clock" >&5
2099 echo "$as_me: error: newly created file is older than distributed files!
2100 Check your system clock" >&2;}
2101 { (exit 1); exit 1; }; }
2103 { echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6; }
2105 test "$program_prefix" != NONE &&
2106 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2107 # Use a double $ so make ignores it.
2108 test "$program_suffix" != NONE &&
2109 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2110 # Double any \ or $. echo might interpret backslashes.
2111 # By default was `s,x,x', remove it if useless.
2112 cat <<\_ACEOF >conftest.sed
2113 s/[\\$]/&&/g;s/;s,x,x,$//
2114 _ACEOF
2115 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2116 rm -f conftest.sed
2118 # expand $ac_aux_dir to an absolute path
2119 am_aux_dir=`cd $ac_aux_dir && pwd`
2121 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2122 # Use eval to expand $SHELL
2123 if eval "$MISSING --run true"; then
2124 am_missing_run="$MISSING --run "
2125 else
2126 am_missing_run=
2127 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2128 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2131 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2132 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2133 if test -z "$MKDIR_P"; then
2134 if test "${ac_cv_path_mkdir+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_prog in mkdir gmkdir; do
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2145 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2146 'mkdir (GNU coreutils) '* | \
2147 'mkdir (coreutils) '* | \
2148 'mkdir (fileutils) '4.1*)
2149 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2150 break 3;;
2151 esac
2152 done
2153 done
2154 done
2155 IFS=$as_save_IFS
2159 if test "${ac_cv_path_mkdir+set}" = set; then
2160 MKDIR_P="$ac_cv_path_mkdir -p"
2161 else
2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for MKDIR_P within a source directory, because that will
2164 # break other packages using the cache if that directory is
2165 # removed, or if the value is a relative name.
2166 test -d ./--version && rmdir ./--version
2167 MKDIR_P="$ac_install_sh -d"
2170 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2171 echo "${ECHO_T}$MKDIR_P" >&6; }
2173 mkdir_p="$MKDIR_P"
2174 case $mkdir_p in
2175 [\\/$]* | ?:[\\/]*) ;;
2176 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2177 esac
2179 for ac_prog in gawk mawk nawk awk
2181 # Extract the first word of "$ac_prog", so it can be a program name with args.
2182 set dummy $ac_prog; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_AWK+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$AWK"; then
2189 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_AWK="$ac_prog"
2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2202 done
2203 done
2204 IFS=$as_save_IFS
2208 AWK=$ac_cv_prog_AWK
2209 if test -n "$AWK"; then
2210 { echo "$as_me:$LINENO: result: $AWK" >&5
2211 echo "${ECHO_T}$AWK" >&6; }
2212 else
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2218 test -n "$AWK" && break
2219 done
2221 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2222 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2223 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2224 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 cat >conftest.make <<\_ACEOF
2228 SHELL = /bin/sh
2229 all:
2230 @echo '@@@%%%=$(MAKE)=@@@%%%'
2231 _ACEOF
2232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2233 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2234 *@@@%%%=?*=@@@%%%*)
2235 eval ac_cv_prog_make_${ac_make}_set=yes;;
2237 eval ac_cv_prog_make_${ac_make}_set=no;;
2238 esac
2239 rm -f conftest.make
2241 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2242 { echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6; }
2244 SET_MAKE=
2245 else
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2248 SET_MAKE="MAKE=${MAKE-make}"
2251 rm -rf .tst 2>/dev/null
2252 mkdir .tst 2>/dev/null
2253 if test -d .tst; then
2254 am__leading_dot=.
2255 else
2256 am__leading_dot=_
2258 rmdir .tst 2>/dev/null
2260 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2261 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2262 # is not polluted with repeated "-I."
2263 am__isrc=' -I$(srcdir)'
2264 # test to see if srcdir already configured
2265 if test -f $srcdir/config.status; then
2266 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2267 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2268 { (exit 1); exit 1; }; }
2272 # test whether we have cygpath
2273 if test -z "$CYGPATH_W"; then
2274 if (cygpath --version) >/dev/null 2>/dev/null; then
2275 CYGPATH_W='cygpath -w'
2276 else
2277 CYGPATH_W=echo
2282 # Define the identity of the package.
2283 PACKAGE='ldapcpplib'
2284 VERSION=' '
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE "$PACKAGE"
2289 _ACEOF
2292 cat >>confdefs.h <<_ACEOF
2293 #define VERSION "$VERSION"
2294 _ACEOF
2296 # Some tools Automake needs.
2298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2312 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2314 # Installed binaries are usually stripped using `strip' when the user
2315 # run `make install-strip'. However `strip' might not be the right
2316 # tool to use in cross-compilation environments, therefore Automake
2317 # will honor the `STRIP' environment variable to overrule this program.
2318 if test "$cross_compiling" != no; then
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_STRIP+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327 if test -n "$STRIP"; then
2328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 break 2
2341 done
2342 done
2343 IFS=$as_save_IFS
2347 STRIP=$ac_cv_prog_STRIP
2348 if test -n "$STRIP"; then
2349 { echo "$as_me:$LINENO: result: $STRIP" >&5
2350 echo "${ECHO_T}$STRIP" >&6; }
2351 else
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2358 if test -z "$ac_cv_prog_STRIP"; then
2359 ac_ct_STRIP=$STRIP
2360 # Extract the first word of "strip", so it can be a program name with args.
2361 set dummy strip; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 if test -n "$ac_ct_STRIP"; then
2368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_STRIP="strip"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2381 done
2382 done
2383 IFS=$as_save_IFS
2387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2388 if test -n "$ac_ct_STRIP"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2391 else
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2396 if test "x$ac_ct_STRIP" = x; then
2397 STRIP=":"
2398 else
2399 case $cross_compiling:$ac_tool_warned in
2400 yes:)
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409 STRIP=$ac_ct_STRIP
2411 else
2412 STRIP="$ac_cv_prog_STRIP"
2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2418 # We need awk for the "check" target. The system "awk" is bad on
2419 # some platforms.
2420 # Always define AMTAR for backward compatibility.
2422 AMTAR=${AMTAR-"${am_missing_run}tar"}
2424 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2430 ac_config_headers="$ac_config_headers src/config.h"
2433 eval `$ac_aux_dir/version.sh`
2434 if test -z "$OL_CPP_API_RELEASE"; then
2435 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2436 echo "$as_me: error: could not determine version" >&2;}
2437 { (exit 1); exit 1; }; }
2440 VERSION=$OL_CPP_API_RELEASE
2441 OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2459 if test -z "$INSTALL"; then
2460 if test "${ac_cv_path_install+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 # Account for people who put trailing slashes in PATH elements.
2469 case $as_dir/ in
2470 ./ | .// | /cC/* | \
2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2473 /usr/ucb/* ) ;;
2475 # OSF1 and SCO ODT 3.0 have their own names for install.
2476 # Don't use installbsd from OSF since it installs stuff as root
2477 # by default.
2478 for ac_prog in ginstall scoinst install; do
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2481 if test $ac_prog = install &&
2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # AIX install. It has an incompatible calling convention.
2485 elif test $ac_prog = install &&
2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2487 # program-specific install script used by HP pwplus--don't use.
2489 else
2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491 break 3
2494 done
2495 done
2497 esac
2498 done
2499 IFS=$as_save_IFS
2503 if test "${ac_cv_path_install+set}" = set; then
2504 INSTALL=$ac_cv_path_install
2505 else
2506 # As a last resort, use the slow shell script. Don't cache a
2507 # value for INSTALL within a source directory, because that will
2508 # break other packages using the cache if that directory is
2509 # removed, or if the value is a relative name.
2510 INSTALL=$ac_install_sh
2513 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2514 echo "${ECHO_T}$INSTALL" >&6; }
2516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2517 # It thinks the first close brace ends the variable substitution.
2518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2524 ac_ext=cpp
2525 ac_cpp='$CXXCPP $CPPFLAGS'
2526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2529 if test -z "$CXX"; then
2530 if test -n "$CCC"; then
2531 CXX=$CCC
2532 else
2533 if test -n "$ac_tool_prefix"; then
2534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2540 if test "${ac_cv_prog_CXX+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 if test -n "$CXX"; then
2544 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2557 done
2558 done
2559 IFS=$as_save_IFS
2563 CXX=$ac_cv_prog_CXX
2564 if test -n "$CXX"; then
2565 { echo "$as_me:$LINENO: result: $CXX" >&5
2566 echo "${ECHO_T}$CXX" >&6; }
2567 else
2568 { echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6; }
2573 test -n "$CXX" && break
2574 done
2576 if test -z "$CXX"; then
2577 ac_ct_CXX=$CXX
2578 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2580 # Extract the first word of "$ac_prog", so it can be a program name with args.
2581 set dummy $ac_prog; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587 if test -n "$ac_ct_CXX"; then
2588 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 ac_cv_prog_ac_ct_CXX="$ac_prog"
2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2603 IFS=$as_save_IFS
2607 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2608 if test -n "$ac_ct_CXX"; then
2609 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2610 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2611 else
2612 { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2617 test -n "$ac_ct_CXX" && break
2618 done
2620 if test "x$ac_ct_CXX" = x; then
2621 CXX="g++"
2622 else
2623 case $cross_compiling:$ac_tool_warned in
2624 yes:)
2625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&5
2628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2629 whose name does not start with the host triplet. If you think this
2630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2631 ac_tool_warned=yes ;;
2632 esac
2633 CXX=$ac_ct_CXX
2639 # Provide some information about the compiler.
2640 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2641 ac_compiler=`set X $ac_compile; echo $2`
2642 { (ac_try="$ac_compiler --version >&5"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler --version >&5") 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -v >&5"
2653 case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656 esac
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -v >&5") 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2662 { (ac_try="$ac_compiler -V >&5"
2663 case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler -V >&5") 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2681 main ()
2685 return 0;
2687 _ACEOF
2688 ac_clean_files_save=$ac_clean_files
2689 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2690 # Try to create an executable without -o first, disregard a.out.
2691 # It will help us diagnose broken compilers, and finding out an intuition
2692 # of exeext.
2693 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2694 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2695 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2697 # List of possible output files, starting from the most likely.
2698 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2699 # only as a last resort. b.out is created by i960 compilers.
2700 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2702 # The IRIX 6 linker writes into existing files which may not be
2703 # executable, retaining their permissions. Remove them first so a
2704 # subsequent execution test works.
2705 ac_rmfiles=
2706 for ac_file in $ac_files
2708 case $ac_file in
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711 esac
2712 done
2713 rm -f $ac_rmfiles
2715 if { (ac_try="$ac_link_default"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_link_default") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; then
2725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2726 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2727 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2728 # so that the user can short-circuit this test for compilers unknown to
2729 # Autoconf.
2730 for ac_file in $ac_files ''
2732 test -f "$ac_file" || continue
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2736 [ab].out )
2737 # We found the default executable, but exeext='' is most
2738 # certainly right.
2739 break;;
2740 *.* )
2741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2742 then :; else
2743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745 # We set ac_cv_exeext here because the later test for it is not
2746 # safe: cross compilers may not add the suffix if given an `-o'
2747 # argument, so we may need to know it at that point already.
2748 # Even if this section looks crufty: it has the advantage of
2749 # actually working.
2750 break;;
2752 break;;
2753 esac
2754 done
2755 test "$ac_cv_exeext" = no && ac_cv_exeext=
2757 else
2758 ac_file=''
2761 { echo "$as_me:$LINENO: result: $ac_file" >&5
2762 echo "${ECHO_T}$ac_file" >&6; }
2763 if test -z "$ac_file"; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2768 See \`config.log' for more details." >&5
2769 echo "$as_me: error: C++ compiler cannot create executables
2770 See \`config.log' for more details." >&2;}
2771 { (exit 77); exit 77; }; }
2774 ac_exeext=$ac_cv_exeext
2776 # Check that the compiler produces executables we can run. If not, either
2777 # the compiler is broken, or we cross compile.
2778 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2779 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2781 # If not cross compiling, check that we can run a simple program.
2782 if test "$cross_compiling" != yes; then
2783 if { ac_try='./$ac_file'
2784 { (case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_try") 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 cross_compiling=no
2794 else
2795 if test "$cross_compiling" = maybe; then
2796 cross_compiling=yes
2797 else
2798 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details." >&5
2801 echo "$as_me: error: cannot run C++ compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details." >&2;}
2804 { (exit 1); exit 1; }; }
2808 { echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6; }
2811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2812 ac_clean_files=$ac_clean_files_save
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2817 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2818 echo "${ECHO_T}$cross_compiling" >&6; }
2820 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2822 if { (ac_try="$ac_link"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2834 # work properly (i.e., refer to `conftest.exe'), while it won't with
2835 # `rm'.
2836 for ac_file in conftest.exe conftest conftest.*; do
2837 test -f "$ac_file" || continue
2838 case $ac_file in
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841 break;;
2842 * ) break;;
2843 esac
2844 done
2845 else
2846 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2847 See \`config.log' for more details." >&5
2848 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log' for more details." >&2;}
2850 { (exit 1); exit 1; }; }
2853 rm -f conftest$ac_cv_exeext
2854 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2855 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2857 rm -f conftest.$ac_ext
2858 EXEEXT=$ac_cv_exeext
2859 ac_exeext=$EXEEXT
2860 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2861 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2862 if test "${ac_cv_objext+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2873 main ()
2877 return 0;
2879 _ACEOF
2880 rm -f conftest.o conftest.obj
2881 if { (ac_try="$ac_compile"
2882 case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compile") 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; then
2891 for ac_file in conftest.o conftest.obj conftest.*; do
2892 test -f "$ac_file" || continue;
2893 case $ac_file in
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2896 break;;
2897 esac
2898 done
2899 else
2900 echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log' for more details." >&5
2905 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2912 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2913 echo "${ECHO_T}$ac_cv_objext" >&6; }
2914 OBJEXT=$ac_cv_objext
2915 ac_objext=$OBJEXT
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 main ()
2931 #ifndef __GNUC__
2932 choke me
2933 #endif
2936 return 0;
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2947 ac_status=$?
2948 grep -v '^ *+' conftest.er1 >conftest.err
2949 rm -f conftest.er1
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } && {
2953 test -z "$ac_cxx_werror_flag" ||
2954 test ! -s conftest.err
2955 } && test -s conftest.$ac_objext; then
2956 ac_compiler_gnu=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 ac_compiler_gnu=no
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2968 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2969 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2970 GXX=`test $ac_compiler_gnu = yes && echo yes`
2971 ac_test_CXXFLAGS=${CXXFLAGS+set}
2972 ac_save_CXXFLAGS=$CXXFLAGS
2973 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2974 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_cxx_g+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2979 ac_cxx_werror_flag=yes
2980 ac_cv_prog_cxx_g=no
2981 CXXFLAGS="-g"
2982 cat >conftest.$ac_ext <<_ACEOF
2983 /* confdefs.h. */
2984 _ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2990 main ()
2994 return 0;
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_cxx_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3014 ac_cv_prog_cxx_g=yes
3015 else
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3019 CXXFLAGS=""
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3032 return 0;
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_cxx_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
3053 else
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3058 CXXFLAGS="-g"
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h. */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3067 main ()
3071 return 0;
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_cxx_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest.$ac_objext; then
3091 ac_cv_prog_cxx_g=yes
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3109 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3110 if test "$ac_test_CXXFLAGS" = set; then
3111 CXXFLAGS=$ac_save_CXXFLAGS
3112 elif test $ac_cv_prog_cxx_g = yes; then
3113 if test "$GXX" = yes; then
3114 CXXFLAGS="-g -O2"
3115 else
3116 CXXFLAGS="-g"
3118 else
3119 if test "$GXX" = yes; then
3120 CXXFLAGS="-O2"
3121 else
3122 CXXFLAGS=
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 DEPDIR="${am__leading_dot}deps"
3132 ac_config_commands="$ac_config_commands depfiles"
3135 am_make=${MAKE-make}
3136 cat > confinc << 'END'
3137 am__doit:
3138 @echo done
3139 .PHONY: am__doit
3141 # If we don't find an include directive, just comment out the code.
3142 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3143 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3144 am__include="#"
3145 am__quote=
3146 _am_result=none
3147 # First try GNU make style include.
3148 echo "include confinc" > confmf
3149 # We grep out `Entering directory' and `Leaving directory'
3150 # messages which can occur if `w' ends up in MAKEFLAGS.
3151 # In particular we don't look at `^make:' because GNU make might
3152 # be invoked under some other name (usually "gmake"), in which
3153 # case it prints its new name instead of `make'.
3154 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3155 am__include=include
3156 am__quote=
3157 _am_result=GNU
3159 # Now try BSD make style include.
3160 if test "$am__include" = "#"; then
3161 echo '.include "confinc"' > confmf
3162 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3163 am__include=.include
3164 am__quote="\""
3165 _am_result=BSD
3170 { echo "$as_me:$LINENO: result: $_am_result" >&5
3171 echo "${ECHO_T}$_am_result" >&6; }
3172 rm -f confinc confmf
3174 # Check whether --enable-dependency-tracking was given.
3175 if test "${enable_dependency_tracking+set}" = set; then
3176 enableval=$enable_dependency_tracking;
3179 if test "x$enable_dependency_tracking" != xno; then
3180 am_depcomp="$ac_aux_dir/depcomp"
3181 AMDEPBACKSLASH='\'
3183 if test "x$enable_dependency_tracking" != xno; then
3184 AMDEP_TRUE=
3185 AMDEP_FALSE='#'
3186 else
3187 AMDEP_TRUE='#'
3188 AMDEP_FALSE=
3193 depcc="$CXX" am_compiler_list=
3195 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3196 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3197 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3201 # We make a subdir and do the tests there. Otherwise we can end up
3202 # making bogus files that we don't know about and never remove. For
3203 # instance it was reported that on HP-UX the gcc test will end up
3204 # making a dummy file named `D' -- because `-MD' means `put the output
3205 # in D'.
3206 mkdir conftest.dir
3207 # Copy depcomp to subdir because otherwise we won't find it if we're
3208 # using a relative directory.
3209 cp "$am_depcomp" conftest.dir
3210 cd conftest.dir
3211 # We will build objects and dependencies in a subdirectory because
3212 # it helps to detect inapplicable dependency modes. For instance
3213 # both Tru64's cc and ICC support -MD to output dependencies as a
3214 # side effect of compilation, but ICC will put the dependencies in
3215 # the current directory while Tru64 will put them in the object
3216 # directory.
3217 mkdir sub
3219 am_cv_CXX_dependencies_compiler_type=none
3220 if test "$am_compiler_list" = ""; then
3221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3223 for depmode in $am_compiler_list; do
3224 # Setup a source with many dependencies, because some compilers
3225 # like to wrap large dependency lists on column 80 (with \), and
3226 # we should not choose a depcomp mode which is confused by this.
3228 # We need to recreate these files for each test, as the compiler may
3229 # overwrite some of them when testing with obscure command lines.
3230 # This happens at least with the AIX C compiler.
3231 : > sub/conftest.c
3232 for i in 1 2 3 4 5 6; do
3233 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3234 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3235 # Solaris 8's {/usr,}/bin/sh.
3236 touch sub/conftst$i.h
3237 done
3238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3240 case $depmode in
3241 nosideeffect)
3242 # after this tag, mechanisms are not by side-effect, so they'll
3243 # only be used when explicitly requested
3244 if test "x$enable_dependency_tracking" = xyes; then
3245 continue
3246 else
3247 break
3250 none) break ;;
3251 esac
3252 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3253 # mode. It turns out that the SunPro C++ compiler does not properly
3254 # handle `-M -o', and we need to detect this.
3255 if depmode=$depmode \
3256 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3258 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3259 >/dev/null 2>conftest.err &&
3260 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3262 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3264 # icc doesn't choke on unknown options, it will just issue warnings
3265 # or remarks (even with -Werror). So we grep stderr for any message
3266 # that says an option was ignored or not supported.
3267 # When given -MP, icc 7.0 and 7.1 complain thusly:
3268 # icc: Command line warning: ignoring option '-M'; no argument required
3269 # The diagnosis changed in icc 8.0:
3270 # icc: Command line remark: option '-MP' not supported
3271 if (grep 'ignoring option' conftest.err ||
3272 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3273 am_cv_CXX_dependencies_compiler_type=$depmode
3274 break
3277 done
3279 cd ..
3280 rm -rf conftest.dir
3281 else
3282 am_cv_CXX_dependencies_compiler_type=none
3286 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3287 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3288 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3291 test "x$enable_dependency_tracking" != xno \
3292 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3293 am__fastdepCXX_TRUE=
3294 am__fastdepCXX_FALSE='#'
3295 else
3296 am__fastdepCXX_TRUE='#'
3297 am__fastdepCXX_FALSE=
3301 # Check whether --enable-shared was given.
3302 if test "${enable_shared+set}" = set; then
3303 enableval=$enable_shared; p=${PACKAGE-default}
3304 case $enableval in
3305 yes) enable_shared=yes ;;
3306 no) enable_shared=no ;;
3308 enable_shared=no
3309 # Look at the argument we got. We use all the common list separators.
3310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3311 for pkg in $enableval; do
3312 IFS="$lt_save_ifs"
3313 if test "X$pkg" = "X$p"; then
3314 enable_shared=yes
3316 done
3317 IFS="$lt_save_ifs"
3319 esac
3320 else
3321 enable_shared=yes
3325 # Check whether --enable-static was given.
3326 if test "${enable_static+set}" = set; then
3327 enableval=$enable_static; p=${PACKAGE-default}
3328 case $enableval in
3329 yes) enable_static=yes ;;
3330 no) enable_static=no ;;
3332 enable_static=no
3333 # Look at the argument we got. We use all the common list separators.
3334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3335 for pkg in $enableval; do
3336 IFS="$lt_save_ifs"
3337 if test "X$pkg" = "X$p"; then
3338 enable_static=yes
3340 done
3341 IFS="$lt_save_ifs"
3343 esac
3344 else
3345 enable_static=yes
3349 # Check whether --enable-fast-install was given.
3350 if test "${enable_fast_install+set}" = set; then
3351 enableval=$enable_fast_install; p=${PACKAGE-default}
3352 case $enableval in
3353 yes) enable_fast_install=yes ;;
3354 no) enable_fast_install=no ;;
3356 enable_fast_install=no
3357 # Look at the argument we got. We use all the common list separators.
3358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3359 for pkg in $enableval; do
3360 IFS="$lt_save_ifs"
3361 if test "X$pkg" = "X$p"; then
3362 enable_fast_install=yes
3364 done
3365 IFS="$lt_save_ifs"
3367 esac
3368 else
3369 enable_fast_install=yes
3373 # Make sure we can run config.sub.
3374 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3375 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3376 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3377 { (exit 1); exit 1; }; }
3379 { echo "$as_me:$LINENO: checking build system type" >&5
3380 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3381 if test "${ac_cv_build+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 ac_build_alias=$build_alias
3385 test "x$ac_build_alias" = x &&
3386 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3387 test "x$ac_build_alias" = x &&
3388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3390 { (exit 1); exit 1; }; }
3391 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3392 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3393 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3394 { (exit 1); exit 1; }; }
3397 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3398 echo "${ECHO_T}$ac_cv_build" >&6; }
3399 case $ac_cv_build in
3400 *-*-*) ;;
3401 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3402 echo "$as_me: error: invalid value of canonical build" >&2;}
3403 { (exit 1); exit 1; }; };;
3404 esac
3405 build=$ac_cv_build
3406 ac_save_IFS=$IFS; IFS='-'
3407 set x $ac_cv_build
3408 shift
3409 build_cpu=$1
3410 build_vendor=$2
3411 shift; shift
3412 # Remember, the first character of IFS is used to create $*,
3413 # except with old shells:
3414 build_os=$*
3415 IFS=$ac_save_IFS
3416 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3419 { echo "$as_me:$LINENO: checking host system type" >&5
3420 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3421 if test "${ac_cv_host+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test "x$host_alias" = x; then
3425 ac_cv_host=$ac_cv_build
3426 else
3427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3428 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3429 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3430 { (exit 1); exit 1; }; }
3434 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3435 echo "${ECHO_T}$ac_cv_host" >&6; }
3436 case $ac_cv_host in
3437 *-*-*) ;;
3438 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3439 echo "$as_me: error: invalid value of canonical host" >&2;}
3440 { (exit 1); exit 1; }; };;
3441 esac
3442 host=$ac_cv_host
3443 ac_save_IFS=$IFS; IFS='-'
3444 set x $ac_cv_host
3445 shift
3446 host_cpu=$1
3447 host_vendor=$2
3448 shift; shift
3449 # Remember, the first character of IFS is used to create $*,
3450 # except with old shells:
3451 host_os=$*
3452 IFS=$ac_save_IFS
3453 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3466 if test "${ac_cv_prog_CC+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3485 IFS=$as_save_IFS
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491 { echo "$as_me:$LINENO: result: $CC" >&5
3492 echo "${ECHO_T}$CC" >&6; }
3493 else
3494 { echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6; }
3500 if test -z "$ac_cv_prog_CC"; then
3501 ac_ct_CC=$CC
3502 # Extract the first word of "gcc", so it can be a program name with args.
3503 set dummy gcc; ac_word=$2
3504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 if test -n "$ac_ct_CC"; then
3510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_ac_ct_CC="gcc"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3523 done
3524 done
3525 IFS=$as_save_IFS
3529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530 if test -n "$ac_ct_CC"; then
3531 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3532 echo "${ECHO_T}$ac_ct_CC" >&6; }
3533 else
3534 { echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6; }
3538 if test "x$ac_ct_CC" = x; then
3539 CC=""
3540 else
3541 case $cross_compiling:$ac_tool_warned in
3542 yes:)
3543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3544 whose name does not start with the host triplet. If you think this
3545 configuration is useful to you, please write to autoconf@gnu.org." >&5
3546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3547 whose name does not start with the host triplet. If you think this
3548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3549 ac_tool_warned=yes ;;
3550 esac
3551 CC=$ac_ct_CC
3553 else
3554 CC="$ac_cv_prog_CC"
3557 if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}cc; ac_word=$2
3561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3563 if test "${ac_cv_prog_CC+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576 ac_cv_prog_CC="${ac_tool_prefix}cc"
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3580 done
3581 done
3582 IFS=$as_save_IFS
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { echo "$as_me:$LINENO: result: $CC" >&5
3589 echo "${ECHO_T}$CC" >&6; }
3590 else
3591 { echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6; }
3598 if test -z "$CC"; then
3599 # Extract the first word of "cc", so it can be a program name with args.
3600 set dummy cc; ac_word=$2
3601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608 else
3609 ac_prog_rejected=no
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3618 ac_prog_rejected=yes
3619 continue
3621 ac_cv_prog_CC="cc"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3627 IFS=$as_save_IFS
3629 if test $ac_prog_rejected = yes; then
3630 # We found a bogon in the path, so make sure we never use it.
3631 set dummy $ac_cv_prog_CC
3632 shift
3633 if test $# != 0; then
3634 # We chose a different compiler from the bogus one.
3635 # However, it has the same basename, so the bogon will be chosen
3636 # first if we set CC to just the basename; use the full file name.
3637 shift
3638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3643 CC=$ac_cv_prog_CC
3644 if test -n "$CC"; then
3645 { echo "$as_me:$LINENO: result: $CC" >&5
3646 echo "${ECHO_T}$CC" >&6; }
3647 else
3648 { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3654 if test -z "$CC"; then
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in cl.exe
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3662 if test "${ac_cv_prog_CC+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3679 done
3680 done
3681 IFS=$as_save_IFS
3685 CC=$ac_cv_prog_CC
3686 if test -n "$CC"; then
3687 { echo "$as_me:$LINENO: result: $CC" >&5
3688 echo "${ECHO_T}$CC" >&6; }
3689 else
3690 { echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6; }
3695 test -n "$CC" && break
3696 done
3698 if test -z "$CC"; then
3699 ac_ct_CC=$CC
3700 for ac_prog in cl.exe
3702 # Extract the first word of "$ac_prog", so it can be a program name with args.
3703 set dummy $ac_prog; ac_word=$2
3704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 if test -n "$ac_ct_CC"; then
3710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719 ac_cv_prog_ac_ct_CC="$ac_prog"
3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3723 done
3724 done
3725 IFS=$as_save_IFS
3729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730 if test -n "$ac_ct_CC"; then
3731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3732 echo "${ECHO_T}$ac_ct_CC" >&6; }
3733 else
3734 { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3739 test -n "$ac_ct_CC" && break
3740 done
3742 if test "x$ac_ct_CC" = x; then
3743 CC=""
3744 else
3745 case $cross_compiling:$ac_tool_warned in
3746 yes:)
3747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3748 whose name does not start with the host triplet. If you think this
3749 configuration is useful to you, please write to autoconf@gnu.org." >&5
3750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3751 whose name does not start with the host triplet. If you think this
3752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3753 ac_tool_warned=yes ;;
3754 esac
3755 CC=$ac_ct_CC
3762 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: no acceptable C compiler found in \$PATH
3765 See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3768 # Provide some information about the compiler.
3769 echo "$as_me:$LINENO: checking for C compiler version" >&5
3770 ac_compiler=`set X $ac_compile; echo $2`
3771 { (ac_try="$ac_compiler --version >&5"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_compiler --version >&5") 2>&5
3778 ac_status=$?
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781 { (ac_try="$ac_compiler -v >&5"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_compiler -v >&5") 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3791 { (ac_try="$ac_compiler -V >&5"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compiler -V >&5") 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }
3802 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3803 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3804 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807 cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h. */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3815 main ()
3817 #ifndef __GNUC__
3818 choke me
3819 #endif
3822 return 0;
3824 _ACEOF
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3842 ac_compiler_gnu=yes
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 ac_compiler_gnu=no
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3856 GCC=`test $ac_compiler_gnu = yes && echo yes`
3857 ac_test_CFLAGS=${CFLAGS+set}
3858 ac_save_CFLAGS=$CFLAGS
3859 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3860 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3861 if test "${ac_cv_prog_cc_g+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 ac_save_c_werror_flag=$ac_c_werror_flag
3865 ac_c_werror_flag=yes
3866 ac_cv_prog_cc_g=no
3867 CFLAGS="-g"
3868 cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h. */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3876 main ()
3880 return 0;
3882 _ACEOF
3883 rm -f conftest.$ac_objext
3884 if { (ac_try="$ac_compile"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890 (eval "$ac_compile") 2>conftest.er1
3891 ac_status=$?
3892 grep -v '^ *+' conftest.er1 >conftest.err
3893 rm -f conftest.er1
3894 cat conftest.err >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); } && {
3897 test -z "$ac_c_werror_flag" ||
3898 test ! -s conftest.err
3899 } && test -s conftest.$ac_objext; then
3900 ac_cv_prog_cc_g=yes
3901 else
3902 echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 CFLAGS=""
3906 cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h. */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3914 main ()
3918 return 0;
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_compile") 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && {
3935 test -z "$ac_c_werror_flag" ||
3936 test ! -s conftest.err
3937 } && test -s conftest.$ac_objext; then
3939 else
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 ac_c_werror_flag=$ac_save_c_werror_flag
3944 CFLAGS="-g"
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3953 main ()
3957 return 0;
3959 _ACEOF
3960 rm -f conftest.$ac_objext
3961 if { (ac_try="$ac_compile"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_compile") 2>conftest.er1
3968 ac_status=$?
3969 grep -v '^ *+' conftest.er1 >conftest.err
3970 rm -f conftest.er1
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && {
3974 test -z "$ac_c_werror_flag" ||
3975 test ! -s conftest.err
3976 } && test -s conftest.$ac_objext; then
3977 ac_cv_prog_cc_g=yes
3978 else
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 ac_c_werror_flag=$ac_save_c_werror_flag
3994 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3996 if test "$ac_test_CFLAGS" = set; then
3997 CFLAGS=$ac_save_CFLAGS
3998 elif test $ac_cv_prog_cc_g = yes; then
3999 if test "$GCC" = yes; then
4000 CFLAGS="-g -O2"
4001 else
4002 CFLAGS="-g"
4004 else
4005 if test "$GCC" = yes; then
4006 CFLAGS="-O2"
4007 else
4008 CFLAGS=
4011 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4012 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4013 if test "${ac_cv_prog_cc_c89+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 ac_cv_prog_cc_c89=no
4017 ac_save_CC=$CC
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 #include <stdarg.h>
4025 #include <stdio.h>
4026 #include <sys/types.h>
4027 #include <sys/stat.h>
4028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4029 struct buf { int x; };
4030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4031 static char *e (p, i)
4032 char **p;
4033 int i;
4035 return p[i];
4037 static char *f (char * (*g) (char **, int), char **p, ...)
4039 char *s;
4040 va_list v;
4041 va_start (v,p);
4042 s = g (p, va_arg (v,int));
4043 va_end (v);
4044 return s;
4047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4048 function prototypes and stuff, but not '\xHH' hex character constants.
4049 These don't provoke an error unfortunately, instead are silently treated
4050 as 'x'. The following induces an error, until -std is added to get
4051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4052 array size at least. It's necessary to write '\x00'==0 to get something
4053 that's true only with -std. */
4054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4057 inside strings and character constants. */
4058 #define FOO(x) 'x'
4059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4061 int test (int i, double x);
4062 struct s1 {int (*f) (int a);};
4063 struct s2 {int (*f) (double a);};
4064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4065 int argc;
4066 char **argv;
4068 main ()
4070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4072 return 0;
4074 _ACEOF
4075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4078 CC="$ac_save_CC $ac_arg"
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 ac_cv_prog_cc_c89=$ac_arg
4097 else
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f core conftest.err conftest.$ac_objext
4105 test "x$ac_cv_prog_cc_c89" != "xno" && break
4106 done
4107 rm -f conftest.$ac_ext
4108 CC=$ac_save_CC
4111 # AC_CACHE_VAL
4112 case "x$ac_cv_prog_cc_c89" in
4114 { echo "$as_me:$LINENO: result: none needed" >&5
4115 echo "${ECHO_T}none needed" >&6; } ;;
4116 xno)
4117 { echo "$as_me:$LINENO: result: unsupported" >&5
4118 echo "${ECHO_T}unsupported" >&6; } ;;
4120 CC="$CC $ac_cv_prog_cc_c89"
4121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4122 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4123 esac
4126 ac_ext=c
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 depcc="$CC" am_compiler_list=
4134 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140 # We make a subdir and do the tests there. Otherwise we can end up
4141 # making bogus files that we don't know about and never remove. For
4142 # instance it was reported that on HP-UX the gcc test will end up
4143 # making a dummy file named `D' -- because `-MD' means `put the output
4144 # in D'.
4145 mkdir conftest.dir
4146 # Copy depcomp to subdir because otherwise we won't find it if we're
4147 # using a relative directory.
4148 cp "$am_depcomp" conftest.dir
4149 cd conftest.dir
4150 # We will build objects and dependencies in a subdirectory because
4151 # it helps to detect inapplicable dependency modes. For instance
4152 # both Tru64's cc and ICC support -MD to output dependencies as a
4153 # side effect of compilation, but ICC will put the dependencies in
4154 # the current directory while Tru64 will put them in the object
4155 # directory.
4156 mkdir sub
4158 am_cv_CC_dependencies_compiler_type=none
4159 if test "$am_compiler_list" = ""; then
4160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4162 for depmode in $am_compiler_list; do
4163 # Setup a source with many dependencies, because some compilers
4164 # like to wrap large dependency lists on column 80 (with \), and
4165 # we should not choose a depcomp mode which is confused by this.
4167 # We need to recreate these files for each test, as the compiler may
4168 # overwrite some of them when testing with obscure command lines.
4169 # This happens at least with the AIX C compiler.
4170 : > sub/conftest.c
4171 for i in 1 2 3 4 5 6; do
4172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4174 # Solaris 8's {/usr,}/bin/sh.
4175 touch sub/conftst$i.h
4176 done
4177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4179 case $depmode in
4180 nosideeffect)
4181 # after this tag, mechanisms are not by side-effect, so they'll
4182 # only be used when explicitly requested
4183 if test "x$enable_dependency_tracking" = xyes; then
4184 continue
4185 else
4186 break
4189 none) break ;;
4190 esac
4191 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4192 # mode. It turns out that the SunPro C++ compiler does not properly
4193 # handle `-M -o', and we need to detect this.
4194 if depmode=$depmode \
4195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4198 >/dev/null 2>conftest.err &&
4199 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4201 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4203 # icc doesn't choke on unknown options, it will just issue warnings
4204 # or remarks (even with -Werror). So we grep stderr for any message
4205 # that says an option was ignored or not supported.
4206 # When given -MP, icc 7.0 and 7.1 complain thusly:
4207 # icc: Command line warning: ignoring option '-M'; no argument required
4208 # The diagnosis changed in icc 8.0:
4209 # icc: Command line remark: option '-MP' not supported
4210 if (grep 'ignoring option' conftest.err ||
4211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4212 am_cv_CC_dependencies_compiler_type=$depmode
4213 break
4216 done
4218 cd ..
4219 rm -rf conftest.dir
4220 else
4221 am_cv_CC_dependencies_compiler_type=none
4225 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4226 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4227 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4230 test "x$enable_dependency_tracking" != xno \
4231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4232 am__fastdepCC_TRUE=
4233 am__fastdepCC_FALSE='#'
4234 else
4235 am__fastdepCC_TRUE='#'
4236 am__fastdepCC_FALSE=
4240 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4241 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4242 if test "${lt_cv_path_SED+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 # Loop through the user's path and test for sed and gsed.
4246 # Then use that list of sed's as ones to test for truncation.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
4252 for lt_ac_prog in sed gsed; do
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4255 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4257 done
4258 done
4259 done
4260 IFS=$as_save_IFS
4261 lt_ac_max=0
4262 lt_ac_count=0
4263 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4264 # along with /bin/sed that truncates output.
4265 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4266 test ! -f $lt_ac_sed && continue
4267 cat /dev/null > conftest.in
4268 lt_ac_count=0
4269 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4270 # Check for GNU sed and select it if it is found.
4271 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4272 lt_cv_path_SED=$lt_ac_sed
4273 break
4275 while true; do
4276 cat conftest.in conftest.in >conftest.tmp
4277 mv conftest.tmp conftest.in
4278 cp conftest.in conftest.nl
4279 echo >>conftest.nl
4280 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4281 cmp -s conftest.out conftest.nl || break
4282 # 10000 chars as input seems more than enough
4283 test $lt_ac_count -gt 10 && break
4284 lt_ac_count=`expr $lt_ac_count + 1`
4285 if test $lt_ac_count -gt $lt_ac_max; then
4286 lt_ac_max=$lt_ac_count
4287 lt_cv_path_SED=$lt_ac_sed
4289 done
4290 done
4294 SED=$lt_cv_path_SED
4296 { echo "$as_me:$LINENO: result: $SED" >&5
4297 echo "${ECHO_T}$SED" >&6; }
4299 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4300 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4301 if test "${ac_cv_path_GREP+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304 # Extract the first word of "grep ggrep" to use in msg output
4305 if test -z "$GREP"; then
4306 set dummy grep ggrep; ac_prog_name=$2
4307 if test "${ac_cv_path_GREP+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 ac_path_GREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in grep ggrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4320 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4321 # Check for GNU ac_path_GREP and select it if it is found.
4322 # Check for GNU $ac_path_GREP
4323 case `"$ac_path_GREP" --version 2>&1` in
4324 *GNU*)
4325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4327 ac_count=0
4328 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4329 while :
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 echo 'GREP' >> "conftest.nl"
4335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 ac_count=`expr $ac_count + 1`
4338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_GREP="$ac_path_GREP"
4341 ac_path_GREP_max=$ac_count
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4345 done
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4350 $ac_path_GREP_found && break 3
4351 done
4352 done
4354 done
4355 IFS=$as_save_IFS
4360 GREP="$ac_cv_path_GREP"
4361 if test -z "$GREP"; then
4362 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4363 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4364 { (exit 1); exit 1; }; }
4367 else
4368 ac_cv_path_GREP=$GREP
4373 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4374 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4375 GREP="$ac_cv_path_GREP"
4378 { echo "$as_me:$LINENO: checking for egrep" >&5
4379 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4380 if test "${ac_cv_path_EGREP+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4384 then ac_cv_path_EGREP="$GREP -E"
4385 else
4386 # Extract the first word of "egrep" to use in msg output
4387 if test -z "$EGREP"; then
4388 set dummy egrep; ac_prog_name=$2
4389 if test "${ac_cv_path_EGREP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 ac_path_EGREP_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_prog in egrep; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4403 # Check for GNU ac_path_EGREP and select it if it is found.
4404 # Check for GNU $ac_path_EGREP
4405 case `"$ac_path_EGREP" --version 2>&1` in
4406 *GNU*)
4407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409 ac_count=0
4410 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4411 while :
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 echo 'EGREP' >> "conftest.nl"
4417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419 ac_count=`expr $ac_count + 1`
4420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_EGREP="$ac_path_EGREP"
4423 ac_path_EGREP_max=$ac_count
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4427 done
4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 esac
4432 $ac_path_EGREP_found && break 3
4433 done
4434 done
4436 done
4437 IFS=$as_save_IFS
4442 EGREP="$ac_cv_path_EGREP"
4443 if test -z "$EGREP"; then
4444 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4445 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4446 { (exit 1); exit 1; }; }
4449 else
4450 ac_cv_path_EGREP=$EGREP
4456 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4457 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4458 EGREP="$ac_cv_path_EGREP"
4462 # Check whether --with-gnu-ld was given.
4463 if test "${with_gnu_ld+set}" = set; then
4464 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4465 else
4466 with_gnu_ld=no
4469 ac_prog=ld
4470 if test "$GCC" = yes; then
4471 # Check if gcc -print-prog-name=ld gives a path.
4472 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4474 case $host in
4475 *-*-mingw*)
4476 # gcc leaves a trailing carriage return which upsets mingw
4477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4480 esac
4481 case $ac_prog in
4482 # Accept absolute paths.
4483 [\\/]* | ?:[\\/]*)
4484 re_direlt='/[^/][^/]*/\.\./'
4485 # Canonicalize the pathname of ld
4486 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4488 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4489 done
4490 test -z "$LD" && LD="$ac_prog"
4493 # If it fails, then pretend we aren't using GCC.
4494 ac_prog=ld
4497 # If it is relative, then search for the first ld in PATH.
4498 with_gnu_ld=unknown
4500 esac
4501 elif test "$with_gnu_ld" = yes; then
4502 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4504 else
4505 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4508 if test "${lt_cv_path_LD+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if test -z "$LD"; then
4512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4513 for ac_dir in $PATH; do
4514 IFS="$lt_save_ifs"
4515 test -z "$ac_dir" && ac_dir=.
4516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4517 lt_cv_path_LD="$ac_dir/$ac_prog"
4518 # Check to see if the program is GNU ld. I'd rather use --version,
4519 # but apparently some variants of GNU ld only accept -v.
4520 # Break only if it was the GNU/non-GNU ld that we prefer.
4521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4522 *GNU* | *'with BFD'*)
4523 test "$with_gnu_ld" != no && break
4526 test "$with_gnu_ld" != yes && break
4528 esac
4530 done
4531 IFS="$lt_save_ifs"
4532 else
4533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4537 LD="$lt_cv_path_LD"
4538 if test -n "$LD"; then
4539 { echo "$as_me:$LINENO: result: $LD" >&5
4540 echo "${ECHO_T}$LD" >&6; }
4541 else
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4547 { (exit 1); exit 1; }; }
4548 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4554 case `$LD -v 2>&1 </dev/null` in
4555 *GNU* | *'with BFD'*)
4556 lt_cv_prog_gnu_ld=yes
4559 lt_cv_prog_gnu_ld=no
4561 esac
4563 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4565 with_gnu_ld=$lt_cv_prog_gnu_ld
4568 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4569 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4570 if test "${lt_cv_ld_reload_flag+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573 lt_cv_ld_reload_flag='-r'
4575 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4576 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4577 reload_flag=$lt_cv_ld_reload_flag
4578 case $reload_flag in
4579 "" | " "*) ;;
4580 *) reload_flag=" $reload_flag" ;;
4581 esac
4582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4583 case $host_os in
4584 darwin*)
4585 if test "$GCC" = yes; then
4586 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4587 else
4588 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4591 esac
4593 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4594 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4595 if test "${lt_cv_path_NM+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 if test -n "$NM"; then
4599 # Let the user override the test.
4600 lt_cv_path_NM="$NM"
4601 else
4602 lt_nm_to_check="${ac_tool_prefix}nm"
4603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4604 lt_nm_to_check="$lt_nm_to_check nm"
4606 for lt_tmp_nm in $lt_nm_to_check; do
4607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4609 IFS="$lt_save_ifs"
4610 test -z "$ac_dir" && ac_dir=.
4611 tmp_nm="$ac_dir/$lt_tmp_nm"
4612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4613 # Check to see if the nm accepts a BSD-compat flag.
4614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4615 # nm: unknown option "B" ignored
4616 # Tru64's nm complains that /dev/null is an invalid object file
4617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4618 */dev/null* | *'Invalid file or object type'*)
4619 lt_cv_path_NM="$tmp_nm -B"
4620 break
4623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4624 */dev/null*)
4625 lt_cv_path_NM="$tmp_nm -p"
4626 break
4629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4630 continue # so that we can try to find one that supports BSD flags
4632 esac
4634 esac
4636 done
4637 IFS="$lt_save_ifs"
4638 done
4639 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4642 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4643 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4644 NM="$lt_cv_path_NM"
4646 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4648 LN_S=$as_ln_s
4649 if test "$LN_S" = "ln -s"; then
4650 { echo "$as_me:$LINENO: result: yes" >&5
4651 echo "${ECHO_T}yes" >&6; }
4652 else
4653 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4654 echo "${ECHO_T}no, using $LN_S" >&6; }
4657 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4658 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4659 if test "${lt_cv_deplibs_check_method+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 lt_cv_file_magic_cmd='$MAGIC_CMD'
4663 lt_cv_file_magic_test_file=
4664 lt_cv_deplibs_check_method='unknown'
4665 # Need to set the preceding variable on all platforms that support
4666 # interlibrary dependencies.
4667 # 'none' -- dependencies not supported.
4668 # `unknown' -- same as none, but documents that we really don't know.
4669 # 'pass_all' -- all dependencies passed with no checks.
4670 # 'test_compile' -- check by making test program.
4671 # 'file_magic [[regex]]' -- check by looking for files in library path
4672 # which responds to the $file_magic_cmd with a given extended regex.
4673 # If you have `file' or equivalent on your system and you're not sure
4674 # whether `pass_all' will *always* work, you probably want this one.
4676 case $host_os in
4677 aix[4-9]*)
4678 lt_cv_deplibs_check_method=pass_all
4681 beos*)
4682 lt_cv_deplibs_check_method=pass_all
4685 bsdi[45]*)
4686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4687 lt_cv_file_magic_cmd='/usr/bin/file -L'
4688 lt_cv_file_magic_test_file=/shlib/libc.so
4691 cygwin*)
4692 # func_win32_libid is a shell function defined in ltmain.sh
4693 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4694 lt_cv_file_magic_cmd='func_win32_libid'
4697 mingw* | pw32*)
4698 # Base MSYS/MinGW do not provide the 'file' command needed by
4699 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4700 # unless we find 'file', for example because we are cross-compiling.
4701 if ( file / ) >/dev/null 2>&1; then
4702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4703 lt_cv_file_magic_cmd='func_win32_libid'
4704 else
4705 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4706 lt_cv_file_magic_cmd='$OBJDUMP -f'
4710 darwin* | rhapsody*)
4711 lt_cv_deplibs_check_method=pass_all
4714 freebsd* | dragonfly*)
4715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4716 case $host_cpu in
4717 i*86 )
4718 # Not sure whether the presence of OpenBSD here was a mistake.
4719 # Let's accept both of them until this is cleared up.
4720 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4721 lt_cv_file_magic_cmd=/usr/bin/file
4722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4724 esac
4725 else
4726 lt_cv_deplibs_check_method=pass_all
4730 gnu*)
4731 lt_cv_deplibs_check_method=pass_all
4734 hpux10.20* | hpux11*)
4735 lt_cv_file_magic_cmd=/usr/bin/file
4736 case $host_cpu in
4737 ia64*)
4738 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4739 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4741 hppa*64*)
4742 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]'
4743 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4749 esac
4752 interix[3-9]*)
4753 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4757 irix5* | irix6* | nonstopux*)
4758 case $LD in
4759 *-32|*"-32 ") libmagic=32-bit;;
4760 *-n32|*"-n32 ") libmagic=N32;;
4761 *-64|*"-64 ") libmagic=64-bit;;
4762 *) libmagic=never-match;;
4763 esac
4764 lt_cv_deplibs_check_method=pass_all
4767 # This must be Linux ELF.
4768 linux* | k*bsd*-gnu)
4769 lt_cv_deplibs_check_method=pass_all
4772 netbsd* | netbsdelf*-gnu)
4773 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4775 else
4776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4780 newos6*)
4781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4782 lt_cv_file_magic_cmd=/usr/bin/file
4783 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4786 nto-qnx*)
4787 lt_cv_deplibs_check_method=unknown
4790 openbsd*)
4791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4793 else
4794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4798 osf3* | osf4* | osf5*)
4799 lt_cv_deplibs_check_method=pass_all
4802 rdos*)
4803 lt_cv_deplibs_check_method=pass_all
4806 solaris*)
4807 lt_cv_deplibs_check_method=pass_all
4810 sysv4 | sysv4.3*)
4811 case $host_vendor in
4812 motorola)
4813 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]'
4814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4816 ncr)
4817 lt_cv_deplibs_check_method=pass_all
4819 sequent)
4820 lt_cv_file_magic_cmd='/bin/file'
4821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4823 sni)
4824 lt_cv_file_magic_cmd='/bin/file'
4825 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4826 lt_cv_file_magic_test_file=/lib/libc.so
4828 siemens)
4829 lt_cv_deplibs_check_method=pass_all
4832 lt_cv_deplibs_check_method=pass_all
4834 esac
4837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4838 lt_cv_deplibs_check_method=pass_all
4840 esac
4843 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4844 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4845 file_magic_cmd=$lt_cv_file_magic_cmd
4846 deplibs_check_method=$lt_cv_deplibs_check_method
4847 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4852 # If no C compiler was specified, use CC.
4853 LTCC=${LTCC-"$CC"}
4855 # If no C compiler flags were specified, use CFLAGS.
4856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4858 # Allow CC to be a program name with arguments.
4859 compiler=$CC
4862 # Check whether --enable-libtool-lock was given.
4863 if test "${enable_libtool_lock+set}" = set; then
4864 enableval=$enable_libtool_lock;
4867 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4869 # Some flags need to be propagated to the compiler or linker for good
4870 # libtool support.
4871 case $host in
4872 ia64-*-hpux*)
4873 # Find out which ABI we are using.
4874 echo 'int i;' > conftest.$ac_ext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; then
4880 case `/usr/bin/file conftest.$ac_objext` in
4881 *ELF-32*)
4882 HPUX_IA64_MODE="32"
4884 *ELF-64*)
4885 HPUX_IA64_MODE="64"
4887 esac
4889 rm -rf conftest*
4891 *-*-irix6*)
4892 # Find out which ABI we are using.
4893 echo '#line 4893 "configure"' > conftest.$ac_ext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 if test "$lt_cv_prog_gnu_ld" = yes; then
4900 case `/usr/bin/file conftest.$ac_objext` in
4901 *32-bit*)
4902 LD="${LD-ld} -melf32bsmip"
4904 *N32*)
4905 LD="${LD-ld} -melf32bmipn32"
4907 *64-bit*)
4908 LD="${LD-ld} -melf64bmip"
4910 esac
4911 else
4912 case `/usr/bin/file conftest.$ac_objext` in
4913 *32-bit*)
4914 LD="${LD-ld} -32"
4916 *N32*)
4917 LD="${LD-ld} -n32"
4919 *64-bit*)
4920 LD="${LD-ld} -64"
4922 esac
4925 rm -rf conftest*
4928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4929 s390*-*linux*|sparc*-*linux*)
4930 # Find out which ABI we are using.
4931 echo 'int i;' > conftest.$ac_ext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; then
4937 case `/usr/bin/file conftest.o` in
4938 *32-bit*)
4939 case $host in
4940 x86_64-*kfreebsd*-gnu)
4941 LD="${LD-ld} -m elf_i386_fbsd"
4943 x86_64-*linux*)
4944 LD="${LD-ld} -m elf_i386"
4946 ppc64-*linux*|powerpc64-*linux*)
4947 LD="${LD-ld} -m elf32ppclinux"
4949 s390x-*linux*)
4950 LD="${LD-ld} -m elf_s390"
4952 sparc64-*linux*)
4953 LD="${LD-ld} -m elf32_sparc"
4955 esac
4957 *64-bit*)
4958 case $host in
4959 x86_64-*kfreebsd*-gnu)
4960 LD="${LD-ld} -m elf_x86_64_fbsd"
4962 x86_64-*linux*)
4963 LD="${LD-ld} -m elf_x86_64"
4965 ppc*-*linux*|powerpc*-*linux*)
4966 LD="${LD-ld} -m elf64ppc"
4968 s390*-*linux*)
4969 LD="${LD-ld} -m elf64_s390"
4971 sparc*-*linux*)
4972 LD="${LD-ld} -m elf64_sparc"
4974 esac
4976 esac
4978 rm -rf conftest*
4981 *-*-sco3.2v5*)
4982 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4983 SAVE_CFLAGS="$CFLAGS"
4984 CFLAGS="$CFLAGS -belf"
4985 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4986 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4987 if test "${lt_cv_cc_needs_belf+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990 ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5004 main ()
5008 return 0;
5010 _ACEOF
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (ac_try="$ac_link"
5013 case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5016 esac
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018 (eval "$ac_link") 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && {
5025 test -z "$ac_c_werror_flag" ||
5026 test ! -s conftest.err
5027 } && test -s conftest$ac_exeext &&
5028 $as_test_x conftest$ac_exeext; then
5029 lt_cv_cc_needs_belf=yes
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 lt_cv_cc_needs_belf=no
5037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5038 conftest$ac_exeext conftest.$ac_ext
5039 ac_ext=c
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5047 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5048 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5049 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5050 CFLAGS="$SAVE_CFLAGS"
5053 sparc*-*solaris*)
5054 # Find out which ABI we are using.
5055 echo 'int i;' > conftest.$ac_ext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; then
5061 case `/usr/bin/file conftest.o` in
5062 *64-bit*)
5063 case $lt_cv_prog_gnu_ld in
5064 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5066 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5067 LD="${LD-ld} -64"
5070 esac
5072 esac
5074 rm -rf conftest*
5078 esac
5080 need_locks="$enable_libtool_lock"
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090 # On Suns, sometimes $CPP names a directory.
5091 if test -n "$CPP" && test -d "$CPP"; then
5092 CPP=
5094 if test -z "$CPP"; then
5095 if test "${ac_cv_prog_CPP+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 # Double quotes because CPP needs to be expanded
5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5101 ac_preproc_ok=false
5102 for ac_c_preproc_warn_flag in '' yes
5104 # Use a header file that comes with gcc, so configuring glibc
5105 # with a fresh cross-compiler works.
5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 # <limits.h> exists even on freestanding compilers.
5108 # On the NeXT, cc -E runs the code through the compiler's parser,
5109 # not just through cpp. "Syntax error" is here to catch this case.
5110 cat >conftest.$ac_ext <<_ACEOF
5111 /* confdefs.h. */
5112 _ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #ifdef __STDC__
5117 # include <limits.h>
5118 #else
5119 # include <assert.h>
5120 #endif
5121 Syntax error
5122 _ACEOF
5123 if { (ac_try="$ac_cpp conftest.$ac_ext"
5124 case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127 esac
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null && {
5136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5138 }; then
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 # Broken: fails on valid input.
5145 continue
5148 rm -f conftest.err conftest.$ac_ext
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat >conftest.$ac_ext <<_ACEOF
5153 /* confdefs.h. */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 #include <ac_nonexistent.h>
5159 _ACEOF
5160 if { (ac_try="$ac_cpp conftest.$ac_ext"
5161 case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } >/dev/null && {
5173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 }; then
5176 # Broken: success on invalid input.
5177 continue
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5187 rm -f conftest.err conftest.$ac_ext
5189 done
5190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5191 rm -f conftest.err conftest.$ac_ext
5192 if $ac_preproc_ok; then
5193 break
5196 done
5197 ac_cv_prog_CPP=$CPP
5200 CPP=$ac_cv_prog_CPP
5201 else
5202 ac_cv_prog_CPP=$CPP
5204 { echo "$as_me:$LINENO: result: $CPP" >&5
5205 echo "${ECHO_T}$CPP" >&6; }
5206 ac_preproc_ok=false
5207 for ac_c_preproc_warn_flag in '' yes
5209 # Use a header file that comes with gcc, so configuring glibc
5210 # with a fresh cross-compiler works.
5211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5212 # <limits.h> exists even on freestanding compilers.
5213 # On the NeXT, cc -E runs the code through the compiler's parser,
5214 # not just through cpp. "Syntax error" is here to catch this case.
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #ifdef __STDC__
5222 # include <limits.h>
5223 #else
5224 # include <assert.h>
5225 #endif
5226 Syntax error
5227 _ACEOF
5228 if { (ac_try="$ac_cpp conftest.$ac_ext"
5229 case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232 esac
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } >/dev/null && {
5241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5242 test ! -s conftest.err
5243 }; then
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 # Broken: fails on valid input.
5250 continue
5253 rm -f conftest.err conftest.$ac_ext
5255 # OK, works on sane cases. Now check whether nonexistent headers
5256 # can be detected and how.
5257 cat >conftest.$ac_ext <<_ACEOF
5258 /* confdefs.h. */
5259 _ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <ac_nonexistent.h>
5264 _ACEOF
5265 if { (ac_try="$ac_cpp conftest.$ac_ext"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 }; then
5281 # Broken: success on invalid input.
5282 continue
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 # Passes both tests.
5288 ac_preproc_ok=:
5289 break
5292 rm -f conftest.err conftest.$ac_ext
5294 done
5295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296 rm -f conftest.err conftest.$ac_ext
5297 if $ac_preproc_ok; then
5299 else
5300 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5303 See \`config.log' for more details." >&2;}
5304 { (exit 1); exit 1; }; }
5307 ac_ext=c
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5314 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5316 if test "${ac_cv_header_stdc+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <stdlib.h>
5326 #include <stdarg.h>
5327 #include <string.h>
5328 #include <float.h>
5331 main ()
5335 return 0;
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compile") 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
5355 ac_cv_header_stdc=yes
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 ac_cv_header_stdc=no
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 if test $ac_cv_header_stdc = yes; then
5366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 #include <string.h>
5375 _ACEOF
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 $EGREP "memchr" >/dev/null 2>&1; then
5379 else
5380 ac_cv_header_stdc=no
5382 rm -f conftest*
5386 if test $ac_cv_header_stdc = yes; then
5387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 #include <stdlib.h>
5396 _ACEOF
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 $EGREP "free" >/dev/null 2>&1; then
5400 else
5401 ac_cv_header_stdc=no
5403 rm -f conftest*
5407 if test $ac_cv_header_stdc = yes; then
5408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5409 if test "$cross_compiling" = yes; then
5411 else
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 #include <ctype.h>
5419 #include <stdlib.h>
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5423 #else
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5429 #endif
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5433 main ()
5435 int i;
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5439 return 2;
5440 return 0;
5442 _ACEOF
5443 rm -f conftest$ac_exeext
5444 if { (ac_try="$ac_link"
5445 case "(($ac_try" in
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_link") 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5454 { (case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_try") 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5464 else
5465 echo "$as_me: program exited with status $ac_status" >&5
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 ( exit $ac_status )
5470 ac_cv_header_stdc=no
5472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5478 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5479 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5480 if test $ac_cv_header_stdc = yes; then
5482 cat >>confdefs.h <<\_ACEOF
5483 #define STDC_HEADERS 1
5484 _ACEOF
5488 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5499 inttypes.h stdint.h unistd.h
5501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 $ac_includes_default
5515 #include <$ac_header>
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5534 eval "$as_ac_Header=yes"
5535 else
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 eval "$as_ac_Header=no"
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 ac_res=`eval echo '${'$as_ac_Header'}'`
5545 { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5550 _ACEOF
5554 done
5558 for ac_header in dlfcn.h
5560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 ac_res=`eval echo '${'$as_ac_Header'}'`
5568 { echo "$as_me:$LINENO: result: $ac_res" >&5
5569 echo "${ECHO_T}$ac_res" >&6; }
5570 else
5571 # Is the header compilable?
5572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 $ac_includes_default
5581 #include <$ac_header>
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5585 case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 ac_header_compiler=yes
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 ac_header_compiler=no
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5610 echo "${ECHO_T}$ac_header_compiler" >&6; }
5612 # Is the header present?
5613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
5622 _ACEOF
5623 if { (ac_try="$ac_cpp conftest.$ac_ext"
5624 case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } >/dev/null && {
5636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 }; then
5639 ac_header_preproc=yes
5640 else
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_header_preproc=no
5647 rm -f conftest.err conftest.$ac_ext
5648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5649 echo "${ECHO_T}$ac_header_preproc" >&6; }
5651 # So? What about this header?
5652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5653 yes:no: )
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5658 ac_header_preproc=yes
5660 no:yes:* )
5661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5673 ( cat <<\_ASBOX
5674 ## -------------------------------------------- ##
5675 ## Report this to http://www.openldap.org/its/ ##
5676 ## -------------------------------------------- ##
5677 _ASBOX
5678 ) | sed "s/^/$as_me: WARNING: /" >&2
5680 esac
5681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 eval "$as_ac_Header=\$ac_header_preproc"
5688 ac_res=`eval echo '${'$as_ac_Header'}'`
5689 { echo "$as_me:$LINENO: result: $ac_res" >&5
5690 echo "${ECHO_T}$ac_res" >&6; }
5693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5694 cat >>confdefs.h <<_ACEOF
5695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5696 _ACEOF
5700 done
5704 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5706 (test "X$CXX" != "Xg++"))) ; then
5707 ac_ext=cpp
5708 ac_cpp='$CXXCPP $CPPFLAGS'
5709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5712 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5713 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5714 if test -z "$CXXCPP"; then
5715 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 # Double quotes because CXXCPP needs to be expanded
5719 for CXXCPP in "$CXX -E" "/lib/cpp"
5721 ac_preproc_ok=false
5722 for ac_cxx_preproc_warn_flag in '' yes
5724 # Use a header file that comes with gcc, so configuring glibc
5725 # with a fresh cross-compiler works.
5726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5727 # <limits.h> exists even on freestanding compilers.
5728 # On the NeXT, cc -E runs the code through the compiler's parser,
5729 # not just through cpp. "Syntax error" is here to catch this case.
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #ifdef __STDC__
5737 # include <limits.h>
5738 #else
5739 # include <assert.h>
5740 #endif
5741 Syntax error
5742 _ACEOF
5743 if { (ac_try="$ac_cpp conftest.$ac_ext"
5744 case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747 esac
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5750 ac_status=$?
5751 grep -v '^ *+' conftest.er1 >conftest.err
5752 rm -f conftest.er1
5753 cat conftest.err >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } >/dev/null && {
5756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5757 test ! -s conftest.err
5758 }; then
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 # Broken: fails on valid input.
5765 continue
5768 rm -f conftest.err conftest.$ac_ext
5770 # OK, works on sane cases. Now check whether nonexistent headers
5771 # can be detected and how.
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <ac_nonexistent.h>
5779 _ACEOF
5780 if { (ac_try="$ac_cpp conftest.$ac_ext"
5781 case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } >/dev/null && {
5793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5794 test ! -s conftest.err
5795 }; then
5796 # Broken: success on invalid input.
5797 continue
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 # Passes both tests.
5803 ac_preproc_ok=:
5804 break
5807 rm -f conftest.err conftest.$ac_ext
5809 done
5810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5811 rm -f conftest.err conftest.$ac_ext
5812 if $ac_preproc_ok; then
5813 break
5816 done
5817 ac_cv_prog_CXXCPP=$CXXCPP
5820 CXXCPP=$ac_cv_prog_CXXCPP
5821 else
5822 ac_cv_prog_CXXCPP=$CXXCPP
5824 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5825 echo "${ECHO_T}$CXXCPP" >&6; }
5826 ac_preproc_ok=false
5827 for ac_cxx_preproc_warn_flag in '' yes
5829 # Use a header file that comes with gcc, so configuring glibc
5830 # with a fresh cross-compiler works.
5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 # <limits.h> exists even on freestanding compilers.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #ifdef __STDC__
5842 # include <limits.h>
5843 #else
5844 # include <assert.h>
5845 #endif
5846 Syntax error
5847 _ACEOF
5848 if { (ac_try="$ac_cpp conftest.$ac_ext"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } >/dev/null && {
5861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5862 test ! -s conftest.err
5863 }; then
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 # Broken: fails on valid input.
5870 continue
5873 rm -f conftest.err conftest.$ac_ext
5875 # OK, works on sane cases. Now check whether nonexistent headers
5876 # can be detected and how.
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <ac_nonexistent.h>
5884 _ACEOF
5885 if { (ac_try="$ac_cpp conftest.$ac_ext"
5886 case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } >/dev/null && {
5898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5899 test ! -s conftest.err
5900 }; then
5901 # Broken: success on invalid input.
5902 continue
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 # Passes both tests.
5908 ac_preproc_ok=:
5909 break
5912 rm -f conftest.err conftest.$ac_ext
5914 done
5915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5916 rm -f conftest.err conftest.$ac_ext
5917 if $ac_preproc_ok; then
5919 else
5920 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5921 See \`config.log' for more details." >&5
5922 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5923 See \`config.log' for more details." >&2;}
5924 { (exit 1); exit 1; }; }
5927 ac_ext=cpp
5928 ac_cpp='$CXXCPP $CPPFLAGS'
5929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5936 ac_ext=f
5937 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5938 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5939 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5940 if test -n "$ac_tool_prefix"; then
5941 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
5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_prog_F77+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 if test -n "$F77"; then
5951 ac_cv_prog_F77="$F77" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5970 F77=$ac_cv_prog_F77
5971 if test -n "$F77"; then
5972 { echo "$as_me:$LINENO: result: $F77" >&5
5973 echo "${ECHO_T}$F77" >&6; }
5974 else
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5980 test -n "$F77" && break
5981 done
5983 if test -z "$F77"; then
5984 ac_ct_F77=$F77
5985 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
5987 # Extract the first word of "$ac_prog", so it can be a program name with args.
5988 set dummy $ac_prog; ac_word=$2
5989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994 if test -n "$ac_ct_F77"; then
5995 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_ac_ct_F77="$ac_prog"
6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6008 done
6009 done
6010 IFS=$as_save_IFS
6014 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6015 if test -n "$ac_ct_F77"; then
6016 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6017 echo "${ECHO_T}$ac_ct_F77" >&6; }
6018 else
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6024 test -n "$ac_ct_F77" && break
6025 done
6027 if test "x$ac_ct_F77" = x; then
6028 F77=""
6029 else
6030 case $cross_compiling:$ac_tool_warned in
6031 yes:)
6032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet. If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&5
6035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6036 whose name does not start with the host triplet. If you think this
6037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040 F77=$ac_ct_F77
6045 # Provide some information about the compiler.
6046 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6047 ac_compiler=`set X $ac_compile; echo $2`
6048 { (ac_try="$ac_compiler --version >&5"
6049 case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_compiler --version >&5") 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }
6058 { (ac_try="$ac_compiler -v >&5"
6059 case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062 esac
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compiler -v >&5") 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }
6068 { (ac_try="$ac_compiler -V >&5"
6069 case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compiler -V >&5") 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }
6078 rm -f a.out
6080 # If we don't use `.F' as extension, the preprocessor is not run on the
6081 # input file. (Note that this only needs to work for GNU compilers.)
6082 ac_save_ext=$ac_ext
6083 ac_ext=F
6084 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 program main
6091 #ifndef __GNUC__
6092 choke me
6093 #endif
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6105 ac_status=$?
6106 grep -v '^ *+' conftest.er1 >conftest.err
6107 rm -f conftest.er1
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_f77_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.$ac_objext; then
6114 ac_compiler_gnu=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_compiler_gnu=no
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6126 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6127 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6128 ac_ext=$ac_save_ext
6129 ac_test_FFLAGS=${FFLAGS+set}
6130 ac_save_FFLAGS=$FFLAGS
6131 FFLAGS=
6132 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6133 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6134 if test "${ac_cv_prog_f77_g+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 FFLAGS=-g
6138 cat >conftest.$ac_ext <<_ACEOF
6139 program main
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (ac_try="$ac_compile"
6145 case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_compile") 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && {
6157 test -z "$ac_f77_werror_flag" ||
6158 test ! -s conftest.err
6159 } && test -s conftest.$ac_objext; then
6160 ac_cv_prog_f77_g=yes
6161 else
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ac_cv_prog_f77_g=no
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6172 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6173 if test "$ac_test_FFLAGS" = set; then
6174 FFLAGS=$ac_save_FFLAGS
6175 elif test $ac_cv_prog_f77_g = yes; then
6176 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6177 FFLAGS="-g -O2"
6178 else
6179 FFLAGS="-g"
6181 else
6182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6183 FFLAGS="-O2"
6184 else
6185 FFLAGS=
6189 G77=`test $ac_compiler_gnu = yes && echo yes`
6190 ac_ext=c
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6199 # find the maximum length of command line arguments
6200 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6201 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6202 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6206 teststring="ABCD"
6208 case $build_os in
6209 msdosdjgpp*)
6210 # On DJGPP, this test can blow up pretty badly due to problems in libc
6211 # (any single argument exceeding 2000 bytes causes a buffer overrun
6212 # during glob expansion). Even if it were fixed, the result of this
6213 # check would be larger than it should be.
6214 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6217 gnu*)
6218 # Under GNU Hurd, this test is not required because there is
6219 # no limit to the length of command line arguments.
6220 # Libtool will interpret -1 as no limit whatsoever
6221 lt_cv_sys_max_cmd_len=-1;
6224 cygwin* | mingw*)
6225 # On Win9x/ME, this test blows up -- it succeeds, but takes
6226 # about 5 minutes as the teststring grows exponentially.
6227 # Worse, since 9x/ME are not pre-emptively multitasking,
6228 # you end up with a "frozen" computer, even though with patience
6229 # the test eventually succeeds (with a max line length of 256k).
6230 # Instead, let's just punt: use the minimum linelength reported by
6231 # all of the supported platforms: 8192 (on NT/2K/XP).
6232 lt_cv_sys_max_cmd_len=8192;
6235 amigaos*)
6236 # On AmigaOS with pdksh, this test takes hours, literally.
6237 # So we just punt and use a minimum line length of 8192.
6238 lt_cv_sys_max_cmd_len=8192;
6241 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6242 # This has been around since 386BSD, at least. Likely further.
6243 if test -x /sbin/sysctl; then
6244 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6245 elif test -x /usr/sbin/sysctl; then
6246 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6247 else
6248 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6250 # And add a safety zone
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6255 interix*)
6256 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6257 lt_cv_sys_max_cmd_len=196608
6260 osf*)
6261 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6262 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6263 # nice to cause kernel panics so lets avoid the loop below.
6264 # First set a reasonable default.
6265 lt_cv_sys_max_cmd_len=16384
6267 if test -x /sbin/sysconfig; then
6268 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6269 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6270 esac
6273 sco3.2v5*)
6274 lt_cv_sys_max_cmd_len=102400
6276 sysv5* | sco5v6* | sysv4.2uw2*)
6277 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6278 if test -n "$kargmax"; then
6279 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6280 else
6281 lt_cv_sys_max_cmd_len=32768
6285 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6286 if test -n "$lt_cv_sys_max_cmd_len"; then
6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6289 else
6290 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6291 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6292 = "XX$teststring") >/dev/null 2>&1 &&
6293 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6294 lt_cv_sys_max_cmd_len=$new_result &&
6295 test $i != 17 # 1/2 MB should be enough
6297 i=`expr $i + 1`
6298 teststring=$teststring$teststring
6299 done
6300 teststring=
6301 # Add a significant safety factor because C++ compilers can tack on massive
6302 # amounts of additional arguments before passing them to the linker.
6303 # It appears as though 1/2 is a usable value.
6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6307 esac
6311 if test -n $lt_cv_sys_max_cmd_len ; then
6312 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6313 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6314 else
6315 { echo "$as_me:$LINENO: result: none" >&5
6316 echo "${ECHO_T}none" >&6; }
6323 # Check for command to grab the raw symbol name followed by C symbol from nm.
6324 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6325 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6326 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6330 # These are sane defaults that work on at least a few old systems.
6331 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6333 # Character class describing NM global symbol codes.
6334 symcode='[BCDEGRST]'
6336 # Regexp to match symbols that can be accessed directly from C.
6337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6339 # Transform an extracted symbol line into a proper C declaration
6340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6342 # Transform an extracted symbol line into symbol name and symbol address
6343 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'"
6345 # Define system-specific variables.
6346 case $host_os in
6347 aix*)
6348 symcode='[BCDT]'
6350 cygwin* | mingw* | pw32*)
6351 symcode='[ABCDGISTW]'
6353 hpux*) # Its linker distinguishes data from code symbols
6354 if test "$host_cpu" = ia64; then
6355 symcode='[ABCDEGRST]'
6357 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6358 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'"
6360 linux* | k*bsd*-gnu)
6361 if test "$host_cpu" = ia64; then
6362 symcode='[ABCDGIRSTW]'
6363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6364 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'"
6367 irix* | nonstopux*)
6368 symcode='[BCDEGRST]'
6370 osf*)
6371 symcode='[BCDEGQRST]'
6373 solaris*)
6374 symcode='[BDRT]'
6376 sco3.2v5*)
6377 symcode='[DT]'
6379 sysv4.2uw2*)
6380 symcode='[DT]'
6382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6383 symcode='[ABDT]'
6385 sysv4)
6386 symcode='[DFNSTU]'
6388 esac
6390 # Handle CRLF in mingw tool chain
6391 opt_cr=
6392 case $build_os in
6393 mingw*)
6394 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6396 esac
6398 # If we're using GNU nm, then use its standard symbol codes.
6399 case `$NM -V 2>&1` in
6400 *GNU* | *'with BFD'*)
6401 symcode='[ABCDGIRSTW]' ;;
6402 esac
6404 # Try without a prefix undercore, then with it.
6405 for ac_symprfx in "" "_"; do
6407 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6408 symxfrm="\\1 $ac_symprfx\\2 \\2"
6410 # Write the raw and C identifiers.
6411 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6413 # Check to see that the pipe works correctly.
6414 pipe_works=no
6416 rm -f conftest*
6417 cat > conftest.$ac_ext <<EOF
6418 #ifdef __cplusplus
6419 extern "C" {
6420 #endif
6421 char nm_test_var;
6422 void nm_test_func(){}
6423 #ifdef __cplusplus
6425 #endif
6426 int main(){nm_test_var='a';nm_test_func();return(0);}
6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; then
6434 # Now try to grab the symbols.
6435 nlist=conftest.nm
6436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && test -s "$nlist"; then
6441 # Try sorting and uniquifying the output.
6442 if sort "$nlist" | uniq > "$nlist"T; then
6443 mv -f "$nlist"T "$nlist"
6444 else
6445 rm -f "$nlist"T
6448 # Make sure that we snagged all the symbols we need.
6449 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6450 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6451 cat <<EOF > conftest.$ac_ext
6452 #ifdef __cplusplus
6453 extern "C" {
6454 #endif
6457 # Now generate the symbol file.
6458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6460 cat <<EOF >> conftest.$ac_ext
6461 #if defined (__STDC__) && __STDC__
6462 # define lt_ptr_t void *
6463 #else
6464 # define lt_ptr_t char *
6465 # define const
6466 #endif
6468 /* The mapping between symbol names and symbols. */
6469 const struct {
6470 const char *name;
6471 lt_ptr_t address;
6473 lt_preloaded_symbols[] =
6476 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6477 cat <<\EOF >> conftest.$ac_ext
6478 {0, (lt_ptr_t) 0}
6481 #ifdef __cplusplus
6483 #endif
6485 # Now try linking the two files.
6486 mv conftest.$ac_objext conftstm.$ac_objext
6487 lt_save_LIBS="$LIBS"
6488 lt_save_CFLAGS="$CFLAGS"
6489 LIBS="conftstm.$ac_objext"
6490 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6492 (eval $ac_link) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6496 pipe_works=yes
6498 LIBS="$lt_save_LIBS"
6499 CFLAGS="$lt_save_CFLAGS"
6500 else
6501 echo "cannot find nm_test_func in $nlist" >&5
6503 else
6504 echo "cannot find nm_test_var in $nlist" >&5
6506 else
6507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6509 else
6510 echo "$progname: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 rm -rf conftest* conftst*
6515 # Do not use the global_symbol_pipe unless it works.
6516 if test "$pipe_works" = yes; then
6517 break
6518 else
6519 lt_cv_sys_global_symbol_pipe=
6521 done
6525 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6526 lt_cv_sys_global_symbol_to_cdecl=
6528 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6529 { echo "$as_me:$LINENO: result: failed" >&5
6530 echo "${ECHO_T}failed" >&6; }
6531 else
6532 { echo "$as_me:$LINENO: result: ok" >&5
6533 echo "${ECHO_T}ok" >&6; }
6536 { echo "$as_me:$LINENO: checking for objdir" >&5
6537 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6538 if test "${lt_cv_objdir+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541 rm -f .libs 2>/dev/null
6542 mkdir .libs 2>/dev/null
6543 if test -d .libs; then
6544 lt_cv_objdir=.libs
6545 else
6546 # MS-DOS does not allow filenames that begin with a dot.
6547 lt_cv_objdir=_libs
6549 rmdir .libs 2>/dev/null
6551 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6552 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6553 objdir=$lt_cv_objdir
6559 case $host_os in
6560 aix3*)
6561 # AIX sometimes has problems with the GCC collect2 program. For some
6562 # reason, if we set the COLLECT_NAMES environment variable, the problems
6563 # vanish in a puff of smoke.
6564 if test "X${COLLECT_NAMES+set}" != Xset; then
6565 COLLECT_NAMES=
6566 export COLLECT_NAMES
6569 esac
6571 # Sed substitution that helps us do robust quoting. It backslashifies
6572 # metacharacters that are still active within double-quoted strings.
6573 Xsed='sed -e 1s/^X//'
6574 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6576 # Same as above, but do not quote variable references.
6577 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6579 # Sed substitution to delay expansion of an escaped shell variable in a
6580 # double_quote_subst'ed string.
6581 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6583 # Sed substitution to avoid accidental globbing in evaled expressions
6584 no_glob_subst='s/\*/\\\*/g'
6586 # Constants:
6587 rm="rm -f"
6589 # Global variables:
6590 default_ofile=libtool
6591 can_build_shared=yes
6593 # All known linkers require a `.a' archive for static linking (except MSVC,
6594 # which needs '.lib').
6595 libext=a
6596 ltmain="$ac_aux_dir/ltmain.sh"
6597 ofile="$default_ofile"
6598 with_gnu_ld="$lt_cv_prog_gnu_ld"
6600 if test -n "$ac_tool_prefix"; then
6601 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ar; ac_word=$2
6603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6605 if test "${ac_cv_prog_AR+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608 if test -n "$AR"; then
6609 ac_cv_prog_AR="$AR" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_AR="${ac_tool_prefix}ar"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6622 done
6623 done
6624 IFS=$as_save_IFS
6628 AR=$ac_cv_prog_AR
6629 if test -n "$AR"; then
6630 { echo "$as_me:$LINENO: result: $AR" >&5
6631 echo "${ECHO_T}$AR" >&6; }
6632 else
6633 { echo "$as_me:$LINENO: result: no" >&5
6634 echo "${ECHO_T}no" >&6; }
6639 if test -z "$ac_cv_prog_AR"; then
6640 ac_ct_AR=$AR
6641 # Extract the first word of "ar", so it can be a program name with args.
6642 set dummy ar; ac_word=$2
6643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648 if test -n "$ac_ct_AR"; then
6649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658 ac_cv_prog_ac_ct_AR="ar"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6662 done
6663 done
6664 IFS=$as_save_IFS
6668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6669 if test -n "$ac_ct_AR"; then
6670 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6671 echo "${ECHO_T}$ac_ct_AR" >&6; }
6672 else
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6677 if test "x$ac_ct_AR" = x; then
6678 AR="false"
6679 else
6680 case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6683 whose name does not start with the host triplet. If you think this
6684 configuration is useful to you, please write to autoconf@gnu.org." >&5
6685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6686 whose name does not start with the host triplet. If you think this
6687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6688 ac_tool_warned=yes ;;
6689 esac
6690 AR=$ac_ct_AR
6692 else
6693 AR="$ac_cv_prog_AR"
6696 if test -n "$ac_tool_prefix"; then
6697 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_prog_RANLIB+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704 if test -n "$RANLIB"; then
6705 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6718 done
6719 done
6720 IFS=$as_save_IFS
6724 RANLIB=$ac_cv_prog_RANLIB
6725 if test -n "$RANLIB"; then
6726 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6727 echo "${ECHO_T}$RANLIB" >&6; }
6728 else
6729 { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6735 if test -z "$ac_cv_prog_RANLIB"; then
6736 ac_ct_RANLIB=$RANLIB
6737 # Extract the first word of "ranlib", so it can be a program name with args.
6738 set dummy ranlib; ac_word=$2
6739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 else
6744 if test -n "$ac_ct_RANLIB"; then
6745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_ac_ct_RANLIB="ranlib"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6758 done
6759 done
6760 IFS=$as_save_IFS
6764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6765 if test -n "$ac_ct_RANLIB"; then
6766 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6767 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6768 else
6769 { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6773 if test "x$ac_ct_RANLIB" = x; then
6774 RANLIB=":"
6775 else
6776 case $cross_compiling:$ac_tool_warned in
6777 yes:)
6778 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6779 whose name does not start with the host triplet. If you think this
6780 configuration is useful to you, please write to autoconf@gnu.org." >&5
6781 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6782 whose name does not start with the host triplet. If you think this
6783 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6784 ac_tool_warned=yes ;;
6785 esac
6786 RANLIB=$ac_ct_RANLIB
6788 else
6789 RANLIB="$ac_cv_prog_RANLIB"
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}strip; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_prog_STRIP+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 if test -n "$STRIP"; then
6801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6814 done
6815 done
6816 IFS=$as_save_IFS
6820 STRIP=$ac_cv_prog_STRIP
6821 if test -n "$STRIP"; then
6822 { echo "$as_me:$LINENO: result: $STRIP" >&5
6823 echo "${ECHO_T}$STRIP" >&6; }
6824 else
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6831 if test -z "$ac_cv_prog_STRIP"; then
6832 ac_ct_STRIP=$STRIP
6833 # Extract the first word of "strip", so it can be a program name with args.
6834 set dummy strip; ac_word=$2
6835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6837 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840 if test -n "$ac_ct_STRIP"; then
6841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_ac_ct_STRIP="strip"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6854 done
6855 done
6856 IFS=$as_save_IFS
6860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6861 if test -n "$ac_ct_STRIP"; then
6862 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6863 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6864 else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6869 if test "x$ac_ct_STRIP" = x; then
6870 STRIP=":"
6871 else
6872 case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6875 whose name does not start with the host triplet. If you think this
6876 configuration is useful to you, please write to autoconf@gnu.org." >&5
6877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6878 whose name does not start with the host triplet. If you think this
6879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882 STRIP=$ac_ct_STRIP
6884 else
6885 STRIP="$ac_cv_prog_STRIP"
6889 old_CC="$CC"
6890 old_CFLAGS="$CFLAGS"
6892 # Set sane defaults for various variables
6893 test -z "$AR" && AR=ar
6894 test -z "$AR_FLAGS" && AR_FLAGS=cru
6895 test -z "$AS" && AS=as
6896 test -z "$CC" && CC=cc
6897 test -z "$LTCC" && LTCC=$CC
6898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6899 test -z "$DLLTOOL" && DLLTOOL=dlltool
6900 test -z "$LD" && LD=ld
6901 test -z "$LN_S" && LN_S="ln -s"
6902 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6903 test -z "$NM" && NM=nm
6904 test -z "$SED" && SED=sed
6905 test -z "$OBJDUMP" && OBJDUMP=objdump
6906 test -z "$RANLIB" && RANLIB=:
6907 test -z "$STRIP" && STRIP=:
6908 test -z "$ac_objext" && ac_objext=o
6910 # Determine commands to create old-style static archives.
6911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6912 old_postinstall_cmds='chmod 644 $oldlib'
6913 old_postuninstall_cmds=
6915 if test -n "$RANLIB"; then
6916 case $host_os in
6917 openbsd*)
6918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6923 esac
6924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6927 for cc_temp in $compiler""; do
6928 case $cc_temp in
6929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6931 \-*) ;;
6932 *) break;;
6933 esac
6934 done
6935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6938 # Only perform the check for file, if the check method requires it
6939 case $deplibs_check_method in
6940 file_magic*)
6941 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6942 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6943 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6944 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947 case $MAGIC_CMD in
6948 [\\/*] | ?:[\\/]*)
6949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6952 lt_save_MAGIC_CMD="$MAGIC_CMD"
6953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6955 for ac_dir in $ac_dummy; do
6956 IFS="$lt_save_ifs"
6957 test -z "$ac_dir" && ac_dir=.
6958 if test -f $ac_dir/${ac_tool_prefix}file; then
6959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6960 if test -n "$file_magic_test_file"; then
6961 case $deplibs_check_method in
6962 "file_magic "*)
6963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6966 $EGREP "$file_magic_regex" > /dev/null; then
6968 else
6969 cat <<EOF 1>&2
6971 *** Warning: the command libtool uses to detect shared libraries,
6972 *** $file_magic_cmd, produces output that libtool cannot recognize.
6973 *** The result is that libtool may fail to recognize shared libraries
6974 *** as such. This will affect the creation of libtool libraries that
6975 *** depend on shared libraries, but programs linked with such libtool
6976 *** libraries will work regardless of this problem. Nevertheless, you
6977 *** may want to report the problem to your system manager and/or to
6978 *** bug-libtool@gnu.org
6981 fi ;;
6982 esac
6984 break
6986 done
6987 IFS="$lt_save_ifs"
6988 MAGIC_CMD="$lt_save_MAGIC_CMD"
6990 esac
6993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6994 if test -n "$MAGIC_CMD"; then
6995 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6996 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6997 else
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7002 if test -z "$lt_cv_path_MAGIC_CMD"; then
7003 if test -n "$ac_tool_prefix"; then
7004 { echo "$as_me:$LINENO: checking for file" >&5
7005 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 case $MAGIC_CMD in
7010 [\\/*] | ?:[\\/]*)
7011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7014 lt_save_MAGIC_CMD="$MAGIC_CMD"
7015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7017 for ac_dir in $ac_dummy; do
7018 IFS="$lt_save_ifs"
7019 test -z "$ac_dir" && ac_dir=.
7020 if test -f $ac_dir/file; then
7021 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7022 if test -n "$file_magic_test_file"; then
7023 case $deplibs_check_method in
7024 "file_magic "*)
7025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7028 $EGREP "$file_magic_regex" > /dev/null; then
7030 else
7031 cat <<EOF 1>&2
7033 *** Warning: the command libtool uses to detect shared libraries,
7034 *** $file_magic_cmd, produces output that libtool cannot recognize.
7035 *** The result is that libtool may fail to recognize shared libraries
7036 *** as such. This will affect the creation of libtool libraries that
7037 *** depend on shared libraries, but programs linked with such libtool
7038 *** libraries will work regardless of this problem. Nevertheless, you
7039 *** may want to report the problem to your system manager and/or to
7040 *** bug-libtool@gnu.org
7043 fi ;;
7044 esac
7046 break
7048 done
7049 IFS="$lt_save_ifs"
7050 MAGIC_CMD="$lt_save_MAGIC_CMD"
7052 esac
7055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7056 if test -n "$MAGIC_CMD"; then
7057 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7058 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7059 else
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7064 else
7065 MAGIC_CMD=:
7071 esac
7074 case $host_os in
7075 rhapsody* | darwin*)
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 if test -n "$DSYMUTIL"; then
7085 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7098 done
7099 done
7100 IFS=$as_save_IFS
7104 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7105 if test -n "$DSYMUTIL"; then
7106 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7107 echo "${ECHO_T}$DSYMUTIL" >&6; }
7108 else
7109 { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7115 if test -z "$ac_cv_prog_DSYMUTIL"; then
7116 ac_ct_DSYMUTIL=$DSYMUTIL
7117 # Extract the first word of "dsymutil", so it can be a program name with args.
7118 set dummy dsymutil; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 if test -n "$ac_ct_DSYMUTIL"; then
7125 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7138 done
7139 done
7140 IFS=$as_save_IFS
7144 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7145 if test -n "$ac_ct_DSYMUTIL"; then
7146 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7147 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7148 else
7149 { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7153 if test "x$ac_ct_DSYMUTIL" = x; then
7154 DSYMUTIL=":"
7155 else
7156 case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7159 whose name does not start with the host triplet. If you think this
7160 configuration is useful to you, please write to autoconf@gnu.org." >&5
7161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7162 whose name does not start with the host triplet. If you think this
7163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7164 ac_tool_warned=yes ;;
7165 esac
7166 DSYMUTIL=$ac_ct_DSYMUTIL
7168 else
7169 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 if test -n "$NMEDIT"; then
7181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7194 done
7195 done
7196 IFS=$as_save_IFS
7200 NMEDIT=$ac_cv_prog_NMEDIT
7201 if test -n "$NMEDIT"; then
7202 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7203 echo "${ECHO_T}$NMEDIT" >&6; }
7204 else
7205 { echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6; }
7211 if test -z "$ac_cv_prog_NMEDIT"; then
7212 ac_ct_NMEDIT=$NMEDIT
7213 # Extract the first word of "nmedit", so it can be a program name with args.
7214 set dummy nmedit; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 if test -n "$ac_ct_NMEDIT"; then
7221 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7234 done
7235 done
7236 IFS=$as_save_IFS
7240 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7241 if test -n "$ac_ct_NMEDIT"; then
7242 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7243 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7244 else
7245 { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7249 if test "x$ac_ct_NMEDIT" = x; then
7250 NMEDIT=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7255 whose name does not start with the host triplet. If you think this
7256 configuration is useful to you, please write to autoconf@gnu.org." >&5
7257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7258 whose name does not start with the host triplet. If you think this
7259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7260 ac_tool_warned=yes ;;
7261 esac
7262 NMEDIT=$ac_ct_NMEDIT
7264 else
7265 NMEDIT="$ac_cv_prog_NMEDIT"
7269 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7270 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7271 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274 lt_cv_apple_cc_single_mod=no
7275 if test -z "${LT_MULTI_MODULE}"; then
7276 # By default we will add the -single_module flag. You can override
7277 # by either setting the environment variable LT_MULTI_MODULE
7278 # non-empty at configure time, or by adding -multi_module to the
7279 # link flags.
7280 echo "int foo(void){return 1;}" > conftest.c
7281 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7282 -dynamiclib ${wl}-single_module conftest.c
7283 if test -f libconftest.dylib; then
7284 lt_cv_apple_cc_single_mod=yes
7285 rm -rf libconftest.dylib*
7287 rm conftest.c
7290 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7291 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7292 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7293 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7294 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 lt_cv_ld_exported_symbols_list=no
7298 save_LDFLAGS=$LDFLAGS
7299 echo "_main" > conftest.sym
7300 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7309 main ()
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_link") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest$ac_exeext &&
7333 $as_test_x conftest$ac_exeext; then
7334 lt_cv_ld_exported_symbols_list=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 lt_cv_ld_exported_symbols_list=no
7342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7343 conftest$ac_exeext conftest.$ac_ext
7344 LDFLAGS="$save_LDFLAGS"
7347 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7348 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7349 case $host_os in
7350 rhapsody* | darwin1.[0123])
7351 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7352 darwin1.*)
7353 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7354 darwin*)
7355 # if running on 10.5 or later, the deployment target defaults
7356 # to the OS version, if on x86, and 10.4, the deployment
7357 # target defaults to 10.4. Don't you love it?
7358 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7359 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7360 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7361 10.[012]*)
7362 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7363 10.*)
7364 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7365 esac
7367 esac
7368 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7369 _lt_dar_single_mod='$single_module'
7371 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7372 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7373 else
7374 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7376 if test "$DSYMUTIL" != ":"; then
7377 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7378 else
7379 _lt_dsymutil=
7382 esac
7385 enable_dlopen=no
7386 enable_win32_dll=no
7388 # Check whether --enable-libtool-lock was given.
7389 if test "${enable_libtool_lock+set}" = set; then
7390 enableval=$enable_libtool_lock;
7393 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7396 # Check whether --with-pic was given.
7397 if test "${with_pic+set}" = set; then
7398 withval=$with_pic; pic_mode="$withval"
7399 else
7400 pic_mode=default
7403 test -z "$pic_mode" && pic_mode=default
7405 # Use C for the default configuration in the libtool script
7406 tagname=
7407 lt_save_CC="$CC"
7408 ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415 # Source file extension for C test sources.
7416 ac_ext=c
7418 # Object file extension for compiled C test sources.
7419 objext=o
7420 objext=$objext
7422 # Code to be used in simple compile tests
7423 lt_simple_compile_test_code="int some_variable = 0;"
7425 # Code to be used in simple link tests
7426 lt_simple_link_test_code='int main(){return(0);}'
7429 # If no C compiler was specified, use CC.
7430 LTCC=${LTCC-"$CC"}
7432 # If no C compiler flags were specified, use CFLAGS.
7433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7435 # Allow CC to be a program name with arguments.
7436 compiler=$CC
7439 # save warnings/boilerplate of simple test code
7440 ac_outfile=conftest.$ac_objext
7441 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7442 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7443 _lt_compiler_boilerplate=`cat conftest.err`
7444 $rm conftest*
7446 ac_outfile=conftest.$ac_objext
7447 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7448 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7449 _lt_linker_boilerplate=`cat conftest.err`
7450 $rm -r conftest*
7454 lt_prog_compiler_no_builtin_flag=
7456 if test "$GCC" = yes; then
7457 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7460 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7461 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7462 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 lt_cv_prog_compiler_rtti_exceptions=no
7466 ac_outfile=conftest.$ac_objext
7467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7468 lt_compiler_flag="-fno-rtti -fno-exceptions"
7469 # Insert the option either (1) after the last *FLAGS variable, or
7470 # (2) before a word containing "conftest.", or (3) at the end.
7471 # Note that $ac_compile itself does not contain backslashes and begins
7472 # with a dollar sign (not a hyphen), so the echo should work correctly.
7473 # The option is referenced via a variable to avoid confusing sed.
7474 lt_compile=`echo "$ac_compile" | $SED \
7475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7477 -e 's:$: $lt_compiler_flag:'`
7478 (eval echo "\"\$as_me:7478: $lt_compile\"" >&5)
7479 (eval "$lt_compile" 2>conftest.err)
7480 ac_status=$?
7481 cat conftest.err >&5
7482 echo "$as_me:7482: \$? = $ac_status" >&5
7483 if (exit $ac_status) && test -s "$ac_outfile"; then
7484 # The compiler can only warn and ignore the option if not recognized
7485 # So say no if there are warnings other than the usual output.
7486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7489 lt_cv_prog_compiler_rtti_exceptions=yes
7492 $rm conftest*
7495 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7496 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7499 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7500 else
7506 lt_prog_compiler_wl=
7507 lt_prog_compiler_pic=
7508 lt_prog_compiler_static=
7510 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7511 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7513 if test "$GCC" = yes; then
7514 lt_prog_compiler_wl='-Wl,'
7515 lt_prog_compiler_static='-static'
7517 case $host_os in
7518 aix*)
7519 # All AIX code is PIC.
7520 if test "$host_cpu" = ia64; then
7521 # AIX 5 now supports IA64 processor
7522 lt_prog_compiler_static='-Bstatic'
7526 amigaos*)
7527 # FIXME: we need at least 68020 code to build shared libraries, but
7528 # adding the `-m68020' flag to GCC prevents building anything better,
7529 # like `-m68040'.
7530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7534 # PIC is the default for these OSes.
7537 mingw* | cygwin* | pw32* | os2*)
7538 # This hack is so that the source file can tell whether it is being
7539 # built for inclusion in a dll (and should export symbols for example).
7540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7541 # (--disable-auto-import) libraries
7542 lt_prog_compiler_pic='-DDLL_EXPORT'
7545 darwin* | rhapsody*)
7546 # PIC is the default on this platform
7547 # Common symbols not allowed in MH_DYLIB files
7548 lt_prog_compiler_pic='-fno-common'
7551 interix[3-9]*)
7552 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7553 # Instead, we relocate shared libraries at runtime.
7556 msdosdjgpp*)
7557 # Just because we use GCC doesn't mean we suddenly get shared libraries
7558 # on systems that don't support them.
7559 lt_prog_compiler_can_build_shared=no
7560 enable_shared=no
7563 sysv4*MP*)
7564 if test -d /usr/nec; then
7565 lt_prog_compiler_pic=-Kconform_pic
7569 hpux*)
7570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7571 # not for PA HP-UX.
7572 case $host_cpu in
7573 hppa*64*|ia64*)
7574 # +Z the default
7577 lt_prog_compiler_pic='-fPIC'
7579 esac
7583 lt_prog_compiler_pic='-fPIC'
7585 esac
7586 else
7587 # PORTME Check for flag to pass linker flags through the system compiler.
7588 case $host_os in
7589 aix*)
7590 lt_prog_compiler_wl='-Wl,'
7591 if test "$host_cpu" = ia64; then
7592 # AIX 5 now supports IA64 processor
7593 lt_prog_compiler_static='-Bstatic'
7594 else
7595 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7598 darwin*)
7599 # PIC is the default on this platform
7600 # Common symbols not allowed in MH_DYLIB files
7601 case $cc_basename in
7602 xlc*)
7603 lt_prog_compiler_pic='-qnocommon'
7604 lt_prog_compiler_wl='-Wl,'
7606 esac
7609 mingw* | cygwin* | pw32* | os2*)
7610 # This hack is so that the source file can tell whether it is being
7611 # built for inclusion in a dll (and should export symbols for example).
7612 lt_prog_compiler_pic='-DDLL_EXPORT'
7615 hpux9* | hpux10* | hpux11*)
7616 lt_prog_compiler_wl='-Wl,'
7617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7618 # not for PA HP-UX.
7619 case $host_cpu in
7620 hppa*64*|ia64*)
7621 # +Z the default
7624 lt_prog_compiler_pic='+Z'
7626 esac
7627 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7628 lt_prog_compiler_static='${wl}-a ${wl}archive'
7631 irix5* | irix6* | nonstopux*)
7632 lt_prog_compiler_wl='-Wl,'
7633 # PIC (with -KPIC) is the default.
7634 lt_prog_compiler_static='-non_shared'
7637 newsos6)
7638 lt_prog_compiler_pic='-KPIC'
7639 lt_prog_compiler_static='-Bstatic'
7642 linux* | k*bsd*-gnu)
7643 case $cc_basename in
7644 icc* | ecc*)
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_pic='-KPIC'
7647 lt_prog_compiler_static='-static'
7649 pgcc* | pgf77* | pgf90* | pgf95*)
7650 # Portland Group compilers (*not* the Pentium gcc compiler,
7651 # which looks to be a dead project)
7652 lt_prog_compiler_wl='-Wl,'
7653 lt_prog_compiler_pic='-fpic'
7654 lt_prog_compiler_static='-Bstatic'
7656 ccc*)
7657 lt_prog_compiler_wl='-Wl,'
7658 # All Alpha code is PIC.
7659 lt_prog_compiler_static='-non_shared'
7662 case `$CC -V 2>&1 | sed 5q` in
7663 *Sun\ C*)
7664 # Sun C 5.9
7665 lt_prog_compiler_pic='-KPIC'
7666 lt_prog_compiler_static='-Bstatic'
7667 lt_prog_compiler_wl='-Wl,'
7669 *Sun\ F*)
7670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7671 lt_prog_compiler_pic='-KPIC'
7672 lt_prog_compiler_static='-Bstatic'
7673 lt_prog_compiler_wl=''
7675 esac
7677 esac
7680 osf3* | osf4* | osf5*)
7681 lt_prog_compiler_wl='-Wl,'
7682 # All OSF/1 code is PIC.
7683 lt_prog_compiler_static='-non_shared'
7686 rdos*)
7687 lt_prog_compiler_static='-non_shared'
7690 solaris*)
7691 lt_prog_compiler_pic='-KPIC'
7692 lt_prog_compiler_static='-Bstatic'
7693 case $cc_basename in
7694 f77* | f90* | f95*)
7695 lt_prog_compiler_wl='-Qoption ld ';;
7697 lt_prog_compiler_wl='-Wl,';;
7698 esac
7701 sunos4*)
7702 lt_prog_compiler_wl='-Qoption ld '
7703 lt_prog_compiler_pic='-PIC'
7704 lt_prog_compiler_static='-Bstatic'
7707 sysv4 | sysv4.2uw2* | sysv4.3*)
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_pic='-KPIC'
7710 lt_prog_compiler_static='-Bstatic'
7713 sysv4*MP*)
7714 if test -d /usr/nec ;then
7715 lt_prog_compiler_pic='-Kconform_pic'
7716 lt_prog_compiler_static='-Bstatic'
7720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7721 lt_prog_compiler_wl='-Wl,'
7722 lt_prog_compiler_pic='-KPIC'
7723 lt_prog_compiler_static='-Bstatic'
7726 unicos*)
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_can_build_shared=no
7731 uts4*)
7732 lt_prog_compiler_pic='-pic'
7733 lt_prog_compiler_static='-Bstatic'
7737 lt_prog_compiler_can_build_shared=no
7739 esac
7742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7743 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7746 # Check to make sure the PIC flag actually works.
7748 if test -n "$lt_prog_compiler_pic"; then
7750 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7751 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7752 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 lt_cv_prog_compiler_pic_works=no
7756 ac_outfile=conftest.$ac_objext
7757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7759 # Insert the option either (1) after the last *FLAGS variable, or
7760 # (2) before a word containing "conftest.", or (3) at the end.
7761 # Note that $ac_compile itself does not contain backslashes and begins
7762 # with a dollar sign (not a hyphen), so the echo should work correctly.
7763 # The option is referenced via a variable to avoid confusing sed.
7764 lt_compile=`echo "$ac_compile" | $SED \
7765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7767 -e 's:$: $lt_compiler_flag:'`
7768 (eval echo "\"\$as_me:7768: $lt_compile\"" >&5)
7769 (eval "$lt_compile" 2>conftest.err)
7770 ac_status=$?
7771 cat conftest.err >&5
7772 echo "$as_me:7772: \$? = $ac_status" >&5
7773 if (exit $ac_status) && test -s "$ac_outfile"; then
7774 # The compiler can only warn and ignore the option if not recognized
7775 # So say no if there are warnings other than the usual output.
7776 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7779 lt_cv_prog_compiler_pic_works=yes
7782 $rm conftest*
7785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7786 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7788 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7789 case $lt_prog_compiler_pic in
7790 "" | " "*) ;;
7791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7792 esac
7793 else
7794 lt_prog_compiler_pic=
7795 lt_prog_compiler_can_build_shared=no
7799 case $host_os in
7800 # For platforms which do not support PIC, -DPIC is meaningless:
7801 *djgpp*)
7802 lt_prog_compiler_pic=
7805 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7807 esac
7810 # Check to make sure the static flag actually works.
7812 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7813 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7814 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7815 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818 lt_cv_prog_compiler_static_works=no
7819 save_LDFLAGS="$LDFLAGS"
7820 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7823 # The linker can only warn and ignore the option if not recognized
7824 # So say no if there are warnings
7825 if test -s conftest.err; then
7826 # Append any errors to the config.log.
7827 cat conftest.err 1>&5
7828 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7830 if diff conftest.exp conftest.er2 >/dev/null; then
7831 lt_cv_prog_compiler_static_works=yes
7833 else
7834 lt_cv_prog_compiler_static_works=yes
7837 $rm -r conftest*
7838 LDFLAGS="$save_LDFLAGS"
7841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7842 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7844 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7846 else
7847 lt_prog_compiler_static=
7851 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856 lt_cv_prog_compiler_c_o=no
7857 $rm -r conftest 2>/dev/null
7858 mkdir conftest
7859 cd conftest
7860 mkdir out
7861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7863 lt_compiler_flag="-o out/conftest2.$ac_objext"
7864 # Insert the option either (1) after the last *FLAGS variable, or
7865 # (2) before a word containing "conftest.", or (3) at the end.
7866 # Note that $ac_compile itself does not contain backslashes and begins
7867 # with a dollar sign (not a hyphen), so the echo should work correctly.
7868 lt_compile=`echo "$ac_compile" | $SED \
7869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7871 -e 's:$: $lt_compiler_flag:'`
7872 (eval echo "\"\$as_me:7872: $lt_compile\"" >&5)
7873 (eval "$lt_compile" 2>out/conftest.err)
7874 ac_status=$?
7875 cat out/conftest.err >&5
7876 echo "$as_me:7876: \$? = $ac_status" >&5
7877 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7878 then
7879 # The compiler can only warn and ignore the option if not recognized
7880 # So say no if there are warnings
7881 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7884 lt_cv_prog_compiler_c_o=yes
7887 chmod u+w . 2>&5
7888 $rm conftest*
7889 # SGI C++ compiler will create directory out/ii_files/ for
7890 # template instantiation
7891 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7892 $rm out/* && rmdir out
7893 cd ..
7894 rmdir conftest
7895 $rm conftest*
7898 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7899 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7902 hard_links="nottested"
7903 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7904 # do not overwrite the value of need_locks provided by the user
7905 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7906 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7907 hard_links=yes
7908 $rm conftest*
7909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7910 touch conftest.a
7911 ln conftest.a conftest.b 2>&5 || hard_links=no
7912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7913 { echo "$as_me:$LINENO: result: $hard_links" >&5
7914 echo "${ECHO_T}$hard_links" >&6; }
7915 if test "$hard_links" = no; then
7916 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7917 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7918 need_locks=warn
7920 else
7921 need_locks=no
7924 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7925 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7927 runpath_var=
7928 allow_undefined_flag=
7929 enable_shared_with_static_runtimes=no
7930 archive_cmds=
7931 archive_expsym_cmds=
7932 old_archive_From_new_cmds=
7933 old_archive_from_expsyms_cmds=
7934 export_dynamic_flag_spec=
7935 whole_archive_flag_spec=
7936 thread_safe_flag_spec=
7937 hardcode_libdir_flag_spec=
7938 hardcode_libdir_flag_spec_ld=
7939 hardcode_libdir_separator=
7940 hardcode_direct=no
7941 hardcode_minus_L=no
7942 hardcode_shlibpath_var=unsupported
7943 link_all_deplibs=unknown
7944 hardcode_automatic=no
7945 module_cmds=
7946 module_expsym_cmds=
7947 always_export_symbols=no
7948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7949 # include_expsyms should be a list of space-separated symbols to be *always*
7950 # included in the symbol list
7951 include_expsyms=
7952 # exclude_expsyms can be an extended regexp of symbols to exclude
7953 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7955 # as well as any symbol that contains `d'.
7956 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7958 # platforms (ab)use it in PIC code, but their linkers get confused if
7959 # the symbol is explicitly referenced. Since portable code cannot
7960 # rely on this symbol name, it's probably fine to never include it in
7961 # preloaded symbol tables.
7962 # Exclude shared library initialization/finalization symbols.
7963 extract_expsyms_cmds=
7964 # Just being paranoid about ensuring that cc_basename is set.
7965 for cc_temp in $compiler""; do
7966 case $cc_temp in
7967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7969 \-*) ;;
7970 *) break;;
7971 esac
7972 done
7973 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7975 case $host_os in
7976 cygwin* | mingw* | pw32*)
7977 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7978 # When not using gcc, we currently assume that we are using
7979 # Microsoft Visual C++.
7980 if test "$GCC" != yes; then
7981 with_gnu_ld=no
7984 interix*)
7985 # we just hope/assume this is gcc and not c89 (= MSVC++)
7986 with_gnu_ld=yes
7988 openbsd*)
7989 with_gnu_ld=no
7991 esac
7993 ld_shlibs=yes
7994 if test "$with_gnu_ld" = yes; then
7995 # If archive_cmds runs LD, not CC, wlarc should be empty
7996 wlarc='${wl}'
7998 # Set some defaults for GNU ld with shared library support. These
7999 # are reset later if shared libraries are not supported. Putting them
8000 # here allows them to be overridden if necessary.
8001 runpath_var=LD_RUN_PATH
8002 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8003 export_dynamic_flag_spec='${wl}--export-dynamic'
8004 # ancient GNU ld didn't support --whole-archive et. al.
8005 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8006 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8007 else
8008 whole_archive_flag_spec=
8010 supports_anon_versioning=no
8011 case `$LD -v 2>/dev/null` in
8012 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8015 *\ 2.11.*) ;; # other 2.11 versions
8016 *) supports_anon_versioning=yes ;;
8017 esac
8019 # See if GNU ld supports shared libraries.
8020 case $host_os in
8021 aix[3-9]*)
8022 # On AIX/PPC, the GNU linker is very broken
8023 if test "$host_cpu" != ia64; then
8024 ld_shlibs=no
8025 cat <<EOF 1>&2
8027 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8028 *** to be unable to reliably create shared libraries on AIX.
8029 *** Therefore, libtool is disabling shared libraries support. If you
8030 *** really care for shared libraries, you may want to modify your PATH
8031 *** so that a non-GNU linker is found, and then restart.
8037 amigaos*)
8038 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)'
8039 hardcode_libdir_flag_spec='-L$libdir'
8040 hardcode_minus_L=yes
8042 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8043 # that the semantics of dynamic libraries on AmigaOS, at least up
8044 # to version 4, is to share data among multiple programs linked
8045 # with the same dynamic library. Since this doesn't match the
8046 # behavior of shared libraries on other platforms, we can't use
8047 # them.
8048 ld_shlibs=no
8051 beos*)
8052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8053 allow_undefined_flag=unsupported
8054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8055 # support --undefined. This deserves some investigation. FIXME
8056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8057 else
8058 ld_shlibs=no
8062 cygwin* | mingw* | pw32*)
8063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8064 # as there is no search path for DLLs.
8065 hardcode_libdir_flag_spec='-L$libdir'
8066 allow_undefined_flag=unsupported
8067 always_export_symbols=no
8068 enable_shared_with_static_runtimes=yes
8069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8073 # If the export-symbols file already is a .def file (1st line
8074 # is EXPORTS), use it as is; otherwise, prepend...
8075 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8076 cp $export_symbols $output_objdir/$soname.def;
8077 else
8078 echo EXPORTS > $output_objdir/$soname.def;
8079 cat $export_symbols >> $output_objdir/$soname.def;
8081 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8082 else
8083 ld_shlibs=no
8087 interix[3-9]*)
8088 hardcode_direct=no
8089 hardcode_shlibpath_var=no
8090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8091 export_dynamic_flag_spec='${wl}-E'
8092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8093 # Instead, shared libraries are loaded at an image base (0x10000000 by
8094 # default) and relocated if they conflict, which is a slow very memory
8095 # consuming and fragmenting process. To avoid this, we pick a random,
8096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8099 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'
8102 gnu* | linux* | k*bsd*-gnu)
8103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8104 tmp_addflag=
8105 case $cc_basename,$host_cpu in
8106 pgcc*) # Portland Group C compiler
8107 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'
8108 tmp_addflag=' $pic_flag'
8110 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8111 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'
8112 tmp_addflag=' $pic_flag -Mnomain' ;;
8113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8114 tmp_addflag=' -i_dynamic' ;;
8115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8116 tmp_addflag=' -i_dynamic -nofor_main' ;;
8117 ifc* | ifort*) # Intel Fortran compiler
8118 tmp_addflag=' -nofor_main' ;;
8119 esac
8120 case `$CC -V 2>&1 | sed 5q` in
8121 *Sun\ C*) # Sun C 5.9
8122 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'
8123 tmp_sharedflag='-G' ;;
8124 *Sun\ F*) # Sun Fortran 8.3
8125 tmp_sharedflag='-G' ;;
8127 tmp_sharedflag='-shared' ;;
8128 esac
8129 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8131 if test $supports_anon_versioning = yes; then
8132 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8134 $echo "local: *; };" >> $output_objdir/$libname.ver~
8135 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8137 link_all_deplibs=no
8138 else
8139 ld_shlibs=no
8143 netbsd* | netbsdelf*-gnu)
8144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8146 wlarc=
8147 else
8148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8153 solaris*)
8154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8155 ld_shlibs=no
8156 cat <<EOF 1>&2
8158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8159 *** create shared libraries on Solaris systems. Therefore, libtool
8160 *** is disabling shared libraries support. We urge you to upgrade GNU
8161 *** binutils to release 2.9.1 or newer. Another option is to modify
8162 *** your PATH or compiler configuration so that the native linker is
8163 *** used, and then restart.
8166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8169 else
8170 ld_shlibs=no
8174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8175 case `$LD -v 2>&1` in
8176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8177 ld_shlibs=no
8178 cat <<_LT_EOF 1>&2
8180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8181 *** reliably create shared libraries on SCO systems. Therefore, libtool
8182 *** is disabling shared libraries support. We urge you to upgrade GNU
8183 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8184 *** your PATH or compiler configuration so that the native linker is
8185 *** used, and then restart.
8187 _LT_EOF
8190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8191 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8194 else
8195 ld_shlibs=no
8198 esac
8201 sunos4*)
8202 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8203 wlarc=
8204 hardcode_direct=yes
8205 hardcode_shlibpath_var=no
8209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8212 else
8213 ld_shlibs=no
8216 esac
8218 if test "$ld_shlibs" = no; then
8219 runpath_var=
8220 hardcode_libdir_flag_spec=
8221 export_dynamic_flag_spec=
8222 whole_archive_flag_spec=
8224 else
8225 # PORTME fill in a description of your system's linker (not GNU ld)
8226 case $host_os in
8227 aix3*)
8228 allow_undefined_flag=unsupported
8229 always_export_symbols=yes
8230 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'
8231 # Note: this linker hardcodes the directories in LIBPATH if there
8232 # are no directories specified by -L.
8233 hardcode_minus_L=yes
8234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8235 # Neither direct hardcoding nor static linking is supported with a
8236 # broken collect2.
8237 hardcode_direct=unsupported
8241 aix[4-9]*)
8242 if test "$host_cpu" = ia64; then
8243 # On IA64, the linker does run time linking by default, so we don't
8244 # have to do anything special.
8245 aix_use_runtimelinking=no
8246 exp_sym_flag='-Bexport'
8247 no_entry_flag=""
8248 else
8249 # If we're using GNU nm, then we don't want the "-C" option.
8250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8251 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8252 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'
8253 else
8254 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'
8256 aix_use_runtimelinking=no
8258 # Test if we are trying to use run time linking or normal
8259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8260 # need to do runtime linking.
8261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8262 for ld_flag in $LDFLAGS; do
8263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8264 aix_use_runtimelinking=yes
8265 break
8267 done
8269 esac
8271 exp_sym_flag='-bexport'
8272 no_entry_flag='-bnoentry'
8275 # When large executables or shared objects are built, AIX ld can
8276 # have problems creating the table of contents. If linking a library
8277 # or program results in "error TOC overflow" add -mminimal-toc to
8278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8281 archive_cmds=''
8282 hardcode_direct=yes
8283 hardcode_libdir_separator=':'
8284 link_all_deplibs=yes
8286 if test "$GCC" = yes; then
8287 case $host_os in aix4.[012]|aix4.[012].*)
8288 # We only want to do this on AIX 4.2 and lower, the check
8289 # below for broken collect2 doesn't work under 4.3+
8290 collect2name=`${CC} -print-prog-name=collect2`
8291 if test -f "$collect2name" && \
8292 strings "$collect2name" | grep resolve_lib_name >/dev/null
8293 then
8294 # We have reworked collect2
8296 else
8297 # We have old collect2
8298 hardcode_direct=unsupported
8299 # It fails to find uninstalled libraries when the uninstalled
8300 # path is not listed in the libpath. Setting hardcode_minus_L
8301 # to unsupported forces relinking
8302 hardcode_minus_L=yes
8303 hardcode_libdir_flag_spec='-L$libdir'
8304 hardcode_libdir_separator=
8307 esac
8308 shared_flag='-shared'
8309 if test "$aix_use_runtimelinking" = yes; then
8310 shared_flag="$shared_flag "'${wl}-G'
8312 else
8313 # not using gcc
8314 if test "$host_cpu" = ia64; then
8315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8316 # chokes on -Wl,-G. The following line is correct:
8317 shared_flag='-G'
8318 else
8319 if test "$aix_use_runtimelinking" = yes; then
8320 shared_flag='${wl}-G'
8321 else
8322 shared_flag='${wl}-bM:SRE'
8327 # It seems that -bexpall does not export symbols beginning with
8328 # underscore (_), so it is better to generate a list of symbols to export.
8329 always_export_symbols=yes
8330 if test "$aix_use_runtimelinking" = yes; then
8331 # Warning - without using the other runtime loading flags (-brtl),
8332 # -berok will link without error, but may produce a broken library.
8333 allow_undefined_flag='-berok'
8334 # Determine the default libpath from the value encoded in an empty executable.
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8343 main ()
8347 return 0;
8349 _ACEOF
8350 rm -f conftest.$ac_objext conftest$ac_exeext
8351 if { (ac_try="$ac_link"
8352 case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_link") 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest$ac_exeext &&
8367 $as_test_x conftest$ac_exeext; then
8369 lt_aix_libpath_sed='
8370 /Import File Strings/,/^$/ {
8371 /^0/ {
8372 s/^0 *\(.*\)$/\1/
8376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8377 # Check for a 64-bit object if we didn't find anything.
8378 if test -z "$aix_libpath"; then
8379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8389 conftest$ac_exeext conftest.$ac_ext
8390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8392 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8393 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"
8394 else
8395 if test "$host_cpu" = ia64; then
8396 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8397 allow_undefined_flag="-z nodefs"
8398 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"
8399 else
8400 # Determine the default libpath from the value encoded in an empty executable.
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8409 main ()
8413 return 0;
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (ac_try="$ac_link"
8418 case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_link") 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest$ac_exeext &&
8433 $as_test_x conftest$ac_exeext; then
8435 lt_aix_libpath_sed='
8436 /Import File Strings/,/^$/ {
8437 /^0/ {
8438 s/^0 *\(.*\)$/\1/
8442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8443 # Check for a 64-bit object if we didn't find anything.
8444 if test -z "$aix_libpath"; then
8445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8455 conftest$ac_exeext conftest.$ac_ext
8456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8459 # Warning - without using the other run time loading flags,
8460 # -berok will link without error, but may produce a broken library.
8461 no_undefined_flag=' ${wl}-bernotok'
8462 allow_undefined_flag=' ${wl}-berok'
8463 # Exported symbols can be pulled into shared objects from archives
8464 whole_archive_flag_spec='$convenience'
8465 archive_cmds_need_lc=yes
8466 # This is similar to how AIX traditionally builds its shared libraries.
8467 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'
8472 amigaos*)
8473 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)'
8474 hardcode_libdir_flag_spec='-L$libdir'
8475 hardcode_minus_L=yes
8476 # see comment about different semantics on the GNU ld section
8477 ld_shlibs=no
8480 bsdi[45]*)
8481 export_dynamic_flag_spec=-rdynamic
8484 cygwin* | mingw* | pw32*)
8485 # When not using gcc, we currently assume that we are using
8486 # Microsoft Visual C++.
8487 # hardcode_libdir_flag_spec is actually meaningless, as there is
8488 # no search path for DLLs.
8489 hardcode_libdir_flag_spec=' '
8490 allow_undefined_flag=unsupported
8491 # Tell ltmain to make .lib files, not .a files.
8492 libext=lib
8493 # Tell ltmain to make .dll files, not .so files.
8494 shrext_cmds=".dll"
8495 # FIXME: Setting linknames here is a bad hack.
8496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8497 # The linker will automatically build a .lib file if we build a DLL.
8498 old_archive_From_new_cmds='true'
8499 # FIXME: Should let the user specify the lib program.
8500 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8501 fix_srcfile_path='`cygpath -w "$srcfile"`'
8502 enable_shared_with_static_runtimes=yes
8505 darwin* | rhapsody*)
8506 case $host_os in
8507 rhapsody* | darwin1.[012])
8508 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8510 *) # Darwin 1.3 on
8511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8512 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8513 else
8514 case ${MACOSX_DEPLOYMENT_TARGET} in
8515 10.[012])
8516 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8518 10.*)
8519 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8521 esac
8524 esac
8525 archive_cmds_need_lc=no
8526 hardcode_direct=no
8527 hardcode_automatic=yes
8528 hardcode_shlibpath_var=unsupported
8529 whole_archive_flag_spec=''
8530 link_all_deplibs=yes
8531 if test "$GCC" = yes ; then
8532 output_verbose_link_cmd='echo'
8533 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8534 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8535 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8536 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8537 else
8538 case $cc_basename in
8539 xlc*)
8540 output_verbose_link_cmd='echo'
8541 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8542 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8544 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}'
8545 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}'
8548 ld_shlibs=no
8550 esac
8554 dgux*)
8555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8556 hardcode_libdir_flag_spec='-L$libdir'
8557 hardcode_shlibpath_var=no
8560 freebsd1*)
8561 ld_shlibs=no
8564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8565 # support. Future versions do this automatically, but an explicit c++rt0.o
8566 # does not break anything, and helps significantly (at the cost of a little
8567 # extra space).
8568 freebsd2.2*)
8569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8570 hardcode_libdir_flag_spec='-R$libdir'
8571 hardcode_direct=yes
8572 hardcode_shlibpath_var=no
8575 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8576 freebsd2*)
8577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8578 hardcode_direct=yes
8579 hardcode_minus_L=yes
8580 hardcode_shlibpath_var=no
8583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8584 freebsd* | dragonfly*)
8585 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8586 hardcode_libdir_flag_spec='-R$libdir'
8587 hardcode_direct=yes
8588 hardcode_shlibpath_var=no
8591 hpux9*)
8592 if test "$GCC" = yes; then
8593 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'
8594 else
8595 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'
8597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8598 hardcode_libdir_separator=:
8599 hardcode_direct=yes
8601 # hardcode_minus_L: Not really in the search PATH,
8602 # but as the default location of the library.
8603 hardcode_minus_L=yes
8604 export_dynamic_flag_spec='${wl}-E'
8607 hpux10*)
8608 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8609 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8610 else
8611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8613 if test "$with_gnu_ld" = no; then
8614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8615 hardcode_libdir_separator=:
8617 hardcode_direct=yes
8618 export_dynamic_flag_spec='${wl}-E'
8620 # hardcode_minus_L: Not really in the search PATH,
8621 # but as the default location of the library.
8622 hardcode_minus_L=yes
8626 hpux11*)
8627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8628 case $host_cpu in
8629 hppa*64*)
8630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632 ia64*)
8633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8638 esac
8639 else
8640 case $host_cpu in
8641 hppa*64*)
8642 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8644 ia64*)
8645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8650 esac
8652 if test "$with_gnu_ld" = no; then
8653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8654 hardcode_libdir_separator=:
8656 case $host_cpu in
8657 hppa*64*|ia64*)
8658 hardcode_libdir_flag_spec_ld='+b $libdir'
8659 hardcode_direct=no
8660 hardcode_shlibpath_var=no
8663 hardcode_direct=yes
8664 export_dynamic_flag_spec='${wl}-E'
8666 # hardcode_minus_L: Not really in the search PATH,
8667 # but as the default location of the library.
8668 hardcode_minus_L=yes
8670 esac
8674 irix5* | irix6* | nonstopux*)
8675 if test "$GCC" = yes; then
8676 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'
8677 else
8678 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'
8679 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8682 hardcode_libdir_separator=:
8683 link_all_deplibs=yes
8686 netbsd* | netbsdelf*-gnu)
8687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8689 else
8690 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8692 hardcode_libdir_flag_spec='-R$libdir'
8693 hardcode_direct=yes
8694 hardcode_shlibpath_var=no
8697 newsos6)
8698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_direct=yes
8700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701 hardcode_libdir_separator=:
8702 hardcode_shlibpath_var=no
8705 openbsd*)
8706 if test -f /usr/libexec/ld.so; then
8707 hardcode_direct=yes
8708 hardcode_shlibpath_var=no
8709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8711 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8713 export_dynamic_flag_spec='${wl}-E'
8714 else
8715 case $host_os in
8716 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8718 hardcode_libdir_flag_spec='-R$libdir'
8721 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8724 esac
8726 else
8727 ld_shlibs=no
8731 os2*)
8732 hardcode_libdir_flag_spec='-L$libdir'
8733 hardcode_minus_L=yes
8734 allow_undefined_flag=unsupported
8735 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'
8736 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8739 osf3*)
8740 if test "$GCC" = yes; then
8741 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8742 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'
8743 else
8744 allow_undefined_flag=' -expect_unresolved \*'
8745 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'
8747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8748 hardcode_libdir_separator=:
8751 osf4* | osf5*) # as osf3* with the addition of -msym flag
8752 if test "$GCC" = yes; then
8753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8754 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'
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 else
8757 allow_undefined_flag=' -expect_unresolved \*'
8758 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'
8759 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8760 $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'
8762 # Both c and cxx compiler support -rpath directly
8763 hardcode_libdir_flag_spec='-rpath $libdir'
8765 hardcode_libdir_separator=:
8768 solaris*)
8769 no_undefined_flag=' -z text'
8770 if test "$GCC" = yes; then
8771 wlarc='${wl}'
8772 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8774 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8775 else
8776 wlarc=''
8777 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8781 hardcode_libdir_flag_spec='-R$libdir'
8782 hardcode_shlibpath_var=no
8783 case $host_os in
8784 solaris2.[0-5] | solaris2.[0-5].*) ;;
8786 # The compiler driver will combine and reorder linker options,
8787 # but understands `-z linker_flag'. GCC discards it without `$wl',
8788 # but is careful enough not to reorder.
8789 # Supported since Solaris 2.6 (maybe 2.5.1?)
8790 if test "$GCC" = yes; then
8791 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8792 else
8793 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8796 esac
8797 link_all_deplibs=yes
8800 sunos4*)
8801 if test "x$host_vendor" = xsequent; then
8802 # Use $CC to link under sequent, because it throws in some extra .o
8803 # files that make .init and .fini sections work.
8804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8805 else
8806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_direct=yes
8810 hardcode_minus_L=yes
8811 hardcode_shlibpath_var=no
8814 sysv4)
8815 case $host_vendor in
8816 sni)
8817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818 hardcode_direct=yes # is this really true???
8820 siemens)
8821 ## LD is ld it makes a PLAMLIB
8822 ## CC just makes a GrossModule.
8823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8824 reload_cmds='$CC -r -o $output$reload_objs'
8825 hardcode_direct=no
8827 motorola)
8828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8831 esac
8832 runpath_var='LD_RUN_PATH'
8833 hardcode_shlibpath_var=no
8836 sysv4.3*)
8837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838 hardcode_shlibpath_var=no
8839 export_dynamic_flag_spec='-Bexport'
8842 sysv4*MP*)
8843 if test -d /usr/nec; then
8844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845 hardcode_shlibpath_var=no
8846 runpath_var=LD_RUN_PATH
8847 hardcode_runpath_var=yes
8848 ld_shlibs=yes
8852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8853 no_undefined_flag='${wl}-z,text'
8854 archive_cmds_need_lc=no
8855 hardcode_shlibpath_var=no
8856 runpath_var='LD_RUN_PATH'
8858 if test "$GCC" = yes; then
8859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8861 else
8862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8867 sysv5* | sco3.2v5* | sco5v6*)
8868 # Note: We can NOT use -z defs as we might desire, because we do not
8869 # link with -lc, and that would cause any symbols used from libc to
8870 # always be unresolved, which means just about no library would
8871 # ever link correctly. If we're not using GNU ld we use -z text
8872 # though, which does catch some bad symbols but isn't as heavy-handed
8873 # as -z defs.
8874 no_undefined_flag='${wl}-z,text'
8875 allow_undefined_flag='${wl}-z,nodefs'
8876 archive_cmds_need_lc=no
8877 hardcode_shlibpath_var=no
8878 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8879 hardcode_libdir_separator=':'
8880 link_all_deplibs=yes
8881 export_dynamic_flag_spec='${wl}-Bexport'
8882 runpath_var='LD_RUN_PATH'
8884 if test "$GCC" = yes; then
8885 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8887 else
8888 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8893 uts4*)
8894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 hardcode_shlibpath_var=no
8900 ld_shlibs=no
8902 esac
8905 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8906 echo "${ECHO_T}$ld_shlibs" >&6; }
8907 test "$ld_shlibs" = no && can_build_shared=no
8910 # Do we need to explicitly link libc?
8912 case "x$archive_cmds_need_lc" in
8913 x|xyes)
8914 # Assume -lc should be added
8915 archive_cmds_need_lc=yes
8917 if test "$enable_shared" = yes && test "$GCC" = yes; then
8918 case $archive_cmds in
8919 *'~'*)
8920 # FIXME: we may have to deal with multi-command sequences.
8922 '$CC '*)
8923 # Test whether the compiler implicitly links with -lc since on some
8924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8925 # to ld, don't add -lc before -lgcc.
8926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8928 $rm conftest*
8929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } 2>conftest.err; then
8936 soname=conftest
8937 lib=conftest
8938 libobjs=conftest.$ac_objext
8939 deplibs=
8940 wl=$lt_prog_compiler_wl
8941 pic_flag=$lt_prog_compiler_pic
8942 compiler_flags=-v
8943 linker_flags=-v
8944 verstring=
8945 output_objdir=.
8946 libname=conftest
8947 lt_save_allow_undefined_flag=$allow_undefined_flag
8948 allow_undefined_flag=
8949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8950 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }
8954 then
8955 archive_cmds_need_lc=no
8956 else
8957 archive_cmds_need_lc=yes
8959 allow_undefined_flag=$lt_save_allow_undefined_flag
8960 else
8961 cat conftest.err 1>&5
8963 $rm conftest*
8964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8965 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8967 esac
8970 esac
8972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8974 library_names_spec=
8975 libname_spec='lib$name'
8976 soname_spec=
8977 shrext_cmds=".so"
8978 postinstall_cmds=
8979 postuninstall_cmds=
8980 finish_cmds=
8981 finish_eval=
8982 shlibpath_var=
8983 shlibpath_overrides_runpath=unknown
8984 version_type=none
8985 dynamic_linker="$host_os ld.so"
8986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8988 if test "$GCC" = yes; then
8989 case $host_os in
8990 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8991 *) lt_awk_arg="/^libraries:/" ;;
8992 esac
8993 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8994 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8995 # if the path contains ";" then we assume it to be the separator
8996 # otherwise default to the standard path separator (i.e. ":") - it is
8997 # assumed that no part of a normal pathname contains ";" but that should
8998 # okay in the real world where ";" in dirpaths is itself problematic.
8999 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9000 else
9001 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9003 # Ok, now we have the path, separated by spaces, we can step through it
9004 # and add multilib dir if necessary.
9005 lt_tmp_lt_search_path_spec=
9006 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9007 for lt_sys_path in $lt_search_path_spec; do
9008 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9010 else
9011 test -d "$lt_sys_path" && \
9012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9014 done
9015 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9016 BEGIN {RS=" "; FS="/|\n";} {
9017 lt_foo="";
9018 lt_count=0;
9019 for (lt_i = NF; lt_i > 0; lt_i--) {
9020 if ($lt_i != "" && $lt_i != ".") {
9021 if ($lt_i == "..") {
9022 lt_count++;
9023 } else {
9024 if (lt_count == 0) {
9025 lt_foo="/" $lt_i lt_foo;
9026 } else {
9027 lt_count--;
9032 if (lt_foo != "") { lt_freq[lt_foo]++; }
9033 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9035 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9036 else
9037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9039 need_lib_prefix=unknown
9040 hardcode_into_libs=no
9042 # when you set need_version to no, make sure it does not cause -set_version
9043 # flags to be left without arguments
9044 need_version=unknown
9046 case $host_os in
9047 aix3*)
9048 version_type=linux
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9050 shlibpath_var=LIBPATH
9052 # AIX 3 has no versioning support, so we append a major version to the name.
9053 soname_spec='${libname}${release}${shared_ext}$major'
9056 aix[4-9]*)
9057 version_type=linux
9058 need_lib_prefix=no
9059 need_version=no
9060 hardcode_into_libs=yes
9061 if test "$host_cpu" = ia64; then
9062 # AIX 5 supports IA64
9063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 else
9066 # With GCC up to 2.95.x, collect2 would create an import file
9067 # for dependence libraries. The import file would start with
9068 # the line `#! .'. This would cause the generated library to
9069 # depend on `.', always an invalid library. This was fixed in
9070 # development snapshots of GCC prior to 3.0.
9071 case $host_os in
9072 aix4 | aix4.[01] | aix4.[01].*)
9073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9074 echo ' yes '
9075 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9077 else
9078 can_build_shared=no
9081 esac
9082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9083 # soname into executable. Probably we can add versioning support to
9084 # collect2, so additional links can be useful in future.
9085 if test "$aix_use_runtimelinking" = yes; then
9086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9087 # instead of lib<name>.a to let people know that these are not
9088 # typical AIX shared libraries.
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 else
9091 # We preserve .a as extension for shared libraries through AIX4.2
9092 # and later when we are not doing run time linking.
9093 library_names_spec='${libname}${release}.a $libname.a'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LIBPATH
9100 amigaos*)
9101 library_names_spec='$libname.ixlibrary $libname.a'
9102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9103 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'
9106 beos*)
9107 library_names_spec='${libname}${shared_ext}'
9108 dynamic_linker="$host_os ld.so"
9109 shlibpath_var=LIBRARY_PATH
9112 bsdi[45]*)
9113 version_type=linux
9114 need_version=no
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9121 # the default ld.so.conf also contains /usr/contrib/lib and
9122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9123 # libtool to hard-code these into programs
9126 cygwin* | mingw* | pw32*)
9127 version_type=windows
9128 shrext_cmds=".dll"
9129 need_version=no
9130 need_lib_prefix=no
9132 case $GCC,$host_os in
9133 yes,cygwin* | yes,mingw* | yes,pw32*)
9134 library_names_spec='$libname.dll.a'
9135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9136 postinstall_cmds='base_file=`basename \${file}`~
9137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9138 dldir=$destdir/`dirname \$dlpath`~
9139 test -d \$dldir || mkdir -p \$dldir~
9140 $install_prog $dir/$dlname \$dldir/$dlname~
9141 chmod a+x \$dldir/$dlname'
9142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9143 dlpath=$dir/\$dldll~
9144 $rm \$dlpath'
9145 shlibpath_overrides_runpath=yes
9147 case $host_os in
9148 cygwin*)
9149 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9153 mingw*)
9154 # MinGW DLLs use traditional 'lib' prefix
9155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9157 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9158 # It is most probably a Windows format PATH printed by
9159 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9160 # path with ; separators, and with drive letters. We can handle the
9161 # drive letters (cygwin fileutils understands them), so leave them,
9162 # especially as we might pass files found there to a mingw objdump,
9163 # which wouldn't understand a cygwinified path. Ahh.
9164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9165 else
9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9169 pw32*)
9170 # pw32 DLLs use 'pw' prefix rather than 'lib'
9171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9173 esac
9177 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9179 esac
9180 dynamic_linker='Win32 ld.exe'
9181 # FIXME: first we should search . and the directory the executable is in
9182 shlibpath_var=PATH
9185 darwin* | rhapsody*)
9186 dynamic_linker="$host_os dyld"
9187 version_type=darwin
9188 need_lib_prefix=no
9189 need_version=no
9190 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9191 soname_spec='${libname}${release}${major}$shared_ext'
9192 shlibpath_overrides_runpath=yes
9193 shlibpath_var=DYLD_LIBRARY_PATH
9194 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9196 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9200 dgux*)
9201 version_type=linux
9202 need_lib_prefix=no
9203 need_version=no
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9205 soname_spec='${libname}${release}${shared_ext}$major'
9206 shlibpath_var=LD_LIBRARY_PATH
9209 freebsd1*)
9210 dynamic_linker=no
9213 freebsd* | dragonfly*)
9214 # DragonFly does not have aout. When/if they implement a new
9215 # versioning mechanism, adjust this.
9216 if test -x /usr/bin/objformat; then
9217 objformat=`/usr/bin/objformat`
9218 else
9219 case $host_os in
9220 freebsd[123]*) objformat=aout ;;
9221 *) objformat=elf ;;
9222 esac
9224 version_type=freebsd-$objformat
9225 case $version_type in
9226 freebsd-elf*)
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9228 need_version=no
9229 need_lib_prefix=no
9231 freebsd-*)
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9233 need_version=yes
9235 esac
9236 shlibpath_var=LD_LIBRARY_PATH
9237 case $host_os in
9238 freebsd2*)
9239 shlibpath_overrides_runpath=yes
9241 freebsd3.[01]* | freebsdelf3.[01]*)
9242 shlibpath_overrides_runpath=yes
9243 hardcode_into_libs=yes
9245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9247 shlibpath_overrides_runpath=no
9248 hardcode_into_libs=yes
9250 *) # from 4.6 on, and DragonFly
9251 shlibpath_overrides_runpath=yes
9252 hardcode_into_libs=yes
9254 esac
9257 gnu*)
9258 version_type=linux
9259 need_lib_prefix=no
9260 need_version=no
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 hardcode_into_libs=yes
9267 hpux9* | hpux10* | hpux11*)
9268 # Give a soname corresponding to the major version so that dld.sl refuses to
9269 # link against other versions.
9270 version_type=sunos
9271 need_lib_prefix=no
9272 need_version=no
9273 case $host_cpu in
9274 ia64*)
9275 shrext_cmds='.so'
9276 hardcode_into_libs=yes
9277 dynamic_linker="$host_os dld.so"
9278 shlibpath_var=LD_LIBRARY_PATH
9279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 if test "X$HPUX_IA64_MODE" = X32; then
9283 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9284 else
9285 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9289 hppa*64*)
9290 shrext_cmds='.sl'
9291 hardcode_into_libs=yes
9292 dynamic_linker="$host_os dld.sl"
9293 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9301 shrext_cmds='.sl'
9302 dynamic_linker="$host_os dld.sl"
9303 shlibpath_var=SHLIB_PATH
9304 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9308 esac
9309 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9310 postinstall_cmds='chmod 555 $lib'
9313 interix[3-9]*)
9314 version_type=linux
9315 need_lib_prefix=no
9316 need_version=no
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=no
9322 hardcode_into_libs=yes
9325 irix5* | irix6* | nonstopux*)
9326 case $host_os in
9327 nonstopux*) version_type=nonstopux ;;
9329 if test "$lt_cv_prog_gnu_ld" = yes; then
9330 version_type=linux
9331 else
9332 version_type=irix
9333 fi ;;
9334 esac
9335 need_lib_prefix=no
9336 need_version=no
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9339 case $host_os in
9340 irix5* | nonstopux*)
9341 libsuff= shlibsuff=
9344 case $LD in # libtool.m4 will add one of these switches to LD
9345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9346 libsuff= shlibsuff= libmagic=32-bit;;
9347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9348 libsuff=32 shlibsuff=N32 libmagic=N32;;
9349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9350 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9351 *) libsuff= shlibsuff= libmagic=never-match;;
9352 esac
9354 esac
9355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9356 shlibpath_overrides_runpath=no
9357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9359 hardcode_into_libs=yes
9362 # No shared lib support for Linux oldld, aout, or coff.
9363 linux*oldld* | linux*aout* | linux*coff*)
9364 dynamic_linker=no
9367 # This must be Linux ELF.
9368 linux* | k*bsd*-gnu)
9369 version_type=linux
9370 need_lib_prefix=no
9371 need_version=no
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 shlibpath_overrides_runpath=no
9377 # This implies no fast_install, which is unacceptable.
9378 # Some rework will be needed to allow for fast_install
9379 # before this can be enabled.
9380 hardcode_into_libs=yes
9382 # Append ld.so.conf contents to the search path
9383 if test -f /etc/ld.so.conf; then
9384 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' ' '`
9385 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9388 # We used to test for /lib/ld.so.1 and disable shared libraries on
9389 # powerpc, because MkLinux only supported shared libraries with the
9390 # GNU dynamic linker. Since this was broken with cross compilers,
9391 # most powerpc-linux boxes support dynamic linking these days and
9392 # people can always --disable-shared, the test was removed, and we
9393 # assume the GNU/Linux dynamic linker is in use.
9394 dynamic_linker='GNU/Linux ld.so'
9397 netbsdelf*-gnu)
9398 version_type=linux
9399 need_lib_prefix=no
9400 need_version=no
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 hardcode_into_libs=yes
9406 dynamic_linker='NetBSD ld.elf_so'
9409 netbsd*)
9410 version_type=sunos
9411 need_lib_prefix=no
9412 need_version=no
9413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9416 dynamic_linker='NetBSD (a.out) ld.so'
9417 else
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 dynamic_linker='NetBSD ld.elf_so'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 shlibpath_overrides_runpath=yes
9424 hardcode_into_libs=yes
9427 newsos6)
9428 version_type=linux
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 shlibpath_overrides_runpath=yes
9434 nto-qnx*)
9435 version_type=linux
9436 need_lib_prefix=no
9437 need_version=no
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 shlibpath_var=LD_LIBRARY_PATH
9441 shlibpath_overrides_runpath=yes
9444 openbsd*)
9445 version_type=sunos
9446 sys_lib_dlsearch_path_spec="/usr/lib"
9447 need_lib_prefix=no
9448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9449 case $host_os in
9450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9451 *) need_version=no ;;
9452 esac
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9457 case $host_os in
9458 openbsd2.[89] | openbsd2.[89].*)
9459 shlibpath_overrides_runpath=no
9462 shlibpath_overrides_runpath=yes
9464 esac
9465 else
9466 shlibpath_overrides_runpath=yes
9470 os2*)
9471 libname_spec='$name'
9472 shrext_cmds=".dll"
9473 need_lib_prefix=no
9474 library_names_spec='$libname${shared_ext} $libname.a'
9475 dynamic_linker='OS/2 ld.exe'
9476 shlibpath_var=LIBPATH
9479 osf3* | osf4* | osf5*)
9480 version_type=osf
9481 need_lib_prefix=no
9482 need_version=no
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9490 rdos*)
9491 dynamic_linker=no
9494 solaris*)
9495 version_type=linux
9496 need_lib_prefix=no
9497 need_version=no
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9502 hardcode_into_libs=yes
9503 # ldd complains unless libraries are executable
9504 postinstall_cmds='chmod +x $lib'
9507 sunos4*)
9508 version_type=sunos
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9511 shlibpath_var=LD_LIBRARY_PATH
9512 shlibpath_overrides_runpath=yes
9513 if test "$with_gnu_ld" = yes; then
9514 need_lib_prefix=no
9516 need_version=yes
9519 sysv4 | sysv4.3*)
9520 version_type=linux
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 case $host_vendor in
9525 sni)
9526 shlibpath_overrides_runpath=no
9527 need_lib_prefix=no
9528 export_dynamic_flag_spec='${wl}-Blargedynsym'
9529 runpath_var=LD_RUN_PATH
9531 siemens)
9532 need_lib_prefix=no
9534 motorola)
9535 need_lib_prefix=no
9536 need_version=no
9537 shlibpath_overrides_runpath=no
9538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9540 esac
9543 sysv4*MP*)
9544 if test -d /usr/nec ;then
9545 version_type=linux
9546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9547 soname_spec='$libname${shared_ext}.$major'
9548 shlibpath_var=LD_LIBRARY_PATH
9552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9553 version_type=freebsd-elf
9554 need_lib_prefix=no
9555 need_version=no
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 shlibpath_var=LD_LIBRARY_PATH
9559 hardcode_into_libs=yes
9560 if test "$with_gnu_ld" = yes; then
9561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9562 shlibpath_overrides_runpath=no
9563 else
9564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9565 shlibpath_overrides_runpath=yes
9566 case $host_os in
9567 sco3.2v5*)
9568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9570 esac
9572 sys_lib_dlsearch_path_spec='/usr/lib'
9575 uts4*)
9576 version_type=linux
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9583 dynamic_linker=no
9585 esac
9586 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9587 echo "${ECHO_T}$dynamic_linker" >&6; }
9588 test "$dynamic_linker" = no && can_build_shared=no
9590 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9596 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9597 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9603 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9606 if test "$GCC" = yes; then
9607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9610 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9611 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9612 hardcode_action=
9613 if test -n "$hardcode_libdir_flag_spec" || \
9614 test -n "$runpath_var" || \
9615 test "X$hardcode_automatic" = "Xyes" ; then
9617 # We can hardcode non-existant directories.
9618 if test "$hardcode_direct" != no &&
9619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9620 # have to relink, otherwise we might link with an installed library
9621 # when we should be linking with a yet-to-be-installed one
9622 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9623 test "$hardcode_minus_L" != no; then
9624 # Linking always hardcodes the temporary library directory.
9625 hardcode_action=relink
9626 else
9627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9628 hardcode_action=immediate
9630 else
9631 # We cannot hardcode anything, or else we can only hardcode existing
9632 # directories.
9633 hardcode_action=unsupported
9635 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9636 echo "${ECHO_T}$hardcode_action" >&6; }
9638 if test "$hardcode_action" = relink; then
9639 # Fast installation is not supported
9640 enable_fast_install=no
9641 elif test "$shlibpath_overrides_runpath" = yes ||
9642 test "$enable_shared" = no; then
9643 # Fast installation is not necessary
9644 enable_fast_install=needless
9647 striplib=
9648 old_striplib=
9649 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9650 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9651 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9652 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9653 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9654 { echo "$as_me:$LINENO: result: yes" >&5
9655 echo "${ECHO_T}yes" >&6; }
9656 else
9657 # FIXME - insert some real tests, host_os isn't really good enough
9658 case $host_os in
9659 darwin*)
9660 if test -n "$STRIP" ; then
9661 striplib="$STRIP -x"
9662 old_striplib="$STRIP -S"
9663 { echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6; }
9665 else
9666 { echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6; }
9671 { echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6; }
9674 esac
9677 if test "x$enable_dlopen" != xyes; then
9678 enable_dlopen=unknown
9679 enable_dlopen_self=unknown
9680 enable_dlopen_self_static=unknown
9681 else
9682 lt_cv_dlopen=no
9683 lt_cv_dlopen_libs=
9685 case $host_os in
9686 beos*)
9687 lt_cv_dlopen="load_add_on"
9688 lt_cv_dlopen_libs=
9689 lt_cv_dlopen_self=yes
9692 mingw* | pw32*)
9693 lt_cv_dlopen="LoadLibrary"
9694 lt_cv_dlopen_libs=
9697 cygwin*)
9698 lt_cv_dlopen="dlopen"
9699 lt_cv_dlopen_libs=
9702 darwin*)
9703 # if libdl is installed we need to link against it
9704 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9705 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9706 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709 ac_check_lib_save_LIBS=$LIBS
9710 LIBS="-ldl $LIBS"
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h. */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9718 /* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 char dlopen ();
9726 main ()
9728 return dlopen ();
9730 return 0;
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9735 case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext &&
9750 $as_test_x conftest$ac_exeext; then
9751 ac_cv_lib_dl_dlopen=yes
9752 else
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_cv_lib_dl_dlopen=no
9759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9760 conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9763 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9764 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9765 if test $ac_cv_lib_dl_dlopen = yes; then
9766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9767 else
9769 lt_cv_dlopen="dyld"
9770 lt_cv_dlopen_libs=
9771 lt_cv_dlopen_self=yes
9778 { echo "$as_me:$LINENO: checking for shl_load" >&5
9779 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9780 if test "${ac_cv_func_shl_load+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h. */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9791 #define shl_load innocuous_shl_load
9793 /* System header to define __stub macros and hopefully few prototypes,
9794 which can conflict with char shl_load (); below.
9795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9796 <limits.h> exists even on freestanding compilers. */
9798 #ifdef __STDC__
9799 # include <limits.h>
9800 #else
9801 # include <assert.h>
9802 #endif
9804 #undef shl_load
9806 /* Override any GCC internal prototype to avoid an error.
9807 Use char because int might match the return type of a GCC
9808 builtin and then its argument prototype would still apply. */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 char shl_load ();
9813 /* The GNU C library defines this for functions which it implements
9814 to always fail with ENOSYS. Some functions are actually named
9815 something starting with __ and the normal name is an alias. */
9816 #if defined __stub_shl_load || defined __stub___shl_load
9817 choke me
9818 #endif
9821 main ()
9823 return shl_load ();
9825 return 0;
9827 _ACEOF
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (ac_try="$ac_link"
9830 case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_link") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest$ac_exeext &&
9845 $as_test_x conftest$ac_exeext; then
9846 ac_cv_func_shl_load=yes
9847 else
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_cv_func_shl_load=no
9854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855 conftest$ac_exeext conftest.$ac_ext
9857 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9858 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9859 if test $ac_cv_func_shl_load = yes; then
9860 lt_cv_dlopen="shl_load"
9861 else
9862 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9863 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9864 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 ac_check_lib_save_LIBS=$LIBS
9868 LIBS="-ldld $LIBS"
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9876 /* Override any GCC internal prototype to avoid an error.
9877 Use char because int might match the return type of a GCC
9878 builtin and then its argument prototype would still apply. */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 char shl_load ();
9884 main ()
9886 return shl_load ();
9888 return 0;
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (ac_try="$ac_link"
9893 case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_link") 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } && {
9905 test -z "$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 } && test -s conftest$ac_exeext &&
9908 $as_test_x conftest$ac_exeext; then
9909 ac_cv_lib_dld_shl_load=yes
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_cv_lib_dld_shl_load=no
9917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9918 conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9921 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9922 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9923 if test $ac_cv_lib_dld_shl_load = yes; then
9924 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9925 else
9926 { echo "$as_me:$LINENO: checking for dlopen" >&5
9927 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9928 if test "${ac_cv_func_dlopen+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931 cat >conftest.$ac_ext <<_ACEOF
9932 /* confdefs.h. */
9933 _ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */
9937 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9939 #define dlopen innocuous_dlopen
9941 /* System header to define __stub macros and hopefully few prototypes,
9942 which can conflict with char dlopen (); below.
9943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9944 <limits.h> exists even on freestanding compilers. */
9946 #ifdef __STDC__
9947 # include <limits.h>
9948 #else
9949 # include <assert.h>
9950 #endif
9952 #undef dlopen
9954 /* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
9957 #ifdef __cplusplus
9958 extern "C"
9959 #endif
9960 char dlopen ();
9961 /* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964 #if defined __stub_dlopen || defined __stub___dlopen
9965 choke me
9966 #endif
9969 main ()
9971 return dlopen ();
9973 return 0;
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9978 case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest$ac_exeext &&
9993 $as_test_x conftest$ac_exeext; then
9994 ac_cv_func_dlopen=yes
9995 else
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9999 ac_cv_func_dlopen=no
10002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10003 conftest$ac_exeext conftest.$ac_ext
10005 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10006 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10007 if test $ac_cv_func_dlopen = yes; then
10008 lt_cv_dlopen="dlopen"
10009 else
10010 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10011 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10012 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 ac_check_lib_save_LIBS=$LIBS
10016 LIBS="-ldl $LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10024 /* Override any GCC internal prototype to avoid an error.
10025 Use char because int might match the return type of a GCC
10026 builtin and then its argument prototype would still apply. */
10027 #ifdef __cplusplus
10028 extern "C"
10029 #endif
10030 char dlopen ();
10032 main ()
10034 return dlopen ();
10036 return 0;
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && {
10053 test -z "$ac_c_werror_flag" ||
10054 test ! -s conftest.err
10055 } && test -s conftest$ac_exeext &&
10056 $as_test_x conftest$ac_exeext; then
10057 ac_cv_lib_dl_dlopen=yes
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ac_cv_lib_dl_dlopen=no
10065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10066 conftest$ac_exeext conftest.$ac_ext
10067 LIBS=$ac_check_lib_save_LIBS
10069 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10071 if test $ac_cv_lib_dl_dlopen = yes; then
10072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10073 else
10074 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10075 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10076 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-lsvld $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10088 /* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
10091 #ifdef __cplusplus
10092 extern "C"
10093 #endif
10094 char dlopen ();
10096 main ()
10098 return dlopen ();
10100 return 0;
10102 _ACEOF
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_link") 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest$ac_exeext &&
10120 $as_test_x conftest$ac_exeext; then
10121 ac_cv_lib_svld_dlopen=yes
10122 else
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10126 ac_cv_lib_svld_dlopen=no
10129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10130 conftest$ac_exeext conftest.$ac_ext
10131 LIBS=$ac_check_lib_save_LIBS
10133 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10134 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10135 if test $ac_cv_lib_svld_dlopen = yes; then
10136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10137 else
10138 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10139 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10140 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143 ac_check_lib_save_LIBS=$LIBS
10144 LIBS="-ldld $LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10152 /* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10155 #ifdef __cplusplus
10156 extern "C"
10157 #endif
10158 char dld_link ();
10160 main ()
10162 return dld_link ();
10164 return 0;
10166 _ACEOF
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (ac_try="$ac_link"
10169 case "(($ac_try" in
10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171 *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_link") 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest$ac_exeext &&
10184 $as_test_x conftest$ac_exeext; then
10185 ac_cv_lib_dld_dld_link=yes
10186 else
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_cv_lib_dld_dld_link=no
10193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10194 conftest$ac_exeext conftest.$ac_ext
10195 LIBS=$ac_check_lib_save_LIBS
10197 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10198 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10199 if test $ac_cv_lib_dld_dld_link = yes; then
10200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10219 esac
10221 if test "x$lt_cv_dlopen" != xno; then
10222 enable_dlopen=yes
10223 else
10224 enable_dlopen=no
10227 case $lt_cv_dlopen in
10228 dlopen)
10229 save_CPPFLAGS="$CPPFLAGS"
10230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10232 save_LDFLAGS="$LDFLAGS"
10233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10235 save_LIBS="$LIBS"
10236 LIBS="$lt_cv_dlopen_libs $LIBS"
10238 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10239 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10240 if test "${lt_cv_dlopen_self+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243 if test "$cross_compiling" = yes; then :
10244 lt_cv_dlopen_self=cross
10245 else
10246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10247 lt_status=$lt_dlunknown
10248 cat > conftest.$ac_ext <<EOF
10249 #line 10249 "configure"
10250 #include "confdefs.h"
10252 #if HAVE_DLFCN_H
10253 #include <dlfcn.h>
10254 #endif
10256 #include <stdio.h>
10258 #ifdef RTLD_GLOBAL
10259 # define LT_DLGLOBAL RTLD_GLOBAL
10260 #else
10261 # ifdef DL_GLOBAL
10262 # define LT_DLGLOBAL DL_GLOBAL
10263 # else
10264 # define LT_DLGLOBAL 0
10265 # endif
10266 #endif
10268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10269 find out it does not work in some platform. */
10270 #ifndef LT_DLLAZY_OR_NOW
10271 # ifdef RTLD_LAZY
10272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10273 # else
10274 # ifdef DL_LAZY
10275 # define LT_DLLAZY_OR_NOW DL_LAZY
10276 # else
10277 # ifdef RTLD_NOW
10278 # define LT_DLLAZY_OR_NOW RTLD_NOW
10279 # else
10280 # ifdef DL_NOW
10281 # define LT_DLLAZY_OR_NOW DL_NOW
10282 # else
10283 # define LT_DLLAZY_OR_NOW 0
10284 # endif
10285 # endif
10286 # endif
10287 # endif
10288 #endif
10290 #ifdef __cplusplus
10291 extern "C" void exit (int);
10292 #endif
10294 void fnord() { int i=42;}
10295 int main ()
10297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10298 int status = $lt_dlunknown;
10300 if (self)
10302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10304 /* dlclose (self); */
10306 else
10307 puts (dlerror ());
10309 exit (status);
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10317 (./conftest; exit; ) >&5 2>/dev/null
10318 lt_status=$?
10319 case x$lt_status in
10320 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10321 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10322 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10323 esac
10324 else :
10325 # compilation failed
10326 lt_cv_dlopen_self=no
10329 rm -fr conftest*
10333 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10334 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10336 if test "x$lt_cv_dlopen_self" = xyes; then
10337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10338 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10339 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10340 if test "${lt_cv_dlopen_self_static+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343 if test "$cross_compiling" = yes; then :
10344 lt_cv_dlopen_self_static=cross
10345 else
10346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10347 lt_status=$lt_dlunknown
10348 cat > conftest.$ac_ext <<EOF
10349 #line 10349 "configure"
10350 #include "confdefs.h"
10352 #if HAVE_DLFCN_H
10353 #include <dlfcn.h>
10354 #endif
10356 #include <stdio.h>
10358 #ifdef RTLD_GLOBAL
10359 # define LT_DLGLOBAL RTLD_GLOBAL
10360 #else
10361 # ifdef DL_GLOBAL
10362 # define LT_DLGLOBAL DL_GLOBAL
10363 # else
10364 # define LT_DLGLOBAL 0
10365 # endif
10366 #endif
10368 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10369 find out it does not work in some platform. */
10370 #ifndef LT_DLLAZY_OR_NOW
10371 # ifdef RTLD_LAZY
10372 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10373 # else
10374 # ifdef DL_LAZY
10375 # define LT_DLLAZY_OR_NOW DL_LAZY
10376 # else
10377 # ifdef RTLD_NOW
10378 # define LT_DLLAZY_OR_NOW RTLD_NOW
10379 # else
10380 # ifdef DL_NOW
10381 # define LT_DLLAZY_OR_NOW DL_NOW
10382 # else
10383 # define LT_DLLAZY_OR_NOW 0
10384 # endif
10385 # endif
10386 # endif
10387 # endif
10388 #endif
10390 #ifdef __cplusplus
10391 extern "C" void exit (int);
10392 #endif
10394 void fnord() { int i=42;}
10395 int main ()
10397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10398 int status = $lt_dlunknown;
10400 if (self)
10402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10403 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10404 /* dlclose (self); */
10406 else
10407 puts (dlerror ());
10409 exit (status);
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413 (eval $ac_link) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10417 (./conftest; exit; ) >&5 2>/dev/null
10418 lt_status=$?
10419 case x$lt_status in
10420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10422 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10423 esac
10424 else :
10425 # compilation failed
10426 lt_cv_dlopen_self_static=no
10429 rm -fr conftest*
10433 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10437 CPPFLAGS="$save_CPPFLAGS"
10438 LDFLAGS="$save_LDFLAGS"
10439 LIBS="$save_LIBS"
10441 esac
10443 case $lt_cv_dlopen_self in
10444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10445 *) enable_dlopen_self=unknown ;;
10446 esac
10448 case $lt_cv_dlopen_self_static in
10449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10450 *) enable_dlopen_self_static=unknown ;;
10451 esac
10455 # Report which library types will actually be built
10456 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10457 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10458 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10459 echo "${ECHO_T}$can_build_shared" >&6; }
10461 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10462 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10463 test "$can_build_shared" = "no" && enable_shared=no
10465 # On AIX, shared libraries and static libraries use the same namespace, and
10466 # are all built from PIC.
10467 case $host_os in
10468 aix3*)
10469 test "$enable_shared" = yes && enable_static=no
10470 if test -n "$RANLIB"; then
10471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10472 postinstall_cmds='$RANLIB $lib'
10476 aix[4-9]*)
10477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10478 test "$enable_shared" = yes && enable_static=no
10481 esac
10482 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10483 echo "${ECHO_T}$enable_shared" >&6; }
10485 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10486 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10487 # Make sure either enable_shared or enable_static is yes.
10488 test "$enable_shared" = yes || enable_static=yes
10489 { echo "$as_me:$LINENO: result: $enable_static" >&5
10490 echo "${ECHO_T}$enable_static" >&6; }
10492 # The else clause should only fire when bootstrapping the
10493 # libtool distribution, otherwise you forgot to ship ltmain.sh
10494 # with your package, and you will get complaints that there are
10495 # no rules to generate ltmain.sh.
10496 if test -f "$ltmain"; then
10497 # See if we are running on zsh, and set the options which allow our commands through
10498 # without removal of \ escapes.
10499 if test -n "${ZSH_VERSION+set}" ; then
10500 setopt NO_GLOB_SUBST
10502 # Now quote all the things that may contain metacharacters while being
10503 # careful not to overquote the AC_SUBSTed values. We take copies of the
10504 # variables and quote the copies for generation of the libtool script.
10505 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10506 SED SHELL STRIP \
10507 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10508 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10509 deplibs_check_method reload_flag reload_cmds need_locks \
10510 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10511 lt_cv_sys_global_symbol_to_c_name_address \
10512 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10513 old_postinstall_cmds old_postuninstall_cmds \
10514 compiler \
10515 CC \
10516 LD \
10517 lt_prog_compiler_wl \
10518 lt_prog_compiler_pic \
10519 lt_prog_compiler_static \
10520 lt_prog_compiler_no_builtin_flag \
10521 export_dynamic_flag_spec \
10522 thread_safe_flag_spec \
10523 whole_archive_flag_spec \
10524 enable_shared_with_static_runtimes \
10525 old_archive_cmds \
10526 old_archive_from_new_cmds \
10527 predep_objects \
10528 postdep_objects \
10529 predeps \
10530 postdeps \
10531 compiler_lib_search_path \
10532 compiler_lib_search_dirs \
10533 archive_cmds \
10534 archive_expsym_cmds \
10535 postinstall_cmds \
10536 postuninstall_cmds \
10537 old_archive_from_expsyms_cmds \
10538 allow_undefined_flag \
10539 no_undefined_flag \
10540 export_symbols_cmds \
10541 hardcode_libdir_flag_spec \
10542 hardcode_libdir_flag_spec_ld \
10543 hardcode_libdir_separator \
10544 hardcode_automatic \
10545 module_cmds \
10546 module_expsym_cmds \
10547 lt_cv_prog_compiler_c_o \
10548 fix_srcfile_path \
10549 exclude_expsyms \
10550 include_expsyms; do
10552 case $var in
10553 old_archive_cmds | \
10554 old_archive_from_new_cmds | \
10555 archive_cmds | \
10556 archive_expsym_cmds | \
10557 module_cmds | \
10558 module_expsym_cmds | \
10559 old_archive_from_expsyms_cmds | \
10560 export_symbols_cmds | \
10561 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10562 postinstall_cmds | postuninstall_cmds | \
10563 old_postinstall_cmds | old_postuninstall_cmds | \
10564 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10565 # Double-quote double-evaled strings.
10566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10571 esac
10572 done
10574 case $lt_echo in
10575 *'\$0 --fallback-echo"')
10576 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10578 esac
10580 cfgfile="${ofile}T"
10581 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10582 $rm -f "$cfgfile"
10583 { echo "$as_me:$LINENO: creating $ofile" >&5
10584 echo "$as_me: creating $ofile" >&6;}
10586 cat <<__EOF__ >> "$cfgfile"
10587 #! $SHELL
10589 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10590 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10591 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10593 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10594 # Free Software Foundation, Inc.
10596 # This file is part of GNU Libtool:
10597 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10599 # This program is free software; you can redistribute it and/or modify
10600 # it under the terms of the GNU General Public License as published by
10601 # the Free Software Foundation; either version 2 of the License, or
10602 # (at your option) any later version.
10604 # This program is distributed in the hope that it will be useful, but
10605 # WITHOUT ANY WARRANTY; without even the implied warranty of
10606 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10607 # General Public License for more details.
10609 # You should have received a copy of the GNU General Public License
10610 # along with this program; if not, write to the Free Software
10611 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10613 # As a special exception to the GNU General Public License, if you
10614 # distribute this file as part of a program that contains a
10615 # configuration script generated by Autoconf, you may include it under
10616 # the same distribution terms that you use for the rest of that program.
10618 # A sed program that does not truncate output.
10619 SED=$lt_SED
10621 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10622 Xsed="$SED -e 1s/^X//"
10624 # The HP-UX ksh and POSIX shell print the target directory to stdout
10625 # if CDPATH is set.
10626 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10628 # The names of the tagged configurations supported by this script.
10629 available_tags=
10631 # ### BEGIN LIBTOOL CONFIG
10633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10635 # Shell to use when invoking shell scripts.
10636 SHELL=$lt_SHELL
10638 # Whether or not to build shared libraries.
10639 build_libtool_libs=$enable_shared
10641 # Whether or not to build static libraries.
10642 build_old_libs=$enable_static
10644 # Whether or not to add -lc for building shared libraries.
10645 build_libtool_need_lc=$archive_cmds_need_lc
10647 # Whether or not to disallow shared libs when runtime libs are static
10648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10650 # Whether or not to optimize for fast installation.
10651 fast_install=$enable_fast_install
10653 # The host system.
10654 host_alias=$host_alias
10655 host=$host
10656 host_os=$host_os
10658 # The build system.
10659 build_alias=$build_alias
10660 build=$build
10661 build_os=$build_os
10663 # An echo program that does not interpret backslashes.
10664 echo=$lt_echo
10666 # The archiver.
10667 AR=$lt_AR
10668 AR_FLAGS=$lt_AR_FLAGS
10670 # A C compiler.
10671 LTCC=$lt_LTCC
10673 # LTCC compiler flags.
10674 LTCFLAGS=$lt_LTCFLAGS
10676 # A language-specific compiler.
10677 CC=$lt_compiler
10679 # Is the compiler the GNU C compiler?
10680 with_gcc=$GCC
10682 # An ERE matcher.
10683 EGREP=$lt_EGREP
10685 # The linker used to build libraries.
10686 LD=$lt_LD
10688 # Whether we need hard or soft links.
10689 LN_S=$lt_LN_S
10691 # A BSD-compatible nm program.
10692 NM=$lt_NM
10694 # A symbol stripping program
10695 STRIP=$lt_STRIP
10697 # Used to examine libraries when file_magic_cmd begins "file"
10698 MAGIC_CMD=$MAGIC_CMD
10700 # Used on cygwin: DLL creation program.
10701 DLLTOOL="$DLLTOOL"
10703 # Used on cygwin: object dumper.
10704 OBJDUMP="$OBJDUMP"
10706 # Used on cygwin: assembler.
10707 AS="$AS"
10709 # The name of the directory that contains temporary libtool files.
10710 objdir=$objdir
10712 # How to create reloadable object files.
10713 reload_flag=$lt_reload_flag
10714 reload_cmds=$lt_reload_cmds
10716 # How to pass a linker flag through the compiler.
10717 wl=$lt_lt_prog_compiler_wl
10719 # Object file suffix (normally "o").
10720 objext="$ac_objext"
10722 # Old archive suffix (normally "a").
10723 libext="$libext"
10725 # Shared library suffix (normally ".so").
10726 shrext_cmds='$shrext_cmds'
10728 # Executable file suffix (normally "").
10729 exeext="$exeext"
10731 # Additional compiler flags for building library objects.
10732 pic_flag=$lt_lt_prog_compiler_pic
10733 pic_mode=$pic_mode
10735 # What is the maximum length of a command?
10736 max_cmd_len=$lt_cv_sys_max_cmd_len
10738 # Does compiler simultaneously support -c and -o options?
10739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10741 # Must we lock files when doing compilation?
10742 need_locks=$lt_need_locks
10744 # Do we need the lib prefix for modules?
10745 need_lib_prefix=$need_lib_prefix
10747 # Do we need a version for libraries?
10748 need_version=$need_version
10750 # Whether dlopen is supported.
10751 dlopen_support=$enable_dlopen
10753 # Whether dlopen of programs is supported.
10754 dlopen_self=$enable_dlopen_self
10756 # Whether dlopen of statically linked programs is supported.
10757 dlopen_self_static=$enable_dlopen_self_static
10759 # Compiler flag to prevent dynamic linking.
10760 link_static_flag=$lt_lt_prog_compiler_static
10762 # Compiler flag to turn off builtin functions.
10763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10765 # Compiler flag to allow reflexive dlopens.
10766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10768 # Compiler flag to generate shared objects directly from archives.
10769 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10771 # Compiler flag to generate thread-safe objects.
10772 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10774 # Library versioning type.
10775 version_type=$version_type
10777 # Format of library name prefix.
10778 libname_spec=$lt_libname_spec
10780 # List of archive names. First name is the real one, the rest are links.
10781 # The last name is the one that the linker finds with -lNAME.
10782 library_names_spec=$lt_library_names_spec
10784 # The coded name of the library, if different from the real name.
10785 soname_spec=$lt_soname_spec
10787 # Commands used to build and install an old-style archive.
10788 RANLIB=$lt_RANLIB
10789 old_archive_cmds=$lt_old_archive_cmds
10790 old_postinstall_cmds=$lt_old_postinstall_cmds
10791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10793 # Create an old-style archive from a shared archive.
10794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10796 # Create a temporary old-style archive to link instead of a shared archive.
10797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10799 # Commands used to build and install a shared archive.
10800 archive_cmds=$lt_archive_cmds
10801 archive_expsym_cmds=$lt_archive_expsym_cmds
10802 postinstall_cmds=$lt_postinstall_cmds
10803 postuninstall_cmds=$lt_postuninstall_cmds
10805 # Commands used to build a loadable module (assumed same as above if empty)
10806 module_cmds=$lt_module_cmds
10807 module_expsym_cmds=$lt_module_expsym_cmds
10809 # Commands to strip libraries.
10810 old_striplib=$lt_old_striplib
10811 striplib=$lt_striplib
10813 # Dependencies to place before the objects being linked to create a
10814 # shared library.
10815 predep_objects=$lt_predep_objects
10817 # Dependencies to place after the objects being linked to create a
10818 # shared library.
10819 postdep_objects=$lt_postdep_objects
10821 # Dependencies to place before the objects being linked to create a
10822 # shared library.
10823 predeps=$lt_predeps
10825 # Dependencies to place after the objects being linked to create a
10826 # shared library.
10827 postdeps=$lt_postdeps
10829 # The directories searched by this compiler when creating a shared
10830 # library
10831 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10833 # The library search path used internally by the compiler when linking
10834 # a shared library.
10835 compiler_lib_search_path=$lt_compiler_lib_search_path
10837 # Method to check whether dependent libraries are shared objects.
10838 deplibs_check_method=$lt_deplibs_check_method
10840 # Command to use when deplibs_check_method == file_magic.
10841 file_magic_cmd=$lt_file_magic_cmd
10843 # Flag that allows shared libraries with undefined symbols to be built.
10844 allow_undefined_flag=$lt_allow_undefined_flag
10846 # Flag that forces no undefined symbols.
10847 no_undefined_flag=$lt_no_undefined_flag
10849 # Commands used to finish a libtool library installation in a directory.
10850 finish_cmds=$lt_finish_cmds
10852 # Same as above, but a single script fragment to be evaled but not shown.
10853 finish_eval=$lt_finish_eval
10855 # Take the output of nm and produce a listing of raw symbols and C names.
10856 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10858 # Transform the output of nm in a proper C declaration
10859 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10861 # Transform the output of nm in a C name address pair
10862 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10864 # This is the shared library runtime path variable.
10865 runpath_var=$runpath_var
10867 # This is the shared library path variable.
10868 shlibpath_var=$shlibpath_var
10870 # Is shlibpath searched before the hard-coded library search path?
10871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10873 # How to hardcode a shared library path into an executable.
10874 hardcode_action=$hardcode_action
10876 # Whether we should hardcode library paths into libraries.
10877 hardcode_into_libs=$hardcode_into_libs
10879 # Flag to hardcode \$libdir into a binary during linking.
10880 # This must work even if \$libdir does not exist.
10881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10883 # If ld is used when linking, flag to hardcode \$libdir into
10884 # a binary during linking. This must work even if \$libdir does
10885 # not exist.
10886 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10888 # Whether we need a single -rpath flag with a separated argument.
10889 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10891 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10892 # resulting binary.
10893 hardcode_direct=$hardcode_direct
10895 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10896 # resulting binary.
10897 hardcode_minus_L=$hardcode_minus_L
10899 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10900 # the resulting binary.
10901 hardcode_shlibpath_var=$hardcode_shlibpath_var
10903 # Set to yes if building a shared library automatically hardcodes DIR into the library
10904 # and all subsequent libraries and executables linked against it.
10905 hardcode_automatic=$hardcode_automatic
10907 # Variables whose values should be saved in libtool wrapper scripts and
10908 # restored at relink time.
10909 variables_saved_for_relink="$variables_saved_for_relink"
10911 # Whether libtool must link a program against all its dependency libraries.
10912 link_all_deplibs=$link_all_deplibs
10914 # Compile-time system search path for libraries
10915 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10917 # Run-time system search path for libraries
10918 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10920 # Fix the shell variable \$srcfile for the compiler.
10921 fix_srcfile_path=$lt_fix_srcfile_path
10923 # Set to yes if exported symbols are required.
10924 always_export_symbols=$always_export_symbols
10926 # The commands to list exported symbols.
10927 export_symbols_cmds=$lt_export_symbols_cmds
10929 # The commands to extract the exported symbol list from a shared archive.
10930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10932 # Symbols that should not be listed in the preloaded symbols.
10933 exclude_expsyms=$lt_exclude_expsyms
10935 # Symbols that must always be exported.
10936 include_expsyms=$lt_include_expsyms
10938 # ### END LIBTOOL CONFIG
10940 __EOF__
10943 case $host_os in
10944 aix3*)
10945 cat <<\EOF >> "$cfgfile"
10947 # AIX sometimes has problems with the GCC collect2 program. For some
10948 # reason, if we set the COLLECT_NAMES environment variable, the problems
10949 # vanish in a puff of smoke.
10950 if test "X${COLLECT_NAMES+set}" != Xset; then
10951 COLLECT_NAMES=
10952 export COLLECT_NAMES
10956 esac
10958 # We use sed instead of cat because bash on DJGPP gets confused if
10959 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10960 # text mode, it properly converts lines to CR/LF. This bash problem
10961 # is reportedly fixed, but why not run on old versions too?
10962 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10964 mv -f "$cfgfile" "$ofile" || \
10965 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10966 chmod +x "$ofile"
10968 else
10969 # If there is no Makefile yet, we rely on a make rule to execute
10970 # `config.status --recheck' to rerun these tests and create the
10971 # libtool script then.
10972 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10973 if test -f "$ltmain_in"; then
10974 test -f Makefile && make "$ltmain"
10979 ac_ext=c
10980 ac_cpp='$CPP $CPPFLAGS'
10981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10985 CC="$lt_save_CC"
10988 # Check whether --with-tags was given.
10989 if test "${with_tags+set}" = set; then
10990 withval=$with_tags; tagnames="$withval"
10994 if test -f "$ltmain" && test -n "$tagnames"; then
10995 if test ! -f "${ofile}"; then
10996 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10997 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11000 if test -z "$LTCC"; then
11001 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11002 if test -z "$LTCC"; then
11003 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11004 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11005 else
11006 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11007 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11010 if test -z "$LTCFLAGS"; then
11011 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11014 # Extract list of available tagged configurations in $ofile.
11015 # Note that this assumes the entire list is on one line.
11016 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11019 for tagname in $tagnames; do
11020 IFS="$lt_save_ifs"
11021 # Check whether tagname contains only valid characters
11022 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11023 "") ;;
11024 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11025 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11026 { (exit 1); exit 1; }; }
11028 esac
11030 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11031 then
11032 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11033 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11034 { (exit 1); exit 1; }; }
11037 # Update the list of available tags.
11038 if test -n "$tagname"; then
11039 echo appending configuration tag \"$tagname\" to $ofile
11041 case $tagname in
11042 CXX)
11043 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11044 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11045 (test "X$CXX" != "Xg++"))) ; then
11046 ac_ext=cpp
11047 ac_cpp='$CXXCPP $CPPFLAGS'
11048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11055 archive_cmds_need_lc_CXX=no
11056 allow_undefined_flag_CXX=
11057 always_export_symbols_CXX=no
11058 archive_expsym_cmds_CXX=
11059 export_dynamic_flag_spec_CXX=
11060 hardcode_direct_CXX=no
11061 hardcode_libdir_flag_spec_CXX=
11062 hardcode_libdir_flag_spec_ld_CXX=
11063 hardcode_libdir_separator_CXX=
11064 hardcode_minus_L_CXX=no
11065 hardcode_shlibpath_var_CXX=unsupported
11066 hardcode_automatic_CXX=no
11067 module_cmds_CXX=
11068 module_expsym_cmds_CXX=
11069 link_all_deplibs_CXX=unknown
11070 old_archive_cmds_CXX=$old_archive_cmds
11071 no_undefined_flag_CXX=
11072 whole_archive_flag_spec_CXX=
11073 enable_shared_with_static_runtimes_CXX=no
11075 # Dependencies to place before and after the object being linked:
11076 predep_objects_CXX=
11077 postdep_objects_CXX=
11078 predeps_CXX=
11079 postdeps_CXX=
11080 compiler_lib_search_path_CXX=
11081 compiler_lib_search_dirs_CXX=
11083 # Source file extension for C++ test sources.
11084 ac_ext=cpp
11086 # Object file extension for compiled C++ test sources.
11087 objext=o
11088 objext_CXX=$objext
11090 # Code to be used in simple compile tests
11091 lt_simple_compile_test_code="int some_variable = 0;"
11093 # Code to be used in simple link tests
11094 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11096 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11098 # If no C compiler was specified, use CC.
11099 LTCC=${LTCC-"$CC"}
11101 # If no C compiler flags were specified, use CFLAGS.
11102 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11104 # Allow CC to be a program name with arguments.
11105 compiler=$CC
11108 # save warnings/boilerplate of simple test code
11109 ac_outfile=conftest.$ac_objext
11110 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11111 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11112 _lt_compiler_boilerplate=`cat conftest.err`
11113 $rm conftest*
11115 ac_outfile=conftest.$ac_objext
11116 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11117 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11118 _lt_linker_boilerplate=`cat conftest.err`
11119 $rm -r conftest*
11122 # Allow CC to be a program name with arguments.
11123 lt_save_CC=$CC
11124 lt_save_LD=$LD
11125 lt_save_GCC=$GCC
11126 GCC=$GXX
11127 lt_save_with_gnu_ld=$with_gnu_ld
11128 lt_save_path_LD=$lt_cv_path_LD
11129 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11130 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11131 else
11132 $as_unset lt_cv_prog_gnu_ld
11134 if test -n "${lt_cv_path_LDCXX+set}"; then
11135 lt_cv_path_LD=$lt_cv_path_LDCXX
11136 else
11137 $as_unset lt_cv_path_LD
11139 test -z "${LDCXX+set}" || LD=$LDCXX
11140 CC=${CXX-"c++"}
11141 compiler=$CC
11142 compiler_CXX=$CC
11143 for cc_temp in $compiler""; do
11144 case $cc_temp in
11145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11147 \-*) ;;
11148 *) break;;
11149 esac
11150 done
11151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11154 # We don't want -fno-exception wen compiling C++ code, so set the
11155 # no_builtin_flag separately
11156 if test "$GXX" = yes; then
11157 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11158 else
11159 lt_prog_compiler_no_builtin_flag_CXX=
11162 if test "$GXX" = yes; then
11163 # Set up default GNU C++ configuration
11166 # Check whether --with-gnu-ld was given.
11167 if test "${with_gnu_ld+set}" = set; then
11168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11169 else
11170 with_gnu_ld=no
11173 ac_prog=ld
11174 if test "$GCC" = yes; then
11175 # Check if gcc -print-prog-name=ld gives a path.
11176 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11177 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11178 case $host in
11179 *-*-mingw*)
11180 # gcc leaves a trailing carriage return which upsets mingw
11181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11184 esac
11185 case $ac_prog in
11186 # Accept absolute paths.
11187 [\\/]* | ?:[\\/]*)
11188 re_direlt='/[^/][^/]*/\.\./'
11189 # Canonicalize the pathname of ld
11190 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11191 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11192 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11193 done
11194 test -z "$LD" && LD="$ac_prog"
11197 # If it fails, then pretend we aren't using GCC.
11198 ac_prog=ld
11201 # If it is relative, then search for the first ld in PATH.
11202 with_gnu_ld=unknown
11204 esac
11205 elif test "$with_gnu_ld" = yes; then
11206 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11207 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11208 else
11209 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11210 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11212 if test "${lt_cv_path_LD+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 if test -z "$LD"; then
11216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11217 for ac_dir in $PATH; do
11218 IFS="$lt_save_ifs"
11219 test -z "$ac_dir" && ac_dir=.
11220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11221 lt_cv_path_LD="$ac_dir/$ac_prog"
11222 # Check to see if the program is GNU ld. I'd rather use --version,
11223 # but apparently some variants of GNU ld only accept -v.
11224 # Break only if it was the GNU/non-GNU ld that we prefer.
11225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11226 *GNU* | *'with BFD'*)
11227 test "$with_gnu_ld" != no && break
11230 test "$with_gnu_ld" != yes && break
11232 esac
11234 done
11235 IFS="$lt_save_ifs"
11236 else
11237 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11241 LD="$lt_cv_path_LD"
11242 if test -n "$LD"; then
11243 { echo "$as_me:$LINENO: result: $LD" >&5
11244 echo "${ECHO_T}$LD" >&6; }
11245 else
11246 { echo "$as_me:$LINENO: result: no" >&5
11247 echo "${ECHO_T}no" >&6; }
11249 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11250 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11251 { (exit 1); exit 1; }; }
11252 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11253 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11254 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11258 case `$LD -v 2>&1 </dev/null` in
11259 *GNU* | *'with BFD'*)
11260 lt_cv_prog_gnu_ld=yes
11263 lt_cv_prog_gnu_ld=no
11265 esac
11267 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11268 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11269 with_gnu_ld=$lt_cv_prog_gnu_ld
11273 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11274 # archiving commands below assume that GNU ld is being used.
11275 if test "$with_gnu_ld" = yes; then
11276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11277 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'
11279 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11282 # If archive_cmds runs LD, not CC, wlarc should be empty
11283 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11284 # investigate it a little bit more. (MM)
11285 wlarc='${wl}'
11287 # ancient GNU ld didn't support --whole-archive et. al.
11288 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11289 grep 'no-whole-archive' > /dev/null; then
11290 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11291 else
11292 whole_archive_flag_spec_CXX=
11294 else
11295 with_gnu_ld=no
11296 wlarc=
11298 # A generic and very simple default shared library creation
11299 # command for GNU C++ for the case where it uses the native
11300 # linker, instead of GNU ld. If possible, this setting should
11301 # overridden to take advantage of the native linker features on
11302 # the platform it is being used on.
11303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11306 # Commands to make compiler produce verbose output that lists
11307 # what "hidden" libraries, object files and flags are used when
11308 # linking a shared library.
11309 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11311 else
11312 GXX=no
11313 with_gnu_ld=no
11314 wlarc=
11317 # PORTME: fill in a description of your system's C++ link characteristics
11318 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11319 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11320 ld_shlibs_CXX=yes
11321 case $host_os in
11322 aix3*)
11323 # FIXME: insert proper C++ library support
11324 ld_shlibs_CXX=no
11326 aix[4-9]*)
11327 if test "$host_cpu" = ia64; then
11328 # On IA64, the linker does run time linking by default, so we don't
11329 # have to do anything special.
11330 aix_use_runtimelinking=no
11331 exp_sym_flag='-Bexport'
11332 no_entry_flag=""
11333 else
11334 aix_use_runtimelinking=no
11336 # Test if we are trying to use run time linking or normal
11337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11338 # need to do runtime linking.
11339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11340 for ld_flag in $LDFLAGS; do
11341 case $ld_flag in
11342 *-brtl*)
11343 aix_use_runtimelinking=yes
11344 break
11346 esac
11347 done
11349 esac
11351 exp_sym_flag='-bexport'
11352 no_entry_flag='-bnoentry'
11355 # When large executables or shared objects are built, AIX ld can
11356 # have problems creating the table of contents. If linking a library
11357 # or program results in "error TOC overflow" add -mminimal-toc to
11358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11361 archive_cmds_CXX=''
11362 hardcode_direct_CXX=yes
11363 hardcode_libdir_separator_CXX=':'
11364 link_all_deplibs_CXX=yes
11366 if test "$GXX" = yes; then
11367 case $host_os in aix4.[012]|aix4.[012].*)
11368 # We only want to do this on AIX 4.2 and lower, the check
11369 # below for broken collect2 doesn't work under 4.3+
11370 collect2name=`${CC} -print-prog-name=collect2`
11371 if test -f "$collect2name" && \
11372 strings "$collect2name" | grep resolve_lib_name >/dev/null
11373 then
11374 # We have reworked collect2
11376 else
11377 # We have old collect2
11378 hardcode_direct_CXX=unsupported
11379 # It fails to find uninstalled libraries when the uninstalled
11380 # path is not listed in the libpath. Setting hardcode_minus_L
11381 # to unsupported forces relinking
11382 hardcode_minus_L_CXX=yes
11383 hardcode_libdir_flag_spec_CXX='-L$libdir'
11384 hardcode_libdir_separator_CXX=
11387 esac
11388 shared_flag='-shared'
11389 if test "$aix_use_runtimelinking" = yes; then
11390 shared_flag="$shared_flag "'${wl}-G'
11392 else
11393 # not using gcc
11394 if test "$host_cpu" = ia64; then
11395 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11396 # chokes on -Wl,-G. The following line is correct:
11397 shared_flag='-G'
11398 else
11399 if test "$aix_use_runtimelinking" = yes; then
11400 shared_flag='${wl}-G'
11401 else
11402 shared_flag='${wl}-bM:SRE'
11407 # It seems that -bexpall does not export symbols beginning with
11408 # underscore (_), so it is better to generate a list of symbols to export.
11409 always_export_symbols_CXX=yes
11410 if test "$aix_use_runtimelinking" = yes; then
11411 # Warning - without using the other runtime loading flags (-brtl),
11412 # -berok will link without error, but may produce a broken library.
11413 allow_undefined_flag_CXX='-berok'
11414 # Determine the default libpath from the value encoded in an empty executable.
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11423 main ()
11427 return 0;
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_cxx_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest$ac_exeext &&
11447 $as_test_x conftest$ac_exeext; then
11449 lt_aix_libpath_sed='
11450 /Import File Strings/,/^$/ {
11451 /^0/ {
11452 s/^0 *\(.*\)$/\1/
11456 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11457 # Check for a 64-bit object if we didn't find anything.
11458 if test -z "$aix_libpath"; then
11459 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11461 else
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11469 conftest$ac_exeext conftest.$ac_ext
11470 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11472 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11474 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"
11475 else
11476 if test "$host_cpu" = ia64; then
11477 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11478 allow_undefined_flag_CXX="-z nodefs"
11479 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"
11480 else
11481 # Determine the default libpath from the value encoded in an empty executable.
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11490 main ()
11494 return 0;
11496 _ACEOF
11497 rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (ac_try="$ac_link"
11499 case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_link") 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_cxx_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest$ac_exeext &&
11514 $as_test_x conftest$ac_exeext; then
11516 lt_aix_libpath_sed='
11517 /Import File Strings/,/^$/ {
11518 /^0/ {
11519 s/^0 *\(.*\)$/\1/
11523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11524 # Check for a 64-bit object if we didn't find anything.
11525 if test -z "$aix_libpath"; then
11526 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11528 else
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11536 conftest$ac_exeext conftest.$ac_ext
11537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11539 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11540 # Warning - without using the other run time loading flags,
11541 # -berok will link without error, but may produce a broken library.
11542 no_undefined_flag_CXX=' ${wl}-bernotok'
11543 allow_undefined_flag_CXX=' ${wl}-berok'
11544 # Exported symbols can be pulled into shared objects from archives
11545 whole_archive_flag_spec_CXX='$convenience'
11546 archive_cmds_need_lc_CXX=yes
11547 # This is similar to how AIX traditionally builds its shared libraries.
11548 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'
11553 beos*)
11554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11555 allow_undefined_flag_CXX=unsupported
11556 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11557 # support --undefined. This deserves some investigation. FIXME
11558 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11559 else
11560 ld_shlibs_CXX=no
11564 chorus*)
11565 case $cc_basename in
11567 # FIXME: insert proper C++ library support
11568 ld_shlibs_CXX=no
11570 esac
11573 cygwin* | mingw* | pw32*)
11574 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11575 # as there is no search path for DLLs.
11576 hardcode_libdir_flag_spec_CXX='-L$libdir'
11577 allow_undefined_flag_CXX=unsupported
11578 always_export_symbols_CXX=no
11579 enable_shared_with_static_runtimes_CXX=yes
11581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11582 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'
11583 # If the export-symbols file already is a .def file (1st line
11584 # is EXPORTS), use it as is; otherwise, prepend...
11585 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11586 cp $export_symbols $output_objdir/$soname.def;
11587 else
11588 echo EXPORTS > $output_objdir/$soname.def;
11589 cat $export_symbols >> $output_objdir/$soname.def;
11591 $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'
11592 else
11593 ld_shlibs_CXX=no
11596 darwin* | rhapsody*)
11597 archive_cmds_need_lc_CXX=no
11598 hardcode_direct_CXX=no
11599 hardcode_automatic_CXX=yes
11600 hardcode_shlibpath_var_CXX=unsupported
11601 whole_archive_flag_spec_CXX=''
11602 link_all_deplibs_CXX=yes
11603 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11604 if test "$GXX" = yes ; then
11605 output_verbose_link_cmd='echo'
11606 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11607 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11608 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11609 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11610 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11611 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11612 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11614 else
11615 case $cc_basename in
11616 xlc*)
11617 output_verbose_link_cmd='echo'
11618 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'
11619 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11621 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}'
11622 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}'
11625 ld_shlibs_CXX=no
11627 esac
11631 dgux*)
11632 case $cc_basename in
11633 ec++*)
11634 # FIXME: insert proper C++ library support
11635 ld_shlibs_CXX=no
11637 ghcx*)
11638 # Green Hills C++ Compiler
11639 # FIXME: insert proper C++ library support
11640 ld_shlibs_CXX=no
11643 # FIXME: insert proper C++ library support
11644 ld_shlibs_CXX=no
11646 esac
11648 freebsd[12]*)
11649 # C++ shared libraries reported to be fairly broken before switch to ELF
11650 ld_shlibs_CXX=no
11652 freebsd-elf*)
11653 archive_cmds_need_lc_CXX=no
11655 freebsd* | dragonfly*)
11656 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11657 # conventions
11658 ld_shlibs_CXX=yes
11660 gnu*)
11662 hpux9*)
11663 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11664 hardcode_libdir_separator_CXX=:
11665 export_dynamic_flag_spec_CXX='${wl}-E'
11666 hardcode_direct_CXX=yes
11667 hardcode_minus_L_CXX=yes # Not in the search PATH,
11668 # but as the default
11669 # location of the library.
11671 case $cc_basename in
11672 CC*)
11673 # FIXME: insert proper C++ library support
11674 ld_shlibs_CXX=no
11676 aCC*)
11677 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'
11678 # Commands to make compiler produce verbose output that lists
11679 # what "hidden" libraries, object files and flags are used when
11680 # linking a shared library.
11682 # There doesn't appear to be a way to prevent this compiler from
11683 # explicitly linking system object files so we need to strip them
11684 # from the output so that they don't get included in the library
11685 # dependencies.
11686 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'
11689 if test "$GXX" = yes; then
11690 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'
11691 else
11692 # FIXME: insert proper C++ library support
11693 ld_shlibs_CXX=no
11696 esac
11698 hpux10*|hpux11*)
11699 if test $with_gnu_ld = no; then
11700 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11701 hardcode_libdir_separator_CXX=:
11703 case $host_cpu in
11704 hppa*64*|ia64*) ;;
11706 export_dynamic_flag_spec_CXX='${wl}-E'
11708 esac
11710 case $host_cpu in
11711 hppa*64*|ia64*)
11712 hardcode_direct_CXX=no
11713 hardcode_shlibpath_var_CXX=no
11716 hardcode_direct_CXX=yes
11717 hardcode_minus_L_CXX=yes # Not in the search PATH,
11718 # but as the default
11719 # location of the library.
11721 esac
11723 case $cc_basename in
11724 CC*)
11725 # FIXME: insert proper C++ library support
11726 ld_shlibs_CXX=no
11728 aCC*)
11729 case $host_cpu in
11730 hppa*64*)
11731 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11733 ia64*)
11734 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11737 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11739 esac
11740 # Commands to make compiler produce verbose output that lists
11741 # what "hidden" libraries, object files and flags are used when
11742 # linking a shared library.
11744 # There doesn't appear to be a way to prevent this compiler from
11745 # explicitly linking system object files so we need to strip them
11746 # from the output so that they don't get included in the library
11747 # dependencies.
11748 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'
11751 if test "$GXX" = yes; then
11752 if test $with_gnu_ld = no; then
11753 case $host_cpu in
11754 hppa*64*)
11755 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11757 ia64*)
11758 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11761 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'
11763 esac
11765 else
11766 # FIXME: insert proper C++ library support
11767 ld_shlibs_CXX=no
11770 esac
11772 interix[3-9]*)
11773 hardcode_direct_CXX=no
11774 hardcode_shlibpath_var_CXX=no
11775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11776 export_dynamic_flag_spec_CXX='${wl}-E'
11777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11778 # Instead, shared libraries are loaded at an image base (0x10000000 by
11779 # default) and relocated if they conflict, which is a slow very memory
11780 # consuming and fragmenting process. To avoid this, we pick a random,
11781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11783 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'
11784 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'
11786 irix5* | irix6*)
11787 case $cc_basename in
11788 CC*)
11789 # SGI C++
11790 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'
11792 # Archives containing C++ object files must be created using
11793 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11794 # necessary to make sure instantiated templates are included
11795 # in the archive.
11796 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11799 if test "$GXX" = yes; then
11800 if test "$with_gnu_ld" = no; then
11801 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'
11802 else
11803 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'
11806 link_all_deplibs_CXX=yes
11808 esac
11809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11810 hardcode_libdir_separator_CXX=:
11812 linux* | k*bsd*-gnu)
11813 case $cc_basename in
11814 KCC*)
11815 # Kuck and Associates, Inc. (KAI) C++ Compiler
11817 # KCC will only create a shared library if the output file
11818 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11819 # to its proper name (with version) after linking.
11820 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'
11821 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'
11822 # Commands to make compiler produce verbose output that lists
11823 # what "hidden" libraries, object files and flags are used when
11824 # linking a shared library.
11826 # There doesn't appear to be a way to prevent this compiler from
11827 # explicitly linking system object files so we need to strip them
11828 # from the output so that they don't get included in the library
11829 # dependencies.
11830 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'
11832 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11835 # Archives containing C++ object files must be created using
11836 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11837 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11839 icpc*)
11840 # Intel C++
11841 with_gnu_ld=yes
11842 # version 8.0 and above of icpc choke on multiply defined symbols
11843 # if we add $predep_objects and $postdep_objects, however 7.1 and
11844 # earlier do not add the objects themselves.
11845 case `$CC -V 2>&1` in
11846 *"Version 7."*)
11847 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11848 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'
11850 *) # Version 8.0 or newer
11851 tmp_idyn=
11852 case $host_cpu in
11853 ia64*) tmp_idyn=' -i_dynamic';;
11854 esac
11855 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11856 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'
11858 esac
11859 archive_cmds_need_lc_CXX=no
11860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11862 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11864 pgCC* | pgcpp*)
11865 # Portland Group C++ compiler
11866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11867 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'
11869 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11870 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11871 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'
11873 cxx*)
11874 # Compaq C++
11875 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11876 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'
11878 runpath_var=LD_RUN_PATH
11879 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11880 hardcode_libdir_separator_CXX=:
11882 # Commands to make compiler produce verbose output that lists
11883 # what "hidden" libraries, object files and flags are used when
11884 # linking a shared library.
11886 # There doesn't appear to be a way to prevent this compiler from
11887 # explicitly linking system object files so we need to strip them
11888 # from the output so that they don't get included in the library
11889 # dependencies.
11890 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'
11893 case `$CC -V 2>&1 | sed 5q` in
11894 *Sun\ C*)
11895 # Sun C++ 5.9
11896 no_undefined_flag_CXX=' -zdefs'
11897 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11898 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'
11899 hardcode_libdir_flag_spec_CXX='-R$libdir'
11900 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'
11902 # Not sure whether something based on
11903 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11904 # would be better.
11905 output_verbose_link_cmd='echo'
11907 # Archives containing C++ object files must be created using
11908 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11909 # necessary to make sure instantiated templates are included
11910 # in the archive.
11911 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11913 esac
11915 esac
11917 lynxos*)
11918 # FIXME: insert proper C++ library support
11919 ld_shlibs_CXX=no
11921 m88k*)
11922 # FIXME: insert proper C++ library support
11923 ld_shlibs_CXX=no
11925 mvs*)
11926 case $cc_basename in
11927 cxx*)
11928 # FIXME: insert proper C++ library support
11929 ld_shlibs_CXX=no
11932 # FIXME: insert proper C++ library support
11933 ld_shlibs_CXX=no
11935 esac
11937 netbsd* | netbsdelf*-gnu)
11938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11940 wlarc=
11941 hardcode_libdir_flag_spec_CXX='-R$libdir'
11942 hardcode_direct_CXX=yes
11943 hardcode_shlibpath_var_CXX=no
11945 # Workaround some broken pre-1.5 toolchains
11946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11948 openbsd2*)
11949 # C++ shared libraries are fairly broken
11950 ld_shlibs_CXX=no
11952 openbsd*)
11953 if test -f /usr/libexec/ld.so; then
11954 hardcode_direct_CXX=yes
11955 hardcode_shlibpath_var_CXX=no
11956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11958 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11959 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11960 export_dynamic_flag_spec_CXX='${wl}-E'
11961 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11963 output_verbose_link_cmd='echo'
11964 else
11965 ld_shlibs_CXX=no
11968 osf3*)
11969 case $cc_basename in
11970 KCC*)
11971 # Kuck and Associates, Inc. (KAI) C++ Compiler
11973 # KCC will only create a shared library if the output file
11974 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11975 # to its proper name (with version) after linking.
11976 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'
11978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979 hardcode_libdir_separator_CXX=:
11981 # Archives containing C++ object files must be created using
11982 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11983 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11986 RCC*)
11987 # Rational C++ 2.4.1
11988 # FIXME: insert proper C++ library support
11989 ld_shlibs_CXX=no
11991 cxx*)
11992 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11993 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'
11995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11996 hardcode_libdir_separator_CXX=:
11998 # Commands to make compiler produce verbose output that lists
11999 # what "hidden" libraries, object files and flags are used when
12000 # linking a shared library.
12002 # There doesn't appear to be a way to prevent this compiler from
12003 # explicitly linking system object files so we need to strip them
12004 # from the output so that they don't get included in the library
12005 # dependencies.
12006 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'
12009 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12010 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12011 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'
12013 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12014 hardcode_libdir_separator_CXX=:
12016 # Commands to make compiler produce verbose output that lists
12017 # what "hidden" libraries, object files and flags are used when
12018 # linking a shared library.
12019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12021 else
12022 # FIXME: insert proper C++ library support
12023 ld_shlibs_CXX=no
12026 esac
12028 osf4* | osf5*)
12029 case $cc_basename in
12030 KCC*)
12031 # Kuck and Associates, Inc. (KAI) C++ Compiler
12033 # KCC will only create a shared library if the output file
12034 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12035 # to its proper name (with version) after linking.
12036 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'
12038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12039 hardcode_libdir_separator_CXX=:
12041 # Archives containing C++ object files must be created using
12042 # the KAI C++ compiler.
12043 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12045 RCC*)
12046 # Rational C++ 2.4.1
12047 # FIXME: insert proper C++ library support
12048 ld_shlibs_CXX=no
12050 cxx*)
12051 allow_undefined_flag_CXX=' -expect_unresolved \*'
12052 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'
12053 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12054 echo "-hidden">> $lib.exp~
12055 $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~
12056 $rm $lib.exp'
12058 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12059 hardcode_libdir_separator_CXX=:
12061 # Commands to make compiler produce verbose output that lists
12062 # what "hidden" libraries, object files and flags are used when
12063 # linking a shared library.
12065 # There doesn't appear to be a way to prevent this compiler from
12066 # explicitly linking system object files so we need to strip them
12067 # from the output so that they don't get included in the library
12068 # dependencies.
12069 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'
12072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12074 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'
12076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12077 hardcode_libdir_separator_CXX=:
12079 # Commands to make compiler produce verbose output that lists
12080 # what "hidden" libraries, object files and flags are used when
12081 # linking a shared library.
12082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12084 else
12085 # FIXME: insert proper C++ library support
12086 ld_shlibs_CXX=no
12089 esac
12091 psos*)
12092 # FIXME: insert proper C++ library support
12093 ld_shlibs_CXX=no
12095 sunos4*)
12096 case $cc_basename in
12097 CC*)
12098 # Sun C++ 4.x
12099 # FIXME: insert proper C++ library support
12100 ld_shlibs_CXX=no
12102 lcc*)
12103 # Lucid
12104 # FIXME: insert proper C++ library support
12105 ld_shlibs_CXX=no
12108 # FIXME: insert proper C++ library support
12109 ld_shlibs_CXX=no
12111 esac
12113 solaris*)
12114 case $cc_basename in
12115 CC*)
12116 # Sun C++ 4.2, 5.x and Centerline C++
12117 archive_cmds_need_lc_CXX=yes
12118 no_undefined_flag_CXX=' -zdefs'
12119 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12120 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12121 $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'
12123 hardcode_libdir_flag_spec_CXX='-R$libdir'
12124 hardcode_shlibpath_var_CXX=no
12125 case $host_os in
12126 solaris2.[0-5] | solaris2.[0-5].*) ;;
12128 # The compiler driver will combine and reorder linker options,
12129 # but understands `-z linker_flag'.
12130 # Supported since Solaris 2.6 (maybe 2.5.1?)
12131 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12133 esac
12134 link_all_deplibs_CXX=yes
12136 output_verbose_link_cmd='echo'
12138 # Archives containing C++ object files must be created using
12139 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12140 # necessary to make sure instantiated templates are included
12141 # in the archive.
12142 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12144 gcx*)
12145 # Green Hills C++ Compiler
12146 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12148 # The C++ compiler must be used to create the archive.
12149 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12152 # GNU C++ compiler with Solaris linker
12153 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12154 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12155 if $CC --version | grep -v '^2\.7' > /dev/null; then
12156 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12157 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12158 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12160 # Commands to make compiler produce verbose output that lists
12161 # what "hidden" libraries, object files and flags are used when
12162 # linking a shared library.
12163 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12164 else
12165 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12166 # platform.
12167 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12168 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12169 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12171 # Commands to make compiler produce verbose output that lists
12172 # what "hidden" libraries, object files and flags are used when
12173 # linking a shared library.
12174 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12177 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12178 case $host_os in
12179 solaris2.[0-5] | solaris2.[0-5].*) ;;
12181 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12183 esac
12186 esac
12188 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12189 no_undefined_flag_CXX='${wl}-z,text'
12190 archive_cmds_need_lc_CXX=no
12191 hardcode_shlibpath_var_CXX=no
12192 runpath_var='LD_RUN_PATH'
12194 case $cc_basename in
12195 CC*)
12196 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12197 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12200 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12201 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12203 esac
12205 sysv5* | sco3.2v5* | sco5v6*)
12206 # Note: We can NOT use -z defs as we might desire, because we do not
12207 # link with -lc, and that would cause any symbols used from libc to
12208 # always be unresolved, which means just about no library would
12209 # ever link correctly. If we're not using GNU ld we use -z text
12210 # though, which does catch some bad symbols but isn't as heavy-handed
12211 # as -z defs.
12212 # For security reasons, it is highly recommended that you always
12213 # use absolute paths for naming shared libraries, and exclude the
12214 # DT_RUNPATH tag from executables and libraries. But doing so
12215 # requires that you compile everything twice, which is a pain.
12216 # So that behaviour is only enabled if SCOABSPATH is set to a
12217 # non-empty value in the environment. Most likely only useful for
12218 # creating official distributions of packages.
12219 # This is a hack until libtool officially supports absolute path
12220 # names for shared libraries.
12221 no_undefined_flag_CXX='${wl}-z,text'
12222 allow_undefined_flag_CXX='${wl}-z,nodefs'
12223 archive_cmds_need_lc_CXX=no
12224 hardcode_shlibpath_var_CXX=no
12225 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12226 hardcode_libdir_separator_CXX=':'
12227 link_all_deplibs_CXX=yes
12228 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12229 runpath_var='LD_RUN_PATH'
12231 case $cc_basename in
12232 CC*)
12233 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12234 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12237 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12238 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12240 esac
12242 tandem*)
12243 case $cc_basename in
12244 NCC*)
12245 # NonStop-UX NCC 3.20
12246 # FIXME: insert proper C++ library support
12247 ld_shlibs_CXX=no
12250 # FIXME: insert proper C++ library support
12251 ld_shlibs_CXX=no
12253 esac
12255 vxworks*)
12256 # FIXME: insert proper C++ library support
12257 ld_shlibs_CXX=no
12260 # FIXME: insert proper C++ library support
12261 ld_shlibs_CXX=no
12263 esac
12264 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12265 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12266 test "$ld_shlibs_CXX" = no && can_build_shared=no
12268 GCC_CXX="$GXX"
12269 LD_CXX="$LD"
12271 cat > conftest.$ac_ext <<EOF
12272 class Foo
12274 public:
12275 Foo (void) { a = 0; }
12276 private:
12277 int a;
12281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12282 (eval $ac_compile) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; then
12286 # Parse the compiler output and extract the necessary
12287 # objects, libraries and library flags.
12289 # Sentinel used to keep track of whether or not we are before
12290 # the conftest object file.
12291 pre_test_object_deps_done=no
12293 # The `*' in the case matches for architectures that use `case' in
12294 # $output_verbose_cmd can trigger glob expansion during the loop
12295 # eval without this substitution.
12296 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12298 for p in `eval $output_verbose_link_cmd`; do
12299 case $p in
12301 -L* | -R* | -l*)
12302 # Some compilers place space between "-{L,R}" and the path.
12303 # Remove the space.
12304 if test $p = "-L" \
12305 || test $p = "-R"; then
12306 prev=$p
12307 continue
12308 else
12309 prev=
12312 if test "$pre_test_object_deps_done" = no; then
12313 case $p in
12314 -L* | -R*)
12315 # Internal compiler library paths should come after those
12316 # provided the user. The postdeps already come after the
12317 # user supplied libs so there is no need to process them.
12318 if test -z "$compiler_lib_search_path_CXX"; then
12319 compiler_lib_search_path_CXX="${prev}${p}"
12320 else
12321 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12324 # The "-l" case would never come before the object being
12325 # linked, so don't bother handling this case.
12326 esac
12327 else
12328 if test -z "$postdeps_CXX"; then
12329 postdeps_CXX="${prev}${p}"
12330 else
12331 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12336 *.$objext)
12337 # This assumes that the test object file only shows up
12338 # once in the compiler output.
12339 if test "$p" = "conftest.$objext"; then
12340 pre_test_object_deps_done=yes
12341 continue
12344 if test "$pre_test_object_deps_done" = no; then
12345 if test -z "$predep_objects_CXX"; then
12346 predep_objects_CXX="$p"
12347 else
12348 predep_objects_CXX="$predep_objects_CXX $p"
12350 else
12351 if test -z "$postdep_objects_CXX"; then
12352 postdep_objects_CXX="$p"
12353 else
12354 postdep_objects_CXX="$postdep_objects_CXX $p"
12359 *) ;; # Ignore the rest.
12361 esac
12362 done
12364 # Clean up.
12365 rm -f a.out a.exe
12366 else
12367 echo "libtool.m4: error: problem compiling CXX test program"
12370 $rm -f confest.$objext
12372 compiler_lib_search_dirs_CXX=
12373 if test -n "$compiler_lib_search_path_CXX"; then
12374 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12377 # PORTME: override above test on systems where it is broken
12378 case $host_os in
12379 interix[3-9]*)
12380 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12381 # hack all around it, let's just trust "g++" to DTRT.
12382 predep_objects_CXX=
12383 postdep_objects_CXX=
12384 postdeps_CXX=
12387 linux*)
12388 case `$CC -V 2>&1 | sed 5q` in
12389 *Sun\ C*)
12390 # Sun C++ 5.9
12392 # The more standards-conforming stlport4 library is
12393 # incompatible with the Cstd library. Avoid specifying
12394 # it if it's in CXXFLAGS. Ignore libCrun as
12395 # -library=stlport4 depends on it.
12396 case " $CXX $CXXFLAGS " in
12397 *" -library=stlport4 "*)
12398 solaris_use_stlport4=yes
12400 esac
12401 if test "$solaris_use_stlport4" != yes; then
12402 postdeps_CXX='-library=Cstd -library=Crun'
12405 esac
12408 solaris*)
12409 case $cc_basename in
12410 CC*)
12411 # The more standards-conforming stlport4 library is
12412 # incompatible with the Cstd library. Avoid specifying
12413 # it if it's in CXXFLAGS. Ignore libCrun as
12414 # -library=stlport4 depends on it.
12415 case " $CXX $CXXFLAGS " in
12416 *" -library=stlport4 "*)
12417 solaris_use_stlport4=yes
12419 esac
12421 # Adding this requires a known-good setup of shared libraries for
12422 # Sun compiler versions before 5.6, else PIC objects from an old
12423 # archive will be linked into the output, leading to subtle bugs.
12424 if test "$solaris_use_stlport4" != yes; then
12425 postdeps_CXX='-library=Cstd -library=Crun'
12428 esac
12430 esac
12432 case " $postdeps_CXX " in
12433 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12434 esac
12436 lt_prog_compiler_wl_CXX=
12437 lt_prog_compiler_pic_CXX=
12438 lt_prog_compiler_static_CXX=
12440 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12441 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12443 # C++ specific cases for pic, static, wl, etc.
12444 if test "$GXX" = yes; then
12445 lt_prog_compiler_wl_CXX='-Wl,'
12446 lt_prog_compiler_static_CXX='-static'
12448 case $host_os in
12449 aix*)
12450 # All AIX code is PIC.
12451 if test "$host_cpu" = ia64; then
12452 # AIX 5 now supports IA64 processor
12453 lt_prog_compiler_static_CXX='-Bstatic'
12456 amigaos*)
12457 # FIXME: we need at least 68020 code to build shared libraries, but
12458 # adding the `-m68020' flag to GCC prevents building anything better,
12459 # like `-m68040'.
12460 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12462 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12463 # PIC is the default for these OSes.
12465 mingw* | cygwin* | os2* | pw32*)
12466 # This hack is so that the source file can tell whether it is being
12467 # built for inclusion in a dll (and should export symbols for example).
12468 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12469 # (--disable-auto-import) libraries
12470 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12472 darwin* | rhapsody*)
12473 # PIC is the default on this platform
12474 # Common symbols not allowed in MH_DYLIB files
12475 lt_prog_compiler_pic_CXX='-fno-common'
12477 *djgpp*)
12478 # DJGPP does not support shared libraries at all
12479 lt_prog_compiler_pic_CXX=
12481 interix[3-9]*)
12482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12483 # Instead, we relocate shared libraries at runtime.
12485 sysv4*MP*)
12486 if test -d /usr/nec; then
12487 lt_prog_compiler_pic_CXX=-Kconform_pic
12490 hpux*)
12491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12492 # not for PA HP-UX.
12493 case $host_cpu in
12494 hppa*64*|ia64*)
12497 lt_prog_compiler_pic_CXX='-fPIC'
12499 esac
12502 lt_prog_compiler_pic_CXX='-fPIC'
12504 esac
12505 else
12506 case $host_os in
12507 aix[4-9]*)
12508 # All AIX code is PIC.
12509 if test "$host_cpu" = ia64; then
12510 # AIX 5 now supports IA64 processor
12511 lt_prog_compiler_static_CXX='-Bstatic'
12512 else
12513 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12516 chorus*)
12517 case $cc_basename in
12518 cxch68*)
12519 # Green Hills C++ Compiler
12520 # _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"
12522 esac
12524 darwin*)
12525 # PIC is the default on this platform
12526 # Common symbols not allowed in MH_DYLIB files
12527 case $cc_basename in
12528 xlc*)
12529 lt_prog_compiler_pic_CXX='-qnocommon'
12530 lt_prog_compiler_wl_CXX='-Wl,'
12532 esac
12534 dgux*)
12535 case $cc_basename in
12536 ec++*)
12537 lt_prog_compiler_pic_CXX='-KPIC'
12539 ghcx*)
12540 # Green Hills C++ Compiler
12541 lt_prog_compiler_pic_CXX='-pic'
12545 esac
12547 freebsd* | dragonfly*)
12548 # FreeBSD uses GNU C++
12550 hpux9* | hpux10* | hpux11*)
12551 case $cc_basename in
12552 CC*)
12553 lt_prog_compiler_wl_CXX='-Wl,'
12554 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12555 if test "$host_cpu" != ia64; then
12556 lt_prog_compiler_pic_CXX='+Z'
12559 aCC*)
12560 lt_prog_compiler_wl_CXX='-Wl,'
12561 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12562 case $host_cpu in
12563 hppa*64*|ia64*)
12564 # +Z the default
12567 lt_prog_compiler_pic_CXX='+Z'
12569 esac
12573 esac
12575 interix*)
12576 # This is c89, which is MS Visual C++ (no shared libs)
12577 # Anyone wants to do a port?
12579 irix5* | irix6* | nonstopux*)
12580 case $cc_basename in
12581 CC*)
12582 lt_prog_compiler_wl_CXX='-Wl,'
12583 lt_prog_compiler_static_CXX='-non_shared'
12584 # CC pic flag -KPIC is the default.
12588 esac
12590 linux* | k*bsd*-gnu)
12591 case $cc_basename in
12592 KCC*)
12593 # KAI C++ Compiler
12594 lt_prog_compiler_wl_CXX='--backend -Wl,'
12595 lt_prog_compiler_pic_CXX='-fPIC'
12597 icpc* | ecpc*)
12598 # Intel C++
12599 lt_prog_compiler_wl_CXX='-Wl,'
12600 lt_prog_compiler_pic_CXX='-KPIC'
12601 lt_prog_compiler_static_CXX='-static'
12603 pgCC* | pgcpp*)
12604 # Portland Group C++ compiler.
12605 lt_prog_compiler_wl_CXX='-Wl,'
12606 lt_prog_compiler_pic_CXX='-fpic'
12607 lt_prog_compiler_static_CXX='-Bstatic'
12609 cxx*)
12610 # Compaq C++
12611 # Make sure the PIC flag is empty. It appears that all Alpha
12612 # Linux and Compaq Tru64 Unix objects are PIC.
12613 lt_prog_compiler_pic_CXX=
12614 lt_prog_compiler_static_CXX='-non_shared'
12617 case `$CC -V 2>&1 | sed 5q` in
12618 *Sun\ C*)
12619 # Sun C++ 5.9
12620 lt_prog_compiler_pic_CXX='-KPIC'
12621 lt_prog_compiler_static_CXX='-Bstatic'
12622 lt_prog_compiler_wl_CXX='-Qoption ld '
12624 esac
12626 esac
12628 lynxos*)
12630 m88k*)
12632 mvs*)
12633 case $cc_basename in
12634 cxx*)
12635 lt_prog_compiler_pic_CXX='-W c,exportall'
12639 esac
12641 netbsd* | netbsdelf*-gnu)
12643 osf3* | osf4* | osf5*)
12644 case $cc_basename in
12645 KCC*)
12646 lt_prog_compiler_wl_CXX='--backend -Wl,'
12648 RCC*)
12649 # Rational C++ 2.4.1
12650 lt_prog_compiler_pic_CXX='-pic'
12652 cxx*)
12653 # Digital/Compaq C++
12654 lt_prog_compiler_wl_CXX='-Wl,'
12655 # Make sure the PIC flag is empty. It appears that all Alpha
12656 # Linux and Compaq Tru64 Unix objects are PIC.
12657 lt_prog_compiler_pic_CXX=
12658 lt_prog_compiler_static_CXX='-non_shared'
12662 esac
12664 psos*)
12666 solaris*)
12667 case $cc_basename in
12668 CC*)
12669 # Sun C++ 4.2, 5.x and Centerline C++
12670 lt_prog_compiler_pic_CXX='-KPIC'
12671 lt_prog_compiler_static_CXX='-Bstatic'
12672 lt_prog_compiler_wl_CXX='-Qoption ld '
12674 gcx*)
12675 # Green Hills C++ Compiler
12676 lt_prog_compiler_pic_CXX='-PIC'
12680 esac
12682 sunos4*)
12683 case $cc_basename in
12684 CC*)
12685 # Sun C++ 4.x
12686 lt_prog_compiler_pic_CXX='-pic'
12687 lt_prog_compiler_static_CXX='-Bstatic'
12689 lcc*)
12690 # Lucid
12691 lt_prog_compiler_pic_CXX='-pic'
12695 esac
12697 tandem*)
12698 case $cc_basename in
12699 NCC*)
12700 # NonStop-UX NCC 3.20
12701 lt_prog_compiler_pic_CXX='-KPIC'
12705 esac
12707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12708 case $cc_basename in
12709 CC*)
12710 lt_prog_compiler_wl_CXX='-Wl,'
12711 lt_prog_compiler_pic_CXX='-KPIC'
12712 lt_prog_compiler_static_CXX='-Bstatic'
12714 esac
12716 vxworks*)
12719 lt_prog_compiler_can_build_shared_CXX=no
12721 esac
12724 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12725 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12728 # Check to make sure the PIC flag actually works.
12730 if test -n "$lt_prog_compiler_pic_CXX"; then
12732 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12733 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12734 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 lt_cv_prog_compiler_pic_works_CXX=no
12738 ac_outfile=conftest.$ac_objext
12739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12740 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12741 # Insert the option either (1) after the last *FLAGS variable, or
12742 # (2) before a word containing "conftest.", or (3) at the end.
12743 # Note that $ac_compile itself does not contain backslashes and begins
12744 # with a dollar sign (not a hyphen), so the echo should work correctly.
12745 # The option is referenced via a variable to avoid confusing sed.
12746 lt_compile=`echo "$ac_compile" | $SED \
12747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12749 -e 's:$: $lt_compiler_flag:'`
12750 (eval echo "\"\$as_me:12750: $lt_compile\"" >&5)
12751 (eval "$lt_compile" 2>conftest.err)
12752 ac_status=$?
12753 cat conftest.err >&5
12754 echo "$as_me:12754: \$? = $ac_status" >&5
12755 if (exit $ac_status) && test -s "$ac_outfile"; then
12756 # The compiler can only warn and ignore the option if not recognized
12757 # So say no if there are warnings other than the usual output.
12758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12761 lt_cv_prog_compiler_pic_works_CXX=yes
12764 $rm conftest*
12767 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12768 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12770 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12771 case $lt_prog_compiler_pic_CXX in
12772 "" | " "*) ;;
12773 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12774 esac
12775 else
12776 lt_prog_compiler_pic_CXX=
12777 lt_prog_compiler_can_build_shared_CXX=no
12781 case $host_os in
12782 # For platforms which do not support PIC, -DPIC is meaningless:
12783 *djgpp*)
12784 lt_prog_compiler_pic_CXX=
12787 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12789 esac
12792 # Check to make sure the static flag actually works.
12794 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12795 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12796 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12797 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800 lt_cv_prog_compiler_static_works_CXX=no
12801 save_LDFLAGS="$LDFLAGS"
12802 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12803 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12805 # The linker can only warn and ignore the option if not recognized
12806 # So say no if there are warnings
12807 if test -s conftest.err; then
12808 # Append any errors to the config.log.
12809 cat conftest.err 1>&5
12810 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12812 if diff conftest.exp conftest.er2 >/dev/null; then
12813 lt_cv_prog_compiler_static_works_CXX=yes
12815 else
12816 lt_cv_prog_compiler_static_works_CXX=yes
12819 $rm -r conftest*
12820 LDFLAGS="$save_LDFLAGS"
12823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12824 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12826 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12828 else
12829 lt_prog_compiler_static_CXX=
12833 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12834 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12835 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838 lt_cv_prog_compiler_c_o_CXX=no
12839 $rm -r conftest 2>/dev/null
12840 mkdir conftest
12841 cd conftest
12842 mkdir out
12843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12845 lt_compiler_flag="-o out/conftest2.$ac_objext"
12846 # Insert the option either (1) after the last *FLAGS variable, or
12847 # (2) before a word containing "conftest.", or (3) at the end.
12848 # Note that $ac_compile itself does not contain backslashes and begins
12849 # with a dollar sign (not a hyphen), so the echo should work correctly.
12850 lt_compile=`echo "$ac_compile" | $SED \
12851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12853 -e 's:$: $lt_compiler_flag:'`
12854 (eval echo "\"\$as_me:12854: $lt_compile\"" >&5)
12855 (eval "$lt_compile" 2>out/conftest.err)
12856 ac_status=$?
12857 cat out/conftest.err >&5
12858 echo "$as_me:12858: \$? = $ac_status" >&5
12859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12860 then
12861 # The compiler can only warn and ignore the option if not recognized
12862 # So say no if there are warnings
12863 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12866 lt_cv_prog_compiler_c_o_CXX=yes
12869 chmod u+w . 2>&5
12870 $rm conftest*
12871 # SGI C++ compiler will create directory out/ii_files/ for
12872 # template instantiation
12873 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12874 $rm out/* && rmdir out
12875 cd ..
12876 rmdir conftest
12877 $rm conftest*
12880 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12881 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12884 hard_links="nottested"
12885 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12886 # do not overwrite the value of need_locks provided by the user
12887 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12888 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12889 hard_links=yes
12890 $rm conftest*
12891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12892 touch conftest.a
12893 ln conftest.a conftest.b 2>&5 || hard_links=no
12894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12895 { echo "$as_me:$LINENO: result: $hard_links" >&5
12896 echo "${ECHO_T}$hard_links" >&6; }
12897 if test "$hard_links" = no; then
12898 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12899 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12900 need_locks=warn
12902 else
12903 need_locks=no
12906 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12907 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12909 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12910 case $host_os in
12911 aix[4-9]*)
12912 # If we're using GNU nm, then we don't want the "-C" option.
12913 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12914 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12915 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'
12916 else
12917 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'
12920 pw32*)
12921 export_symbols_cmds_CXX="$ltdll_cmds"
12923 cygwin* | mingw*)
12924 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'
12926 linux* | k*bsd*-gnu)
12927 link_all_deplibs_CXX=no
12930 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12932 esac
12933 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12935 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12936 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12937 test "$ld_shlibs_CXX" = no && can_build_shared=no
12940 # Do we need to explicitly link libc?
12942 case "x$archive_cmds_need_lc_CXX" in
12943 x|xyes)
12944 # Assume -lc should be added
12945 archive_cmds_need_lc_CXX=yes
12947 if test "$enable_shared" = yes && test "$GCC" = yes; then
12948 case $archive_cmds_CXX in
12949 *'~'*)
12950 # FIXME: we may have to deal with multi-command sequences.
12952 '$CC '*)
12953 # Test whether the compiler implicitly links with -lc since on some
12954 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12955 # to ld, don't add -lc before -lgcc.
12956 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12957 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12958 $rm conftest*
12959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } 2>conftest.err; then
12966 soname=conftest
12967 lib=conftest
12968 libobjs=conftest.$ac_objext
12969 deplibs=
12970 wl=$lt_prog_compiler_wl_CXX
12971 pic_flag=$lt_prog_compiler_pic_CXX
12972 compiler_flags=-v
12973 linker_flags=-v
12974 verstring=
12975 output_objdir=.
12976 libname=conftest
12977 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12978 allow_undefined_flag_CXX=
12979 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12980 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }
12984 then
12985 archive_cmds_need_lc_CXX=no
12986 else
12987 archive_cmds_need_lc_CXX=yes
12989 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12990 else
12991 cat conftest.err 1>&5
12993 $rm conftest*
12994 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12995 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12997 esac
13000 esac
13002 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13004 library_names_spec=
13005 libname_spec='lib$name'
13006 soname_spec=
13007 shrext_cmds=".so"
13008 postinstall_cmds=
13009 postuninstall_cmds=
13010 finish_cmds=
13011 finish_eval=
13012 shlibpath_var=
13013 shlibpath_overrides_runpath=unknown
13014 version_type=none
13015 dynamic_linker="$host_os ld.so"
13016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13018 need_lib_prefix=unknown
13019 hardcode_into_libs=no
13021 # when you set need_version to no, make sure it does not cause -set_version
13022 # flags to be left without arguments
13023 need_version=unknown
13025 case $host_os in
13026 aix3*)
13027 version_type=linux
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13029 shlibpath_var=LIBPATH
13031 # AIX 3 has no versioning support, so we append a major version to the name.
13032 soname_spec='${libname}${release}${shared_ext}$major'
13035 aix[4-9]*)
13036 version_type=linux
13037 need_lib_prefix=no
13038 need_version=no
13039 hardcode_into_libs=yes
13040 if test "$host_cpu" = ia64; then
13041 # AIX 5 supports IA64
13042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 else
13045 # With GCC up to 2.95.x, collect2 would create an import file
13046 # for dependence libraries. The import file would start with
13047 # the line `#! .'. This would cause the generated library to
13048 # depend on `.', always an invalid library. This was fixed in
13049 # development snapshots of GCC prior to 3.0.
13050 case $host_os in
13051 aix4 | aix4.[01] | aix4.[01].*)
13052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13053 echo ' yes '
13054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13056 else
13057 can_build_shared=no
13060 esac
13061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13062 # soname into executable. Probably we can add versioning support to
13063 # collect2, so additional links can be useful in future.
13064 if test "$aix_use_runtimelinking" = yes; then
13065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13066 # instead of lib<name>.a to let people know that these are not
13067 # typical AIX shared libraries.
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13069 else
13070 # We preserve .a as extension for shared libraries through AIX4.2
13071 # and later when we are not doing run time linking.
13072 library_names_spec='${libname}${release}.a $libname.a'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13075 shlibpath_var=LIBPATH
13079 amigaos*)
13080 library_names_spec='$libname.ixlibrary $libname.a'
13081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13082 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'
13085 beos*)
13086 library_names_spec='${libname}${shared_ext}'
13087 dynamic_linker="$host_os ld.so"
13088 shlibpath_var=LIBRARY_PATH
13091 bsdi[45]*)
13092 version_type=linux
13093 need_version=no
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095 soname_spec='${libname}${release}${shared_ext}$major'
13096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13100 # the default ld.so.conf also contains /usr/contrib/lib and
13101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13102 # libtool to hard-code these into programs
13105 cygwin* | mingw* | pw32*)
13106 version_type=windows
13107 shrext_cmds=".dll"
13108 need_version=no
13109 need_lib_prefix=no
13111 case $GCC,$host_os in
13112 yes,cygwin* | yes,mingw* | yes,pw32*)
13113 library_names_spec='$libname.dll.a'
13114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13115 postinstall_cmds='base_file=`basename \${file}`~
13116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13117 dldir=$destdir/`dirname \$dlpath`~
13118 test -d \$dldir || mkdir -p \$dldir~
13119 $install_prog $dir/$dlname \$dldir/$dlname~
13120 chmod a+x \$dldir/$dlname'
13121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13122 dlpath=$dir/\$dldll~
13123 $rm \$dlpath'
13124 shlibpath_overrides_runpath=yes
13126 case $host_os in
13127 cygwin*)
13128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13132 mingw*)
13133 # MinGW DLLs use traditional 'lib' prefix
13134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13137 # It is most probably a Windows format PATH printed by
13138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13139 # path with ; separators, and with drive letters. We can handle the
13140 # drive letters (cygwin fileutils understands them), so leave them,
13141 # especially as we might pass files found there to a mingw objdump,
13142 # which wouldn't understand a cygwinified path. Ahh.
13143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13144 else
13145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13148 pw32*)
13149 # pw32 DLLs use 'pw' prefix rather than 'lib'
13150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13152 esac
13156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13158 esac
13159 dynamic_linker='Win32 ld.exe'
13160 # FIXME: first we should search . and the directory the executable is in
13161 shlibpath_var=PATH
13164 darwin* | rhapsody*)
13165 dynamic_linker="$host_os dyld"
13166 version_type=darwin
13167 need_lib_prefix=no
13168 need_version=no
13169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13170 soname_spec='${libname}${release}${major}$shared_ext'
13171 shlibpath_overrides_runpath=yes
13172 shlibpath_var=DYLD_LIBRARY_PATH
13173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13178 dgux*)
13179 version_type=linux
13180 need_lib_prefix=no
13181 need_version=no
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 shlibpath_var=LD_LIBRARY_PATH
13187 freebsd1*)
13188 dynamic_linker=no
13191 freebsd* | dragonfly*)
13192 # DragonFly does not have aout. When/if they implement a new
13193 # versioning mechanism, adjust this.
13194 if test -x /usr/bin/objformat; then
13195 objformat=`/usr/bin/objformat`
13196 else
13197 case $host_os in
13198 freebsd[123]*) objformat=aout ;;
13199 *) objformat=elf ;;
13200 esac
13202 version_type=freebsd-$objformat
13203 case $version_type in
13204 freebsd-elf*)
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13206 need_version=no
13207 need_lib_prefix=no
13209 freebsd-*)
13210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13211 need_version=yes
13213 esac
13214 shlibpath_var=LD_LIBRARY_PATH
13215 case $host_os in
13216 freebsd2*)
13217 shlibpath_overrides_runpath=yes
13219 freebsd3.[01]* | freebsdelf3.[01]*)
13220 shlibpath_overrides_runpath=yes
13221 hardcode_into_libs=yes
13223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13225 shlibpath_overrides_runpath=no
13226 hardcode_into_libs=yes
13228 *) # from 4.6 on, and DragonFly
13229 shlibpath_overrides_runpath=yes
13230 hardcode_into_libs=yes
13232 esac
13235 gnu*)
13236 version_type=linux
13237 need_lib_prefix=no
13238 need_version=no
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13240 soname_spec='${libname}${release}${shared_ext}$major'
13241 shlibpath_var=LD_LIBRARY_PATH
13242 hardcode_into_libs=yes
13245 hpux9* | hpux10* | hpux11*)
13246 # Give a soname corresponding to the major version so that dld.sl refuses to
13247 # link against other versions.
13248 version_type=sunos
13249 need_lib_prefix=no
13250 need_version=no
13251 case $host_cpu in
13252 ia64*)
13253 shrext_cmds='.so'
13254 hardcode_into_libs=yes
13255 dynamic_linker="$host_os dld.so"
13256 shlibpath_var=LD_LIBRARY_PATH
13257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13259 soname_spec='${libname}${release}${shared_ext}$major'
13260 if test "X$HPUX_IA64_MODE" = X32; then
13261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13262 else
13263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13267 hppa*64*)
13268 shrext_cmds='.sl'
13269 hardcode_into_libs=yes
13270 dynamic_linker="$host_os dld.sl"
13271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274 soname_spec='${libname}${release}${shared_ext}$major'
13275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13279 shrext_cmds='.sl'
13280 dynamic_linker="$host_os dld.sl"
13281 shlibpath_var=SHLIB_PATH
13282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284 soname_spec='${libname}${release}${shared_ext}$major'
13286 esac
13287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13288 postinstall_cmds='chmod 555 $lib'
13291 interix[3-9]*)
13292 version_type=linux
13293 need_lib_prefix=no
13294 need_version=no
13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13296 soname_spec='${libname}${release}${shared_ext}$major'
13297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13298 shlibpath_var=LD_LIBRARY_PATH
13299 shlibpath_overrides_runpath=no
13300 hardcode_into_libs=yes
13303 irix5* | irix6* | nonstopux*)
13304 case $host_os in
13305 nonstopux*) version_type=nonstopux ;;
13307 if test "$lt_cv_prog_gnu_ld" = yes; then
13308 version_type=linux
13309 else
13310 version_type=irix
13311 fi ;;
13312 esac
13313 need_lib_prefix=no
13314 need_version=no
13315 soname_spec='${libname}${release}${shared_ext}$major'
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13317 case $host_os in
13318 irix5* | nonstopux*)
13319 libsuff= shlibsuff=
13322 case $LD in # libtool.m4 will add one of these switches to LD
13323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13324 libsuff= shlibsuff= libmagic=32-bit;;
13325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13326 libsuff=32 shlibsuff=N32 libmagic=N32;;
13327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13329 *) libsuff= shlibsuff= libmagic=never-match;;
13330 esac
13332 esac
13333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13334 shlibpath_overrides_runpath=no
13335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13337 hardcode_into_libs=yes
13340 # No shared lib support for Linux oldld, aout, or coff.
13341 linux*oldld* | linux*aout* | linux*coff*)
13342 dynamic_linker=no
13345 # This must be Linux ELF.
13346 linux* | k*bsd*-gnu)
13347 version_type=linux
13348 need_lib_prefix=no
13349 need_version=no
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=no
13355 # This implies no fast_install, which is unacceptable.
13356 # Some rework will be needed to allow for fast_install
13357 # before this can be enabled.
13358 hardcode_into_libs=yes
13360 # Append ld.so.conf contents to the search path
13361 if test -f /etc/ld.so.conf; then
13362 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' ' '`
13363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13366 # We used to test for /lib/ld.so.1 and disable shared libraries on
13367 # powerpc, because MkLinux only supported shared libraries with the
13368 # GNU dynamic linker. Since this was broken with cross compilers,
13369 # most powerpc-linux boxes support dynamic linking these days and
13370 # people can always --disable-shared, the test was removed, and we
13371 # assume the GNU/Linux dynamic linker is in use.
13372 dynamic_linker='GNU/Linux ld.so'
13375 netbsdelf*-gnu)
13376 version_type=linux
13377 need_lib_prefix=no
13378 need_version=no
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 shlibpath_overrides_runpath=no
13383 hardcode_into_libs=yes
13384 dynamic_linker='NetBSD ld.elf_so'
13387 netbsd*)
13388 version_type=sunos
13389 need_lib_prefix=no
13390 need_version=no
13391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13394 dynamic_linker='NetBSD (a.out) ld.so'
13395 else
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13397 soname_spec='${libname}${release}${shared_ext}$major'
13398 dynamic_linker='NetBSD ld.elf_so'
13400 shlibpath_var=LD_LIBRARY_PATH
13401 shlibpath_overrides_runpath=yes
13402 hardcode_into_libs=yes
13405 newsos6)
13406 version_type=linux
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=yes
13412 nto-qnx*)
13413 version_type=linux
13414 need_lib_prefix=no
13415 need_version=no
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13417 soname_spec='${libname}${release}${shared_ext}$major'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 shlibpath_overrides_runpath=yes
13422 openbsd*)
13423 version_type=sunos
13424 sys_lib_dlsearch_path_spec="/usr/lib"
13425 need_lib_prefix=no
13426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13427 case $host_os in
13428 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13429 *) need_version=no ;;
13430 esac
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13435 case $host_os in
13436 openbsd2.[89] | openbsd2.[89].*)
13437 shlibpath_overrides_runpath=no
13440 shlibpath_overrides_runpath=yes
13442 esac
13443 else
13444 shlibpath_overrides_runpath=yes
13448 os2*)
13449 libname_spec='$name'
13450 shrext_cmds=".dll"
13451 need_lib_prefix=no
13452 library_names_spec='$libname${shared_ext} $libname.a'
13453 dynamic_linker='OS/2 ld.exe'
13454 shlibpath_var=LIBPATH
13457 osf3* | osf4* | osf5*)
13458 version_type=osf
13459 need_lib_prefix=no
13460 need_version=no
13461 soname_spec='${libname}${release}${shared_ext}$major'
13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13468 rdos*)
13469 dynamic_linker=no
13472 solaris*)
13473 version_type=linux
13474 need_lib_prefix=no
13475 need_version=no
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 shlibpath_var=LD_LIBRARY_PATH
13479 shlibpath_overrides_runpath=yes
13480 hardcode_into_libs=yes
13481 # ldd complains unless libraries are executable
13482 postinstall_cmds='chmod +x $lib'
13485 sunos4*)
13486 version_type=sunos
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 shlibpath_overrides_runpath=yes
13491 if test "$with_gnu_ld" = yes; then
13492 need_lib_prefix=no
13494 need_version=yes
13497 sysv4 | sysv4.3*)
13498 version_type=linux
13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500 soname_spec='${libname}${release}${shared_ext}$major'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 case $host_vendor in
13503 sni)
13504 shlibpath_overrides_runpath=no
13505 need_lib_prefix=no
13506 export_dynamic_flag_spec='${wl}-Blargedynsym'
13507 runpath_var=LD_RUN_PATH
13509 siemens)
13510 need_lib_prefix=no
13512 motorola)
13513 need_lib_prefix=no
13514 need_version=no
13515 shlibpath_overrides_runpath=no
13516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13518 esac
13521 sysv4*MP*)
13522 if test -d /usr/nec ;then
13523 version_type=linux
13524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13525 soname_spec='$libname${shared_ext}.$major'
13526 shlibpath_var=LD_LIBRARY_PATH
13530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13531 version_type=freebsd-elf
13532 need_lib_prefix=no
13533 need_version=no
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13535 soname_spec='${libname}${release}${shared_ext}$major'
13536 shlibpath_var=LD_LIBRARY_PATH
13537 hardcode_into_libs=yes
13538 if test "$with_gnu_ld" = yes; then
13539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13540 shlibpath_overrides_runpath=no
13541 else
13542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13543 shlibpath_overrides_runpath=yes
13544 case $host_os in
13545 sco3.2v5*)
13546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13548 esac
13550 sys_lib_dlsearch_path_spec='/usr/lib'
13553 uts4*)
13554 version_type=linux
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13556 soname_spec='${libname}${release}${shared_ext}$major'
13557 shlibpath_var=LD_LIBRARY_PATH
13561 dynamic_linker=no
13563 esac
13564 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13565 echo "${ECHO_T}$dynamic_linker" >&6; }
13566 test "$dynamic_linker" = no && can_build_shared=no
13568 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13574 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13575 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13581 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13584 if test "$GCC" = yes; then
13585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13588 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13590 hardcode_action_CXX=
13591 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13592 test -n "$runpath_var_CXX" || \
13593 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13595 # We can hardcode non-existant directories.
13596 if test "$hardcode_direct_CXX" != no &&
13597 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13598 # have to relink, otherwise we might link with an installed library
13599 # when we should be linking with a yet-to-be-installed one
13600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13601 test "$hardcode_minus_L_CXX" != no; then
13602 # Linking always hardcodes the temporary library directory.
13603 hardcode_action_CXX=relink
13604 else
13605 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13606 hardcode_action_CXX=immediate
13608 else
13609 # We cannot hardcode anything, or else we can only hardcode existing
13610 # directories.
13611 hardcode_action_CXX=unsupported
13613 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13614 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13616 if test "$hardcode_action_CXX" = relink; then
13617 # Fast installation is not supported
13618 enable_fast_install=no
13619 elif test "$shlibpath_overrides_runpath" = yes ||
13620 test "$enable_shared" = no; then
13621 # Fast installation is not necessary
13622 enable_fast_install=needless
13626 # The else clause should only fire when bootstrapping the
13627 # libtool distribution, otherwise you forgot to ship ltmain.sh
13628 # with your package, and you will get complaints that there are
13629 # no rules to generate ltmain.sh.
13630 if test -f "$ltmain"; then
13631 # See if we are running on zsh, and set the options which allow our commands through
13632 # without removal of \ escapes.
13633 if test -n "${ZSH_VERSION+set}" ; then
13634 setopt NO_GLOB_SUBST
13636 # Now quote all the things that may contain metacharacters while being
13637 # careful not to overquote the AC_SUBSTed values. We take copies of the
13638 # variables and quote the copies for generation of the libtool script.
13639 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13640 SED SHELL STRIP \
13641 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13642 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13643 deplibs_check_method reload_flag reload_cmds need_locks \
13644 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13645 lt_cv_sys_global_symbol_to_c_name_address \
13646 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13647 old_postinstall_cmds old_postuninstall_cmds \
13648 compiler_CXX \
13649 CC_CXX \
13650 LD_CXX \
13651 lt_prog_compiler_wl_CXX \
13652 lt_prog_compiler_pic_CXX \
13653 lt_prog_compiler_static_CXX \
13654 lt_prog_compiler_no_builtin_flag_CXX \
13655 export_dynamic_flag_spec_CXX \
13656 thread_safe_flag_spec_CXX \
13657 whole_archive_flag_spec_CXX \
13658 enable_shared_with_static_runtimes_CXX \
13659 old_archive_cmds_CXX \
13660 old_archive_from_new_cmds_CXX \
13661 predep_objects_CXX \
13662 postdep_objects_CXX \
13663 predeps_CXX \
13664 postdeps_CXX \
13665 compiler_lib_search_path_CXX \
13666 compiler_lib_search_dirs_CXX \
13667 archive_cmds_CXX \
13668 archive_expsym_cmds_CXX \
13669 postinstall_cmds_CXX \
13670 postuninstall_cmds_CXX \
13671 old_archive_from_expsyms_cmds_CXX \
13672 allow_undefined_flag_CXX \
13673 no_undefined_flag_CXX \
13674 export_symbols_cmds_CXX \
13675 hardcode_libdir_flag_spec_CXX \
13676 hardcode_libdir_flag_spec_ld_CXX \
13677 hardcode_libdir_separator_CXX \
13678 hardcode_automatic_CXX \
13679 module_cmds_CXX \
13680 module_expsym_cmds_CXX \
13681 lt_cv_prog_compiler_c_o_CXX \
13682 fix_srcfile_path_CXX \
13683 exclude_expsyms_CXX \
13684 include_expsyms_CXX; do
13686 case $var in
13687 old_archive_cmds_CXX | \
13688 old_archive_from_new_cmds_CXX | \
13689 archive_cmds_CXX | \
13690 archive_expsym_cmds_CXX | \
13691 module_cmds_CXX | \
13692 module_expsym_cmds_CXX | \
13693 old_archive_from_expsyms_cmds_CXX | \
13694 export_symbols_cmds_CXX | \
13695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13696 postinstall_cmds | postuninstall_cmds | \
13697 old_postinstall_cmds | old_postuninstall_cmds | \
13698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13699 # Double-quote double-evaled strings.
13700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13705 esac
13706 done
13708 case $lt_echo in
13709 *'\$0 --fallback-echo"')
13710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13712 esac
13714 cfgfile="$ofile"
13716 cat <<__EOF__ >> "$cfgfile"
13717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13721 # Shell to use when invoking shell scripts.
13722 SHELL=$lt_SHELL
13724 # Whether or not to build shared libraries.
13725 build_libtool_libs=$enable_shared
13727 # Whether or not to build static libraries.
13728 build_old_libs=$enable_static
13730 # Whether or not to add -lc for building shared libraries.
13731 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13733 # Whether or not to disallow shared libs when runtime libs are static
13734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13736 # Whether or not to optimize for fast installation.
13737 fast_install=$enable_fast_install
13739 # The host system.
13740 host_alias=$host_alias
13741 host=$host
13742 host_os=$host_os
13744 # The build system.
13745 build_alias=$build_alias
13746 build=$build
13747 build_os=$build_os
13749 # An echo program that does not interpret backslashes.
13750 echo=$lt_echo
13752 # The archiver.
13753 AR=$lt_AR
13754 AR_FLAGS=$lt_AR_FLAGS
13756 # A C compiler.
13757 LTCC=$lt_LTCC
13759 # LTCC compiler flags.
13760 LTCFLAGS=$lt_LTCFLAGS
13762 # A language-specific compiler.
13763 CC=$lt_compiler_CXX
13765 # Is the compiler the GNU C compiler?
13766 with_gcc=$GCC_CXX
13768 # An ERE matcher.
13769 EGREP=$lt_EGREP
13771 # The linker used to build libraries.
13772 LD=$lt_LD_CXX
13774 # Whether we need hard or soft links.
13775 LN_S=$lt_LN_S
13777 # A BSD-compatible nm program.
13778 NM=$lt_NM
13780 # A symbol stripping program
13781 STRIP=$lt_STRIP
13783 # Used to examine libraries when file_magic_cmd begins "file"
13784 MAGIC_CMD=$MAGIC_CMD
13786 # Used on cygwin: DLL creation program.
13787 DLLTOOL="$DLLTOOL"
13789 # Used on cygwin: object dumper.
13790 OBJDUMP="$OBJDUMP"
13792 # Used on cygwin: assembler.
13793 AS="$AS"
13795 # The name of the directory that contains temporary libtool files.
13796 objdir=$objdir
13798 # How to create reloadable object files.
13799 reload_flag=$lt_reload_flag
13800 reload_cmds=$lt_reload_cmds
13802 # How to pass a linker flag through the compiler.
13803 wl=$lt_lt_prog_compiler_wl_CXX
13805 # Object file suffix (normally "o").
13806 objext="$ac_objext"
13808 # Old archive suffix (normally "a").
13809 libext="$libext"
13811 # Shared library suffix (normally ".so").
13812 shrext_cmds='$shrext_cmds'
13814 # Executable file suffix (normally "").
13815 exeext="$exeext"
13817 # Additional compiler flags for building library objects.
13818 pic_flag=$lt_lt_prog_compiler_pic_CXX
13819 pic_mode=$pic_mode
13821 # What is the maximum length of a command?
13822 max_cmd_len=$lt_cv_sys_max_cmd_len
13824 # Does compiler simultaneously support -c and -o options?
13825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13827 # Must we lock files when doing compilation?
13828 need_locks=$lt_need_locks
13830 # Do we need the lib prefix for modules?
13831 need_lib_prefix=$need_lib_prefix
13833 # Do we need a version for libraries?
13834 need_version=$need_version
13836 # Whether dlopen is supported.
13837 dlopen_support=$enable_dlopen
13839 # Whether dlopen of programs is supported.
13840 dlopen_self=$enable_dlopen_self
13842 # Whether dlopen of statically linked programs is supported.
13843 dlopen_self_static=$enable_dlopen_self_static
13845 # Compiler flag to prevent dynamic linking.
13846 link_static_flag=$lt_lt_prog_compiler_static_CXX
13848 # Compiler flag to turn off builtin functions.
13849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13851 # Compiler flag to allow reflexive dlopens.
13852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13854 # Compiler flag to generate shared objects directly from archives.
13855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13857 # Compiler flag to generate thread-safe objects.
13858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13860 # Library versioning type.
13861 version_type=$version_type
13863 # Format of library name prefix.
13864 libname_spec=$lt_libname_spec
13866 # List of archive names. First name is the real one, the rest are links.
13867 # The last name is the one that the linker finds with -lNAME.
13868 library_names_spec=$lt_library_names_spec
13870 # The coded name of the library, if different from the real name.
13871 soname_spec=$lt_soname_spec
13873 # Commands used to build and install an old-style archive.
13874 RANLIB=$lt_RANLIB
13875 old_archive_cmds=$lt_old_archive_cmds_CXX
13876 old_postinstall_cmds=$lt_old_postinstall_cmds
13877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13879 # Create an old-style archive from a shared archive.
13880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13882 # Create a temporary old-style archive to link instead of a shared archive.
13883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13885 # Commands used to build and install a shared archive.
13886 archive_cmds=$lt_archive_cmds_CXX
13887 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13888 postinstall_cmds=$lt_postinstall_cmds
13889 postuninstall_cmds=$lt_postuninstall_cmds
13891 # Commands used to build a loadable module (assumed same as above if empty)
13892 module_cmds=$lt_module_cmds_CXX
13893 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13895 # Commands to strip libraries.
13896 old_striplib=$lt_old_striplib
13897 striplib=$lt_striplib
13899 # Dependencies to place before the objects being linked to create a
13900 # shared library.
13901 predep_objects=$lt_predep_objects_CXX
13903 # Dependencies to place after the objects being linked to create a
13904 # shared library.
13905 postdep_objects=$lt_postdep_objects_CXX
13907 # Dependencies to place before the objects being linked to create a
13908 # shared library.
13909 predeps=$lt_predeps_CXX
13911 # Dependencies to place after the objects being linked to create a
13912 # shared library.
13913 postdeps=$lt_postdeps_CXX
13915 # The directories searched by this compiler when creating a shared
13916 # library
13917 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13919 # The library search path used internally by the compiler when linking
13920 # a shared library.
13921 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13923 # Method to check whether dependent libraries are shared objects.
13924 deplibs_check_method=$lt_deplibs_check_method
13926 # Command to use when deplibs_check_method == file_magic.
13927 file_magic_cmd=$lt_file_magic_cmd
13929 # Flag that allows shared libraries with undefined symbols to be built.
13930 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13932 # Flag that forces no undefined symbols.
13933 no_undefined_flag=$lt_no_undefined_flag_CXX
13935 # Commands used to finish a libtool library installation in a directory.
13936 finish_cmds=$lt_finish_cmds
13938 # Same as above, but a single script fragment to be evaled but not shown.
13939 finish_eval=$lt_finish_eval
13941 # Take the output of nm and produce a listing of raw symbols and C names.
13942 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13944 # Transform the output of nm in a proper C declaration
13945 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13947 # Transform the output of nm in a C name address pair
13948 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13950 # This is the shared library runtime path variable.
13951 runpath_var=$runpath_var
13953 # This is the shared library path variable.
13954 shlibpath_var=$shlibpath_var
13956 # Is shlibpath searched before the hard-coded library search path?
13957 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13959 # How to hardcode a shared library path into an executable.
13960 hardcode_action=$hardcode_action_CXX
13962 # Whether we should hardcode library paths into libraries.
13963 hardcode_into_libs=$hardcode_into_libs
13965 # Flag to hardcode \$libdir into a binary during linking.
13966 # This must work even if \$libdir does not exist.
13967 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13969 # If ld is used when linking, flag to hardcode \$libdir into
13970 # a binary during linking. This must work even if \$libdir does
13971 # not exist.
13972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13974 # Whether we need a single -rpath flag with a separated argument.
13975 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13977 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13978 # resulting binary.
13979 hardcode_direct=$hardcode_direct_CXX
13981 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13982 # resulting binary.
13983 hardcode_minus_L=$hardcode_minus_L_CXX
13985 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13986 # the resulting binary.
13987 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13989 # Set to yes if building a shared library automatically hardcodes DIR into the library
13990 # and all subsequent libraries and executables linked against it.
13991 hardcode_automatic=$hardcode_automatic_CXX
13993 # Variables whose values should be saved in libtool wrapper scripts and
13994 # restored at relink time.
13995 variables_saved_for_relink="$variables_saved_for_relink"
13997 # Whether libtool must link a program against all its dependency libraries.
13998 link_all_deplibs=$link_all_deplibs_CXX
14000 # Compile-time system search path for libraries
14001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14003 # Run-time system search path for libraries
14004 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14006 # Fix the shell variable \$srcfile for the compiler.
14007 fix_srcfile_path=$lt_fix_srcfile_path
14009 # Set to yes if exported symbols are required.
14010 always_export_symbols=$always_export_symbols_CXX
14012 # The commands to list exported symbols.
14013 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14015 # The commands to extract the exported symbol list from a shared archive.
14016 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14018 # Symbols that should not be listed in the preloaded symbols.
14019 exclude_expsyms=$lt_exclude_expsyms_CXX
14021 # Symbols that must always be exported.
14022 include_expsyms=$lt_include_expsyms_CXX
14024 # ### END LIBTOOL TAG CONFIG: $tagname
14026 __EOF__
14029 else
14030 # If there is no Makefile yet, we rely on a make rule to execute
14031 # `config.status --recheck' to rerun these tests and create the
14032 # libtool script then.
14033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14034 if test -f "$ltmain_in"; then
14035 test -f Makefile && make "$ltmain"
14040 ac_ext=c
14041 ac_cpp='$CPP $CPPFLAGS'
14042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14046 CC=$lt_save_CC
14047 LDCXX=$LD
14048 LD=$lt_save_LD
14049 GCC=$lt_save_GCC
14050 with_gnu_ldcxx=$with_gnu_ld
14051 with_gnu_ld=$lt_save_with_gnu_ld
14052 lt_cv_path_LDCXX=$lt_cv_path_LD
14053 lt_cv_path_LD=$lt_save_path_LD
14054 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14055 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14057 else
14058 tagname=""
14062 F77)
14063 if test -n "$F77" && test "X$F77" != "Xno"; then
14065 ac_ext=f
14066 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14067 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14071 archive_cmds_need_lc_F77=no
14072 allow_undefined_flag_F77=
14073 always_export_symbols_F77=no
14074 archive_expsym_cmds_F77=
14075 export_dynamic_flag_spec_F77=
14076 hardcode_direct_F77=no
14077 hardcode_libdir_flag_spec_F77=
14078 hardcode_libdir_flag_spec_ld_F77=
14079 hardcode_libdir_separator_F77=
14080 hardcode_minus_L_F77=no
14081 hardcode_automatic_F77=no
14082 module_cmds_F77=
14083 module_expsym_cmds_F77=
14084 link_all_deplibs_F77=unknown
14085 old_archive_cmds_F77=$old_archive_cmds
14086 no_undefined_flag_F77=
14087 whole_archive_flag_spec_F77=
14088 enable_shared_with_static_runtimes_F77=no
14090 # Source file extension for f77 test sources.
14091 ac_ext=f
14093 # Object file extension for compiled f77 test sources.
14094 objext=o
14095 objext_F77=$objext
14097 # Code to be used in simple compile tests
14098 lt_simple_compile_test_code="\
14099 subroutine t
14100 return
14104 # Code to be used in simple link tests
14105 lt_simple_link_test_code="\
14106 program t
14110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14112 # If no C compiler was specified, use CC.
14113 LTCC=${LTCC-"$CC"}
14115 # If no C compiler flags were specified, use CFLAGS.
14116 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14118 # Allow CC to be a program name with arguments.
14119 compiler=$CC
14122 # save warnings/boilerplate of simple test code
14123 ac_outfile=conftest.$ac_objext
14124 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14125 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14126 _lt_compiler_boilerplate=`cat conftest.err`
14127 $rm conftest*
14129 ac_outfile=conftest.$ac_objext
14130 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14131 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14132 _lt_linker_boilerplate=`cat conftest.err`
14133 $rm -r conftest*
14136 # Allow CC to be a program name with arguments.
14137 lt_save_CC="$CC"
14138 CC=${F77-"f77"}
14139 compiler=$CC
14140 compiler_F77=$CC
14141 for cc_temp in $compiler""; do
14142 case $cc_temp in
14143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14145 \-*) ;;
14146 *) break;;
14147 esac
14148 done
14149 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14152 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14153 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14154 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14155 echo "${ECHO_T}$can_build_shared" >&6; }
14157 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14158 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14159 test "$can_build_shared" = "no" && enable_shared=no
14161 # On AIX, shared libraries and static libraries use the same namespace, and
14162 # are all built from PIC.
14163 case $host_os in
14164 aix3*)
14165 test "$enable_shared" = yes && enable_static=no
14166 if test -n "$RANLIB"; then
14167 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14168 postinstall_cmds='$RANLIB $lib'
14171 aix[4-9]*)
14172 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14173 test "$enable_shared" = yes && enable_static=no
14176 esac
14177 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14178 echo "${ECHO_T}$enable_shared" >&6; }
14180 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14181 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14182 # Make sure either enable_shared or enable_static is yes.
14183 test "$enable_shared" = yes || enable_static=yes
14184 { echo "$as_me:$LINENO: result: $enable_static" >&5
14185 echo "${ECHO_T}$enable_static" >&6; }
14187 GCC_F77="$G77"
14188 LD_F77="$LD"
14190 lt_prog_compiler_wl_F77=
14191 lt_prog_compiler_pic_F77=
14192 lt_prog_compiler_static_F77=
14194 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14195 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14197 if test "$GCC" = yes; then
14198 lt_prog_compiler_wl_F77='-Wl,'
14199 lt_prog_compiler_static_F77='-static'
14201 case $host_os in
14202 aix*)
14203 # All AIX code is PIC.
14204 if test "$host_cpu" = ia64; then
14205 # AIX 5 now supports IA64 processor
14206 lt_prog_compiler_static_F77='-Bstatic'
14210 amigaos*)
14211 # FIXME: we need at least 68020 code to build shared libraries, but
14212 # adding the `-m68020' flag to GCC prevents building anything better,
14213 # like `-m68040'.
14214 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14217 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14218 # PIC is the default for these OSes.
14221 mingw* | cygwin* | pw32* | os2*)
14222 # This hack is so that the source file can tell whether it is being
14223 # built for inclusion in a dll (and should export symbols for example).
14224 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14225 # (--disable-auto-import) libraries
14226 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14229 darwin* | rhapsody*)
14230 # PIC is the default on this platform
14231 # Common symbols not allowed in MH_DYLIB files
14232 lt_prog_compiler_pic_F77='-fno-common'
14235 interix[3-9]*)
14236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14237 # Instead, we relocate shared libraries at runtime.
14240 msdosdjgpp*)
14241 # Just because we use GCC doesn't mean we suddenly get shared libraries
14242 # on systems that don't support them.
14243 lt_prog_compiler_can_build_shared_F77=no
14244 enable_shared=no
14247 sysv4*MP*)
14248 if test -d /usr/nec; then
14249 lt_prog_compiler_pic_F77=-Kconform_pic
14253 hpux*)
14254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14255 # not for PA HP-UX.
14256 case $host_cpu in
14257 hppa*64*|ia64*)
14258 # +Z the default
14261 lt_prog_compiler_pic_F77='-fPIC'
14263 esac
14267 lt_prog_compiler_pic_F77='-fPIC'
14269 esac
14270 else
14271 # PORTME Check for flag to pass linker flags through the system compiler.
14272 case $host_os in
14273 aix*)
14274 lt_prog_compiler_wl_F77='-Wl,'
14275 if test "$host_cpu" = ia64; then
14276 # AIX 5 now supports IA64 processor
14277 lt_prog_compiler_static_F77='-Bstatic'
14278 else
14279 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14282 darwin*)
14283 # PIC is the default on this platform
14284 # Common symbols not allowed in MH_DYLIB files
14285 case $cc_basename in
14286 xlc*)
14287 lt_prog_compiler_pic_F77='-qnocommon'
14288 lt_prog_compiler_wl_F77='-Wl,'
14290 esac
14293 mingw* | cygwin* | pw32* | os2*)
14294 # This hack is so that the source file can tell whether it is being
14295 # built for inclusion in a dll (and should export symbols for example).
14296 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14299 hpux9* | hpux10* | hpux11*)
14300 lt_prog_compiler_wl_F77='-Wl,'
14301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302 # not for PA HP-UX.
14303 case $host_cpu in
14304 hppa*64*|ia64*)
14305 # +Z the default
14308 lt_prog_compiler_pic_F77='+Z'
14310 esac
14311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14312 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14315 irix5* | irix6* | nonstopux*)
14316 lt_prog_compiler_wl_F77='-Wl,'
14317 # PIC (with -KPIC) is the default.
14318 lt_prog_compiler_static_F77='-non_shared'
14321 newsos6)
14322 lt_prog_compiler_pic_F77='-KPIC'
14323 lt_prog_compiler_static_F77='-Bstatic'
14326 linux* | k*bsd*-gnu)
14327 case $cc_basename in
14328 icc* | ecc*)
14329 lt_prog_compiler_wl_F77='-Wl,'
14330 lt_prog_compiler_pic_F77='-KPIC'
14331 lt_prog_compiler_static_F77='-static'
14333 pgcc* | pgf77* | pgf90* | pgf95*)
14334 # Portland Group compilers (*not* the Pentium gcc compiler,
14335 # which looks to be a dead project)
14336 lt_prog_compiler_wl_F77='-Wl,'
14337 lt_prog_compiler_pic_F77='-fpic'
14338 lt_prog_compiler_static_F77='-Bstatic'
14340 ccc*)
14341 lt_prog_compiler_wl_F77='-Wl,'
14342 # All Alpha code is PIC.
14343 lt_prog_compiler_static_F77='-non_shared'
14346 case `$CC -V 2>&1 | sed 5q` in
14347 *Sun\ C*)
14348 # Sun C 5.9
14349 lt_prog_compiler_pic_F77='-KPIC'
14350 lt_prog_compiler_static_F77='-Bstatic'
14351 lt_prog_compiler_wl_F77='-Wl,'
14353 *Sun\ F*)
14354 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14355 lt_prog_compiler_pic_F77='-KPIC'
14356 lt_prog_compiler_static_F77='-Bstatic'
14357 lt_prog_compiler_wl_F77=''
14359 esac
14361 esac
14364 osf3* | osf4* | osf5*)
14365 lt_prog_compiler_wl_F77='-Wl,'
14366 # All OSF/1 code is PIC.
14367 lt_prog_compiler_static_F77='-non_shared'
14370 rdos*)
14371 lt_prog_compiler_static_F77='-non_shared'
14374 solaris*)
14375 lt_prog_compiler_pic_F77='-KPIC'
14376 lt_prog_compiler_static_F77='-Bstatic'
14377 case $cc_basename in
14378 f77* | f90* | f95*)
14379 lt_prog_compiler_wl_F77='-Qoption ld ';;
14381 lt_prog_compiler_wl_F77='-Wl,';;
14382 esac
14385 sunos4*)
14386 lt_prog_compiler_wl_F77='-Qoption ld '
14387 lt_prog_compiler_pic_F77='-PIC'
14388 lt_prog_compiler_static_F77='-Bstatic'
14391 sysv4 | sysv4.2uw2* | sysv4.3*)
14392 lt_prog_compiler_wl_F77='-Wl,'
14393 lt_prog_compiler_pic_F77='-KPIC'
14394 lt_prog_compiler_static_F77='-Bstatic'
14397 sysv4*MP*)
14398 if test -d /usr/nec ;then
14399 lt_prog_compiler_pic_F77='-Kconform_pic'
14400 lt_prog_compiler_static_F77='-Bstatic'
14404 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14405 lt_prog_compiler_wl_F77='-Wl,'
14406 lt_prog_compiler_pic_F77='-KPIC'
14407 lt_prog_compiler_static_F77='-Bstatic'
14410 unicos*)
14411 lt_prog_compiler_wl_F77='-Wl,'
14412 lt_prog_compiler_can_build_shared_F77=no
14415 uts4*)
14416 lt_prog_compiler_pic_F77='-pic'
14417 lt_prog_compiler_static_F77='-Bstatic'
14421 lt_prog_compiler_can_build_shared_F77=no
14423 esac
14426 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14427 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14430 # Check to make sure the PIC flag actually works.
14432 if test -n "$lt_prog_compiler_pic_F77"; then
14434 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14435 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14436 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 else
14439 lt_cv_prog_compiler_pic_works_F77=no
14440 ac_outfile=conftest.$ac_objext
14441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14442 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14443 # Insert the option either (1) after the last *FLAGS variable, or
14444 # (2) before a word containing "conftest.", or (3) at the end.
14445 # Note that $ac_compile itself does not contain backslashes and begins
14446 # with a dollar sign (not a hyphen), so the echo should work correctly.
14447 # The option is referenced via a variable to avoid confusing sed.
14448 lt_compile=`echo "$ac_compile" | $SED \
14449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14451 -e 's:$: $lt_compiler_flag:'`
14452 (eval echo "\"\$as_me:14452: $lt_compile\"" >&5)
14453 (eval "$lt_compile" 2>conftest.err)
14454 ac_status=$?
14455 cat conftest.err >&5
14456 echo "$as_me:14456: \$? = $ac_status" >&5
14457 if (exit $ac_status) && test -s "$ac_outfile"; then
14458 # The compiler can only warn and ignore the option if not recognized
14459 # So say no if there are warnings other than the usual output.
14460 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14463 lt_cv_prog_compiler_pic_works_F77=yes
14466 $rm conftest*
14469 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14470 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14472 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14473 case $lt_prog_compiler_pic_F77 in
14474 "" | " "*) ;;
14475 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14476 esac
14477 else
14478 lt_prog_compiler_pic_F77=
14479 lt_prog_compiler_can_build_shared_F77=no
14483 case $host_os in
14484 # For platforms which do not support PIC, -DPIC is meaningless:
14485 *djgpp*)
14486 lt_prog_compiler_pic_F77=
14489 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14491 esac
14494 # Check to make sure the static flag actually works.
14496 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14497 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14498 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14499 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 lt_cv_prog_compiler_static_works_F77=no
14503 save_LDFLAGS="$LDFLAGS"
14504 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14505 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14507 # The linker can only warn and ignore the option if not recognized
14508 # So say no if there are warnings
14509 if test -s conftest.err; then
14510 # Append any errors to the config.log.
14511 cat conftest.err 1>&5
14512 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14514 if diff conftest.exp conftest.er2 >/dev/null; then
14515 lt_cv_prog_compiler_static_works_F77=yes
14517 else
14518 lt_cv_prog_compiler_static_works_F77=yes
14521 $rm -r conftest*
14522 LDFLAGS="$save_LDFLAGS"
14525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14526 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14528 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14530 else
14531 lt_prog_compiler_static_F77=
14535 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14536 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14537 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540 lt_cv_prog_compiler_c_o_F77=no
14541 $rm -r conftest 2>/dev/null
14542 mkdir conftest
14543 cd conftest
14544 mkdir out
14545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14547 lt_compiler_flag="-o out/conftest2.$ac_objext"
14548 # Insert the option either (1) after the last *FLAGS variable, or
14549 # (2) before a word containing "conftest.", or (3) at the end.
14550 # Note that $ac_compile itself does not contain backslashes and begins
14551 # with a dollar sign (not a hyphen), so the echo should work correctly.
14552 lt_compile=`echo "$ac_compile" | $SED \
14553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14555 -e 's:$: $lt_compiler_flag:'`
14556 (eval echo "\"\$as_me:14556: $lt_compile\"" >&5)
14557 (eval "$lt_compile" 2>out/conftest.err)
14558 ac_status=$?
14559 cat out/conftest.err >&5
14560 echo "$as_me:14560: \$? = $ac_status" >&5
14561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14562 then
14563 # The compiler can only warn and ignore the option if not recognized
14564 # So say no if there are warnings
14565 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14568 lt_cv_prog_compiler_c_o_F77=yes
14571 chmod u+w . 2>&5
14572 $rm conftest*
14573 # SGI C++ compiler will create directory out/ii_files/ for
14574 # template instantiation
14575 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14576 $rm out/* && rmdir out
14577 cd ..
14578 rmdir conftest
14579 $rm conftest*
14582 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14583 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14586 hard_links="nottested"
14587 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14588 # do not overwrite the value of need_locks provided by the user
14589 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14590 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14591 hard_links=yes
14592 $rm conftest*
14593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14594 touch conftest.a
14595 ln conftest.a conftest.b 2>&5 || hard_links=no
14596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14597 { echo "$as_me:$LINENO: result: $hard_links" >&5
14598 echo "${ECHO_T}$hard_links" >&6; }
14599 if test "$hard_links" = no; then
14600 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14601 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14602 need_locks=warn
14604 else
14605 need_locks=no
14608 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14609 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14611 runpath_var=
14612 allow_undefined_flag_F77=
14613 enable_shared_with_static_runtimes_F77=no
14614 archive_cmds_F77=
14615 archive_expsym_cmds_F77=
14616 old_archive_From_new_cmds_F77=
14617 old_archive_from_expsyms_cmds_F77=
14618 export_dynamic_flag_spec_F77=
14619 whole_archive_flag_spec_F77=
14620 thread_safe_flag_spec_F77=
14621 hardcode_libdir_flag_spec_F77=
14622 hardcode_libdir_flag_spec_ld_F77=
14623 hardcode_libdir_separator_F77=
14624 hardcode_direct_F77=no
14625 hardcode_minus_L_F77=no
14626 hardcode_shlibpath_var_F77=unsupported
14627 link_all_deplibs_F77=unknown
14628 hardcode_automatic_F77=no
14629 module_cmds_F77=
14630 module_expsym_cmds_F77=
14631 always_export_symbols_F77=no
14632 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14633 # include_expsyms should be a list of space-separated symbols to be *always*
14634 # included in the symbol list
14635 include_expsyms_F77=
14636 # exclude_expsyms can be an extended regexp of symbols to exclude
14637 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14638 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14639 # as well as any symbol that contains `d'.
14640 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14641 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14642 # platforms (ab)use it in PIC code, but their linkers get confused if
14643 # the symbol is explicitly referenced. Since portable code cannot
14644 # rely on this symbol name, it's probably fine to never include it in
14645 # preloaded symbol tables.
14646 # Exclude shared library initialization/finalization symbols.
14647 extract_expsyms_cmds=
14648 # Just being paranoid about ensuring that cc_basename is set.
14649 for cc_temp in $compiler""; do
14650 case $cc_temp in
14651 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14652 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14653 \-*) ;;
14654 *) break;;
14655 esac
14656 done
14657 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14659 case $host_os in
14660 cygwin* | mingw* | pw32*)
14661 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14662 # When not using gcc, we currently assume that we are using
14663 # Microsoft Visual C++.
14664 if test "$GCC" != yes; then
14665 with_gnu_ld=no
14668 interix*)
14669 # we just hope/assume this is gcc and not c89 (= MSVC++)
14670 with_gnu_ld=yes
14672 openbsd*)
14673 with_gnu_ld=no
14675 esac
14677 ld_shlibs_F77=yes
14678 if test "$with_gnu_ld" = yes; then
14679 # If archive_cmds runs LD, not CC, wlarc should be empty
14680 wlarc='${wl}'
14682 # Set some defaults for GNU ld with shared library support. These
14683 # are reset later if shared libraries are not supported. Putting them
14684 # here allows them to be overridden if necessary.
14685 runpath_var=LD_RUN_PATH
14686 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14687 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14688 # ancient GNU ld didn't support --whole-archive et. al.
14689 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14690 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14691 else
14692 whole_archive_flag_spec_F77=
14694 supports_anon_versioning=no
14695 case `$LD -v 2>/dev/null` in
14696 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14697 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14698 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14699 *\ 2.11.*) ;; # other 2.11 versions
14700 *) supports_anon_versioning=yes ;;
14701 esac
14703 # See if GNU ld supports shared libraries.
14704 case $host_os in
14705 aix[3-9]*)
14706 # On AIX/PPC, the GNU linker is very broken
14707 if test "$host_cpu" != ia64; then
14708 ld_shlibs_F77=no
14709 cat <<EOF 1>&2
14711 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14712 *** to be unable to reliably create shared libraries on AIX.
14713 *** Therefore, libtool is disabling shared libraries support. If you
14714 *** really care for shared libraries, you may want to modify your PATH
14715 *** so that a non-GNU linker is found, and then restart.
14721 amigaos*)
14722 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)'
14723 hardcode_libdir_flag_spec_F77='-L$libdir'
14724 hardcode_minus_L_F77=yes
14726 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14727 # that the semantics of dynamic libraries on AmigaOS, at least up
14728 # to version 4, is to share data among multiple programs linked
14729 # with the same dynamic library. Since this doesn't match the
14730 # behavior of shared libraries on other platforms, we can't use
14731 # them.
14732 ld_shlibs_F77=no
14735 beos*)
14736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14737 allow_undefined_flag_F77=unsupported
14738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14739 # support --undefined. This deserves some investigation. FIXME
14740 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14741 else
14742 ld_shlibs_F77=no
14746 cygwin* | mingw* | pw32*)
14747 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14748 # as there is no search path for DLLs.
14749 hardcode_libdir_flag_spec_F77='-L$libdir'
14750 allow_undefined_flag_F77=unsupported
14751 always_export_symbols_F77=no
14752 enable_shared_with_static_runtimes_F77=yes
14753 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14755 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14756 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14757 # If the export-symbols file already is a .def file (1st line
14758 # is EXPORTS), use it as is; otherwise, prepend...
14759 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14760 cp $export_symbols $output_objdir/$soname.def;
14761 else
14762 echo EXPORTS > $output_objdir/$soname.def;
14763 cat $export_symbols >> $output_objdir/$soname.def;
14765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14766 else
14767 ld_shlibs_F77=no
14771 interix[3-9]*)
14772 hardcode_direct_F77=no
14773 hardcode_shlibpath_var_F77=no
14774 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14775 export_dynamic_flag_spec_F77='${wl}-E'
14776 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14777 # Instead, shared libraries are loaded at an image base (0x10000000 by
14778 # default) and relocated if they conflict, which is a slow very memory
14779 # consuming and fragmenting process. To avoid this, we pick a random,
14780 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14781 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14782 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'
14783 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'
14786 gnu* | linux* | k*bsd*-gnu)
14787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14788 tmp_addflag=
14789 case $cc_basename,$host_cpu in
14790 pgcc*) # Portland Group C compiler
14791 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'
14792 tmp_addflag=' $pic_flag'
14794 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14795 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'
14796 tmp_addflag=' $pic_flag -Mnomain' ;;
14797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14798 tmp_addflag=' -i_dynamic' ;;
14799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14800 tmp_addflag=' -i_dynamic -nofor_main' ;;
14801 ifc* | ifort*) # Intel Fortran compiler
14802 tmp_addflag=' -nofor_main' ;;
14803 esac
14804 case `$CC -V 2>&1 | sed 5q` in
14805 *Sun\ C*) # Sun C 5.9
14806 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'
14807 tmp_sharedflag='-G' ;;
14808 *Sun\ F*) # Sun Fortran 8.3
14809 tmp_sharedflag='-G' ;;
14811 tmp_sharedflag='-shared' ;;
14812 esac
14813 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815 if test $supports_anon_versioning = yes; then
14816 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14818 $echo "local: *; };" >> $output_objdir/$libname.ver~
14819 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14821 link_all_deplibs_F77=no
14822 else
14823 ld_shlibs_F77=no
14827 netbsd* | netbsdelf*-gnu)
14828 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14829 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14830 wlarc=
14831 else
14832 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14833 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14837 solaris*)
14838 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14839 ld_shlibs_F77=no
14840 cat <<EOF 1>&2
14842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14843 *** create shared libraries on Solaris systems. Therefore, libtool
14844 *** is disabling shared libraries support. We urge you to upgrade GNU
14845 *** binutils to release 2.9.1 or newer. Another option is to modify
14846 *** your PATH or compiler configuration so that the native linker is
14847 *** used, and then restart.
14850 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14851 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14852 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14853 else
14854 ld_shlibs_F77=no
14858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14859 case `$LD -v 2>&1` in
14860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14861 ld_shlibs_F77=no
14862 cat <<_LT_EOF 1>&2
14864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14865 *** reliably create shared libraries on SCO systems. Therefore, libtool
14866 *** is disabling shared libraries support. We urge you to upgrade GNU
14867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14868 *** your PATH or compiler configuration so that the native linker is
14869 *** used, and then restart.
14871 _LT_EOF
14874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14875 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14876 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14877 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14878 else
14879 ld_shlibs_F77=no
14882 esac
14885 sunos4*)
14886 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14887 wlarc=
14888 hardcode_direct_F77=yes
14889 hardcode_shlibpath_var_F77=no
14893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14894 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14895 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14896 else
14897 ld_shlibs_F77=no
14900 esac
14902 if test "$ld_shlibs_F77" = no; then
14903 runpath_var=
14904 hardcode_libdir_flag_spec_F77=
14905 export_dynamic_flag_spec_F77=
14906 whole_archive_flag_spec_F77=
14908 else
14909 # PORTME fill in a description of your system's linker (not GNU ld)
14910 case $host_os in
14911 aix3*)
14912 allow_undefined_flag_F77=unsupported
14913 always_export_symbols_F77=yes
14914 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'
14915 # Note: this linker hardcodes the directories in LIBPATH if there
14916 # are no directories specified by -L.
14917 hardcode_minus_L_F77=yes
14918 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14919 # Neither direct hardcoding nor static linking is supported with a
14920 # broken collect2.
14921 hardcode_direct_F77=unsupported
14925 aix[4-9]*)
14926 if test "$host_cpu" = ia64; then
14927 # On IA64, the linker does run time linking by default, so we don't
14928 # have to do anything special.
14929 aix_use_runtimelinking=no
14930 exp_sym_flag='-Bexport'
14931 no_entry_flag=""
14932 else
14933 # If we're using GNU nm, then we don't want the "-C" option.
14934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14935 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14936 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'
14937 else
14938 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'
14940 aix_use_runtimelinking=no
14942 # Test if we are trying to use run time linking or normal
14943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14944 # need to do runtime linking.
14945 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14946 for ld_flag in $LDFLAGS; do
14947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14948 aix_use_runtimelinking=yes
14949 break
14951 done
14953 esac
14955 exp_sym_flag='-bexport'
14956 no_entry_flag='-bnoentry'
14959 # When large executables or shared objects are built, AIX ld can
14960 # have problems creating the table of contents. If linking a library
14961 # or program results in "error TOC overflow" add -mminimal-toc to
14962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14965 archive_cmds_F77=''
14966 hardcode_direct_F77=yes
14967 hardcode_libdir_separator_F77=':'
14968 link_all_deplibs_F77=yes
14970 if test "$GCC" = yes; then
14971 case $host_os in aix4.[012]|aix4.[012].*)
14972 # We only want to do this on AIX 4.2 and lower, the check
14973 # below for broken collect2 doesn't work under 4.3+
14974 collect2name=`${CC} -print-prog-name=collect2`
14975 if test -f "$collect2name" && \
14976 strings "$collect2name" | grep resolve_lib_name >/dev/null
14977 then
14978 # We have reworked collect2
14980 else
14981 # We have old collect2
14982 hardcode_direct_F77=unsupported
14983 # It fails to find uninstalled libraries when the uninstalled
14984 # path is not listed in the libpath. Setting hardcode_minus_L
14985 # to unsupported forces relinking
14986 hardcode_minus_L_F77=yes
14987 hardcode_libdir_flag_spec_F77='-L$libdir'
14988 hardcode_libdir_separator_F77=
14991 esac
14992 shared_flag='-shared'
14993 if test "$aix_use_runtimelinking" = yes; then
14994 shared_flag="$shared_flag "'${wl}-G'
14996 else
14997 # not using gcc
14998 if test "$host_cpu" = ia64; then
14999 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15000 # chokes on -Wl,-G. The following line is correct:
15001 shared_flag='-G'
15002 else
15003 if test "$aix_use_runtimelinking" = yes; then
15004 shared_flag='${wl}-G'
15005 else
15006 shared_flag='${wl}-bM:SRE'
15011 # It seems that -bexpall does not export symbols beginning with
15012 # underscore (_), so it is better to generate a list of symbols to export.
15013 always_export_symbols_F77=yes
15014 if test "$aix_use_runtimelinking" = yes; then
15015 # Warning - without using the other runtime loading flags (-brtl),
15016 # -berok will link without error, but may produce a broken library.
15017 allow_undefined_flag_F77='-berok'
15018 # Determine the default libpath from the value encoded in an empty executable.
15019 cat >conftest.$ac_ext <<_ACEOF
15020 program main
15023 _ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (ac_try="$ac_link"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_link") 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_f77_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest$ac_exeext &&
15041 $as_test_x conftest$ac_exeext; then
15043 lt_aix_libpath_sed='
15044 /Import File Strings/,/^$/ {
15045 /^0/ {
15046 s/^0 *\(.*\)$/\1/
15050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15051 # Check for a 64-bit object if we didn't find anything.
15052 if test -z "$aix_libpath"; then
15053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15055 else
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15063 conftest$ac_exeext conftest.$ac_ext
15064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15066 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15067 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"
15068 else
15069 if test "$host_cpu" = ia64; then
15070 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15071 allow_undefined_flag_F77="-z nodefs"
15072 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"
15073 else
15074 # Determine the default libpath from the value encoded in an empty executable.
15075 cat >conftest.$ac_ext <<_ACEOF
15076 program main
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (ac_try="$ac_link"
15082 case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_link") 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } && {
15094 test -z "$ac_f77_werror_flag" ||
15095 test ! -s conftest.err
15096 } && test -s conftest$ac_exeext &&
15097 $as_test_x conftest$ac_exeext; then
15099 lt_aix_libpath_sed='
15100 /Import File Strings/,/^$/ {
15101 /^0/ {
15102 s/^0 *\(.*\)$/\1/
15106 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15107 # Check for a 64-bit object if we didn't find anything.
15108 if test -z "$aix_libpath"; then
15109 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15119 conftest$ac_exeext conftest.$ac_ext
15120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15122 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15123 # Warning - without using the other run time loading flags,
15124 # -berok will link without error, but may produce a broken library.
15125 no_undefined_flag_F77=' ${wl}-bernotok'
15126 allow_undefined_flag_F77=' ${wl}-berok'
15127 # Exported symbols can be pulled into shared objects from archives
15128 whole_archive_flag_spec_F77='$convenience'
15129 archive_cmds_need_lc_F77=yes
15130 # This is similar to how AIX traditionally builds its shared libraries.
15131 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'
15136 amigaos*)
15137 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)'
15138 hardcode_libdir_flag_spec_F77='-L$libdir'
15139 hardcode_minus_L_F77=yes
15140 # see comment about different semantics on the GNU ld section
15141 ld_shlibs_F77=no
15144 bsdi[45]*)
15145 export_dynamic_flag_spec_F77=-rdynamic
15148 cygwin* | mingw* | pw32*)
15149 # When not using gcc, we currently assume that we are using
15150 # Microsoft Visual C++.
15151 # hardcode_libdir_flag_spec is actually meaningless, as there is
15152 # no search path for DLLs.
15153 hardcode_libdir_flag_spec_F77=' '
15154 allow_undefined_flag_F77=unsupported
15155 # Tell ltmain to make .lib files, not .a files.
15156 libext=lib
15157 # Tell ltmain to make .dll files, not .so files.
15158 shrext_cmds=".dll"
15159 # FIXME: Setting linknames here is a bad hack.
15160 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15161 # The linker will automatically build a .lib file if we build a DLL.
15162 old_archive_From_new_cmds_F77='true'
15163 # FIXME: Should let the user specify the lib program.
15164 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15165 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15166 enable_shared_with_static_runtimes_F77=yes
15169 darwin* | rhapsody*)
15170 case $host_os in
15171 rhapsody* | darwin1.[012])
15172 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15174 *) # Darwin 1.3 on
15175 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15176 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15177 else
15178 case ${MACOSX_DEPLOYMENT_TARGET} in
15179 10.[012])
15180 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15182 10.*)
15183 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15185 esac
15188 esac
15189 archive_cmds_need_lc_F77=no
15190 hardcode_direct_F77=no
15191 hardcode_automatic_F77=yes
15192 hardcode_shlibpath_var_F77=unsupported
15193 whole_archive_flag_spec_F77=''
15194 link_all_deplibs_F77=yes
15195 if test "$GCC" = yes ; then
15196 output_verbose_link_cmd='echo'
15197 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15198 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15199 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15200 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15201 else
15202 case $cc_basename in
15203 xlc*)
15204 output_verbose_link_cmd='echo'
15205 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15206 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15208 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}'
15209 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}'
15212 ld_shlibs_F77=no
15214 esac
15218 dgux*)
15219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15220 hardcode_libdir_flag_spec_F77='-L$libdir'
15221 hardcode_shlibpath_var_F77=no
15224 freebsd1*)
15225 ld_shlibs_F77=no
15228 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15229 # support. Future versions do this automatically, but an explicit c++rt0.o
15230 # does not break anything, and helps significantly (at the cost of a little
15231 # extra space).
15232 freebsd2.2*)
15233 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15234 hardcode_libdir_flag_spec_F77='-R$libdir'
15235 hardcode_direct_F77=yes
15236 hardcode_shlibpath_var_F77=no
15239 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15240 freebsd2*)
15241 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15242 hardcode_direct_F77=yes
15243 hardcode_minus_L_F77=yes
15244 hardcode_shlibpath_var_F77=no
15247 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15248 freebsd* | dragonfly*)
15249 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15250 hardcode_libdir_flag_spec_F77='-R$libdir'
15251 hardcode_direct_F77=yes
15252 hardcode_shlibpath_var_F77=no
15255 hpux9*)
15256 if test "$GCC" = yes; then
15257 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'
15258 else
15259 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'
15261 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15262 hardcode_libdir_separator_F77=:
15263 hardcode_direct_F77=yes
15265 # hardcode_minus_L: Not really in the search PATH,
15266 # but as the default location of the library.
15267 hardcode_minus_L_F77=yes
15268 export_dynamic_flag_spec_F77='${wl}-E'
15271 hpux10*)
15272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15273 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15274 else
15275 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15277 if test "$with_gnu_ld" = no; then
15278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15279 hardcode_libdir_separator_F77=:
15281 hardcode_direct_F77=yes
15282 export_dynamic_flag_spec_F77='${wl}-E'
15284 # hardcode_minus_L: Not really in the search PATH,
15285 # but as the default location of the library.
15286 hardcode_minus_L_F77=yes
15290 hpux11*)
15291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15292 case $host_cpu in
15293 hppa*64*)
15294 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15296 ia64*)
15297 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15300 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15302 esac
15303 else
15304 case $host_cpu in
15305 hppa*64*)
15306 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15308 ia64*)
15309 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15312 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15314 esac
15316 if test "$with_gnu_ld" = no; then
15317 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15318 hardcode_libdir_separator_F77=:
15320 case $host_cpu in
15321 hppa*64*|ia64*)
15322 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15323 hardcode_direct_F77=no
15324 hardcode_shlibpath_var_F77=no
15327 hardcode_direct_F77=yes
15328 export_dynamic_flag_spec_F77='${wl}-E'
15330 # hardcode_minus_L: Not really in the search PATH,
15331 # but as the default location of the library.
15332 hardcode_minus_L_F77=yes
15334 esac
15338 irix5* | irix6* | nonstopux*)
15339 if test "$GCC" = yes; then
15340 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'
15341 else
15342 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'
15343 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15346 hardcode_libdir_separator_F77=:
15347 link_all_deplibs_F77=yes
15350 netbsd* | netbsdelf*-gnu)
15351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15352 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15353 else
15354 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15356 hardcode_libdir_flag_spec_F77='-R$libdir'
15357 hardcode_direct_F77=yes
15358 hardcode_shlibpath_var_F77=no
15361 newsos6)
15362 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15363 hardcode_direct_F77=yes
15364 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15365 hardcode_libdir_separator_F77=:
15366 hardcode_shlibpath_var_F77=no
15369 openbsd*)
15370 if test -f /usr/libexec/ld.so; then
15371 hardcode_direct_F77=yes
15372 hardcode_shlibpath_var_F77=no
15373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15374 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15375 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15376 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15377 export_dynamic_flag_spec_F77='${wl}-E'
15378 else
15379 case $host_os in
15380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15381 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15382 hardcode_libdir_flag_spec_F77='-R$libdir'
15385 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15386 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15388 esac
15390 else
15391 ld_shlibs_F77=no
15395 os2*)
15396 hardcode_libdir_flag_spec_F77='-L$libdir'
15397 hardcode_minus_L_F77=yes
15398 allow_undefined_flag_F77=unsupported
15399 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'
15400 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15403 osf3*)
15404 if test "$GCC" = yes; then
15405 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15406 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'
15407 else
15408 allow_undefined_flag_F77=' -expect_unresolved \*'
15409 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'
15411 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15412 hardcode_libdir_separator_F77=:
15415 osf4* | osf5*) # as osf3* with the addition of -msym flag
15416 if test "$GCC" = yes; then
15417 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15418 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'
15419 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15420 else
15421 allow_undefined_flag_F77=' -expect_unresolved \*'
15422 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'
15423 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~
15424 $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'
15426 # Both c and cxx compiler support -rpath directly
15427 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15429 hardcode_libdir_separator_F77=:
15432 solaris*)
15433 no_undefined_flag_F77=' -z text'
15434 if test "$GCC" = yes; then
15435 wlarc='${wl}'
15436 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15437 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15438 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15439 else
15440 wlarc=''
15441 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15442 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15445 hardcode_libdir_flag_spec_F77='-R$libdir'
15446 hardcode_shlibpath_var_F77=no
15447 case $host_os in
15448 solaris2.[0-5] | solaris2.[0-5].*) ;;
15450 # The compiler driver will combine and reorder linker options,
15451 # but understands `-z linker_flag'. GCC discards it without `$wl',
15452 # but is careful enough not to reorder.
15453 # Supported since Solaris 2.6 (maybe 2.5.1?)
15454 if test "$GCC" = yes; then
15455 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15456 else
15457 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15460 esac
15461 link_all_deplibs_F77=yes
15464 sunos4*)
15465 if test "x$host_vendor" = xsequent; then
15466 # Use $CC to link under sequent, because it throws in some extra .o
15467 # files that make .init and .fini sections work.
15468 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15469 else
15470 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15472 hardcode_libdir_flag_spec_F77='-L$libdir'
15473 hardcode_direct_F77=yes
15474 hardcode_minus_L_F77=yes
15475 hardcode_shlibpath_var_F77=no
15478 sysv4)
15479 case $host_vendor in
15480 sni)
15481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15482 hardcode_direct_F77=yes # is this really true???
15484 siemens)
15485 ## LD is ld it makes a PLAMLIB
15486 ## CC just makes a GrossModule.
15487 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15488 reload_cmds_F77='$CC -r -o $output$reload_objs'
15489 hardcode_direct_F77=no
15491 motorola)
15492 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15495 esac
15496 runpath_var='LD_RUN_PATH'
15497 hardcode_shlibpath_var_F77=no
15500 sysv4.3*)
15501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502 hardcode_shlibpath_var_F77=no
15503 export_dynamic_flag_spec_F77='-Bexport'
15506 sysv4*MP*)
15507 if test -d /usr/nec; then
15508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15509 hardcode_shlibpath_var_F77=no
15510 runpath_var=LD_RUN_PATH
15511 hardcode_runpath_var=yes
15512 ld_shlibs_F77=yes
15516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15517 no_undefined_flag_F77='${wl}-z,text'
15518 archive_cmds_need_lc_F77=no
15519 hardcode_shlibpath_var_F77=no
15520 runpath_var='LD_RUN_PATH'
15522 if test "$GCC" = yes; then
15523 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15524 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15525 else
15526 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15527 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15531 sysv5* | sco3.2v5* | sco5v6*)
15532 # Note: We can NOT use -z defs as we might desire, because we do not
15533 # link with -lc, and that would cause any symbols used from libc to
15534 # always be unresolved, which means just about no library would
15535 # ever link correctly. If we're not using GNU ld we use -z text
15536 # though, which does catch some bad symbols but isn't as heavy-handed
15537 # as -z defs.
15538 no_undefined_flag_F77='${wl}-z,text'
15539 allow_undefined_flag_F77='${wl}-z,nodefs'
15540 archive_cmds_need_lc_F77=no
15541 hardcode_shlibpath_var_F77=no
15542 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15543 hardcode_libdir_separator_F77=':'
15544 link_all_deplibs_F77=yes
15545 export_dynamic_flag_spec_F77='${wl}-Bexport'
15546 runpath_var='LD_RUN_PATH'
15548 if test "$GCC" = yes; then
15549 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15550 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15551 else
15552 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15553 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 uts4*)
15558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559 hardcode_libdir_flag_spec_F77='-L$libdir'
15560 hardcode_shlibpath_var_F77=no
15564 ld_shlibs_F77=no
15566 esac
15569 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15570 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15571 test "$ld_shlibs_F77" = no && can_build_shared=no
15574 # Do we need to explicitly link libc?
15576 case "x$archive_cmds_need_lc_F77" in
15577 x|xyes)
15578 # Assume -lc should be added
15579 archive_cmds_need_lc_F77=yes
15581 if test "$enable_shared" = yes && test "$GCC" = yes; then
15582 case $archive_cmds_F77 in
15583 *'~'*)
15584 # FIXME: we may have to deal with multi-command sequences.
15586 '$CC '*)
15587 # Test whether the compiler implicitly links with -lc since on some
15588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15589 # to ld, don't add -lc before -lgcc.
15590 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15592 $rm conftest*
15593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15596 (eval $ac_compile) 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } 2>conftest.err; then
15600 soname=conftest
15601 lib=conftest
15602 libobjs=conftest.$ac_objext
15603 deplibs=
15604 wl=$lt_prog_compiler_wl_F77
15605 pic_flag=$lt_prog_compiler_pic_F77
15606 compiler_flags=-v
15607 linker_flags=-v
15608 verstring=
15609 output_objdir=.
15610 libname=conftest
15611 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15612 allow_undefined_flag_F77=
15613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15614 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }
15618 then
15619 archive_cmds_need_lc_F77=no
15620 else
15621 archive_cmds_need_lc_F77=yes
15623 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15624 else
15625 cat conftest.err 1>&5
15627 $rm conftest*
15628 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15629 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15631 esac
15634 esac
15636 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15637 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15638 library_names_spec=
15639 libname_spec='lib$name'
15640 soname_spec=
15641 shrext_cmds=".so"
15642 postinstall_cmds=
15643 postuninstall_cmds=
15644 finish_cmds=
15645 finish_eval=
15646 shlibpath_var=
15647 shlibpath_overrides_runpath=unknown
15648 version_type=none
15649 dynamic_linker="$host_os ld.so"
15650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15652 need_lib_prefix=unknown
15653 hardcode_into_libs=no
15655 # when you set need_version to no, make sure it does not cause -set_version
15656 # flags to be left without arguments
15657 need_version=unknown
15659 case $host_os in
15660 aix3*)
15661 version_type=linux
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15663 shlibpath_var=LIBPATH
15665 # AIX 3 has no versioning support, so we append a major version to the name.
15666 soname_spec='${libname}${release}${shared_ext}$major'
15669 aix[4-9]*)
15670 version_type=linux
15671 need_lib_prefix=no
15672 need_version=no
15673 hardcode_into_libs=yes
15674 if test "$host_cpu" = ia64; then
15675 # AIX 5 supports IA64
15676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 else
15679 # With GCC up to 2.95.x, collect2 would create an import file
15680 # for dependence libraries. The import file would start with
15681 # the line `#! .'. This would cause the generated library to
15682 # depend on `.', always an invalid library. This was fixed in
15683 # development snapshots of GCC prior to 3.0.
15684 case $host_os in
15685 aix4 | aix4.[01] | aix4.[01].*)
15686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15687 echo ' yes '
15688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15690 else
15691 can_build_shared=no
15694 esac
15695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15696 # soname into executable. Probably we can add versioning support to
15697 # collect2, so additional links can be useful in future.
15698 if test "$aix_use_runtimelinking" = yes; then
15699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15700 # instead of lib<name>.a to let people know that these are not
15701 # typical AIX shared libraries.
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 else
15704 # We preserve .a as extension for shared libraries through AIX4.2
15705 # and later when we are not doing run time linking.
15706 library_names_spec='${libname}${release}.a $libname.a'
15707 soname_spec='${libname}${release}${shared_ext}$major'
15709 shlibpath_var=LIBPATH
15713 amigaos*)
15714 library_names_spec='$libname.ixlibrary $libname.a'
15715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15716 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'
15719 beos*)
15720 library_names_spec='${libname}${shared_ext}'
15721 dynamic_linker="$host_os ld.so"
15722 shlibpath_var=LIBRARY_PATH
15725 bsdi[45]*)
15726 version_type=linux
15727 need_version=no
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15734 # the default ld.so.conf also contains /usr/contrib/lib and
15735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15736 # libtool to hard-code these into programs
15739 cygwin* | mingw* | pw32*)
15740 version_type=windows
15741 shrext_cmds=".dll"
15742 need_version=no
15743 need_lib_prefix=no
15745 case $GCC,$host_os in
15746 yes,cygwin* | yes,mingw* | yes,pw32*)
15747 library_names_spec='$libname.dll.a'
15748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15749 postinstall_cmds='base_file=`basename \${file}`~
15750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15751 dldir=$destdir/`dirname \$dlpath`~
15752 test -d \$dldir || mkdir -p \$dldir~
15753 $install_prog $dir/$dlname \$dldir/$dlname~
15754 chmod a+x \$dldir/$dlname'
15755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15756 dlpath=$dir/\$dldll~
15757 $rm \$dlpath'
15758 shlibpath_overrides_runpath=yes
15760 case $host_os in
15761 cygwin*)
15762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15766 mingw*)
15767 # MinGW DLLs use traditional 'lib' prefix
15768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15771 # It is most probably a Windows format PATH printed by
15772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15773 # path with ; separators, and with drive letters. We can handle the
15774 # drive letters (cygwin fileutils understands them), so leave them,
15775 # especially as we might pass files found there to a mingw objdump,
15776 # which wouldn't understand a cygwinified path. Ahh.
15777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15778 else
15779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15782 pw32*)
15783 # pw32 DLLs use 'pw' prefix rather than 'lib'
15784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15786 esac
15790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15792 esac
15793 dynamic_linker='Win32 ld.exe'
15794 # FIXME: first we should search . and the directory the executable is in
15795 shlibpath_var=PATH
15798 darwin* | rhapsody*)
15799 dynamic_linker="$host_os dyld"
15800 version_type=darwin
15801 need_lib_prefix=no
15802 need_version=no
15803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15804 soname_spec='${libname}${release}${major}$shared_ext'
15805 shlibpath_overrides_runpath=yes
15806 shlibpath_var=DYLD_LIBRARY_PATH
15807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15812 dgux*)
15813 version_type=linux
15814 need_lib_prefix=no
15815 need_version=no
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 shlibpath_var=LD_LIBRARY_PATH
15821 freebsd1*)
15822 dynamic_linker=no
15825 freebsd* | dragonfly*)
15826 # DragonFly does not have aout. When/if they implement a new
15827 # versioning mechanism, adjust this.
15828 if test -x /usr/bin/objformat; then
15829 objformat=`/usr/bin/objformat`
15830 else
15831 case $host_os in
15832 freebsd[123]*) objformat=aout ;;
15833 *) objformat=elf ;;
15834 esac
15836 version_type=freebsd-$objformat
15837 case $version_type in
15838 freebsd-elf*)
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15840 need_version=no
15841 need_lib_prefix=no
15843 freebsd-*)
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15845 need_version=yes
15847 esac
15848 shlibpath_var=LD_LIBRARY_PATH
15849 case $host_os in
15850 freebsd2*)
15851 shlibpath_overrides_runpath=yes
15853 freebsd3.[01]* | freebsdelf3.[01]*)
15854 shlibpath_overrides_runpath=yes
15855 hardcode_into_libs=yes
15857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15859 shlibpath_overrides_runpath=no
15860 hardcode_into_libs=yes
15862 *) # from 4.6 on, and DragonFly
15863 shlibpath_overrides_runpath=yes
15864 hardcode_into_libs=yes
15866 esac
15869 gnu*)
15870 version_type=linux
15871 need_lib_prefix=no
15872 need_version=no
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 shlibpath_var=LD_LIBRARY_PATH
15876 hardcode_into_libs=yes
15879 hpux9* | hpux10* | hpux11*)
15880 # Give a soname corresponding to the major version so that dld.sl refuses to
15881 # link against other versions.
15882 version_type=sunos
15883 need_lib_prefix=no
15884 need_version=no
15885 case $host_cpu in
15886 ia64*)
15887 shrext_cmds='.so'
15888 hardcode_into_libs=yes
15889 dynamic_linker="$host_os dld.so"
15890 shlibpath_var=LD_LIBRARY_PATH
15891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893 soname_spec='${libname}${release}${shared_ext}$major'
15894 if test "X$HPUX_IA64_MODE" = X32; then
15895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15896 else
15897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15901 hppa*64*)
15902 shrext_cmds='.sl'
15903 hardcode_into_libs=yes
15904 dynamic_linker="$host_os dld.sl"
15905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15913 shrext_cmds='.sl'
15914 dynamic_linker="$host_os dld.sl"
15915 shlibpath_var=SHLIB_PATH
15916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15920 esac
15921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15922 postinstall_cmds='chmod 555 $lib'
15925 interix[3-9]*)
15926 version_type=linux
15927 need_lib_prefix=no
15928 need_version=no
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15931 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 shlibpath_overrides_runpath=no
15934 hardcode_into_libs=yes
15937 irix5* | irix6* | nonstopux*)
15938 case $host_os in
15939 nonstopux*) version_type=nonstopux ;;
15941 if test "$lt_cv_prog_gnu_ld" = yes; then
15942 version_type=linux
15943 else
15944 version_type=irix
15945 fi ;;
15946 esac
15947 need_lib_prefix=no
15948 need_version=no
15949 soname_spec='${libname}${release}${shared_ext}$major'
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15951 case $host_os in
15952 irix5* | nonstopux*)
15953 libsuff= shlibsuff=
15956 case $LD in # libtool.m4 will add one of these switches to LD
15957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15958 libsuff= shlibsuff= libmagic=32-bit;;
15959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15960 libsuff=32 shlibsuff=N32 libmagic=N32;;
15961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15963 *) libsuff= shlibsuff= libmagic=never-match;;
15964 esac
15966 esac
15967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15968 shlibpath_overrides_runpath=no
15969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15971 hardcode_into_libs=yes
15974 # No shared lib support for Linux oldld, aout, or coff.
15975 linux*oldld* | linux*aout* | linux*coff*)
15976 dynamic_linker=no
15979 # This must be Linux ELF.
15980 linux* | k*bsd*-gnu)
15981 version_type=linux
15982 need_lib_prefix=no
15983 need_version=no
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=no
15989 # This implies no fast_install, which is unacceptable.
15990 # Some rework will be needed to allow for fast_install
15991 # before this can be enabled.
15992 hardcode_into_libs=yes
15994 # Append ld.so.conf contents to the search path
15995 if test -f /etc/ld.so.conf; then
15996 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' ' '`
15997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16000 # We used to test for /lib/ld.so.1 and disable shared libraries on
16001 # powerpc, because MkLinux only supported shared libraries with the
16002 # GNU dynamic linker. Since this was broken with cross compilers,
16003 # most powerpc-linux boxes support dynamic linking these days and
16004 # people can always --disable-shared, the test was removed, and we
16005 # assume the GNU/Linux dynamic linker is in use.
16006 dynamic_linker='GNU/Linux ld.so'
16009 netbsdelf*-gnu)
16010 version_type=linux
16011 need_lib_prefix=no
16012 need_version=no
16013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16014 soname_spec='${libname}${release}${shared_ext}$major'
16015 shlibpath_var=LD_LIBRARY_PATH
16016 shlibpath_overrides_runpath=no
16017 hardcode_into_libs=yes
16018 dynamic_linker='NetBSD ld.elf_so'
16021 netbsd*)
16022 version_type=sunos
16023 need_lib_prefix=no
16024 need_version=no
16025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16028 dynamic_linker='NetBSD (a.out) ld.so'
16029 else
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16031 soname_spec='${libname}${release}${shared_ext}$major'
16032 dynamic_linker='NetBSD ld.elf_so'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=yes
16036 hardcode_into_libs=yes
16039 newsos6)
16040 version_type=linux
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=yes
16046 nto-qnx*)
16047 version_type=linux
16048 need_lib_prefix=no
16049 need_version=no
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 shlibpath_overrides_runpath=yes
16056 openbsd*)
16057 version_type=sunos
16058 sys_lib_dlsearch_path_spec="/usr/lib"
16059 need_lib_prefix=no
16060 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16061 case $host_os in
16062 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16063 *) need_version=no ;;
16064 esac
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16069 case $host_os in
16070 openbsd2.[89] | openbsd2.[89].*)
16071 shlibpath_overrides_runpath=no
16074 shlibpath_overrides_runpath=yes
16076 esac
16077 else
16078 shlibpath_overrides_runpath=yes
16082 os2*)
16083 libname_spec='$name'
16084 shrext_cmds=".dll"
16085 need_lib_prefix=no
16086 library_names_spec='$libname${shared_ext} $libname.a'
16087 dynamic_linker='OS/2 ld.exe'
16088 shlibpath_var=LIBPATH
16091 osf3* | osf4* | osf5*)
16092 version_type=osf
16093 need_lib_prefix=no
16094 need_version=no
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 shlibpath_var=LD_LIBRARY_PATH
16098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16102 rdos*)
16103 dynamic_linker=no
16106 solaris*)
16107 version_type=linux
16108 need_lib_prefix=no
16109 need_version=no
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 shlibpath_overrides_runpath=yes
16114 hardcode_into_libs=yes
16115 # ldd complains unless libraries are executable
16116 postinstall_cmds='chmod +x $lib'
16119 sunos4*)
16120 version_type=sunos
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16123 shlibpath_var=LD_LIBRARY_PATH
16124 shlibpath_overrides_runpath=yes
16125 if test "$with_gnu_ld" = yes; then
16126 need_lib_prefix=no
16128 need_version=yes
16131 sysv4 | sysv4.3*)
16132 version_type=linux
16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16134 soname_spec='${libname}${release}${shared_ext}$major'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 case $host_vendor in
16137 sni)
16138 shlibpath_overrides_runpath=no
16139 need_lib_prefix=no
16140 export_dynamic_flag_spec='${wl}-Blargedynsym'
16141 runpath_var=LD_RUN_PATH
16143 siemens)
16144 need_lib_prefix=no
16146 motorola)
16147 need_lib_prefix=no
16148 need_version=no
16149 shlibpath_overrides_runpath=no
16150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16152 esac
16155 sysv4*MP*)
16156 if test -d /usr/nec ;then
16157 version_type=linux
16158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16159 soname_spec='$libname${shared_ext}.$major'
16160 shlibpath_var=LD_LIBRARY_PATH
16164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16165 version_type=freebsd-elf
16166 need_lib_prefix=no
16167 need_version=no
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
16171 hardcode_into_libs=yes
16172 if test "$with_gnu_ld" = yes; then
16173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16174 shlibpath_overrides_runpath=no
16175 else
16176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16177 shlibpath_overrides_runpath=yes
16178 case $host_os in
16179 sco3.2v5*)
16180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16182 esac
16184 sys_lib_dlsearch_path_spec='/usr/lib'
16187 uts4*)
16188 version_type=linux
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 shlibpath_var=LD_LIBRARY_PATH
16195 dynamic_linker=no
16197 esac
16198 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16199 echo "${ECHO_T}$dynamic_linker" >&6; }
16200 test "$dynamic_linker" = no && can_build_shared=no
16202 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16208 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16209 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16215 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16217 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16218 if test "$GCC" = yes; then
16219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16222 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16223 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16224 hardcode_action_F77=
16225 if test -n "$hardcode_libdir_flag_spec_F77" || \
16226 test -n "$runpath_var_F77" || \
16227 test "X$hardcode_automatic_F77" = "Xyes" ; then
16229 # We can hardcode non-existant directories.
16230 if test "$hardcode_direct_F77" != no &&
16231 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16232 # have to relink, otherwise we might link with an installed library
16233 # when we should be linking with a yet-to-be-installed one
16234 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16235 test "$hardcode_minus_L_F77" != no; then
16236 # Linking always hardcodes the temporary library directory.
16237 hardcode_action_F77=relink
16238 else
16239 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16240 hardcode_action_F77=immediate
16242 else
16243 # We cannot hardcode anything, or else we can only hardcode existing
16244 # directories.
16245 hardcode_action_F77=unsupported
16247 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16248 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16250 if test "$hardcode_action_F77" = relink; then
16251 # Fast installation is not supported
16252 enable_fast_install=no
16253 elif test "$shlibpath_overrides_runpath" = yes ||
16254 test "$enable_shared" = no; then
16255 # Fast installation is not necessary
16256 enable_fast_install=needless
16260 # The else clause should only fire when bootstrapping the
16261 # libtool distribution, otherwise you forgot to ship ltmain.sh
16262 # with your package, and you will get complaints that there are
16263 # no rules to generate ltmain.sh.
16264 if test -f "$ltmain"; then
16265 # See if we are running on zsh, and set the options which allow our commands through
16266 # without removal of \ escapes.
16267 if test -n "${ZSH_VERSION+set}" ; then
16268 setopt NO_GLOB_SUBST
16270 # Now quote all the things that may contain metacharacters while being
16271 # careful not to overquote the AC_SUBSTed values. We take copies of the
16272 # variables and quote the copies for generation of the libtool script.
16273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16274 SED SHELL STRIP \
16275 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16276 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16277 deplibs_check_method reload_flag reload_cmds need_locks \
16278 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16279 lt_cv_sys_global_symbol_to_c_name_address \
16280 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16281 old_postinstall_cmds old_postuninstall_cmds \
16282 compiler_F77 \
16283 CC_F77 \
16284 LD_F77 \
16285 lt_prog_compiler_wl_F77 \
16286 lt_prog_compiler_pic_F77 \
16287 lt_prog_compiler_static_F77 \
16288 lt_prog_compiler_no_builtin_flag_F77 \
16289 export_dynamic_flag_spec_F77 \
16290 thread_safe_flag_spec_F77 \
16291 whole_archive_flag_spec_F77 \
16292 enable_shared_with_static_runtimes_F77 \
16293 old_archive_cmds_F77 \
16294 old_archive_from_new_cmds_F77 \
16295 predep_objects_F77 \
16296 postdep_objects_F77 \
16297 predeps_F77 \
16298 postdeps_F77 \
16299 compiler_lib_search_path_F77 \
16300 compiler_lib_search_dirs_F77 \
16301 archive_cmds_F77 \
16302 archive_expsym_cmds_F77 \
16303 postinstall_cmds_F77 \
16304 postuninstall_cmds_F77 \
16305 old_archive_from_expsyms_cmds_F77 \
16306 allow_undefined_flag_F77 \
16307 no_undefined_flag_F77 \
16308 export_symbols_cmds_F77 \
16309 hardcode_libdir_flag_spec_F77 \
16310 hardcode_libdir_flag_spec_ld_F77 \
16311 hardcode_libdir_separator_F77 \
16312 hardcode_automatic_F77 \
16313 module_cmds_F77 \
16314 module_expsym_cmds_F77 \
16315 lt_cv_prog_compiler_c_o_F77 \
16316 fix_srcfile_path_F77 \
16317 exclude_expsyms_F77 \
16318 include_expsyms_F77; do
16320 case $var in
16321 old_archive_cmds_F77 | \
16322 old_archive_from_new_cmds_F77 | \
16323 archive_cmds_F77 | \
16324 archive_expsym_cmds_F77 | \
16325 module_cmds_F77 | \
16326 module_expsym_cmds_F77 | \
16327 old_archive_from_expsyms_cmds_F77 | \
16328 export_symbols_cmds_F77 | \
16329 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16330 postinstall_cmds | postuninstall_cmds | \
16331 old_postinstall_cmds | old_postuninstall_cmds | \
16332 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16333 # Double-quote double-evaled strings.
16334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16339 esac
16340 done
16342 case $lt_echo in
16343 *'\$0 --fallback-echo"')
16344 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16346 esac
16348 cfgfile="$ofile"
16350 cat <<__EOF__ >> "$cfgfile"
16351 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16353 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16355 # Shell to use when invoking shell scripts.
16356 SHELL=$lt_SHELL
16358 # Whether or not to build shared libraries.
16359 build_libtool_libs=$enable_shared
16361 # Whether or not to build static libraries.
16362 build_old_libs=$enable_static
16364 # Whether or not to add -lc for building shared libraries.
16365 build_libtool_need_lc=$archive_cmds_need_lc_F77
16367 # Whether or not to disallow shared libs when runtime libs are static
16368 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16370 # Whether or not to optimize for fast installation.
16371 fast_install=$enable_fast_install
16373 # The host system.
16374 host_alias=$host_alias
16375 host=$host
16376 host_os=$host_os
16378 # The build system.
16379 build_alias=$build_alias
16380 build=$build
16381 build_os=$build_os
16383 # An echo program that does not interpret backslashes.
16384 echo=$lt_echo
16386 # The archiver.
16387 AR=$lt_AR
16388 AR_FLAGS=$lt_AR_FLAGS
16390 # A C compiler.
16391 LTCC=$lt_LTCC
16393 # LTCC compiler flags.
16394 LTCFLAGS=$lt_LTCFLAGS
16396 # A language-specific compiler.
16397 CC=$lt_compiler_F77
16399 # Is the compiler the GNU C compiler?
16400 with_gcc=$GCC_F77
16402 # An ERE matcher.
16403 EGREP=$lt_EGREP
16405 # The linker used to build libraries.
16406 LD=$lt_LD_F77
16408 # Whether we need hard or soft links.
16409 LN_S=$lt_LN_S
16411 # A BSD-compatible nm program.
16412 NM=$lt_NM
16414 # A symbol stripping program
16415 STRIP=$lt_STRIP
16417 # Used to examine libraries when file_magic_cmd begins "file"
16418 MAGIC_CMD=$MAGIC_CMD
16420 # Used on cygwin: DLL creation program.
16421 DLLTOOL="$DLLTOOL"
16423 # Used on cygwin: object dumper.
16424 OBJDUMP="$OBJDUMP"
16426 # Used on cygwin: assembler.
16427 AS="$AS"
16429 # The name of the directory that contains temporary libtool files.
16430 objdir=$objdir
16432 # How to create reloadable object files.
16433 reload_flag=$lt_reload_flag
16434 reload_cmds=$lt_reload_cmds
16436 # How to pass a linker flag through the compiler.
16437 wl=$lt_lt_prog_compiler_wl_F77
16439 # Object file suffix (normally "o").
16440 objext="$ac_objext"
16442 # Old archive suffix (normally "a").
16443 libext="$libext"
16445 # Shared library suffix (normally ".so").
16446 shrext_cmds='$shrext_cmds'
16448 # Executable file suffix (normally "").
16449 exeext="$exeext"
16451 # Additional compiler flags for building library objects.
16452 pic_flag=$lt_lt_prog_compiler_pic_F77
16453 pic_mode=$pic_mode
16455 # What is the maximum length of a command?
16456 max_cmd_len=$lt_cv_sys_max_cmd_len
16458 # Does compiler simultaneously support -c and -o options?
16459 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16461 # Must we lock files when doing compilation?
16462 need_locks=$lt_need_locks
16464 # Do we need the lib prefix for modules?
16465 need_lib_prefix=$need_lib_prefix
16467 # Do we need a version for libraries?
16468 need_version=$need_version
16470 # Whether dlopen is supported.
16471 dlopen_support=$enable_dlopen
16473 # Whether dlopen of programs is supported.
16474 dlopen_self=$enable_dlopen_self
16476 # Whether dlopen of statically linked programs is supported.
16477 dlopen_self_static=$enable_dlopen_self_static
16479 # Compiler flag to prevent dynamic linking.
16480 link_static_flag=$lt_lt_prog_compiler_static_F77
16482 # Compiler flag to turn off builtin functions.
16483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16485 # Compiler flag to allow reflexive dlopens.
16486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16488 # Compiler flag to generate shared objects directly from archives.
16489 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16491 # Compiler flag to generate thread-safe objects.
16492 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16494 # Library versioning type.
16495 version_type=$version_type
16497 # Format of library name prefix.
16498 libname_spec=$lt_libname_spec
16500 # List of archive names. First name is the real one, the rest are links.
16501 # The last name is the one that the linker finds with -lNAME.
16502 library_names_spec=$lt_library_names_spec
16504 # The coded name of the library, if different from the real name.
16505 soname_spec=$lt_soname_spec
16507 # Commands used to build and install an old-style archive.
16508 RANLIB=$lt_RANLIB
16509 old_archive_cmds=$lt_old_archive_cmds_F77
16510 old_postinstall_cmds=$lt_old_postinstall_cmds
16511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16513 # Create an old-style archive from a shared archive.
16514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16516 # Create a temporary old-style archive to link instead of a shared archive.
16517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16519 # Commands used to build and install a shared archive.
16520 archive_cmds=$lt_archive_cmds_F77
16521 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16522 postinstall_cmds=$lt_postinstall_cmds
16523 postuninstall_cmds=$lt_postuninstall_cmds
16525 # Commands used to build a loadable module (assumed same as above if empty)
16526 module_cmds=$lt_module_cmds_F77
16527 module_expsym_cmds=$lt_module_expsym_cmds_F77
16529 # Commands to strip libraries.
16530 old_striplib=$lt_old_striplib
16531 striplib=$lt_striplib
16533 # Dependencies to place before the objects being linked to create a
16534 # shared library.
16535 predep_objects=$lt_predep_objects_F77
16537 # Dependencies to place after the objects being linked to create a
16538 # shared library.
16539 postdep_objects=$lt_postdep_objects_F77
16541 # Dependencies to place before the objects being linked to create a
16542 # shared library.
16543 predeps=$lt_predeps_F77
16545 # Dependencies to place after the objects being linked to create a
16546 # shared library.
16547 postdeps=$lt_postdeps_F77
16549 # The directories searched by this compiler when creating a shared
16550 # library
16551 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16553 # The library search path used internally by the compiler when linking
16554 # a shared library.
16555 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16557 # Method to check whether dependent libraries are shared objects.
16558 deplibs_check_method=$lt_deplibs_check_method
16560 # Command to use when deplibs_check_method == file_magic.
16561 file_magic_cmd=$lt_file_magic_cmd
16563 # Flag that allows shared libraries with undefined symbols to be built.
16564 allow_undefined_flag=$lt_allow_undefined_flag_F77
16566 # Flag that forces no undefined symbols.
16567 no_undefined_flag=$lt_no_undefined_flag_F77
16569 # Commands used to finish a libtool library installation in a directory.
16570 finish_cmds=$lt_finish_cmds
16572 # Same as above, but a single script fragment to be evaled but not shown.
16573 finish_eval=$lt_finish_eval
16575 # Take the output of nm and produce a listing of raw symbols and C names.
16576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16578 # Transform the output of nm in a proper C declaration
16579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16581 # Transform the output of nm in a C name address pair
16582 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16584 # This is the shared library runtime path variable.
16585 runpath_var=$runpath_var
16587 # This is the shared library path variable.
16588 shlibpath_var=$shlibpath_var
16590 # Is shlibpath searched before the hard-coded library search path?
16591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16593 # How to hardcode a shared library path into an executable.
16594 hardcode_action=$hardcode_action_F77
16596 # Whether we should hardcode library paths into libraries.
16597 hardcode_into_libs=$hardcode_into_libs
16599 # Flag to hardcode \$libdir into a binary during linking.
16600 # This must work even if \$libdir does not exist.
16601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16603 # If ld is used when linking, flag to hardcode \$libdir into
16604 # a binary during linking. This must work even if \$libdir does
16605 # not exist.
16606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16608 # Whether we need a single -rpath flag with a separated argument.
16609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16611 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16612 # resulting binary.
16613 hardcode_direct=$hardcode_direct_F77
16615 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16616 # resulting binary.
16617 hardcode_minus_L=$hardcode_minus_L_F77
16619 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16620 # the resulting binary.
16621 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16623 # Set to yes if building a shared library automatically hardcodes DIR into the library
16624 # and all subsequent libraries and executables linked against it.
16625 hardcode_automatic=$hardcode_automatic_F77
16627 # Variables whose values should be saved in libtool wrapper scripts and
16628 # restored at relink time.
16629 variables_saved_for_relink="$variables_saved_for_relink"
16631 # Whether libtool must link a program against all its dependency libraries.
16632 link_all_deplibs=$link_all_deplibs_F77
16634 # Compile-time system search path for libraries
16635 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16637 # Run-time system search path for libraries
16638 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16640 # Fix the shell variable \$srcfile for the compiler.
16641 fix_srcfile_path=$lt_fix_srcfile_path
16643 # Set to yes if exported symbols are required.
16644 always_export_symbols=$always_export_symbols_F77
16646 # The commands to list exported symbols.
16647 export_symbols_cmds=$lt_export_symbols_cmds_F77
16649 # The commands to extract the exported symbol list from a shared archive.
16650 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16652 # Symbols that should not be listed in the preloaded symbols.
16653 exclude_expsyms=$lt_exclude_expsyms_F77
16655 # Symbols that must always be exported.
16656 include_expsyms=$lt_include_expsyms_F77
16658 # ### END LIBTOOL TAG CONFIG: $tagname
16660 __EOF__
16663 else
16664 # If there is no Makefile yet, we rely on a make rule to execute
16665 # `config.status --recheck' to rerun these tests and create the
16666 # libtool script then.
16667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16668 if test -f "$ltmain_in"; then
16669 test -f Makefile && make "$ltmain"
16674 ac_ext=c
16675 ac_cpp='$CPP $CPPFLAGS'
16676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16680 CC="$lt_save_CC"
16682 else
16683 tagname=""
16687 GCJ)
16688 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16691 # Source file extension for Java test sources.
16692 ac_ext=java
16694 # Object file extension for compiled Java test sources.
16695 objext=o
16696 objext_GCJ=$objext
16698 # Code to be used in simple compile tests
16699 lt_simple_compile_test_code="class foo {}"
16701 # Code to be used in simple link tests
16702 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16704 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16706 # If no C compiler was specified, use CC.
16707 LTCC=${LTCC-"$CC"}
16709 # If no C compiler flags were specified, use CFLAGS.
16710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16712 # Allow CC to be a program name with arguments.
16713 compiler=$CC
16716 # save warnings/boilerplate of simple test code
16717 ac_outfile=conftest.$ac_objext
16718 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16719 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16720 _lt_compiler_boilerplate=`cat conftest.err`
16721 $rm conftest*
16723 ac_outfile=conftest.$ac_objext
16724 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16725 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16726 _lt_linker_boilerplate=`cat conftest.err`
16727 $rm -r conftest*
16730 # Allow CC to be a program name with arguments.
16731 lt_save_CC="$CC"
16732 CC=${GCJ-"gcj"}
16733 compiler=$CC
16734 compiler_GCJ=$CC
16735 for cc_temp in $compiler""; do
16736 case $cc_temp in
16737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16739 \-*) ;;
16740 *) break;;
16741 esac
16742 done
16743 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16746 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16747 archive_cmds_need_lc_GCJ=no
16749 old_archive_cmds_GCJ=$old_archive_cmds
16752 lt_prog_compiler_no_builtin_flag_GCJ=
16754 if test "$GCC" = yes; then
16755 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16758 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16759 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16760 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16763 lt_cv_prog_compiler_rtti_exceptions=no
16764 ac_outfile=conftest.$ac_objext
16765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16766 lt_compiler_flag="-fno-rtti -fno-exceptions"
16767 # Insert the option either (1) after the last *FLAGS variable, or
16768 # (2) before a word containing "conftest.", or (3) at the end.
16769 # Note that $ac_compile itself does not contain backslashes and begins
16770 # with a dollar sign (not a hyphen), so the echo should work correctly.
16771 # The option is referenced via a variable to avoid confusing sed.
16772 lt_compile=`echo "$ac_compile" | $SED \
16773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16775 -e 's:$: $lt_compiler_flag:'`
16776 (eval echo "\"\$as_me:16776: $lt_compile\"" >&5)
16777 (eval "$lt_compile" 2>conftest.err)
16778 ac_status=$?
16779 cat conftest.err >&5
16780 echo "$as_me:16780: \$? = $ac_status" >&5
16781 if (exit $ac_status) && test -s "$ac_outfile"; then
16782 # The compiler can only warn and ignore the option if not recognized
16783 # So say no if there are warnings other than the usual output.
16784 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16787 lt_cv_prog_compiler_rtti_exceptions=yes
16790 $rm conftest*
16793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16794 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16797 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16798 else
16804 lt_prog_compiler_wl_GCJ=
16805 lt_prog_compiler_pic_GCJ=
16806 lt_prog_compiler_static_GCJ=
16808 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16809 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16811 if test "$GCC" = yes; then
16812 lt_prog_compiler_wl_GCJ='-Wl,'
16813 lt_prog_compiler_static_GCJ='-static'
16815 case $host_os in
16816 aix*)
16817 # All AIX code is PIC.
16818 if test "$host_cpu" = ia64; then
16819 # AIX 5 now supports IA64 processor
16820 lt_prog_compiler_static_GCJ='-Bstatic'
16824 amigaos*)
16825 # FIXME: we need at least 68020 code to build shared libraries, but
16826 # adding the `-m68020' flag to GCC prevents building anything better,
16827 # like `-m68040'.
16828 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16831 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16832 # PIC is the default for these OSes.
16835 mingw* | cygwin* | pw32* | os2*)
16836 # This hack is so that the source file can tell whether it is being
16837 # built for inclusion in a dll (and should export symbols for example).
16838 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16839 # (--disable-auto-import) libraries
16843 darwin* | rhapsody*)
16844 # PIC is the default on this platform
16845 # Common symbols not allowed in MH_DYLIB files
16846 lt_prog_compiler_pic_GCJ='-fno-common'
16849 interix[3-9]*)
16850 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16851 # Instead, we relocate shared libraries at runtime.
16854 msdosdjgpp*)
16855 # Just because we use GCC doesn't mean we suddenly get shared libraries
16856 # on systems that don't support them.
16857 lt_prog_compiler_can_build_shared_GCJ=no
16858 enable_shared=no
16861 sysv4*MP*)
16862 if test -d /usr/nec; then
16863 lt_prog_compiler_pic_GCJ=-Kconform_pic
16867 hpux*)
16868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16869 # not for PA HP-UX.
16870 case $host_cpu in
16871 hppa*64*|ia64*)
16872 # +Z the default
16875 lt_prog_compiler_pic_GCJ='-fPIC'
16877 esac
16881 lt_prog_compiler_pic_GCJ='-fPIC'
16883 esac
16884 else
16885 # PORTME Check for flag to pass linker flags through the system compiler.
16886 case $host_os in
16887 aix*)
16888 lt_prog_compiler_wl_GCJ='-Wl,'
16889 if test "$host_cpu" = ia64; then
16890 # AIX 5 now supports IA64 processor
16891 lt_prog_compiler_static_GCJ='-Bstatic'
16892 else
16893 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16896 darwin*)
16897 # PIC is the default on this platform
16898 # Common symbols not allowed in MH_DYLIB files
16899 case $cc_basename in
16900 xlc*)
16901 lt_prog_compiler_pic_GCJ='-qnocommon'
16902 lt_prog_compiler_wl_GCJ='-Wl,'
16904 esac
16907 mingw* | cygwin* | pw32* | os2*)
16908 # This hack is so that the source file can tell whether it is being
16909 # built for inclusion in a dll (and should export symbols for example).
16913 hpux9* | hpux10* | hpux11*)
16914 lt_prog_compiler_wl_GCJ='-Wl,'
16915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16916 # not for PA HP-UX.
16917 case $host_cpu in
16918 hppa*64*|ia64*)
16919 # +Z the default
16922 lt_prog_compiler_pic_GCJ='+Z'
16924 esac
16925 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16926 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16929 irix5* | irix6* | nonstopux*)
16930 lt_prog_compiler_wl_GCJ='-Wl,'
16931 # PIC (with -KPIC) is the default.
16932 lt_prog_compiler_static_GCJ='-non_shared'
16935 newsos6)
16936 lt_prog_compiler_pic_GCJ='-KPIC'
16937 lt_prog_compiler_static_GCJ='-Bstatic'
16940 linux* | k*bsd*-gnu)
16941 case $cc_basename in
16942 icc* | ecc*)
16943 lt_prog_compiler_wl_GCJ='-Wl,'
16944 lt_prog_compiler_pic_GCJ='-KPIC'
16945 lt_prog_compiler_static_GCJ='-static'
16947 pgcc* | pgf77* | pgf90* | pgf95*)
16948 # Portland Group compilers (*not* the Pentium gcc compiler,
16949 # which looks to be a dead project)
16950 lt_prog_compiler_wl_GCJ='-Wl,'
16951 lt_prog_compiler_pic_GCJ='-fpic'
16952 lt_prog_compiler_static_GCJ='-Bstatic'
16954 ccc*)
16955 lt_prog_compiler_wl_GCJ='-Wl,'
16956 # All Alpha code is PIC.
16957 lt_prog_compiler_static_GCJ='-non_shared'
16960 case `$CC -V 2>&1 | sed 5q` in
16961 *Sun\ C*)
16962 # Sun C 5.9
16963 lt_prog_compiler_pic_GCJ='-KPIC'
16964 lt_prog_compiler_static_GCJ='-Bstatic'
16965 lt_prog_compiler_wl_GCJ='-Wl,'
16967 *Sun\ F*)
16968 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16969 lt_prog_compiler_pic_GCJ='-KPIC'
16970 lt_prog_compiler_static_GCJ='-Bstatic'
16971 lt_prog_compiler_wl_GCJ=''
16973 esac
16975 esac
16978 osf3* | osf4* | osf5*)
16979 lt_prog_compiler_wl_GCJ='-Wl,'
16980 # All OSF/1 code is PIC.
16981 lt_prog_compiler_static_GCJ='-non_shared'
16984 rdos*)
16985 lt_prog_compiler_static_GCJ='-non_shared'
16988 solaris*)
16989 lt_prog_compiler_pic_GCJ='-KPIC'
16990 lt_prog_compiler_static_GCJ='-Bstatic'
16991 case $cc_basename in
16992 f77* | f90* | f95*)
16993 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16995 lt_prog_compiler_wl_GCJ='-Wl,';;
16996 esac
16999 sunos4*)
17000 lt_prog_compiler_wl_GCJ='-Qoption ld '
17001 lt_prog_compiler_pic_GCJ='-PIC'
17002 lt_prog_compiler_static_GCJ='-Bstatic'
17005 sysv4 | sysv4.2uw2* | sysv4.3*)
17006 lt_prog_compiler_wl_GCJ='-Wl,'
17007 lt_prog_compiler_pic_GCJ='-KPIC'
17008 lt_prog_compiler_static_GCJ='-Bstatic'
17011 sysv4*MP*)
17012 if test -d /usr/nec ;then
17013 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17014 lt_prog_compiler_static_GCJ='-Bstatic'
17018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17019 lt_prog_compiler_wl_GCJ='-Wl,'
17020 lt_prog_compiler_pic_GCJ='-KPIC'
17021 lt_prog_compiler_static_GCJ='-Bstatic'
17024 unicos*)
17025 lt_prog_compiler_wl_GCJ='-Wl,'
17026 lt_prog_compiler_can_build_shared_GCJ=no
17029 uts4*)
17030 lt_prog_compiler_pic_GCJ='-pic'
17031 lt_prog_compiler_static_GCJ='-Bstatic'
17035 lt_prog_compiler_can_build_shared_GCJ=no
17037 esac
17040 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17041 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17044 # Check to make sure the PIC flag actually works.
17046 if test -n "$lt_prog_compiler_pic_GCJ"; then
17048 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17049 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17050 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053 lt_cv_prog_compiler_pic_works_GCJ=no
17054 ac_outfile=conftest.$ac_objext
17055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17056 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17057 # Insert the option either (1) after the last *FLAGS variable, or
17058 # (2) before a word containing "conftest.", or (3) at the end.
17059 # Note that $ac_compile itself does not contain backslashes and begins
17060 # with a dollar sign (not a hyphen), so the echo should work correctly.
17061 # The option is referenced via a variable to avoid confusing sed.
17062 lt_compile=`echo "$ac_compile" | $SED \
17063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17065 -e 's:$: $lt_compiler_flag:'`
17066 (eval echo "\"\$as_me:17066: $lt_compile\"" >&5)
17067 (eval "$lt_compile" 2>conftest.err)
17068 ac_status=$?
17069 cat conftest.err >&5
17070 echo "$as_me:17070: \$? = $ac_status" >&5
17071 if (exit $ac_status) && test -s "$ac_outfile"; then
17072 # The compiler can only warn and ignore the option if not recognized
17073 # So say no if there are warnings other than the usual output.
17074 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17077 lt_cv_prog_compiler_pic_works_GCJ=yes
17080 $rm conftest*
17083 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17084 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17086 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17087 case $lt_prog_compiler_pic_GCJ in
17088 "" | " "*) ;;
17089 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17090 esac
17091 else
17092 lt_prog_compiler_pic_GCJ=
17093 lt_prog_compiler_can_build_shared_GCJ=no
17097 case $host_os in
17098 # For platforms which do not support PIC, -DPIC is meaningless:
17099 *djgpp*)
17100 lt_prog_compiler_pic_GCJ=
17103 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17105 esac
17108 # Check to make sure the static flag actually works.
17110 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17111 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17112 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17113 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116 lt_cv_prog_compiler_static_works_GCJ=no
17117 save_LDFLAGS="$LDFLAGS"
17118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17121 # The linker can only warn and ignore the option if not recognized
17122 # So say no if there are warnings
17123 if test -s conftest.err; then
17124 # Append any errors to the config.log.
17125 cat conftest.err 1>&5
17126 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17128 if diff conftest.exp conftest.er2 >/dev/null; then
17129 lt_cv_prog_compiler_static_works_GCJ=yes
17131 else
17132 lt_cv_prog_compiler_static_works_GCJ=yes
17135 $rm -r conftest*
17136 LDFLAGS="$save_LDFLAGS"
17139 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17140 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17142 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17144 else
17145 lt_prog_compiler_static_GCJ=
17149 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17151 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 else
17154 lt_cv_prog_compiler_c_o_GCJ=no
17155 $rm -r conftest 2>/dev/null
17156 mkdir conftest
17157 cd conftest
17158 mkdir out
17159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17161 lt_compiler_flag="-o out/conftest2.$ac_objext"
17162 # Insert the option either (1) after the last *FLAGS variable, or
17163 # (2) before a word containing "conftest.", or (3) at the end.
17164 # Note that $ac_compile itself does not contain backslashes and begins
17165 # with a dollar sign (not a hyphen), so the echo should work correctly.
17166 lt_compile=`echo "$ac_compile" | $SED \
17167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17169 -e 's:$: $lt_compiler_flag:'`
17170 (eval echo "\"\$as_me:17170: $lt_compile\"" >&5)
17171 (eval "$lt_compile" 2>out/conftest.err)
17172 ac_status=$?
17173 cat out/conftest.err >&5
17174 echo "$as_me:17174: \$? = $ac_status" >&5
17175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17176 then
17177 # The compiler can only warn and ignore the option if not recognized
17178 # So say no if there are warnings
17179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17182 lt_cv_prog_compiler_c_o_GCJ=yes
17185 chmod u+w . 2>&5
17186 $rm conftest*
17187 # SGI C++ compiler will create directory out/ii_files/ for
17188 # template instantiation
17189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17190 $rm out/* && rmdir out
17191 cd ..
17192 rmdir conftest
17193 $rm conftest*
17196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17200 hard_links="nottested"
17201 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17202 # do not overwrite the value of need_locks provided by the user
17203 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17205 hard_links=yes
17206 $rm conftest*
17207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17208 touch conftest.a
17209 ln conftest.a conftest.b 2>&5 || hard_links=no
17210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17211 { echo "$as_me:$LINENO: result: $hard_links" >&5
17212 echo "${ECHO_T}$hard_links" >&6; }
17213 if test "$hard_links" = no; then
17214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17216 need_locks=warn
17218 else
17219 need_locks=no
17222 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17225 runpath_var=
17226 allow_undefined_flag_GCJ=
17227 enable_shared_with_static_runtimes_GCJ=no
17228 archive_cmds_GCJ=
17229 archive_expsym_cmds_GCJ=
17230 old_archive_From_new_cmds_GCJ=
17231 old_archive_from_expsyms_cmds_GCJ=
17232 export_dynamic_flag_spec_GCJ=
17233 whole_archive_flag_spec_GCJ=
17234 thread_safe_flag_spec_GCJ=
17235 hardcode_libdir_flag_spec_GCJ=
17236 hardcode_libdir_flag_spec_ld_GCJ=
17237 hardcode_libdir_separator_GCJ=
17238 hardcode_direct_GCJ=no
17239 hardcode_minus_L_GCJ=no
17240 hardcode_shlibpath_var_GCJ=unsupported
17241 link_all_deplibs_GCJ=unknown
17242 hardcode_automatic_GCJ=no
17243 module_cmds_GCJ=
17244 module_expsym_cmds_GCJ=
17245 always_export_symbols_GCJ=no
17246 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17247 # include_expsyms should be a list of space-separated symbols to be *always*
17248 # included in the symbol list
17249 include_expsyms_GCJ=
17250 # exclude_expsyms can be an extended regexp of symbols to exclude
17251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17253 # as well as any symbol that contains `d'.
17254 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17256 # platforms (ab)use it in PIC code, but their linkers get confused if
17257 # the symbol is explicitly referenced. Since portable code cannot
17258 # rely on this symbol name, it's probably fine to never include it in
17259 # preloaded symbol tables.
17260 # Exclude shared library initialization/finalization symbols.
17261 extract_expsyms_cmds=
17262 # Just being paranoid about ensuring that cc_basename is set.
17263 for cc_temp in $compiler""; do
17264 case $cc_temp in
17265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17267 \-*) ;;
17268 *) break;;
17269 esac
17270 done
17271 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17273 case $host_os in
17274 cygwin* | mingw* | pw32*)
17275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17276 # When not using gcc, we currently assume that we are using
17277 # Microsoft Visual C++.
17278 if test "$GCC" != yes; then
17279 with_gnu_ld=no
17282 interix*)
17283 # we just hope/assume this is gcc and not c89 (= MSVC++)
17284 with_gnu_ld=yes
17286 openbsd*)
17287 with_gnu_ld=no
17289 esac
17291 ld_shlibs_GCJ=yes
17292 if test "$with_gnu_ld" = yes; then
17293 # If archive_cmds runs LD, not CC, wlarc should be empty
17294 wlarc='${wl}'
17296 # Set some defaults for GNU ld with shared library support. These
17297 # are reset later if shared libraries are not supported. Putting them
17298 # here allows them to be overridden if necessary.
17299 runpath_var=LD_RUN_PATH
17300 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17301 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17302 # ancient GNU ld didn't support --whole-archive et. al.
17303 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17304 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17305 else
17306 whole_archive_flag_spec_GCJ=
17308 supports_anon_versioning=no
17309 case `$LD -v 2>/dev/null` in
17310 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17311 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17312 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17313 *\ 2.11.*) ;; # other 2.11 versions
17314 *) supports_anon_versioning=yes ;;
17315 esac
17317 # See if GNU ld supports shared libraries.
17318 case $host_os in
17319 aix[3-9]*)
17320 # On AIX/PPC, the GNU linker is very broken
17321 if test "$host_cpu" != ia64; then
17322 ld_shlibs_GCJ=no
17323 cat <<EOF 1>&2
17325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17326 *** to be unable to reliably create shared libraries on AIX.
17327 *** Therefore, libtool is disabling shared libraries support. If you
17328 *** really care for shared libraries, you may want to modify your PATH
17329 *** so that a non-GNU linker is found, and then restart.
17335 amigaos*)
17336 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)'
17337 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17338 hardcode_minus_L_GCJ=yes
17340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17341 # that the semantics of dynamic libraries on AmigaOS, at least up
17342 # to version 4, is to share data among multiple programs linked
17343 # with the same dynamic library. Since this doesn't match the
17344 # behavior of shared libraries on other platforms, we can't use
17345 # them.
17346 ld_shlibs_GCJ=no
17349 beos*)
17350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17351 allow_undefined_flag_GCJ=unsupported
17352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17353 # support --undefined. This deserves some investigation. FIXME
17354 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17355 else
17356 ld_shlibs_GCJ=no
17360 cygwin* | mingw* | pw32*)
17361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17362 # as there is no search path for DLLs.
17363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17364 allow_undefined_flag_GCJ=unsupported
17365 always_export_symbols_GCJ=no
17366 enable_shared_with_static_runtimes_GCJ=yes
17367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17371 # If the export-symbols file already is a .def file (1st line
17372 # is EXPORTS), use it as is; otherwise, prepend...
17373 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17374 cp $export_symbols $output_objdir/$soname.def;
17375 else
17376 echo EXPORTS > $output_objdir/$soname.def;
17377 cat $export_symbols >> $output_objdir/$soname.def;
17379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17380 else
17381 ld_shlibs_GCJ=no
17385 interix[3-9]*)
17386 hardcode_direct_GCJ=no
17387 hardcode_shlibpath_var_GCJ=no
17388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17389 export_dynamic_flag_spec_GCJ='${wl}-E'
17390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17391 # Instead, shared libraries are loaded at an image base (0x10000000 by
17392 # default) and relocated if they conflict, which is a slow very memory
17393 # consuming and fragmenting process. To avoid this, we pick a random,
17394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17396 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'
17397 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'
17400 gnu* | linux* | k*bsd*-gnu)
17401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17402 tmp_addflag=
17403 case $cc_basename,$host_cpu in
17404 pgcc*) # Portland Group C compiler
17405 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'
17406 tmp_addflag=' $pic_flag'
17408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17409 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'
17410 tmp_addflag=' $pic_flag -Mnomain' ;;
17411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17412 tmp_addflag=' -i_dynamic' ;;
17413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17414 tmp_addflag=' -i_dynamic -nofor_main' ;;
17415 ifc* | ifort*) # Intel Fortran compiler
17416 tmp_addflag=' -nofor_main' ;;
17417 esac
17418 case `$CC -V 2>&1 | sed 5q` in
17419 *Sun\ C*) # Sun C 5.9
17420 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'
17421 tmp_sharedflag='-G' ;;
17422 *Sun\ F*) # Sun Fortran 8.3
17423 tmp_sharedflag='-G' ;;
17425 tmp_sharedflag='-shared' ;;
17426 esac
17427 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17429 if test $supports_anon_versioning = yes; then
17430 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17432 $echo "local: *; };" >> $output_objdir/$libname.ver~
17433 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17435 link_all_deplibs_GCJ=no
17436 else
17437 ld_shlibs_GCJ=no
17441 netbsd* | netbsdelf*-gnu)
17442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17443 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17444 wlarc=
17445 else
17446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17447 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17451 solaris*)
17452 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17453 ld_shlibs_GCJ=no
17454 cat <<EOF 1>&2
17456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17457 *** create shared libraries on Solaris systems. Therefore, libtool
17458 *** is disabling shared libraries support. We urge you to upgrade GNU
17459 *** binutils to release 2.9.1 or newer. Another option is to modify
17460 *** your PATH or compiler configuration so that the native linker is
17461 *** used, and then restart.
17464 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17467 else
17468 ld_shlibs_GCJ=no
17472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17473 case `$LD -v 2>&1` in
17474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17475 ld_shlibs_GCJ=no
17476 cat <<_LT_EOF 1>&2
17478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17479 *** reliably create shared libraries on SCO systems. Therefore, libtool
17480 *** is disabling shared libraries support. We urge you to upgrade GNU
17481 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17482 *** your PATH or compiler configuration so that the native linker is
17483 *** used, and then restart.
17485 _LT_EOF
17488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17489 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17492 else
17493 ld_shlibs_GCJ=no
17496 esac
17499 sunos4*)
17500 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17501 wlarc=
17502 hardcode_direct_GCJ=yes
17503 hardcode_shlibpath_var_GCJ=no
17507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17510 else
17511 ld_shlibs_GCJ=no
17514 esac
17516 if test "$ld_shlibs_GCJ" = no; then
17517 runpath_var=
17518 hardcode_libdir_flag_spec_GCJ=
17519 export_dynamic_flag_spec_GCJ=
17520 whole_archive_flag_spec_GCJ=
17522 else
17523 # PORTME fill in a description of your system's linker (not GNU ld)
17524 case $host_os in
17525 aix3*)
17526 allow_undefined_flag_GCJ=unsupported
17527 always_export_symbols_GCJ=yes
17528 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'
17529 # Note: this linker hardcodes the directories in LIBPATH if there
17530 # are no directories specified by -L.
17531 hardcode_minus_L_GCJ=yes
17532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17533 # Neither direct hardcoding nor static linking is supported with a
17534 # broken collect2.
17535 hardcode_direct_GCJ=unsupported
17539 aix[4-9]*)
17540 if test "$host_cpu" = ia64; then
17541 # On IA64, the linker does run time linking by default, so we don't
17542 # have to do anything special.
17543 aix_use_runtimelinking=no
17544 exp_sym_flag='-Bexport'
17545 no_entry_flag=""
17546 else
17547 # If we're using GNU nm, then we don't want the "-C" option.
17548 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17549 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17550 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'
17551 else
17552 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'
17554 aix_use_runtimelinking=no
17556 # Test if we are trying to use run time linking or normal
17557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17558 # need to do runtime linking.
17559 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17560 for ld_flag in $LDFLAGS; do
17561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17562 aix_use_runtimelinking=yes
17563 break
17565 done
17567 esac
17569 exp_sym_flag='-bexport'
17570 no_entry_flag='-bnoentry'
17573 # When large executables or shared objects are built, AIX ld can
17574 # have problems creating the table of contents. If linking a library
17575 # or program results in "error TOC overflow" add -mminimal-toc to
17576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17579 archive_cmds_GCJ=''
17580 hardcode_direct_GCJ=yes
17581 hardcode_libdir_separator_GCJ=':'
17582 link_all_deplibs_GCJ=yes
17584 if test "$GCC" = yes; then
17585 case $host_os in aix4.[012]|aix4.[012].*)
17586 # We only want to do this on AIX 4.2 and lower, the check
17587 # below for broken collect2 doesn't work under 4.3+
17588 collect2name=`${CC} -print-prog-name=collect2`
17589 if test -f "$collect2name" && \
17590 strings "$collect2name" | grep resolve_lib_name >/dev/null
17591 then
17592 # We have reworked collect2
17594 else
17595 # We have old collect2
17596 hardcode_direct_GCJ=unsupported
17597 # It fails to find uninstalled libraries when the uninstalled
17598 # path is not listed in the libpath. Setting hardcode_minus_L
17599 # to unsupported forces relinking
17600 hardcode_minus_L_GCJ=yes
17601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17602 hardcode_libdir_separator_GCJ=
17605 esac
17606 shared_flag='-shared'
17607 if test "$aix_use_runtimelinking" = yes; then
17608 shared_flag="$shared_flag "'${wl}-G'
17610 else
17611 # not using gcc
17612 if test "$host_cpu" = ia64; then
17613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17614 # chokes on -Wl,-G. The following line is correct:
17615 shared_flag='-G'
17616 else
17617 if test "$aix_use_runtimelinking" = yes; then
17618 shared_flag='${wl}-G'
17619 else
17620 shared_flag='${wl}-bM:SRE'
17625 # It seems that -bexpall does not export symbols beginning with
17626 # underscore (_), so it is better to generate a list of symbols to export.
17627 always_export_symbols_GCJ=yes
17628 if test "$aix_use_runtimelinking" = yes; then
17629 # Warning - without using the other runtime loading flags (-brtl),
17630 # -berok will link without error, but may produce a broken library.
17631 allow_undefined_flag_GCJ='-berok'
17632 # Determine the default libpath from the value encoded in an empty executable.
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h. */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17641 main ()
17645 return 0;
17647 _ACEOF
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_link") 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } && {
17662 test -z "$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 } && test -s conftest$ac_exeext &&
17665 $as_test_x conftest$ac_exeext; then
17667 lt_aix_libpath_sed='
17668 /Import File Strings/,/^$/ {
17669 /^0/ {
17670 s/^0 *\(.*\)$/\1/
17674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17675 # Check for a 64-bit object if we didn't find anything.
17676 if test -z "$aix_libpath"; then
17677 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17679 else
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17687 conftest$ac_exeext conftest.$ac_ext
17688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17690 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17691 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"
17692 else
17693 if test "$host_cpu" = ia64; then
17694 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17695 allow_undefined_flag_GCJ="-z nodefs"
17696 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"
17697 else
17698 # Determine the default libpath from the value encoded in an empty executable.
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h. */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17707 main ()
17711 return 0;
17713 _ACEOF
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (ac_try="$ac_link"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_link") 2>conftest.er1
17722 ac_status=$?
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } && {
17728 test -z "$ac_c_werror_flag" ||
17729 test ! -s conftest.err
17730 } && test -s conftest$ac_exeext &&
17731 $as_test_x conftest$ac_exeext; then
17733 lt_aix_libpath_sed='
17734 /Import File Strings/,/^$/ {
17735 /^0/ {
17736 s/^0 *\(.*\)$/\1/
17740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17741 # Check for a 64-bit object if we didn't find anything.
17742 if test -z "$aix_libpath"; then
17743 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17745 else
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17753 conftest$ac_exeext conftest.$ac_ext
17754 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17756 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17757 # Warning - without using the other run time loading flags,
17758 # -berok will link without error, but may produce a broken library.
17759 no_undefined_flag_GCJ=' ${wl}-bernotok'
17760 allow_undefined_flag_GCJ=' ${wl}-berok'
17761 # Exported symbols can be pulled into shared objects from archives
17762 whole_archive_flag_spec_GCJ='$convenience'
17763 archive_cmds_need_lc_GCJ=yes
17764 # This is similar to how AIX traditionally builds its shared libraries.
17765 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'
17770 amigaos*)
17771 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)'
17772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773 hardcode_minus_L_GCJ=yes
17774 # see comment about different semantics on the GNU ld section
17775 ld_shlibs_GCJ=no
17778 bsdi[45]*)
17779 export_dynamic_flag_spec_GCJ=-rdynamic
17782 cygwin* | mingw* | pw32*)
17783 # When not using gcc, we currently assume that we are using
17784 # Microsoft Visual C++.
17785 # hardcode_libdir_flag_spec is actually meaningless, as there is
17786 # no search path for DLLs.
17787 hardcode_libdir_flag_spec_GCJ=' '
17788 allow_undefined_flag_GCJ=unsupported
17789 # Tell ltmain to make .lib files, not .a files.
17790 libext=lib
17791 # Tell ltmain to make .dll files, not .so files.
17792 shrext_cmds=".dll"
17793 # FIXME: Setting linknames here is a bad hack.
17794 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17795 # The linker will automatically build a .lib file if we build a DLL.
17796 old_archive_From_new_cmds_GCJ='true'
17797 # FIXME: Should let the user specify the lib program.
17798 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17799 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17800 enable_shared_with_static_runtimes_GCJ=yes
17803 darwin* | rhapsody*)
17804 case $host_os in
17805 rhapsody* | darwin1.[012])
17806 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17808 *) # Darwin 1.3 on
17809 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17810 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17811 else
17812 case ${MACOSX_DEPLOYMENT_TARGET} in
17813 10.[012])
17814 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17816 10.*)
17817 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17819 esac
17822 esac
17823 archive_cmds_need_lc_GCJ=no
17824 hardcode_direct_GCJ=no
17825 hardcode_automatic_GCJ=yes
17826 hardcode_shlibpath_var_GCJ=unsupported
17827 whole_archive_flag_spec_GCJ=''
17828 link_all_deplibs_GCJ=yes
17829 if test "$GCC" = yes ; then
17830 output_verbose_link_cmd='echo'
17831 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17832 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17833 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17834 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17835 else
17836 case $cc_basename in
17837 xlc*)
17838 output_verbose_link_cmd='echo'
17839 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17840 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17842 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}'
17843 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}'
17846 ld_shlibs_GCJ=no
17848 esac
17852 dgux*)
17853 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17854 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17855 hardcode_shlibpath_var_GCJ=no
17858 freebsd1*)
17859 ld_shlibs_GCJ=no
17862 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17863 # support. Future versions do this automatically, but an explicit c++rt0.o
17864 # does not break anything, and helps significantly (at the cost of a little
17865 # extra space).
17866 freebsd2.2*)
17867 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17868 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17869 hardcode_direct_GCJ=yes
17870 hardcode_shlibpath_var_GCJ=no
17873 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17874 freebsd2*)
17875 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17876 hardcode_direct_GCJ=yes
17877 hardcode_minus_L_GCJ=yes
17878 hardcode_shlibpath_var_GCJ=no
17881 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17882 freebsd* | dragonfly*)
17883 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17884 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17885 hardcode_direct_GCJ=yes
17886 hardcode_shlibpath_var_GCJ=no
17889 hpux9*)
17890 if test "$GCC" = yes; then
17891 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'
17892 else
17893 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'
17895 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17896 hardcode_libdir_separator_GCJ=:
17897 hardcode_direct_GCJ=yes
17899 # hardcode_minus_L: Not really in the search PATH,
17900 # but as the default location of the library.
17901 hardcode_minus_L_GCJ=yes
17902 export_dynamic_flag_spec_GCJ='${wl}-E'
17905 hpux10*)
17906 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17907 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17908 else
17909 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17911 if test "$with_gnu_ld" = no; then
17912 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17913 hardcode_libdir_separator_GCJ=:
17915 hardcode_direct_GCJ=yes
17916 export_dynamic_flag_spec_GCJ='${wl}-E'
17918 # hardcode_minus_L: Not really in the search PATH,
17919 # but as the default location of the library.
17920 hardcode_minus_L_GCJ=yes
17924 hpux11*)
17925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17926 case $host_cpu in
17927 hppa*64*)
17928 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17930 ia64*)
17931 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17934 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17936 esac
17937 else
17938 case $host_cpu in
17939 hppa*64*)
17940 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17942 ia64*)
17943 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17946 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17948 esac
17950 if test "$with_gnu_ld" = no; then
17951 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17952 hardcode_libdir_separator_GCJ=:
17954 case $host_cpu in
17955 hppa*64*|ia64*)
17956 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17957 hardcode_direct_GCJ=no
17958 hardcode_shlibpath_var_GCJ=no
17961 hardcode_direct_GCJ=yes
17962 export_dynamic_flag_spec_GCJ='${wl}-E'
17964 # hardcode_minus_L: Not really in the search PATH,
17965 # but as the default location of the library.
17966 hardcode_minus_L_GCJ=yes
17968 esac
17972 irix5* | irix6* | nonstopux*)
17973 if test "$GCC" = yes; then
17974 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'
17975 else
17976 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'
17977 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17979 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17980 hardcode_libdir_separator_GCJ=:
17981 link_all_deplibs_GCJ=yes
17984 netbsd* | netbsdelf*-gnu)
17985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17986 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17987 else
17988 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17990 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17991 hardcode_direct_GCJ=yes
17992 hardcode_shlibpath_var_GCJ=no
17995 newsos6)
17996 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17997 hardcode_direct_GCJ=yes
17998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17999 hardcode_libdir_separator_GCJ=:
18000 hardcode_shlibpath_var_GCJ=no
18003 openbsd*)
18004 if test -f /usr/libexec/ld.so; then
18005 hardcode_direct_GCJ=yes
18006 hardcode_shlibpath_var_GCJ=no
18007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18008 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18009 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18010 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18011 export_dynamic_flag_spec_GCJ='${wl}-E'
18012 else
18013 case $host_os in
18014 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18015 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18016 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18019 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18022 esac
18024 else
18025 ld_shlibs_GCJ=no
18029 os2*)
18030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18031 hardcode_minus_L_GCJ=yes
18032 allow_undefined_flag_GCJ=unsupported
18033 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'
18034 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18037 osf3*)
18038 if test "$GCC" = yes; then
18039 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18040 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'
18041 else
18042 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18043 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'
18045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18046 hardcode_libdir_separator_GCJ=:
18049 osf4* | osf5*) # as osf3* with the addition of -msym flag
18050 if test "$GCC" = yes; then
18051 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18052 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'
18053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18054 else
18055 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18056 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'
18057 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~
18058 $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'
18060 # Both c and cxx compiler support -rpath directly
18061 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18063 hardcode_libdir_separator_GCJ=:
18066 solaris*)
18067 no_undefined_flag_GCJ=' -z text'
18068 if test "$GCC" = yes; then
18069 wlarc='${wl}'
18070 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18071 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18072 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18073 else
18074 wlarc=''
18075 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18076 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18079 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18080 hardcode_shlibpath_var_GCJ=no
18081 case $host_os in
18082 solaris2.[0-5] | solaris2.[0-5].*) ;;
18084 # The compiler driver will combine and reorder linker options,
18085 # but understands `-z linker_flag'. GCC discards it without `$wl',
18086 # but is careful enough not to reorder.
18087 # Supported since Solaris 2.6 (maybe 2.5.1?)
18088 if test "$GCC" = yes; then
18089 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18090 else
18091 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18094 esac
18095 link_all_deplibs_GCJ=yes
18098 sunos4*)
18099 if test "x$host_vendor" = xsequent; then
18100 # Use $CC to link under sequent, because it throws in some extra .o
18101 # files that make .init and .fini sections work.
18102 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18103 else
18104 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18106 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18107 hardcode_direct_GCJ=yes
18108 hardcode_minus_L_GCJ=yes
18109 hardcode_shlibpath_var_GCJ=no
18112 sysv4)
18113 case $host_vendor in
18114 sni)
18115 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18116 hardcode_direct_GCJ=yes # is this really true???
18118 siemens)
18119 ## LD is ld it makes a PLAMLIB
18120 ## CC just makes a GrossModule.
18121 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18122 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18123 hardcode_direct_GCJ=no
18125 motorola)
18126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18127 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18129 esac
18130 runpath_var='LD_RUN_PATH'
18131 hardcode_shlibpath_var_GCJ=no
18134 sysv4.3*)
18135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18136 hardcode_shlibpath_var_GCJ=no
18137 export_dynamic_flag_spec_GCJ='-Bexport'
18140 sysv4*MP*)
18141 if test -d /usr/nec; then
18142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18143 hardcode_shlibpath_var_GCJ=no
18144 runpath_var=LD_RUN_PATH
18145 hardcode_runpath_var=yes
18146 ld_shlibs_GCJ=yes
18150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18151 no_undefined_flag_GCJ='${wl}-z,text'
18152 archive_cmds_need_lc_GCJ=no
18153 hardcode_shlibpath_var_GCJ=no
18154 runpath_var='LD_RUN_PATH'
18156 if test "$GCC" = yes; then
18157 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18158 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18159 else
18160 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18161 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18165 sysv5* | sco3.2v5* | sco5v6*)
18166 # Note: We can NOT use -z defs as we might desire, because we do not
18167 # link with -lc, and that would cause any symbols used from libc to
18168 # always be unresolved, which means just about no library would
18169 # ever link correctly. If we're not using GNU ld we use -z text
18170 # though, which does catch some bad symbols but isn't as heavy-handed
18171 # as -z defs.
18172 no_undefined_flag_GCJ='${wl}-z,text'
18173 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18174 archive_cmds_need_lc_GCJ=no
18175 hardcode_shlibpath_var_GCJ=no
18176 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18177 hardcode_libdir_separator_GCJ=':'
18178 link_all_deplibs_GCJ=yes
18179 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18180 runpath_var='LD_RUN_PATH'
18182 if test "$GCC" = yes; then
18183 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18184 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18185 else
18186 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18191 uts4*)
18192 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18193 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18194 hardcode_shlibpath_var_GCJ=no
18198 ld_shlibs_GCJ=no
18200 esac
18203 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18204 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18205 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18208 # Do we need to explicitly link libc?
18210 case "x$archive_cmds_need_lc_GCJ" in
18211 x|xyes)
18212 # Assume -lc should be added
18213 archive_cmds_need_lc_GCJ=yes
18215 if test "$enable_shared" = yes && test "$GCC" = yes; then
18216 case $archive_cmds_GCJ in
18217 *'~'*)
18218 # FIXME: we may have to deal with multi-command sequences.
18220 '$CC '*)
18221 # Test whether the compiler implicitly links with -lc since on some
18222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18223 # to ld, don't add -lc before -lgcc.
18224 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18225 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18226 $rm conftest*
18227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230 (eval $ac_compile) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } 2>conftest.err; then
18234 soname=conftest
18235 lib=conftest
18236 libobjs=conftest.$ac_objext
18237 deplibs=
18238 wl=$lt_prog_compiler_wl_GCJ
18239 pic_flag=$lt_prog_compiler_pic_GCJ
18240 compiler_flags=-v
18241 linker_flags=-v
18242 verstring=
18243 output_objdir=.
18244 libname=conftest
18245 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18246 allow_undefined_flag_GCJ=
18247 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18248 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18249 ac_status=$?
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }
18252 then
18253 archive_cmds_need_lc_GCJ=no
18254 else
18255 archive_cmds_need_lc_GCJ=yes
18257 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18258 else
18259 cat conftest.err 1>&5
18261 $rm conftest*
18262 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18263 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18265 esac
18268 esac
18270 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18271 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18272 library_names_spec=
18273 libname_spec='lib$name'
18274 soname_spec=
18275 shrext_cmds=".so"
18276 postinstall_cmds=
18277 postuninstall_cmds=
18278 finish_cmds=
18279 finish_eval=
18280 shlibpath_var=
18281 shlibpath_overrides_runpath=unknown
18282 version_type=none
18283 dynamic_linker="$host_os ld.so"
18284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18286 need_lib_prefix=unknown
18287 hardcode_into_libs=no
18289 # when you set need_version to no, make sure it does not cause -set_version
18290 # flags to be left without arguments
18291 need_version=unknown
18293 case $host_os in
18294 aix3*)
18295 version_type=linux
18296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18297 shlibpath_var=LIBPATH
18299 # AIX 3 has no versioning support, so we append a major version to the name.
18300 soname_spec='${libname}${release}${shared_ext}$major'
18303 aix[4-9]*)
18304 version_type=linux
18305 need_lib_prefix=no
18306 need_version=no
18307 hardcode_into_libs=yes
18308 if test "$host_cpu" = ia64; then
18309 # AIX 5 supports IA64
18310 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18311 shlibpath_var=LD_LIBRARY_PATH
18312 else
18313 # With GCC up to 2.95.x, collect2 would create an import file
18314 # for dependence libraries. The import file would start with
18315 # the line `#! .'. This would cause the generated library to
18316 # depend on `.', always an invalid library. This was fixed in
18317 # development snapshots of GCC prior to 3.0.
18318 case $host_os in
18319 aix4 | aix4.[01] | aix4.[01].*)
18320 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18321 echo ' yes '
18322 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18324 else
18325 can_build_shared=no
18328 esac
18329 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18330 # soname into executable. Probably we can add versioning support to
18331 # collect2, so additional links can be useful in future.
18332 if test "$aix_use_runtimelinking" = yes; then
18333 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18334 # instead of lib<name>.a to let people know that these are not
18335 # typical AIX shared libraries.
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18337 else
18338 # We preserve .a as extension for shared libraries through AIX4.2
18339 # and later when we are not doing run time linking.
18340 library_names_spec='${libname}${release}.a $libname.a'
18341 soname_spec='${libname}${release}${shared_ext}$major'
18343 shlibpath_var=LIBPATH
18347 amigaos*)
18348 library_names_spec='$libname.ixlibrary $libname.a'
18349 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18350 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'
18353 beos*)
18354 library_names_spec='${libname}${shared_ext}'
18355 dynamic_linker="$host_os ld.so"
18356 shlibpath_var=LIBRARY_PATH
18359 bsdi[45]*)
18360 version_type=linux
18361 need_version=no
18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18363 soname_spec='${libname}${release}${shared_ext}$major'
18364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18368 # the default ld.so.conf also contains /usr/contrib/lib and
18369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18370 # libtool to hard-code these into programs
18373 cygwin* | mingw* | pw32*)
18374 version_type=windows
18375 shrext_cmds=".dll"
18376 need_version=no
18377 need_lib_prefix=no
18379 case $GCC,$host_os in
18380 yes,cygwin* | yes,mingw* | yes,pw32*)
18381 library_names_spec='$libname.dll.a'
18382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18383 postinstall_cmds='base_file=`basename \${file}`~
18384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18385 dldir=$destdir/`dirname \$dlpath`~
18386 test -d \$dldir || mkdir -p \$dldir~
18387 $install_prog $dir/$dlname \$dldir/$dlname~
18388 chmod a+x \$dldir/$dlname'
18389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18390 dlpath=$dir/\$dldll~
18391 $rm \$dlpath'
18392 shlibpath_overrides_runpath=yes
18394 case $host_os in
18395 cygwin*)
18396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18397 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18398 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18400 mingw*)
18401 # MinGW DLLs use traditional 'lib' prefix
18402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18403 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18404 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18405 # It is most probably a Windows format PATH printed by
18406 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18407 # path with ; separators, and with drive letters. We can handle the
18408 # drive letters (cygwin fileutils understands them), so leave them,
18409 # especially as we might pass files found there to a mingw objdump,
18410 # which wouldn't understand a cygwinified path. Ahh.
18411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18412 else
18413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18416 pw32*)
18417 # pw32 DLLs use 'pw' prefix rather than 'lib'
18418 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18420 esac
18424 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18426 esac
18427 dynamic_linker='Win32 ld.exe'
18428 # FIXME: first we should search . and the directory the executable is in
18429 shlibpath_var=PATH
18432 darwin* | rhapsody*)
18433 dynamic_linker="$host_os dyld"
18434 version_type=darwin
18435 need_lib_prefix=no
18436 need_version=no
18437 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18438 soname_spec='${libname}${release}${major}$shared_ext'
18439 shlibpath_overrides_runpath=yes
18440 shlibpath_var=DYLD_LIBRARY_PATH
18441 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18443 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18446 dgux*)
18447 version_type=linux
18448 need_lib_prefix=no
18449 need_version=no
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18451 soname_spec='${libname}${release}${shared_ext}$major'
18452 shlibpath_var=LD_LIBRARY_PATH
18455 freebsd1*)
18456 dynamic_linker=no
18459 freebsd* | dragonfly*)
18460 # DragonFly does not have aout. When/if they implement a new
18461 # versioning mechanism, adjust this.
18462 if test -x /usr/bin/objformat; then
18463 objformat=`/usr/bin/objformat`
18464 else
18465 case $host_os in
18466 freebsd[123]*) objformat=aout ;;
18467 *) objformat=elf ;;
18468 esac
18470 version_type=freebsd-$objformat
18471 case $version_type in
18472 freebsd-elf*)
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18474 need_version=no
18475 need_lib_prefix=no
18477 freebsd-*)
18478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18479 need_version=yes
18481 esac
18482 shlibpath_var=LD_LIBRARY_PATH
18483 case $host_os in
18484 freebsd2*)
18485 shlibpath_overrides_runpath=yes
18487 freebsd3.[01]* | freebsdelf3.[01]*)
18488 shlibpath_overrides_runpath=yes
18489 hardcode_into_libs=yes
18491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18493 shlibpath_overrides_runpath=no
18494 hardcode_into_libs=yes
18496 *) # from 4.6 on, and DragonFly
18497 shlibpath_overrides_runpath=yes
18498 hardcode_into_libs=yes
18500 esac
18503 gnu*)
18504 version_type=linux
18505 need_lib_prefix=no
18506 need_version=no
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 shlibpath_var=LD_LIBRARY_PATH
18510 hardcode_into_libs=yes
18513 hpux9* | hpux10* | hpux11*)
18514 # Give a soname corresponding to the major version so that dld.sl refuses to
18515 # link against other versions.
18516 version_type=sunos
18517 need_lib_prefix=no
18518 need_version=no
18519 case $host_cpu in
18520 ia64*)
18521 shrext_cmds='.so'
18522 hardcode_into_libs=yes
18523 dynamic_linker="$host_os dld.so"
18524 shlibpath_var=LD_LIBRARY_PATH
18525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18527 soname_spec='${libname}${release}${shared_ext}$major'
18528 if test "X$HPUX_IA64_MODE" = X32; then
18529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18530 else
18531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18535 hppa*64*)
18536 shrext_cmds='.sl'
18537 hardcode_into_libs=yes
18538 dynamic_linker="$host_os dld.sl"
18539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18542 soname_spec='${libname}${release}${shared_ext}$major'
18543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18547 shrext_cmds='.sl'
18548 dynamic_linker="$host_os dld.sl"
18549 shlibpath_var=SHLIB_PATH
18550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552 soname_spec='${libname}${release}${shared_ext}$major'
18554 esac
18555 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18556 postinstall_cmds='chmod 555 $lib'
18559 interix[3-9]*)
18560 version_type=linux
18561 need_lib_prefix=no
18562 need_version=no
18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18564 soname_spec='${libname}${release}${shared_ext}$major'
18565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18566 shlibpath_var=LD_LIBRARY_PATH
18567 shlibpath_overrides_runpath=no
18568 hardcode_into_libs=yes
18571 irix5* | irix6* | nonstopux*)
18572 case $host_os in
18573 nonstopux*) version_type=nonstopux ;;
18575 if test "$lt_cv_prog_gnu_ld" = yes; then
18576 version_type=linux
18577 else
18578 version_type=irix
18579 fi ;;
18580 esac
18581 need_lib_prefix=no
18582 need_version=no
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18585 case $host_os in
18586 irix5* | nonstopux*)
18587 libsuff= shlibsuff=
18590 case $LD in # libtool.m4 will add one of these switches to LD
18591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18592 libsuff= shlibsuff= libmagic=32-bit;;
18593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18594 libsuff=32 shlibsuff=N32 libmagic=N32;;
18595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18597 *) libsuff= shlibsuff= libmagic=never-match;;
18598 esac
18600 esac
18601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18602 shlibpath_overrides_runpath=no
18603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18605 hardcode_into_libs=yes
18608 # No shared lib support for Linux oldld, aout, or coff.
18609 linux*oldld* | linux*aout* | linux*coff*)
18610 dynamic_linker=no
18613 # This must be Linux ELF.
18614 linux* | k*bsd*-gnu)
18615 version_type=linux
18616 need_lib_prefix=no
18617 need_version=no
18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619 soname_spec='${libname}${release}${shared_ext}$major'
18620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=no
18623 # This implies no fast_install, which is unacceptable.
18624 # Some rework will be needed to allow for fast_install
18625 # before this can be enabled.
18626 hardcode_into_libs=yes
18628 # Append ld.so.conf contents to the search path
18629 if test -f /etc/ld.so.conf; then
18630 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' ' '`
18631 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18634 # We used to test for /lib/ld.so.1 and disable shared libraries on
18635 # powerpc, because MkLinux only supported shared libraries with the
18636 # GNU dynamic linker. Since this was broken with cross compilers,
18637 # most powerpc-linux boxes support dynamic linking these days and
18638 # people can always --disable-shared, the test was removed, and we
18639 # assume the GNU/Linux dynamic linker is in use.
18640 dynamic_linker='GNU/Linux ld.so'
18643 netbsdelf*-gnu)
18644 version_type=linux
18645 need_lib_prefix=no
18646 need_version=no
18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18648 soname_spec='${libname}${release}${shared_ext}$major'
18649 shlibpath_var=LD_LIBRARY_PATH
18650 shlibpath_overrides_runpath=no
18651 hardcode_into_libs=yes
18652 dynamic_linker='NetBSD ld.elf_so'
18655 netbsd*)
18656 version_type=sunos
18657 need_lib_prefix=no
18658 need_version=no
18659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18662 dynamic_linker='NetBSD (a.out) ld.so'
18663 else
18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18665 soname_spec='${libname}${release}${shared_ext}$major'
18666 dynamic_linker='NetBSD ld.elf_so'
18668 shlibpath_var=LD_LIBRARY_PATH
18669 shlibpath_overrides_runpath=yes
18670 hardcode_into_libs=yes
18673 newsos6)
18674 version_type=linux
18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18676 shlibpath_var=LD_LIBRARY_PATH
18677 shlibpath_overrides_runpath=yes
18680 nto-qnx*)
18681 version_type=linux
18682 need_lib_prefix=no
18683 need_version=no
18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18685 soname_spec='${libname}${release}${shared_ext}$major'
18686 shlibpath_var=LD_LIBRARY_PATH
18687 shlibpath_overrides_runpath=yes
18690 openbsd*)
18691 version_type=sunos
18692 sys_lib_dlsearch_path_spec="/usr/lib"
18693 need_lib_prefix=no
18694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18695 case $host_os in
18696 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18697 *) need_version=no ;;
18698 esac
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18701 shlibpath_var=LD_LIBRARY_PATH
18702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18703 case $host_os in
18704 openbsd2.[89] | openbsd2.[89].*)
18705 shlibpath_overrides_runpath=no
18708 shlibpath_overrides_runpath=yes
18710 esac
18711 else
18712 shlibpath_overrides_runpath=yes
18716 os2*)
18717 libname_spec='$name'
18718 shrext_cmds=".dll"
18719 need_lib_prefix=no
18720 library_names_spec='$libname${shared_ext} $libname.a'
18721 dynamic_linker='OS/2 ld.exe'
18722 shlibpath_var=LIBPATH
18725 osf3* | osf4* | osf5*)
18726 version_type=osf
18727 need_lib_prefix=no
18728 need_version=no
18729 soname_spec='${libname}${release}${shared_ext}$major'
18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18731 shlibpath_var=LD_LIBRARY_PATH
18732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18736 rdos*)
18737 dynamic_linker=no
18740 solaris*)
18741 version_type=linux
18742 need_lib_prefix=no
18743 need_version=no
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 soname_spec='${libname}${release}${shared_ext}$major'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 shlibpath_overrides_runpath=yes
18748 hardcode_into_libs=yes
18749 # ldd complains unless libraries are executable
18750 postinstall_cmds='chmod +x $lib'
18753 sunos4*)
18754 version_type=sunos
18755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18757 shlibpath_var=LD_LIBRARY_PATH
18758 shlibpath_overrides_runpath=yes
18759 if test "$with_gnu_ld" = yes; then
18760 need_lib_prefix=no
18762 need_version=yes
18765 sysv4 | sysv4.3*)
18766 version_type=linux
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 shlibpath_var=LD_LIBRARY_PATH
18770 case $host_vendor in
18771 sni)
18772 shlibpath_overrides_runpath=no
18773 need_lib_prefix=no
18774 export_dynamic_flag_spec='${wl}-Blargedynsym'
18775 runpath_var=LD_RUN_PATH
18777 siemens)
18778 need_lib_prefix=no
18780 motorola)
18781 need_lib_prefix=no
18782 need_version=no
18783 shlibpath_overrides_runpath=no
18784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18786 esac
18789 sysv4*MP*)
18790 if test -d /usr/nec ;then
18791 version_type=linux
18792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18793 soname_spec='$libname${shared_ext}.$major'
18794 shlibpath_var=LD_LIBRARY_PATH
18798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18799 version_type=freebsd-elf
18800 need_lib_prefix=no
18801 need_version=no
18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18803 soname_spec='${libname}${release}${shared_ext}$major'
18804 shlibpath_var=LD_LIBRARY_PATH
18805 hardcode_into_libs=yes
18806 if test "$with_gnu_ld" = yes; then
18807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18808 shlibpath_overrides_runpath=no
18809 else
18810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18811 shlibpath_overrides_runpath=yes
18812 case $host_os in
18813 sco3.2v5*)
18814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18816 esac
18818 sys_lib_dlsearch_path_spec='/usr/lib'
18821 uts4*)
18822 version_type=linux
18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18824 soname_spec='${libname}${release}${shared_ext}$major'
18825 shlibpath_var=LD_LIBRARY_PATH
18829 dynamic_linker=no
18831 esac
18832 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18833 echo "${ECHO_T}$dynamic_linker" >&6; }
18834 test "$dynamic_linker" = no && can_build_shared=no
18836 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18842 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18843 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18849 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18852 if test "$GCC" = yes; then
18853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18856 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18857 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18858 hardcode_action_GCJ=
18859 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18860 test -n "$runpath_var_GCJ" || \
18861 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18863 # We can hardcode non-existant directories.
18864 if test "$hardcode_direct_GCJ" != no &&
18865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18866 # have to relink, otherwise we might link with an installed library
18867 # when we should be linking with a yet-to-be-installed one
18868 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18869 test "$hardcode_minus_L_GCJ" != no; then
18870 # Linking always hardcodes the temporary library directory.
18871 hardcode_action_GCJ=relink
18872 else
18873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18874 hardcode_action_GCJ=immediate
18876 else
18877 # We cannot hardcode anything, or else we can only hardcode existing
18878 # directories.
18879 hardcode_action_GCJ=unsupported
18881 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18882 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18884 if test "$hardcode_action_GCJ" = relink; then
18885 # Fast installation is not supported
18886 enable_fast_install=no
18887 elif test "$shlibpath_overrides_runpath" = yes ||
18888 test "$enable_shared" = no; then
18889 # Fast installation is not necessary
18890 enable_fast_install=needless
18894 # The else clause should only fire when bootstrapping the
18895 # libtool distribution, otherwise you forgot to ship ltmain.sh
18896 # with your package, and you will get complaints that there are
18897 # no rules to generate ltmain.sh.
18898 if test -f "$ltmain"; then
18899 # See if we are running on zsh, and set the options which allow our commands through
18900 # without removal of \ escapes.
18901 if test -n "${ZSH_VERSION+set}" ; then
18902 setopt NO_GLOB_SUBST
18904 # Now quote all the things that may contain metacharacters while being
18905 # careful not to overquote the AC_SUBSTed values. We take copies of the
18906 # variables and quote the copies for generation of the libtool script.
18907 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18908 SED SHELL STRIP \
18909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18911 deplibs_check_method reload_flag reload_cmds need_locks \
18912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18913 lt_cv_sys_global_symbol_to_c_name_address \
18914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18915 old_postinstall_cmds old_postuninstall_cmds \
18916 compiler_GCJ \
18917 CC_GCJ \
18918 LD_GCJ \
18919 lt_prog_compiler_wl_GCJ \
18920 lt_prog_compiler_pic_GCJ \
18921 lt_prog_compiler_static_GCJ \
18922 lt_prog_compiler_no_builtin_flag_GCJ \
18923 export_dynamic_flag_spec_GCJ \
18924 thread_safe_flag_spec_GCJ \
18925 whole_archive_flag_spec_GCJ \
18926 enable_shared_with_static_runtimes_GCJ \
18927 old_archive_cmds_GCJ \
18928 old_archive_from_new_cmds_GCJ \
18929 predep_objects_GCJ \
18930 postdep_objects_GCJ \
18931 predeps_GCJ \
18932 postdeps_GCJ \
18933 compiler_lib_search_path_GCJ \
18934 compiler_lib_search_dirs_GCJ \
18935 archive_cmds_GCJ \
18936 archive_expsym_cmds_GCJ \
18937 postinstall_cmds_GCJ \
18938 postuninstall_cmds_GCJ \
18939 old_archive_from_expsyms_cmds_GCJ \
18940 allow_undefined_flag_GCJ \
18941 no_undefined_flag_GCJ \
18942 export_symbols_cmds_GCJ \
18943 hardcode_libdir_flag_spec_GCJ \
18944 hardcode_libdir_flag_spec_ld_GCJ \
18945 hardcode_libdir_separator_GCJ \
18946 hardcode_automatic_GCJ \
18947 module_cmds_GCJ \
18948 module_expsym_cmds_GCJ \
18949 lt_cv_prog_compiler_c_o_GCJ \
18950 fix_srcfile_path_GCJ \
18951 exclude_expsyms_GCJ \
18952 include_expsyms_GCJ; do
18954 case $var in
18955 old_archive_cmds_GCJ | \
18956 old_archive_from_new_cmds_GCJ | \
18957 archive_cmds_GCJ | \
18958 archive_expsym_cmds_GCJ | \
18959 module_cmds_GCJ | \
18960 module_expsym_cmds_GCJ | \
18961 old_archive_from_expsyms_cmds_GCJ | \
18962 export_symbols_cmds_GCJ | \
18963 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18964 postinstall_cmds | postuninstall_cmds | \
18965 old_postinstall_cmds | old_postuninstall_cmds | \
18966 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18967 # Double-quote double-evaled strings.
18968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18973 esac
18974 done
18976 case $lt_echo in
18977 *'\$0 --fallback-echo"')
18978 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18980 esac
18982 cfgfile="$ofile"
18984 cat <<__EOF__ >> "$cfgfile"
18985 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18987 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18989 # Shell to use when invoking shell scripts.
18990 SHELL=$lt_SHELL
18992 # Whether or not to build shared libraries.
18993 build_libtool_libs=$enable_shared
18995 # Whether or not to build static libraries.
18996 build_old_libs=$enable_static
18998 # Whether or not to add -lc for building shared libraries.
18999 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19001 # Whether or not to disallow shared libs when runtime libs are static
19002 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19004 # Whether or not to optimize for fast installation.
19005 fast_install=$enable_fast_install
19007 # The host system.
19008 host_alias=$host_alias
19009 host=$host
19010 host_os=$host_os
19012 # The build system.
19013 build_alias=$build_alias
19014 build=$build
19015 build_os=$build_os
19017 # An echo program that does not interpret backslashes.
19018 echo=$lt_echo
19020 # The archiver.
19021 AR=$lt_AR
19022 AR_FLAGS=$lt_AR_FLAGS
19024 # A C compiler.
19025 LTCC=$lt_LTCC
19027 # LTCC compiler flags.
19028 LTCFLAGS=$lt_LTCFLAGS
19030 # A language-specific compiler.
19031 CC=$lt_compiler_GCJ
19033 # Is the compiler the GNU C compiler?
19034 with_gcc=$GCC_GCJ
19036 # An ERE matcher.
19037 EGREP=$lt_EGREP
19039 # The linker used to build libraries.
19040 LD=$lt_LD_GCJ
19042 # Whether we need hard or soft links.
19043 LN_S=$lt_LN_S
19045 # A BSD-compatible nm program.
19046 NM=$lt_NM
19048 # A symbol stripping program
19049 STRIP=$lt_STRIP
19051 # Used to examine libraries when file_magic_cmd begins "file"
19052 MAGIC_CMD=$MAGIC_CMD
19054 # Used on cygwin: DLL creation program.
19055 DLLTOOL="$DLLTOOL"
19057 # Used on cygwin: object dumper.
19058 OBJDUMP="$OBJDUMP"
19060 # Used on cygwin: assembler.
19061 AS="$AS"
19063 # The name of the directory that contains temporary libtool files.
19064 objdir=$objdir
19066 # How to create reloadable object files.
19067 reload_flag=$lt_reload_flag
19068 reload_cmds=$lt_reload_cmds
19070 # How to pass a linker flag through the compiler.
19071 wl=$lt_lt_prog_compiler_wl_GCJ
19073 # Object file suffix (normally "o").
19074 objext="$ac_objext"
19076 # Old archive suffix (normally "a").
19077 libext="$libext"
19079 # Shared library suffix (normally ".so").
19080 shrext_cmds='$shrext_cmds'
19082 # Executable file suffix (normally "").
19083 exeext="$exeext"
19085 # Additional compiler flags for building library objects.
19086 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19087 pic_mode=$pic_mode
19089 # What is the maximum length of a command?
19090 max_cmd_len=$lt_cv_sys_max_cmd_len
19092 # Does compiler simultaneously support -c and -o options?
19093 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19095 # Must we lock files when doing compilation?
19096 need_locks=$lt_need_locks
19098 # Do we need the lib prefix for modules?
19099 need_lib_prefix=$need_lib_prefix
19101 # Do we need a version for libraries?
19102 need_version=$need_version
19104 # Whether dlopen is supported.
19105 dlopen_support=$enable_dlopen
19107 # Whether dlopen of programs is supported.
19108 dlopen_self=$enable_dlopen_self
19110 # Whether dlopen of statically linked programs is supported.
19111 dlopen_self_static=$enable_dlopen_self_static
19113 # Compiler flag to prevent dynamic linking.
19114 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19116 # Compiler flag to turn off builtin functions.
19117 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19119 # Compiler flag to allow reflexive dlopens.
19120 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19122 # Compiler flag to generate shared objects directly from archives.
19123 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19125 # Compiler flag to generate thread-safe objects.
19126 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19128 # Library versioning type.
19129 version_type=$version_type
19131 # Format of library name prefix.
19132 libname_spec=$lt_libname_spec
19134 # List of archive names. First name is the real one, the rest are links.
19135 # The last name is the one that the linker finds with -lNAME.
19136 library_names_spec=$lt_library_names_spec
19138 # The coded name of the library, if different from the real name.
19139 soname_spec=$lt_soname_spec
19141 # Commands used to build and install an old-style archive.
19142 RANLIB=$lt_RANLIB
19143 old_archive_cmds=$lt_old_archive_cmds_GCJ
19144 old_postinstall_cmds=$lt_old_postinstall_cmds
19145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19147 # Create an old-style archive from a shared archive.
19148 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19150 # Create a temporary old-style archive to link instead of a shared archive.
19151 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19153 # Commands used to build and install a shared archive.
19154 archive_cmds=$lt_archive_cmds_GCJ
19155 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19156 postinstall_cmds=$lt_postinstall_cmds
19157 postuninstall_cmds=$lt_postuninstall_cmds
19159 # Commands used to build a loadable module (assumed same as above if empty)
19160 module_cmds=$lt_module_cmds_GCJ
19161 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19163 # Commands to strip libraries.
19164 old_striplib=$lt_old_striplib
19165 striplib=$lt_striplib
19167 # Dependencies to place before the objects being linked to create a
19168 # shared library.
19169 predep_objects=$lt_predep_objects_GCJ
19171 # Dependencies to place after the objects being linked to create a
19172 # shared library.
19173 postdep_objects=$lt_postdep_objects_GCJ
19175 # Dependencies to place before the objects being linked to create a
19176 # shared library.
19177 predeps=$lt_predeps_GCJ
19179 # Dependencies to place after the objects being linked to create a
19180 # shared library.
19181 postdeps=$lt_postdeps_GCJ
19183 # The directories searched by this compiler when creating a shared
19184 # library
19185 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19187 # The library search path used internally by the compiler when linking
19188 # a shared library.
19189 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19191 # Method to check whether dependent libraries are shared objects.
19192 deplibs_check_method=$lt_deplibs_check_method
19194 # Command to use when deplibs_check_method == file_magic.
19195 file_magic_cmd=$lt_file_magic_cmd
19197 # Flag that allows shared libraries with undefined symbols to be built.
19198 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19200 # Flag that forces no undefined symbols.
19201 no_undefined_flag=$lt_no_undefined_flag_GCJ
19203 # Commands used to finish a libtool library installation in a directory.
19204 finish_cmds=$lt_finish_cmds
19206 # Same as above, but a single script fragment to be evaled but not shown.
19207 finish_eval=$lt_finish_eval
19209 # Take the output of nm and produce a listing of raw symbols and C names.
19210 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19212 # Transform the output of nm in a proper C declaration
19213 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19215 # Transform the output of nm in a C name address pair
19216 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19218 # This is the shared library runtime path variable.
19219 runpath_var=$runpath_var
19221 # This is the shared library path variable.
19222 shlibpath_var=$shlibpath_var
19224 # Is shlibpath searched before the hard-coded library search path?
19225 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19227 # How to hardcode a shared library path into an executable.
19228 hardcode_action=$hardcode_action_GCJ
19230 # Whether we should hardcode library paths into libraries.
19231 hardcode_into_libs=$hardcode_into_libs
19233 # Flag to hardcode \$libdir into a binary during linking.
19234 # This must work even if \$libdir does not exist.
19235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19237 # If ld is used when linking, flag to hardcode \$libdir into
19238 # a binary during linking. This must work even if \$libdir does
19239 # not exist.
19240 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19242 # Whether we need a single -rpath flag with a separated argument.
19243 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19245 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19246 # resulting binary.
19247 hardcode_direct=$hardcode_direct_GCJ
19249 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19250 # resulting binary.
19251 hardcode_minus_L=$hardcode_minus_L_GCJ
19253 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19254 # the resulting binary.
19255 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19257 # Set to yes if building a shared library automatically hardcodes DIR into the library
19258 # and all subsequent libraries and executables linked against it.
19259 hardcode_automatic=$hardcode_automatic_GCJ
19261 # Variables whose values should be saved in libtool wrapper scripts and
19262 # restored at relink time.
19263 variables_saved_for_relink="$variables_saved_for_relink"
19265 # Whether libtool must link a program against all its dependency libraries.
19266 link_all_deplibs=$link_all_deplibs_GCJ
19268 # Compile-time system search path for libraries
19269 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19271 # Run-time system search path for libraries
19272 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19274 # Fix the shell variable \$srcfile for the compiler.
19275 fix_srcfile_path=$lt_fix_srcfile_path
19277 # Set to yes if exported symbols are required.
19278 always_export_symbols=$always_export_symbols_GCJ
19280 # The commands to list exported symbols.
19281 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19283 # The commands to extract the exported symbol list from a shared archive.
19284 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19286 # Symbols that should not be listed in the preloaded symbols.
19287 exclude_expsyms=$lt_exclude_expsyms_GCJ
19289 # Symbols that must always be exported.
19290 include_expsyms=$lt_include_expsyms_GCJ
19292 # ### END LIBTOOL TAG CONFIG: $tagname
19294 __EOF__
19297 else
19298 # If there is no Makefile yet, we rely on a make rule to execute
19299 # `config.status --recheck' to rerun these tests and create the
19300 # libtool script then.
19301 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19302 if test -f "$ltmain_in"; then
19303 test -f Makefile && make "$ltmain"
19308 ac_ext=c
19309 ac_cpp='$CPP $CPPFLAGS'
19310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19314 CC="$lt_save_CC"
19316 else
19317 tagname=""
19324 # Source file extension for RC test sources.
19325 ac_ext=rc
19327 # Object file extension for compiled RC test sources.
19328 objext=o
19329 objext_RC=$objext
19331 # Code to be used in simple compile tests
19332 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19334 # Code to be used in simple link tests
19335 lt_simple_link_test_code="$lt_simple_compile_test_code"
19337 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19339 # If no C compiler was specified, use CC.
19340 LTCC=${LTCC-"$CC"}
19342 # If no C compiler flags were specified, use CFLAGS.
19343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19345 # Allow CC to be a program name with arguments.
19346 compiler=$CC
19349 # save warnings/boilerplate of simple test code
19350 ac_outfile=conftest.$ac_objext
19351 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19352 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19353 _lt_compiler_boilerplate=`cat conftest.err`
19354 $rm conftest*
19356 ac_outfile=conftest.$ac_objext
19357 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19358 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19359 _lt_linker_boilerplate=`cat conftest.err`
19360 $rm -r conftest*
19363 # Allow CC to be a program name with arguments.
19364 lt_save_CC="$CC"
19365 CC=${RC-"windres"}
19366 compiler=$CC
19367 compiler_RC=$CC
19368 for cc_temp in $compiler""; do
19369 case $cc_temp in
19370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19372 \-*) ;;
19373 *) break;;
19374 esac
19375 done
19376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19378 lt_cv_prog_compiler_c_o_RC=yes
19380 # The else clause should only fire when bootstrapping the
19381 # libtool distribution, otherwise you forgot to ship ltmain.sh
19382 # with your package, and you will get complaints that there are
19383 # no rules to generate ltmain.sh.
19384 if test -f "$ltmain"; then
19385 # See if we are running on zsh, and set the options which allow our commands through
19386 # without removal of \ escapes.
19387 if test -n "${ZSH_VERSION+set}" ; then
19388 setopt NO_GLOB_SUBST
19390 # Now quote all the things that may contain metacharacters while being
19391 # careful not to overquote the AC_SUBSTed values. We take copies of the
19392 # variables and quote the copies for generation of the libtool script.
19393 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19394 SED SHELL STRIP \
19395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19397 deplibs_check_method reload_flag reload_cmds need_locks \
19398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19399 lt_cv_sys_global_symbol_to_c_name_address \
19400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19401 old_postinstall_cmds old_postuninstall_cmds \
19402 compiler_RC \
19403 CC_RC \
19404 LD_RC \
19405 lt_prog_compiler_wl_RC \
19406 lt_prog_compiler_pic_RC \
19407 lt_prog_compiler_static_RC \
19408 lt_prog_compiler_no_builtin_flag_RC \
19409 export_dynamic_flag_spec_RC \
19410 thread_safe_flag_spec_RC \
19411 whole_archive_flag_spec_RC \
19412 enable_shared_with_static_runtimes_RC \
19413 old_archive_cmds_RC \
19414 old_archive_from_new_cmds_RC \
19415 predep_objects_RC \
19416 postdep_objects_RC \
19417 predeps_RC \
19418 postdeps_RC \
19419 compiler_lib_search_path_RC \
19420 compiler_lib_search_dirs_RC \
19421 archive_cmds_RC \
19422 archive_expsym_cmds_RC \
19423 postinstall_cmds_RC \
19424 postuninstall_cmds_RC \
19425 old_archive_from_expsyms_cmds_RC \
19426 allow_undefined_flag_RC \
19427 no_undefined_flag_RC \
19428 export_symbols_cmds_RC \
19429 hardcode_libdir_flag_spec_RC \
19430 hardcode_libdir_flag_spec_ld_RC \
19431 hardcode_libdir_separator_RC \
19432 hardcode_automatic_RC \
19433 module_cmds_RC \
19434 module_expsym_cmds_RC \
19435 lt_cv_prog_compiler_c_o_RC \
19436 fix_srcfile_path_RC \
19437 exclude_expsyms_RC \
19438 include_expsyms_RC; do
19440 case $var in
19441 old_archive_cmds_RC | \
19442 old_archive_from_new_cmds_RC | \
19443 archive_cmds_RC | \
19444 archive_expsym_cmds_RC | \
19445 module_cmds_RC | \
19446 module_expsym_cmds_RC | \
19447 old_archive_from_expsyms_cmds_RC | \
19448 export_symbols_cmds_RC | \
19449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19450 postinstall_cmds | postuninstall_cmds | \
19451 old_postinstall_cmds | old_postuninstall_cmds | \
19452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19453 # Double-quote double-evaled strings.
19454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19459 esac
19460 done
19462 case $lt_echo in
19463 *'\$0 --fallback-echo"')
19464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19466 esac
19468 cfgfile="$ofile"
19470 cat <<__EOF__ >> "$cfgfile"
19471 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19475 # Shell to use when invoking shell scripts.
19476 SHELL=$lt_SHELL
19478 # Whether or not to build shared libraries.
19479 build_libtool_libs=$enable_shared
19481 # Whether or not to build static libraries.
19482 build_old_libs=$enable_static
19484 # Whether or not to add -lc for building shared libraries.
19485 build_libtool_need_lc=$archive_cmds_need_lc_RC
19487 # Whether or not to disallow shared libs when runtime libs are static
19488 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19490 # Whether or not to optimize for fast installation.
19491 fast_install=$enable_fast_install
19493 # The host system.
19494 host_alias=$host_alias
19495 host=$host
19496 host_os=$host_os
19498 # The build system.
19499 build_alias=$build_alias
19500 build=$build
19501 build_os=$build_os
19503 # An echo program that does not interpret backslashes.
19504 echo=$lt_echo
19506 # The archiver.
19507 AR=$lt_AR
19508 AR_FLAGS=$lt_AR_FLAGS
19510 # A C compiler.
19511 LTCC=$lt_LTCC
19513 # LTCC compiler flags.
19514 LTCFLAGS=$lt_LTCFLAGS
19516 # A language-specific compiler.
19517 CC=$lt_compiler_RC
19519 # Is the compiler the GNU C compiler?
19520 with_gcc=$GCC_RC
19522 # An ERE matcher.
19523 EGREP=$lt_EGREP
19525 # The linker used to build libraries.
19526 LD=$lt_LD_RC
19528 # Whether we need hard or soft links.
19529 LN_S=$lt_LN_S
19531 # A BSD-compatible nm program.
19532 NM=$lt_NM
19534 # A symbol stripping program
19535 STRIP=$lt_STRIP
19537 # Used to examine libraries when file_magic_cmd begins "file"
19538 MAGIC_CMD=$MAGIC_CMD
19540 # Used on cygwin: DLL creation program.
19541 DLLTOOL="$DLLTOOL"
19543 # Used on cygwin: object dumper.
19544 OBJDUMP="$OBJDUMP"
19546 # Used on cygwin: assembler.
19547 AS="$AS"
19549 # The name of the directory that contains temporary libtool files.
19550 objdir=$objdir
19552 # How to create reloadable object files.
19553 reload_flag=$lt_reload_flag
19554 reload_cmds=$lt_reload_cmds
19556 # How to pass a linker flag through the compiler.
19557 wl=$lt_lt_prog_compiler_wl_RC
19559 # Object file suffix (normally "o").
19560 objext="$ac_objext"
19562 # Old archive suffix (normally "a").
19563 libext="$libext"
19565 # Shared library suffix (normally ".so").
19566 shrext_cmds='$shrext_cmds'
19568 # Executable file suffix (normally "").
19569 exeext="$exeext"
19571 # Additional compiler flags for building library objects.
19572 pic_flag=$lt_lt_prog_compiler_pic_RC
19573 pic_mode=$pic_mode
19575 # What is the maximum length of a command?
19576 max_cmd_len=$lt_cv_sys_max_cmd_len
19578 # Does compiler simultaneously support -c and -o options?
19579 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19581 # Must we lock files when doing compilation?
19582 need_locks=$lt_need_locks
19584 # Do we need the lib prefix for modules?
19585 need_lib_prefix=$need_lib_prefix
19587 # Do we need a version for libraries?
19588 need_version=$need_version
19590 # Whether dlopen is supported.
19591 dlopen_support=$enable_dlopen
19593 # Whether dlopen of programs is supported.
19594 dlopen_self=$enable_dlopen_self
19596 # Whether dlopen of statically linked programs is supported.
19597 dlopen_self_static=$enable_dlopen_self_static
19599 # Compiler flag to prevent dynamic linking.
19600 link_static_flag=$lt_lt_prog_compiler_static_RC
19602 # Compiler flag to turn off builtin functions.
19603 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19605 # Compiler flag to allow reflexive dlopens.
19606 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19608 # Compiler flag to generate shared objects directly from archives.
19609 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19611 # Compiler flag to generate thread-safe objects.
19612 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19614 # Library versioning type.
19615 version_type=$version_type
19617 # Format of library name prefix.
19618 libname_spec=$lt_libname_spec
19620 # List of archive names. First name is the real one, the rest are links.
19621 # The last name is the one that the linker finds with -lNAME.
19622 library_names_spec=$lt_library_names_spec
19624 # The coded name of the library, if different from the real name.
19625 soname_spec=$lt_soname_spec
19627 # Commands used to build and install an old-style archive.
19628 RANLIB=$lt_RANLIB
19629 old_archive_cmds=$lt_old_archive_cmds_RC
19630 old_postinstall_cmds=$lt_old_postinstall_cmds
19631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19633 # Create an old-style archive from a shared archive.
19634 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19636 # Create a temporary old-style archive to link instead of a shared archive.
19637 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19639 # Commands used to build and install a shared archive.
19640 archive_cmds=$lt_archive_cmds_RC
19641 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19642 postinstall_cmds=$lt_postinstall_cmds
19643 postuninstall_cmds=$lt_postuninstall_cmds
19645 # Commands used to build a loadable module (assumed same as above if empty)
19646 module_cmds=$lt_module_cmds_RC
19647 module_expsym_cmds=$lt_module_expsym_cmds_RC
19649 # Commands to strip libraries.
19650 old_striplib=$lt_old_striplib
19651 striplib=$lt_striplib
19653 # Dependencies to place before the objects being linked to create a
19654 # shared library.
19655 predep_objects=$lt_predep_objects_RC
19657 # Dependencies to place after the objects being linked to create a
19658 # shared library.
19659 postdep_objects=$lt_postdep_objects_RC
19661 # Dependencies to place before the objects being linked to create a
19662 # shared library.
19663 predeps=$lt_predeps_RC
19665 # Dependencies to place after the objects being linked to create a
19666 # shared library.
19667 postdeps=$lt_postdeps_RC
19669 # The directories searched by this compiler when creating a shared
19670 # library
19671 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19673 # The library search path used internally by the compiler when linking
19674 # a shared library.
19675 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19677 # Method to check whether dependent libraries are shared objects.
19678 deplibs_check_method=$lt_deplibs_check_method
19680 # Command to use when deplibs_check_method == file_magic.
19681 file_magic_cmd=$lt_file_magic_cmd
19683 # Flag that allows shared libraries with undefined symbols to be built.
19684 allow_undefined_flag=$lt_allow_undefined_flag_RC
19686 # Flag that forces no undefined symbols.
19687 no_undefined_flag=$lt_no_undefined_flag_RC
19689 # Commands used to finish a libtool library installation in a directory.
19690 finish_cmds=$lt_finish_cmds
19692 # Same as above, but a single script fragment to be evaled but not shown.
19693 finish_eval=$lt_finish_eval
19695 # Take the output of nm and produce a listing of raw symbols and C names.
19696 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19698 # Transform the output of nm in a proper C declaration
19699 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19701 # Transform the output of nm in a C name address pair
19702 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19704 # This is the shared library runtime path variable.
19705 runpath_var=$runpath_var
19707 # This is the shared library path variable.
19708 shlibpath_var=$shlibpath_var
19710 # Is shlibpath searched before the hard-coded library search path?
19711 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19713 # How to hardcode a shared library path into an executable.
19714 hardcode_action=$hardcode_action_RC
19716 # Whether we should hardcode library paths into libraries.
19717 hardcode_into_libs=$hardcode_into_libs
19719 # Flag to hardcode \$libdir into a binary during linking.
19720 # This must work even if \$libdir does not exist.
19721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19723 # If ld is used when linking, flag to hardcode \$libdir into
19724 # a binary during linking. This must work even if \$libdir does
19725 # not exist.
19726 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19728 # Whether we need a single -rpath flag with a separated argument.
19729 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19731 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19732 # resulting binary.
19733 hardcode_direct=$hardcode_direct_RC
19735 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19736 # resulting binary.
19737 hardcode_minus_L=$hardcode_minus_L_RC
19739 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19740 # the resulting binary.
19741 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19743 # Set to yes if building a shared library automatically hardcodes DIR into the library
19744 # and all subsequent libraries and executables linked against it.
19745 hardcode_automatic=$hardcode_automatic_RC
19747 # Variables whose values should be saved in libtool wrapper scripts and
19748 # restored at relink time.
19749 variables_saved_for_relink="$variables_saved_for_relink"
19751 # Whether libtool must link a program against all its dependency libraries.
19752 link_all_deplibs=$link_all_deplibs_RC
19754 # Compile-time system search path for libraries
19755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19757 # Run-time system search path for libraries
19758 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19760 # Fix the shell variable \$srcfile for the compiler.
19761 fix_srcfile_path=$lt_fix_srcfile_path
19763 # Set to yes if exported symbols are required.
19764 always_export_symbols=$always_export_symbols_RC
19766 # The commands to list exported symbols.
19767 export_symbols_cmds=$lt_export_symbols_cmds_RC
19769 # The commands to extract the exported symbol list from a shared archive.
19770 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19772 # Symbols that should not be listed in the preloaded symbols.
19773 exclude_expsyms=$lt_exclude_expsyms_RC
19775 # Symbols that must always be exported.
19776 include_expsyms=$lt_include_expsyms_RC
19778 # ### END LIBTOOL TAG CONFIG: $tagname
19780 __EOF__
19783 else
19784 # If there is no Makefile yet, we rely on a make rule to execute
19785 # `config.status --recheck' to rerun these tests and create the
19786 # libtool script then.
19787 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19788 if test -f "$ltmain_in"; then
19789 test -f Makefile && make "$ltmain"
19794 ac_ext=c
19795 ac_cpp='$CPP $CPPFLAGS'
19796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19800 CC="$lt_save_CC"
19805 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19806 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19807 { (exit 1); exit 1; }; }
19809 esac
19811 # Append the new tag name to the list of available tags.
19812 if test -n "$tagname" ; then
19813 available_tags="$available_tags $tagname"
19816 done
19817 IFS="$lt_save_ifs"
19819 # Now substitute the updated list of available tags.
19820 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19821 mv "${ofile}T" "$ofile"
19822 chmod +x "$ofile"
19823 else
19824 rm -f "${ofile}T"
19825 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19826 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19827 { (exit 1); exit 1; }; }
19833 # This can be used to rebuild libtool when needed
19834 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19836 # Always use our own libtool.
19837 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19839 # Prevent multiple expansion
19860 # Check whether --enable-debug was given.
19861 if test "${enable_debug+set}" = set; then
19862 enableval=$enable_debug;
19863 CXXFLAGS="-g -O0 -Wall"
19865 cat >>confdefs.h <<\_ACEOF
19866 #define WITH_DEBUG
19867 _ACEOF
19874 # Check whether --with-libldap was given.
19875 if test "${with_libldap+set}" = set; then
19876 withval=$with_libldap;
19877 LIBS="-L$with_libldap $LIBS "
19879 else
19881 LIBS="-L/usr/local/lib $LIBS "
19888 # Check whether --with-ldap-includes was given.
19889 if test "${with_ldap_includes+set}" = set; then
19890 withval=$with_ldap_includes;
19891 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
19893 else
19895 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
19901 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
19902 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
19903 if test "${ac_cv_lib_resolv_main+set}" = set; then
19904 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 else
19906 ac_check_lib_save_LIBS=$LIBS
19907 LIBS="-lresolv $LIBS"
19908 cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h. */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19917 main ()
19919 return main ();
19921 return 0;
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } && {
19938 test -z "$ac_c_werror_flag" ||
19939 test ! -s conftest.err
19940 } && test -s conftest$ac_exeext &&
19941 $as_test_x conftest$ac_exeext; then
19942 ac_cv_lib_resolv_main=yes
19943 else
19944 echo "$as_me: failed program was:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19947 ac_cv_lib_resolv_main=no
19950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19951 conftest$ac_exeext conftest.$ac_ext
19952 LIBS=$ac_check_lib_save_LIBS
19954 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
19955 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
19956 if test $ac_cv_lib_resolv_main = yes; then
19957 cat >>confdefs.h <<_ACEOF
19958 #define HAVE_LIBRESOLV 1
19959 _ACEOF
19961 LIBS="-lresolv $LIBS"
19965 { echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
19966 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6; }
19967 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970 ac_check_lib_save_LIBS=$LIBS
19971 LIBS="-llber $LIBS"
19972 cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h. */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19979 /* Override any GCC internal prototype to avoid an error.
19980 Use char because int might match the return type of a GCC
19981 builtin and then its argument prototype would still apply. */
19982 #ifdef __cplusplus
19983 extern "C"
19984 #endif
19985 char ber_strdup ();
19987 main ()
19989 return ber_strdup ();
19991 return 0;
19993 _ACEOF
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (ac_try="$ac_link"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_link") 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest$ac_exeext &&
20011 $as_test_x conftest$ac_exeext; then
20012 ac_cv_lib_lber_ber_strdup=yes
20013 else
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_cv_lib_lber_ber_strdup=no
20020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20021 conftest$ac_exeext conftest.$ac_ext
20022 LIBS=$ac_check_lib_save_LIBS
20024 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
20025 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6; }
20026 if test $ac_cv_lib_lber_ber_strdup = yes; then
20030 else
20032 echo " didn't find ber_strdup in liblber !";
20033 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
20034 echo " or try the --with-libldap option.";
20035 exit
20039 { echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
20040 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6; }
20041 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044 ac_check_lib_save_LIBS=$LIBS
20045 LIBS="-lldap
20046 -llber
20047 $LIBS"
20048 cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20055 /* Override any GCC internal prototype to avoid an error.
20056 Use char because int might match the return type of a GCC
20057 builtin and then its argument prototype would still apply. */
20058 #ifdef __cplusplus
20059 extern "C"
20060 #endif
20061 char ldap_add_ext ();
20063 main ()
20065 return ldap_add_ext ();
20067 return 0;
20069 _ACEOF
20070 rm -f conftest.$ac_objext conftest$ac_exeext
20071 if { (ac_try="$ac_link"
20072 case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_link") 2>conftest.er1
20078 ac_status=$?
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } && {
20084 test -z "$ac_c_werror_flag" ||
20085 test ! -s conftest.err
20086 } && test -s conftest$ac_exeext &&
20087 $as_test_x conftest$ac_exeext; then
20088 ac_cv_lib_ldap_ldap_add_ext=yes
20089 else
20090 echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_cv_lib_ldap_ldap_add_ext=no
20096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097 conftest$ac_exeext conftest.$ac_ext
20098 LIBS=$ac_check_lib_save_LIBS
20100 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
20101 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6; }
20102 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
20106 else
20108 echo " didn't find ldap_add_ext in libldap !";
20109 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
20110 echo " or try the --with-libldap option.";
20111 exit
20115 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20116 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20117 if test "${ac_cv_header_time+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120 cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h. */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 #include <sys/types.h>
20127 #include <sys/time.h>
20128 #include <time.h>
20131 main ()
20133 if ((struct tm *) 0)
20134 return 0;
20136 return 0;
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_compile") 2>conftest.er1
20147 ac_status=$?
20148 grep -v '^ *+' conftest.er1 >conftest.err
20149 rm -f conftest.er1
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } && {
20153 test -z "$ac_c_werror_flag" ||
20154 test ! -s conftest.err
20155 } && test -s conftest.$ac_objext; then
20156 ac_cv_header_time=yes
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_cv_header_time=no
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20166 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20167 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20168 if test $ac_cv_header_time = yes; then
20170 cat >>confdefs.h <<\_ACEOF
20171 #define TIME_WITH_SYS_TIME 1
20172 _ACEOF
20178 for ac_header in termios.h ldap.h
20180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 ac_res=`eval echo '${'$as_ac_Header'}'`
20188 { echo "$as_me:$LINENO: result: $ac_res" >&5
20189 echo "${ECHO_T}$ac_res" >&6; }
20190 else
20191 # Is the header compilable?
20192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20194 cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h. */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h. */
20200 $ac_includes_default
20201 #include <$ac_header>
20202 _ACEOF
20203 rm -f conftest.$ac_objext
20204 if { (ac_try="$ac_compile"
20205 case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20208 esac
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210 (eval "$ac_compile") 2>conftest.er1
20211 ac_status=$?
20212 grep -v '^ *+' conftest.er1 >conftest.err
20213 rm -f conftest.er1
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } && {
20217 test -z "$ac_c_werror_flag" ||
20218 test ! -s conftest.err
20219 } && test -s conftest.$ac_objext; then
20220 ac_header_compiler=yes
20221 else
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_header_compiler=no
20228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20230 echo "${ECHO_T}$ac_header_compiler" >&6; }
20232 # Is the header present?
20233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20235 cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h. */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <$ac_header>
20242 _ACEOF
20243 if { (ac_try="$ac_cpp conftest.$ac_ext"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } >/dev/null && {
20256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 }; then
20259 ac_header_preproc=yes
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_header_preproc=no
20267 rm -f conftest.err conftest.$ac_ext
20268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20269 echo "${ECHO_T}$ac_header_preproc" >&6; }
20271 # So? What about this header?
20272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20273 yes:no: )
20274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20278 ac_header_preproc=yes
20280 no:yes:* )
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20293 ( cat <<\_ASBOX
20294 ## -------------------------------------------- ##
20295 ## Report this to http://www.openldap.org/its/ ##
20296 ## -------------------------------------------- ##
20297 _ASBOX
20298 ) | sed "s/^/$as_me: WARNING: /" >&2
20300 esac
20301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306 eval "$as_ac_Header=\$ac_header_preproc"
20308 ac_res=`eval echo '${'$as_ac_Header'}'`
20309 { echo "$as_me:$LINENO: result: $ac_res" >&5
20310 echo "${ECHO_T}$ac_res" >&6; }
20313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20314 cat >>confdefs.h <<_ACEOF
20315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20316 _ACEOF
20320 done
20322 cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h. */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <ldap.h>
20330 _ACEOF
20331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20332 $EGREP "ldap_add_ext" >/dev/null 2>&1; then
20336 else
20338 echo " didn't find ldap_add_ext in ldap.h!";
20339 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
20340 echo " or try --with-ldap-includes option.";
20341 exit
20344 rm -f conftest*
20346 if test "${ac_cv_header_lber_h+set}" = set; then
20347 { echo "$as_me:$LINENO: checking for lber.h" >&5
20348 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
20349 if test "${ac_cv_header_lber_h+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20353 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
20354 else
20355 # Is the header compilable?
20356 { echo "$as_me:$LINENO: checking lber.h usability" >&5
20357 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6; }
20358 cat >conftest.$ac_ext <<_ACEOF
20359 /* confdefs.h. */
20360 _ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20364 $ac_includes_default
20365 #include <lber.h>
20366 _ACEOF
20367 rm -f conftest.$ac_objext
20368 if { (ac_try="$ac_compile"
20369 case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_compile") 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && {
20381 test -z "$ac_c_werror_flag" ||
20382 test ! -s conftest.err
20383 } && test -s conftest.$ac_objext; then
20384 ac_header_compiler=yes
20385 else
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20389 ac_header_compiler=no
20392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20394 echo "${ECHO_T}$ac_header_compiler" >&6; }
20396 # Is the header present?
20397 { echo "$as_me:$LINENO: checking lber.h presence" >&5
20398 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 #include <lber.h>
20406 _ACEOF
20407 if { (ac_try="$ac_cpp conftest.$ac_ext"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20411 esac
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } >/dev/null && {
20420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20421 test ! -s conftest.err
20422 }; then
20423 ac_header_preproc=yes
20424 else
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_header_preproc=no
20431 rm -f conftest.err conftest.$ac_ext
20432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20433 echo "${ECHO_T}$ac_header_preproc" >&6; }
20435 # So? What about this header?
20436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20437 yes:no: )
20438 { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
20439 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20440 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
20441 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
20442 ac_header_preproc=yes
20444 no:yes:* )
20445 { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
20446 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
20447 { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5
20448 echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;}
20449 { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
20450 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&5
20452 echo "$as_me: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
20454 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
20455 { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
20456 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
20457 ( cat <<\_ASBOX
20458 ## -------------------------------------------- ##
20459 ## Report this to http://www.openldap.org/its/ ##
20460 ## -------------------------------------------- ##
20461 _ASBOX
20462 ) | sed "s/^/$as_me: WARNING: /" >&2
20464 esac
20465 { echo "$as_me:$LINENO: checking for lber.h" >&5
20466 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
20467 if test "${ac_cv_header_lber_h+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470 ac_cv_header_lber_h=$ac_header_preproc
20472 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
20473 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h. */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20484 #include <lber.h>
20486 _ACEOF
20487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20488 $EGREP "ber_strdup" >/dev/null 2>&1; then
20492 else
20494 echo " didn't find ber_strdup in lber.h!";
20495 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
20496 echo " or try --with-ldap-includes option.";
20497 exit
20500 rm -f conftest*
20505 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
20507 cat >confcache <<\_ACEOF
20508 # This file is a shell script that caches the results of configure
20509 # tests run on this system so they can be shared between configure
20510 # scripts and configure runs, see configure's option --config-cache.
20511 # It is not useful on other systems. If it contains results you don't
20512 # want to keep, you may remove or edit it.
20514 # config.status only pays attention to the cache file if you give it
20515 # the --recheck option to rerun configure.
20517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20519 # following values.
20521 _ACEOF
20523 # The following way of writing the cache mishandles newlines in values,
20524 # but we know of no workaround that is simple, portable, and efficient.
20525 # So, we kill variables containing newlines.
20526 # Ultrix sh set writes to stderr and can't be redirected directly,
20527 # and sets the high bit in the cache file unless we assign to the vars.
20529 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20530 eval ac_val=\$$ac_var
20531 case $ac_val in #(
20532 *${as_nl}*)
20533 case $ac_var in #(
20534 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20535 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20536 esac
20537 case $ac_var in #(
20538 _ | IFS | as_nl) ;; #(
20539 *) $as_unset $ac_var ;;
20540 esac ;;
20541 esac
20542 done
20544 (set) 2>&1 |
20545 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20546 *${as_nl}ac_space=\ *)
20547 # `set' does not quote correctly, so add quotes (double-quote
20548 # substitution turns \\\\ into \\, and sed turns \\ into \).
20549 sed -n \
20550 "s/'/'\\\\''/g;
20551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20552 ;; #(
20554 # `set' quotes correctly as required by POSIX, so do not add quotes.
20555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20557 esac |
20558 sort
20560 sed '
20561 /^ac_cv_env_/b end
20562 t clear
20563 :clear
20564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20565 t end
20566 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20567 :end' >>confcache
20568 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20569 if test -w "$cache_file"; then
20570 test "x$cache_file" != "x/dev/null" &&
20571 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20572 echo "$as_me: updating cache $cache_file" >&6;}
20573 cat confcache >$cache_file
20574 else
20575 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20576 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20579 rm -f confcache
20581 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20582 # Let make expand exec_prefix.
20583 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20585 DEFS=-DHAVE_CONFIG_H
20587 ac_libobjs=
20588 ac_ltlibobjs=
20589 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20590 # 1. Remove the extension, and $U if already installed.
20591 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20592 ac_i=`echo "$ac_i" | sed "$ac_script"`
20593 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20594 # will be set to the directory where LIBOBJS objects are built.
20595 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20596 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20597 done
20598 LIBOBJS=$ac_libobjs
20600 LTLIBOBJS=$ac_ltlibobjs
20603 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20604 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20605 Usually this means the macro was only invoked conditionally." >&5
20606 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20607 Usually this means the macro was only invoked conditionally." >&2;}
20608 { (exit 1); exit 1; }; }
20610 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20611 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20612 Usually this means the macro was only invoked conditionally." >&5
20613 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20614 Usually this means the macro was only invoked conditionally." >&2;}
20615 { (exit 1); exit 1; }; }
20617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20618 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20619 Usually this means the macro was only invoked conditionally." >&5
20620 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20621 Usually this means the macro was only invoked conditionally." >&2;}
20622 { (exit 1); exit 1; }; }
20625 : ${CONFIG_STATUS=./config.status}
20626 ac_clean_files_save=$ac_clean_files
20627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20628 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20629 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20630 cat >$CONFIG_STATUS <<_ACEOF
20631 #! $SHELL
20632 # Generated by $as_me.
20633 # Run this file to recreate the current configuration.
20634 # Compiler output produced by configure, useful for debugging
20635 # configure, is in config.log if it exists.
20637 debug=false
20638 ac_cs_recheck=false
20639 ac_cs_silent=false
20640 SHELL=\${CONFIG_SHELL-$SHELL}
20641 _ACEOF
20643 cat >>$CONFIG_STATUS <<\_ACEOF
20644 ## --------------------- ##
20645 ## M4sh Initialization. ##
20646 ## --------------------- ##
20648 # Be more Bourne compatible
20649 DUALCASE=1; export DUALCASE # for MKS sh
20650 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20651 emulate sh
20652 NULLCMD=:
20653 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20654 # is contrary to our usage. Disable this feature.
20655 alias -g '${1+"$@"}'='"$@"'
20656 setopt NO_GLOB_SUBST
20657 else
20658 case `(set -o) 2>/dev/null` in
20659 *posix*) set -o posix ;;
20660 esac
20667 # PATH needs CR
20668 # Avoid depending upon Character Ranges.
20669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20672 as_cr_digits='0123456789'
20673 as_cr_alnum=$as_cr_Letters$as_cr_digits
20675 # The user is always right.
20676 if test "${PATH_SEPARATOR+set}" != set; then
20677 echo "#! /bin/sh" >conf$$.sh
20678 echo "exit 0" >>conf$$.sh
20679 chmod +x conf$$.sh
20680 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20681 PATH_SEPARATOR=';'
20682 else
20683 PATH_SEPARATOR=:
20685 rm -f conf$$.sh
20688 # Support unset when possible.
20689 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20690 as_unset=unset
20691 else
20692 as_unset=false
20696 # IFS
20697 # We need space, tab and new line, in precisely that order. Quoting is
20698 # there to prevent editors from complaining about space-tab.
20699 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20700 # splitting by setting IFS to empty value.)
20701 as_nl='
20703 IFS=" "" $as_nl"
20705 # Find who we are. Look in the path if we contain no directory separator.
20706 case $0 in
20707 *[\\/]* ) as_myself=$0 ;;
20708 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20709 for as_dir in $PATH
20711 IFS=$as_save_IFS
20712 test -z "$as_dir" && as_dir=.
20713 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20714 done
20715 IFS=$as_save_IFS
20718 esac
20719 # We did not find ourselves, most probably we were run as `sh COMMAND'
20720 # in which case we are not to be found in the path.
20721 if test "x$as_myself" = x; then
20722 as_myself=$0
20724 if test ! -f "$as_myself"; then
20725 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20726 { (exit 1); exit 1; }
20729 # Work around bugs in pre-3.0 UWIN ksh.
20730 for as_var in ENV MAIL MAILPATH
20731 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20732 done
20733 PS1='$ '
20734 PS2='> '
20735 PS4='+ '
20737 # NLS nuisances.
20738 for as_var in \
20739 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20740 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20741 LC_TELEPHONE LC_TIME
20743 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20744 eval $as_var=C; export $as_var
20745 else
20746 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20748 done
20750 # Required to use basename.
20751 if expr a : '\(a\)' >/dev/null 2>&1 &&
20752 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20753 as_expr=expr
20754 else
20755 as_expr=false
20758 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20759 as_basename=basename
20760 else
20761 as_basename=false
20765 # Name of the executable.
20766 as_me=`$as_basename -- "$0" ||
20767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20768 X"$0" : 'X\(//\)$' \| \
20769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20770 echo X/"$0" |
20771 sed '/^.*\/\([^/][^/]*\)\/*$/{
20772 s//\1/
20775 /^X\/\(\/\/\)$/{
20776 s//\1/
20779 /^X\/\(\/\).*/{
20780 s//\1/
20783 s/.*/./; q'`
20785 # CDPATH.
20786 $as_unset CDPATH
20790 as_lineno_1=$LINENO
20791 as_lineno_2=$LINENO
20792 test "x$as_lineno_1" != "x$as_lineno_2" &&
20793 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20795 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20796 # uniformly replaced by the line number. The first 'sed' inserts a
20797 # line-number line after each line using $LINENO; the second 'sed'
20798 # does the real work. The second script uses 'N' to pair each
20799 # line-number line with the line containing $LINENO, and appends
20800 # trailing '-' during substitution so that $LINENO is not a special
20801 # case at line end.
20802 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20803 # scripts with optimization help from Paolo Bonzini. Blame Lee
20804 # E. McMahon (1931-1989) for sed's syntax. :-)
20805 sed -n '
20807 /[$]LINENO/=
20808 ' <$as_myself |
20809 sed '
20810 s/[$]LINENO.*/&-/
20811 t lineno
20813 :lineno
20815 :loop
20816 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20817 t loop
20818 s/-\n.*//
20819 ' >$as_me.lineno &&
20820 chmod +x "$as_me.lineno" ||
20821 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20822 { (exit 1); exit 1; }; }
20824 # Don't try to exec as it changes $[0], causing all sort of problems
20825 # (the dirname of $[0] is not the place where we might find the
20826 # original and so on. Autoconf is especially sensitive to this).
20827 . "./$as_me.lineno"
20828 # Exit status is that of the last command.
20829 exit
20833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20834 as_dirname=dirname
20835 else
20836 as_dirname=false
20839 ECHO_C= ECHO_N= ECHO_T=
20840 case `echo -n x` in
20841 -n*)
20842 case `echo 'x\c'` in
20843 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20844 *) ECHO_C='\c';;
20845 esac;;
20847 ECHO_N='-n';;
20848 esac
20850 if expr a : '\(a\)' >/dev/null 2>&1 &&
20851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20852 as_expr=expr
20853 else
20854 as_expr=false
20857 rm -f conf$$ conf$$.exe conf$$.file
20858 if test -d conf$$.dir; then
20859 rm -f conf$$.dir/conf$$.file
20860 else
20861 rm -f conf$$.dir
20862 mkdir conf$$.dir
20864 echo >conf$$.file
20865 if ln -s conf$$.file conf$$ 2>/dev/null; then
20866 as_ln_s='ln -s'
20867 # ... but there are two gotchas:
20868 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20869 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20870 # In both cases, we have to default to `cp -p'.
20871 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20872 as_ln_s='cp -p'
20873 elif ln conf$$.file conf$$ 2>/dev/null; then
20874 as_ln_s=ln
20875 else
20876 as_ln_s='cp -p'
20878 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20879 rmdir conf$$.dir 2>/dev/null
20881 if mkdir -p . 2>/dev/null; then
20882 as_mkdir_p=:
20883 else
20884 test -d ./-p && rmdir ./-p
20885 as_mkdir_p=false
20888 if test -x / >/dev/null 2>&1; then
20889 as_test_x='test -x'
20890 else
20891 if ls -dL / >/dev/null 2>&1; then
20892 as_ls_L_option=L
20893 else
20894 as_ls_L_option=
20896 as_test_x='
20897 eval sh -c '\''
20898 if test -d "$1"; then
20899 test -d "$1/.";
20900 else
20901 case $1 in
20902 -*)set "./$1";;
20903 esac;
20904 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20905 ???[sx]*):;;*)false;;esac;fi
20906 '\'' sh
20909 as_executable_p=$as_test_x
20911 # Sed expression to map a string onto a valid CPP name.
20912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20914 # Sed expression to map a string onto a valid variable name.
20915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20918 exec 6>&1
20920 # Save the log message, to keep $[0] and so on meaningful, and to
20921 # report actual input values of CONFIG_FILES etc. instead of their
20922 # values after options handling.
20923 ac_log="
20924 This file was extended by ldapcpplib $as_me , which was
20925 generated by GNU Autoconf 2.61. Invocation command line was
20927 CONFIG_FILES = $CONFIG_FILES
20928 CONFIG_HEADERS = $CONFIG_HEADERS
20929 CONFIG_LINKS = $CONFIG_LINKS
20930 CONFIG_COMMANDS = $CONFIG_COMMANDS
20931 $ $0 $@
20933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20936 _ACEOF
20938 cat >>$CONFIG_STATUS <<_ACEOF
20939 # Files that config.status was made for.
20940 config_files="$ac_config_files"
20941 config_headers="$ac_config_headers"
20942 config_commands="$ac_config_commands"
20944 _ACEOF
20946 cat >>$CONFIG_STATUS <<\_ACEOF
20947 ac_cs_usage="\
20948 \`$as_me' instantiates files from templates according to the
20949 current configuration.
20951 Usage: $0 [OPTIONS] [FILE]...
20953 -h, --help print this help, then exit
20954 -V, --version print version number and configuration settings, then exit
20955 -q, --quiet do not print progress messages
20956 -d, --debug don't remove temporary files
20957 --recheck update $as_me by reconfiguring in the same conditions
20958 --file=FILE[:TEMPLATE]
20959 instantiate the configuration file FILE
20960 --header=FILE[:TEMPLATE]
20961 instantiate the configuration header FILE
20963 Configuration files:
20964 $config_files
20966 Configuration headers:
20967 $config_headers
20969 Configuration commands:
20970 $config_commands
20972 Report bugs to <bug-autoconf@gnu.org>."
20974 _ACEOF
20975 cat >>$CONFIG_STATUS <<_ACEOF
20976 ac_cs_version="\\
20977 ldapcpplib config.status
20978 configured by $0, generated by GNU Autoconf 2.61,
20979 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20981 Copyright (C) 2006 Free Software Foundation, Inc.
20982 This config.status script is free software; the Free Software Foundation
20983 gives unlimited permission to copy, distribute and modify it."
20985 ac_pwd='$ac_pwd'
20986 srcdir='$srcdir'
20987 INSTALL='$INSTALL'
20988 MKDIR_P='$MKDIR_P'
20989 _ACEOF
20991 cat >>$CONFIG_STATUS <<\_ACEOF
20992 # If no file are specified by the user, then we need to provide default
20993 # value. By we need to know if files were specified by the user.
20994 ac_need_defaults=:
20995 while test $# != 0
20997 case $1 in
20998 --*=*)
20999 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21000 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21001 ac_shift=:
21004 ac_option=$1
21005 ac_optarg=$2
21006 ac_shift=shift
21008 esac
21010 case $ac_option in
21011 # Handling of the options.
21012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21013 ac_cs_recheck=: ;;
21014 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21015 echo "$ac_cs_version"; exit ;;
21016 --debug | --debu | --deb | --de | --d | -d )
21017 debug=: ;;
21018 --file | --fil | --fi | --f )
21019 $ac_shift
21020 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21021 ac_need_defaults=false;;
21022 --header | --heade | --head | --hea )
21023 $ac_shift
21024 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21025 ac_need_defaults=false;;
21026 --he | --h)
21027 # Conflict between --help and --header
21028 { echo "$as_me: error: ambiguous option: $1
21029 Try \`$0 --help' for more information." >&2
21030 { (exit 1); exit 1; }; };;
21031 --help | --hel | -h )
21032 echo "$ac_cs_usage"; exit ;;
21033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21034 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21035 ac_cs_silent=: ;;
21037 # This is an error.
21038 -*) { echo "$as_me: error: unrecognized option: $1
21039 Try \`$0 --help' for more information." >&2
21040 { (exit 1); exit 1; }; } ;;
21042 *) ac_config_targets="$ac_config_targets $1"
21043 ac_need_defaults=false ;;
21045 esac
21046 shift
21047 done
21049 ac_configure_extra_args=
21051 if $ac_cs_silent; then
21052 exec 6>/dev/null
21053 ac_configure_extra_args="$ac_configure_extra_args --silent"
21056 _ACEOF
21057 cat >>$CONFIG_STATUS <<_ACEOF
21058 if \$ac_cs_recheck; then
21059 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21060 CONFIG_SHELL=$SHELL
21061 export CONFIG_SHELL
21062 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21065 _ACEOF
21066 cat >>$CONFIG_STATUS <<\_ACEOF
21067 exec 5>>config.log
21069 echo
21070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21071 ## Running $as_me. ##
21072 _ASBOX
21073 echo "$ac_log"
21074 } >&5
21076 _ACEOF
21077 cat >>$CONFIG_STATUS <<_ACEOF
21079 # INIT-COMMANDS
21081 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21083 _ACEOF
21085 cat >>$CONFIG_STATUS <<\_ACEOF
21087 # Handling of arguments.
21088 for ac_config_target in $ac_config_targets
21090 case $ac_config_target in
21091 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21092 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21093 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21094 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21095 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21099 { (exit 1); exit 1; }; };;
21100 esac
21101 done
21104 # If the user did not use the arguments to specify the items to instantiate,
21105 # then the envvar interface is used. Set only those that are not.
21106 # We use the long form for the default assignment because of an extremely
21107 # bizarre bug on SunOS 4.1.3.
21108 if $ac_need_defaults; then
21109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21114 # Have a temporary directory for convenience. Make it in the build tree
21115 # simply because there is no reason against having it here, and in addition,
21116 # creating and moving files from /tmp can sometimes cause problems.
21117 # Hook for its removal unless debugging.
21118 # Note that there is a small window in which the directory will not be cleaned:
21119 # after its creation but before its name has been assigned to `$tmp'.
21120 $debug ||
21122 tmp=
21123 trap 'exit_status=$?
21124 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21126 trap '{ (exit 1); exit 1; }' 1 2 13 15
21128 # Create a (secure) tmp directory for tmp files.
21131 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21132 test -n "$tmp" && test -d "$tmp"
21133 } ||
21135 tmp=./conf$$-$RANDOM
21136 (umask 077 && mkdir "$tmp")
21137 } ||
21139 echo "$me: cannot create a temporary directory in ." >&2
21140 { (exit 1); exit 1; }
21144 # Set up the sed scripts for CONFIG_FILES section.
21147 # No need to generate the scripts if there are no CONFIG_FILES.
21148 # This happens for instance when ./config.status config.h
21149 if test -n "$CONFIG_FILES"; then
21151 _ACEOF
21155 ac_delim='%!_!# '
21156 for ac_last_try in false false false false false :; do
21157 cat >conf$$subs.sed <<_ACEOF
21158 SHELL!$SHELL$ac_delim
21159 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21160 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21161 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21162 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21163 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21164 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21165 exec_prefix!$exec_prefix$ac_delim
21166 prefix!$prefix$ac_delim
21167 program_transform_name!$program_transform_name$ac_delim
21168 bindir!$bindir$ac_delim
21169 sbindir!$sbindir$ac_delim
21170 libexecdir!$libexecdir$ac_delim
21171 datarootdir!$datarootdir$ac_delim
21172 datadir!$datadir$ac_delim
21173 sysconfdir!$sysconfdir$ac_delim
21174 sharedstatedir!$sharedstatedir$ac_delim
21175 localstatedir!$localstatedir$ac_delim
21176 includedir!$includedir$ac_delim
21177 oldincludedir!$oldincludedir$ac_delim
21178 docdir!$docdir$ac_delim
21179 infodir!$infodir$ac_delim
21180 htmldir!$htmldir$ac_delim
21181 dvidir!$dvidir$ac_delim
21182 pdfdir!$pdfdir$ac_delim
21183 psdir!$psdir$ac_delim
21184 libdir!$libdir$ac_delim
21185 localedir!$localedir$ac_delim
21186 mandir!$mandir$ac_delim
21187 DEFS!$DEFS$ac_delim
21188 ECHO_C!$ECHO_C$ac_delim
21189 ECHO_N!$ECHO_N$ac_delim
21190 ECHO_T!$ECHO_T$ac_delim
21191 LIBS!$LIBS$ac_delim
21192 build_alias!$build_alias$ac_delim
21193 host_alias!$host_alias$ac_delim
21194 target_alias!$target_alias$ac_delim
21195 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21196 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21197 INSTALL_DATA!$INSTALL_DATA$ac_delim
21198 am__isrc!$am__isrc$ac_delim
21199 CYGPATH_W!$CYGPATH_W$ac_delim
21200 PACKAGE!$PACKAGE$ac_delim
21201 VERSION!$VERSION$ac_delim
21202 ACLOCAL!$ACLOCAL$ac_delim
21203 AUTOCONF!$AUTOCONF$ac_delim
21204 AUTOMAKE!$AUTOMAKE$ac_delim
21205 AUTOHEADER!$AUTOHEADER$ac_delim
21206 MAKEINFO!$MAKEINFO$ac_delim
21207 install_sh!$install_sh$ac_delim
21208 STRIP!$STRIP$ac_delim
21209 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21210 mkdir_p!$mkdir_p$ac_delim
21211 AWK!$AWK$ac_delim
21212 SET_MAKE!$SET_MAKE$ac_delim
21213 am__leading_dot!$am__leading_dot$ac_delim
21214 AMTAR!$AMTAR$ac_delim
21215 am__tar!$am__tar$ac_delim
21216 am__untar!$am__untar$ac_delim
21217 OPENLDAP_CPP_API_VERSION!$OPENLDAP_CPP_API_VERSION$ac_delim
21218 CXX!$CXX$ac_delim
21219 CXXFLAGS!$CXXFLAGS$ac_delim
21220 LDFLAGS!$LDFLAGS$ac_delim
21221 CPPFLAGS!$CPPFLAGS$ac_delim
21222 ac_ct_CXX!$ac_ct_CXX$ac_delim
21223 EXEEXT!$EXEEXT$ac_delim
21224 OBJEXT!$OBJEXT$ac_delim
21225 DEPDIR!$DEPDIR$ac_delim
21226 am__include!$am__include$ac_delim
21227 am__quote!$am__quote$ac_delim
21228 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21229 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21230 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21231 CXXDEPMODE!$CXXDEPMODE$ac_delim
21232 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21233 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21234 build!$build$ac_delim
21235 build_cpu!$build_cpu$ac_delim
21236 build_vendor!$build_vendor$ac_delim
21237 build_os!$build_os$ac_delim
21238 host!$host$ac_delim
21239 host_cpu!$host_cpu$ac_delim
21240 host_vendor!$host_vendor$ac_delim
21241 host_os!$host_os$ac_delim
21242 CC!$CC$ac_delim
21243 CFLAGS!$CFLAGS$ac_delim
21244 ac_ct_CC!$ac_ct_CC$ac_delim
21245 CCDEPMODE!$CCDEPMODE$ac_delim
21246 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21247 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21248 SED!$SED$ac_delim
21249 GREP!$GREP$ac_delim
21250 EGREP!$EGREP$ac_delim
21251 LN_S!$LN_S$ac_delim
21252 ECHO!$ECHO$ac_delim
21253 AR!$AR$ac_delim
21254 RANLIB!$RANLIB$ac_delim
21255 _ACEOF
21257 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21258 break
21259 elif $ac_last_try; then
21260 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21261 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21262 { (exit 1); exit 1; }; }
21263 else
21264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21266 done
21268 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21269 if test -n "$ac_eof"; then
21270 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21271 ac_eof=`expr $ac_eof + 1`
21274 cat >>$CONFIG_STATUS <<_ACEOF
21275 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21277 _ACEOF
21278 sed '
21279 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21280 s/^/s,@/; s/!/@,|#_!!_#|/
21283 s/'"$ac_delim"'$/,g/; t
21284 s/$/\\/; p
21285 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21286 ' >>$CONFIG_STATUS <conf$$subs.sed
21287 rm -f conf$$subs.sed
21288 cat >>$CONFIG_STATUS <<_ACEOF
21289 CEOF$ac_eof
21290 _ACEOF
21293 ac_delim='%!_!# '
21294 for ac_last_try in false false false false false :; do
21295 cat >conf$$subs.sed <<_ACEOF
21296 DSYMUTIL!$DSYMUTIL$ac_delim
21297 NMEDIT!$NMEDIT$ac_delim
21298 CPP!$CPP$ac_delim
21299 CXXCPP!$CXXCPP$ac_delim
21300 F77!$F77$ac_delim
21301 FFLAGS!$FFLAGS$ac_delim
21302 ac_ct_F77!$ac_ct_F77$ac_delim
21303 LIBTOOL!$LIBTOOL$ac_delim
21304 LIBOBJS!$LIBOBJS$ac_delim
21305 LTLIBOBJS!$LTLIBOBJS$ac_delim
21306 _ACEOF
21308 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21309 break
21310 elif $ac_last_try; then
21311 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21312 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21313 { (exit 1); exit 1; }; }
21314 else
21315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21317 done
21319 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21320 if test -n "$ac_eof"; then
21321 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21322 ac_eof=`expr $ac_eof + 1`
21325 cat >>$CONFIG_STATUS <<_ACEOF
21326 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21328 _ACEOF
21329 sed '
21330 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21331 s/^/s,@/; s/!/@,|#_!!_#|/
21334 s/'"$ac_delim"'$/,g/; t
21335 s/$/\\/; p
21336 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21337 ' >>$CONFIG_STATUS <conf$$subs.sed
21338 rm -f conf$$subs.sed
21339 cat >>$CONFIG_STATUS <<_ACEOF
21340 :end
21341 s/|#_!!_#|//g
21342 CEOF$ac_eof
21343 _ACEOF
21346 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21347 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21348 # trailing colons and then remove the whole line if VPATH becomes empty
21349 # (actually we leave an empty line to preserve line numbers).
21350 if test "x$srcdir" = x.; then
21351 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21352 s/:*\$(srcdir):*/:/
21353 s/:*\${srcdir}:*/:/
21354 s/:*@srcdir@:*/:/
21355 s/^\([^=]*=[ ]*\):*/\1/
21356 s/:*$//
21357 s/^[^=]*=[ ]*$//
21361 cat >>$CONFIG_STATUS <<\_ACEOF
21362 fi # test -n "$CONFIG_FILES"
21365 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21367 case $ac_tag in
21368 :[FHLC]) ac_mode=$ac_tag; continue;;
21369 esac
21370 case $ac_mode$ac_tag in
21371 :[FHL]*:*);;
21372 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21373 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21374 { (exit 1); exit 1; }; };;
21375 :[FH]-) ac_tag=-:-;;
21376 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21377 esac
21378 ac_save_IFS=$IFS
21379 IFS=:
21380 set x $ac_tag
21381 IFS=$ac_save_IFS
21382 shift
21383 ac_file=$1
21384 shift
21386 case $ac_mode in
21387 :L) ac_source=$1;;
21388 :[FH])
21389 ac_file_inputs=
21390 for ac_f
21392 case $ac_f in
21393 -) ac_f="$tmp/stdin";;
21394 *) # Look for the file first in the build tree, then in the source tree
21395 # (if the path is not absolute). The absolute path cannot be DOS-style,
21396 # because $ac_f cannot contain `:'.
21397 test -f "$ac_f" ||
21398 case $ac_f in
21399 [\\/$]*) false;;
21400 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21401 esac ||
21402 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21403 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21404 { (exit 1); exit 1; }; };;
21405 esac
21406 ac_file_inputs="$ac_file_inputs $ac_f"
21407 done
21409 # Let's still pretend it is `configure' which instantiates (i.e., don't
21410 # use $as_me), people would be surprised to read:
21411 # /* config.h. Generated by config.status. */
21412 configure_input="Generated from "`IFS=:
21413 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21414 if test x"$ac_file" != x-; then
21415 configure_input="$ac_file. $configure_input"
21416 { echo "$as_me:$LINENO: creating $ac_file" >&5
21417 echo "$as_me: creating $ac_file" >&6;}
21420 case $ac_tag in
21421 *:-:* | *:-) cat >"$tmp/stdin";;
21422 esac
21424 esac
21426 ac_dir=`$as_dirname -- "$ac_file" ||
21427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21428 X"$ac_file" : 'X\(//\)[^/]' \| \
21429 X"$ac_file" : 'X\(//\)$' \| \
21430 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21431 echo X"$ac_file" |
21432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21433 s//\1/
21436 /^X\(\/\/\)[^/].*/{
21437 s//\1/
21440 /^X\(\/\/\)$/{
21441 s//\1/
21444 /^X\(\/\).*/{
21445 s//\1/
21448 s/.*/./; q'`
21449 { as_dir="$ac_dir"
21450 case $as_dir in #(
21451 -*) as_dir=./$as_dir;;
21452 esac
21453 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21454 as_dirs=
21455 while :; do
21456 case $as_dir in #(
21457 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21458 *) as_qdir=$as_dir;;
21459 esac
21460 as_dirs="'$as_qdir' $as_dirs"
21461 as_dir=`$as_dirname -- "$as_dir" ||
21462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$as_dir" : 'X\(//\)[^/]' \| \
21464 X"$as_dir" : 'X\(//\)$' \| \
21465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21466 echo X"$as_dir" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21468 s//\1/
21471 /^X\(\/\/\)[^/].*/{
21472 s//\1/
21475 /^X\(\/\/\)$/{
21476 s//\1/
21479 /^X\(\/\).*/{
21480 s//\1/
21483 s/.*/./; q'`
21484 test -d "$as_dir" && break
21485 done
21486 test -z "$as_dirs" || eval "mkdir $as_dirs"
21487 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21488 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21489 { (exit 1); exit 1; }; }; }
21490 ac_builddir=.
21492 case "$ac_dir" in
21493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21496 # A ".." for each directory in $ac_dir_suffix.
21497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21498 case $ac_top_builddir_sub in
21499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21501 esac ;;
21502 esac
21503 ac_abs_top_builddir=$ac_pwd
21504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21505 # for backward compatibility:
21506 ac_top_builddir=$ac_top_build_prefix
21508 case $srcdir in
21509 .) # We are building in place.
21510 ac_srcdir=.
21511 ac_top_srcdir=$ac_top_builddir_sub
21512 ac_abs_top_srcdir=$ac_pwd ;;
21513 [\\/]* | ?:[\\/]* ) # Absolute name.
21514 ac_srcdir=$srcdir$ac_dir_suffix;
21515 ac_top_srcdir=$srcdir
21516 ac_abs_top_srcdir=$srcdir ;;
21517 *) # Relative name.
21518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21519 ac_top_srcdir=$ac_top_build_prefix$srcdir
21520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21521 esac
21522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21525 case $ac_mode in
21528 # CONFIG_FILE
21531 case $INSTALL in
21532 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21533 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21534 esac
21535 ac_MKDIR_P=$MKDIR_P
21536 case $MKDIR_P in
21537 [\\/$]* | ?:[\\/]* ) ;;
21538 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21539 esac
21540 _ACEOF
21542 cat >>$CONFIG_STATUS <<\_ACEOF
21543 # If the template does not know about datarootdir, expand it.
21544 # FIXME: This hack should be removed a few years after 2.60.
21545 ac_datarootdir_hack=; ac_datarootdir_seen=
21547 case `sed -n '/datarootdir/ {
21551 /@datadir@/p
21552 /@docdir@/p
21553 /@infodir@/p
21554 /@localedir@/p
21555 /@mandir@/p
21556 ' $ac_file_inputs` in
21557 *datarootdir*) ac_datarootdir_seen=yes;;
21558 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21559 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21560 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21561 _ACEOF
21562 cat >>$CONFIG_STATUS <<_ACEOF
21563 ac_datarootdir_hack='
21564 s&@datadir@&$datadir&g
21565 s&@docdir@&$docdir&g
21566 s&@infodir@&$infodir&g
21567 s&@localedir@&$localedir&g
21568 s&@mandir@&$mandir&g
21569 s&\\\${datarootdir}&$datarootdir&g' ;;
21570 esac
21571 _ACEOF
21573 # Neutralize VPATH when `$srcdir' = `.'.
21574 # Shell code in configure.ac might set extrasub.
21575 # FIXME: do we really want to maintain this feature?
21576 cat >>$CONFIG_STATUS <<_ACEOF
21577 sed "$ac_vpsub
21578 $extrasub
21579 _ACEOF
21580 cat >>$CONFIG_STATUS <<\_ACEOF
21582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21583 s&@configure_input@&$configure_input&;t t
21584 s&@top_builddir@&$ac_top_builddir_sub&;t t
21585 s&@srcdir@&$ac_srcdir&;t t
21586 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21587 s&@top_srcdir@&$ac_top_srcdir&;t t
21588 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21589 s&@builddir@&$ac_builddir&;t t
21590 s&@abs_builddir@&$ac_abs_builddir&;t t
21591 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21592 s&@INSTALL@&$ac_INSTALL&;t t
21593 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21594 $ac_datarootdir_hack
21595 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21597 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21600 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21601 which seems to be undefined. Please make sure it is defined." >&5
21602 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21603 which seems to be undefined. Please make sure it is defined." >&2;}
21605 rm -f "$tmp/stdin"
21606 case $ac_file in
21607 -) cat "$tmp/out"; rm -f "$tmp/out";;
21608 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21609 esac
21613 # CONFIG_HEADER
21615 _ACEOF
21617 # Transform confdefs.h into a sed script `conftest.defines', that
21618 # substitutes the proper values into config.h.in to produce config.h.
21619 rm -f conftest.defines conftest.tail
21620 # First, append a space to every undef/define line, to ease matching.
21621 echo 's/$/ /' >conftest.defines
21622 # Then, protect against being on the right side of a sed subst, or in
21623 # an unquoted here document, in config.status. If some macros were
21624 # called several times there might be several #defines for the same
21625 # symbol, which is useless. But do not sort them, since the last
21626 # AC_DEFINE must be honored.
21627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21628 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21629 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21630 # PARAMS is the parameter list in the macro definition--in most cases, it's
21631 # just an empty string.
21632 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21633 ac_dB='\\)[ (].*,\\1define\\2'
21634 ac_dC=' '
21635 ac_dD=' ,'
21637 uniq confdefs.h |
21638 sed -n '
21639 t rset
21640 :rset
21641 s/^[ ]*#[ ]*define[ ][ ]*//
21642 t ok
21645 s/[\\&,]/\\&/g
21646 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21647 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21648 ' >>conftest.defines
21650 # Remove the space that was appended to ease matching.
21651 # Then replace #undef with comments. This is necessary, for
21652 # example, in the case of _POSIX_SOURCE, which is predefined and required
21653 # on some systems where configure will not decide to define it.
21654 # (The regexp can be short, since the line contains either #define or #undef.)
21655 echo 's/ $//
21656 s,^[ #]*u.*,/* & */,' >>conftest.defines
21658 # Break up conftest.defines:
21659 ac_max_sed_lines=50
21661 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21662 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21663 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21664 # et cetera.
21665 ac_in='$ac_file_inputs'
21666 ac_out='"$tmp/out1"'
21667 ac_nxt='"$tmp/out2"'
21669 while :
21671 # Write a here document:
21672 cat >>$CONFIG_STATUS <<_ACEOF
21673 # First, check the format of the line:
21674 cat >"\$tmp/defines.sed" <<\\CEOF
21675 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21676 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21678 :def
21679 _ACEOF
21680 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21681 echo 'CEOF
21682 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21683 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21684 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21685 grep . conftest.tail >/dev/null || break
21686 rm -f conftest.defines
21687 mv conftest.tail conftest.defines
21688 done
21689 rm -f conftest.defines conftest.tail
21691 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21692 cat >>$CONFIG_STATUS <<\_ACEOF
21693 if test x"$ac_file" != x-; then
21694 echo "/* $configure_input */" >"$tmp/config.h"
21695 cat "$ac_result" >>"$tmp/config.h"
21696 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21697 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21698 echo "$as_me: $ac_file is unchanged" >&6;}
21699 else
21700 rm -f $ac_file
21701 mv "$tmp/config.h" $ac_file
21703 else
21704 echo "/* $configure_input */"
21705 cat "$ac_result"
21707 rm -f "$tmp/out12"
21708 # Compute $ac_file's index in $config_headers.
21709 _am_arg=$ac_file
21710 _am_stamp_count=1
21711 for _am_header in $config_headers :; do
21712 case $_am_header in
21713 $_am_arg | $_am_arg:* )
21714 break ;;
21716 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21717 esac
21718 done
21719 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21720 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21721 X"$_am_arg" : 'X\(//\)[^/]' \| \
21722 X"$_am_arg" : 'X\(//\)$' \| \
21723 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21724 echo X"$_am_arg" |
21725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21726 s//\1/
21729 /^X\(\/\/\)[^/].*/{
21730 s//\1/
21733 /^X\(\/\/\)$/{
21734 s//\1/
21737 /^X\(\/\).*/{
21738 s//\1/
21741 s/.*/./; q'`/stamp-h$_am_stamp_count
21744 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21745 echo "$as_me: executing $ac_file commands" >&6;}
21747 esac
21750 case $ac_file$ac_mode in
21751 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21752 # Strip MF so we end up with the name of the file.
21753 mf=`echo "$mf" | sed -e 's/:.*$//'`
21754 # Check whether this is an Automake generated Makefile or not.
21755 # We used to match only the files named `Makefile.in', but
21756 # some people rename them; so instead we look at the file content.
21757 # Grep'ing the first line is not enough: some people post-process
21758 # each Makefile.in and add a new line on top of each file to say so.
21759 # Grep'ing the whole file is not good either: AIX grep has a line
21760 # limit of 2048, but all sed's we know have understand at least 4000.
21761 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21762 dirpart=`$as_dirname -- "$mf" ||
21763 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21764 X"$mf" : 'X\(//\)[^/]' \| \
21765 X"$mf" : 'X\(//\)$' \| \
21766 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21767 echo X"$mf" |
21768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21769 s//\1/
21772 /^X\(\/\/\)[^/].*/{
21773 s//\1/
21776 /^X\(\/\/\)$/{
21777 s//\1/
21780 /^X\(\/\).*/{
21781 s//\1/
21784 s/.*/./; q'`
21785 else
21786 continue
21788 # Extract the definition of DEPDIR, am__include, and am__quote
21789 # from the Makefile without running `make'.
21790 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21791 test -z "$DEPDIR" && continue
21792 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21793 test -z "am__include" && continue
21794 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21795 # When using ansi2knr, U may be empty or an underscore; expand it
21796 U=`sed -n 's/^U = //p' < "$mf"`
21797 # Find all dependency output files, they are included files with
21798 # $(DEPDIR) in their names. We invoke sed twice because it is the
21799 # simplest approach to changing $(DEPDIR) to its actual value in the
21800 # expansion.
21801 for file in `sed -n "
21802 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21803 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21804 # Make sure the directory exists.
21805 test -f "$dirpart/$file" && continue
21806 fdir=`$as_dirname -- "$file" ||
21807 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21808 X"$file" : 'X\(//\)[^/]' \| \
21809 X"$file" : 'X\(//\)$' \| \
21810 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21811 echo X"$file" |
21812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21813 s//\1/
21816 /^X\(\/\/\)[^/].*/{
21817 s//\1/
21820 /^X\(\/\/\)$/{
21821 s//\1/
21824 /^X\(\/\).*/{
21825 s//\1/
21828 s/.*/./; q'`
21829 { as_dir=$dirpart/$fdir
21830 case $as_dir in #(
21831 -*) as_dir=./$as_dir;;
21832 esac
21833 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21834 as_dirs=
21835 while :; do
21836 case $as_dir in #(
21837 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21838 *) as_qdir=$as_dir;;
21839 esac
21840 as_dirs="'$as_qdir' $as_dirs"
21841 as_dir=`$as_dirname -- "$as_dir" ||
21842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21843 X"$as_dir" : 'X\(//\)[^/]' \| \
21844 X"$as_dir" : 'X\(//\)$' \| \
21845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21846 echo X"$as_dir" |
21847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21848 s//\1/
21851 /^X\(\/\/\)[^/].*/{
21852 s//\1/
21855 /^X\(\/\/\)$/{
21856 s//\1/
21859 /^X\(\/\).*/{
21860 s//\1/
21863 s/.*/./; q'`
21864 test -d "$as_dir" && break
21865 done
21866 test -z "$as_dirs" || eval "mkdir $as_dirs"
21867 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21868 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21869 { (exit 1); exit 1; }; }; }
21870 # echo "creating $dirpart/$file"
21871 echo '# dummy' > "$dirpart/$file"
21872 done
21873 done
21876 esac
21877 done # for ac_tag
21880 { (exit 0); exit 0; }
21881 _ACEOF
21882 chmod +x $CONFIG_STATUS
21883 ac_clean_files=$ac_clean_files_save
21886 # configure is writing to config.log, and then calls config.status.
21887 # config.status does its own redirection, appending to config.log.
21888 # Unfortunately, on DOS this fails, as config.log is still kept open
21889 # by configure, so config.status won't be able to write to it; its
21890 # output is simply discarded. So we exec the FD to /dev/null,
21891 # effectively closing config.log, so it can be properly (re)opened and
21892 # appended to by config.status. When coming back to configure, we
21893 # need to make the FD available again.
21894 if test "$no_create" != yes; then
21895 ac_cs_success=:
21896 ac_config_status_args=
21897 test "$silent" = yes &&
21898 ac_config_status_args="$ac_config_status_args --quiet"
21899 exec 5>/dev/null
21900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21901 exec 5>>config.log
21902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21903 # would make configure fail if this is the last instruction.
21904 $ac_cs_success || { (exit 1); exit 1; }