Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / openpam / configure
blob85132d3265c04628f8e22d9f876dbf0593d4361f
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 411 2007-12-21 11:44:14Z des .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for OpenPAM 20071221.
6 # Report bugs to <des@des.no>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 emulate sh
245 NULLCMD=:
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 _ASEOF
337 }; then
338 break
343 done
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 done
349 export CONFIG_SHELL
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
437 # case at line end.
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 case X$ECHO in
560 X*--fallback-echo)
561 # Remove one level of quotation (which was required for Make).
562 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 esac
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568 # Discard the --no-reexec flag, and continue.
569 shift
570 elif test "X$1" = X--fallback-echo; then
571 # Avoid inline document here, it may be left over
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574 # Yippee, $echo works!
576 else
577 # Restart under the correct shell.
578 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 if test "X$1" = X--fallback-echo; then
582 # used as fallback echo
583 shift
584 cat <<EOF
587 exit 0
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600 echo_test_string=`eval $cmd` &&
601 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602 then
603 break
605 done
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
612 else
613 # The Solaris, AIX, and Digital Unix default echo programs unquote
614 # backslashes. This makes it impossible to quote backslashes using
615 # echo "$something" | sed 's/\\/\\\\/g'
617 # So, first we look for a working echo in the user's PATH.
619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620 for dir in $PATH /usr/ucb; do
621 IFS="$lt_save_ifs"
622 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 echo="$dir/echo"
627 break
629 done
630 IFS="$lt_save_ifs"
632 if test "X$echo" = Xecho; then
633 # We didn't find a better echo, so look for alternatives.
634 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # This shell has a builtin print -r that does the trick.
638 echo='print -r'
639 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640 test "X$CONFIG_SHELL" != X/bin/ksh; then
641 # If we have ksh, try running configure again with it.
642 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643 export ORIGINAL_CONFIG_SHELL
644 CONFIG_SHELL=/bin/ksh
645 export CONFIG_SHELL
646 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 else
648 # Try using printf.
649 echo='printf %s\n'
650 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652 test "X$echo_testing_string" = "X$echo_test_string"; then
653 # Cool, printf works
655 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656 test "X$echo_testing_string" = 'X\t' &&
657 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 export CONFIG_SHELL
661 SHELL="$CONFIG_SHELL"
662 export SHELL
663 echo="$CONFIG_SHELL $0 --fallback-echo"
664 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665 test "X$echo_testing_string" = 'X\t' &&
666 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667 test "X$echo_testing_string" = "X$echo_test_string"; then
668 echo="$CONFIG_SHELL $0 --fallback-echo"
669 else
670 # maybe with a smaller string...
671 prev=:
673 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675 then
676 break
678 prev="$cmd"
679 done
681 if test "$prev" != 'sed 50q "$0"'; then
682 echo_test_string=`eval $prev`
683 export echo_test_string
684 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 else
686 # Oops. We lost completely, so just stick with echo.
687 echo=echo
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 tagnames=${tagnames+${tagnames},}CXX
707 tagnames=${tagnames+${tagnames},}F77
709 exec 7<&0 </dev/null 6>&1
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717 # Initializations.
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
729 # Identity of this package.
730 PACKAGE_NAME='OpenPAM'
731 PACKAGE_TARNAME='openpam'
732 PACKAGE_VERSION='20071221'
733 PACKAGE_STRING='OpenPAM 20071221'
734 PACKAGE_BUGREPORT='des@des.no'
736 ac_unique_file="lib/pam_start.c"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 # include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 # include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
823 CFLAGS
824 LDFLAGS
825 CPPFLAGS
826 ac_ct_CC
827 EXEEXT
828 OBJEXT
830 GREP
831 EGREP
832 LN_S
833 ECHO
835 RANLIB
836 STRIP
839 CXXFLAGS
840 ac_ct_CXX
841 CXXCPP
843 FFLAGS
844 ac_ct_F77
845 LIBTOOL
846 INSTALL_PROGRAM
847 INSTALL_SCRIPT
848 INSTALL_DATA
849 CYGPATH_W
850 PACKAGE
851 VERSION
852 ACLOCAL
853 AUTOCONF
854 AUTOMAKE
855 AUTOHEADER
856 MAKEINFO
857 install_sh
858 INSTALL_STRIP_PROGRAM
859 mkdir_p
861 SET_MAKE
862 am__leading_dot
863 AMTAR
864 am__tar
865 am__untar
866 DEPDIR
867 am__include
868 am__quote
869 AMDEP_TRUE
870 AMDEP_FALSE
871 AMDEPBACKSLASH
872 CCDEPMODE
873 am__fastdepCC_TRUE
874 am__fastdepCC_FALSE
875 CXXDEPMODE
876 am__fastdepCXX_TRUE
877 am__fastdepCXX_FALSE
878 LIB_MAJ
879 OPENPAM_MODULES_DIR
880 WITH_DOC_TRUE
881 WITH_DOC_FALSE
882 WITH_PAM_UNIX_TRUE
883 WITH_PAM_UNIX_FALSE
884 WITH_SU_TRUE
885 WITH_SU_FALSE
886 DL_LIBS
887 CRYPT_LIBS
888 LIBOBJS
889 LTLIBOBJS'
890 ac_subst_files=''
891 ac_precious_vars='build_alias
892 host_alias
893 target_alias
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
901 CXXFLAGS
903 CXXCPP
905 FFLAGS'
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945 infodir='${datarootdir}/info'
946 htmldir='${docdir}'
947 dvidir='${docdir}'
948 pdfdir='${docdir}'
949 psdir='${docdir}'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
954 ac_prev=
955 ac_dashdash=
956 for ac_option
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\$ac_option
961 ac_prev=
962 continue
965 case $ac_option in
966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *) ac_optarg=yes ;;
968 esac
970 # Accept the important Cygnus configure options, so we can diagnose typos.
972 case $ac_dashdash$ac_option in
974 ac_dashdash=yes ;;
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
993 --config-cache | -C)
994 cache_file=config.cache ;;
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1008 -disable-* | --disable-*)
1009 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015 eval enable_$ac_feature=no ;;
1017 -docdir | --docdir | --docdi | --doc | --do)
1018 ac_prev=docdir ;;
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 ac_prev=dvidir ;;
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
1027 -enable-* | --enable-*)
1028 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034 eval enable_$ac_feature=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1224 -with-* | --with-*)
1225 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=\$ac_optarg ;;
1233 -without-* | --without-*)
1234 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=no ;;
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1260 -*) { echo "$as_me: error: unrecognized option: $ac_option
1261 Try \`$0 --help' for more information." >&2
1262 { (exit 1); exit 1; }; }
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270 { (exit 1); exit 1; }; }
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282 esac
1283 done
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 { echo "$as_me: error: missing argument to $ac_option" >&2
1288 { (exit 1); exit 1; }; }
1291 # Be sure to have absolute directory names.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 case $ac_val in
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 esac
1302 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303 { (exit 1); exit 1; }; }
1304 done
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used." >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327 test "$silent" = yes && exec 6>/dev/null
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 { echo "$as_me: error: Working directory cannot be determined" >&2
1334 { (exit 1); exit 1; }; }
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 { echo "$as_me: error: pwd does not report name of working directory" >&2
1337 { (exit 1); exit 1; }; }
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$0" ||
1345 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$0" : 'X\(//\)[^/]' \| \
1347 X"$0" : 'X\(//\)$' \| \
1348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 echo X"$0" |
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 s//\1/
1354 /^X\(\/\/\)[^/].*/{
1355 s//\1/
1358 /^X\(\/\/\)$/{
1359 s//\1/
1362 /^X\(\/\).*/{
1363 s//\1/
1366 s/.*/./; q'`
1367 srcdir=$ac_confdir
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 srcdir=..
1371 else
1372 ac_srcdir_defaulted=no
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377 { (exit 1); exit 1; }; }
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382 { (exit 1); exit 1; }; }
1383 pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 srcdir=.
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1402 # Report the --help message.
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1407 cat <<_ACEOF
1408 \`configure' configures OpenPAM 20071221 to adapt to many kinds of systems.
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1415 Defaults for the options are specified in brackets.
1417 Configuration:
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 [PREFIX]
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1439 For better control, use the options below.
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1461 _ACEOF
1463 cat <<\_ACEOF
1465 Program names:
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470 System types:
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 --target=TARGET configure for building compilers for TARGET [HOST]
1474 _ACEOF
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of OpenPAM 20071221:";;
1480 esac
1481 cat <<\_ACEOF
1483 Optional Features:
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-static[=PKGS] build static libraries [default=no]
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --disable-dependency-tracking speeds up one-time build
1492 --enable-dependency-tracking do not reject slow dependency extractors
1493 --enable-debug turn debugging on by default
1494 --disable-unversioned-modules
1495 support loading of unversioned modules
1496 --enable-developer-warnings
1497 enable strict warnings (default is NO)
1498 --enable-debugging-symbols
1499 enable debugging symbols (default is NO)
1500 --enable-werror use -Werror (default is NO)
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-pic try to use only PIC/non-PIC objects [default=use
1507 both]
1508 --with-tags[=TAGS] include additional configurations [automatic]
1509 --with-modules-dir=DIR OpenPAM modules directory
1510 --with-doc build documentation
1511 --with-pam-unix compile example version of pam_unix.so
1512 --with-su compile example version of su(1)
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1522 CPP C preprocessor
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 CXXCPP C++ preprocessor
1526 F77 Fortran 77 compiler command
1527 FFLAGS Fortran 77 compiler flags
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to <des@des.no>.
1533 _ACEOF
1534 ac_status=$?
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" || continue
1541 ac_builddir=.
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1559 case $srcdir in
1560 .) # We are building in place.
1561 ac_srcdir=.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1568 *) # Relative name.
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1583 else
1584 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 fi || ac_status=$?
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1587 done
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592 cat <<\_ACEOF
1593 OpenPAM configure 20071221
1594 generated by GNU Autoconf 2.61
1596 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1597 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601 exit
1603 cat >config.log <<_ACEOF
1604 This file contains any messages produced by compilers while
1605 running configure, to aid debugging if configure makes a mistake.
1607 It was created by OpenPAM $as_me 20071221, which was
1608 generated by GNU Autoconf 2.61. Invocation command line was
1610 $ $0 $@
1612 _ACEOF
1613 exec 5>>config.log
1615 cat <<_ASUNAME
1616 ## --------- ##
1617 ## Platform. ##
1618 ## --------- ##
1620 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1621 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1622 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1623 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1624 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1626 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1627 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1629 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1630 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1631 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1632 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1633 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1634 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1635 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1637 _ASUNAME
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 echo "PATH: $as_dir"
1645 done
1646 IFS=$as_save_IFS
1648 } >&5
1650 cat >&5 <<_ACEOF
1653 ## ----------- ##
1654 ## Core tests. ##
1655 ## ----------- ##
1657 _ACEOF
1660 # Keep a trace of the command line.
1661 # Strip out --no-create and --no-recursion so they do not pile up.
1662 # Strip out --silent because we don't want to record it for future runs.
1663 # Also quote any args containing shell meta-characters.
1664 # Make two passes to allow for proper duplicate-argument suppression.
1665 ac_configure_args=
1666 ac_configure_args0=
1667 ac_configure_args1=
1668 ac_must_keep_next=false
1669 for ac_pass in 1 2
1671 for ac_arg
1673 case $ac_arg in
1674 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676 | -silent | --silent | --silen | --sile | --sil)
1677 continue ;;
1678 *\'*)
1679 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1680 esac
1681 case $ac_pass in
1682 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1684 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1685 if test $ac_must_keep_next = true; then
1686 ac_must_keep_next=false # Got value, back to normal.
1687 else
1688 case $ac_arg in
1689 *=* | --config-cache | -C | -disable-* | --disable-* \
1690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1692 | -with-* | --with-* | -without-* | --without-* | --x)
1693 case "$ac_configure_args0 " in
1694 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 esac
1697 -* ) ac_must_keep_next=true ;;
1698 esac
1700 ac_configure_args="$ac_configure_args '$ac_arg'"
1702 esac
1703 done
1704 done
1705 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1706 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1708 # When interrupted or exit'd, cleanup temporary files, and complete
1709 # config.log. We remove comments because anyway the quotes in there
1710 # would cause problems or look ugly.
1711 # WARNING: Use '\'' to represent an apostrophe within the trap.
1712 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1713 trap 'exit_status=$?
1714 # Save into config.log some information that might help in debugging.
1716 echo
1718 cat <<\_ASBOX
1719 ## ---------------- ##
1720 ## Cache variables. ##
1721 ## ---------------- ##
1722 _ASBOX
1723 echo
1724 # The following way of writing the cache mishandles newlines in values,
1726 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1727 eval ac_val=\$$ac_var
1728 case $ac_val in #(
1729 *${as_nl}*)
1730 case $ac_var in #(
1731 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1732 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733 esac
1734 case $ac_var in #(
1735 _ | IFS | as_nl) ;; #(
1736 *) $as_unset $ac_var ;;
1737 esac ;;
1738 esac
1739 done
1740 (set) 2>&1 |
1741 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1742 *${as_nl}ac_space=\ *)
1743 sed -n \
1744 "s/'\''/'\''\\\\'\'''\''/g;
1745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1746 ;; #(
1748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1750 esac |
1751 sort
1753 echo
1755 cat <<\_ASBOX
1756 ## ----------------- ##
1757 ## Output variables. ##
1758 ## ----------------- ##
1759 _ASBOX
1760 echo
1761 for ac_var in $ac_subst_vars
1763 eval ac_val=\$$ac_var
1764 case $ac_val in
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 esac
1767 echo "$ac_var='\''$ac_val'\''"
1768 done | sort
1769 echo
1771 if test -n "$ac_subst_files"; then
1772 cat <<\_ASBOX
1773 ## ------------------- ##
1774 ## File substitutions. ##
1775 ## ------------------- ##
1776 _ASBOX
1777 echo
1778 for ac_var in $ac_subst_files
1780 eval ac_val=\$$ac_var
1781 case $ac_val in
1782 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 esac
1784 echo "$ac_var='\''$ac_val'\''"
1785 done | sort
1786 echo
1789 if test -s confdefs.h; then
1790 cat <<\_ASBOX
1791 ## ----------- ##
1792 ## confdefs.h. ##
1793 ## ----------- ##
1794 _ASBOX
1795 echo
1796 cat confdefs.h
1797 echo
1799 test "$ac_signal" != 0 &&
1800 echo "$as_me: caught signal $ac_signal"
1801 echo "$as_me: exit $exit_status"
1802 } >&5
1803 rm -f core *.core core.conftest.* &&
1804 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1805 exit $exit_status
1807 for ac_signal in 1 2 13 15; do
1808 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1809 done
1810 ac_signal=0
1812 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1813 rm -f -r conftest* confdefs.h
1815 # Predefined preprocessor variables.
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_NAME "$PACKAGE_NAME"
1819 _ACEOF
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824 _ACEOF
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1829 _ACEOF
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_STRING "$PACKAGE_STRING"
1834 _ACEOF
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839 _ACEOF
1842 # Let the site file select an alternate cache file if it wants to.
1843 # Prefer explicitly selected file to automatically selected ones.
1844 if test -n "$CONFIG_SITE"; then
1845 set x "$CONFIG_SITE"
1846 elif test "x$prefix" != xNONE; then
1847 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1848 else
1849 set x "$ac_default_prefix/share/config.site" \
1850 "$ac_default_prefix/etc/config.site"
1852 shift
1853 for ac_site_file
1855 if test -r "$ac_site_file"; then
1856 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857 echo "$as_me: loading site script $ac_site_file" >&6;}
1858 sed 's/^/| /' "$ac_site_file" >&5
1859 . "$ac_site_file"
1861 done
1863 if test -r "$cache_file"; then
1864 # Some versions of bash will fail to source /dev/null (special
1865 # files actually), so we avoid doing that.
1866 if test -f "$cache_file"; then
1867 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868 echo "$as_me: loading cache $cache_file" >&6;}
1869 case $cache_file in
1870 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871 *) . "./$cache_file";;
1872 esac
1874 else
1875 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876 echo "$as_me: creating cache $cache_file" >&6;}
1877 >$cache_file
1880 # Check that the precious variables saved in the cache have kept the same
1881 # value.
1882 ac_cache_corrupted=false
1883 for ac_var in $ac_precious_vars; do
1884 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885 eval ac_new_set=\$ac_env_${ac_var}_set
1886 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887 eval ac_new_val=\$ac_env_${ac_var}_value
1888 case $ac_old_set,$ac_new_set in
1889 set,)
1890 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1891 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1893 ,set)
1894 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1895 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1897 ,);;
1899 if test "x$ac_old_val" != "x$ac_new_val"; then
1900 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1903 echo "$as_me: former value: $ac_old_val" >&2;}
1904 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1905 echo "$as_me: current value: $ac_new_val" >&2;}
1906 ac_cache_corrupted=:
1907 fi;;
1908 esac
1909 # Pass precious variables to config.status.
1910 if test "$ac_new_set" = set; then
1911 case $ac_new_val in
1912 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1913 *) ac_arg=$ac_var=$ac_new_val ;;
1914 esac
1915 case " $ac_configure_args " in
1916 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1917 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1918 esac
1920 done
1921 if $ac_cache_corrupted; then
1922 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1923 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1924 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1925 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1926 { (exit 1); exit 1; }; }
1953 ac_ext=c
1954 ac_cpp='$CPP $CPPFLAGS'
1955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 ac_config_headers="$ac_config_headers config.h"
1964 ac_aux_dir=
1965 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1966 if test -f "$ac_dir/install-sh"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/install-sh -c"
1969 break
1970 elif test -f "$ac_dir/install.sh"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/install.sh -c"
1973 break
1974 elif test -f "$ac_dir/shtool"; then
1975 ac_aux_dir=$ac_dir
1976 ac_install_sh="$ac_aux_dir/shtool install -c"
1977 break
1979 done
1980 if test -z "$ac_aux_dir"; then
1981 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1982 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1983 { (exit 1); exit 1; }; }
1986 # These three variables are undocumented and unsupported,
1987 # and are intended to be withdrawn in a future Autoconf release.
1988 # They can cause serious problems if a builder's source tree is in a directory
1989 # whose full name contains unusual characters.
1990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1995 # Make sure we can run config.sub.
1996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1998 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1999 { (exit 1); exit 1; }; }
2001 { echo "$as_me:$LINENO: checking build system type" >&5
2002 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2003 if test "${ac_cv_build+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006 ac_build_alias=$build_alias
2007 test "x$ac_build_alias" = x &&
2008 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2009 test "x$ac_build_alias" = x &&
2010 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2011 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2012 { (exit 1); exit 1; }; }
2013 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2014 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2015 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2016 { (exit 1); exit 1; }; }
2019 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2020 echo "${ECHO_T}$ac_cv_build" >&6; }
2021 case $ac_cv_build in
2022 *-*-*) ;;
2023 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2024 echo "$as_me: error: invalid value of canonical build" >&2;}
2025 { (exit 1); exit 1; }; };;
2026 esac
2027 build=$ac_cv_build
2028 ac_save_IFS=$IFS; IFS='-'
2029 set x $ac_cv_build
2030 shift
2031 build_cpu=$1
2032 build_vendor=$2
2033 shift; shift
2034 # Remember, the first character of IFS is used to create $*,
2035 # except with old shells:
2036 build_os=$*
2037 IFS=$ac_save_IFS
2038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2041 { echo "$as_me:$LINENO: checking host system type" >&5
2042 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_host+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046 if test "x$host_alias" = x; then
2047 ac_cv_host=$ac_cv_build
2048 else
2049 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2050 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2051 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2052 { (exit 1); exit 1; }; }
2056 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2057 echo "${ECHO_T}$ac_cv_host" >&6; }
2058 case $ac_cv_host in
2059 *-*-*) ;;
2060 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2061 echo "$as_me: error: invalid value of canonical host" >&2;}
2062 { (exit 1); exit 1; }; };;
2063 esac
2064 host=$ac_cv_host
2065 ac_save_IFS=$IFS; IFS='-'
2066 set x $ac_cv_host
2067 shift
2068 host_cpu=$1
2069 host_vendor=$2
2070 shift; shift
2071 # Remember, the first character of IFS is used to create $*,
2072 # except with old shells:
2073 host_os=$*
2074 IFS=$ac_save_IFS
2075 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2078 { echo "$as_me:$LINENO: checking target system type" >&5
2079 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2080 if test "${ac_cv_target+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test "x$target_alias" = x; then
2084 ac_cv_target=$ac_cv_host
2085 else
2086 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2087 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2088 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2093 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2094 echo "${ECHO_T}$ac_cv_target" >&6; }
2095 case $ac_cv_target in
2096 *-*-*) ;;
2097 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2098 echo "$as_me: error: invalid value of canonical target" >&2;}
2099 { (exit 1); exit 1; }; };;
2100 esac
2101 target=$ac_cv_target
2102 ac_save_IFS=$IFS; IFS='-'
2103 set x $ac_cv_target
2104 shift
2105 target_cpu=$1
2106 target_vendor=$2
2107 shift; shift
2108 # Remember, the first character of IFS is used to create $*,
2109 # except with old shells:
2110 target_os=$*
2111 IFS=$ac_save_IFS
2112 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2115 # The aliases save the names the user supplied, while $host etc.
2116 # will get canonicalized.
2117 test -n "$target_alias" &&
2118 test "$program_prefix$program_suffix$program_transform_name" = \
2119 NONENONEs,x,x, &&
2120 program_prefix=${target_alias}-
2121 ac_ext=c
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2127 ac_ext=c
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 break 2
2154 done
2155 done
2156 IFS=$as_save_IFS
2160 CC=$ac_cv_prog_CC
2161 if test -n "$CC"; then
2162 { echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6; }
2164 else
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2171 if test -z "$ac_cv_prog_CC"; then
2172 ac_ct_CC=$CC
2173 # Extract the first word of "gcc", so it can be a program name with args.
2174 set dummy gcc; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$ac_ct_CC"; then
2181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 ac_cv_prog_ac_ct_CC="gcc"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2194 done
2195 done
2196 IFS=$as_save_IFS
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6; }
2204 else
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2209 if test "x$ac_ct_CC" = x; then
2210 CC=""
2211 else
2212 case $cross_compiling:$ac_tool_warned in
2213 yes:)
2214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2215 whose name does not start with the host triplet. If you think this
2216 configuration is useful to you, please write to autoconf@gnu.org." >&5
2217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2218 whose name does not start with the host triplet. If you think this
2219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2220 ac_tool_warned=yes ;;
2221 esac
2222 CC=$ac_ct_CC
2224 else
2225 CC="$ac_cv_prog_CC"
2228 if test -z "$CC"; then
2229 if test -n "$ac_tool_prefix"; then
2230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2231 set dummy ${ac_tool_prefix}cc; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_CC="${ac_tool_prefix}cc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2251 done
2252 done
2253 IFS=$as_save_IFS
2257 CC=$ac_cv_prog_CC
2258 if test -n "$CC"; then
2259 { echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6; }
2261 else
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2269 if test -z "$CC"; then
2270 # Extract the first word of "cc", so it can be a program name with args.
2271 set dummy cc; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 if test -n "$CC"; then
2278 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 else
2280 ac_prog_rejected=no
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2289 ac_prog_rejected=yes
2290 continue
2292 ac_cv_prog_CC="cc"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
2296 done
2297 done
2298 IFS=$as_save_IFS
2300 if test $ac_prog_rejected = yes; then
2301 # We found a bogon in the path, so make sure we never use it.
2302 set dummy $ac_cv_prog_CC
2303 shift
2304 if test $# != 0; then
2305 # We chose a different compiler from the bogus one.
2306 # However, it has the same basename, so the bogon will be chosen
2307 # first if we set CC to just the basename; use the full file name.
2308 shift
2309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2314 CC=$ac_cv_prog_CC
2315 if test -n "$CC"; then
2316 { echo "$as_me:$LINENO: result: $CC" >&5
2317 echo "${ECHO_T}$CC" >&6; }
2318 else
2319 { echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6; }
2325 if test -z "$CC"; then
2326 if test -n "$ac_tool_prefix"; then
2327 for ac_prog in cl.exe
2329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2350 done
2351 done
2352 IFS=$as_save_IFS
2356 CC=$ac_cv_prog_CC
2357 if test -n "$CC"; then
2358 { echo "$as_me:$LINENO: result: $CC" >&5
2359 echo "${ECHO_T}$CC" >&6; }
2360 else
2361 { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2366 test -n "$CC" && break
2367 done
2369 if test -z "$CC"; then
2370 ac_ct_CC=$CC
2371 for ac_prog in cl.exe
2373 # Extract the first word of "$ac_prog", so it can be a program name with args.
2374 set dummy $ac_prog; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_ac_ct_CC="$ac_prog"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 break 2
2394 done
2395 done
2396 IFS=$as_save_IFS
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403 echo "${ECHO_T}$ac_ct_CC" >&6; }
2404 else
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2410 test -n "$ac_ct_CC" && break
2411 done
2413 if test "x$ac_ct_CC" = x; then
2414 CC=""
2415 else
2416 case $cross_compiling:$ac_tool_warned in
2417 yes:)
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet. If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet. If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2425 esac
2426 CC=$ac_ct_CC
2433 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: no acceptable C compiler found in \$PATH
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2439 # Provide some information about the compiler.
2440 echo "$as_me:$LINENO: checking for C compiler version" >&5
2441 ac_compiler=`set X $ac_compile; echo $2`
2442 { (ac_try="$ac_compiler --version >&5"
2443 case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446 esac
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compiler --version >&5") 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }
2452 { (ac_try="$ac_compiler -v >&5"
2453 case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456 esac
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compiler -v >&5") 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2462 { (ac_try="$ac_compiler -V >&5"
2463 case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compiler -V >&5") 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }
2473 cat >conftest.$ac_ext <<_ACEOF
2474 /* confdefs.h. */
2475 _ACEOF
2476 cat confdefs.h >>conftest.$ac_ext
2477 cat >>conftest.$ac_ext <<_ACEOF
2478 /* end confdefs.h. */
2481 main ()
2485 return 0;
2487 _ACEOF
2488 ac_clean_files_save=$ac_clean_files
2489 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2490 # Try to create an executable without -o first, disregard a.out.
2491 # It will help us diagnose broken compilers, and finding out an intuition
2492 # of exeext.
2493 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2494 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2495 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2497 # List of possible output files, starting from the most likely.
2498 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2499 # only as a last resort. b.out is created by i960 compilers.
2500 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2502 # The IRIX 6 linker writes into existing files which may not be
2503 # executable, retaining their permissions. Remove them first so a
2504 # subsequent execution test works.
2505 ac_rmfiles=
2506 for ac_file in $ac_files
2508 case $ac_file in
2509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2510 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2511 esac
2512 done
2513 rm -f $ac_rmfiles
2515 if { (ac_try="$ac_link_default"
2516 case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519 esac
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_link_default") 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; then
2525 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2526 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2527 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2528 # so that the user can short-circuit this test for compilers unknown to
2529 # Autoconf.
2530 for ac_file in $ac_files ''
2532 test -f "$ac_file" || continue
2533 case $ac_file in
2534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2536 [ab].out )
2537 # We found the default executable, but exeext='' is most
2538 # certainly right.
2539 break;;
2540 *.* )
2541 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2542 then :; else
2543 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2545 # We set ac_cv_exeext here because the later test for it is not
2546 # safe: cross compilers may not add the suffix if given an `-o'
2547 # argument, so we may need to know it at that point already.
2548 # Even if this section looks crufty: it has the advantage of
2549 # actually working.
2550 break;;
2552 break;;
2553 esac
2554 done
2555 test "$ac_cv_exeext" = no && ac_cv_exeext=
2557 else
2558 ac_file=''
2561 { echo "$as_me:$LINENO: result: $ac_file" >&5
2562 echo "${ECHO_T}$ac_file" >&6; }
2563 if test -z "$ac_file"; then
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2567 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C compiler cannot create executables
2570 See \`config.log' for more details." >&2;}
2571 { (exit 77); exit 77; }; }
2574 ac_exeext=$ac_cv_exeext
2576 # Check that the compiler produces executables we can run. If not, either
2577 # the compiler is broken, or we cross compile.
2578 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2579 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2580 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2581 # If not cross compiling, check that we can run a simple program.
2582 if test "$cross_compiling" != yes; then
2583 if { ac_try='./$ac_file'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 cross_compiling=no
2594 else
2595 if test "$cross_compiling" = maybe; then
2596 cross_compiling=yes
2597 else
2598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'.
2603 See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }
2608 { echo "$as_me:$LINENO: result: yes" >&5
2609 echo "${ECHO_T}yes" >&6; }
2611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612 ac_clean_files=$ac_clean_files_save
2613 # Check that the compiler produces executables we can run. If not, either
2614 # the compiler is broken, or we cross compile.
2615 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2617 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618 echo "${ECHO_T}$cross_compiling" >&6; }
2620 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2622 if { (ac_try="$ac_link"
2623 case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_link") 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; then
2632 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2633 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2634 # work properly (i.e., refer to `conftest.exe'), while it won't with
2635 # `rm'.
2636 for ac_file in conftest.exe conftest conftest.*; do
2637 test -f "$ac_file" || continue
2638 case $ac_file in
2639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 break;;
2642 * ) break;;
2643 esac
2644 done
2645 else
2646 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2647 See \`config.log' for more details." >&5
2648 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2649 See \`config.log' for more details." >&2;}
2650 { (exit 1); exit 1; }; }
2653 rm -f conftest$ac_cv_exeext
2654 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2655 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2657 rm -f conftest.$ac_ext
2658 EXEEXT=$ac_cv_exeext
2659 ac_exeext=$EXEEXT
2660 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2661 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2662 if test "${ac_cv_objext+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h. */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h. */
2673 main ()
2677 return 0;
2679 _ACEOF
2680 rm -f conftest.o conftest.obj
2681 if { (ac_try="$ac_compile"
2682 case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compile") 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; then
2691 for ac_file in conftest.o conftest.obj conftest.*; do
2692 test -f "$ac_file" || continue;
2693 case $ac_file in
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2696 break;;
2697 esac
2698 done
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2703 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2704 See \`config.log' for more details." >&5
2705 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2706 See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2710 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2712 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2713 echo "${ECHO_T}$ac_cv_objext" >&6; }
2714 OBJEXT=$ac_cv_objext
2715 ac_objext=$OBJEXT
2716 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2717 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2718 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2729 main ()
2731 #ifndef __GNUC__
2732 choke me
2733 #endif
2736 return 0;
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2741 case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744 esac
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compile") 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } && {
2753 test -z "$ac_c_werror_flag" ||
2754 test ! -s conftest.err
2755 } && test -s conftest.$ac_objext; then
2756 ac_compiler_gnu=yes
2757 else
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2761 ac_compiler_gnu=no
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2768 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2769 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2770 GCC=`test $ac_compiler_gnu = yes && echo yes`
2771 ac_test_CFLAGS=${CFLAGS+set}
2772 ac_save_CFLAGS=$CFLAGS
2773 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_cc_g+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 ac_save_c_werror_flag=$ac_c_werror_flag
2779 ac_c_werror_flag=yes
2780 ac_cv_prog_cc_g=no
2781 CFLAGS="-g"
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2790 main ()
2794 return 0;
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.$ac_objext; then
2814 ac_cv_prog_cc_g=yes
2815 else
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 CFLAGS=""
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2828 main ()
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } && {
2849 test -z "$ac_c_werror_flag" ||
2850 test ! -s conftest.err
2851 } && test -s conftest.$ac_objext; then
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2857 ac_c_werror_flag=$ac_save_c_werror_flag
2858 CFLAGS="-g"
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2867 main ()
2871 return 0;
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (ac_try="$ac_compile"
2876 case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_compile") 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } && {
2888 test -z "$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2890 } && test -s conftest.$ac_objext; then
2891 ac_cv_prog_cc_g=yes
2892 else
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 ac_c_werror_flag=$ac_save_c_werror_flag
2908 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2909 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2910 if test "$ac_test_CFLAGS" = set; then
2911 CFLAGS=$ac_save_CFLAGS
2912 elif test $ac_cv_prog_cc_g = yes; then
2913 if test "$GCC" = yes; then
2914 CFLAGS="-g -O2"
2915 else
2916 CFLAGS="-g"
2918 else
2919 if test "$GCC" = yes; then
2920 CFLAGS="-O2"
2921 else
2922 CFLAGS=
2925 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2926 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_cc_c89+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 ac_cv_prog_cc_c89=no
2931 ac_save_CC=$CC
2932 cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h. */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2938 #include <stdarg.h>
2939 #include <stdio.h>
2940 #include <sys/types.h>
2941 #include <sys/stat.h>
2942 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2943 struct buf { int x; };
2944 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2945 static char *e (p, i)
2946 char **p;
2947 int i;
2949 return p[i];
2951 static char *f (char * (*g) (char **, int), char **p, ...)
2953 char *s;
2954 va_list v;
2955 va_start (v,p);
2956 s = g (p, va_arg (v,int));
2957 va_end (v);
2958 return s;
2961 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2962 function prototypes and stuff, but not '\xHH' hex character constants.
2963 These don't provoke an error unfortunately, instead are silently treated
2964 as 'x'. The following induces an error, until -std is added to get
2965 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2966 array size at least. It's necessary to write '\x00'==0 to get something
2967 that's true only with -std. */
2968 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2970 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2971 inside strings and character constants. */
2972 #define FOO(x) 'x'
2973 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2975 int test (int i, double x);
2976 struct s1 {int (*f) (int a);};
2977 struct s2 {int (*f) (double a);};
2978 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2979 int argc;
2980 char **argv;
2982 main ()
2984 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2986 return 0;
2988 _ACEOF
2989 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2990 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2992 CC="$ac_save_CC $ac_arg"
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } && {
3007 test -z "$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3009 } && test -s conftest.$ac_objext; then
3010 ac_cv_prog_cc_c89=$ac_arg
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3018 rm -f core conftest.err conftest.$ac_objext
3019 test "x$ac_cv_prog_cc_c89" != "xno" && break
3020 done
3021 rm -f conftest.$ac_ext
3022 CC=$ac_save_CC
3025 # AC_CACHE_VAL
3026 case "x$ac_cv_prog_cc_c89" in
3028 { echo "$as_me:$LINENO: result: none needed" >&5
3029 echo "${ECHO_T}none needed" >&6; } ;;
3030 xno)
3031 { echo "$as_me:$LINENO: result: unsupported" >&5
3032 echo "${ECHO_T}unsupported" >&6; } ;;
3034 CC="$CC $ac_cv_prog_cc_c89"
3035 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3036 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3037 esac
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 { echo "$as_me:$LINENO: checking for working volatile" >&5
3048 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
3049 if test "${ac_cv_c_volatile+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3060 main ()
3063 volatile int x;
3064 int * volatile y = (int *) 0;
3065 return !x && !y;
3067 return 0;
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && {
3084 test -z "$ac_c_werror_flag" ||
3085 test ! -s conftest.err
3086 } && test -s conftest.$ac_objext; then
3087 ac_cv_c_volatile=yes
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 ac_cv_c_volatile=no
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3098 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
3099 if test $ac_cv_c_volatile = no; then
3101 cat >>confdefs.h <<\_ACEOF
3102 #define volatile
3103 _ACEOF
3107 # Check whether --enable-static was given.
3108 if test "${enable_static+set}" = set; then
3109 enableval=$enable_static; p=${PACKAGE-default}
3110 case $enableval in
3111 yes) enable_static=yes ;;
3112 no) enable_static=no ;;
3114 enable_static=no
3115 # Look at the argument we got. We use all the common list separators.
3116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3117 for pkg in $enableval; do
3118 IFS="$lt_save_ifs"
3119 if test "X$pkg" = "X$p"; then
3120 enable_static=yes
3122 done
3123 IFS="$lt_save_ifs"
3125 esac
3126 else
3127 enable_static=no
3132 # Check whether --enable-shared was given.
3133 if test "${enable_shared+set}" = set; then
3134 enableval=$enable_shared; p=${PACKAGE-default}
3135 case $enableval in
3136 yes) enable_shared=yes ;;
3137 no) enable_shared=no ;;
3139 enable_shared=no
3140 # Look at the argument we got. We use all the common list separators.
3141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3142 for pkg in $enableval; do
3143 IFS="$lt_save_ifs"
3144 if test "X$pkg" = "X$p"; then
3145 enable_shared=yes
3147 done
3148 IFS="$lt_save_ifs"
3150 esac
3151 else
3152 enable_shared=yes
3156 # Check whether --enable-fast-install was given.
3157 if test "${enable_fast_install+set}" = set; then
3158 enableval=$enable_fast_install; p=${PACKAGE-default}
3159 case $enableval in
3160 yes) enable_fast_install=yes ;;
3161 no) enable_fast_install=no ;;
3163 enable_fast_install=no
3164 # Look at the argument we got. We use all the common list separators.
3165 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3166 for pkg in $enableval; do
3167 IFS="$lt_save_ifs"
3168 if test "X$pkg" = "X$p"; then
3169 enable_fast_install=yes
3171 done
3172 IFS="$lt_save_ifs"
3174 esac
3175 else
3176 enable_fast_install=yes
3180 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3181 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3182 if test "${lt_cv_path_SED+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 # Loop through the user's path and test for sed and gsed.
3186 # Then use that list of sed's as ones to test for truncation.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for lt_ac_prog in sed gsed; do
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3195 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3197 done
3198 done
3199 done
3200 IFS=$as_save_IFS
3201 lt_ac_max=0
3202 lt_ac_count=0
3203 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3204 # along with /bin/sed that truncates output.
3205 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3206 test ! -f $lt_ac_sed && continue
3207 cat /dev/null > conftest.in
3208 lt_ac_count=0
3209 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3210 # Check for GNU sed and select it if it is found.
3211 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3212 lt_cv_path_SED=$lt_ac_sed
3213 break
3215 while true; do
3216 cat conftest.in conftest.in >conftest.tmp
3217 mv conftest.tmp conftest.in
3218 cp conftest.in conftest.nl
3219 echo >>conftest.nl
3220 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3221 cmp -s conftest.out conftest.nl || break
3222 # 10000 chars as input seems more than enough
3223 test $lt_ac_count -gt 10 && break
3224 lt_ac_count=`expr $lt_ac_count + 1`
3225 if test $lt_ac_count -gt $lt_ac_max; then
3226 lt_ac_max=$lt_ac_count
3227 lt_cv_path_SED=$lt_ac_sed
3229 done
3230 done
3234 SED=$lt_cv_path_SED
3236 { echo "$as_me:$LINENO: result: $SED" >&5
3237 echo "${ECHO_T}$SED" >&6; }
3239 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3240 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3241 if test "${ac_cv_path_GREP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 # Extract the first word of "grep ggrep" to use in msg output
3245 if test -z "$GREP"; then
3246 set dummy grep ggrep; ac_prog_name=$2
3247 if test "${ac_cv_path_GREP+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 ac_path_GREP_found=false
3251 # Loop through the user's path and test for each of PROGNAME-LIST
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_prog in grep ggrep; do
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3260 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3261 # Check for GNU ac_path_GREP and select it if it is found.
3262 # Check for GNU $ac_path_GREP
3263 case `"$ac_path_GREP" --version 2>&1` in
3264 *GNU*)
3265 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3267 ac_count=0
3268 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3269 while :
3271 cat "conftest.in" "conftest.in" >"conftest.tmp"
3272 mv "conftest.tmp" "conftest.in"
3273 cp "conftest.in" "conftest.nl"
3274 echo 'GREP' >> "conftest.nl"
3275 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3277 ac_count=`expr $ac_count + 1`
3278 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3279 # Best one so far, save it but keep looking for a better one
3280 ac_cv_path_GREP="$ac_path_GREP"
3281 ac_path_GREP_max=$ac_count
3283 # 10*(2^10) chars as input seems more than enough
3284 test $ac_count -gt 10 && break
3285 done
3286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3287 esac
3290 $ac_path_GREP_found && break 3
3291 done
3292 done
3294 done
3295 IFS=$as_save_IFS
3300 GREP="$ac_cv_path_GREP"
3301 if test -z "$GREP"; then
3302 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3303 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3304 { (exit 1); exit 1; }; }
3307 else
3308 ac_cv_path_GREP=$GREP
3313 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3314 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3315 GREP="$ac_cv_path_GREP"
3318 { echo "$as_me:$LINENO: checking for egrep" >&5
3319 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3320 if test "${ac_cv_path_EGREP+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3324 then ac_cv_path_EGREP="$GREP -E"
3325 else
3326 # Extract the first word of "egrep" to use in msg output
3327 if test -z "$EGREP"; then
3328 set dummy egrep; ac_prog_name=$2
3329 if test "${ac_cv_path_EGREP+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 ac_path_EGREP_found=false
3333 # Loop through the user's path and test for each of PROGNAME-LIST
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_prog in egrep; do
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3342 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3343 # Check for GNU ac_path_EGREP and select it if it is found.
3344 # Check for GNU $ac_path_EGREP
3345 case `"$ac_path_EGREP" --version 2>&1` in
3346 *GNU*)
3347 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3349 ac_count=0
3350 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3351 while :
3353 cat "conftest.in" "conftest.in" >"conftest.tmp"
3354 mv "conftest.tmp" "conftest.in"
3355 cp "conftest.in" "conftest.nl"
3356 echo 'EGREP' >> "conftest.nl"
3357 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3359 ac_count=`expr $ac_count + 1`
3360 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3361 # Best one so far, save it but keep looking for a better one
3362 ac_cv_path_EGREP="$ac_path_EGREP"
3363 ac_path_EGREP_max=$ac_count
3365 # 10*(2^10) chars as input seems more than enough
3366 test $ac_count -gt 10 && break
3367 done
3368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3369 esac
3372 $ac_path_EGREP_found && break 3
3373 done
3374 done
3376 done
3377 IFS=$as_save_IFS
3382 EGREP="$ac_cv_path_EGREP"
3383 if test -z "$EGREP"; then
3384 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3385 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3386 { (exit 1); exit 1; }; }
3389 else
3390 ac_cv_path_EGREP=$EGREP
3396 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3397 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3398 EGREP="$ac_cv_path_EGREP"
3402 # Check whether --with-gnu-ld was given.
3403 if test "${with_gnu_ld+set}" = set; then
3404 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3405 else
3406 with_gnu_ld=no
3409 ac_prog=ld
3410 if test "$GCC" = yes; then
3411 # Check if gcc -print-prog-name=ld gives a path.
3412 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3413 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3414 case $host in
3415 *-*-mingw*)
3416 # gcc leaves a trailing carriage return which upsets mingw
3417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3420 esac
3421 case $ac_prog in
3422 # Accept absolute paths.
3423 [\\/]* | ?:[\\/]*)
3424 re_direlt='/[^/][^/]*/\.\./'
3425 # Canonicalize the pathname of ld
3426 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3427 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3428 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3429 done
3430 test -z "$LD" && LD="$ac_prog"
3433 # If it fails, then pretend we aren't using GCC.
3434 ac_prog=ld
3437 # If it is relative, then search for the first ld in PATH.
3438 with_gnu_ld=unknown
3440 esac
3441 elif test "$with_gnu_ld" = yes; then
3442 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3443 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3444 else
3445 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3446 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3448 if test "${lt_cv_path_LD+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 if test -z "$LD"; then
3452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3453 for ac_dir in $PATH; do
3454 IFS="$lt_save_ifs"
3455 test -z "$ac_dir" && ac_dir=.
3456 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3457 lt_cv_path_LD="$ac_dir/$ac_prog"
3458 # Check to see if the program is GNU ld. I'd rather use --version,
3459 # but apparently some variants of GNU ld only accept -v.
3460 # Break only if it was the GNU/non-GNU ld that we prefer.
3461 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3462 *GNU* | *'with BFD'*)
3463 test "$with_gnu_ld" != no && break
3466 test "$with_gnu_ld" != yes && break
3468 esac
3470 done
3471 IFS="$lt_save_ifs"
3472 else
3473 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3477 LD="$lt_cv_path_LD"
3478 if test -n "$LD"; then
3479 { echo "$as_me:$LINENO: result: $LD" >&5
3480 echo "${ECHO_T}$LD" >&6; }
3481 else
3482 { echo "$as_me:$LINENO: result: no" >&5
3483 echo "${ECHO_T}no" >&6; }
3485 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3486 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3487 { (exit 1); exit 1; }; }
3488 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3489 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3490 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3494 case `$LD -v 2>&1 </dev/null` in
3495 *GNU* | *'with BFD'*)
3496 lt_cv_prog_gnu_ld=yes
3499 lt_cv_prog_gnu_ld=no
3501 esac
3503 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3504 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3505 with_gnu_ld=$lt_cv_prog_gnu_ld
3508 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3509 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3510 if test "${lt_cv_ld_reload_flag+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 lt_cv_ld_reload_flag='-r'
3515 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3516 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3517 reload_flag=$lt_cv_ld_reload_flag
3518 case $reload_flag in
3519 "" | " "*) ;;
3520 *) reload_flag=" $reload_flag" ;;
3521 esac
3522 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3523 case $host_os in
3524 darwin*)
3525 if test "$GCC" = yes; then
3526 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3527 else
3528 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3531 esac
3533 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3534 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3535 if test "${lt_cv_path_NM+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$NM"; then
3539 # Let the user override the test.
3540 lt_cv_path_NM="$NM"
3541 else
3542 lt_nm_to_check="${ac_tool_prefix}nm"
3543 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3544 lt_nm_to_check="$lt_nm_to_check nm"
3546 for lt_tmp_nm in $lt_nm_to_check; do
3547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3548 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3549 IFS="$lt_save_ifs"
3550 test -z "$ac_dir" && ac_dir=.
3551 tmp_nm="$ac_dir/$lt_tmp_nm"
3552 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3553 # Check to see if the nm accepts a BSD-compat flag.
3554 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3555 # nm: unknown option "B" ignored
3556 # Tru64's nm complains that /dev/null is an invalid object file
3557 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3558 */dev/null* | *'Invalid file or object type'*)
3559 lt_cv_path_NM="$tmp_nm -B"
3560 break
3563 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3564 */dev/null*)
3565 lt_cv_path_NM="$tmp_nm -p"
3566 break
3569 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3570 continue # so that we can try to find one that supports BSD flags
3572 esac
3574 esac
3576 done
3577 IFS="$lt_save_ifs"
3578 done
3579 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3582 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3583 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3584 NM="$lt_cv_path_NM"
3586 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3587 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3588 LN_S=$as_ln_s
3589 if test "$LN_S" = "ln -s"; then
3590 { echo "$as_me:$LINENO: result: yes" >&5
3591 echo "${ECHO_T}yes" >&6; }
3592 else
3593 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3594 echo "${ECHO_T}no, using $LN_S" >&6; }
3597 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3598 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3599 if test "${lt_cv_deplibs_check_method+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602 lt_cv_file_magic_cmd='$MAGIC_CMD'
3603 lt_cv_file_magic_test_file=
3604 lt_cv_deplibs_check_method='unknown'
3605 # Need to set the preceding variable on all platforms that support
3606 # interlibrary dependencies.
3607 # 'none' -- dependencies not supported.
3608 # `unknown' -- same as none, but documents that we really don't know.
3609 # 'pass_all' -- all dependencies passed with no checks.
3610 # 'test_compile' -- check by making test program.
3611 # 'file_magic [[regex]]' -- check by looking for files in library path
3612 # which responds to the $file_magic_cmd with a given extended regex.
3613 # If you have `file' or equivalent on your system and you're not sure
3614 # whether `pass_all' will *always* work, you probably want this one.
3616 case $host_os in
3617 aix4* | aix5*)
3618 lt_cv_deplibs_check_method=pass_all
3621 beos*)
3622 lt_cv_deplibs_check_method=pass_all
3625 bsdi[45]*)
3626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3627 lt_cv_file_magic_cmd='/usr/bin/file -L'
3628 lt_cv_file_magic_test_file=/shlib/libc.so
3631 cygwin*)
3632 # func_win32_libid is a shell function defined in ltmain.sh
3633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3634 lt_cv_file_magic_cmd='func_win32_libid'
3637 mingw* | pw32*)
3638 # Base MSYS/MinGW do not provide the 'file' command needed by
3639 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3640 # unless we find 'file', for example because we are cross-compiling.
3641 if ( file / ) >/dev/null 2>&1; then
3642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3643 lt_cv_file_magic_cmd='func_win32_libid'
3644 else
3645 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3646 lt_cv_file_magic_cmd='$OBJDUMP -f'
3650 darwin* | rhapsody*)
3651 lt_cv_deplibs_check_method=pass_all
3654 freebsd* | dragonfly*)
3655 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3656 case $host_cpu in
3657 i*86 )
3658 # Not sure whether the presence of OpenBSD here was a mistake.
3659 # Let's accept both of them until this is cleared up.
3660 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3661 lt_cv_file_magic_cmd=/usr/bin/file
3662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3664 esac
3665 else
3666 lt_cv_deplibs_check_method=pass_all
3670 gnu*)
3671 lt_cv_deplibs_check_method=pass_all
3674 hpux10.20* | hpux11*)
3675 lt_cv_file_magic_cmd=/usr/bin/file
3676 case $host_cpu in
3677 ia64*)
3678 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3679 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3681 hppa*64*)
3682 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]'
3683 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3686 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3687 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3689 esac
3692 interix[3-9]*)
3693 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3697 irix5* | irix6* | nonstopux*)
3698 case $LD in
3699 *-32|*"-32 ") libmagic=32-bit;;
3700 *-n32|*"-n32 ") libmagic=N32;;
3701 *-64|*"-64 ") libmagic=64-bit;;
3702 *) libmagic=never-match;;
3703 esac
3704 lt_cv_deplibs_check_method=pass_all
3707 # This must be Linux ELF.
3708 linux* | k*bsd*-gnu)
3709 lt_cv_deplibs_check_method=pass_all
3712 netbsd*)
3713 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3715 else
3716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3720 newos6*)
3721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3722 lt_cv_file_magic_cmd=/usr/bin/file
3723 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3726 nto-qnx*)
3727 lt_cv_deplibs_check_method=unknown
3730 openbsd*)
3731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3733 else
3734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3738 osf3* | osf4* | osf5*)
3739 lt_cv_deplibs_check_method=pass_all
3742 rdos*)
3743 lt_cv_deplibs_check_method=pass_all
3746 solaris*)
3747 lt_cv_deplibs_check_method=pass_all
3750 sysv4 | sysv4.3*)
3751 case $host_vendor in
3752 motorola)
3753 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]'
3754 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3756 ncr)
3757 lt_cv_deplibs_check_method=pass_all
3759 sequent)
3760 lt_cv_file_magic_cmd='/bin/file'
3761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3763 sni)
3764 lt_cv_file_magic_cmd='/bin/file'
3765 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3766 lt_cv_file_magic_test_file=/lib/libc.so
3768 siemens)
3769 lt_cv_deplibs_check_method=pass_all
3772 lt_cv_deplibs_check_method=pass_all
3774 esac
3777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3778 lt_cv_deplibs_check_method=pass_all
3780 esac
3783 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3784 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3785 file_magic_cmd=$lt_cv_file_magic_cmd
3786 deplibs_check_method=$lt_cv_deplibs_check_method
3787 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3792 # If no C compiler was specified, use CC.
3793 LTCC=${LTCC-"$CC"}
3795 # If no C compiler flags were specified, use CFLAGS.
3796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3798 # Allow CC to be a program name with arguments.
3799 compiler=$CC
3801 # Check whether --enable-libtool-lock was given.
3802 if test "${enable_libtool_lock+set}" = set; then
3803 enableval=$enable_libtool_lock;
3806 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3808 # Some flags need to be propagated to the compiler or linker for good
3809 # libtool support.
3810 case $host in
3811 ia64-*-hpux*)
3812 # Find out which ABI we are using.
3813 echo 'int i;' > conftest.$ac_ext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3815 (eval $ac_compile) 2>&5
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; then
3819 case `/usr/bin/file conftest.$ac_objext` in
3820 *ELF-32*)
3821 HPUX_IA64_MODE="32"
3823 *ELF-64*)
3824 HPUX_IA64_MODE="64"
3826 esac
3828 rm -rf conftest*
3830 *-*-irix6*)
3831 # Find out which ABI we are using.
3832 echo '#line 3832 "configure"' > conftest.$ac_ext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>&5
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; then
3838 if test "$lt_cv_prog_gnu_ld" = yes; then
3839 case `/usr/bin/file conftest.$ac_objext` in
3840 *32-bit*)
3841 LD="${LD-ld} -melf32bsmip"
3843 *N32*)
3844 LD="${LD-ld} -melf32bmipn32"
3846 *64-bit*)
3847 LD="${LD-ld} -melf64bmip"
3849 esac
3850 else
3851 case `/usr/bin/file conftest.$ac_objext` in
3852 *32-bit*)
3853 LD="${LD-ld} -32"
3855 *N32*)
3856 LD="${LD-ld} -n32"
3858 *64-bit*)
3859 LD="${LD-ld} -64"
3861 esac
3864 rm -rf conftest*
3867 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3868 s390*-*linux*|sparc*-*linux*)
3869 # Find out which ABI we are using.
3870 echo 'int i;' > conftest.$ac_ext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; then
3876 case `/usr/bin/file conftest.o` in
3877 *32-bit*)
3878 case $host in
3879 x86_64-*kfreebsd*-gnu)
3880 LD="${LD-ld} -m elf_i386_fbsd"
3882 x86_64-*linux*)
3883 LD="${LD-ld} -m elf_i386"
3885 ppc64-*linux*|powerpc64-*linux*)
3886 LD="${LD-ld} -m elf32ppclinux"
3888 s390x-*linux*)
3889 LD="${LD-ld} -m elf_s390"
3891 sparc64-*linux*)
3892 LD="${LD-ld} -m elf32_sparc"
3894 esac
3896 *64-bit*)
3897 case $host in
3898 x86_64-*kfreebsd*-gnu)
3899 LD="${LD-ld} -m elf_x86_64_fbsd"
3901 x86_64-*linux*)
3902 LD="${LD-ld} -m elf_x86_64"
3904 ppc*-*linux*|powerpc*-*linux*)
3905 LD="${LD-ld} -m elf64ppc"
3907 s390*-*linux*)
3908 LD="${LD-ld} -m elf64_s390"
3910 sparc*-*linux*)
3911 LD="${LD-ld} -m elf64_sparc"
3913 esac
3915 esac
3917 rm -rf conftest*
3920 *-*-sco3.2v5*)
3921 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3922 SAVE_CFLAGS="$CFLAGS"
3923 CFLAGS="$CFLAGS -belf"
3924 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3925 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3926 if test "${lt_cv_cc_needs_belf+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3943 main ()
3947 return 0;
3949 _ACEOF
3950 rm -f conftest.$ac_objext conftest$ac_exeext
3951 if { (ac_try="$ac_link"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_link") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest$ac_exeext &&
3967 $as_test_x conftest$ac_exeext; then
3968 lt_cv_cc_needs_belf=yes
3969 else
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 lt_cv_cc_needs_belf=no
3976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3977 conftest$ac_exeext conftest.$ac_ext
3978 ac_ext=c
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3986 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3989 CFLAGS="$SAVE_CFLAGS"
3992 sparc*-*solaris*)
3993 # Find out which ABI we are using.
3994 echo 'int i;' > conftest.$ac_ext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996 (eval $ac_compile) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; then
4000 case `/usr/bin/file conftest.o` in
4001 *64-bit*)
4002 case $lt_cv_prog_gnu_ld in
4003 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4004 *) LD="${LD-ld} -64" ;;
4005 esac
4007 esac
4009 rm -rf conftest*
4013 esac
4015 need_locks="$enable_libtool_lock"
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4024 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4025 # On Suns, sometimes $CPP names a directory.
4026 if test -n "$CPP" && test -d "$CPP"; then
4027 CPP=
4029 if test -z "$CPP"; then
4030 if test "${ac_cv_prog_CPP+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033 # Double quotes because CPP needs to be expanded
4034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4036 ac_preproc_ok=false
4037 for ac_c_preproc_warn_flag in '' yes
4039 # Use a header file that comes with gcc, so configuring glibc
4040 # with a fresh cross-compiler works.
4041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042 # <limits.h> exists even on freestanding compilers.
4043 # On the NeXT, cc -E runs the code through the compiler's parser,
4044 # not just through cpp. "Syntax error" is here to catch this case.
4045 cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h. */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 #ifdef __STDC__
4052 # include <limits.h>
4053 #else
4054 # include <assert.h>
4055 #endif
4056 Syntax error
4057 _ACEOF
4058 if { (ac_try="$ac_cpp conftest.$ac_ext"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } >/dev/null && {
4071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 }; then
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 # Broken: fails on valid input.
4080 continue
4083 rm -f conftest.err conftest.$ac_ext
4085 # OK, works on sane cases. Now check whether nonexistent headers
4086 # can be detected and how.
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093 #include <ac_nonexistent.h>
4094 _ACEOF
4095 if { (ac_try="$ac_cpp conftest.$ac_ext"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } >/dev/null && {
4108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4109 test ! -s conftest.err
4110 }; then
4111 # Broken: success on invalid input.
4112 continue
4113 else
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 # Passes both tests.
4118 ac_preproc_ok=:
4119 break
4122 rm -f conftest.err conftest.$ac_ext
4124 done
4125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126 rm -f conftest.err conftest.$ac_ext
4127 if $ac_preproc_ok; then
4128 break
4131 done
4132 ac_cv_prog_CPP=$CPP
4135 CPP=$ac_cv_prog_CPP
4136 else
4137 ac_cv_prog_CPP=$CPP
4139 { echo "$as_me:$LINENO: result: $CPP" >&5
4140 echo "${ECHO_T}$CPP" >&6; }
4141 ac_preproc_ok=false
4142 for ac_c_preproc_warn_flag in '' yes
4144 # Use a header file that comes with gcc, so configuring glibc
4145 # with a fresh cross-compiler works.
4146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147 # <limits.h> exists even on freestanding compilers.
4148 # On the NeXT, cc -E runs the code through the compiler's parser,
4149 # not just through cpp. "Syntax error" is here to catch this case.
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h. */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 #ifdef __STDC__
4157 # include <limits.h>
4158 #else
4159 # include <assert.h>
4160 #endif
4161 Syntax error
4162 _ACEOF
4163 if { (ac_try="$ac_cpp conftest.$ac_ext"
4164 case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } >/dev/null && {
4176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4178 }; then
4180 else
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 # Broken: fails on valid input.
4185 continue
4188 rm -f conftest.err conftest.$ac_ext
4190 # OK, works on sane cases. Now check whether nonexistent headers
4191 # can be detected and how.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #include <ac_nonexistent.h>
4199 _ACEOF
4200 if { (ac_try="$ac_cpp conftest.$ac_ext"
4201 case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204 esac
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } >/dev/null && {
4213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4215 }; then
4216 # Broken: success on invalid input.
4217 continue
4218 else
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 # Passes both tests.
4223 ac_preproc_ok=:
4224 break
4227 rm -f conftest.err conftest.$ac_ext
4229 done
4230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4231 rm -f conftest.err conftest.$ac_ext
4232 if $ac_preproc_ok; then
4234 else
4235 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4236 See \`config.log' for more details." >&5
4237 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4238 See \`config.log' for more details." >&2;}
4239 { (exit 1); exit 1; }; }
4242 ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4251 if test "${ac_cv_header_stdc+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <stdlib.h>
4261 #include <stdarg.h>
4262 #include <string.h>
4263 #include <float.h>
4266 main ()
4270 return 0;
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest.$ac_objext; then
4290 ac_cv_header_stdc=yes
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_header_stdc=no
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 if test $ac_cv_header_stdc = yes; then
4301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4302 cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h. */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 #include <string.h>
4310 _ACEOF
4311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312 $EGREP "memchr" >/dev/null 2>&1; then
4314 else
4315 ac_cv_header_stdc=no
4317 rm -f conftest*
4321 if test $ac_cv_header_stdc = yes; then
4322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h. */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 #include <stdlib.h>
4331 _ACEOF
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333 $EGREP "free" >/dev/null 2>&1; then
4335 else
4336 ac_cv_header_stdc=no
4338 rm -f conftest*
4342 if test $ac_cv_header_stdc = yes; then
4343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4344 if test "$cross_compiling" = yes; then
4346 else
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <ctype.h>
4354 #include <stdlib.h>
4355 #if ((' ' & 0x0FF) == 0x020)
4356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4358 #else
4359 # define ISLOWER(c) \
4360 (('a' <= (c) && (c) <= 'i') \
4361 || ('j' <= (c) && (c) <= 'r') \
4362 || ('s' <= (c) && (c) <= 'z'))
4363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364 #endif
4366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4368 main ()
4370 int i;
4371 for (i = 0; i < 256; i++)
4372 if (XOR (islower (i), ISLOWER (i))
4373 || toupper (i) != TOUPPER (i))
4374 return 2;
4375 return 0;
4377 _ACEOF
4378 rm -f conftest$ac_exeext
4379 if { (ac_try="$ac_link"
4380 case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_link") 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4399 else
4400 echo "$as_me: program exited with status $ac_status" >&5
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 ( exit $ac_status )
4405 ac_cv_header_stdc=no
4407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4413 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4414 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4415 if test $ac_cv_header_stdc = yes; then
4417 cat >>confdefs.h <<\_ACEOF
4418 #define STDC_HEADERS 1
4419 _ACEOF
4423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4433 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4434 inttypes.h stdint.h unistd.h
4436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 $ac_includes_default
4450 #include <$ac_header>
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4454 case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 eval "$as_ac_Header=yes"
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 eval "$as_ac_Header=no"
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 ac_res=`eval echo '${'$as_ac_Header'}'`
4480 { echo "$as_me:$LINENO: result: $ac_res" >&5
4481 echo "${ECHO_T}$ac_res" >&6; }
4482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4483 cat >>confdefs.h <<_ACEOF
4484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4485 _ACEOF
4489 done
4493 for ac_header in dlfcn.h
4495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 ac_res=`eval echo '${'$as_ac_Header'}'`
4503 { echo "$as_me:$LINENO: result: $ac_res" >&5
4504 echo "${ECHO_T}$ac_res" >&6; }
4505 else
4506 # Is the header compilable?
4507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4516 #include <$ac_header>
4517 _ACEOF
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_compile") 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } && {
4532 test -z "$ac_c_werror_flag" ||
4533 test ! -s conftest.err
4534 } && test -s conftest.$ac_objext; then
4535 ac_header_compiler=yes
4536 else
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4540 ac_header_compiler=no
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4545 echo "${ECHO_T}$ac_header_compiler" >&6; }
4547 # Is the header present?
4548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #include <$ac_header>
4557 _ACEOF
4558 if { (ac_try="$ac_cpp conftest.$ac_ext"
4559 case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562 esac
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null && {
4571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4572 test ! -s conftest.err
4573 }; then
4574 ac_header_preproc=yes
4575 else
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4579 ac_header_preproc=no
4582 rm -f conftest.err conftest.$ac_ext
4583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4584 echo "${ECHO_T}$ac_header_preproc" >&6; }
4586 # So? What about this header?
4587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4588 yes:no: )
4589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4593 ac_header_preproc=yes
4595 no:yes:* )
4596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4608 ( cat <<\_ASBOX
4609 ## ------------------------- ##
4610 ## Report this to des@des.no ##
4611 ## ------------------------- ##
4612 _ASBOX
4613 ) | sed "s/^/$as_me: WARNING: /" >&2
4615 esac
4616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 eval "$as_ac_Header=\$ac_header_preproc"
4623 ac_res=`eval echo '${'$as_ac_Header'}'`
4624 { echo "$as_me:$LINENO: result: $ac_res" >&5
4625 echo "${ECHO_T}$ac_res" >&6; }
4628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4629 cat >>confdefs.h <<_ACEOF
4630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4631 _ACEOF
4635 done
4637 ac_ext=cpp
4638 ac_cpp='$CXXCPP $CPPFLAGS'
4639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4642 if test -z "$CXX"; then
4643 if test -n "$CCC"; then
4644 CXX=$CCC
4645 else
4646 if test -n "$ac_tool_prefix"; then
4647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_prog_CXX+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 if test -n "$CXX"; then
4657 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4672 IFS=$as_save_IFS
4676 CXX=$ac_cv_prog_CXX
4677 if test -n "$CXX"; then
4678 { echo "$as_me:$LINENO: result: $CXX" >&5
4679 echo "${ECHO_T}$CXX" >&6; }
4680 else
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4686 test -n "$CXX" && break
4687 done
4689 if test -z "$CXX"; then
4690 ac_ct_CXX=$CXX
4691 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4693 # Extract the first word of "$ac_prog", so it can be a program name with args.
4694 set dummy $ac_prog; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700 if test -n "$ac_ct_CXX"; then
4701 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_ac_ct_CXX="$ac_prog"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4714 done
4715 done
4716 IFS=$as_save_IFS
4720 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4721 if test -n "$ac_ct_CXX"; then
4722 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4723 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4724 else
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 test -n "$ac_ct_CXX" && break
4731 done
4733 if test "x$ac_ct_CXX" = x; then
4734 CXX="g++"
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4739 whose name does not start with the host triplet. If you think this
4740 configuration is useful to you, please write to autoconf@gnu.org." >&5
4741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4742 whose name does not start with the host triplet. If you think this
4743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4744 ac_tool_warned=yes ;;
4745 esac
4746 CXX=$ac_ct_CXX
4752 # Provide some information about the compiler.
4753 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4754 ac_compiler=`set X $ac_compile; echo $2`
4755 { (ac_try="$ac_compiler --version >&5"
4756 case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759 esac
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_compiler --version >&5") 2>&5
4762 ac_status=$?
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }
4765 { (ac_try="$ac_compiler -v >&5"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_compiler -v >&5") 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }
4775 { (ac_try="$ac_compiler -V >&5"
4776 case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779 esac
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_compiler -V >&5") 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }
4786 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4787 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4788 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4799 main ()
4801 #ifndef __GNUC__
4802 choke me
4803 #endif
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (ac_try="$ac_compile"
4811 case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_compile") 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_cxx_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest.$ac_objext; then
4826 ac_compiler_gnu=yes
4827 else
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 ac_compiler_gnu=no
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4838 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4839 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4840 GXX=`test $ac_compiler_gnu = yes && echo yes`
4841 ac_test_CXXFLAGS=${CXXFLAGS+set}
4842 ac_save_CXXFLAGS=$CXXFLAGS
4843 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4844 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4845 if test "${ac_cv_prog_cxx_g+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4849 ac_cxx_werror_flag=yes
4850 ac_cv_prog_cxx_g=no
4851 CXXFLAGS="-g"
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4860 main ()
4864 return 0;
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (ac_try="$ac_compile"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_compile") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } && {
4881 test -z "$ac_cxx_werror_flag" ||
4882 test ! -s conftest.err
4883 } && test -s conftest.$ac_objext; then
4884 ac_cv_prog_cxx_g=yes
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 CXXFLAGS=""
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4898 main ()
4902 return 0;
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_cxx_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4923 else
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4928 CXXFLAGS="-g"
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4937 main ()
4941 return 0;
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (ac_try="$ac_compile"
4946 case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949 esac
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_compile") 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_cxx_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest.$ac_objext; then
4961 ac_cv_prog_cxx_g=yes
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4978 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4979 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4980 if test "$ac_test_CXXFLAGS" = set; then
4981 CXXFLAGS=$ac_save_CXXFLAGS
4982 elif test $ac_cv_prog_cxx_g = yes; then
4983 if test "$GXX" = yes; then
4984 CXXFLAGS="-g -O2"
4985 else
4986 CXXFLAGS="-g"
4988 else
4989 if test "$GXX" = yes; then
4990 CXXFLAGS="-O2"
4991 else
4992 CXXFLAGS=
4995 ac_ext=cpp
4996 ac_cpp='$CXXCPP $CPPFLAGS'
4997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5003 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5004 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5005 (test "X$CXX" != "Xg++"))) ; then
5006 ac_ext=cpp
5007 ac_cpp='$CXXCPP $CPPFLAGS'
5008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5011 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5012 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5013 if test -z "$CXXCPP"; then
5014 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017 # Double quotes because CXXCPP needs to be expanded
5018 for CXXCPP in "$CXX -E" "/lib/cpp"
5020 ac_preproc_ok=false
5021 for ac_cxx_preproc_warn_flag in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #ifdef __STDC__
5036 # include <limits.h>
5037 #else
5038 # include <assert.h>
5039 #endif
5040 Syntax error
5041 _ACEOF
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null && {
5055 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5056 test ! -s conftest.err
5057 }; then
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 # Broken: fails on valid input.
5064 continue
5067 rm -f conftest.err conftest.$ac_ext
5069 # OK, works on sane cases. Now check whether nonexistent headers
5070 # can be detected and how.
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <ac_nonexistent.h>
5078 _ACEOF
5079 if { (ac_try="$ac_cpp conftest.$ac_ext"
5080 case "(($ac_try" in
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null && {
5092 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5093 test ! -s conftest.err
5094 }; then
5095 # Broken: success on invalid input.
5096 continue
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 # Passes both tests.
5102 ac_preproc_ok=:
5103 break
5106 rm -f conftest.err conftest.$ac_ext
5108 done
5109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110 rm -f conftest.err conftest.$ac_ext
5111 if $ac_preproc_ok; then
5112 break
5115 done
5116 ac_cv_prog_CXXCPP=$CXXCPP
5119 CXXCPP=$ac_cv_prog_CXXCPP
5120 else
5121 ac_cv_prog_CXXCPP=$CXXCPP
5123 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5124 echo "${ECHO_T}$CXXCPP" >&6; }
5125 ac_preproc_ok=false
5126 for ac_cxx_preproc_warn_flag in '' yes
5128 # Use a header file that comes with gcc, so configuring glibc
5129 # with a fresh cross-compiler works.
5130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5131 # <limits.h> exists even on freestanding compilers.
5132 # On the NeXT, cc -E runs the code through the compiler's parser,
5133 # not just through cpp. "Syntax error" is here to catch this case.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #ifdef __STDC__
5141 # include <limits.h>
5142 #else
5143 # include <assert.h>
5144 #endif
5145 Syntax error
5146 _ACEOF
5147 if { (ac_try="$ac_cpp conftest.$ac_ext"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } >/dev/null && {
5160 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5161 test ! -s conftest.err
5162 }; then
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 # Broken: fails on valid input.
5169 continue
5172 rm -f conftest.err conftest.$ac_ext
5174 # OK, works on sane cases. Now check whether nonexistent headers
5175 # can be detected and how.
5176 cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <ac_nonexistent.h>
5183 _ACEOF
5184 if { (ac_try="$ac_cpp conftest.$ac_ext"
5185 case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5198 test ! -s conftest.err
5199 }; then
5200 # Broken: success on invalid input.
5201 continue
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 # Passes both tests.
5207 ac_preproc_ok=:
5208 break
5211 rm -f conftest.err conftest.$ac_ext
5213 done
5214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.err conftest.$ac_ext
5216 if $ac_preproc_ok; then
5218 else
5219 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5220 See \`config.log' for more details." >&5
5221 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5222 See \`config.log' for more details." >&2;}
5223 { (exit 1); exit 1; }; }
5226 ac_ext=cpp
5227 ac_cpp='$CXXCPP $CPPFLAGS'
5228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5235 ac_ext=f
5236 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5237 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5239 if test -n "$ac_tool_prefix"; then
5240 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
5242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5246 if test "${ac_cv_prog_F77+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test -n "$F77"; then
5250 ac_cv_prog_F77="$F77" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5265 IFS=$as_save_IFS
5269 F77=$ac_cv_prog_F77
5270 if test -n "$F77"; then
5271 { echo "$as_me:$LINENO: result: $F77" >&5
5272 echo "${ECHO_T}$F77" >&6; }
5273 else
5274 { echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6; }
5279 test -n "$F77" && break
5280 done
5282 if test -z "$F77"; then
5283 ac_ct_F77=$F77
5284 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
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test -n "$ac_ct_F77"; then
5294 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_ac_ct_F77="$ac_prog"
5304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5313 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5314 if test -n "$ac_ct_F77"; then
5315 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5316 echo "${ECHO_T}$ac_ct_F77" >&6; }
5317 else
5318 { echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6; }
5323 test -n "$ac_ct_F77" && break
5324 done
5326 if test "x$ac_ct_F77" = x; then
5327 F77=""
5328 else
5329 case $cross_compiling:$ac_tool_warned in
5330 yes:)
5331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5332 whose name does not start with the host triplet. If you think this
5333 configuration is useful to you, please write to autoconf@gnu.org." >&5
5334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5335 whose name does not start with the host triplet. If you think this
5336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5337 ac_tool_warned=yes ;;
5338 esac
5339 F77=$ac_ct_F77
5344 # Provide some information about the compiler.
5345 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5346 ac_compiler=`set X $ac_compile; echo $2`
5347 { (ac_try="$ac_compiler --version >&5"
5348 case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compiler --version >&5") 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }
5357 { (ac_try="$ac_compiler -v >&5"
5358 case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compiler -v >&5") 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }
5367 { (ac_try="$ac_compiler -V >&5"
5368 case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5371 esac
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373 (eval "$ac_compiler -V >&5") 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }
5377 rm -f a.out
5379 # If we don't use `.F' as extension, the preprocessor is not run on the
5380 # input file. (Note that this only needs to work for GNU compilers.)
5381 ac_save_ext=$ac_ext
5382 ac_ext=F
5383 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5384 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5385 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 cat >conftest.$ac_ext <<_ACEOF
5389 program main
5390 #ifndef __GNUC__
5391 choke me
5392 #endif
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5398 case "(($ac_try" in
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5401 esac
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_f77_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.$ac_objext; then
5413 ac_compiler_gnu=yes
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 ac_compiler_gnu=no
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5425 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5426 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5427 ac_ext=$ac_save_ext
5428 ac_test_FFLAGS=${FFLAGS+set}
5429 ac_save_FFLAGS=$FFLAGS
5430 FFLAGS=
5431 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5432 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5433 if test "${ac_cv_prog_f77_g+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436 FFLAGS=-g
5437 cat >conftest.$ac_ext <<_ACEOF
5438 program main
5441 _ACEOF
5442 rm -f conftest.$ac_objext
5443 if { (ac_try="$ac_compile"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compile") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_f77_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest.$ac_objext; then
5459 ac_cv_prog_f77_g=yes
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 ac_cv_prog_f77_g=no
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5471 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5472 if test "$ac_test_FFLAGS" = set; then
5473 FFLAGS=$ac_save_FFLAGS
5474 elif test $ac_cv_prog_f77_g = yes; then
5475 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5476 FFLAGS="-g -O2"
5477 else
5478 FFLAGS="-g"
5480 else
5481 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5482 FFLAGS="-O2"
5483 else
5484 FFLAGS=
5488 G77=`test $ac_compiler_gnu = yes && echo yes`
5489 ac_ext=c
5490 ac_cpp='$CPP $CPPFLAGS'
5491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5499 # find the maximum length of command line arguments
5500 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5501 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5502 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5506 teststring="ABCD"
5508 case $build_os in
5509 msdosdjgpp*)
5510 # On DJGPP, this test can blow up pretty badly due to problems in libc
5511 # (any single argument exceeding 2000 bytes causes a buffer overrun
5512 # during glob expansion). Even if it were fixed, the result of this
5513 # check would be larger than it should be.
5514 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5517 gnu*)
5518 # Under GNU Hurd, this test is not required because there is
5519 # no limit to the length of command line arguments.
5520 # Libtool will interpret -1 as no limit whatsoever
5521 lt_cv_sys_max_cmd_len=-1;
5524 cygwin* | mingw*)
5525 # On Win9x/ME, this test blows up -- it succeeds, but takes
5526 # about 5 minutes as the teststring grows exponentially.
5527 # Worse, since 9x/ME are not pre-emptively multitasking,
5528 # you end up with a "frozen" computer, even though with patience
5529 # the test eventually succeeds (with a max line length of 256k).
5530 # Instead, let's just punt: use the minimum linelength reported by
5531 # all of the supported platforms: 8192 (on NT/2K/XP).
5532 lt_cv_sys_max_cmd_len=8192;
5535 amigaos*)
5536 # On AmigaOS with pdksh, this test takes hours, literally.
5537 # So we just punt and use a minimum line length of 8192.
5538 lt_cv_sys_max_cmd_len=8192;
5541 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5542 # This has been around since 386BSD, at least. Likely further.
5543 if test -x /sbin/sysctl; then
5544 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5545 elif test -x /usr/sbin/sysctl; then
5546 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5547 else
5548 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5550 # And add a safety zone
5551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5555 interix*)
5556 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557 lt_cv_sys_max_cmd_len=196608
5560 osf*)
5561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5563 # nice to cause kernel panics so lets avoid the loop below.
5564 # First set a reasonable default.
5565 lt_cv_sys_max_cmd_len=16384
5567 if test -x /sbin/sysconfig; then
5568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5569 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5570 esac
5573 sco3.2v5*)
5574 lt_cv_sys_max_cmd_len=102400
5576 sysv5* | sco5v6* | sysv4.2uw2*)
5577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5578 if test -n "$kargmax"; then
5579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5580 else
5581 lt_cv_sys_max_cmd_len=32768
5585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5586 if test -n "$lt_cv_sys_max_cmd_len"; then
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5589 else
5590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5591 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5592 = "XX$teststring") >/dev/null 2>&1 &&
5593 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5594 lt_cv_sys_max_cmd_len=$new_result &&
5595 test $i != 17 # 1/2 MB should be enough
5597 i=`expr $i + 1`
5598 teststring=$teststring$teststring
5599 done
5600 teststring=
5601 # Add a significant safety factor because C++ compilers can tack on massive
5602 # amounts of additional arguments before passing them to the linker.
5603 # It appears as though 1/2 is a usable value.
5604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5607 esac
5611 if test -n $lt_cv_sys_max_cmd_len ; then
5612 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5613 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5614 else
5615 { echo "$as_me:$LINENO: result: none" >&5
5616 echo "${ECHO_T}none" >&6; }
5623 # Check for command to grab the raw symbol name followed by C symbol from nm.
5624 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5625 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5626 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5630 # These are sane defaults that work on at least a few old systems.
5631 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5633 # Character class describing NM global symbol codes.
5634 symcode='[BCDEGRST]'
5636 # Regexp to match symbols that can be accessed directly from C.
5637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5639 # Transform an extracted symbol line into a proper C declaration
5640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5642 # Transform an extracted symbol line into symbol name and symbol address
5643 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'"
5645 # Define system-specific variables.
5646 case $host_os in
5647 aix*)
5648 symcode='[BCDT]'
5650 cygwin* | mingw* | pw32*)
5651 symcode='[ABCDGISTW]'
5653 hpux*) # Its linker distinguishes data from code symbols
5654 if test "$host_cpu" = ia64; then
5655 symcode='[ABCDEGRST]'
5657 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5658 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'"
5660 linux* | k*bsd*-gnu)
5661 if test "$host_cpu" = ia64; then
5662 symcode='[ABCDGIRSTW]'
5663 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5664 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'"
5667 irix* | nonstopux*)
5668 symcode='[BCDEGRST]'
5670 osf*)
5671 symcode='[BCDEGQRST]'
5673 solaris*)
5674 symcode='[BDRT]'
5676 sco3.2v5*)
5677 symcode='[DT]'
5679 sysv4.2uw2*)
5680 symcode='[DT]'
5682 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5683 symcode='[ABDT]'
5685 sysv4)
5686 symcode='[DFNSTU]'
5688 esac
5690 # Handle CRLF in mingw tool chain
5691 opt_cr=
5692 case $build_os in
5693 mingw*)
5694 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5696 esac
5698 # If we're using GNU nm, then use its standard symbol codes.
5699 case `$NM -V 2>&1` in
5700 *GNU* | *'with BFD'*)
5701 symcode='[ABCDGIRSTW]' ;;
5702 esac
5704 # Try without a prefix undercore, then with it.
5705 for ac_symprfx in "" "_"; do
5707 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5708 symxfrm="\\1 $ac_symprfx\\2 \\2"
5710 # Write the raw and C identifiers.
5711 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5713 # Check to see that the pipe works correctly.
5714 pipe_works=no
5716 rm -f conftest*
5717 cat > conftest.$ac_ext <<EOF
5718 #ifdef __cplusplus
5719 extern "C" {
5720 #endif
5721 char nm_test_var;
5722 void nm_test_func(){}
5723 #ifdef __cplusplus
5725 #endif
5726 int main(){nm_test_var='a';nm_test_func();return(0);}
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; then
5734 # Now try to grab the symbols.
5735 nlist=conftest.nm
5736 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5737 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && test -s "$nlist"; then
5741 # Try sorting and uniquifying the output.
5742 if sort "$nlist" | uniq > "$nlist"T; then
5743 mv -f "$nlist"T "$nlist"
5744 else
5745 rm -f "$nlist"T
5748 # Make sure that we snagged all the symbols we need.
5749 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5750 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5751 cat <<EOF > conftest.$ac_ext
5752 #ifdef __cplusplus
5753 extern "C" {
5754 #endif
5757 # Now generate the symbol file.
5758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5760 cat <<EOF >> conftest.$ac_ext
5761 #if defined (__STDC__) && __STDC__
5762 # define lt_ptr_t void *
5763 #else
5764 # define lt_ptr_t char *
5765 # define const
5766 #endif
5768 /* The mapping between symbol names and symbols. */
5769 const struct {
5770 const char *name;
5771 lt_ptr_t address;
5773 lt_preloaded_symbols[] =
5776 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5777 cat <<\EOF >> conftest.$ac_ext
5778 {0, (lt_ptr_t) 0}
5781 #ifdef __cplusplus
5783 #endif
5785 # Now try linking the two files.
5786 mv conftest.$ac_objext conftstm.$ac_objext
5787 lt_save_LIBS="$LIBS"
5788 lt_save_CFLAGS="$CFLAGS"
5789 LIBS="conftstm.$ac_objext"
5790 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5792 (eval $ac_link) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5796 pipe_works=yes
5798 LIBS="$lt_save_LIBS"
5799 CFLAGS="$lt_save_CFLAGS"
5800 else
5801 echo "cannot find nm_test_func in $nlist" >&5
5803 else
5804 echo "cannot find nm_test_var in $nlist" >&5
5806 else
5807 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5809 else
5810 echo "$progname: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5813 rm -f conftest* conftst*
5815 # Do not use the global_symbol_pipe unless it works.
5816 if test "$pipe_works" = yes; then
5817 break
5818 else
5819 lt_cv_sys_global_symbol_pipe=
5821 done
5825 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5826 lt_cv_sys_global_symbol_to_cdecl=
5828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5829 { echo "$as_me:$LINENO: result: failed" >&5
5830 echo "${ECHO_T}failed" >&6; }
5831 else
5832 { echo "$as_me:$LINENO: result: ok" >&5
5833 echo "${ECHO_T}ok" >&6; }
5836 { echo "$as_me:$LINENO: checking for objdir" >&5
5837 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5838 if test "${lt_cv_objdir+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 rm -f .libs 2>/dev/null
5842 mkdir .libs 2>/dev/null
5843 if test -d .libs; then
5844 lt_cv_objdir=.libs
5845 else
5846 # MS-DOS does not allow filenames that begin with a dot.
5847 lt_cv_objdir=_libs
5849 rmdir .libs 2>/dev/null
5851 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5852 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5853 objdir=$lt_cv_objdir
5859 case $host_os in
5860 aix3*)
5861 # AIX sometimes has problems with the GCC collect2 program. For some
5862 # reason, if we set the COLLECT_NAMES environment variable, the problems
5863 # vanish in a puff of smoke.
5864 if test "X${COLLECT_NAMES+set}" != Xset; then
5865 COLLECT_NAMES=
5866 export COLLECT_NAMES
5869 esac
5871 # Sed substitution that helps us do robust quoting. It backslashifies
5872 # metacharacters that are still active within double-quoted strings.
5873 Xsed='sed -e 1s/^X//'
5874 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5876 # Same as above, but do not quote variable references.
5877 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5879 # Sed substitution to delay expansion of an escaped shell variable in a
5880 # double_quote_subst'ed string.
5881 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5883 # Sed substitution to avoid accidental globbing in evaled expressions
5884 no_glob_subst='s/\*/\\\*/g'
5886 # Constants:
5887 rm="rm -f"
5889 # Global variables:
5890 default_ofile=libtool
5891 can_build_shared=yes
5893 # All known linkers require a `.a' archive for static linking (except MSVC,
5894 # which needs '.lib').
5895 libext=a
5896 ltmain="$ac_aux_dir/ltmain.sh"
5897 ofile="$default_ofile"
5898 with_gnu_ld="$lt_cv_prog_gnu_ld"
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ar; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_AR+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 if test -n "$AR"; then
5909 ac_cv_prog_AR="$AR" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_AR="${ac_tool_prefix}ar"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5922 done
5923 done
5924 IFS=$as_save_IFS
5928 AR=$ac_cv_prog_AR
5929 if test -n "$AR"; then
5930 { echo "$as_me:$LINENO: result: $AR" >&5
5931 echo "${ECHO_T}$AR" >&6; }
5932 else
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5939 if test -z "$ac_cv_prog_AR"; then
5940 ac_ct_AR=$AR
5941 # Extract the first word of "ar", so it can be a program name with args.
5942 set dummy ar; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 if test -n "$ac_ct_AR"; then
5949 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_AR="ar"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 break 2
5962 done
5963 done
5964 IFS=$as_save_IFS
5968 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5969 if test -n "$ac_ct_AR"; then
5970 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5971 echo "${ECHO_T}$ac_ct_AR" >&6; }
5972 else
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5977 if test "x$ac_ct_AR" = x; then
5978 AR="false"
5979 else
5980 case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet. If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990 AR=$ac_ct_AR
5992 else
5993 AR="$ac_cv_prog_AR"
5996 if test -n "$ac_tool_prefix"; then
5997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_prog_RANLIB+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004 if test -n "$RANLIB"; then
6005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6018 done
6019 done
6020 IFS=$as_save_IFS
6024 RANLIB=$ac_cv_prog_RANLIB
6025 if test -n "$RANLIB"; then
6026 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6027 echo "${ECHO_T}$RANLIB" >&6; }
6028 else
6029 { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6035 if test -z "$ac_cv_prog_RANLIB"; then
6036 ac_ct_RANLIB=$RANLIB
6037 # Extract the first word of "ranlib", so it can be a program name with args.
6038 set dummy ranlib; ac_word=$2
6039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6041 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044 if test -n "$ac_ct_RANLIB"; then
6045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_prog_ac_ct_RANLIB="ranlib"
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6058 done
6059 done
6060 IFS=$as_save_IFS
6064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6065 if test -n "$ac_ct_RANLIB"; then
6066 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6067 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6068 else
6069 { echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6; }
6073 if test "x$ac_ct_RANLIB" = x; then
6074 RANLIB=":"
6075 else
6076 case $cross_compiling:$ac_tool_warned in
6077 yes:)
6078 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6079 whose name does not start with the host triplet. If you think this
6080 configuration is useful to you, please write to autoconf@gnu.org." >&5
6081 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6082 whose name does not start with the host triplet. If you think this
6083 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6084 ac_tool_warned=yes ;;
6085 esac
6086 RANLIB=$ac_ct_RANLIB
6088 else
6089 RANLIB="$ac_cv_prog_RANLIB"
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}strip; ac_word=$2
6095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6097 if test "${ac_cv_prog_STRIP+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100 if test -n "$STRIP"; then
6101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6114 done
6115 done
6116 IFS=$as_save_IFS
6120 STRIP=$ac_cv_prog_STRIP
6121 if test -n "$STRIP"; then
6122 { echo "$as_me:$LINENO: result: $STRIP" >&5
6123 echo "${ECHO_T}$STRIP" >&6; }
6124 else
6125 { echo "$as_me:$LINENO: result: no" >&5
6126 echo "${ECHO_T}no" >&6; }
6131 if test -z "$ac_cv_prog_STRIP"; then
6132 ac_ct_STRIP=$STRIP
6133 # Extract the first word of "strip", so it can be a program name with args.
6134 set dummy strip; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140 if test -n "$ac_ct_STRIP"; then
6141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_prog_ac_ct_STRIP="strip"
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6154 done
6155 done
6156 IFS=$as_save_IFS
6160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6161 if test -n "$ac_ct_STRIP"; then
6162 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6163 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6164 else
6165 { echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6; }
6169 if test "x$ac_ct_STRIP" = x; then
6170 STRIP=":"
6171 else
6172 case $cross_compiling:$ac_tool_warned in
6173 yes:)
6174 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6175 whose name does not start with the host triplet. If you think this
6176 configuration is useful to you, please write to autoconf@gnu.org." >&5
6177 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet. If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182 STRIP=$ac_ct_STRIP
6184 else
6185 STRIP="$ac_cv_prog_STRIP"
6189 old_CC="$CC"
6190 old_CFLAGS="$CFLAGS"
6192 # Set sane defaults for various variables
6193 test -z "$AR" && AR=ar
6194 test -z "$AR_FLAGS" && AR_FLAGS=cru
6195 test -z "$AS" && AS=as
6196 test -z "$CC" && CC=cc
6197 test -z "$LTCC" && LTCC=$CC
6198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6199 test -z "$DLLTOOL" && DLLTOOL=dlltool
6200 test -z "$LD" && LD=ld
6201 test -z "$LN_S" && LN_S="ln -s"
6202 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6203 test -z "$NM" && NM=nm
6204 test -z "$SED" && SED=sed
6205 test -z "$OBJDUMP" && OBJDUMP=objdump
6206 test -z "$RANLIB" && RANLIB=:
6207 test -z "$STRIP" && STRIP=:
6208 test -z "$ac_objext" && ac_objext=o
6210 # Determine commands to create old-style static archives.
6211 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6212 old_postinstall_cmds='chmod 644 $oldlib'
6213 old_postuninstall_cmds=
6215 if test -n "$RANLIB"; then
6216 case $host_os in
6217 openbsd*)
6218 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6221 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6223 esac
6224 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6227 for cc_temp in $compiler""; do
6228 case $cc_temp in
6229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6231 \-*) ;;
6232 *) break;;
6233 esac
6234 done
6235 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6238 # Only perform the check for file, if the check method requires it
6239 case $deplibs_check_method in
6240 file_magic*)
6241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6242 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6243 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6244 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247 case $MAGIC_CMD in
6248 [\\/*] | ?:[\\/]*)
6249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6252 lt_save_MAGIC_CMD="$MAGIC_CMD"
6253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6255 for ac_dir in $ac_dummy; do
6256 IFS="$lt_save_ifs"
6257 test -z "$ac_dir" && ac_dir=.
6258 if test -f $ac_dir/${ac_tool_prefix}file; then
6259 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6260 if test -n "$file_magic_test_file"; then
6261 case $deplibs_check_method in
6262 "file_magic "*)
6263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6266 $EGREP "$file_magic_regex" > /dev/null; then
6268 else
6269 cat <<EOF 1>&2
6271 *** Warning: the command libtool uses to detect shared libraries,
6272 *** $file_magic_cmd, produces output that libtool cannot recognize.
6273 *** The result is that libtool may fail to recognize shared libraries
6274 *** as such. This will affect the creation of libtool libraries that
6275 *** depend on shared libraries, but programs linked with such libtool
6276 *** libraries will work regardless of this problem. Nevertheless, you
6277 *** may want to report the problem to your system manager and/or to
6278 *** bug-libtool@gnu.org
6281 fi ;;
6282 esac
6284 break
6286 done
6287 IFS="$lt_save_ifs"
6288 MAGIC_CMD="$lt_save_MAGIC_CMD"
6290 esac
6293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6294 if test -n "$MAGIC_CMD"; then
6295 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6296 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6297 else
6298 { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6302 if test -z "$lt_cv_path_MAGIC_CMD"; then
6303 if test -n "$ac_tool_prefix"; then
6304 { echo "$as_me:$LINENO: checking for file" >&5
6305 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309 case $MAGIC_CMD in
6310 [\\/*] | ?:[\\/]*)
6311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6314 lt_save_MAGIC_CMD="$MAGIC_CMD"
6315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6317 for ac_dir in $ac_dummy; do
6318 IFS="$lt_save_ifs"
6319 test -z "$ac_dir" && ac_dir=.
6320 if test -f $ac_dir/file; then
6321 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6322 if test -n "$file_magic_test_file"; then
6323 case $deplibs_check_method in
6324 "file_magic "*)
6325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6328 $EGREP "$file_magic_regex" > /dev/null; then
6330 else
6331 cat <<EOF 1>&2
6333 *** Warning: the command libtool uses to detect shared libraries,
6334 *** $file_magic_cmd, produces output that libtool cannot recognize.
6335 *** The result is that libtool may fail to recognize shared libraries
6336 *** as such. This will affect the creation of libtool libraries that
6337 *** depend on shared libraries, but programs linked with such libtool
6338 *** libraries will work regardless of this problem. Nevertheless, you
6339 *** may want to report the problem to your system manager and/or to
6340 *** bug-libtool@gnu.org
6343 fi ;;
6344 esac
6346 break
6348 done
6349 IFS="$lt_save_ifs"
6350 MAGIC_CMD="$lt_save_MAGIC_CMD"
6352 esac
6355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6356 if test -n "$MAGIC_CMD"; then
6357 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6358 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6359 else
6360 { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6364 else
6365 MAGIC_CMD=:
6371 esac
6373 enable_dlopen=no
6374 enable_win32_dll=no
6376 # Check whether --enable-libtool-lock was given.
6377 if test "${enable_libtool_lock+set}" = set; then
6378 enableval=$enable_libtool_lock;
6381 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6384 # Check whether --with-pic was given.
6385 if test "${with_pic+set}" = set; then
6386 withval=$with_pic; pic_mode="$withval"
6387 else
6388 pic_mode=default
6391 test -z "$pic_mode" && pic_mode=default
6393 # Use C for the default configuration in the libtool script
6394 tagname=
6395 lt_save_CC="$CC"
6396 ac_ext=c
6397 ac_cpp='$CPP $CPPFLAGS'
6398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403 # Source file extension for C test sources.
6404 ac_ext=c
6406 # Object file extension for compiled C test sources.
6407 objext=o
6408 objext=$objext
6410 # Code to be used in simple compile tests
6411 lt_simple_compile_test_code="int some_variable = 0;"
6413 # Code to be used in simple link tests
6414 lt_simple_link_test_code='int main(){return(0);}'
6417 # If no C compiler was specified, use CC.
6418 LTCC=${LTCC-"$CC"}
6420 # If no C compiler flags were specified, use CFLAGS.
6421 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6423 # Allow CC to be a program name with arguments.
6424 compiler=$CC
6427 # save warnings/boilerplate of simple test code
6428 ac_outfile=conftest.$ac_objext
6429 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6430 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6431 _lt_compiler_boilerplate=`cat conftest.err`
6432 $rm conftest*
6434 ac_outfile=conftest.$ac_objext
6435 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6436 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6437 _lt_linker_boilerplate=`cat conftest.err`
6438 $rm conftest*
6442 lt_prog_compiler_no_builtin_flag=
6444 if test "$GCC" = yes; then
6445 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6448 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6449 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6450 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 lt_cv_prog_compiler_rtti_exceptions=no
6454 ac_outfile=conftest.$ac_objext
6455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6456 lt_compiler_flag="-fno-rtti -fno-exceptions"
6457 # Insert the option either (1) after the last *FLAGS variable, or
6458 # (2) before a word containing "conftest.", or (3) at the end.
6459 # Note that $ac_compile itself does not contain backslashes and begins
6460 # with a dollar sign (not a hyphen), so the echo should work correctly.
6461 # The option is referenced via a variable to avoid confusing sed.
6462 lt_compile=`echo "$ac_compile" | $SED \
6463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6465 -e 's:$: $lt_compiler_flag:'`
6466 (eval echo "\"\$as_me:6466: $lt_compile\"" >&5)
6467 (eval "$lt_compile" 2>conftest.err)
6468 ac_status=$?
6469 cat conftest.err >&5
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 if (exit $ac_status) && test -s "$ac_outfile"; then
6472 # The compiler can only warn and ignore the option if not recognized
6473 # So say no if there are warnings other than the usual output.
6474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6477 lt_cv_prog_compiler_rtti_exceptions=yes
6480 $rm conftest*
6483 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6484 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6486 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6488 else
6494 lt_prog_compiler_wl=
6495 lt_prog_compiler_pic=
6496 lt_prog_compiler_static=
6498 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6499 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6501 if test "$GCC" = yes; then
6502 lt_prog_compiler_wl='-Wl,'
6503 lt_prog_compiler_static='-static'
6505 case $host_os in
6506 aix*)
6507 # All AIX code is PIC.
6508 if test "$host_cpu" = ia64; then
6509 # AIX 5 now supports IA64 processor
6510 lt_prog_compiler_static='-Bstatic'
6514 amigaos*)
6515 # FIXME: we need at least 68020 code to build shared libraries, but
6516 # adding the `-m68020' flag to GCC prevents building anything better,
6517 # like `-m68040'.
6518 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6521 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6522 # PIC is the default for these OSes.
6525 mingw* | cygwin* | pw32* | os2*)
6526 # This hack is so that the source file can tell whether it is being
6527 # built for inclusion in a dll (and should export symbols for example).
6528 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6529 # (--disable-auto-import) libraries
6530 lt_prog_compiler_pic='-DDLL_EXPORT'
6533 darwin* | rhapsody*)
6534 # PIC is the default on this platform
6535 # Common symbols not allowed in MH_DYLIB files
6536 lt_prog_compiler_pic='-fno-common'
6539 interix[3-9]*)
6540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6541 # Instead, we relocate shared libraries at runtime.
6544 msdosdjgpp*)
6545 # Just because we use GCC doesn't mean we suddenly get shared libraries
6546 # on systems that don't support them.
6547 lt_prog_compiler_can_build_shared=no
6548 enable_shared=no
6551 sysv4*MP*)
6552 if test -d /usr/nec; then
6553 lt_prog_compiler_pic=-Kconform_pic
6557 hpux*)
6558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6559 # not for PA HP-UX.
6560 case $host_cpu in
6561 hppa*64*|ia64*)
6562 # +Z the default
6565 lt_prog_compiler_pic='-fPIC'
6567 esac
6571 lt_prog_compiler_pic='-fPIC'
6573 esac
6574 else
6575 # PORTME Check for flag to pass linker flags through the system compiler.
6576 case $host_os in
6577 aix*)
6578 lt_prog_compiler_wl='-Wl,'
6579 if test "$host_cpu" = ia64; then
6580 # AIX 5 now supports IA64 processor
6581 lt_prog_compiler_static='-Bstatic'
6582 else
6583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6586 darwin*)
6587 # PIC is the default on this platform
6588 # Common symbols not allowed in MH_DYLIB files
6589 case $cc_basename in
6590 xlc*)
6591 lt_prog_compiler_pic='-qnocommon'
6592 lt_prog_compiler_wl='-Wl,'
6594 esac
6597 mingw* | cygwin* | pw32* | os2*)
6598 # This hack is so that the source file can tell whether it is being
6599 # built for inclusion in a dll (and should export symbols for example).
6600 lt_prog_compiler_pic='-DDLL_EXPORT'
6603 hpux9* | hpux10* | hpux11*)
6604 lt_prog_compiler_wl='-Wl,'
6605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6606 # not for PA HP-UX.
6607 case $host_cpu in
6608 hppa*64*|ia64*)
6609 # +Z the default
6612 lt_prog_compiler_pic='+Z'
6614 esac
6615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6616 lt_prog_compiler_static='${wl}-a ${wl}archive'
6619 irix5* | irix6* | nonstopux*)
6620 lt_prog_compiler_wl='-Wl,'
6621 # PIC (with -KPIC) is the default.
6622 lt_prog_compiler_static='-non_shared'
6625 newsos6)
6626 lt_prog_compiler_pic='-KPIC'
6627 lt_prog_compiler_static='-Bstatic'
6630 linux* | k*bsd*-gnu)
6631 case $cc_basename in
6632 icc* | ecc*)
6633 lt_prog_compiler_wl='-Wl,'
6634 lt_prog_compiler_pic='-KPIC'
6635 lt_prog_compiler_static='-static'
6637 pgcc* | pgf77* | pgf90* | pgf95*)
6638 # Portland Group compilers (*not* the Pentium gcc compiler,
6639 # which looks to be a dead project)
6640 lt_prog_compiler_wl='-Wl,'
6641 lt_prog_compiler_pic='-fpic'
6642 lt_prog_compiler_static='-Bstatic'
6644 ccc*)
6645 lt_prog_compiler_wl='-Wl,'
6646 # All Alpha code is PIC.
6647 lt_prog_compiler_static='-non_shared'
6650 case `$CC -V 2>&1 | sed 5q` in
6651 *Sun\ C*)
6652 # Sun C 5.9
6653 lt_prog_compiler_pic='-KPIC'
6654 lt_prog_compiler_static='-Bstatic'
6655 lt_prog_compiler_wl='-Wl,'
6657 *Sun\ F*)
6658 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6659 lt_prog_compiler_pic='-KPIC'
6660 lt_prog_compiler_static='-Bstatic'
6661 lt_prog_compiler_wl=''
6663 esac
6665 esac
6668 osf3* | osf4* | osf5*)
6669 lt_prog_compiler_wl='-Wl,'
6670 # All OSF/1 code is PIC.
6671 lt_prog_compiler_static='-non_shared'
6674 rdos*)
6675 lt_prog_compiler_static='-non_shared'
6678 solaris*)
6679 lt_prog_compiler_pic='-KPIC'
6680 lt_prog_compiler_static='-Bstatic'
6681 case $cc_basename in
6682 f77* | f90* | f95*)
6683 lt_prog_compiler_wl='-Qoption ld ';;
6685 lt_prog_compiler_wl='-Wl,';;
6686 esac
6689 sunos4*)
6690 lt_prog_compiler_wl='-Qoption ld '
6691 lt_prog_compiler_pic='-PIC'
6692 lt_prog_compiler_static='-Bstatic'
6695 sysv4 | sysv4.2uw2* | sysv4.3*)
6696 lt_prog_compiler_wl='-Wl,'
6697 lt_prog_compiler_pic='-KPIC'
6698 lt_prog_compiler_static='-Bstatic'
6701 sysv4*MP*)
6702 if test -d /usr/nec ;then
6703 lt_prog_compiler_pic='-Kconform_pic'
6704 lt_prog_compiler_static='-Bstatic'
6708 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6709 lt_prog_compiler_wl='-Wl,'
6710 lt_prog_compiler_pic='-KPIC'
6711 lt_prog_compiler_static='-Bstatic'
6714 unicos*)
6715 lt_prog_compiler_wl='-Wl,'
6716 lt_prog_compiler_can_build_shared=no
6719 uts4*)
6720 lt_prog_compiler_pic='-pic'
6721 lt_prog_compiler_static='-Bstatic'
6725 lt_prog_compiler_can_build_shared=no
6727 esac
6730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6731 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6734 # Check to make sure the PIC flag actually works.
6736 if test -n "$lt_prog_compiler_pic"; then
6738 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6739 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6740 if test "${lt_prog_compiler_pic_works+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743 lt_prog_compiler_pic_works=no
6744 ac_outfile=conftest.$ac_objext
6745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6746 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6747 # Insert the option either (1) after the last *FLAGS variable, or
6748 # (2) before a word containing "conftest.", or (3) at the end.
6749 # Note that $ac_compile itself does not contain backslashes and begins
6750 # with a dollar sign (not a hyphen), so the echo should work correctly.
6751 # The option is referenced via a variable to avoid confusing sed.
6752 lt_compile=`echo "$ac_compile" | $SED \
6753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6755 -e 's:$: $lt_compiler_flag:'`
6756 (eval echo "\"\$as_me:6756: $lt_compile\"" >&5)
6757 (eval "$lt_compile" 2>conftest.err)
6758 ac_status=$?
6759 cat conftest.err >&5
6760 echo "$as_me:6760: \$? = $ac_status" >&5
6761 if (exit $ac_status) && test -s "$ac_outfile"; then
6762 # The compiler can only warn and ignore the option if not recognized
6763 # So say no if there are warnings other than the usual output.
6764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6767 lt_prog_compiler_pic_works=yes
6770 $rm conftest*
6773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6774 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6776 if test x"$lt_prog_compiler_pic_works" = xyes; then
6777 case $lt_prog_compiler_pic in
6778 "" | " "*) ;;
6779 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6780 esac
6781 else
6782 lt_prog_compiler_pic=
6783 lt_prog_compiler_can_build_shared=no
6787 case $host_os in
6788 # For platforms which do not support PIC, -DPIC is meaningless:
6789 *djgpp*)
6790 lt_prog_compiler_pic=
6793 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6795 esac
6798 # Check to make sure the static flag actually works.
6800 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6801 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6802 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6803 if test "${lt_prog_compiler_static_works+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 lt_prog_compiler_static_works=no
6807 save_LDFLAGS="$LDFLAGS"
6808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6809 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6811 # The linker can only warn and ignore the option if not recognized
6812 # So say no if there are warnings
6813 if test -s conftest.err; then
6814 # Append any errors to the config.log.
6815 cat conftest.err 1>&5
6816 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6818 if diff conftest.exp conftest.er2 >/dev/null; then
6819 lt_prog_compiler_static_works=yes
6821 else
6822 lt_prog_compiler_static_works=yes
6825 $rm conftest*
6826 LDFLAGS="$save_LDFLAGS"
6829 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6830 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6832 if test x"$lt_prog_compiler_static_works" = xyes; then
6834 else
6835 lt_prog_compiler_static=
6839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6841 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 lt_cv_prog_compiler_c_o=no
6845 $rm -r conftest 2>/dev/null
6846 mkdir conftest
6847 cd conftest
6848 mkdir out
6849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6851 lt_compiler_flag="-o out/conftest2.$ac_objext"
6852 # Insert the option either (1) after the last *FLAGS variable, or
6853 # (2) before a word containing "conftest.", or (3) at the end.
6854 # Note that $ac_compile itself does not contain backslashes and begins
6855 # with a dollar sign (not a hyphen), so the echo should work correctly.
6856 lt_compile=`echo "$ac_compile" | $SED \
6857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6859 -e 's:$: $lt_compiler_flag:'`
6860 (eval echo "\"\$as_me:6860: $lt_compile\"" >&5)
6861 (eval "$lt_compile" 2>out/conftest.err)
6862 ac_status=$?
6863 cat out/conftest.err >&5
6864 echo "$as_me:6864: \$? = $ac_status" >&5
6865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6866 then
6867 # The compiler can only warn and ignore the option if not recognized
6868 # So say no if there are warnings
6869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6872 lt_cv_prog_compiler_c_o=yes
6875 chmod u+w . 2>&5
6876 $rm conftest*
6877 # SGI C++ compiler will create directory out/ii_files/ for
6878 # template instantiation
6879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6880 $rm out/* && rmdir out
6881 cd ..
6882 rmdir conftest
6883 $rm conftest*
6886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6890 hard_links="nottested"
6891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6892 # do not overwrite the value of need_locks provided by the user
6893 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6895 hard_links=yes
6896 $rm conftest*
6897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6898 touch conftest.a
6899 ln conftest.a conftest.b 2>&5 || hard_links=no
6900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6901 { echo "$as_me:$LINENO: result: $hard_links" >&5
6902 echo "${ECHO_T}$hard_links" >&6; }
6903 if test "$hard_links" = no; then
6904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6906 need_locks=warn
6908 else
6909 need_locks=no
6912 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6915 runpath_var=
6916 allow_undefined_flag=
6917 enable_shared_with_static_runtimes=no
6918 archive_cmds=
6919 archive_expsym_cmds=
6920 old_archive_From_new_cmds=
6921 old_archive_from_expsyms_cmds=
6922 export_dynamic_flag_spec=
6923 whole_archive_flag_spec=
6924 thread_safe_flag_spec=
6925 hardcode_libdir_flag_spec=
6926 hardcode_libdir_flag_spec_ld=
6927 hardcode_libdir_separator=
6928 hardcode_direct=no
6929 hardcode_minus_L=no
6930 hardcode_shlibpath_var=unsupported
6931 link_all_deplibs=unknown
6932 hardcode_automatic=no
6933 module_cmds=
6934 module_expsym_cmds=
6935 always_export_symbols=no
6936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6937 # include_expsyms should be a list of space-separated symbols to be *always*
6938 # included in the symbol list
6939 include_expsyms=
6940 # exclude_expsyms can be an extended regexp of symbols to exclude
6941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6943 # as well as any symbol that contains `d'.
6944 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6946 # platforms (ab)use it in PIC code, but their linkers get confused if
6947 # the symbol is explicitly referenced. Since portable code cannot
6948 # rely on this symbol name, it's probably fine to never include it in
6949 # preloaded symbol tables.
6950 extract_expsyms_cmds=
6951 # Just being paranoid about ensuring that cc_basename is set.
6952 for cc_temp in $compiler""; do
6953 case $cc_temp in
6954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6956 \-*) ;;
6957 *) break;;
6958 esac
6959 done
6960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6962 case $host_os in
6963 cygwin* | mingw* | pw32*)
6964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6965 # When not using gcc, we currently assume that we are using
6966 # Microsoft Visual C++.
6967 if test "$GCC" != yes; then
6968 with_gnu_ld=no
6971 interix*)
6972 # we just hope/assume this is gcc and not c89 (= MSVC++)
6973 with_gnu_ld=yes
6975 openbsd*)
6976 with_gnu_ld=no
6978 esac
6980 ld_shlibs=yes
6981 if test "$with_gnu_ld" = yes; then
6982 # If archive_cmds runs LD, not CC, wlarc should be empty
6983 wlarc='${wl}'
6985 # Set some defaults for GNU ld with shared library support. These
6986 # are reset later if shared libraries are not supported. Putting them
6987 # here allows them to be overridden if necessary.
6988 runpath_var=LD_RUN_PATH
6989 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6990 export_dynamic_flag_spec='${wl}--export-dynamic'
6991 # ancient GNU ld didn't support --whole-archive et. al.
6992 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6993 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6994 else
6995 whole_archive_flag_spec=
6997 supports_anon_versioning=no
6998 case `$LD -v 2>/dev/null` in
6999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7002 *\ 2.11.*) ;; # other 2.11 versions
7003 *) supports_anon_versioning=yes ;;
7004 esac
7006 # See if GNU ld supports shared libraries.
7007 case $host_os in
7008 aix3* | aix4* | aix5*)
7009 # On AIX/PPC, the GNU linker is very broken
7010 if test "$host_cpu" != ia64; then
7011 ld_shlibs=no
7012 cat <<EOF 1>&2
7014 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7015 *** to be unable to reliably create shared libraries on AIX.
7016 *** Therefore, libtool is disabling shared libraries support. If you
7017 *** really care for shared libraries, you may want to modify your PATH
7018 *** so that a non-GNU linker is found, and then restart.
7024 amigaos*)
7025 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)'
7026 hardcode_libdir_flag_spec='-L$libdir'
7027 hardcode_minus_L=yes
7029 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7030 # that the semantics of dynamic libraries on AmigaOS, at least up
7031 # to version 4, is to share data among multiple programs linked
7032 # with the same dynamic library. Since this doesn't match the
7033 # behavior of shared libraries on other platforms, we can't use
7034 # them.
7035 ld_shlibs=no
7038 beos*)
7039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7040 allow_undefined_flag=unsupported
7041 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7042 # support --undefined. This deserves some investigation. FIXME
7043 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044 else
7045 ld_shlibs=no
7049 cygwin* | mingw* | pw32*)
7050 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7051 # as there is no search path for DLLs.
7052 hardcode_libdir_flag_spec='-L$libdir'
7053 allow_undefined_flag=unsupported
7054 always_export_symbols=no
7055 enable_shared_with_static_runtimes=yes
7056 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7058 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7060 # If the export-symbols file already is a .def file (1st line
7061 # is EXPORTS), use it as is; otherwise, prepend...
7062 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7063 cp $export_symbols $output_objdir/$soname.def;
7064 else
7065 echo EXPORTS > $output_objdir/$soname.def;
7066 cat $export_symbols >> $output_objdir/$soname.def;
7068 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7069 else
7070 ld_shlibs=no
7074 interix[3-9]*)
7075 hardcode_direct=no
7076 hardcode_shlibpath_var=no
7077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7078 export_dynamic_flag_spec='${wl}-E'
7079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7080 # Instead, shared libraries are loaded at an image base (0x10000000 by
7081 # default) and relocated if they conflict, which is a slow very memory
7082 # consuming and fragmenting process. To avoid this, we pick a random,
7083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7084 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7086 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'
7089 gnu* | linux* | k*bsd*-gnu)
7090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7091 tmp_addflag=
7092 case $cc_basename,$host_cpu in
7093 pgcc*) # Portland Group C compiler
7094 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'
7095 tmp_addflag=' $pic_flag'
7097 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7098 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'
7099 tmp_addflag=' $pic_flag -Mnomain' ;;
7100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7101 tmp_addflag=' -i_dynamic' ;;
7102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7103 tmp_addflag=' -i_dynamic -nofor_main' ;;
7104 ifc* | ifort*) # Intel Fortran compiler
7105 tmp_addflag=' -nofor_main' ;;
7106 esac
7107 case `$CC -V 2>&1 | sed 5q` in
7108 *Sun\ C*) # Sun C 5.9
7109 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'
7110 tmp_sharedflag='-G' ;;
7111 *Sun\ F*) # Sun Fortran 8.3
7112 tmp_sharedflag='-G' ;;
7114 tmp_sharedflag='-shared' ;;
7115 esac
7116 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7118 if test $supports_anon_versioning = yes; then
7119 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7121 $echo "local: *; };" >> $output_objdir/$libname.ver~
7122 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7124 else
7125 ld_shlibs=no
7129 netbsd*)
7130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7131 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7132 wlarc=
7133 else
7134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7139 solaris*)
7140 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7141 ld_shlibs=no
7142 cat <<EOF 1>&2
7144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7145 *** create shared libraries on Solaris systems. Therefore, libtool
7146 *** is disabling shared libraries support. We urge you to upgrade GNU
7147 *** binutils to release 2.9.1 or newer. Another option is to modify
7148 *** your PATH or compiler configuration so that the native linker is
7149 *** used, and then restart.
7152 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7154 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7155 else
7156 ld_shlibs=no
7160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7161 case `$LD -v 2>&1` in
7162 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7163 ld_shlibs=no
7164 cat <<_LT_EOF 1>&2
7166 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7167 *** reliably create shared libraries on SCO systems. Therefore, libtool
7168 *** is disabling shared libraries support. We urge you to upgrade GNU
7169 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7170 *** your PATH or compiler configuration so that the native linker is
7171 *** used, and then restart.
7173 _LT_EOF
7176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7177 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7180 else
7181 ld_shlibs=no
7184 esac
7187 sunos4*)
7188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7189 wlarc=
7190 hardcode_direct=yes
7191 hardcode_shlibpath_var=no
7195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7198 else
7199 ld_shlibs=no
7202 esac
7204 if test "$ld_shlibs" = no; then
7205 runpath_var=
7206 hardcode_libdir_flag_spec=
7207 export_dynamic_flag_spec=
7208 whole_archive_flag_spec=
7210 else
7211 # PORTME fill in a description of your system's linker (not GNU ld)
7212 case $host_os in
7213 aix3*)
7214 allow_undefined_flag=unsupported
7215 always_export_symbols=yes
7216 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'
7217 # Note: this linker hardcodes the directories in LIBPATH if there
7218 # are no directories specified by -L.
7219 hardcode_minus_L=yes
7220 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7221 # Neither direct hardcoding nor static linking is supported with a
7222 # broken collect2.
7223 hardcode_direct=unsupported
7227 aix4* | aix5*)
7228 if test "$host_cpu" = ia64; then
7229 # On IA64, the linker does run time linking by default, so we don't
7230 # have to do anything special.
7231 aix_use_runtimelinking=no
7232 exp_sym_flag='-Bexport'
7233 no_entry_flag=""
7234 else
7235 # If we're using GNU nm, then we don't want the "-C" option.
7236 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7237 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7238 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'
7239 else
7240 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'
7242 aix_use_runtimelinking=no
7244 # Test if we are trying to use run time linking or normal
7245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7246 # need to do runtime linking.
7247 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7248 for ld_flag in $LDFLAGS; do
7249 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7250 aix_use_runtimelinking=yes
7251 break
7253 done
7255 esac
7257 exp_sym_flag='-bexport'
7258 no_entry_flag='-bnoentry'
7261 # When large executables or shared objects are built, AIX ld can
7262 # have problems creating the table of contents. If linking a library
7263 # or program results in "error TOC overflow" add -mminimal-toc to
7264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7267 archive_cmds=''
7268 hardcode_direct=yes
7269 hardcode_libdir_separator=':'
7270 link_all_deplibs=yes
7272 if test "$GCC" = yes; then
7273 case $host_os in aix4.[012]|aix4.[012].*)
7274 # We only want to do this on AIX 4.2 and lower, the check
7275 # below for broken collect2 doesn't work under 4.3+
7276 collect2name=`${CC} -print-prog-name=collect2`
7277 if test -f "$collect2name" && \
7278 strings "$collect2name" | grep resolve_lib_name >/dev/null
7279 then
7280 # We have reworked collect2
7282 else
7283 # We have old collect2
7284 hardcode_direct=unsupported
7285 # It fails to find uninstalled libraries when the uninstalled
7286 # path is not listed in the libpath. Setting hardcode_minus_L
7287 # to unsupported forces relinking
7288 hardcode_minus_L=yes
7289 hardcode_libdir_flag_spec='-L$libdir'
7290 hardcode_libdir_separator=
7293 esac
7294 shared_flag='-shared'
7295 if test "$aix_use_runtimelinking" = yes; then
7296 shared_flag="$shared_flag "'${wl}-G'
7298 else
7299 # not using gcc
7300 if test "$host_cpu" = ia64; then
7301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7302 # chokes on -Wl,-G. The following line is correct:
7303 shared_flag='-G'
7304 else
7305 if test "$aix_use_runtimelinking" = yes; then
7306 shared_flag='${wl}-G'
7307 else
7308 shared_flag='${wl}-bM:SRE'
7313 # It seems that -bexpall does not export symbols beginning with
7314 # underscore (_), so it is better to generate a list of symbols to export.
7315 always_export_symbols=yes
7316 if test "$aix_use_runtimelinking" = yes; then
7317 # Warning - without using the other runtime loading flags (-brtl),
7318 # -berok will link without error, but may produce a broken library.
7319 allow_undefined_flag='-berok'
7320 # Determine the default libpath from the value encoded in an empty executable.
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7329 main ()
7333 return 0;
7335 _ACEOF
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7338 case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_link") 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } && {
7350 test -z "$ac_c_werror_flag" ||
7351 test ! -s conftest.err
7352 } && test -s conftest$ac_exeext &&
7353 $as_test_x conftest$ac_exeext; then
7355 lt_aix_libpath_sed='
7356 /Import File Strings/,/^$/ {
7357 /^0/ {
7358 s/^0 *\(.*\)$/\1/
7362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7363 # Check for a 64-bit object if we didn't find anything.
7364 if test -z "$aix_libpath"; then
7365 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7375 conftest$ac_exeext conftest.$ac_ext
7376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7378 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7379 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"
7380 else
7381 if test "$host_cpu" = ia64; then
7382 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7383 allow_undefined_flag="-z nodefs"
7384 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"
7385 else
7386 # Determine the default libpath from the value encoded in an empty executable.
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7395 main ()
7399 return 0;
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7404 case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407 esac
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_link") 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest$ac_exeext &&
7419 $as_test_x conftest$ac_exeext; then
7421 lt_aix_libpath_sed='
7422 /Import File Strings/,/^$/ {
7423 /^0/ {
7424 s/^0 *\(.*\)$/\1/
7428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7429 # Check for a 64-bit object if we didn't find anything.
7430 if test -z "$aix_libpath"; then
7431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7433 else
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7441 conftest$ac_exeext conftest.$ac_ext
7442 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7444 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7445 # Warning - without using the other run time loading flags,
7446 # -berok will link without error, but may produce a broken library.
7447 no_undefined_flag=' ${wl}-bernotok'
7448 allow_undefined_flag=' ${wl}-berok'
7449 # Exported symbols can be pulled into shared objects from archives
7450 whole_archive_flag_spec='$convenience'
7451 archive_cmds_need_lc=yes
7452 # This is similar to how AIX traditionally builds its shared libraries.
7453 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'
7458 amigaos*)
7459 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)'
7460 hardcode_libdir_flag_spec='-L$libdir'
7461 hardcode_minus_L=yes
7462 # see comment about different semantics on the GNU ld section
7463 ld_shlibs=no
7466 bsdi[45]*)
7467 export_dynamic_flag_spec=-rdynamic
7470 cygwin* | mingw* | pw32*)
7471 # When not using gcc, we currently assume that we are using
7472 # Microsoft Visual C++.
7473 # hardcode_libdir_flag_spec is actually meaningless, as there is
7474 # no search path for DLLs.
7475 hardcode_libdir_flag_spec=' '
7476 allow_undefined_flag=unsupported
7477 # Tell ltmain to make .lib files, not .a files.
7478 libext=lib
7479 # Tell ltmain to make .dll files, not .so files.
7480 shrext_cmds=".dll"
7481 # FIXME: Setting linknames here is a bad hack.
7482 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7483 # The linker will automatically build a .lib file if we build a DLL.
7484 old_archive_From_new_cmds='true'
7485 # FIXME: Should let the user specify the lib program.
7486 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7487 fix_srcfile_path='`cygpath -w "$srcfile"`'
7488 enable_shared_with_static_runtimes=yes
7491 darwin* | rhapsody*)
7492 case $host_os in
7493 rhapsody* | darwin1.[012])
7494 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7496 *) # Darwin 1.3 on
7497 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7498 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7499 else
7500 case ${MACOSX_DEPLOYMENT_TARGET} in
7501 10.[012])
7502 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7504 10.*)
7505 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7507 esac
7510 esac
7511 archive_cmds_need_lc=no
7512 hardcode_direct=no
7513 hardcode_automatic=yes
7514 hardcode_shlibpath_var=unsupported
7515 whole_archive_flag_spec=''
7516 link_all_deplibs=yes
7517 if test "$GCC" = yes ; then
7518 output_verbose_link_cmd='echo'
7519 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7520 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7522 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7523 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}'
7524 else
7525 case $cc_basename in
7526 xlc*)
7527 output_verbose_link_cmd='echo'
7528 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7529 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7530 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7531 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}'
7532 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}'
7535 ld_shlibs=no
7537 esac
7541 dgux*)
7542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7543 hardcode_libdir_flag_spec='-L$libdir'
7544 hardcode_shlibpath_var=no
7547 freebsd1*)
7548 ld_shlibs=no
7551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7552 # support. Future versions do this automatically, but an explicit c++rt0.o
7553 # does not break anything, and helps significantly (at the cost of a little
7554 # extra space).
7555 freebsd2.2*)
7556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7557 hardcode_libdir_flag_spec='-R$libdir'
7558 hardcode_direct=yes
7559 hardcode_shlibpath_var=no
7562 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7563 freebsd2*)
7564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7565 hardcode_direct=yes
7566 hardcode_minus_L=yes
7567 hardcode_shlibpath_var=no
7570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7571 freebsd* | dragonfly*)
7572 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7573 hardcode_libdir_flag_spec='-R$libdir'
7574 hardcode_direct=yes
7575 hardcode_shlibpath_var=no
7578 hpux9*)
7579 if test "$GCC" = yes; then
7580 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'
7581 else
7582 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'
7584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7585 hardcode_libdir_separator=:
7586 hardcode_direct=yes
7588 # hardcode_minus_L: Not really in the search PATH,
7589 # but as the default location of the library.
7590 hardcode_minus_L=yes
7591 export_dynamic_flag_spec='${wl}-E'
7594 hpux10*)
7595 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7596 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7597 else
7598 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7600 if test "$with_gnu_ld" = no; then
7601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7602 hardcode_libdir_separator=:
7604 hardcode_direct=yes
7605 export_dynamic_flag_spec='${wl}-E'
7607 # hardcode_minus_L: Not really in the search PATH,
7608 # but as the default location of the library.
7609 hardcode_minus_L=yes
7613 hpux11*)
7614 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7615 case $host_cpu in
7616 hppa*64*)
7617 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7619 ia64*)
7620 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7623 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7625 esac
7626 else
7627 case $host_cpu in
7628 hppa*64*)
7629 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7631 ia64*)
7632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7637 esac
7639 if test "$with_gnu_ld" = no; then
7640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7641 hardcode_libdir_separator=:
7643 case $host_cpu in
7644 hppa*64*|ia64*)
7645 hardcode_libdir_flag_spec_ld='+b $libdir'
7646 hardcode_direct=no
7647 hardcode_shlibpath_var=no
7650 hardcode_direct=yes
7651 export_dynamic_flag_spec='${wl}-E'
7653 # hardcode_minus_L: Not really in the search PATH,
7654 # but as the default location of the library.
7655 hardcode_minus_L=yes
7657 esac
7661 irix5* | irix6* | nonstopux*)
7662 if test "$GCC" = yes; then
7663 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'
7664 else
7665 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'
7666 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7669 hardcode_libdir_separator=:
7670 link_all_deplibs=yes
7673 netbsd*)
7674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7676 else
7677 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7679 hardcode_libdir_flag_spec='-R$libdir'
7680 hardcode_direct=yes
7681 hardcode_shlibpath_var=no
7684 newsos6)
7685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7686 hardcode_direct=yes
7687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7688 hardcode_libdir_separator=:
7689 hardcode_shlibpath_var=no
7692 openbsd*)
7693 if test -f /usr/libexec/ld.so; then
7694 hardcode_direct=yes
7695 hardcode_shlibpath_var=no
7696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7698 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7699 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7700 export_dynamic_flag_spec='${wl}-E'
7701 else
7702 case $host_os in
7703 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7705 hardcode_libdir_flag_spec='-R$libdir'
7708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7711 esac
7713 else
7714 ld_shlibs=no
7718 os2*)
7719 hardcode_libdir_flag_spec='-L$libdir'
7720 hardcode_minus_L=yes
7721 allow_undefined_flag=unsupported
7722 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'
7723 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7726 osf3*)
7727 if test "$GCC" = yes; then
7728 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7729 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'
7730 else
7731 allow_undefined_flag=' -expect_unresolved \*'
7732 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'
7734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7735 hardcode_libdir_separator=:
7738 osf4* | osf5*) # as osf3* with the addition of -msym flag
7739 if test "$GCC" = yes; then
7740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7741 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'
7742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7743 else
7744 allow_undefined_flag=' -expect_unresolved \*'
7745 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'
7746 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7747 $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'
7749 # Both c and cxx compiler support -rpath directly
7750 hardcode_libdir_flag_spec='-rpath $libdir'
7752 hardcode_libdir_separator=:
7755 solaris*)
7756 no_undefined_flag=' -z text'
7757 if test "$GCC" = yes; then
7758 wlarc='${wl}'
7759 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7760 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7761 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7762 else
7763 wlarc=''
7764 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7765 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7766 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7768 hardcode_libdir_flag_spec='-R$libdir'
7769 hardcode_shlibpath_var=no
7770 case $host_os in
7771 solaris2.[0-5] | solaris2.[0-5].*) ;;
7773 # The compiler driver will combine and reorder linker options,
7774 # but understands `-z linker_flag'. GCC discards it without `$wl',
7775 # but is careful enough not to reorder.
7776 # Supported since Solaris 2.6 (maybe 2.5.1?)
7777 if test "$GCC" = yes; then
7778 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7779 else
7780 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7783 esac
7784 link_all_deplibs=yes
7787 sunos4*)
7788 if test "x$host_vendor" = xsequent; then
7789 # Use $CC to link under sequent, because it throws in some extra .o
7790 # files that make .init and .fini sections work.
7791 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7792 else
7793 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7795 hardcode_libdir_flag_spec='-L$libdir'
7796 hardcode_direct=yes
7797 hardcode_minus_L=yes
7798 hardcode_shlibpath_var=no
7801 sysv4)
7802 case $host_vendor in
7803 sni)
7804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805 hardcode_direct=yes # is this really true???
7807 siemens)
7808 ## LD is ld it makes a PLAMLIB
7809 ## CC just makes a GrossModule.
7810 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7811 reload_cmds='$CC -r -o $output$reload_objs'
7812 hardcode_direct=no
7814 motorola)
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7818 esac
7819 runpath_var='LD_RUN_PATH'
7820 hardcode_shlibpath_var=no
7823 sysv4.3*)
7824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7825 hardcode_shlibpath_var=no
7826 export_dynamic_flag_spec='-Bexport'
7829 sysv4*MP*)
7830 if test -d /usr/nec; then
7831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832 hardcode_shlibpath_var=no
7833 runpath_var=LD_RUN_PATH
7834 hardcode_runpath_var=yes
7835 ld_shlibs=yes
7839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7840 no_undefined_flag='${wl}-z,text'
7841 archive_cmds_need_lc=no
7842 hardcode_shlibpath_var=no
7843 runpath_var='LD_RUN_PATH'
7845 if test "$GCC" = yes; then
7846 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7847 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7848 else
7849 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7850 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7854 sysv5* | sco3.2v5* | sco5v6*)
7855 # Note: We can NOT use -z defs as we might desire, because we do not
7856 # link with -lc, and that would cause any symbols used from libc to
7857 # always be unresolved, which means just about no library would
7858 # ever link correctly. If we're not using GNU ld we use -z text
7859 # though, which does catch some bad symbols but isn't as heavy-handed
7860 # as -z defs.
7861 no_undefined_flag='${wl}-z,text'
7862 allow_undefined_flag='${wl}-z,nodefs'
7863 archive_cmds_need_lc=no
7864 hardcode_shlibpath_var=no
7865 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7866 hardcode_libdir_separator=':'
7867 link_all_deplibs=yes
7868 export_dynamic_flag_spec='${wl}-Bexport'
7869 runpath_var='LD_RUN_PATH'
7871 if test "$GCC" = yes; then
7872 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7873 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7874 else
7875 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7876 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7880 uts4*)
7881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882 hardcode_libdir_flag_spec='-L$libdir'
7883 hardcode_shlibpath_var=no
7887 ld_shlibs=no
7889 esac
7892 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7893 echo "${ECHO_T}$ld_shlibs" >&6; }
7894 test "$ld_shlibs" = no && can_build_shared=no
7897 # Do we need to explicitly link libc?
7899 case "x$archive_cmds_need_lc" in
7900 x|xyes)
7901 # Assume -lc should be added
7902 archive_cmds_need_lc=yes
7904 if test "$enable_shared" = yes && test "$GCC" = yes; then
7905 case $archive_cmds in
7906 *'~'*)
7907 # FIXME: we may have to deal with multi-command sequences.
7909 '$CC '*)
7910 # Test whether the compiler implicitly links with -lc since on some
7911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7912 # to ld, don't add -lc before -lgcc.
7913 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7914 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7915 $rm conftest*
7916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919 (eval $ac_compile) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } 2>conftest.err; then
7923 soname=conftest
7924 lib=conftest
7925 libobjs=conftest.$ac_objext
7926 deplibs=
7927 wl=$lt_prog_compiler_wl
7928 pic_flag=$lt_prog_compiler_pic
7929 compiler_flags=-v
7930 linker_flags=-v
7931 verstring=
7932 output_objdir=.
7933 libname=conftest
7934 lt_save_allow_undefined_flag=$allow_undefined_flag
7935 allow_undefined_flag=
7936 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7937 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }
7941 then
7942 archive_cmds_need_lc=no
7943 else
7944 archive_cmds_need_lc=yes
7946 allow_undefined_flag=$lt_save_allow_undefined_flag
7947 else
7948 cat conftest.err 1>&5
7950 $rm conftest*
7951 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7952 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7954 esac
7957 esac
7959 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7960 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7961 library_names_spec=
7962 libname_spec='lib$name'
7963 soname_spec=
7964 shrext_cmds=".so"
7965 postinstall_cmds=
7966 postuninstall_cmds=
7967 finish_cmds=
7968 finish_eval=
7969 shlibpath_var=
7970 shlibpath_overrides_runpath=unknown
7971 version_type=none
7972 dynamic_linker="$host_os ld.so"
7973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7975 if test "$GCC" = yes; then
7976 case $host_os in
7977 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7978 *) lt_awk_arg="/^libraries:/" ;;
7979 esac
7980 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7981 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7982 # if the path contains ";" then we assume it to be the separator
7983 # otherwise default to the standard path separator (i.e. ":") - it is
7984 # assumed that no part of a normal pathname contains ";" but that should
7985 # okay in the real world where ";" in dirpaths is itself problematic.
7986 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7987 else
7988 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7990 # Ok, now we have the path, separated by spaces, we can step through it
7991 # and add multilib dir if necessary.
7992 lt_tmp_lt_search_path_spec=
7993 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7994 for lt_sys_path in $lt_search_path_spec; do
7995 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7997 else
7998 test -d "$lt_sys_path" && \
7999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8001 done
8002 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8003 BEGIN {RS=" "; FS="/|\n";} {
8004 lt_foo="";
8005 lt_count=0;
8006 for (lt_i = NF; lt_i > 0; lt_i--) {
8007 if ($lt_i != "" && $lt_i != ".") {
8008 if ($lt_i == "..") {
8009 lt_count++;
8010 } else {
8011 if (lt_count == 0) {
8012 lt_foo="/" $lt_i lt_foo;
8013 } else {
8014 lt_count--;
8019 if (lt_foo != "") { lt_freq[lt_foo]++; }
8020 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8022 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8023 else
8024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8026 need_lib_prefix=unknown
8027 hardcode_into_libs=no
8029 # when you set need_version to no, make sure it does not cause -set_version
8030 # flags to be left without arguments
8031 need_version=unknown
8033 case $host_os in
8034 aix3*)
8035 version_type=linux
8036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8037 shlibpath_var=LIBPATH
8039 # AIX 3 has no versioning support, so we append a major version to the name.
8040 soname_spec='${libname}${release}${shared_ext}$major'
8043 aix4* | aix5*)
8044 version_type=linux
8045 need_lib_prefix=no
8046 need_version=no
8047 hardcode_into_libs=yes
8048 if test "$host_cpu" = ia64; then
8049 # AIX 5 supports IA64
8050 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8051 shlibpath_var=LD_LIBRARY_PATH
8052 else
8053 # With GCC up to 2.95.x, collect2 would create an import file
8054 # for dependence libraries. The import file would start with
8055 # the line `#! .'. This would cause the generated library to
8056 # depend on `.', always an invalid library. This was fixed in
8057 # development snapshots of GCC prior to 3.0.
8058 case $host_os in
8059 aix4 | aix4.[01] | aix4.[01].*)
8060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8061 echo ' yes '
8062 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8064 else
8065 can_build_shared=no
8068 esac
8069 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8070 # soname into executable. Probably we can add versioning support to
8071 # collect2, so additional links can be useful in future.
8072 if test "$aix_use_runtimelinking" = yes; then
8073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8074 # instead of lib<name>.a to let people know that these are not
8075 # typical AIX shared libraries.
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077 else
8078 # We preserve .a as extension for shared libraries through AIX4.2
8079 # and later when we are not doing run time linking.
8080 library_names_spec='${libname}${release}.a $libname.a'
8081 soname_spec='${libname}${release}${shared_ext}$major'
8083 shlibpath_var=LIBPATH
8087 amigaos*)
8088 library_names_spec='$libname.ixlibrary $libname.a'
8089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8090 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'
8093 beos*)
8094 library_names_spec='${libname}${shared_ext}'
8095 dynamic_linker="$host_os ld.so"
8096 shlibpath_var=LIBRARY_PATH
8099 bsdi[45]*)
8100 version_type=linux
8101 need_version=no
8102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8103 soname_spec='${libname}${release}${shared_ext}$major'
8104 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8105 shlibpath_var=LD_LIBRARY_PATH
8106 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8107 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8108 # the default ld.so.conf also contains /usr/contrib/lib and
8109 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8110 # libtool to hard-code these into programs
8113 cygwin* | mingw* | pw32*)
8114 version_type=windows
8115 shrext_cmds=".dll"
8116 need_version=no
8117 need_lib_prefix=no
8119 case $GCC,$host_os in
8120 yes,cygwin* | yes,mingw* | yes,pw32*)
8121 library_names_spec='$libname.dll.a'
8122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8123 postinstall_cmds='base_file=`basename \${file}`~
8124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8125 dldir=$destdir/`dirname \$dlpath`~
8126 test -d \$dldir || mkdir -p \$dldir~
8127 $install_prog $dir/$dlname \$dldir/$dlname~
8128 chmod a+x \$dldir/$dlname'
8129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8130 dlpath=$dir/\$dldll~
8131 $rm \$dlpath'
8132 shlibpath_overrides_runpath=yes
8134 case $host_os in
8135 cygwin*)
8136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8138 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8140 mingw*)
8141 # MinGW DLLs use traditional 'lib' prefix
8142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8144 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8145 # It is most probably a Windows format PATH printed by
8146 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8147 # path with ; separators, and with drive letters. We can handle the
8148 # drive letters (cygwin fileutils understands them), so leave them,
8149 # especially as we might pass files found there to a mingw objdump,
8150 # which wouldn't understand a cygwinified path. Ahh.
8151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8152 else
8153 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8156 pw32*)
8157 # pw32 DLLs use 'pw' prefix rather than 'lib'
8158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8160 esac
8164 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8166 esac
8167 dynamic_linker='Win32 ld.exe'
8168 # FIXME: first we should search . and the directory the executable is in
8169 shlibpath_var=PATH
8172 darwin* | rhapsody*)
8173 dynamic_linker="$host_os dyld"
8174 version_type=darwin
8175 need_lib_prefix=no
8176 need_version=no
8177 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8178 soname_spec='${libname}${release}${major}$shared_ext'
8179 shlibpath_overrides_runpath=yes
8180 shlibpath_var=DYLD_LIBRARY_PATH
8181 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8184 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8187 dgux*)
8188 version_type=linux
8189 need_lib_prefix=no
8190 need_version=no
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8192 soname_spec='${libname}${release}${shared_ext}$major'
8193 shlibpath_var=LD_LIBRARY_PATH
8196 freebsd1*)
8197 dynamic_linker=no
8200 freebsd* | dragonfly*)
8201 # DragonFly does not have aout. When/if they implement a new
8202 # versioning mechanism, adjust this.
8203 if test -x /usr/bin/objformat; then
8204 objformat=`/usr/bin/objformat`
8205 else
8206 case $host_os in
8207 freebsd[123]*) objformat=aout ;;
8208 *) objformat=elf ;;
8209 esac
8211 version_type=freebsd-$objformat
8212 case $version_type in
8213 freebsd-elf*)
8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8215 need_version=no
8216 need_lib_prefix=no
8218 freebsd-*)
8219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8220 need_version=yes
8222 esac
8223 shlibpath_var=LD_LIBRARY_PATH
8224 case $host_os in
8225 freebsd2*)
8226 shlibpath_overrides_runpath=yes
8228 freebsd3.[01]* | freebsdelf3.[01]*)
8229 shlibpath_overrides_runpath=yes
8230 hardcode_into_libs=yes
8232 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8233 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8234 shlibpath_overrides_runpath=no
8235 hardcode_into_libs=yes
8237 *) # from 4.6 on, and DragonFly
8238 shlibpath_overrides_runpath=yes
8239 hardcode_into_libs=yes
8241 esac
8244 gnu*)
8245 version_type=linux
8246 need_lib_prefix=no
8247 need_version=no
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8249 soname_spec='${libname}${release}${shared_ext}$major'
8250 shlibpath_var=LD_LIBRARY_PATH
8251 hardcode_into_libs=yes
8254 hpux9* | hpux10* | hpux11*)
8255 # Give a soname corresponding to the major version so that dld.sl refuses to
8256 # link against other versions.
8257 version_type=sunos
8258 need_lib_prefix=no
8259 need_version=no
8260 case $host_cpu in
8261 ia64*)
8262 shrext_cmds='.so'
8263 hardcode_into_libs=yes
8264 dynamic_linker="$host_os dld.so"
8265 shlibpath_var=LD_LIBRARY_PATH
8266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 if test "X$HPUX_IA64_MODE" = X32; then
8270 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8271 else
8272 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8276 hppa*64*)
8277 shrext_cmds='.sl'
8278 hardcode_into_libs=yes
8279 dynamic_linker="$host_os dld.sl"
8280 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8283 soname_spec='${libname}${release}${shared_ext}$major'
8284 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8288 shrext_cmds='.sl'
8289 dynamic_linker="$host_os dld.sl"
8290 shlibpath_var=SHLIB_PATH
8291 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293 soname_spec='${libname}${release}${shared_ext}$major'
8295 esac
8296 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8297 postinstall_cmds='chmod 555 $lib'
8300 interix[3-9]*)
8301 version_type=linux
8302 need_lib_prefix=no
8303 need_version=no
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8305 soname_spec='${libname}${release}${shared_ext}$major'
8306 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8307 shlibpath_var=LD_LIBRARY_PATH
8308 shlibpath_overrides_runpath=no
8309 hardcode_into_libs=yes
8312 irix5* | irix6* | nonstopux*)
8313 case $host_os in
8314 nonstopux*) version_type=nonstopux ;;
8316 if test "$lt_cv_prog_gnu_ld" = yes; then
8317 version_type=linux
8318 else
8319 version_type=irix
8320 fi ;;
8321 esac
8322 need_lib_prefix=no
8323 need_version=no
8324 soname_spec='${libname}${release}${shared_ext}$major'
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8326 case $host_os in
8327 irix5* | nonstopux*)
8328 libsuff= shlibsuff=
8331 case $LD in # libtool.m4 will add one of these switches to LD
8332 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8333 libsuff= shlibsuff= libmagic=32-bit;;
8334 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8335 libsuff=32 shlibsuff=N32 libmagic=N32;;
8336 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8337 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8338 *) libsuff= shlibsuff= libmagic=never-match;;
8339 esac
8341 esac
8342 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8343 shlibpath_overrides_runpath=no
8344 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8345 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8346 hardcode_into_libs=yes
8349 # No shared lib support for Linux oldld, aout, or coff.
8350 linux*oldld* | linux*aout* | linux*coff*)
8351 dynamic_linker=no
8354 # This must be Linux ELF.
8355 linux* | k*bsd*-gnu)
8356 version_type=linux
8357 need_lib_prefix=no
8358 need_version=no
8359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8360 soname_spec='${libname}${release}${shared_ext}$major'
8361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8362 shlibpath_var=LD_LIBRARY_PATH
8363 shlibpath_overrides_runpath=no
8364 # This implies no fast_install, which is unacceptable.
8365 # Some rework will be needed to allow for fast_install
8366 # before this can be enabled.
8367 hardcode_into_libs=yes
8369 # Append ld.so.conf contents to the search path
8370 if test -f /etc/ld.so.conf; then
8371 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' ' '`
8372 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8375 # We used to test for /lib/ld.so.1 and disable shared libraries on
8376 # powerpc, because MkLinux only supported shared libraries with the
8377 # GNU dynamic linker. Since this was broken with cross compilers,
8378 # most powerpc-linux boxes support dynamic linking these days and
8379 # people can always --disable-shared, the test was removed, and we
8380 # assume the GNU/Linux dynamic linker is in use.
8381 dynamic_linker='GNU/Linux ld.so'
8384 netbsd*)
8385 version_type=sunos
8386 need_lib_prefix=no
8387 need_version=no
8388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8391 dynamic_linker='NetBSD (a.out) ld.so'
8392 else
8393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8394 soname_spec='${libname}${release}${shared_ext}$major'
8395 dynamic_linker='NetBSD ld.elf_so'
8397 shlibpath_var=LD_LIBRARY_PATH
8398 shlibpath_overrides_runpath=yes
8399 hardcode_into_libs=yes
8402 newsos6)
8403 version_type=linux
8404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8405 shlibpath_var=LD_LIBRARY_PATH
8406 shlibpath_overrides_runpath=yes
8409 nto-qnx*)
8410 version_type=linux
8411 need_lib_prefix=no
8412 need_version=no
8413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8414 soname_spec='${libname}${release}${shared_ext}$major'
8415 shlibpath_var=LD_LIBRARY_PATH
8416 shlibpath_overrides_runpath=yes
8419 openbsd*)
8420 version_type=sunos
8421 sys_lib_dlsearch_path_spec="/usr/lib"
8422 need_lib_prefix=no
8423 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8424 case $host_os in
8425 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8426 *) need_version=no ;;
8427 esac
8428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8430 shlibpath_var=LD_LIBRARY_PATH
8431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8432 case $host_os in
8433 openbsd2.[89] | openbsd2.[89].*)
8434 shlibpath_overrides_runpath=no
8437 shlibpath_overrides_runpath=yes
8439 esac
8440 else
8441 shlibpath_overrides_runpath=yes
8445 os2*)
8446 libname_spec='$name'
8447 shrext_cmds=".dll"
8448 need_lib_prefix=no
8449 library_names_spec='$libname${shared_ext} $libname.a'
8450 dynamic_linker='OS/2 ld.exe'
8451 shlibpath_var=LIBPATH
8454 osf3* | osf4* | osf5*)
8455 version_type=osf
8456 need_lib_prefix=no
8457 need_version=no
8458 soname_spec='${libname}${release}${shared_ext}$major'
8459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8460 shlibpath_var=LD_LIBRARY_PATH
8461 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8462 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8465 rdos*)
8466 dynamic_linker=no
8469 solaris*)
8470 version_type=linux
8471 need_lib_prefix=no
8472 need_version=no
8473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8474 soname_spec='${libname}${release}${shared_ext}$major'
8475 shlibpath_var=LD_LIBRARY_PATH
8476 shlibpath_overrides_runpath=yes
8477 hardcode_into_libs=yes
8478 # ldd complains unless libraries are executable
8479 postinstall_cmds='chmod +x $lib'
8482 sunos4*)
8483 version_type=sunos
8484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8486 shlibpath_var=LD_LIBRARY_PATH
8487 shlibpath_overrides_runpath=yes
8488 if test "$with_gnu_ld" = yes; then
8489 need_lib_prefix=no
8491 need_version=yes
8494 sysv4 | sysv4.3*)
8495 version_type=linux
8496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8497 soname_spec='${libname}${release}${shared_ext}$major'
8498 shlibpath_var=LD_LIBRARY_PATH
8499 case $host_vendor in
8500 sni)
8501 shlibpath_overrides_runpath=no
8502 need_lib_prefix=no
8503 export_dynamic_flag_spec='${wl}-Blargedynsym'
8504 runpath_var=LD_RUN_PATH
8506 siemens)
8507 need_lib_prefix=no
8509 motorola)
8510 need_lib_prefix=no
8511 need_version=no
8512 shlibpath_overrides_runpath=no
8513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8515 esac
8518 sysv4*MP*)
8519 if test -d /usr/nec ;then
8520 version_type=linux
8521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8522 soname_spec='$libname${shared_ext}.$major'
8523 shlibpath_var=LD_LIBRARY_PATH
8527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8528 version_type=freebsd-elf
8529 need_lib_prefix=no
8530 need_version=no
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8532 soname_spec='${libname}${release}${shared_ext}$major'
8533 shlibpath_var=LD_LIBRARY_PATH
8534 hardcode_into_libs=yes
8535 if test "$with_gnu_ld" = yes; then
8536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8537 shlibpath_overrides_runpath=no
8538 else
8539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8540 shlibpath_overrides_runpath=yes
8541 case $host_os in
8542 sco3.2v5*)
8543 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8545 esac
8547 sys_lib_dlsearch_path_spec='/usr/lib'
8550 uts4*)
8551 version_type=linux
8552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8553 soname_spec='${libname}${release}${shared_ext}$major'
8554 shlibpath_var=LD_LIBRARY_PATH
8558 dynamic_linker=no
8560 esac
8561 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8562 echo "${ECHO_T}$dynamic_linker" >&6; }
8563 test "$dynamic_linker" = no && can_build_shared=no
8565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8566 if test "$GCC" = yes; then
8567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8570 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8572 hardcode_action=
8573 if test -n "$hardcode_libdir_flag_spec" || \
8574 test -n "$runpath_var" || \
8575 test "X$hardcode_automatic" = "Xyes" ; then
8577 # We can hardcode non-existant directories.
8578 if test "$hardcode_direct" != no &&
8579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8580 # have to relink, otherwise we might link with an installed library
8581 # when we should be linking with a yet-to-be-installed one
8582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8583 test "$hardcode_minus_L" != no; then
8584 # Linking always hardcodes the temporary library directory.
8585 hardcode_action=relink
8586 else
8587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8588 hardcode_action=immediate
8590 else
8591 # We cannot hardcode anything, or else we can only hardcode existing
8592 # directories.
8593 hardcode_action=unsupported
8595 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8596 echo "${ECHO_T}$hardcode_action" >&6; }
8598 if test "$hardcode_action" = relink; then
8599 # Fast installation is not supported
8600 enable_fast_install=no
8601 elif test "$shlibpath_overrides_runpath" = yes ||
8602 test "$enable_shared" = no; then
8603 # Fast installation is not necessary
8604 enable_fast_install=needless
8607 striplib=
8608 old_striplib=
8609 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8614 { echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6; }
8616 else
8617 # FIXME - insert some real tests, host_os isn't really good enough
8618 case $host_os in
8619 darwin*)
8620 if test -n "$STRIP" ; then
8621 striplib="$STRIP -x"
8622 old_striplib="$STRIP -S"
8623 { echo "$as_me:$LINENO: result: yes" >&5
8624 echo "${ECHO_T}yes" >&6; }
8625 else
8626 { echo "$as_me:$LINENO: result: no" >&5
8627 echo "${ECHO_T}no" >&6; }
8631 { echo "$as_me:$LINENO: result: no" >&5
8632 echo "${ECHO_T}no" >&6; }
8634 esac
8637 if test "x$enable_dlopen" != xyes; then
8638 enable_dlopen=unknown
8639 enable_dlopen_self=unknown
8640 enable_dlopen_self_static=unknown
8641 else
8642 lt_cv_dlopen=no
8643 lt_cv_dlopen_libs=
8645 case $host_os in
8646 beos*)
8647 lt_cv_dlopen="load_add_on"
8648 lt_cv_dlopen_libs=
8649 lt_cv_dlopen_self=yes
8652 mingw* | pw32*)
8653 lt_cv_dlopen="LoadLibrary"
8654 lt_cv_dlopen_libs=
8657 cygwin*)
8658 lt_cv_dlopen="dlopen"
8659 lt_cv_dlopen_libs=
8662 darwin*)
8663 # if libdl is installed we need to link against it
8664 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8665 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669 ac_check_lib_save_LIBS=$LIBS
8670 LIBS="-ldl $LIBS"
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h. */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8678 /* Override any GCC internal prototype to avoid an error.
8679 Use char because int might match the return type of a GCC
8680 builtin and then its argument prototype would still apply. */
8681 #ifdef __cplusplus
8682 extern "C"
8683 #endif
8684 char dlopen ();
8686 main ()
8688 return dlopen ();
8690 return 0;
8692 _ACEOF
8693 rm -f conftest.$ac_objext conftest$ac_exeext
8694 if { (ac_try="$ac_link"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_link") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest$ac_exeext &&
8710 $as_test_x conftest$ac_exeext; then
8711 ac_cv_lib_dl_dlopen=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_lib_dl_dlopen=no
8719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LIBS=$ac_check_lib_save_LIBS
8723 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8725 if test $ac_cv_lib_dl_dlopen = yes; then
8726 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8727 else
8729 lt_cv_dlopen="dyld"
8730 lt_cv_dlopen_libs=
8731 lt_cv_dlopen_self=yes
8738 { echo "$as_me:$LINENO: checking for shl_load" >&5
8739 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8740 if test "${ac_cv_func_shl_load+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8751 #define shl_load innocuous_shl_load
8753 /* System header to define __stub macros and hopefully few prototypes,
8754 which can conflict with char shl_load (); below.
8755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8756 <limits.h> exists even on freestanding compilers. */
8758 #ifdef __STDC__
8759 # include <limits.h>
8760 #else
8761 # include <assert.h>
8762 #endif
8764 #undef shl_load
8766 /* Override any GCC internal prototype to avoid an error.
8767 Use char because int might match the return type of a GCC
8768 builtin and then its argument prototype would still apply. */
8769 #ifdef __cplusplus
8770 extern "C"
8771 #endif
8772 char shl_load ();
8773 /* The GNU C library defines this for functions which it implements
8774 to always fail with ENOSYS. Some functions are actually named
8775 something starting with __ and the normal name is an alias. */
8776 #if defined __stub_shl_load || defined __stub___shl_load
8777 choke me
8778 #endif
8781 main ()
8783 return shl_load ();
8785 return 0;
8787 _ACEOF
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (ac_try="$ac_link"
8790 case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_link") 2>conftest.er1
8796 ac_status=$?
8797 grep -v '^ *+' conftest.er1 >conftest.err
8798 rm -f conftest.er1
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest$ac_exeext &&
8805 $as_test_x conftest$ac_exeext; then
8806 ac_cv_func_shl_load=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_func_shl_load=no
8814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8815 conftest$ac_exeext conftest.$ac_ext
8817 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8818 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8819 if test $ac_cv_func_shl_load = yes; then
8820 lt_cv_dlopen="shl_load"
8821 else
8822 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8823 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8824 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 ac_check_lib_save_LIBS=$LIBS
8828 LIBS="-ldld $LIBS"
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8836 /* Override any GCC internal prototype to avoid an error.
8837 Use char because int might match the return type of a GCC
8838 builtin and then its argument prototype would still apply. */
8839 #ifdef __cplusplus
8840 extern "C"
8841 #endif
8842 char shl_load ();
8844 main ()
8846 return shl_load ();
8848 return 0;
8850 _ACEOF
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (ac_try="$ac_link"
8853 case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_link") 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } && {
8865 test -z "$ac_c_werror_flag" ||
8866 test ! -s conftest.err
8867 } && test -s conftest$ac_exeext &&
8868 $as_test_x conftest$ac_exeext; then
8869 ac_cv_lib_dld_shl_load=yes
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8874 ac_cv_lib_dld_shl_load=no
8877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8878 conftest$ac_exeext conftest.$ac_ext
8879 LIBS=$ac_check_lib_save_LIBS
8881 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8882 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8883 if test $ac_cv_lib_dld_shl_load = yes; then
8884 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8885 else
8886 { echo "$as_me:$LINENO: checking for dlopen" >&5
8887 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8888 if test "${ac_cv_func_dlopen+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8899 #define dlopen innocuous_dlopen
8901 /* System header to define __stub macros and hopefully few prototypes,
8902 which can conflict with char dlopen (); below.
8903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904 <limits.h> exists even on freestanding compilers. */
8906 #ifdef __STDC__
8907 # include <limits.h>
8908 #else
8909 # include <assert.h>
8910 #endif
8912 #undef dlopen
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 char dlopen ();
8921 /* The GNU C library defines this for functions which it implements
8922 to always fail with ENOSYS. Some functions are actually named
8923 something starting with __ and the normal name is an alias. */
8924 #if defined __stub_dlopen || defined __stub___dlopen
8925 choke me
8926 #endif
8929 main ()
8931 return dlopen ();
8933 return 0;
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8938 case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_link") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest$ac_exeext &&
8953 $as_test_x conftest$ac_exeext; then
8954 ac_cv_func_dlopen=yes
8955 else
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ac_cv_func_dlopen=no
8962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8963 conftest$ac_exeext conftest.$ac_ext
8965 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8966 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8967 if test $ac_cv_func_dlopen = yes; then
8968 lt_cv_dlopen="dlopen"
8969 else
8970 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8971 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8972 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975 ac_check_lib_save_LIBS=$LIBS
8976 LIBS="-ldl $LIBS"
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h. */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8987 #ifdef __cplusplus
8988 extern "C"
8989 #endif
8990 char dlopen ();
8992 main ()
8994 return dlopen ();
8996 return 0;
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (ac_try="$ac_link"
9001 case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_link") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest$ac_exeext &&
9016 $as_test_x conftest$ac_exeext; then
9017 ac_cv_lib_dl_dlopen=yes
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_cv_lib_dl_dlopen=no
9025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9026 conftest$ac_exeext conftest.$ac_ext
9027 LIBS=$ac_check_lib_save_LIBS
9029 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9030 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9031 if test $ac_cv_lib_dl_dlopen = yes; then
9032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9033 else
9034 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9035 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9036 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039 ac_check_lib_save_LIBS=$LIBS
9040 LIBS="-lsvld $LIBS"
9041 cat >conftest.$ac_ext <<_ACEOF
9042 /* confdefs.h. */
9043 _ACEOF
9044 cat confdefs.h >>conftest.$ac_ext
9045 cat >>conftest.$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 /* Override any GCC internal prototype to avoid an error.
9049 Use char because int might match the return type of a GCC
9050 builtin and then its argument prototype would still apply. */
9051 #ifdef __cplusplus
9052 extern "C"
9053 #endif
9054 char dlopen ();
9056 main ()
9058 return dlopen ();
9060 return 0;
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (ac_try="$ac_link"
9065 case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068 esac
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_link") 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } && {
9077 test -z "$ac_c_werror_flag" ||
9078 test ! -s conftest.err
9079 } && test -s conftest$ac_exeext &&
9080 $as_test_x conftest$ac_exeext; then
9081 ac_cv_lib_svld_dlopen=yes
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 ac_cv_lib_svld_dlopen=no
9089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9090 conftest$ac_exeext conftest.$ac_ext
9091 LIBS=$ac_check_lib_save_LIBS
9093 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9095 if test $ac_cv_lib_svld_dlopen = yes; then
9096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9097 else
9098 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9099 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9100 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 ac_check_lib_save_LIBS=$LIBS
9104 LIBS="-ldld $LIBS"
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h. */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9115 #ifdef __cplusplus
9116 extern "C"
9117 #endif
9118 char dld_link ();
9120 main ()
9122 return dld_link ();
9124 return 0;
9126 _ACEOF
9127 rm -f conftest.$ac_objext conftest$ac_exeext
9128 if { (ac_try="$ac_link"
9129 case "(($ac_try" in
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_link") 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } && {
9141 test -z "$ac_c_werror_flag" ||
9142 test ! -s conftest.err
9143 } && test -s conftest$ac_exeext &&
9144 $as_test_x conftest$ac_exeext; then
9145 ac_cv_lib_dld_dld_link=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_cv_lib_dld_dld_link=no
9153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9154 conftest$ac_exeext conftest.$ac_ext
9155 LIBS=$ac_check_lib_save_LIBS
9157 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9158 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9159 if test $ac_cv_lib_dld_dld_link = yes; then
9160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9179 esac
9181 if test "x$lt_cv_dlopen" != xno; then
9182 enable_dlopen=yes
9183 else
9184 enable_dlopen=no
9187 case $lt_cv_dlopen in
9188 dlopen)
9189 save_CPPFLAGS="$CPPFLAGS"
9190 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9192 save_LDFLAGS="$LDFLAGS"
9193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9195 save_LIBS="$LIBS"
9196 LIBS="$lt_cv_dlopen_libs $LIBS"
9198 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9199 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9200 if test "${lt_cv_dlopen_self+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 else
9203 if test "$cross_compiling" = yes; then :
9204 lt_cv_dlopen_self=cross
9205 else
9206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9207 lt_status=$lt_dlunknown
9208 cat > conftest.$ac_ext <<EOF
9209 #line 9209 "configure"
9210 #include "confdefs.h"
9212 #if HAVE_DLFCN_H
9213 #include <dlfcn.h>
9214 #endif
9216 #include <stdio.h>
9218 #ifdef RTLD_GLOBAL
9219 # define LT_DLGLOBAL RTLD_GLOBAL
9220 #else
9221 # ifdef DL_GLOBAL
9222 # define LT_DLGLOBAL DL_GLOBAL
9223 # else
9224 # define LT_DLGLOBAL 0
9225 # endif
9226 #endif
9228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9229 find out it does not work in some platform. */
9230 #ifndef LT_DLLAZY_OR_NOW
9231 # ifdef RTLD_LAZY
9232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9233 # else
9234 # ifdef DL_LAZY
9235 # define LT_DLLAZY_OR_NOW DL_LAZY
9236 # else
9237 # ifdef RTLD_NOW
9238 # define LT_DLLAZY_OR_NOW RTLD_NOW
9239 # else
9240 # ifdef DL_NOW
9241 # define LT_DLLAZY_OR_NOW DL_NOW
9242 # else
9243 # define LT_DLLAZY_OR_NOW 0
9244 # endif
9245 # endif
9246 # endif
9247 # endif
9248 #endif
9250 #ifdef __cplusplus
9251 extern "C" void exit (int);
9252 #endif
9254 void fnord() { int i=42;}
9255 int main ()
9257 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9258 int status = $lt_dlunknown;
9260 if (self)
9262 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9263 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9264 /* dlclose (self); */
9266 else
9267 puts (dlerror ());
9269 exit (status);
9272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9273 (eval $ac_link) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9277 (./conftest; exit; ) >&5 2>/dev/null
9278 lt_status=$?
9279 case x$lt_status in
9280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9282 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9283 esac
9284 else :
9285 # compilation failed
9286 lt_cv_dlopen_self=no
9289 rm -fr conftest*
9293 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9294 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9296 if test "x$lt_cv_dlopen_self" = xyes; then
9297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9298 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9299 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9300 if test "${lt_cv_dlopen_self_static+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303 if test "$cross_compiling" = yes; then :
9304 lt_cv_dlopen_self_static=cross
9305 else
9306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9307 lt_status=$lt_dlunknown
9308 cat > conftest.$ac_ext <<EOF
9309 #line 9309 "configure"
9310 #include "confdefs.h"
9312 #if HAVE_DLFCN_H
9313 #include <dlfcn.h>
9314 #endif
9316 #include <stdio.h>
9318 #ifdef RTLD_GLOBAL
9319 # define LT_DLGLOBAL RTLD_GLOBAL
9320 #else
9321 # ifdef DL_GLOBAL
9322 # define LT_DLGLOBAL DL_GLOBAL
9323 # else
9324 # define LT_DLGLOBAL 0
9325 # endif
9326 #endif
9328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9329 find out it does not work in some platform. */
9330 #ifndef LT_DLLAZY_OR_NOW
9331 # ifdef RTLD_LAZY
9332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9333 # else
9334 # ifdef DL_LAZY
9335 # define LT_DLLAZY_OR_NOW DL_LAZY
9336 # else
9337 # ifdef RTLD_NOW
9338 # define LT_DLLAZY_OR_NOW RTLD_NOW
9339 # else
9340 # ifdef DL_NOW
9341 # define LT_DLLAZY_OR_NOW DL_NOW
9342 # else
9343 # define LT_DLLAZY_OR_NOW 0
9344 # endif
9345 # endif
9346 # endif
9347 # endif
9348 #endif
9350 #ifdef __cplusplus
9351 extern "C" void exit (int);
9352 #endif
9354 void fnord() { int i=42;}
9355 int main ()
9357 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9358 int status = $lt_dlunknown;
9360 if (self)
9362 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9363 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9364 /* dlclose (self); */
9366 else
9367 puts (dlerror ());
9369 exit (status);
9372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9373 (eval $ac_link) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9377 (./conftest; exit; ) >&5 2>/dev/null
9378 lt_status=$?
9379 case x$lt_status in
9380 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9381 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9382 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9383 esac
9384 else :
9385 # compilation failed
9386 lt_cv_dlopen_self_static=no
9389 rm -fr conftest*
9393 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9394 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9397 CPPFLAGS="$save_CPPFLAGS"
9398 LDFLAGS="$save_LDFLAGS"
9399 LIBS="$save_LIBS"
9401 esac
9403 case $lt_cv_dlopen_self in
9404 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9405 *) enable_dlopen_self=unknown ;;
9406 esac
9408 case $lt_cv_dlopen_self_static in
9409 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9410 *) enable_dlopen_self_static=unknown ;;
9411 esac
9415 # Report which library types will actually be built
9416 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9417 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9418 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9419 echo "${ECHO_T}$can_build_shared" >&6; }
9421 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9422 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9423 test "$can_build_shared" = "no" && enable_shared=no
9425 # On AIX, shared libraries and static libraries use the same namespace, and
9426 # are all built from PIC.
9427 case $host_os in
9428 aix3*)
9429 test "$enable_shared" = yes && enable_static=no
9430 if test -n "$RANLIB"; then
9431 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9432 postinstall_cmds='$RANLIB $lib'
9436 aix4* | aix5*)
9437 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9438 test "$enable_shared" = yes && enable_static=no
9441 esac
9442 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9443 echo "${ECHO_T}$enable_shared" >&6; }
9445 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9446 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9447 # Make sure either enable_shared or enable_static is yes.
9448 test "$enable_shared" = yes || enable_static=yes
9449 { echo "$as_me:$LINENO: result: $enable_static" >&5
9450 echo "${ECHO_T}$enable_static" >&6; }
9452 # The else clause should only fire when bootstrapping the
9453 # libtool distribution, otherwise you forgot to ship ltmain.sh
9454 # with your package, and you will get complaints that there are
9455 # no rules to generate ltmain.sh.
9456 if test -f "$ltmain"; then
9457 # See if we are running on zsh, and set the options which allow our commands through
9458 # without removal of \ escapes.
9459 if test -n "${ZSH_VERSION+set}" ; then
9460 setopt NO_GLOB_SUBST
9462 # Now quote all the things that may contain metacharacters while being
9463 # careful not to overquote the AC_SUBSTed values. We take copies of the
9464 # variables and quote the copies for generation of the libtool script.
9465 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9466 SED SHELL STRIP \
9467 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9468 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9469 deplibs_check_method reload_flag reload_cmds need_locks \
9470 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9471 lt_cv_sys_global_symbol_to_c_name_address \
9472 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9473 old_postinstall_cmds old_postuninstall_cmds \
9474 compiler \
9475 CC \
9476 LD \
9477 lt_prog_compiler_wl \
9478 lt_prog_compiler_pic \
9479 lt_prog_compiler_static \
9480 lt_prog_compiler_no_builtin_flag \
9481 export_dynamic_flag_spec \
9482 thread_safe_flag_spec \
9483 whole_archive_flag_spec \
9484 enable_shared_with_static_runtimes \
9485 old_archive_cmds \
9486 old_archive_from_new_cmds \
9487 predep_objects \
9488 postdep_objects \
9489 predeps \
9490 postdeps \
9491 compiler_lib_search_path \
9492 archive_cmds \
9493 archive_expsym_cmds \
9494 postinstall_cmds \
9495 postuninstall_cmds \
9496 old_archive_from_expsyms_cmds \
9497 allow_undefined_flag \
9498 no_undefined_flag \
9499 export_symbols_cmds \
9500 hardcode_libdir_flag_spec \
9501 hardcode_libdir_flag_spec_ld \
9502 hardcode_libdir_separator \
9503 hardcode_automatic \
9504 module_cmds \
9505 module_expsym_cmds \
9506 lt_cv_prog_compiler_c_o \
9507 fix_srcfile_path \
9508 exclude_expsyms \
9509 include_expsyms; do
9511 case $var in
9512 old_archive_cmds | \
9513 old_archive_from_new_cmds | \
9514 archive_cmds | \
9515 archive_expsym_cmds | \
9516 module_cmds | \
9517 module_expsym_cmds | \
9518 old_archive_from_expsyms_cmds | \
9519 export_symbols_cmds | \
9520 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9521 postinstall_cmds | postuninstall_cmds | \
9522 old_postinstall_cmds | old_postuninstall_cmds | \
9523 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9524 # Double-quote double-evaled strings.
9525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9530 esac
9531 done
9533 case $lt_echo in
9534 *'\$0 --fallback-echo"')
9535 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9537 esac
9539 cfgfile="${ofile}T"
9540 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9541 $rm -f "$cfgfile"
9542 { echo "$as_me:$LINENO: creating $ofile" >&5
9543 echo "$as_me: creating $ofile" >&6;}
9545 cat <<__EOF__ >> "$cfgfile"
9546 #! $SHELL
9548 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9549 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9550 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9552 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9553 # Free Software Foundation, Inc.
9555 # This file is part of GNU Libtool:
9556 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9558 # This program is free software; you can redistribute it and/or modify
9559 # it under the terms of the GNU General Public License as published by
9560 # the Free Software Foundation; either version 2 of the License, or
9561 # (at your option) any later version.
9563 # This program is distributed in the hope that it will be useful, but
9564 # WITHOUT ANY WARRANTY; without even the implied warranty of
9565 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9566 # General Public License for more details.
9568 # You should have received a copy of the GNU General Public License
9569 # along with this program; if not, write to the Free Software
9570 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9572 # As a special exception to the GNU General Public License, if you
9573 # distribute this file as part of a program that contains a
9574 # configuration script generated by Autoconf, you may include it under
9575 # the same distribution terms that you use for the rest of that program.
9577 # A sed program that does not truncate output.
9578 SED=$lt_SED
9580 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9581 Xsed="$SED -e 1s/^X//"
9583 # The HP-UX ksh and POSIX shell print the target directory to stdout
9584 # if CDPATH is set.
9585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9587 # The names of the tagged configurations supported by this script.
9588 available_tags=
9590 # ### BEGIN LIBTOOL CONFIG
9592 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9594 # Shell to use when invoking shell scripts.
9595 SHELL=$lt_SHELL
9597 # Whether or not to build shared libraries.
9598 build_libtool_libs=$enable_shared
9600 # Whether or not to build static libraries.
9601 build_old_libs=$enable_static
9603 # Whether or not to add -lc for building shared libraries.
9604 build_libtool_need_lc=$archive_cmds_need_lc
9606 # Whether or not to disallow shared libs when runtime libs are static
9607 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9609 # Whether or not to optimize for fast installation.
9610 fast_install=$enable_fast_install
9612 # The host system.
9613 host_alias=$host_alias
9614 host=$host
9615 host_os=$host_os
9617 # The build system.
9618 build_alias=$build_alias
9619 build=$build
9620 build_os=$build_os
9622 # An echo program that does not interpret backslashes.
9623 echo=$lt_echo
9625 # The archiver.
9626 AR=$lt_AR
9627 AR_FLAGS=$lt_AR_FLAGS
9629 # A C compiler.
9630 LTCC=$lt_LTCC
9632 # LTCC compiler flags.
9633 LTCFLAGS=$lt_LTCFLAGS
9635 # A language-specific compiler.
9636 CC=$lt_compiler
9638 # Is the compiler the GNU C compiler?
9639 with_gcc=$GCC
9641 # An ERE matcher.
9642 EGREP=$lt_EGREP
9644 # The linker used to build libraries.
9645 LD=$lt_LD
9647 # Whether we need hard or soft links.
9648 LN_S=$lt_LN_S
9650 # A BSD-compatible nm program.
9651 NM=$lt_NM
9653 # A symbol stripping program
9654 STRIP=$lt_STRIP
9656 # Used to examine libraries when file_magic_cmd begins "file"
9657 MAGIC_CMD=$MAGIC_CMD
9659 # Used on cygwin: DLL creation program.
9660 DLLTOOL="$DLLTOOL"
9662 # Used on cygwin: object dumper.
9663 OBJDUMP="$OBJDUMP"
9665 # Used on cygwin: assembler.
9666 AS="$AS"
9668 # The name of the directory that contains temporary libtool files.
9669 objdir=$objdir
9671 # How to create reloadable object files.
9672 reload_flag=$lt_reload_flag
9673 reload_cmds=$lt_reload_cmds
9675 # How to pass a linker flag through the compiler.
9676 wl=$lt_lt_prog_compiler_wl
9678 # Object file suffix (normally "o").
9679 objext="$ac_objext"
9681 # Old archive suffix (normally "a").
9682 libext="$libext"
9684 # Shared library suffix (normally ".so").
9685 shrext_cmds='$shrext_cmds'
9687 # Executable file suffix (normally "").
9688 exeext="$exeext"
9690 # Additional compiler flags for building library objects.
9691 pic_flag=$lt_lt_prog_compiler_pic
9692 pic_mode=$pic_mode
9694 # What is the maximum length of a command?
9695 max_cmd_len=$lt_cv_sys_max_cmd_len
9697 # Does compiler simultaneously support -c and -o options?
9698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9700 # Must we lock files when doing compilation?
9701 need_locks=$lt_need_locks
9703 # Do we need the lib prefix for modules?
9704 need_lib_prefix=$need_lib_prefix
9706 # Do we need a version for libraries?
9707 need_version=$need_version
9709 # Whether dlopen is supported.
9710 dlopen_support=$enable_dlopen
9712 # Whether dlopen of programs is supported.
9713 dlopen_self=$enable_dlopen_self
9715 # Whether dlopen of statically linked programs is supported.
9716 dlopen_self_static=$enable_dlopen_self_static
9718 # Compiler flag to prevent dynamic linking.
9719 link_static_flag=$lt_lt_prog_compiler_static
9721 # Compiler flag to turn off builtin functions.
9722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9724 # Compiler flag to allow reflexive dlopens.
9725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9727 # Compiler flag to generate shared objects directly from archives.
9728 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9730 # Compiler flag to generate thread-safe objects.
9731 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9733 # Library versioning type.
9734 version_type=$version_type
9736 # Format of library name prefix.
9737 libname_spec=$lt_libname_spec
9739 # List of archive names. First name is the real one, the rest are links.
9740 # The last name is the one that the linker finds with -lNAME.
9741 library_names_spec=$lt_library_names_spec
9743 # The coded name of the library, if different from the real name.
9744 soname_spec=$lt_soname_spec
9746 # Commands used to build and install an old-style archive.
9747 RANLIB=$lt_RANLIB
9748 old_archive_cmds=$lt_old_archive_cmds
9749 old_postinstall_cmds=$lt_old_postinstall_cmds
9750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9752 # Create an old-style archive from a shared archive.
9753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9755 # Create a temporary old-style archive to link instead of a shared archive.
9756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9758 # Commands used to build and install a shared archive.
9759 archive_cmds=$lt_archive_cmds
9760 archive_expsym_cmds=$lt_archive_expsym_cmds
9761 postinstall_cmds=$lt_postinstall_cmds
9762 postuninstall_cmds=$lt_postuninstall_cmds
9764 # Commands used to build a loadable module (assumed same as above if empty)
9765 module_cmds=$lt_module_cmds
9766 module_expsym_cmds=$lt_module_expsym_cmds
9768 # Commands to strip libraries.
9769 old_striplib=$lt_old_striplib
9770 striplib=$lt_striplib
9772 # Dependencies to place before the objects being linked to create a
9773 # shared library.
9774 predep_objects=$lt_predep_objects
9776 # Dependencies to place after the objects being linked to create a
9777 # shared library.
9778 postdep_objects=$lt_postdep_objects
9780 # Dependencies to place before the objects being linked to create a
9781 # shared library.
9782 predeps=$lt_predeps
9784 # Dependencies to place after the objects being linked to create a
9785 # shared library.
9786 postdeps=$lt_postdeps
9788 # The library search path used internally by the compiler when linking
9789 # a shared library.
9790 compiler_lib_search_path=$lt_compiler_lib_search_path
9792 # Method to check whether dependent libraries are shared objects.
9793 deplibs_check_method=$lt_deplibs_check_method
9795 # Command to use when deplibs_check_method == file_magic.
9796 file_magic_cmd=$lt_file_magic_cmd
9798 # Flag that allows shared libraries with undefined symbols to be built.
9799 allow_undefined_flag=$lt_allow_undefined_flag
9801 # Flag that forces no undefined symbols.
9802 no_undefined_flag=$lt_no_undefined_flag
9804 # Commands used to finish a libtool library installation in a directory.
9805 finish_cmds=$lt_finish_cmds
9807 # Same as above, but a single script fragment to be evaled but not shown.
9808 finish_eval=$lt_finish_eval
9810 # Take the output of nm and produce a listing of raw symbols and C names.
9811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9813 # Transform the output of nm in a proper C declaration
9814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9816 # Transform the output of nm in a C name address pair
9817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9819 # This is the shared library runtime path variable.
9820 runpath_var=$runpath_var
9822 # This is the shared library path variable.
9823 shlibpath_var=$shlibpath_var
9825 # Is shlibpath searched before the hard-coded library search path?
9826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9828 # How to hardcode a shared library path into an executable.
9829 hardcode_action=$hardcode_action
9831 # Whether we should hardcode library paths into libraries.
9832 hardcode_into_libs=$hardcode_into_libs
9834 # Flag to hardcode \$libdir into a binary during linking.
9835 # This must work even if \$libdir does not exist.
9836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9838 # If ld is used when linking, flag to hardcode \$libdir into
9839 # a binary during linking. This must work even if \$libdir does
9840 # not exist.
9841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9843 # Whether we need a single -rpath flag with a separated argument.
9844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9847 # resulting binary.
9848 hardcode_direct=$hardcode_direct
9850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9851 # resulting binary.
9852 hardcode_minus_L=$hardcode_minus_L
9854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9855 # the resulting binary.
9856 hardcode_shlibpath_var=$hardcode_shlibpath_var
9858 # Set to yes if building a shared library automatically hardcodes DIR into the library
9859 # and all subsequent libraries and executables linked against it.
9860 hardcode_automatic=$hardcode_automatic
9862 # Variables whose values should be saved in libtool wrapper scripts and
9863 # restored at relink time.
9864 variables_saved_for_relink="$variables_saved_for_relink"
9866 # Whether libtool must link a program against all its dependency libraries.
9867 link_all_deplibs=$link_all_deplibs
9869 # Compile-time system search path for libraries
9870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9872 # Run-time system search path for libraries
9873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9875 # Fix the shell variable \$srcfile for the compiler.
9876 fix_srcfile_path=$lt_fix_srcfile_path
9878 # Set to yes if exported symbols are required.
9879 always_export_symbols=$always_export_symbols
9881 # The commands to list exported symbols.
9882 export_symbols_cmds=$lt_export_symbols_cmds
9884 # The commands to extract the exported symbol list from a shared archive.
9885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9887 # Symbols that should not be listed in the preloaded symbols.
9888 exclude_expsyms=$lt_exclude_expsyms
9890 # Symbols that must always be exported.
9891 include_expsyms=$lt_include_expsyms
9893 # ### END LIBTOOL CONFIG
9895 __EOF__
9898 case $host_os in
9899 aix3*)
9900 cat <<\EOF >> "$cfgfile"
9902 # AIX sometimes has problems with the GCC collect2 program. For some
9903 # reason, if we set the COLLECT_NAMES environment variable, the problems
9904 # vanish in a puff of smoke.
9905 if test "X${COLLECT_NAMES+set}" != Xset; then
9906 COLLECT_NAMES=
9907 export COLLECT_NAMES
9911 esac
9913 # We use sed instead of cat because bash on DJGPP gets confused if
9914 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9915 # text mode, it properly converts lines to CR/LF. This bash problem
9916 # is reportedly fixed, but why not run on old versions too?
9917 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9919 mv -f "$cfgfile" "$ofile" || \
9920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9921 chmod +x "$ofile"
9923 else
9924 # If there is no Makefile yet, we rely on a make rule to execute
9925 # `config.status --recheck' to rerun these tests and create the
9926 # libtool script then.
9927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9928 if test -f "$ltmain_in"; then
9929 test -f Makefile && make "$ltmain"
9934 ac_ext=c
9935 ac_cpp='$CPP $CPPFLAGS'
9936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9940 CC="$lt_save_CC"
9943 # Check whether --with-tags was given.
9944 if test "${with_tags+set}" = set; then
9945 withval=$with_tags; tagnames="$withval"
9949 if test -f "$ltmain" && test -n "$tagnames"; then
9950 if test ! -f "${ofile}"; then
9951 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9952 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9955 if test -z "$LTCC"; then
9956 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9957 if test -z "$LTCC"; then
9958 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9959 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9960 else
9961 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9962 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9965 if test -z "$LTCFLAGS"; then
9966 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9969 # Extract list of available tagged configurations in $ofile.
9970 # Note that this assumes the entire list is on one line.
9971 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9974 for tagname in $tagnames; do
9975 IFS="$lt_save_ifs"
9976 # Check whether tagname contains only valid characters
9977 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9978 "") ;;
9979 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9980 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9981 { (exit 1); exit 1; }; }
9983 esac
9985 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9986 then
9987 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9988 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9989 { (exit 1); exit 1; }; }
9992 # Update the list of available tags.
9993 if test -n "$tagname"; then
9994 echo appending configuration tag \"$tagname\" to $ofile
9996 case $tagname in
9997 CXX)
9998 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9999 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10000 (test "X$CXX" != "Xg++"))) ; then
10001 ac_ext=cpp
10002 ac_cpp='$CXXCPP $CPPFLAGS'
10003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10010 archive_cmds_need_lc_CXX=no
10011 allow_undefined_flag_CXX=
10012 always_export_symbols_CXX=no
10013 archive_expsym_cmds_CXX=
10014 export_dynamic_flag_spec_CXX=
10015 hardcode_direct_CXX=no
10016 hardcode_libdir_flag_spec_CXX=
10017 hardcode_libdir_flag_spec_ld_CXX=
10018 hardcode_libdir_separator_CXX=
10019 hardcode_minus_L_CXX=no
10020 hardcode_shlibpath_var_CXX=unsupported
10021 hardcode_automatic_CXX=no
10022 module_cmds_CXX=
10023 module_expsym_cmds_CXX=
10024 link_all_deplibs_CXX=unknown
10025 old_archive_cmds_CXX=$old_archive_cmds
10026 no_undefined_flag_CXX=
10027 whole_archive_flag_spec_CXX=
10028 enable_shared_with_static_runtimes_CXX=no
10030 # Dependencies to place before and after the object being linked:
10031 predep_objects_CXX=
10032 postdep_objects_CXX=
10033 predeps_CXX=
10034 postdeps_CXX=
10035 compiler_lib_search_path_CXX=
10037 # Source file extension for C++ test sources.
10038 ac_ext=cpp
10040 # Object file extension for compiled C++ test sources.
10041 objext=o
10042 objext_CXX=$objext
10044 # Code to be used in simple compile tests
10045 lt_simple_compile_test_code="int some_variable = 0;"
10047 # Code to be used in simple link tests
10048 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10050 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10052 # If no C compiler was specified, use CC.
10053 LTCC=${LTCC-"$CC"}
10055 # If no C compiler flags were specified, use CFLAGS.
10056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10058 # Allow CC to be a program name with arguments.
10059 compiler=$CC
10062 # save warnings/boilerplate of simple test code
10063 ac_outfile=conftest.$ac_objext
10064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10066 _lt_compiler_boilerplate=`cat conftest.err`
10067 $rm conftest*
10069 ac_outfile=conftest.$ac_objext
10070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10072 _lt_linker_boilerplate=`cat conftest.err`
10073 $rm conftest*
10076 # Allow CC to be a program name with arguments.
10077 lt_save_CC=$CC
10078 lt_save_LD=$LD
10079 lt_save_GCC=$GCC
10080 GCC=$GXX
10081 lt_save_with_gnu_ld=$with_gnu_ld
10082 lt_save_path_LD=$lt_cv_path_LD
10083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10085 else
10086 $as_unset lt_cv_prog_gnu_ld
10088 if test -n "${lt_cv_path_LDCXX+set}"; then
10089 lt_cv_path_LD=$lt_cv_path_LDCXX
10090 else
10091 $as_unset lt_cv_path_LD
10093 test -z "${LDCXX+set}" || LD=$LDCXX
10094 CC=${CXX-"c++"}
10095 compiler=$CC
10096 compiler_CXX=$CC
10097 for cc_temp in $compiler""; do
10098 case $cc_temp in
10099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10101 \-*) ;;
10102 *) break;;
10103 esac
10104 done
10105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10108 # We don't want -fno-exception wen compiling C++ code, so set the
10109 # no_builtin_flag separately
10110 if test "$GXX" = yes; then
10111 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10112 else
10113 lt_prog_compiler_no_builtin_flag_CXX=
10116 if test "$GXX" = yes; then
10117 # Set up default GNU C++ configuration
10120 # Check whether --with-gnu-ld was given.
10121 if test "${with_gnu_ld+set}" = set; then
10122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10123 else
10124 with_gnu_ld=no
10127 ac_prog=ld
10128 if test "$GCC" = yes; then
10129 # Check if gcc -print-prog-name=ld gives a path.
10130 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10132 case $host in
10133 *-*-mingw*)
10134 # gcc leaves a trailing carriage return which upsets mingw
10135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10138 esac
10139 case $ac_prog in
10140 # Accept absolute paths.
10141 [\\/]* | ?:[\\/]*)
10142 re_direlt='/[^/][^/]*/\.\./'
10143 # Canonicalize the pathname of ld
10144 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10146 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10147 done
10148 test -z "$LD" && LD="$ac_prog"
10151 # If it fails, then pretend we aren't using GCC.
10152 ac_prog=ld
10155 # If it is relative, then search for the first ld in PATH.
10156 with_gnu_ld=unknown
10158 esac
10159 elif test "$with_gnu_ld" = yes; then
10160 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10162 else
10163 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10166 if test "${lt_cv_path_LD+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 if test -z "$LD"; then
10170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10171 for ac_dir in $PATH; do
10172 IFS="$lt_save_ifs"
10173 test -z "$ac_dir" && ac_dir=.
10174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10175 lt_cv_path_LD="$ac_dir/$ac_prog"
10176 # Check to see if the program is GNU ld. I'd rather use --version,
10177 # but apparently some variants of GNU ld only accept -v.
10178 # Break only if it was the GNU/non-GNU ld that we prefer.
10179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10180 *GNU* | *'with BFD'*)
10181 test "$with_gnu_ld" != no && break
10184 test "$with_gnu_ld" != yes && break
10186 esac
10188 done
10189 IFS="$lt_save_ifs"
10190 else
10191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10195 LD="$lt_cv_path_LD"
10196 if test -n "$LD"; then
10197 { echo "$as_me:$LINENO: result: $LD" >&5
10198 echo "${ECHO_T}$LD" >&6; }
10199 else
10200 { echo "$as_me:$LINENO: result: no" >&5
10201 echo "${ECHO_T}no" >&6; }
10203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10205 { (exit 1); exit 1; }; }
10206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10212 case `$LD -v 2>&1 </dev/null` in
10213 *GNU* | *'with BFD'*)
10214 lt_cv_prog_gnu_ld=yes
10217 lt_cv_prog_gnu_ld=no
10219 esac
10221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10223 with_gnu_ld=$lt_cv_prog_gnu_ld
10227 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10228 # archiving commands below assume that GNU ld is being used.
10229 if test "$with_gnu_ld" = yes; then
10230 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231 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'
10233 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10236 # If archive_cmds runs LD, not CC, wlarc should be empty
10237 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10238 # investigate it a little bit more. (MM)
10239 wlarc='${wl}'
10241 # ancient GNU ld didn't support --whole-archive et. al.
10242 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10243 grep 'no-whole-archive' > /dev/null; then
10244 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10245 else
10246 whole_archive_flag_spec_CXX=
10248 else
10249 with_gnu_ld=no
10250 wlarc=
10252 # A generic and very simple default shared library creation
10253 # command for GNU C++ for the case where it uses the native
10254 # linker, instead of GNU ld. If possible, this setting should
10255 # overridden to take advantage of the native linker features on
10256 # the platform it is being used on.
10257 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10260 # Commands to make compiler produce verbose output that lists
10261 # what "hidden" libraries, object files and flags are used when
10262 # linking a shared library.
10263 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10265 else
10266 GXX=no
10267 with_gnu_ld=no
10268 wlarc=
10271 # PORTME: fill in a description of your system's C++ link characteristics
10272 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10273 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10274 ld_shlibs_CXX=yes
10275 case $host_os in
10276 aix3*)
10277 # FIXME: insert proper C++ library support
10278 ld_shlibs_CXX=no
10280 aix4* | aix5*)
10281 if test "$host_cpu" = ia64; then
10282 # On IA64, the linker does run time linking by default, so we don't
10283 # have to do anything special.
10284 aix_use_runtimelinking=no
10285 exp_sym_flag='-Bexport'
10286 no_entry_flag=""
10287 else
10288 aix_use_runtimelinking=no
10290 # Test if we are trying to use run time linking or normal
10291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10292 # need to do runtime linking.
10293 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10294 for ld_flag in $LDFLAGS; do
10295 case $ld_flag in
10296 *-brtl*)
10297 aix_use_runtimelinking=yes
10298 break
10300 esac
10301 done
10303 esac
10305 exp_sym_flag='-bexport'
10306 no_entry_flag='-bnoentry'
10309 # When large executables or shared objects are built, AIX ld can
10310 # have problems creating the table of contents. If linking a library
10311 # or program results in "error TOC overflow" add -mminimal-toc to
10312 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10313 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10315 archive_cmds_CXX=''
10316 hardcode_direct_CXX=yes
10317 hardcode_libdir_separator_CXX=':'
10318 link_all_deplibs_CXX=yes
10320 if test "$GXX" = yes; then
10321 case $host_os in aix4.[012]|aix4.[012].*)
10322 # We only want to do this on AIX 4.2 and lower, the check
10323 # below for broken collect2 doesn't work under 4.3+
10324 collect2name=`${CC} -print-prog-name=collect2`
10325 if test -f "$collect2name" && \
10326 strings "$collect2name" | grep resolve_lib_name >/dev/null
10327 then
10328 # We have reworked collect2
10330 else
10331 # We have old collect2
10332 hardcode_direct_CXX=unsupported
10333 # It fails to find uninstalled libraries when the uninstalled
10334 # path is not listed in the libpath. Setting hardcode_minus_L
10335 # to unsupported forces relinking
10336 hardcode_minus_L_CXX=yes
10337 hardcode_libdir_flag_spec_CXX='-L$libdir'
10338 hardcode_libdir_separator_CXX=
10341 esac
10342 shared_flag='-shared'
10343 if test "$aix_use_runtimelinking" = yes; then
10344 shared_flag="$shared_flag "'${wl}-G'
10346 else
10347 # not using gcc
10348 if test "$host_cpu" = ia64; then
10349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10350 # chokes on -Wl,-G. The following line is correct:
10351 shared_flag='-G'
10352 else
10353 if test "$aix_use_runtimelinking" = yes; then
10354 shared_flag='${wl}-G'
10355 else
10356 shared_flag='${wl}-bM:SRE'
10361 # It seems that -bexpall does not export symbols beginning with
10362 # underscore (_), so it is better to generate a list of symbols to export.
10363 always_export_symbols_CXX=yes
10364 if test "$aix_use_runtimelinking" = yes; then
10365 # Warning - without using the other runtime loading flags (-brtl),
10366 # -berok will link without error, but may produce a broken library.
10367 allow_undefined_flag_CXX='-berok'
10368 # Determine the default libpath from the value encoded in an empty executable.
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10377 main ()
10381 return 0;
10383 _ACEOF
10384 rm -f conftest.$ac_objext conftest$ac_exeext
10385 if { (ac_try="$ac_link"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_link") 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_cxx_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest$ac_exeext &&
10401 $as_test_x conftest$ac_exeext; then
10403 lt_aix_libpath_sed='
10404 /Import File Strings/,/^$/ {
10405 /^0/ {
10406 s/^0 *\(.*\)$/\1/
10410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10411 # Check for a 64-bit object if we didn't find anything.
10412 if test -z "$aix_libpath"; then
10413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10423 conftest$ac_exeext conftest.$ac_ext
10424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10426 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10428 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"
10429 else
10430 if test "$host_cpu" = ia64; then
10431 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10432 allow_undefined_flag_CXX="-z nodefs"
10433 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"
10434 else
10435 # Determine the default libpath from the value encoded in an empty executable.
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h. */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10444 main ()
10448 return 0;
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_cxx_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest$ac_exeext &&
10468 $as_test_x conftest$ac_exeext; then
10470 lt_aix_libpath_sed='
10471 /Import File Strings/,/^$/ {
10472 /^0/ {
10473 s/^0 *\(.*\)$/\1/
10477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 # Check for a 64-bit object if we didn't find anything.
10479 if test -z "$aix_libpath"; then
10480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490 conftest$ac_exeext conftest.$ac_ext
10491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10493 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10494 # Warning - without using the other run time loading flags,
10495 # -berok will link without error, but may produce a broken library.
10496 no_undefined_flag_CXX=' ${wl}-bernotok'
10497 allow_undefined_flag_CXX=' ${wl}-berok'
10498 # Exported symbols can be pulled into shared objects from archives
10499 whole_archive_flag_spec_CXX='$convenience'
10500 archive_cmds_need_lc_CXX=yes
10501 # This is similar to how AIX traditionally builds its shared libraries.
10502 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'
10507 beos*)
10508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10509 allow_undefined_flag_CXX=unsupported
10510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10511 # support --undefined. This deserves some investigation. FIXME
10512 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10513 else
10514 ld_shlibs_CXX=no
10518 chorus*)
10519 case $cc_basename in
10521 # FIXME: insert proper C++ library support
10522 ld_shlibs_CXX=no
10524 esac
10527 cygwin* | mingw* | pw32*)
10528 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10529 # as there is no search path for DLLs.
10530 hardcode_libdir_flag_spec_CXX='-L$libdir'
10531 allow_undefined_flag_CXX=unsupported
10532 always_export_symbols_CXX=no
10533 enable_shared_with_static_runtimes_CXX=yes
10535 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10536 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'
10537 # If the export-symbols file already is a .def file (1st line
10538 # is EXPORTS), use it as is; otherwise, prepend...
10539 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10540 cp $export_symbols $output_objdir/$soname.def;
10541 else
10542 echo EXPORTS > $output_objdir/$soname.def;
10543 cat $export_symbols >> $output_objdir/$soname.def;
10545 $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'
10546 else
10547 ld_shlibs_CXX=no
10550 darwin* | rhapsody*)
10551 case $host_os in
10552 rhapsody* | darwin1.[012])
10553 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10555 *) # Darwin 1.3 on
10556 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10557 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10558 else
10559 case ${MACOSX_DEPLOYMENT_TARGET} in
10560 10.[012])
10561 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10563 10.*)
10564 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10566 esac
10569 esac
10570 archive_cmds_need_lc_CXX=no
10571 hardcode_direct_CXX=no
10572 hardcode_automatic_CXX=yes
10573 hardcode_shlibpath_var_CXX=unsupported
10574 whole_archive_flag_spec_CXX=''
10575 link_all_deplibs_CXX=yes
10577 if test "$GXX" = yes ; then
10578 lt_int_apple_cc_single_mod=no
10579 output_verbose_link_cmd='echo'
10580 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10581 lt_int_apple_cc_single_mod=yes
10583 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10584 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10585 else
10586 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'
10588 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10590 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10591 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10592 else
10593 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10595 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}'
10596 else
10597 case $cc_basename in
10598 xlc*)
10599 output_verbose_link_cmd='echo'
10600 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'
10601 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10603 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}'
10604 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}'
10607 ld_shlibs_CXX=no
10609 esac
10613 dgux*)
10614 case $cc_basename in
10615 ec++*)
10616 # FIXME: insert proper C++ library support
10617 ld_shlibs_CXX=no
10619 ghcx*)
10620 # Green Hills C++ Compiler
10621 # FIXME: insert proper C++ library support
10622 ld_shlibs_CXX=no
10625 # FIXME: insert proper C++ library support
10626 ld_shlibs_CXX=no
10628 esac
10630 freebsd[12]*)
10631 # C++ shared libraries reported to be fairly broken before switch to ELF
10632 ld_shlibs_CXX=no
10634 freebsd-elf*)
10635 archive_cmds_need_lc_CXX=no
10637 freebsd* | dragonfly*)
10638 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10639 # conventions
10640 ld_shlibs_CXX=yes
10642 gnu*)
10644 hpux9*)
10645 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10646 hardcode_libdir_separator_CXX=:
10647 export_dynamic_flag_spec_CXX='${wl}-E'
10648 hardcode_direct_CXX=yes
10649 hardcode_minus_L_CXX=yes # Not in the search PATH,
10650 # but as the default
10651 # location of the library.
10653 case $cc_basename in
10654 CC*)
10655 # FIXME: insert proper C++ library support
10656 ld_shlibs_CXX=no
10658 aCC*)
10659 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'
10660 # Commands to make compiler produce verbose output that lists
10661 # what "hidden" libraries, object files and flags are used when
10662 # linking a shared library.
10664 # There doesn't appear to be a way to prevent this compiler from
10665 # explicitly linking system object files so we need to strip them
10666 # from the output so that they don't get included in the library
10667 # dependencies.
10668 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'
10671 if test "$GXX" = yes; then
10672 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'
10673 else
10674 # FIXME: insert proper C++ library support
10675 ld_shlibs_CXX=no
10678 esac
10680 hpux10*|hpux11*)
10681 if test $with_gnu_ld = no; then
10682 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10683 hardcode_libdir_separator_CXX=:
10685 case $host_cpu in
10686 hppa*64*|ia64*) ;;
10688 export_dynamic_flag_spec_CXX='${wl}-E'
10690 esac
10692 case $host_cpu in
10693 hppa*64*|ia64*)
10694 hardcode_direct_CXX=no
10695 hardcode_shlibpath_var_CXX=no
10698 hardcode_direct_CXX=yes
10699 hardcode_minus_L_CXX=yes # Not in the search PATH,
10700 # but as the default
10701 # location of the library.
10703 esac
10705 case $cc_basename in
10706 CC*)
10707 # FIXME: insert proper C++ library support
10708 ld_shlibs_CXX=no
10710 aCC*)
10711 case $host_cpu in
10712 hppa*64*)
10713 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10715 ia64*)
10716 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10719 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10721 esac
10722 # Commands to make compiler produce verbose output that lists
10723 # what "hidden" libraries, object files and flags are used when
10724 # linking a shared library.
10726 # There doesn't appear to be a way to prevent this compiler from
10727 # explicitly linking system object files so we need to strip them
10728 # from the output so that they don't get included in the library
10729 # dependencies.
10730 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'
10733 if test "$GXX" = yes; then
10734 if test $with_gnu_ld = no; then
10735 case $host_cpu in
10736 hppa*64*)
10737 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10739 ia64*)
10740 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10743 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'
10745 esac
10747 else
10748 # FIXME: insert proper C++ library support
10749 ld_shlibs_CXX=no
10752 esac
10754 interix[3-9]*)
10755 hardcode_direct_CXX=no
10756 hardcode_shlibpath_var_CXX=no
10757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10758 export_dynamic_flag_spec_CXX='${wl}-E'
10759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10760 # Instead, shared libraries are loaded at an image base (0x10000000 by
10761 # default) and relocated if they conflict, which is a slow very memory
10762 # consuming and fragmenting process. To avoid this, we pick a random,
10763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10764 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10765 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'
10766 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'
10768 irix5* | irix6*)
10769 case $cc_basename in
10770 CC*)
10771 # SGI C++
10772 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'
10774 # Archives containing C++ object files must be created using
10775 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10776 # necessary to make sure instantiated templates are included
10777 # in the archive.
10778 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10781 if test "$GXX" = yes; then
10782 if test "$with_gnu_ld" = no; then
10783 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'
10784 else
10785 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'
10788 link_all_deplibs_CXX=yes
10790 esac
10791 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10792 hardcode_libdir_separator_CXX=:
10794 linux* | k*bsd*-gnu)
10795 case $cc_basename in
10796 KCC*)
10797 # Kuck and Associates, Inc. (KAI) C++ Compiler
10799 # KCC will only create a shared library if the output file
10800 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10801 # to its proper name (with version) after linking.
10802 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'
10803 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'
10804 # Commands to make compiler produce verbose output that lists
10805 # what "hidden" libraries, object files and flags are used when
10806 # linking a shared library.
10808 # There doesn't appear to be a way to prevent this compiler from
10809 # explicitly linking system object files so we need to strip them
10810 # from the output so that they don't get included in the library
10811 # dependencies.
10812 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'
10814 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10817 # Archives containing C++ object files must be created using
10818 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10819 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10821 icpc*)
10822 # Intel C++
10823 with_gnu_ld=yes
10824 # version 8.0 and above of icpc choke on multiply defined symbols
10825 # if we add $predep_objects and $postdep_objects, however 7.1 and
10826 # earlier do not add the objects themselves.
10827 case `$CC -V 2>&1` in
10828 *"Version 7."*)
10829 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10830 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'
10832 *) # Version 8.0 or newer
10833 tmp_idyn=
10834 case $host_cpu in
10835 ia64*) tmp_idyn=' -i_dynamic';;
10836 esac
10837 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838 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'
10840 esac
10841 archive_cmds_need_lc_CXX=no
10842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10844 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10846 pgCC*)
10847 # Portland Group C++ compiler
10848 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10849 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'
10851 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10852 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10853 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'
10855 cxx*)
10856 # Compaq C++
10857 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10858 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'
10860 runpath_var=LD_RUN_PATH
10861 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10862 hardcode_libdir_separator_CXX=:
10864 # Commands to make compiler produce verbose output that lists
10865 # what "hidden" libraries, object files and flags are used when
10866 # linking a shared library.
10868 # There doesn't appear to be a way to prevent this compiler from
10869 # explicitly linking system object files so we need to strip them
10870 # from the output so that they don't get included in the library
10871 # dependencies.
10872 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'
10875 case `$CC -V 2>&1 | sed 5q` in
10876 *Sun\ C*)
10877 # Sun C++ 5.9
10878 no_undefined_flag_CXX=' -zdefs'
10879 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10880 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'
10881 hardcode_libdir_flag_spec_CXX='-R$libdir'
10882 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'
10884 # Not sure whether something based on
10885 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10886 # would be better.
10887 output_verbose_link_cmd='echo'
10889 # Archives containing C++ object files must be created using
10890 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10891 # necessary to make sure instantiated templates are included
10892 # in the archive.
10893 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10895 esac
10897 esac
10899 lynxos*)
10900 # FIXME: insert proper C++ library support
10901 ld_shlibs_CXX=no
10903 m88k*)
10904 # FIXME: insert proper C++ library support
10905 ld_shlibs_CXX=no
10907 mvs*)
10908 case $cc_basename in
10909 cxx*)
10910 # FIXME: insert proper C++ library support
10911 ld_shlibs_CXX=no
10914 # FIXME: insert proper C++ library support
10915 ld_shlibs_CXX=no
10917 esac
10919 netbsd*)
10920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10921 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10922 wlarc=
10923 hardcode_libdir_flag_spec_CXX='-R$libdir'
10924 hardcode_direct_CXX=yes
10925 hardcode_shlibpath_var_CXX=no
10927 # Workaround some broken pre-1.5 toolchains
10928 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10930 openbsd2*)
10931 # C++ shared libraries are fairly broken
10932 ld_shlibs_CXX=no
10934 openbsd*)
10935 if test -f /usr/libexec/ld.so; then
10936 hardcode_direct_CXX=yes
10937 hardcode_shlibpath_var_CXX=no
10938 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10941 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10942 export_dynamic_flag_spec_CXX='${wl}-E'
10943 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10945 output_verbose_link_cmd='echo'
10946 else
10947 ld_shlibs_CXX=no
10950 osf3*)
10951 case $cc_basename in
10952 KCC*)
10953 # Kuck and Associates, Inc. (KAI) C++ Compiler
10955 # KCC will only create a shared library if the output file
10956 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10957 # to its proper name (with version) after linking.
10958 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'
10960 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10961 hardcode_libdir_separator_CXX=:
10963 # Archives containing C++ object files must be created using
10964 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10965 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10968 RCC*)
10969 # Rational C++ 2.4.1
10970 # FIXME: insert proper C++ library support
10971 ld_shlibs_CXX=no
10973 cxx*)
10974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10975 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'
10977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10978 hardcode_libdir_separator_CXX=:
10980 # Commands to make compiler produce verbose output that lists
10981 # what "hidden" libraries, object files and flags are used when
10982 # linking a shared library.
10984 # There doesn't appear to be a way to prevent this compiler from
10985 # explicitly linking system object files so we need to strip them
10986 # from the output so that they don't get included in the library
10987 # dependencies.
10988 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'
10991 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10992 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10993 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'
10995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10996 hardcode_libdir_separator_CXX=:
10998 # Commands to make compiler produce verbose output that lists
10999 # what "hidden" libraries, object files and flags are used when
11000 # linking a shared library.
11001 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11003 else
11004 # FIXME: insert proper C++ library support
11005 ld_shlibs_CXX=no
11008 esac
11010 osf4* | osf5*)
11011 case $cc_basename in
11012 KCC*)
11013 # Kuck and Associates, Inc. (KAI) C++ Compiler
11015 # KCC will only create a shared library if the output file
11016 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11017 # to its proper name (with version) after linking.
11018 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'
11020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11021 hardcode_libdir_separator_CXX=:
11023 # Archives containing C++ object files must be created using
11024 # the KAI C++ compiler.
11025 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11027 RCC*)
11028 # Rational C++ 2.4.1
11029 # FIXME: insert proper C++ library support
11030 ld_shlibs_CXX=no
11032 cxx*)
11033 allow_undefined_flag_CXX=' -expect_unresolved \*'
11034 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'
11035 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11036 echo "-hidden">> $lib.exp~
11037 $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~
11038 $rm $lib.exp'
11040 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11041 hardcode_libdir_separator_CXX=:
11043 # Commands to make compiler produce verbose output that lists
11044 # what "hidden" libraries, object files and flags are used when
11045 # linking a shared library.
11047 # There doesn't appear to be a way to prevent this compiler from
11048 # explicitly linking system object files so we need to strip them
11049 # from the output so that they don't get included in the library
11050 # dependencies.
11051 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'
11054 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11055 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11056 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'
11058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11059 hardcode_libdir_separator_CXX=:
11061 # Commands to make compiler produce verbose output that lists
11062 # what "hidden" libraries, object files and flags are used when
11063 # linking a shared library.
11064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11066 else
11067 # FIXME: insert proper C++ library support
11068 ld_shlibs_CXX=no
11071 esac
11073 psos*)
11074 # FIXME: insert proper C++ library support
11075 ld_shlibs_CXX=no
11077 sunos4*)
11078 case $cc_basename in
11079 CC*)
11080 # Sun C++ 4.x
11081 # FIXME: insert proper C++ library support
11082 ld_shlibs_CXX=no
11084 lcc*)
11085 # Lucid
11086 # FIXME: insert proper C++ library support
11087 ld_shlibs_CXX=no
11090 # FIXME: insert proper C++ library support
11091 ld_shlibs_CXX=no
11093 esac
11095 solaris*)
11096 case $cc_basename in
11097 CC*)
11098 # Sun C++ 4.2, 5.x and Centerline C++
11099 archive_cmds_need_lc_CXX=yes
11100 no_undefined_flag_CXX=' -zdefs'
11101 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11102 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11103 $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'
11105 hardcode_libdir_flag_spec_CXX='-R$libdir'
11106 hardcode_shlibpath_var_CXX=no
11107 case $host_os in
11108 solaris2.[0-5] | solaris2.[0-5].*) ;;
11110 # The compiler driver will combine and reorder linker options,
11111 # but understands `-z linker_flag'.
11112 # Supported since Solaris 2.6 (maybe 2.5.1?)
11113 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11115 esac
11116 link_all_deplibs_CXX=yes
11118 output_verbose_link_cmd='echo'
11120 # Archives containing C++ object files must be created using
11121 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11122 # necessary to make sure instantiated templates are included
11123 # in the archive.
11124 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11126 gcx*)
11127 # Green Hills C++ Compiler
11128 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11130 # The C++ compiler must be used to create the archive.
11131 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11134 # GNU C++ compiler with Solaris linker
11135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11136 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11137 if $CC --version | grep -v '^2\.7' > /dev/null; then
11138 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11139 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11140 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11142 # Commands to make compiler produce verbose output that lists
11143 # what "hidden" libraries, object files and flags are used when
11144 # linking a shared library.
11145 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11146 else
11147 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11148 # platform.
11149 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11150 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11151 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11153 # Commands to make compiler produce verbose output that lists
11154 # what "hidden" libraries, object files and flags are used when
11155 # linking a shared library.
11156 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11159 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11160 case $host_os in
11161 solaris2.[0-5] | solaris2.[0-5].*) ;;
11163 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11165 esac
11168 esac
11170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11171 no_undefined_flag_CXX='${wl}-z,text'
11172 archive_cmds_need_lc_CXX=no
11173 hardcode_shlibpath_var_CXX=no
11174 runpath_var='LD_RUN_PATH'
11176 case $cc_basename in
11177 CC*)
11178 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11179 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11182 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11183 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185 esac
11187 sysv5* | sco3.2v5* | sco5v6*)
11188 # Note: We can NOT use -z defs as we might desire, because we do not
11189 # link with -lc, and that would cause any symbols used from libc to
11190 # always be unresolved, which means just about no library would
11191 # ever link correctly. If we're not using GNU ld we use -z text
11192 # though, which does catch some bad symbols but isn't as heavy-handed
11193 # as -z defs.
11194 # For security reasons, it is highly recommended that you always
11195 # use absolute paths for naming shared libraries, and exclude the
11196 # DT_RUNPATH tag from executables and libraries. But doing so
11197 # requires that you compile everything twice, which is a pain.
11198 # So that behaviour is only enabled if SCOABSPATH is set to a
11199 # non-empty value in the environment. Most likely only useful for
11200 # creating official distributions of packages.
11201 # This is a hack until libtool officially supports absolute path
11202 # names for shared libraries.
11203 no_undefined_flag_CXX='${wl}-z,text'
11204 allow_undefined_flag_CXX='${wl}-z,nodefs'
11205 archive_cmds_need_lc_CXX=no
11206 hardcode_shlibpath_var_CXX=no
11207 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11208 hardcode_libdir_separator_CXX=':'
11209 link_all_deplibs_CXX=yes
11210 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11211 runpath_var='LD_RUN_PATH'
11213 case $cc_basename in
11214 CC*)
11215 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11216 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11219 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11220 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11222 esac
11224 tandem*)
11225 case $cc_basename in
11226 NCC*)
11227 # NonStop-UX NCC 3.20
11228 # FIXME: insert proper C++ library support
11229 ld_shlibs_CXX=no
11232 # FIXME: insert proper C++ library support
11233 ld_shlibs_CXX=no
11235 esac
11237 vxworks*)
11238 # FIXME: insert proper C++ library support
11239 ld_shlibs_CXX=no
11242 # FIXME: insert proper C++ library support
11243 ld_shlibs_CXX=no
11245 esac
11246 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11247 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11248 test "$ld_shlibs_CXX" = no && can_build_shared=no
11250 GCC_CXX="$GXX"
11251 LD_CXX="$LD"
11254 cat > conftest.$ac_ext <<EOF
11255 class Foo
11257 public:
11258 Foo (void) { a = 0; }
11259 private:
11260 int a;
11264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11265 (eval $ac_compile) 2>&5
11266 ac_status=$?
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; then
11269 # Parse the compiler output and extract the necessary
11270 # objects, libraries and library flags.
11272 # Sentinel used to keep track of whether or not we are before
11273 # the conftest object file.
11274 pre_test_object_deps_done=no
11276 # The `*' in the case matches for architectures that use `case' in
11277 # $output_verbose_cmd can trigger glob expansion during the loop
11278 # eval without this substitution.
11279 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11281 for p in `eval $output_verbose_link_cmd`; do
11282 case $p in
11284 -L* | -R* | -l*)
11285 # Some compilers place space between "-{L,R}" and the path.
11286 # Remove the space.
11287 if test $p = "-L" \
11288 || test $p = "-R"; then
11289 prev=$p
11290 continue
11291 else
11292 prev=
11295 if test "$pre_test_object_deps_done" = no; then
11296 case $p in
11297 -L* | -R*)
11298 # Internal compiler library paths should come after those
11299 # provided the user. The postdeps already come after the
11300 # user supplied libs so there is no need to process them.
11301 if test -z "$compiler_lib_search_path_CXX"; then
11302 compiler_lib_search_path_CXX="${prev}${p}"
11303 else
11304 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11307 # The "-l" case would never come before the object being
11308 # linked, so don't bother handling this case.
11309 esac
11310 else
11311 if test -z "$postdeps_CXX"; then
11312 postdeps_CXX="${prev}${p}"
11313 else
11314 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11319 *.$objext)
11320 # This assumes that the test object file only shows up
11321 # once in the compiler output.
11322 if test "$p" = "conftest.$objext"; then
11323 pre_test_object_deps_done=yes
11324 continue
11327 if test "$pre_test_object_deps_done" = no; then
11328 if test -z "$predep_objects_CXX"; then
11329 predep_objects_CXX="$p"
11330 else
11331 predep_objects_CXX="$predep_objects_CXX $p"
11333 else
11334 if test -z "$postdep_objects_CXX"; then
11335 postdep_objects_CXX="$p"
11336 else
11337 postdep_objects_CXX="$postdep_objects_CXX $p"
11342 *) ;; # Ignore the rest.
11344 esac
11345 done
11347 # Clean up.
11348 rm -f a.out a.exe
11349 else
11350 echo "libtool.m4: error: problem compiling CXX test program"
11353 $rm -f confest.$objext
11355 # PORTME: override above test on systems where it is broken
11356 case $host_os in
11357 interix[3-9]*)
11358 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11359 # hack all around it, let's just trust "g++" to DTRT.
11360 predep_objects_CXX=
11361 postdep_objects_CXX=
11362 postdeps_CXX=
11365 linux*)
11366 case `$CC -V 2>&1 | sed 5q` in
11367 *Sun\ C*)
11368 # Sun C++ 5.9
11370 # The more standards-conforming stlport4 library is
11371 # incompatible with the Cstd library. Avoid specifying
11372 # it if it's in CXXFLAGS. Ignore libCrun as
11373 # -library=stlport4 depends on it.
11374 case " $CXX $CXXFLAGS " in
11375 *" -library=stlport4 "*)
11376 solaris_use_stlport4=yes
11378 esac
11379 if test "$solaris_use_stlport4" != yes; then
11380 postdeps_CXX='-library=Cstd -library=Crun'
11383 esac
11386 solaris*)
11387 case $cc_basename in
11388 CC*)
11389 # The more standards-conforming stlport4 library is
11390 # incompatible with the Cstd library. Avoid specifying
11391 # it if it's in CXXFLAGS. Ignore libCrun as
11392 # -library=stlport4 depends on it.
11393 case " $CXX $CXXFLAGS " in
11394 *" -library=stlport4 "*)
11395 solaris_use_stlport4=yes
11397 esac
11399 # Adding this requires a known-good setup of shared libraries for
11400 # Sun compiler versions before 5.6, else PIC objects from an old
11401 # archive will be linked into the output, leading to subtle bugs.
11402 if test "$solaris_use_stlport4" != yes; then
11403 postdeps_CXX='-library=Cstd -library=Crun'
11406 esac
11408 esac
11411 case " $postdeps_CXX " in
11412 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11413 esac
11415 lt_prog_compiler_wl_CXX=
11416 lt_prog_compiler_pic_CXX=
11417 lt_prog_compiler_static_CXX=
11419 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11420 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11422 # C++ specific cases for pic, static, wl, etc.
11423 if test "$GXX" = yes; then
11424 lt_prog_compiler_wl_CXX='-Wl,'
11425 lt_prog_compiler_static_CXX='-static'
11427 case $host_os in
11428 aix*)
11429 # All AIX code is PIC.
11430 if test "$host_cpu" = ia64; then
11431 # AIX 5 now supports IA64 processor
11432 lt_prog_compiler_static_CXX='-Bstatic'
11435 amigaos*)
11436 # FIXME: we need at least 68020 code to build shared libraries, but
11437 # adding the `-m68020' flag to GCC prevents building anything better,
11438 # like `-m68040'.
11439 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11441 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11442 # PIC is the default for these OSes.
11444 mingw* | cygwin* | os2* | pw32*)
11445 # This hack is so that the source file can tell whether it is being
11446 # built for inclusion in a dll (and should export symbols for example).
11447 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11448 # (--disable-auto-import) libraries
11449 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11451 darwin* | rhapsody*)
11452 # PIC is the default on this platform
11453 # Common symbols not allowed in MH_DYLIB files
11454 lt_prog_compiler_pic_CXX='-fno-common'
11456 *djgpp*)
11457 # DJGPP does not support shared libraries at all
11458 lt_prog_compiler_pic_CXX=
11460 interix[3-9]*)
11461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11462 # Instead, we relocate shared libraries at runtime.
11464 sysv4*MP*)
11465 if test -d /usr/nec; then
11466 lt_prog_compiler_pic_CXX=-Kconform_pic
11469 hpux*)
11470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11471 # not for PA HP-UX.
11472 case $host_cpu in
11473 hppa*64*|ia64*)
11476 lt_prog_compiler_pic_CXX='-fPIC'
11478 esac
11481 lt_prog_compiler_pic_CXX='-fPIC'
11483 esac
11484 else
11485 case $host_os in
11486 aix4* | aix5*)
11487 # All AIX code is PIC.
11488 if test "$host_cpu" = ia64; then
11489 # AIX 5 now supports IA64 processor
11490 lt_prog_compiler_static_CXX='-Bstatic'
11491 else
11492 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11495 chorus*)
11496 case $cc_basename in
11497 cxch68*)
11498 # Green Hills C++ Compiler
11499 # _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"
11501 esac
11503 darwin*)
11504 # PIC is the default on this platform
11505 # Common symbols not allowed in MH_DYLIB files
11506 case $cc_basename in
11507 xlc*)
11508 lt_prog_compiler_pic_CXX='-qnocommon'
11509 lt_prog_compiler_wl_CXX='-Wl,'
11511 esac
11513 dgux*)
11514 case $cc_basename in
11515 ec++*)
11516 lt_prog_compiler_pic_CXX='-KPIC'
11518 ghcx*)
11519 # Green Hills C++ Compiler
11520 lt_prog_compiler_pic_CXX='-pic'
11524 esac
11526 freebsd* | dragonfly*)
11527 # FreeBSD uses GNU C++
11529 hpux9* | hpux10* | hpux11*)
11530 case $cc_basename in
11531 CC*)
11532 lt_prog_compiler_wl_CXX='-Wl,'
11533 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11534 if test "$host_cpu" != ia64; then
11535 lt_prog_compiler_pic_CXX='+Z'
11538 aCC*)
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11541 case $host_cpu in
11542 hppa*64*|ia64*)
11543 # +Z the default
11546 lt_prog_compiler_pic_CXX='+Z'
11548 esac
11552 esac
11554 interix*)
11555 # This is c89, which is MS Visual C++ (no shared libs)
11556 # Anyone wants to do a port?
11558 irix5* | irix6* | nonstopux*)
11559 case $cc_basename in
11560 CC*)
11561 lt_prog_compiler_wl_CXX='-Wl,'
11562 lt_prog_compiler_static_CXX='-non_shared'
11563 # CC pic flag -KPIC is the default.
11567 esac
11569 linux* | k*bsd*-gnu)
11570 case $cc_basename in
11571 KCC*)
11572 # KAI C++ Compiler
11573 lt_prog_compiler_wl_CXX='--backend -Wl,'
11574 lt_prog_compiler_pic_CXX='-fPIC'
11576 icpc* | ecpc*)
11577 # Intel C++
11578 lt_prog_compiler_wl_CXX='-Wl,'
11579 lt_prog_compiler_pic_CXX='-KPIC'
11580 lt_prog_compiler_static_CXX='-static'
11582 pgCC*)
11583 # Portland Group C++ compiler.
11584 lt_prog_compiler_wl_CXX='-Wl,'
11585 lt_prog_compiler_pic_CXX='-fpic'
11586 lt_prog_compiler_static_CXX='-Bstatic'
11588 cxx*)
11589 # Compaq C++
11590 # Make sure the PIC flag is empty. It appears that all Alpha
11591 # Linux and Compaq Tru64 Unix objects are PIC.
11592 lt_prog_compiler_pic_CXX=
11593 lt_prog_compiler_static_CXX='-non_shared'
11596 case `$CC -V 2>&1 | sed 5q` in
11597 *Sun\ C*)
11598 # Sun C++ 5.9
11599 lt_prog_compiler_pic_CXX='-KPIC'
11600 lt_prog_compiler_static_CXX='-Bstatic'
11601 lt_prog_compiler_wl_CXX='-Qoption ld '
11603 esac
11605 esac
11607 lynxos*)
11609 m88k*)
11611 mvs*)
11612 case $cc_basename in
11613 cxx*)
11614 lt_prog_compiler_pic_CXX='-W c,exportall'
11618 esac
11620 netbsd*)
11622 osf3* | osf4* | osf5*)
11623 case $cc_basename in
11624 KCC*)
11625 lt_prog_compiler_wl_CXX='--backend -Wl,'
11627 RCC*)
11628 # Rational C++ 2.4.1
11629 lt_prog_compiler_pic_CXX='-pic'
11631 cxx*)
11632 # Digital/Compaq C++
11633 lt_prog_compiler_wl_CXX='-Wl,'
11634 # Make sure the PIC flag is empty. It appears that all Alpha
11635 # Linux and Compaq Tru64 Unix objects are PIC.
11636 lt_prog_compiler_pic_CXX=
11637 lt_prog_compiler_static_CXX='-non_shared'
11641 esac
11643 psos*)
11645 solaris*)
11646 case $cc_basename in
11647 CC*)
11648 # Sun C++ 4.2, 5.x and Centerline C++
11649 lt_prog_compiler_pic_CXX='-KPIC'
11650 lt_prog_compiler_static_CXX='-Bstatic'
11651 lt_prog_compiler_wl_CXX='-Qoption ld '
11653 gcx*)
11654 # Green Hills C++ Compiler
11655 lt_prog_compiler_pic_CXX='-PIC'
11659 esac
11661 sunos4*)
11662 case $cc_basename in
11663 CC*)
11664 # Sun C++ 4.x
11665 lt_prog_compiler_pic_CXX='-pic'
11666 lt_prog_compiler_static_CXX='-Bstatic'
11668 lcc*)
11669 # Lucid
11670 lt_prog_compiler_pic_CXX='-pic'
11674 esac
11676 tandem*)
11677 case $cc_basename in
11678 NCC*)
11679 # NonStop-UX NCC 3.20
11680 lt_prog_compiler_pic_CXX='-KPIC'
11684 esac
11686 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11687 case $cc_basename in
11688 CC*)
11689 lt_prog_compiler_wl_CXX='-Wl,'
11690 lt_prog_compiler_pic_CXX='-KPIC'
11691 lt_prog_compiler_static_CXX='-Bstatic'
11693 esac
11695 vxworks*)
11698 lt_prog_compiler_can_build_shared_CXX=no
11700 esac
11703 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11704 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11707 # Check to make sure the PIC flag actually works.
11709 if test -n "$lt_prog_compiler_pic_CXX"; then
11711 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11712 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11713 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716 lt_prog_compiler_pic_works_CXX=no
11717 ac_outfile=conftest.$ac_objext
11718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11719 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11720 # Insert the option either (1) after the last *FLAGS variable, or
11721 # (2) before a word containing "conftest.", or (3) at the end.
11722 # Note that $ac_compile itself does not contain backslashes and begins
11723 # with a dollar sign (not a hyphen), so the echo should work correctly.
11724 # The option is referenced via a variable to avoid confusing sed.
11725 lt_compile=`echo "$ac_compile" | $SED \
11726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11728 -e 's:$: $lt_compiler_flag:'`
11729 (eval echo "\"\$as_me:11729: $lt_compile\"" >&5)
11730 (eval "$lt_compile" 2>conftest.err)
11731 ac_status=$?
11732 cat conftest.err >&5
11733 echo "$as_me:11733: \$? = $ac_status" >&5
11734 if (exit $ac_status) && test -s "$ac_outfile"; then
11735 # The compiler can only warn and ignore the option if not recognized
11736 # So say no if there are warnings other than the usual output.
11737 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11740 lt_prog_compiler_pic_works_CXX=yes
11743 $rm conftest*
11746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11747 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11749 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11750 case $lt_prog_compiler_pic_CXX in
11751 "" | " "*) ;;
11752 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11753 esac
11754 else
11755 lt_prog_compiler_pic_CXX=
11756 lt_prog_compiler_can_build_shared_CXX=no
11760 case $host_os in
11761 # For platforms which do not support PIC, -DPIC is meaningless:
11762 *djgpp*)
11763 lt_prog_compiler_pic_CXX=
11766 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11768 esac
11771 # Check to make sure the static flag actually works.
11773 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11774 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11775 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11776 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 else
11779 lt_prog_compiler_static_works_CXX=no
11780 save_LDFLAGS="$LDFLAGS"
11781 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11784 # The linker can only warn and ignore the option if not recognized
11785 # So say no if there are warnings
11786 if test -s conftest.err; then
11787 # Append any errors to the config.log.
11788 cat conftest.err 1>&5
11789 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11791 if diff conftest.exp conftest.er2 >/dev/null; then
11792 lt_prog_compiler_static_works_CXX=yes
11794 else
11795 lt_prog_compiler_static_works_CXX=yes
11798 $rm conftest*
11799 LDFLAGS="$save_LDFLAGS"
11802 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11803 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11805 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11807 else
11808 lt_prog_compiler_static_CXX=
11812 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11813 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11814 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817 lt_cv_prog_compiler_c_o_CXX=no
11818 $rm -r conftest 2>/dev/null
11819 mkdir conftest
11820 cd conftest
11821 mkdir out
11822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11824 lt_compiler_flag="-o out/conftest2.$ac_objext"
11825 # Insert the option either (1) after the last *FLAGS variable, or
11826 # (2) before a word containing "conftest.", or (3) at the end.
11827 # Note that $ac_compile itself does not contain backslashes and begins
11828 # with a dollar sign (not a hyphen), so the echo should work correctly.
11829 lt_compile=`echo "$ac_compile" | $SED \
11830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11832 -e 's:$: $lt_compiler_flag:'`
11833 (eval echo "\"\$as_me:11833: $lt_compile\"" >&5)
11834 (eval "$lt_compile" 2>out/conftest.err)
11835 ac_status=$?
11836 cat out/conftest.err >&5
11837 echo "$as_me:11837: \$? = $ac_status" >&5
11838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11839 then
11840 # The compiler can only warn and ignore the option if not recognized
11841 # So say no if there are warnings
11842 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11845 lt_cv_prog_compiler_c_o_CXX=yes
11848 chmod u+w . 2>&5
11849 $rm conftest*
11850 # SGI C++ compiler will create directory out/ii_files/ for
11851 # template instantiation
11852 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11853 $rm out/* && rmdir out
11854 cd ..
11855 rmdir conftest
11856 $rm conftest*
11859 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11860 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11863 hard_links="nottested"
11864 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11865 # do not overwrite the value of need_locks provided by the user
11866 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11867 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11868 hard_links=yes
11869 $rm conftest*
11870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11871 touch conftest.a
11872 ln conftest.a conftest.b 2>&5 || hard_links=no
11873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11874 { echo "$as_me:$LINENO: result: $hard_links" >&5
11875 echo "${ECHO_T}$hard_links" >&6; }
11876 if test "$hard_links" = no; then
11877 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11878 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11879 need_locks=warn
11881 else
11882 need_locks=no
11885 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11886 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11888 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11889 case $host_os in
11890 aix4* | aix5*)
11891 # If we're using GNU nm, then we don't want the "-C" option.
11892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11893 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11894 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'
11895 else
11896 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'
11899 pw32*)
11900 export_symbols_cmds_CXX="$ltdll_cmds"
11902 cygwin* | mingw*)
11903 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'
11906 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11908 esac
11910 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11911 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11912 test "$ld_shlibs_CXX" = no && can_build_shared=no
11915 # Do we need to explicitly link libc?
11917 case "x$archive_cmds_need_lc_CXX" in
11918 x|xyes)
11919 # Assume -lc should be added
11920 archive_cmds_need_lc_CXX=yes
11922 if test "$enable_shared" = yes && test "$GCC" = yes; then
11923 case $archive_cmds_CXX in
11924 *'~'*)
11925 # FIXME: we may have to deal with multi-command sequences.
11927 '$CC '*)
11928 # Test whether the compiler implicitly links with -lc since on some
11929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11930 # to ld, don't add -lc before -lgcc.
11931 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11933 $rm conftest*
11934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11937 (eval $ac_compile) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } 2>conftest.err; then
11941 soname=conftest
11942 lib=conftest
11943 libobjs=conftest.$ac_objext
11944 deplibs=
11945 wl=$lt_prog_compiler_wl_CXX
11946 pic_flag=$lt_prog_compiler_pic_CXX
11947 compiler_flags=-v
11948 linker_flags=-v
11949 verstring=
11950 output_objdir=.
11951 libname=conftest
11952 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11953 allow_undefined_flag_CXX=
11954 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11955 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }
11959 then
11960 archive_cmds_need_lc_CXX=no
11961 else
11962 archive_cmds_need_lc_CXX=yes
11964 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11965 else
11966 cat conftest.err 1>&5
11968 $rm conftest*
11969 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11970 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11972 esac
11975 esac
11977 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11978 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11979 library_names_spec=
11980 libname_spec='lib$name'
11981 soname_spec=
11982 shrext_cmds=".so"
11983 postinstall_cmds=
11984 postuninstall_cmds=
11985 finish_cmds=
11986 finish_eval=
11987 shlibpath_var=
11988 shlibpath_overrides_runpath=unknown
11989 version_type=none
11990 dynamic_linker="$host_os ld.so"
11991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11993 need_lib_prefix=unknown
11994 hardcode_into_libs=no
11996 # when you set need_version to no, make sure it does not cause -set_version
11997 # flags to be left without arguments
11998 need_version=unknown
12000 case $host_os in
12001 aix3*)
12002 version_type=linux
12003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12004 shlibpath_var=LIBPATH
12006 # AIX 3 has no versioning support, so we append a major version to the name.
12007 soname_spec='${libname}${release}${shared_ext}$major'
12010 aix4* | aix5*)
12011 version_type=linux
12012 need_lib_prefix=no
12013 need_version=no
12014 hardcode_into_libs=yes
12015 if test "$host_cpu" = ia64; then
12016 # AIX 5 supports IA64
12017 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12018 shlibpath_var=LD_LIBRARY_PATH
12019 else
12020 # With GCC up to 2.95.x, collect2 would create an import file
12021 # for dependence libraries. The import file would start with
12022 # the line `#! .'. This would cause the generated library to
12023 # depend on `.', always an invalid library. This was fixed in
12024 # development snapshots of GCC prior to 3.0.
12025 case $host_os in
12026 aix4 | aix4.[01] | aix4.[01].*)
12027 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12028 echo ' yes '
12029 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12031 else
12032 can_build_shared=no
12035 esac
12036 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12037 # soname into executable. Probably we can add versioning support to
12038 # collect2, so additional links can be useful in future.
12039 if test "$aix_use_runtimelinking" = yes; then
12040 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12041 # instead of lib<name>.a to let people know that these are not
12042 # typical AIX shared libraries.
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12044 else
12045 # We preserve .a as extension for shared libraries through AIX4.2
12046 # and later when we are not doing run time linking.
12047 library_names_spec='${libname}${release}.a $libname.a'
12048 soname_spec='${libname}${release}${shared_ext}$major'
12050 shlibpath_var=LIBPATH
12054 amigaos*)
12055 library_names_spec='$libname.ixlibrary $libname.a'
12056 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12057 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'
12060 beos*)
12061 library_names_spec='${libname}${shared_ext}'
12062 dynamic_linker="$host_os ld.so"
12063 shlibpath_var=LIBRARY_PATH
12066 bsdi[45]*)
12067 version_type=linux
12068 need_version=no
12069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070 soname_spec='${libname}${release}${shared_ext}$major'
12071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12072 shlibpath_var=LD_LIBRARY_PATH
12073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12075 # the default ld.so.conf also contains /usr/contrib/lib and
12076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12077 # libtool to hard-code these into programs
12080 cygwin* | mingw* | pw32*)
12081 version_type=windows
12082 shrext_cmds=".dll"
12083 need_version=no
12084 need_lib_prefix=no
12086 case $GCC,$host_os in
12087 yes,cygwin* | yes,mingw* | yes,pw32*)
12088 library_names_spec='$libname.dll.a'
12089 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12090 postinstall_cmds='base_file=`basename \${file}`~
12091 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12092 dldir=$destdir/`dirname \$dlpath`~
12093 test -d \$dldir || mkdir -p \$dldir~
12094 $install_prog $dir/$dlname \$dldir/$dlname~
12095 chmod a+x \$dldir/$dlname'
12096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12097 dlpath=$dir/\$dldll~
12098 $rm \$dlpath'
12099 shlibpath_overrides_runpath=yes
12101 case $host_os in
12102 cygwin*)
12103 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12104 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12105 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12107 mingw*)
12108 # MinGW DLLs use traditional 'lib' prefix
12109 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12110 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12111 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12112 # It is most probably a Windows format PATH printed by
12113 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12114 # path with ; separators, and with drive letters. We can handle the
12115 # drive letters (cygwin fileutils understands them), so leave them,
12116 # especially as we might pass files found there to a mingw objdump,
12117 # which wouldn't understand a cygwinified path. Ahh.
12118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12119 else
12120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12123 pw32*)
12124 # pw32 DLLs use 'pw' prefix rather than 'lib'
12125 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12127 esac
12131 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12133 esac
12134 dynamic_linker='Win32 ld.exe'
12135 # FIXME: first we should search . and the directory the executable is in
12136 shlibpath_var=PATH
12139 darwin* | rhapsody*)
12140 dynamic_linker="$host_os dyld"
12141 version_type=darwin
12142 need_lib_prefix=no
12143 need_version=no
12144 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12145 soname_spec='${libname}${release}${major}$shared_ext'
12146 shlibpath_overrides_runpath=yes
12147 shlibpath_var=DYLD_LIBRARY_PATH
12148 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12153 dgux*)
12154 version_type=linux
12155 need_lib_prefix=no
12156 need_version=no
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 shlibpath_var=LD_LIBRARY_PATH
12162 freebsd1*)
12163 dynamic_linker=no
12166 freebsd* | dragonfly*)
12167 # DragonFly does not have aout. When/if they implement a new
12168 # versioning mechanism, adjust this.
12169 if test -x /usr/bin/objformat; then
12170 objformat=`/usr/bin/objformat`
12171 else
12172 case $host_os in
12173 freebsd[123]*) objformat=aout ;;
12174 *) objformat=elf ;;
12175 esac
12177 version_type=freebsd-$objformat
12178 case $version_type in
12179 freebsd-elf*)
12180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12181 need_version=no
12182 need_lib_prefix=no
12184 freebsd-*)
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12186 need_version=yes
12188 esac
12189 shlibpath_var=LD_LIBRARY_PATH
12190 case $host_os in
12191 freebsd2*)
12192 shlibpath_overrides_runpath=yes
12194 freebsd3.[01]* | freebsdelf3.[01]*)
12195 shlibpath_overrides_runpath=yes
12196 hardcode_into_libs=yes
12198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12200 shlibpath_overrides_runpath=no
12201 hardcode_into_libs=yes
12203 *) # from 4.6 on, and DragonFly
12204 shlibpath_overrides_runpath=yes
12205 hardcode_into_libs=yes
12207 esac
12210 gnu*)
12211 version_type=linux
12212 need_lib_prefix=no
12213 need_version=no
12214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12215 soname_spec='${libname}${release}${shared_ext}$major'
12216 shlibpath_var=LD_LIBRARY_PATH
12217 hardcode_into_libs=yes
12220 hpux9* | hpux10* | hpux11*)
12221 # Give a soname corresponding to the major version so that dld.sl refuses to
12222 # link against other versions.
12223 version_type=sunos
12224 need_lib_prefix=no
12225 need_version=no
12226 case $host_cpu in
12227 ia64*)
12228 shrext_cmds='.so'
12229 hardcode_into_libs=yes
12230 dynamic_linker="$host_os dld.so"
12231 shlibpath_var=LD_LIBRARY_PATH
12232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 if test "X$HPUX_IA64_MODE" = X32; then
12236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12237 else
12238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12242 hppa*64*)
12243 shrext_cmds='.sl'
12244 hardcode_into_libs=yes
12245 dynamic_linker="$host_os dld.sl"
12246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12249 soname_spec='${libname}${release}${shared_ext}$major'
12250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12254 shrext_cmds='.sl'
12255 dynamic_linker="$host_os dld.sl"
12256 shlibpath_var=SHLIB_PATH
12257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259 soname_spec='${libname}${release}${shared_ext}$major'
12261 esac
12262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12263 postinstall_cmds='chmod 555 $lib'
12266 interix[3-9]*)
12267 version_type=linux
12268 need_lib_prefix=no
12269 need_version=no
12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12271 soname_spec='${libname}${release}${shared_ext}$major'
12272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 shlibpath_overrides_runpath=no
12275 hardcode_into_libs=yes
12278 irix5* | irix6* | nonstopux*)
12279 case $host_os in
12280 nonstopux*) version_type=nonstopux ;;
12282 if test "$lt_cv_prog_gnu_ld" = yes; then
12283 version_type=linux
12284 else
12285 version_type=irix
12286 fi ;;
12287 esac
12288 need_lib_prefix=no
12289 need_version=no
12290 soname_spec='${libname}${release}${shared_ext}$major'
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12292 case $host_os in
12293 irix5* | nonstopux*)
12294 libsuff= shlibsuff=
12297 case $LD in # libtool.m4 will add one of these switches to LD
12298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12299 libsuff= shlibsuff= libmagic=32-bit;;
12300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12301 libsuff=32 shlibsuff=N32 libmagic=N32;;
12302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12304 *) libsuff= shlibsuff= libmagic=never-match;;
12305 esac
12307 esac
12308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12309 shlibpath_overrides_runpath=no
12310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12312 hardcode_into_libs=yes
12315 # No shared lib support for Linux oldld, aout, or coff.
12316 linux*oldld* | linux*aout* | linux*coff*)
12317 dynamic_linker=no
12320 # This must be Linux ELF.
12321 linux* | k*bsd*-gnu)
12322 version_type=linux
12323 need_lib_prefix=no
12324 need_version=no
12325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326 soname_spec='${libname}${release}${shared_ext}$major'
12327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 shlibpath_overrides_runpath=no
12330 # This implies no fast_install, which is unacceptable.
12331 # Some rework will be needed to allow for fast_install
12332 # before this can be enabled.
12333 hardcode_into_libs=yes
12335 # Append ld.so.conf contents to the search path
12336 if test -f /etc/ld.so.conf; then
12337 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' ' '`
12338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12341 # We used to test for /lib/ld.so.1 and disable shared libraries on
12342 # powerpc, because MkLinux only supported shared libraries with the
12343 # GNU dynamic linker. Since this was broken with cross compilers,
12344 # most powerpc-linux boxes support dynamic linking these days and
12345 # people can always --disable-shared, the test was removed, and we
12346 # assume the GNU/Linux dynamic linker is in use.
12347 dynamic_linker='GNU/Linux ld.so'
12350 netbsd*)
12351 version_type=sunos
12352 need_lib_prefix=no
12353 need_version=no
12354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12357 dynamic_linker='NetBSD (a.out) ld.so'
12358 else
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12360 soname_spec='${libname}${release}${shared_ext}$major'
12361 dynamic_linker='NetBSD ld.elf_so'
12363 shlibpath_var=LD_LIBRARY_PATH
12364 shlibpath_overrides_runpath=yes
12365 hardcode_into_libs=yes
12368 newsos6)
12369 version_type=linux
12370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371 shlibpath_var=LD_LIBRARY_PATH
12372 shlibpath_overrides_runpath=yes
12375 nto-qnx*)
12376 version_type=linux
12377 need_lib_prefix=no
12378 need_version=no
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12380 soname_spec='${libname}${release}${shared_ext}$major'
12381 shlibpath_var=LD_LIBRARY_PATH
12382 shlibpath_overrides_runpath=yes
12385 openbsd*)
12386 version_type=sunos
12387 sys_lib_dlsearch_path_spec="/usr/lib"
12388 need_lib_prefix=no
12389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12390 case $host_os in
12391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12392 *) need_version=no ;;
12393 esac
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12396 shlibpath_var=LD_LIBRARY_PATH
12397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12398 case $host_os in
12399 openbsd2.[89] | openbsd2.[89].*)
12400 shlibpath_overrides_runpath=no
12403 shlibpath_overrides_runpath=yes
12405 esac
12406 else
12407 shlibpath_overrides_runpath=yes
12411 os2*)
12412 libname_spec='$name'
12413 shrext_cmds=".dll"
12414 need_lib_prefix=no
12415 library_names_spec='$libname${shared_ext} $libname.a'
12416 dynamic_linker='OS/2 ld.exe'
12417 shlibpath_var=LIBPATH
12420 osf3* | osf4* | osf5*)
12421 version_type=osf
12422 need_lib_prefix=no
12423 need_version=no
12424 soname_spec='${libname}${release}${shared_ext}$major'
12425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12426 shlibpath_var=LD_LIBRARY_PATH
12427 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12431 rdos*)
12432 dynamic_linker=no
12435 solaris*)
12436 version_type=linux
12437 need_lib_prefix=no
12438 need_version=no
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12440 soname_spec='${libname}${release}${shared_ext}$major'
12441 shlibpath_var=LD_LIBRARY_PATH
12442 shlibpath_overrides_runpath=yes
12443 hardcode_into_libs=yes
12444 # ldd complains unless libraries are executable
12445 postinstall_cmds='chmod +x $lib'
12448 sunos4*)
12449 version_type=sunos
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12452 shlibpath_var=LD_LIBRARY_PATH
12453 shlibpath_overrides_runpath=yes
12454 if test "$with_gnu_ld" = yes; then
12455 need_lib_prefix=no
12457 need_version=yes
12460 sysv4 | sysv4.3*)
12461 version_type=linux
12462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12463 soname_spec='${libname}${release}${shared_ext}$major'
12464 shlibpath_var=LD_LIBRARY_PATH
12465 case $host_vendor in
12466 sni)
12467 shlibpath_overrides_runpath=no
12468 need_lib_prefix=no
12469 export_dynamic_flag_spec='${wl}-Blargedynsym'
12470 runpath_var=LD_RUN_PATH
12472 siemens)
12473 need_lib_prefix=no
12475 motorola)
12476 need_lib_prefix=no
12477 need_version=no
12478 shlibpath_overrides_runpath=no
12479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12481 esac
12484 sysv4*MP*)
12485 if test -d /usr/nec ;then
12486 version_type=linux
12487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12488 soname_spec='$libname${shared_ext}.$major'
12489 shlibpath_var=LD_LIBRARY_PATH
12493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12494 version_type=freebsd-elf
12495 need_lib_prefix=no
12496 need_version=no
12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12498 soname_spec='${libname}${release}${shared_ext}$major'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 hardcode_into_libs=yes
12501 if test "$with_gnu_ld" = yes; then
12502 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12503 shlibpath_overrides_runpath=no
12504 else
12505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12506 shlibpath_overrides_runpath=yes
12507 case $host_os in
12508 sco3.2v5*)
12509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12511 esac
12513 sys_lib_dlsearch_path_spec='/usr/lib'
12516 uts4*)
12517 version_type=linux
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12519 soname_spec='${libname}${release}${shared_ext}$major'
12520 shlibpath_var=LD_LIBRARY_PATH
12524 dynamic_linker=no
12526 esac
12527 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12528 echo "${ECHO_T}$dynamic_linker" >&6; }
12529 test "$dynamic_linker" = no && can_build_shared=no
12531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12532 if test "$GCC" = yes; then
12533 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12536 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12537 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12538 hardcode_action_CXX=
12539 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12540 test -n "$runpath_var_CXX" || \
12541 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12543 # We can hardcode non-existant directories.
12544 if test "$hardcode_direct_CXX" != no &&
12545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12546 # have to relink, otherwise we might link with an installed library
12547 # when we should be linking with a yet-to-be-installed one
12548 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12549 test "$hardcode_minus_L_CXX" != no; then
12550 # Linking always hardcodes the temporary library directory.
12551 hardcode_action_CXX=relink
12552 else
12553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12554 hardcode_action_CXX=immediate
12556 else
12557 # We cannot hardcode anything, or else we can only hardcode existing
12558 # directories.
12559 hardcode_action_CXX=unsupported
12561 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12562 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12564 if test "$hardcode_action_CXX" = relink; then
12565 # Fast installation is not supported
12566 enable_fast_install=no
12567 elif test "$shlibpath_overrides_runpath" = yes ||
12568 test "$enable_shared" = no; then
12569 # Fast installation is not necessary
12570 enable_fast_install=needless
12574 # The else clause should only fire when bootstrapping the
12575 # libtool distribution, otherwise you forgot to ship ltmain.sh
12576 # with your package, and you will get complaints that there are
12577 # no rules to generate ltmain.sh.
12578 if test -f "$ltmain"; then
12579 # See if we are running on zsh, and set the options which allow our commands through
12580 # without removal of \ escapes.
12581 if test -n "${ZSH_VERSION+set}" ; then
12582 setopt NO_GLOB_SUBST
12584 # Now quote all the things that may contain metacharacters while being
12585 # careful not to overquote the AC_SUBSTed values. We take copies of the
12586 # variables and quote the copies for generation of the libtool script.
12587 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12588 SED SHELL STRIP \
12589 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12590 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12591 deplibs_check_method reload_flag reload_cmds need_locks \
12592 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12593 lt_cv_sys_global_symbol_to_c_name_address \
12594 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12595 old_postinstall_cmds old_postuninstall_cmds \
12596 compiler_CXX \
12597 CC_CXX \
12598 LD_CXX \
12599 lt_prog_compiler_wl_CXX \
12600 lt_prog_compiler_pic_CXX \
12601 lt_prog_compiler_static_CXX \
12602 lt_prog_compiler_no_builtin_flag_CXX \
12603 export_dynamic_flag_spec_CXX \
12604 thread_safe_flag_spec_CXX \
12605 whole_archive_flag_spec_CXX \
12606 enable_shared_with_static_runtimes_CXX \
12607 old_archive_cmds_CXX \
12608 old_archive_from_new_cmds_CXX \
12609 predep_objects_CXX \
12610 postdep_objects_CXX \
12611 predeps_CXX \
12612 postdeps_CXX \
12613 compiler_lib_search_path_CXX \
12614 archive_cmds_CXX \
12615 archive_expsym_cmds_CXX \
12616 postinstall_cmds_CXX \
12617 postuninstall_cmds_CXX \
12618 old_archive_from_expsyms_cmds_CXX \
12619 allow_undefined_flag_CXX \
12620 no_undefined_flag_CXX \
12621 export_symbols_cmds_CXX \
12622 hardcode_libdir_flag_spec_CXX \
12623 hardcode_libdir_flag_spec_ld_CXX \
12624 hardcode_libdir_separator_CXX \
12625 hardcode_automatic_CXX \
12626 module_cmds_CXX \
12627 module_expsym_cmds_CXX \
12628 lt_cv_prog_compiler_c_o_CXX \
12629 fix_srcfile_path_CXX \
12630 exclude_expsyms_CXX \
12631 include_expsyms_CXX; do
12633 case $var in
12634 old_archive_cmds_CXX | \
12635 old_archive_from_new_cmds_CXX | \
12636 archive_cmds_CXX | \
12637 archive_expsym_cmds_CXX | \
12638 module_cmds_CXX | \
12639 module_expsym_cmds_CXX | \
12640 old_archive_from_expsyms_cmds_CXX | \
12641 export_symbols_cmds_CXX | \
12642 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12643 postinstall_cmds | postuninstall_cmds | \
12644 old_postinstall_cmds | old_postuninstall_cmds | \
12645 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12646 # Double-quote double-evaled strings.
12647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12652 esac
12653 done
12655 case $lt_echo in
12656 *'\$0 --fallback-echo"')
12657 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12659 esac
12661 cfgfile="$ofile"
12663 cat <<__EOF__ >> "$cfgfile"
12664 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12666 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12668 # Shell to use when invoking shell scripts.
12669 SHELL=$lt_SHELL
12671 # Whether or not to build shared libraries.
12672 build_libtool_libs=$enable_shared
12674 # Whether or not to build static libraries.
12675 build_old_libs=$enable_static
12677 # Whether or not to add -lc for building shared libraries.
12678 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12680 # Whether or not to disallow shared libs when runtime libs are static
12681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12683 # Whether or not to optimize for fast installation.
12684 fast_install=$enable_fast_install
12686 # The host system.
12687 host_alias=$host_alias
12688 host=$host
12689 host_os=$host_os
12691 # The build system.
12692 build_alias=$build_alias
12693 build=$build
12694 build_os=$build_os
12696 # An echo program that does not interpret backslashes.
12697 echo=$lt_echo
12699 # The archiver.
12700 AR=$lt_AR
12701 AR_FLAGS=$lt_AR_FLAGS
12703 # A C compiler.
12704 LTCC=$lt_LTCC
12706 # LTCC compiler flags.
12707 LTCFLAGS=$lt_LTCFLAGS
12709 # A language-specific compiler.
12710 CC=$lt_compiler_CXX
12712 # Is the compiler the GNU C compiler?
12713 with_gcc=$GCC_CXX
12715 # An ERE matcher.
12716 EGREP=$lt_EGREP
12718 # The linker used to build libraries.
12719 LD=$lt_LD_CXX
12721 # Whether we need hard or soft links.
12722 LN_S=$lt_LN_S
12724 # A BSD-compatible nm program.
12725 NM=$lt_NM
12727 # A symbol stripping program
12728 STRIP=$lt_STRIP
12730 # Used to examine libraries when file_magic_cmd begins "file"
12731 MAGIC_CMD=$MAGIC_CMD
12733 # Used on cygwin: DLL creation program.
12734 DLLTOOL="$DLLTOOL"
12736 # Used on cygwin: object dumper.
12737 OBJDUMP="$OBJDUMP"
12739 # Used on cygwin: assembler.
12740 AS="$AS"
12742 # The name of the directory that contains temporary libtool files.
12743 objdir=$objdir
12745 # How to create reloadable object files.
12746 reload_flag=$lt_reload_flag
12747 reload_cmds=$lt_reload_cmds
12749 # How to pass a linker flag through the compiler.
12750 wl=$lt_lt_prog_compiler_wl_CXX
12752 # Object file suffix (normally "o").
12753 objext="$ac_objext"
12755 # Old archive suffix (normally "a").
12756 libext="$libext"
12758 # Shared library suffix (normally ".so").
12759 shrext_cmds='$shrext_cmds'
12761 # Executable file suffix (normally "").
12762 exeext="$exeext"
12764 # Additional compiler flags for building library objects.
12765 pic_flag=$lt_lt_prog_compiler_pic_CXX
12766 pic_mode=$pic_mode
12768 # What is the maximum length of a command?
12769 max_cmd_len=$lt_cv_sys_max_cmd_len
12771 # Does compiler simultaneously support -c and -o options?
12772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12774 # Must we lock files when doing compilation?
12775 need_locks=$lt_need_locks
12777 # Do we need the lib prefix for modules?
12778 need_lib_prefix=$need_lib_prefix
12780 # Do we need a version for libraries?
12781 need_version=$need_version
12783 # Whether dlopen is supported.
12784 dlopen_support=$enable_dlopen
12786 # Whether dlopen of programs is supported.
12787 dlopen_self=$enable_dlopen_self
12789 # Whether dlopen of statically linked programs is supported.
12790 dlopen_self_static=$enable_dlopen_self_static
12792 # Compiler flag to prevent dynamic linking.
12793 link_static_flag=$lt_lt_prog_compiler_static_CXX
12795 # Compiler flag to turn off builtin functions.
12796 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12798 # Compiler flag to allow reflexive dlopens.
12799 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12801 # Compiler flag to generate shared objects directly from archives.
12802 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12804 # Compiler flag to generate thread-safe objects.
12805 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12807 # Library versioning type.
12808 version_type=$version_type
12810 # Format of library name prefix.
12811 libname_spec=$lt_libname_spec
12813 # List of archive names. First name is the real one, the rest are links.
12814 # The last name is the one that the linker finds with -lNAME.
12815 library_names_spec=$lt_library_names_spec
12817 # The coded name of the library, if different from the real name.
12818 soname_spec=$lt_soname_spec
12820 # Commands used to build and install an old-style archive.
12821 RANLIB=$lt_RANLIB
12822 old_archive_cmds=$lt_old_archive_cmds_CXX
12823 old_postinstall_cmds=$lt_old_postinstall_cmds
12824 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12826 # Create an old-style archive from a shared archive.
12827 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12829 # Create a temporary old-style archive to link instead of a shared archive.
12830 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12832 # Commands used to build and install a shared archive.
12833 archive_cmds=$lt_archive_cmds_CXX
12834 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12835 postinstall_cmds=$lt_postinstall_cmds
12836 postuninstall_cmds=$lt_postuninstall_cmds
12838 # Commands used to build a loadable module (assumed same as above if empty)
12839 module_cmds=$lt_module_cmds_CXX
12840 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12842 # Commands to strip libraries.
12843 old_striplib=$lt_old_striplib
12844 striplib=$lt_striplib
12846 # Dependencies to place before the objects being linked to create a
12847 # shared library.
12848 predep_objects=$lt_predep_objects_CXX
12850 # Dependencies to place after the objects being linked to create a
12851 # shared library.
12852 postdep_objects=$lt_postdep_objects_CXX
12854 # Dependencies to place before the objects being linked to create a
12855 # shared library.
12856 predeps=$lt_predeps_CXX
12858 # Dependencies to place after the objects being linked to create a
12859 # shared library.
12860 postdeps=$lt_postdeps_CXX
12862 # The library search path used internally by the compiler when linking
12863 # a shared library.
12864 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12866 # Method to check whether dependent libraries are shared objects.
12867 deplibs_check_method=$lt_deplibs_check_method
12869 # Command to use when deplibs_check_method == file_magic.
12870 file_magic_cmd=$lt_file_magic_cmd
12872 # Flag that allows shared libraries with undefined symbols to be built.
12873 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12875 # Flag that forces no undefined symbols.
12876 no_undefined_flag=$lt_no_undefined_flag_CXX
12878 # Commands used to finish a libtool library installation in a directory.
12879 finish_cmds=$lt_finish_cmds
12881 # Same as above, but a single script fragment to be evaled but not shown.
12882 finish_eval=$lt_finish_eval
12884 # Take the output of nm and produce a listing of raw symbols and C names.
12885 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12887 # Transform the output of nm in a proper C declaration
12888 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12890 # Transform the output of nm in a C name address pair
12891 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12893 # This is the shared library runtime path variable.
12894 runpath_var=$runpath_var
12896 # This is the shared library path variable.
12897 shlibpath_var=$shlibpath_var
12899 # Is shlibpath searched before the hard-coded library search path?
12900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12902 # How to hardcode a shared library path into an executable.
12903 hardcode_action=$hardcode_action_CXX
12905 # Whether we should hardcode library paths into libraries.
12906 hardcode_into_libs=$hardcode_into_libs
12908 # Flag to hardcode \$libdir into a binary during linking.
12909 # This must work even if \$libdir does not exist.
12910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12912 # If ld is used when linking, flag to hardcode \$libdir into
12913 # a binary during linking. This must work even if \$libdir does
12914 # not exist.
12915 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12917 # Whether we need a single -rpath flag with a separated argument.
12918 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12920 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12921 # resulting binary.
12922 hardcode_direct=$hardcode_direct_CXX
12924 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12925 # resulting binary.
12926 hardcode_minus_L=$hardcode_minus_L_CXX
12928 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12929 # the resulting binary.
12930 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12932 # Set to yes if building a shared library automatically hardcodes DIR into the library
12933 # and all subsequent libraries and executables linked against it.
12934 hardcode_automatic=$hardcode_automatic_CXX
12936 # Variables whose values should be saved in libtool wrapper scripts and
12937 # restored at relink time.
12938 variables_saved_for_relink="$variables_saved_for_relink"
12940 # Whether libtool must link a program against all its dependency libraries.
12941 link_all_deplibs=$link_all_deplibs_CXX
12943 # Compile-time system search path for libraries
12944 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12946 # Run-time system search path for libraries
12947 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12949 # Fix the shell variable \$srcfile for the compiler.
12950 fix_srcfile_path=$lt_fix_srcfile_path
12952 # Set to yes if exported symbols are required.
12953 always_export_symbols=$always_export_symbols_CXX
12955 # The commands to list exported symbols.
12956 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12958 # The commands to extract the exported symbol list from a shared archive.
12959 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12961 # Symbols that should not be listed in the preloaded symbols.
12962 exclude_expsyms=$lt_exclude_expsyms_CXX
12964 # Symbols that must always be exported.
12965 include_expsyms=$lt_include_expsyms_CXX
12967 # ### END LIBTOOL TAG CONFIG: $tagname
12969 __EOF__
12972 else
12973 # If there is no Makefile yet, we rely on a make rule to execute
12974 # `config.status --recheck' to rerun these tests and create the
12975 # libtool script then.
12976 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12977 if test -f "$ltmain_in"; then
12978 test -f Makefile && make "$ltmain"
12983 ac_ext=c
12984 ac_cpp='$CPP $CPPFLAGS'
12985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12989 CC=$lt_save_CC
12990 LDCXX=$LD
12991 LD=$lt_save_LD
12992 GCC=$lt_save_GCC
12993 with_gnu_ldcxx=$with_gnu_ld
12994 with_gnu_ld=$lt_save_with_gnu_ld
12995 lt_cv_path_LDCXX=$lt_cv_path_LD
12996 lt_cv_path_LD=$lt_save_path_LD
12997 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12998 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13000 else
13001 tagname=""
13005 F77)
13006 if test -n "$F77" && test "X$F77" != "Xno"; then
13008 ac_ext=f
13009 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13010 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13014 archive_cmds_need_lc_F77=no
13015 allow_undefined_flag_F77=
13016 always_export_symbols_F77=no
13017 archive_expsym_cmds_F77=
13018 export_dynamic_flag_spec_F77=
13019 hardcode_direct_F77=no
13020 hardcode_libdir_flag_spec_F77=
13021 hardcode_libdir_flag_spec_ld_F77=
13022 hardcode_libdir_separator_F77=
13023 hardcode_minus_L_F77=no
13024 hardcode_automatic_F77=no
13025 module_cmds_F77=
13026 module_expsym_cmds_F77=
13027 link_all_deplibs_F77=unknown
13028 old_archive_cmds_F77=$old_archive_cmds
13029 no_undefined_flag_F77=
13030 whole_archive_flag_spec_F77=
13031 enable_shared_with_static_runtimes_F77=no
13033 # Source file extension for f77 test sources.
13034 ac_ext=f
13036 # Object file extension for compiled f77 test sources.
13037 objext=o
13038 objext_F77=$objext
13040 # Code to be used in simple compile tests
13041 lt_simple_compile_test_code="\
13042 subroutine t
13043 return
13047 # Code to be used in simple link tests
13048 lt_simple_link_test_code="\
13049 program t
13053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13055 # If no C compiler was specified, use CC.
13056 LTCC=${LTCC-"$CC"}
13058 # If no C compiler flags were specified, use CFLAGS.
13059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13061 # Allow CC to be a program name with arguments.
13062 compiler=$CC
13065 # save warnings/boilerplate of simple test code
13066 ac_outfile=conftest.$ac_objext
13067 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069 _lt_compiler_boilerplate=`cat conftest.err`
13070 $rm conftest*
13072 ac_outfile=conftest.$ac_objext
13073 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13075 _lt_linker_boilerplate=`cat conftest.err`
13076 $rm conftest*
13079 # Allow CC to be a program name with arguments.
13080 lt_save_CC="$CC"
13081 CC=${F77-"f77"}
13082 compiler=$CC
13083 compiler_F77=$CC
13084 for cc_temp in $compiler""; do
13085 case $cc_temp in
13086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13088 \-*) ;;
13089 *) break;;
13090 esac
13091 done
13092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13095 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13096 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13097 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13098 echo "${ECHO_T}$can_build_shared" >&6; }
13100 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13101 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13102 test "$can_build_shared" = "no" && enable_shared=no
13104 # On AIX, shared libraries and static libraries use the same namespace, and
13105 # are all built from PIC.
13106 case $host_os in
13107 aix3*)
13108 test "$enable_shared" = yes && enable_static=no
13109 if test -n "$RANLIB"; then
13110 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13111 postinstall_cmds='$RANLIB $lib'
13114 aix4* | aix5*)
13115 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13116 test "$enable_shared" = yes && enable_static=no
13119 esac
13120 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13121 echo "${ECHO_T}$enable_shared" >&6; }
13123 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13124 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13125 # Make sure either enable_shared or enable_static is yes.
13126 test "$enable_shared" = yes || enable_static=yes
13127 { echo "$as_me:$LINENO: result: $enable_static" >&5
13128 echo "${ECHO_T}$enable_static" >&6; }
13130 GCC_F77="$G77"
13131 LD_F77="$LD"
13133 lt_prog_compiler_wl_F77=
13134 lt_prog_compiler_pic_F77=
13135 lt_prog_compiler_static_F77=
13137 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13138 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13140 if test "$GCC" = yes; then
13141 lt_prog_compiler_wl_F77='-Wl,'
13142 lt_prog_compiler_static_F77='-static'
13144 case $host_os in
13145 aix*)
13146 # All AIX code is PIC.
13147 if test "$host_cpu" = ia64; then
13148 # AIX 5 now supports IA64 processor
13149 lt_prog_compiler_static_F77='-Bstatic'
13153 amigaos*)
13154 # FIXME: we need at least 68020 code to build shared libraries, but
13155 # adding the `-m68020' flag to GCC prevents building anything better,
13156 # like `-m68040'.
13157 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13161 # PIC is the default for these OSes.
13164 mingw* | cygwin* | pw32* | os2*)
13165 # This hack is so that the source file can tell whether it is being
13166 # built for inclusion in a dll (and should export symbols for example).
13167 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13168 # (--disable-auto-import) libraries
13169 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13172 darwin* | rhapsody*)
13173 # PIC is the default on this platform
13174 # Common symbols not allowed in MH_DYLIB files
13175 lt_prog_compiler_pic_F77='-fno-common'
13178 interix[3-9]*)
13179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13180 # Instead, we relocate shared libraries at runtime.
13183 msdosdjgpp*)
13184 # Just because we use GCC doesn't mean we suddenly get shared libraries
13185 # on systems that don't support them.
13186 lt_prog_compiler_can_build_shared_F77=no
13187 enable_shared=no
13190 sysv4*MP*)
13191 if test -d /usr/nec; then
13192 lt_prog_compiler_pic_F77=-Kconform_pic
13196 hpux*)
13197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13198 # not for PA HP-UX.
13199 case $host_cpu in
13200 hppa*64*|ia64*)
13201 # +Z the default
13204 lt_prog_compiler_pic_F77='-fPIC'
13206 esac
13210 lt_prog_compiler_pic_F77='-fPIC'
13212 esac
13213 else
13214 # PORTME Check for flag to pass linker flags through the system compiler.
13215 case $host_os in
13216 aix*)
13217 lt_prog_compiler_wl_F77='-Wl,'
13218 if test "$host_cpu" = ia64; then
13219 # AIX 5 now supports IA64 processor
13220 lt_prog_compiler_static_F77='-Bstatic'
13221 else
13222 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13225 darwin*)
13226 # PIC is the default on this platform
13227 # Common symbols not allowed in MH_DYLIB files
13228 case $cc_basename in
13229 xlc*)
13230 lt_prog_compiler_pic_F77='-qnocommon'
13231 lt_prog_compiler_wl_F77='-Wl,'
13233 esac
13236 mingw* | cygwin* | pw32* | os2*)
13237 # This hack is so that the source file can tell whether it is being
13238 # built for inclusion in a dll (and should export symbols for example).
13239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13242 hpux9* | hpux10* | hpux11*)
13243 lt_prog_compiler_wl_F77='-Wl,'
13244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13245 # not for PA HP-UX.
13246 case $host_cpu in
13247 hppa*64*|ia64*)
13248 # +Z the default
13251 lt_prog_compiler_pic_F77='+Z'
13253 esac
13254 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13255 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13258 irix5* | irix6* | nonstopux*)
13259 lt_prog_compiler_wl_F77='-Wl,'
13260 # PIC (with -KPIC) is the default.
13261 lt_prog_compiler_static_F77='-non_shared'
13264 newsos6)
13265 lt_prog_compiler_pic_F77='-KPIC'
13266 lt_prog_compiler_static_F77='-Bstatic'
13269 linux* | k*bsd*-gnu)
13270 case $cc_basename in
13271 icc* | ecc*)
13272 lt_prog_compiler_wl_F77='-Wl,'
13273 lt_prog_compiler_pic_F77='-KPIC'
13274 lt_prog_compiler_static_F77='-static'
13276 pgcc* | pgf77* | pgf90* | pgf95*)
13277 # Portland Group compilers (*not* the Pentium gcc compiler,
13278 # which looks to be a dead project)
13279 lt_prog_compiler_wl_F77='-Wl,'
13280 lt_prog_compiler_pic_F77='-fpic'
13281 lt_prog_compiler_static_F77='-Bstatic'
13283 ccc*)
13284 lt_prog_compiler_wl_F77='-Wl,'
13285 # All Alpha code is PIC.
13286 lt_prog_compiler_static_F77='-non_shared'
13289 case `$CC -V 2>&1 | sed 5q` in
13290 *Sun\ C*)
13291 # Sun C 5.9
13292 lt_prog_compiler_pic_F77='-KPIC'
13293 lt_prog_compiler_static_F77='-Bstatic'
13294 lt_prog_compiler_wl_F77='-Wl,'
13296 *Sun\ F*)
13297 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13298 lt_prog_compiler_pic_F77='-KPIC'
13299 lt_prog_compiler_static_F77='-Bstatic'
13300 lt_prog_compiler_wl_F77=''
13302 esac
13304 esac
13307 osf3* | osf4* | osf5*)
13308 lt_prog_compiler_wl_F77='-Wl,'
13309 # All OSF/1 code is PIC.
13310 lt_prog_compiler_static_F77='-non_shared'
13313 rdos*)
13314 lt_prog_compiler_static_F77='-non_shared'
13317 solaris*)
13318 lt_prog_compiler_pic_F77='-KPIC'
13319 lt_prog_compiler_static_F77='-Bstatic'
13320 case $cc_basename in
13321 f77* | f90* | f95*)
13322 lt_prog_compiler_wl_F77='-Qoption ld ';;
13324 lt_prog_compiler_wl_F77='-Wl,';;
13325 esac
13328 sunos4*)
13329 lt_prog_compiler_wl_F77='-Qoption ld '
13330 lt_prog_compiler_pic_F77='-PIC'
13331 lt_prog_compiler_static_F77='-Bstatic'
13334 sysv4 | sysv4.2uw2* | sysv4.3*)
13335 lt_prog_compiler_wl_F77='-Wl,'
13336 lt_prog_compiler_pic_F77='-KPIC'
13337 lt_prog_compiler_static_F77='-Bstatic'
13340 sysv4*MP*)
13341 if test -d /usr/nec ;then
13342 lt_prog_compiler_pic_F77='-Kconform_pic'
13343 lt_prog_compiler_static_F77='-Bstatic'
13347 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13348 lt_prog_compiler_wl_F77='-Wl,'
13349 lt_prog_compiler_pic_F77='-KPIC'
13350 lt_prog_compiler_static_F77='-Bstatic'
13353 unicos*)
13354 lt_prog_compiler_wl_F77='-Wl,'
13355 lt_prog_compiler_can_build_shared_F77=no
13358 uts4*)
13359 lt_prog_compiler_pic_F77='-pic'
13360 lt_prog_compiler_static_F77='-Bstatic'
13364 lt_prog_compiler_can_build_shared_F77=no
13366 esac
13369 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13370 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13373 # Check to make sure the PIC flag actually works.
13375 if test -n "$lt_prog_compiler_pic_F77"; then
13377 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13379 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382 lt_prog_compiler_pic_works_F77=no
13383 ac_outfile=conftest.$ac_objext
13384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13385 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13386 # Insert the option either (1) after the last *FLAGS variable, or
13387 # (2) before a word containing "conftest.", or (3) at the end.
13388 # Note that $ac_compile itself does not contain backslashes and begins
13389 # with a dollar sign (not a hyphen), so the echo should work correctly.
13390 # The option is referenced via a variable to avoid confusing sed.
13391 lt_compile=`echo "$ac_compile" | $SED \
13392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13394 -e 's:$: $lt_compiler_flag:'`
13395 (eval echo "\"\$as_me:13395: $lt_compile\"" >&5)
13396 (eval "$lt_compile" 2>conftest.err)
13397 ac_status=$?
13398 cat conftest.err >&5
13399 echo "$as_me:13399: \$? = $ac_status" >&5
13400 if (exit $ac_status) && test -s "$ac_outfile"; then
13401 # The compiler can only warn and ignore the option if not recognized
13402 # So say no if there are warnings other than the usual output.
13403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13406 lt_prog_compiler_pic_works_F77=yes
13409 $rm conftest*
13412 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13413 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13415 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13416 case $lt_prog_compiler_pic_F77 in
13417 "" | " "*) ;;
13418 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13419 esac
13420 else
13421 lt_prog_compiler_pic_F77=
13422 lt_prog_compiler_can_build_shared_F77=no
13426 case $host_os in
13427 # For platforms which do not support PIC, -DPIC is meaningless:
13428 *djgpp*)
13429 lt_prog_compiler_pic_F77=
13432 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13434 esac
13437 # Check to make sure the static flag actually works.
13439 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13440 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13441 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13442 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445 lt_prog_compiler_static_works_F77=no
13446 save_LDFLAGS="$LDFLAGS"
13447 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13450 # The linker can only warn and ignore the option if not recognized
13451 # So say no if there are warnings
13452 if test -s conftest.err; then
13453 # Append any errors to the config.log.
13454 cat conftest.err 1>&5
13455 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13457 if diff conftest.exp conftest.er2 >/dev/null; then
13458 lt_prog_compiler_static_works_F77=yes
13460 else
13461 lt_prog_compiler_static_works_F77=yes
13464 $rm conftest*
13465 LDFLAGS="$save_LDFLAGS"
13468 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13469 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13471 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13473 else
13474 lt_prog_compiler_static_F77=
13478 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13479 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13480 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483 lt_cv_prog_compiler_c_o_F77=no
13484 $rm -r conftest 2>/dev/null
13485 mkdir conftest
13486 cd conftest
13487 mkdir out
13488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13490 lt_compiler_flag="-o out/conftest2.$ac_objext"
13491 # Insert the option either (1) after the last *FLAGS variable, or
13492 # (2) before a word containing "conftest.", or (3) at the end.
13493 # Note that $ac_compile itself does not contain backslashes and begins
13494 # with a dollar sign (not a hyphen), so the echo should work correctly.
13495 lt_compile=`echo "$ac_compile" | $SED \
13496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13498 -e 's:$: $lt_compiler_flag:'`
13499 (eval echo "\"\$as_me:13499: $lt_compile\"" >&5)
13500 (eval "$lt_compile" 2>out/conftest.err)
13501 ac_status=$?
13502 cat out/conftest.err >&5
13503 echo "$as_me:13503: \$? = $ac_status" >&5
13504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13505 then
13506 # The compiler can only warn and ignore the option if not recognized
13507 # So say no if there are warnings
13508 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13511 lt_cv_prog_compiler_c_o_F77=yes
13514 chmod u+w . 2>&5
13515 $rm conftest*
13516 # SGI C++ compiler will create directory out/ii_files/ for
13517 # template instantiation
13518 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13519 $rm out/* && rmdir out
13520 cd ..
13521 rmdir conftest
13522 $rm conftest*
13525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13526 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13529 hard_links="nottested"
13530 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13531 # do not overwrite the value of need_locks provided by the user
13532 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13533 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13534 hard_links=yes
13535 $rm conftest*
13536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13537 touch conftest.a
13538 ln conftest.a conftest.b 2>&5 || hard_links=no
13539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540 { echo "$as_me:$LINENO: result: $hard_links" >&5
13541 echo "${ECHO_T}$hard_links" >&6; }
13542 if test "$hard_links" = no; then
13543 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13544 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13545 need_locks=warn
13547 else
13548 need_locks=no
13551 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13552 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13554 runpath_var=
13555 allow_undefined_flag_F77=
13556 enable_shared_with_static_runtimes_F77=no
13557 archive_cmds_F77=
13558 archive_expsym_cmds_F77=
13559 old_archive_From_new_cmds_F77=
13560 old_archive_from_expsyms_cmds_F77=
13561 export_dynamic_flag_spec_F77=
13562 whole_archive_flag_spec_F77=
13563 thread_safe_flag_spec_F77=
13564 hardcode_libdir_flag_spec_F77=
13565 hardcode_libdir_flag_spec_ld_F77=
13566 hardcode_libdir_separator_F77=
13567 hardcode_direct_F77=no
13568 hardcode_minus_L_F77=no
13569 hardcode_shlibpath_var_F77=unsupported
13570 link_all_deplibs_F77=unknown
13571 hardcode_automatic_F77=no
13572 module_cmds_F77=
13573 module_expsym_cmds_F77=
13574 always_export_symbols_F77=no
13575 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13576 # include_expsyms should be a list of space-separated symbols to be *always*
13577 # included in the symbol list
13578 include_expsyms_F77=
13579 # exclude_expsyms can be an extended regexp of symbols to exclude
13580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13582 # as well as any symbol that contains `d'.
13583 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13585 # platforms (ab)use it in PIC code, but their linkers get confused if
13586 # the symbol is explicitly referenced. Since portable code cannot
13587 # rely on this symbol name, it's probably fine to never include it in
13588 # preloaded symbol tables.
13589 extract_expsyms_cmds=
13590 # Just being paranoid about ensuring that cc_basename is set.
13591 for cc_temp in $compiler""; do
13592 case $cc_temp in
13593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13595 \-*) ;;
13596 *) break;;
13597 esac
13598 done
13599 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13601 case $host_os in
13602 cygwin* | mingw* | pw32*)
13603 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13604 # When not using gcc, we currently assume that we are using
13605 # Microsoft Visual C++.
13606 if test "$GCC" != yes; then
13607 with_gnu_ld=no
13610 interix*)
13611 # we just hope/assume this is gcc and not c89 (= MSVC++)
13612 with_gnu_ld=yes
13614 openbsd*)
13615 with_gnu_ld=no
13617 esac
13619 ld_shlibs_F77=yes
13620 if test "$with_gnu_ld" = yes; then
13621 # If archive_cmds runs LD, not CC, wlarc should be empty
13622 wlarc='${wl}'
13624 # Set some defaults for GNU ld with shared library support. These
13625 # are reset later if shared libraries are not supported. Putting them
13626 # here allows them to be overridden if necessary.
13627 runpath_var=LD_RUN_PATH
13628 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13629 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13630 # ancient GNU ld didn't support --whole-archive et. al.
13631 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13632 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13633 else
13634 whole_archive_flag_spec_F77=
13636 supports_anon_versioning=no
13637 case `$LD -v 2>/dev/null` in
13638 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13641 *\ 2.11.*) ;; # other 2.11 versions
13642 *) supports_anon_versioning=yes ;;
13643 esac
13645 # See if GNU ld supports shared libraries.
13646 case $host_os in
13647 aix3* | aix4* | aix5*)
13648 # On AIX/PPC, the GNU linker is very broken
13649 if test "$host_cpu" != ia64; then
13650 ld_shlibs_F77=no
13651 cat <<EOF 1>&2
13653 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13654 *** to be unable to reliably create shared libraries on AIX.
13655 *** Therefore, libtool is disabling shared libraries support. If you
13656 *** really care for shared libraries, you may want to modify your PATH
13657 *** so that a non-GNU linker is found, and then restart.
13663 amigaos*)
13664 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)'
13665 hardcode_libdir_flag_spec_F77='-L$libdir'
13666 hardcode_minus_L_F77=yes
13668 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13669 # that the semantics of dynamic libraries on AmigaOS, at least up
13670 # to version 4, is to share data among multiple programs linked
13671 # with the same dynamic library. Since this doesn't match the
13672 # behavior of shared libraries on other platforms, we can't use
13673 # them.
13674 ld_shlibs_F77=no
13677 beos*)
13678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13679 allow_undefined_flag_F77=unsupported
13680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13681 # support --undefined. This deserves some investigation. FIXME
13682 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13683 else
13684 ld_shlibs_F77=no
13688 cygwin* | mingw* | pw32*)
13689 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13690 # as there is no search path for DLLs.
13691 hardcode_libdir_flag_spec_F77='-L$libdir'
13692 allow_undefined_flag_F77=unsupported
13693 always_export_symbols_F77=no
13694 enable_shared_with_static_runtimes_F77=yes
13695 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13697 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13698 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13699 # If the export-symbols file already is a .def file (1st line
13700 # is EXPORTS), use it as is; otherwise, prepend...
13701 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13702 cp $export_symbols $output_objdir/$soname.def;
13703 else
13704 echo EXPORTS > $output_objdir/$soname.def;
13705 cat $export_symbols >> $output_objdir/$soname.def;
13707 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13708 else
13709 ld_shlibs_F77=no
13713 interix[3-9]*)
13714 hardcode_direct_F77=no
13715 hardcode_shlibpath_var_F77=no
13716 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13717 export_dynamic_flag_spec_F77='${wl}-E'
13718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13719 # Instead, shared libraries are loaded at an image base (0x10000000 by
13720 # default) and relocated if they conflict, which is a slow very memory
13721 # consuming and fragmenting process. To avoid this, we pick a random,
13722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13723 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13724 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'
13725 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'
13728 gnu* | linux* | k*bsd*-gnu)
13729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13730 tmp_addflag=
13731 case $cc_basename,$host_cpu in
13732 pgcc*) # Portland Group C compiler
13733 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'
13734 tmp_addflag=' $pic_flag'
13736 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13737 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'
13738 tmp_addflag=' $pic_flag -Mnomain' ;;
13739 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13740 tmp_addflag=' -i_dynamic' ;;
13741 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13742 tmp_addflag=' -i_dynamic -nofor_main' ;;
13743 ifc* | ifort*) # Intel Fortran compiler
13744 tmp_addflag=' -nofor_main' ;;
13745 esac
13746 case `$CC -V 2>&1 | sed 5q` in
13747 *Sun\ C*) # Sun C 5.9
13748 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'
13749 tmp_sharedflag='-G' ;;
13750 *Sun\ F*) # Sun Fortran 8.3
13751 tmp_sharedflag='-G' ;;
13753 tmp_sharedflag='-shared' ;;
13754 esac
13755 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13757 if test $supports_anon_versioning = yes; then
13758 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13760 $echo "local: *; };" >> $output_objdir/$libname.ver~
13761 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13763 else
13764 ld_shlibs_F77=no
13768 netbsd*)
13769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13770 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13771 wlarc=
13772 else
13773 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13774 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13778 solaris*)
13779 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13780 ld_shlibs_F77=no
13781 cat <<EOF 1>&2
13783 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13784 *** create shared libraries on Solaris systems. Therefore, libtool
13785 *** is disabling shared libraries support. We urge you to upgrade GNU
13786 *** binutils to release 2.9.1 or newer. Another option is to modify
13787 *** your PATH or compiler configuration so that the native linker is
13788 *** used, and then restart.
13791 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13792 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13793 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13794 else
13795 ld_shlibs_F77=no
13799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13800 case `$LD -v 2>&1` in
13801 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13802 ld_shlibs_F77=no
13803 cat <<_LT_EOF 1>&2
13805 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13806 *** reliably create shared libraries on SCO systems. Therefore, libtool
13807 *** is disabling shared libraries support. We urge you to upgrade GNU
13808 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13809 *** your PATH or compiler configuration so that the native linker is
13810 *** used, and then restart.
13812 _LT_EOF
13815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13816 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13817 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13818 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13819 else
13820 ld_shlibs_F77=no
13823 esac
13826 sunos4*)
13827 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13828 wlarc=
13829 hardcode_direct_F77=yes
13830 hardcode_shlibpath_var_F77=no
13834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13835 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13836 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13837 else
13838 ld_shlibs_F77=no
13841 esac
13843 if test "$ld_shlibs_F77" = no; then
13844 runpath_var=
13845 hardcode_libdir_flag_spec_F77=
13846 export_dynamic_flag_spec_F77=
13847 whole_archive_flag_spec_F77=
13849 else
13850 # PORTME fill in a description of your system's linker (not GNU ld)
13851 case $host_os in
13852 aix3*)
13853 allow_undefined_flag_F77=unsupported
13854 always_export_symbols_F77=yes
13855 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'
13856 # Note: this linker hardcodes the directories in LIBPATH if there
13857 # are no directories specified by -L.
13858 hardcode_minus_L_F77=yes
13859 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13860 # Neither direct hardcoding nor static linking is supported with a
13861 # broken collect2.
13862 hardcode_direct_F77=unsupported
13866 aix4* | aix5*)
13867 if test "$host_cpu" = ia64; then
13868 # On IA64, the linker does run time linking by default, so we don't
13869 # have to do anything special.
13870 aix_use_runtimelinking=no
13871 exp_sym_flag='-Bexport'
13872 no_entry_flag=""
13873 else
13874 # If we're using GNU nm, then we don't want the "-C" option.
13875 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13876 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13877 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'
13878 else
13879 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'
13881 aix_use_runtimelinking=no
13883 # Test if we are trying to use run time linking or normal
13884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13885 # need to do runtime linking.
13886 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13887 for ld_flag in $LDFLAGS; do
13888 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13889 aix_use_runtimelinking=yes
13890 break
13892 done
13894 esac
13896 exp_sym_flag='-bexport'
13897 no_entry_flag='-bnoentry'
13900 # When large executables or shared objects are built, AIX ld can
13901 # have problems creating the table of contents. If linking a library
13902 # or program results in "error TOC overflow" add -mminimal-toc to
13903 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13904 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13906 archive_cmds_F77=''
13907 hardcode_direct_F77=yes
13908 hardcode_libdir_separator_F77=':'
13909 link_all_deplibs_F77=yes
13911 if test "$GCC" = yes; then
13912 case $host_os in aix4.[012]|aix4.[012].*)
13913 # We only want to do this on AIX 4.2 and lower, the check
13914 # below for broken collect2 doesn't work under 4.3+
13915 collect2name=`${CC} -print-prog-name=collect2`
13916 if test -f "$collect2name" && \
13917 strings "$collect2name" | grep resolve_lib_name >/dev/null
13918 then
13919 # We have reworked collect2
13921 else
13922 # We have old collect2
13923 hardcode_direct_F77=unsupported
13924 # It fails to find uninstalled libraries when the uninstalled
13925 # path is not listed in the libpath. Setting hardcode_minus_L
13926 # to unsupported forces relinking
13927 hardcode_minus_L_F77=yes
13928 hardcode_libdir_flag_spec_F77='-L$libdir'
13929 hardcode_libdir_separator_F77=
13932 esac
13933 shared_flag='-shared'
13934 if test "$aix_use_runtimelinking" = yes; then
13935 shared_flag="$shared_flag "'${wl}-G'
13937 else
13938 # not using gcc
13939 if test "$host_cpu" = ia64; then
13940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13941 # chokes on -Wl,-G. The following line is correct:
13942 shared_flag='-G'
13943 else
13944 if test "$aix_use_runtimelinking" = yes; then
13945 shared_flag='${wl}-G'
13946 else
13947 shared_flag='${wl}-bM:SRE'
13952 # It seems that -bexpall does not export symbols beginning with
13953 # underscore (_), so it is better to generate a list of symbols to export.
13954 always_export_symbols_F77=yes
13955 if test "$aix_use_runtimelinking" = yes; then
13956 # Warning - without using the other runtime loading flags (-brtl),
13957 # -berok will link without error, but may produce a broken library.
13958 allow_undefined_flag_F77='-berok'
13959 # Determine the default libpath from the value encoded in an empty executable.
13960 cat >conftest.$ac_ext <<_ACEOF
13961 program main
13964 _ACEOF
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (ac_try="$ac_link"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_link") 2>conftest.er1
13973 ac_status=$?
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_f77_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest$ac_exeext &&
13982 $as_test_x conftest$ac_exeext; then
13984 lt_aix_libpath_sed='
13985 /Import File Strings/,/^$/ {
13986 /^0/ {
13987 s/^0 *\(.*\)$/\1/
13991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13992 # Check for a 64-bit object if we didn't find anything.
13993 if test -z "$aix_libpath"; then
13994 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14004 conftest$ac_exeext conftest.$ac_ext
14005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14007 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14008 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"
14009 else
14010 if test "$host_cpu" = ia64; then
14011 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14012 allow_undefined_flag_F77="-z nodefs"
14013 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"
14014 else
14015 # Determine the default libpath from the value encoded in an empty executable.
14016 cat >conftest.$ac_ext <<_ACEOF
14017 program main
14020 _ACEOF
14021 rm -f conftest.$ac_objext conftest$ac_exeext
14022 if { (ac_try="$ac_link"
14023 case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_link") 2>conftest.er1
14029 ac_status=$?
14030 grep -v '^ *+' conftest.er1 >conftest.err
14031 rm -f conftest.er1
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && {
14035 test -z "$ac_f77_werror_flag" ||
14036 test ! -s conftest.err
14037 } && test -s conftest$ac_exeext &&
14038 $as_test_x conftest$ac_exeext; then
14040 lt_aix_libpath_sed='
14041 /Import File Strings/,/^$/ {
14042 /^0/ {
14043 s/^0 *\(.*\)$/\1/
14047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14048 # Check for a 64-bit object if we didn't find anything.
14049 if test -z "$aix_libpath"; then
14050 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14052 else
14053 echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14060 conftest$ac_exeext conftest.$ac_ext
14061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14063 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14064 # Warning - without using the other run time loading flags,
14065 # -berok will link without error, but may produce a broken library.
14066 no_undefined_flag_F77=' ${wl}-bernotok'
14067 allow_undefined_flag_F77=' ${wl}-berok'
14068 # Exported symbols can be pulled into shared objects from archives
14069 whole_archive_flag_spec_F77='$convenience'
14070 archive_cmds_need_lc_F77=yes
14071 # This is similar to how AIX traditionally builds its shared libraries.
14072 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'
14077 amigaos*)
14078 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)'
14079 hardcode_libdir_flag_spec_F77='-L$libdir'
14080 hardcode_minus_L_F77=yes
14081 # see comment about different semantics on the GNU ld section
14082 ld_shlibs_F77=no
14085 bsdi[45]*)
14086 export_dynamic_flag_spec_F77=-rdynamic
14089 cygwin* | mingw* | pw32*)
14090 # When not using gcc, we currently assume that we are using
14091 # Microsoft Visual C++.
14092 # hardcode_libdir_flag_spec is actually meaningless, as there is
14093 # no search path for DLLs.
14094 hardcode_libdir_flag_spec_F77=' '
14095 allow_undefined_flag_F77=unsupported
14096 # Tell ltmain to make .lib files, not .a files.
14097 libext=lib
14098 # Tell ltmain to make .dll files, not .so files.
14099 shrext_cmds=".dll"
14100 # FIXME: Setting linknames here is a bad hack.
14101 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14102 # The linker will automatically build a .lib file if we build a DLL.
14103 old_archive_From_new_cmds_F77='true'
14104 # FIXME: Should let the user specify the lib program.
14105 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14106 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14107 enable_shared_with_static_runtimes_F77=yes
14110 darwin* | rhapsody*)
14111 case $host_os in
14112 rhapsody* | darwin1.[012])
14113 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14115 *) # Darwin 1.3 on
14116 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14117 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14118 else
14119 case ${MACOSX_DEPLOYMENT_TARGET} in
14120 10.[012])
14121 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14123 10.*)
14124 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14126 esac
14129 esac
14130 archive_cmds_need_lc_F77=no
14131 hardcode_direct_F77=no
14132 hardcode_automatic_F77=yes
14133 hardcode_shlibpath_var_F77=unsupported
14134 whole_archive_flag_spec_F77=''
14135 link_all_deplibs_F77=yes
14136 if test "$GCC" = yes ; then
14137 output_verbose_link_cmd='echo'
14138 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14139 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14140 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14141 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14142 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}'
14143 else
14144 case $cc_basename in
14145 xlc*)
14146 output_verbose_link_cmd='echo'
14147 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14148 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14149 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14150 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}'
14151 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}'
14154 ld_shlibs_F77=no
14156 esac
14160 dgux*)
14161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14162 hardcode_libdir_flag_spec_F77='-L$libdir'
14163 hardcode_shlibpath_var_F77=no
14166 freebsd1*)
14167 ld_shlibs_F77=no
14170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14171 # support. Future versions do this automatically, but an explicit c++rt0.o
14172 # does not break anything, and helps significantly (at the cost of a little
14173 # extra space).
14174 freebsd2.2*)
14175 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14176 hardcode_libdir_flag_spec_F77='-R$libdir'
14177 hardcode_direct_F77=yes
14178 hardcode_shlibpath_var_F77=no
14181 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14182 freebsd2*)
14183 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14184 hardcode_direct_F77=yes
14185 hardcode_minus_L_F77=yes
14186 hardcode_shlibpath_var_F77=no
14189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14190 freebsd* | dragonfly*)
14191 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14192 hardcode_libdir_flag_spec_F77='-R$libdir'
14193 hardcode_direct_F77=yes
14194 hardcode_shlibpath_var_F77=no
14197 hpux9*)
14198 if test "$GCC" = yes; then
14199 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'
14200 else
14201 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'
14203 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14204 hardcode_libdir_separator_F77=:
14205 hardcode_direct_F77=yes
14207 # hardcode_minus_L: Not really in the search PATH,
14208 # but as the default location of the library.
14209 hardcode_minus_L_F77=yes
14210 export_dynamic_flag_spec_F77='${wl}-E'
14213 hpux10*)
14214 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14215 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14216 else
14217 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14219 if test "$with_gnu_ld" = no; then
14220 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14221 hardcode_libdir_separator_F77=:
14223 hardcode_direct_F77=yes
14224 export_dynamic_flag_spec_F77='${wl}-E'
14226 # hardcode_minus_L: Not really in the search PATH,
14227 # but as the default location of the library.
14228 hardcode_minus_L_F77=yes
14232 hpux11*)
14233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14234 case $host_cpu in
14235 hppa*64*)
14236 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14238 ia64*)
14239 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14242 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14244 esac
14245 else
14246 case $host_cpu in
14247 hppa*64*)
14248 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14250 ia64*)
14251 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14254 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14256 esac
14258 if test "$with_gnu_ld" = no; then
14259 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14260 hardcode_libdir_separator_F77=:
14262 case $host_cpu in
14263 hppa*64*|ia64*)
14264 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14265 hardcode_direct_F77=no
14266 hardcode_shlibpath_var_F77=no
14269 hardcode_direct_F77=yes
14270 export_dynamic_flag_spec_F77='${wl}-E'
14272 # hardcode_minus_L: Not really in the search PATH,
14273 # but as the default location of the library.
14274 hardcode_minus_L_F77=yes
14276 esac
14280 irix5* | irix6* | nonstopux*)
14281 if test "$GCC" = yes; then
14282 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'
14283 else
14284 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'
14285 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14287 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14288 hardcode_libdir_separator_F77=:
14289 link_all_deplibs_F77=yes
14292 netbsd*)
14293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14294 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14295 else
14296 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14298 hardcode_libdir_flag_spec_F77='-R$libdir'
14299 hardcode_direct_F77=yes
14300 hardcode_shlibpath_var_F77=no
14303 newsos6)
14304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14305 hardcode_direct_F77=yes
14306 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14307 hardcode_libdir_separator_F77=:
14308 hardcode_shlibpath_var_F77=no
14311 openbsd*)
14312 if test -f /usr/libexec/ld.so; then
14313 hardcode_direct_F77=yes
14314 hardcode_shlibpath_var_F77=no
14315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14316 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14317 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14318 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14319 export_dynamic_flag_spec_F77='${wl}-E'
14320 else
14321 case $host_os in
14322 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14323 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14324 hardcode_libdir_flag_spec_F77='-R$libdir'
14327 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14328 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14330 esac
14332 else
14333 ld_shlibs_F77=no
14337 os2*)
14338 hardcode_libdir_flag_spec_F77='-L$libdir'
14339 hardcode_minus_L_F77=yes
14340 allow_undefined_flag_F77=unsupported
14341 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'
14342 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14345 osf3*)
14346 if test "$GCC" = yes; then
14347 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14348 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'
14349 else
14350 allow_undefined_flag_F77=' -expect_unresolved \*'
14351 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'
14353 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14354 hardcode_libdir_separator_F77=:
14357 osf4* | osf5*) # as osf3* with the addition of -msym flag
14358 if test "$GCC" = yes; then
14359 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14360 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'
14361 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14362 else
14363 allow_undefined_flag_F77=' -expect_unresolved \*'
14364 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'
14365 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~
14366 $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'
14368 # Both c and cxx compiler support -rpath directly
14369 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14371 hardcode_libdir_separator_F77=:
14374 solaris*)
14375 no_undefined_flag_F77=' -z text'
14376 if test "$GCC" = yes; then
14377 wlarc='${wl}'
14378 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14379 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14380 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14381 else
14382 wlarc=''
14383 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14384 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14385 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14387 hardcode_libdir_flag_spec_F77='-R$libdir'
14388 hardcode_shlibpath_var_F77=no
14389 case $host_os in
14390 solaris2.[0-5] | solaris2.[0-5].*) ;;
14392 # The compiler driver will combine and reorder linker options,
14393 # but understands `-z linker_flag'. GCC discards it without `$wl',
14394 # but is careful enough not to reorder.
14395 # Supported since Solaris 2.6 (maybe 2.5.1?)
14396 if test "$GCC" = yes; then
14397 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14398 else
14399 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14402 esac
14403 link_all_deplibs_F77=yes
14406 sunos4*)
14407 if test "x$host_vendor" = xsequent; then
14408 # Use $CC to link under sequent, because it throws in some extra .o
14409 # files that make .init and .fini sections work.
14410 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14411 else
14412 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14414 hardcode_libdir_flag_spec_F77='-L$libdir'
14415 hardcode_direct_F77=yes
14416 hardcode_minus_L_F77=yes
14417 hardcode_shlibpath_var_F77=no
14420 sysv4)
14421 case $host_vendor in
14422 sni)
14423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424 hardcode_direct_F77=yes # is this really true???
14426 siemens)
14427 ## LD is ld it makes a PLAMLIB
14428 ## CC just makes a GrossModule.
14429 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14430 reload_cmds_F77='$CC -r -o $output$reload_objs'
14431 hardcode_direct_F77=no
14433 motorola)
14434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14435 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14437 esac
14438 runpath_var='LD_RUN_PATH'
14439 hardcode_shlibpath_var_F77=no
14442 sysv4.3*)
14443 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14444 hardcode_shlibpath_var_F77=no
14445 export_dynamic_flag_spec_F77='-Bexport'
14448 sysv4*MP*)
14449 if test -d /usr/nec; then
14450 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14451 hardcode_shlibpath_var_F77=no
14452 runpath_var=LD_RUN_PATH
14453 hardcode_runpath_var=yes
14454 ld_shlibs_F77=yes
14458 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14459 no_undefined_flag_F77='${wl}-z,text'
14460 archive_cmds_need_lc_F77=no
14461 hardcode_shlibpath_var_F77=no
14462 runpath_var='LD_RUN_PATH'
14464 if test "$GCC" = yes; then
14465 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14466 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14467 else
14468 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14469 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14473 sysv5* | sco3.2v5* | sco5v6*)
14474 # Note: We can NOT use -z defs as we might desire, because we do not
14475 # link with -lc, and that would cause any symbols used from libc to
14476 # always be unresolved, which means just about no library would
14477 # ever link correctly. If we're not using GNU ld we use -z text
14478 # though, which does catch some bad symbols but isn't as heavy-handed
14479 # as -z defs.
14480 no_undefined_flag_F77='${wl}-z,text'
14481 allow_undefined_flag_F77='${wl}-z,nodefs'
14482 archive_cmds_need_lc_F77=no
14483 hardcode_shlibpath_var_F77=no
14484 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14485 hardcode_libdir_separator_F77=':'
14486 link_all_deplibs_F77=yes
14487 export_dynamic_flag_spec_F77='${wl}-Bexport'
14488 runpath_var='LD_RUN_PATH'
14490 if test "$GCC" = yes; then
14491 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 else
14494 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14495 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14499 uts4*)
14500 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14501 hardcode_libdir_flag_spec_F77='-L$libdir'
14502 hardcode_shlibpath_var_F77=no
14506 ld_shlibs_F77=no
14508 esac
14511 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14512 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14513 test "$ld_shlibs_F77" = no && can_build_shared=no
14516 # Do we need to explicitly link libc?
14518 case "x$archive_cmds_need_lc_F77" in
14519 x|xyes)
14520 # Assume -lc should be added
14521 archive_cmds_need_lc_F77=yes
14523 if test "$enable_shared" = yes && test "$GCC" = yes; then
14524 case $archive_cmds_F77 in
14525 *'~'*)
14526 # FIXME: we may have to deal with multi-command sequences.
14528 '$CC '*)
14529 # Test whether the compiler implicitly links with -lc since on some
14530 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14531 # to ld, don't add -lc before -lgcc.
14532 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14533 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14534 $rm conftest*
14535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538 (eval $ac_compile) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } 2>conftest.err; then
14542 soname=conftest
14543 lib=conftest
14544 libobjs=conftest.$ac_objext
14545 deplibs=
14546 wl=$lt_prog_compiler_wl_F77
14547 pic_flag=$lt_prog_compiler_pic_F77
14548 compiler_flags=-v
14549 linker_flags=-v
14550 verstring=
14551 output_objdir=.
14552 libname=conftest
14553 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14554 allow_undefined_flag_F77=
14555 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14556 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }
14560 then
14561 archive_cmds_need_lc_F77=no
14562 else
14563 archive_cmds_need_lc_F77=yes
14565 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14566 else
14567 cat conftest.err 1>&5
14569 $rm conftest*
14570 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14571 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14573 esac
14576 esac
14578 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14579 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14580 library_names_spec=
14581 libname_spec='lib$name'
14582 soname_spec=
14583 shrext_cmds=".so"
14584 postinstall_cmds=
14585 postuninstall_cmds=
14586 finish_cmds=
14587 finish_eval=
14588 shlibpath_var=
14589 shlibpath_overrides_runpath=unknown
14590 version_type=none
14591 dynamic_linker="$host_os ld.so"
14592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14594 need_lib_prefix=unknown
14595 hardcode_into_libs=no
14597 # when you set need_version to no, make sure it does not cause -set_version
14598 # flags to be left without arguments
14599 need_version=unknown
14601 case $host_os in
14602 aix3*)
14603 version_type=linux
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14605 shlibpath_var=LIBPATH
14607 # AIX 3 has no versioning support, so we append a major version to the name.
14608 soname_spec='${libname}${release}${shared_ext}$major'
14611 aix4* | aix5*)
14612 version_type=linux
14613 need_lib_prefix=no
14614 need_version=no
14615 hardcode_into_libs=yes
14616 if test "$host_cpu" = ia64; then
14617 # AIX 5 supports IA64
14618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 else
14621 # With GCC up to 2.95.x, collect2 would create an import file
14622 # for dependence libraries. The import file would start with
14623 # the line `#! .'. This would cause the generated library to
14624 # depend on `.', always an invalid library. This was fixed in
14625 # development snapshots of GCC prior to 3.0.
14626 case $host_os in
14627 aix4 | aix4.[01] | aix4.[01].*)
14628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14629 echo ' yes '
14630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14632 else
14633 can_build_shared=no
14636 esac
14637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14638 # soname into executable. Probably we can add versioning support to
14639 # collect2, so additional links can be useful in future.
14640 if test "$aix_use_runtimelinking" = yes; then
14641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14642 # instead of lib<name>.a to let people know that these are not
14643 # typical AIX shared libraries.
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645 else
14646 # We preserve .a as extension for shared libraries through AIX4.2
14647 # and later when we are not doing run time linking.
14648 library_names_spec='${libname}${release}.a $libname.a'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LIBPATH
14655 amigaos*)
14656 library_names_spec='$libname.ixlibrary $libname.a'
14657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14658 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'
14661 beos*)
14662 library_names_spec='${libname}${shared_ext}'
14663 dynamic_linker="$host_os ld.so"
14664 shlibpath_var=LIBRARY_PATH
14667 bsdi[45]*)
14668 version_type=linux
14669 need_version=no
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14676 # the default ld.so.conf also contains /usr/contrib/lib and
14677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14678 # libtool to hard-code these into programs
14681 cygwin* | mingw* | pw32*)
14682 version_type=windows
14683 shrext_cmds=".dll"
14684 need_version=no
14685 need_lib_prefix=no
14687 case $GCC,$host_os in
14688 yes,cygwin* | yes,mingw* | yes,pw32*)
14689 library_names_spec='$libname.dll.a'
14690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14691 postinstall_cmds='base_file=`basename \${file}`~
14692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14693 dldir=$destdir/`dirname \$dlpath`~
14694 test -d \$dldir || mkdir -p \$dldir~
14695 $install_prog $dir/$dlname \$dldir/$dlname~
14696 chmod a+x \$dldir/$dlname'
14697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14698 dlpath=$dir/\$dldll~
14699 $rm \$dlpath'
14700 shlibpath_overrides_runpath=yes
14702 case $host_os in
14703 cygwin*)
14704 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14705 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14706 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14708 mingw*)
14709 # MinGW DLLs use traditional 'lib' prefix
14710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14712 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14713 # It is most probably a Windows format PATH printed by
14714 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14715 # path with ; separators, and with drive letters. We can handle the
14716 # drive letters (cygwin fileutils understands them), so leave them,
14717 # especially as we might pass files found there to a mingw objdump,
14718 # which wouldn't understand a cygwinified path. Ahh.
14719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14720 else
14721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14724 pw32*)
14725 # pw32 DLLs use 'pw' prefix rather than 'lib'
14726 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14728 esac
14732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14734 esac
14735 dynamic_linker='Win32 ld.exe'
14736 # FIXME: first we should search . and the directory the executable is in
14737 shlibpath_var=PATH
14740 darwin* | rhapsody*)
14741 dynamic_linker="$host_os dyld"
14742 version_type=darwin
14743 need_lib_prefix=no
14744 need_version=no
14745 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14746 soname_spec='${libname}${release}${major}$shared_ext'
14747 shlibpath_overrides_runpath=yes
14748 shlibpath_var=DYLD_LIBRARY_PATH
14749 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14754 dgux*)
14755 version_type=linux
14756 need_lib_prefix=no
14757 need_version=no
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14763 freebsd1*)
14764 dynamic_linker=no
14767 freebsd* | dragonfly*)
14768 # DragonFly does not have aout. When/if they implement a new
14769 # versioning mechanism, adjust this.
14770 if test -x /usr/bin/objformat; then
14771 objformat=`/usr/bin/objformat`
14772 else
14773 case $host_os in
14774 freebsd[123]*) objformat=aout ;;
14775 *) objformat=elf ;;
14776 esac
14778 version_type=freebsd-$objformat
14779 case $version_type in
14780 freebsd-elf*)
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14782 need_version=no
14783 need_lib_prefix=no
14785 freebsd-*)
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14787 need_version=yes
14789 esac
14790 shlibpath_var=LD_LIBRARY_PATH
14791 case $host_os in
14792 freebsd2*)
14793 shlibpath_overrides_runpath=yes
14795 freebsd3.[01]* | freebsdelf3.[01]*)
14796 shlibpath_overrides_runpath=yes
14797 hardcode_into_libs=yes
14799 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14800 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14801 shlibpath_overrides_runpath=no
14802 hardcode_into_libs=yes
14804 *) # from 4.6 on, and DragonFly
14805 shlibpath_overrides_runpath=yes
14806 hardcode_into_libs=yes
14808 esac
14811 gnu*)
14812 version_type=linux
14813 need_lib_prefix=no
14814 need_version=no
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 shlibpath_var=LD_LIBRARY_PATH
14818 hardcode_into_libs=yes
14821 hpux9* | hpux10* | hpux11*)
14822 # Give a soname corresponding to the major version so that dld.sl refuses to
14823 # link against other versions.
14824 version_type=sunos
14825 need_lib_prefix=no
14826 need_version=no
14827 case $host_cpu in
14828 ia64*)
14829 shrext_cmds='.so'
14830 hardcode_into_libs=yes
14831 dynamic_linker="$host_os dld.so"
14832 shlibpath_var=LD_LIBRARY_PATH
14833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 if test "X$HPUX_IA64_MODE" = X32; then
14837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14838 else
14839 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14843 hppa*64*)
14844 shrext_cmds='.sl'
14845 hardcode_into_libs=yes
14846 dynamic_linker="$host_os dld.sl"
14847 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14855 shrext_cmds='.sl'
14856 dynamic_linker="$host_os dld.sl"
14857 shlibpath_var=SHLIB_PATH
14858 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860 soname_spec='${libname}${release}${shared_ext}$major'
14862 esac
14863 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14864 postinstall_cmds='chmod 555 $lib'
14867 interix[3-9]*)
14868 version_type=linux
14869 need_lib_prefix=no
14870 need_version=no
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=no
14876 hardcode_into_libs=yes
14879 irix5* | irix6* | nonstopux*)
14880 case $host_os in
14881 nonstopux*) version_type=nonstopux ;;
14883 if test "$lt_cv_prog_gnu_ld" = yes; then
14884 version_type=linux
14885 else
14886 version_type=irix
14887 fi ;;
14888 esac
14889 need_lib_prefix=no
14890 need_version=no
14891 soname_spec='${libname}${release}${shared_ext}$major'
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14893 case $host_os in
14894 irix5* | nonstopux*)
14895 libsuff= shlibsuff=
14898 case $LD in # libtool.m4 will add one of these switches to LD
14899 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14900 libsuff= shlibsuff= libmagic=32-bit;;
14901 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14902 libsuff=32 shlibsuff=N32 libmagic=N32;;
14903 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14904 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14905 *) libsuff= shlibsuff= libmagic=never-match;;
14906 esac
14908 esac
14909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14910 shlibpath_overrides_runpath=no
14911 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14912 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14913 hardcode_into_libs=yes
14916 # No shared lib support for Linux oldld, aout, or coff.
14917 linux*oldld* | linux*aout* | linux*coff*)
14918 dynamic_linker=no
14921 # This must be Linux ELF.
14922 linux* | k*bsd*-gnu)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 shlibpath_overrides_runpath=no
14931 # This implies no fast_install, which is unacceptable.
14932 # Some rework will be needed to allow for fast_install
14933 # before this can be enabled.
14934 hardcode_into_libs=yes
14936 # Append ld.so.conf contents to the search path
14937 if test -f /etc/ld.so.conf; then
14938 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' ' '`
14939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14942 # We used to test for /lib/ld.so.1 and disable shared libraries on
14943 # powerpc, because MkLinux only supported shared libraries with the
14944 # GNU dynamic linker. Since this was broken with cross compilers,
14945 # most powerpc-linux boxes support dynamic linking these days and
14946 # people can always --disable-shared, the test was removed, and we
14947 # assume the GNU/Linux dynamic linker is in use.
14948 dynamic_linker='GNU/Linux ld.so'
14951 netbsd*)
14952 version_type=sunos
14953 need_lib_prefix=no
14954 need_version=no
14955 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14958 dynamic_linker='NetBSD (a.out) ld.so'
14959 else
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14961 soname_spec='${libname}${release}${shared_ext}$major'
14962 dynamic_linker='NetBSD ld.elf_so'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 shlibpath_overrides_runpath=yes
14966 hardcode_into_libs=yes
14969 newsos6)
14970 version_type=linux
14971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972 shlibpath_var=LD_LIBRARY_PATH
14973 shlibpath_overrides_runpath=yes
14976 nto-qnx*)
14977 version_type=linux
14978 need_lib_prefix=no
14979 need_version=no
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 shlibpath_overrides_runpath=yes
14986 openbsd*)
14987 version_type=sunos
14988 sys_lib_dlsearch_path_spec="/usr/lib"
14989 need_lib_prefix=no
14990 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14991 case $host_os in
14992 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14993 *) need_version=no ;;
14994 esac
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14999 case $host_os in
15000 openbsd2.[89] | openbsd2.[89].*)
15001 shlibpath_overrides_runpath=no
15004 shlibpath_overrides_runpath=yes
15006 esac
15007 else
15008 shlibpath_overrides_runpath=yes
15012 os2*)
15013 libname_spec='$name'
15014 shrext_cmds=".dll"
15015 need_lib_prefix=no
15016 library_names_spec='$libname${shared_ext} $libname.a'
15017 dynamic_linker='OS/2 ld.exe'
15018 shlibpath_var=LIBPATH
15021 osf3* | osf4* | osf5*)
15022 version_type=osf
15023 need_lib_prefix=no
15024 need_version=no
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15032 rdos*)
15033 dynamic_linker=no
15036 solaris*)
15037 version_type=linux
15038 need_lib_prefix=no
15039 need_version=no
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 shlibpath_var=LD_LIBRARY_PATH
15043 shlibpath_overrides_runpath=yes
15044 hardcode_into_libs=yes
15045 # ldd complains unless libraries are executable
15046 postinstall_cmds='chmod +x $lib'
15049 sunos4*)
15050 version_type=sunos
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15053 shlibpath_var=LD_LIBRARY_PATH
15054 shlibpath_overrides_runpath=yes
15055 if test "$with_gnu_ld" = yes; then
15056 need_lib_prefix=no
15058 need_version=yes
15061 sysv4 | sysv4.3*)
15062 version_type=linux
15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15064 soname_spec='${libname}${release}${shared_ext}$major'
15065 shlibpath_var=LD_LIBRARY_PATH
15066 case $host_vendor in
15067 sni)
15068 shlibpath_overrides_runpath=no
15069 need_lib_prefix=no
15070 export_dynamic_flag_spec='${wl}-Blargedynsym'
15071 runpath_var=LD_RUN_PATH
15073 siemens)
15074 need_lib_prefix=no
15076 motorola)
15077 need_lib_prefix=no
15078 need_version=no
15079 shlibpath_overrides_runpath=no
15080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15082 esac
15085 sysv4*MP*)
15086 if test -d /usr/nec ;then
15087 version_type=linux
15088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15089 soname_spec='$libname${shared_ext}.$major'
15090 shlibpath_var=LD_LIBRARY_PATH
15094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15095 version_type=freebsd-elf
15096 need_lib_prefix=no
15097 need_version=no
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15100 shlibpath_var=LD_LIBRARY_PATH
15101 hardcode_into_libs=yes
15102 if test "$with_gnu_ld" = yes; then
15103 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15104 shlibpath_overrides_runpath=no
15105 else
15106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15107 shlibpath_overrides_runpath=yes
15108 case $host_os in
15109 sco3.2v5*)
15110 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15112 esac
15114 sys_lib_dlsearch_path_spec='/usr/lib'
15117 uts4*)
15118 version_type=linux
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 shlibpath_var=LD_LIBRARY_PATH
15125 dynamic_linker=no
15127 esac
15128 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15129 echo "${ECHO_T}$dynamic_linker" >&6; }
15130 test "$dynamic_linker" = no && can_build_shared=no
15132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15133 if test "$GCC" = yes; then
15134 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15137 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15139 hardcode_action_F77=
15140 if test -n "$hardcode_libdir_flag_spec_F77" || \
15141 test -n "$runpath_var_F77" || \
15142 test "X$hardcode_automatic_F77" = "Xyes" ; then
15144 # We can hardcode non-existant directories.
15145 if test "$hardcode_direct_F77" != no &&
15146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15147 # have to relink, otherwise we might link with an installed library
15148 # when we should be linking with a yet-to-be-installed one
15149 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15150 test "$hardcode_minus_L_F77" != no; then
15151 # Linking always hardcodes the temporary library directory.
15152 hardcode_action_F77=relink
15153 else
15154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15155 hardcode_action_F77=immediate
15157 else
15158 # We cannot hardcode anything, or else we can only hardcode existing
15159 # directories.
15160 hardcode_action_F77=unsupported
15162 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15163 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15165 if test "$hardcode_action_F77" = relink; then
15166 # Fast installation is not supported
15167 enable_fast_install=no
15168 elif test "$shlibpath_overrides_runpath" = yes ||
15169 test "$enable_shared" = no; then
15170 # Fast installation is not necessary
15171 enable_fast_install=needless
15175 # The else clause should only fire when bootstrapping the
15176 # libtool distribution, otherwise you forgot to ship ltmain.sh
15177 # with your package, and you will get complaints that there are
15178 # no rules to generate ltmain.sh.
15179 if test -f "$ltmain"; then
15180 # See if we are running on zsh, and set the options which allow our commands through
15181 # without removal of \ escapes.
15182 if test -n "${ZSH_VERSION+set}" ; then
15183 setopt NO_GLOB_SUBST
15185 # Now quote all the things that may contain metacharacters while being
15186 # careful not to overquote the AC_SUBSTed values. We take copies of the
15187 # variables and quote the copies for generation of the libtool script.
15188 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15189 SED SHELL STRIP \
15190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15192 deplibs_check_method reload_flag reload_cmds need_locks \
15193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15194 lt_cv_sys_global_symbol_to_c_name_address \
15195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15196 old_postinstall_cmds old_postuninstall_cmds \
15197 compiler_F77 \
15198 CC_F77 \
15199 LD_F77 \
15200 lt_prog_compiler_wl_F77 \
15201 lt_prog_compiler_pic_F77 \
15202 lt_prog_compiler_static_F77 \
15203 lt_prog_compiler_no_builtin_flag_F77 \
15204 export_dynamic_flag_spec_F77 \
15205 thread_safe_flag_spec_F77 \
15206 whole_archive_flag_spec_F77 \
15207 enable_shared_with_static_runtimes_F77 \
15208 old_archive_cmds_F77 \
15209 old_archive_from_new_cmds_F77 \
15210 predep_objects_F77 \
15211 postdep_objects_F77 \
15212 predeps_F77 \
15213 postdeps_F77 \
15214 compiler_lib_search_path_F77 \
15215 archive_cmds_F77 \
15216 archive_expsym_cmds_F77 \
15217 postinstall_cmds_F77 \
15218 postuninstall_cmds_F77 \
15219 old_archive_from_expsyms_cmds_F77 \
15220 allow_undefined_flag_F77 \
15221 no_undefined_flag_F77 \
15222 export_symbols_cmds_F77 \
15223 hardcode_libdir_flag_spec_F77 \
15224 hardcode_libdir_flag_spec_ld_F77 \
15225 hardcode_libdir_separator_F77 \
15226 hardcode_automatic_F77 \
15227 module_cmds_F77 \
15228 module_expsym_cmds_F77 \
15229 lt_cv_prog_compiler_c_o_F77 \
15230 fix_srcfile_path_F77 \
15231 exclude_expsyms_F77 \
15232 include_expsyms_F77; do
15234 case $var in
15235 old_archive_cmds_F77 | \
15236 old_archive_from_new_cmds_F77 | \
15237 archive_cmds_F77 | \
15238 archive_expsym_cmds_F77 | \
15239 module_cmds_F77 | \
15240 module_expsym_cmds_F77 | \
15241 old_archive_from_expsyms_cmds_F77 | \
15242 export_symbols_cmds_F77 | \
15243 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15244 postinstall_cmds | postuninstall_cmds | \
15245 old_postinstall_cmds | old_postuninstall_cmds | \
15246 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15247 # Double-quote double-evaled strings.
15248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15251 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15253 esac
15254 done
15256 case $lt_echo in
15257 *'\$0 --fallback-echo"')
15258 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15260 esac
15262 cfgfile="$ofile"
15264 cat <<__EOF__ >> "$cfgfile"
15265 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15267 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15269 # Shell to use when invoking shell scripts.
15270 SHELL=$lt_SHELL
15272 # Whether or not to build shared libraries.
15273 build_libtool_libs=$enable_shared
15275 # Whether or not to build static libraries.
15276 build_old_libs=$enable_static
15278 # Whether or not to add -lc for building shared libraries.
15279 build_libtool_need_lc=$archive_cmds_need_lc_F77
15281 # Whether or not to disallow shared libs when runtime libs are static
15282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15284 # Whether or not to optimize for fast installation.
15285 fast_install=$enable_fast_install
15287 # The host system.
15288 host_alias=$host_alias
15289 host=$host
15290 host_os=$host_os
15292 # The build system.
15293 build_alias=$build_alias
15294 build=$build
15295 build_os=$build_os
15297 # An echo program that does not interpret backslashes.
15298 echo=$lt_echo
15300 # The archiver.
15301 AR=$lt_AR
15302 AR_FLAGS=$lt_AR_FLAGS
15304 # A C compiler.
15305 LTCC=$lt_LTCC
15307 # LTCC compiler flags.
15308 LTCFLAGS=$lt_LTCFLAGS
15310 # A language-specific compiler.
15311 CC=$lt_compiler_F77
15313 # Is the compiler the GNU C compiler?
15314 with_gcc=$GCC_F77
15316 # An ERE matcher.
15317 EGREP=$lt_EGREP
15319 # The linker used to build libraries.
15320 LD=$lt_LD_F77
15322 # Whether we need hard or soft links.
15323 LN_S=$lt_LN_S
15325 # A BSD-compatible nm program.
15326 NM=$lt_NM
15328 # A symbol stripping program
15329 STRIP=$lt_STRIP
15331 # Used to examine libraries when file_magic_cmd begins "file"
15332 MAGIC_CMD=$MAGIC_CMD
15334 # Used on cygwin: DLL creation program.
15335 DLLTOOL="$DLLTOOL"
15337 # Used on cygwin: object dumper.
15338 OBJDUMP="$OBJDUMP"
15340 # Used on cygwin: assembler.
15341 AS="$AS"
15343 # The name of the directory that contains temporary libtool files.
15344 objdir=$objdir
15346 # How to create reloadable object files.
15347 reload_flag=$lt_reload_flag
15348 reload_cmds=$lt_reload_cmds
15350 # How to pass a linker flag through the compiler.
15351 wl=$lt_lt_prog_compiler_wl_F77
15353 # Object file suffix (normally "o").
15354 objext="$ac_objext"
15356 # Old archive suffix (normally "a").
15357 libext="$libext"
15359 # Shared library suffix (normally ".so").
15360 shrext_cmds='$shrext_cmds'
15362 # Executable file suffix (normally "").
15363 exeext="$exeext"
15365 # Additional compiler flags for building library objects.
15366 pic_flag=$lt_lt_prog_compiler_pic_F77
15367 pic_mode=$pic_mode
15369 # What is the maximum length of a command?
15370 max_cmd_len=$lt_cv_sys_max_cmd_len
15372 # Does compiler simultaneously support -c and -o options?
15373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15375 # Must we lock files when doing compilation?
15376 need_locks=$lt_need_locks
15378 # Do we need the lib prefix for modules?
15379 need_lib_prefix=$need_lib_prefix
15381 # Do we need a version for libraries?
15382 need_version=$need_version
15384 # Whether dlopen is supported.
15385 dlopen_support=$enable_dlopen
15387 # Whether dlopen of programs is supported.
15388 dlopen_self=$enable_dlopen_self
15390 # Whether dlopen of statically linked programs is supported.
15391 dlopen_self_static=$enable_dlopen_self_static
15393 # Compiler flag to prevent dynamic linking.
15394 link_static_flag=$lt_lt_prog_compiler_static_F77
15396 # Compiler flag to turn off builtin functions.
15397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15399 # Compiler flag to allow reflexive dlopens.
15400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15402 # Compiler flag to generate shared objects directly from archives.
15403 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15405 # Compiler flag to generate thread-safe objects.
15406 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15408 # Library versioning type.
15409 version_type=$version_type
15411 # Format of library name prefix.
15412 libname_spec=$lt_libname_spec
15414 # List of archive names. First name is the real one, the rest are links.
15415 # The last name is the one that the linker finds with -lNAME.
15416 library_names_spec=$lt_library_names_spec
15418 # The coded name of the library, if different from the real name.
15419 soname_spec=$lt_soname_spec
15421 # Commands used to build and install an old-style archive.
15422 RANLIB=$lt_RANLIB
15423 old_archive_cmds=$lt_old_archive_cmds_F77
15424 old_postinstall_cmds=$lt_old_postinstall_cmds
15425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15427 # Create an old-style archive from a shared archive.
15428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15430 # Create a temporary old-style archive to link instead of a shared archive.
15431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15433 # Commands used to build and install a shared archive.
15434 archive_cmds=$lt_archive_cmds_F77
15435 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15436 postinstall_cmds=$lt_postinstall_cmds
15437 postuninstall_cmds=$lt_postuninstall_cmds
15439 # Commands used to build a loadable module (assumed same as above if empty)
15440 module_cmds=$lt_module_cmds_F77
15441 module_expsym_cmds=$lt_module_expsym_cmds_F77
15443 # Commands to strip libraries.
15444 old_striplib=$lt_old_striplib
15445 striplib=$lt_striplib
15447 # Dependencies to place before the objects being linked to create a
15448 # shared library.
15449 predep_objects=$lt_predep_objects_F77
15451 # Dependencies to place after the objects being linked to create a
15452 # shared library.
15453 postdep_objects=$lt_postdep_objects_F77
15455 # Dependencies to place before the objects being linked to create a
15456 # shared library.
15457 predeps=$lt_predeps_F77
15459 # Dependencies to place after the objects being linked to create a
15460 # shared library.
15461 postdeps=$lt_postdeps_F77
15463 # The library search path used internally by the compiler when linking
15464 # a shared library.
15465 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15467 # Method to check whether dependent libraries are shared objects.
15468 deplibs_check_method=$lt_deplibs_check_method
15470 # Command to use when deplibs_check_method == file_magic.
15471 file_magic_cmd=$lt_file_magic_cmd
15473 # Flag that allows shared libraries with undefined symbols to be built.
15474 allow_undefined_flag=$lt_allow_undefined_flag_F77
15476 # Flag that forces no undefined symbols.
15477 no_undefined_flag=$lt_no_undefined_flag_F77
15479 # Commands used to finish a libtool library installation in a directory.
15480 finish_cmds=$lt_finish_cmds
15482 # Same as above, but a single script fragment to be evaled but not shown.
15483 finish_eval=$lt_finish_eval
15485 # Take the output of nm and produce a listing of raw symbols and C names.
15486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15488 # Transform the output of nm in a proper C declaration
15489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15491 # Transform the output of nm in a C name address pair
15492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15494 # This is the shared library runtime path variable.
15495 runpath_var=$runpath_var
15497 # This is the shared library path variable.
15498 shlibpath_var=$shlibpath_var
15500 # Is shlibpath searched before the hard-coded library search path?
15501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15503 # How to hardcode a shared library path into an executable.
15504 hardcode_action=$hardcode_action_F77
15506 # Whether we should hardcode library paths into libraries.
15507 hardcode_into_libs=$hardcode_into_libs
15509 # Flag to hardcode \$libdir into a binary during linking.
15510 # This must work even if \$libdir does not exist.
15511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15513 # If ld is used when linking, flag to hardcode \$libdir into
15514 # a binary during linking. This must work even if \$libdir does
15515 # not exist.
15516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15518 # Whether we need a single -rpath flag with a separated argument.
15519 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15521 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15522 # resulting binary.
15523 hardcode_direct=$hardcode_direct_F77
15525 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15526 # resulting binary.
15527 hardcode_minus_L=$hardcode_minus_L_F77
15529 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15530 # the resulting binary.
15531 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15533 # Set to yes if building a shared library automatically hardcodes DIR into the library
15534 # and all subsequent libraries and executables linked against it.
15535 hardcode_automatic=$hardcode_automatic_F77
15537 # Variables whose values should be saved in libtool wrapper scripts and
15538 # restored at relink time.
15539 variables_saved_for_relink="$variables_saved_for_relink"
15541 # Whether libtool must link a program against all its dependency libraries.
15542 link_all_deplibs=$link_all_deplibs_F77
15544 # Compile-time system search path for libraries
15545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15547 # Run-time system search path for libraries
15548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15550 # Fix the shell variable \$srcfile for the compiler.
15551 fix_srcfile_path=$lt_fix_srcfile_path
15553 # Set to yes if exported symbols are required.
15554 always_export_symbols=$always_export_symbols_F77
15556 # The commands to list exported symbols.
15557 export_symbols_cmds=$lt_export_symbols_cmds_F77
15559 # The commands to extract the exported symbol list from a shared archive.
15560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15562 # Symbols that should not be listed in the preloaded symbols.
15563 exclude_expsyms=$lt_exclude_expsyms_F77
15565 # Symbols that must always be exported.
15566 include_expsyms=$lt_include_expsyms_F77
15568 # ### END LIBTOOL TAG CONFIG: $tagname
15570 __EOF__
15573 else
15574 # If there is no Makefile yet, we rely on a make rule to execute
15575 # `config.status --recheck' to rerun these tests and create the
15576 # libtool script then.
15577 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15578 if test -f "$ltmain_in"; then
15579 test -f Makefile && make "$ltmain"
15584 ac_ext=c
15585 ac_cpp='$CPP $CPPFLAGS'
15586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15590 CC="$lt_save_CC"
15592 else
15593 tagname=""
15597 GCJ)
15598 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15601 # Source file extension for Java test sources.
15602 ac_ext=java
15604 # Object file extension for compiled Java test sources.
15605 objext=o
15606 objext_GCJ=$objext
15608 # Code to be used in simple compile tests
15609 lt_simple_compile_test_code="class foo {}"
15611 # Code to be used in simple link tests
15612 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15614 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15616 # If no C compiler was specified, use CC.
15617 LTCC=${LTCC-"$CC"}
15619 # If no C compiler flags were specified, use CFLAGS.
15620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15622 # Allow CC to be a program name with arguments.
15623 compiler=$CC
15626 # save warnings/boilerplate of simple test code
15627 ac_outfile=conftest.$ac_objext
15628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15630 _lt_compiler_boilerplate=`cat conftest.err`
15631 $rm conftest*
15633 ac_outfile=conftest.$ac_objext
15634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15636 _lt_linker_boilerplate=`cat conftest.err`
15637 $rm conftest*
15640 # Allow CC to be a program name with arguments.
15641 lt_save_CC="$CC"
15642 CC=${GCJ-"gcj"}
15643 compiler=$CC
15644 compiler_GCJ=$CC
15645 for cc_temp in $compiler""; do
15646 case $cc_temp in
15647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15649 \-*) ;;
15650 *) break;;
15651 esac
15652 done
15653 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15656 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15657 archive_cmds_need_lc_GCJ=no
15659 old_archive_cmds_GCJ=$old_archive_cmds
15662 lt_prog_compiler_no_builtin_flag_GCJ=
15664 if test "$GCC" = yes; then
15665 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15668 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15669 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15670 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673 lt_cv_prog_compiler_rtti_exceptions=no
15674 ac_outfile=conftest.$ac_objext
15675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15676 lt_compiler_flag="-fno-rtti -fno-exceptions"
15677 # Insert the option either (1) after the last *FLAGS variable, or
15678 # (2) before a word containing "conftest.", or (3) at the end.
15679 # Note that $ac_compile itself does not contain backslashes and begins
15680 # with a dollar sign (not a hyphen), so the echo should work correctly.
15681 # The option is referenced via a variable to avoid confusing sed.
15682 lt_compile=`echo "$ac_compile" | $SED \
15683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15685 -e 's:$: $lt_compiler_flag:'`
15686 (eval echo "\"\$as_me:15686: $lt_compile\"" >&5)
15687 (eval "$lt_compile" 2>conftest.err)
15688 ac_status=$?
15689 cat conftest.err >&5
15690 echo "$as_me:15690: \$? = $ac_status" >&5
15691 if (exit $ac_status) && test -s "$ac_outfile"; then
15692 # The compiler can only warn and ignore the option if not recognized
15693 # So say no if there are warnings other than the usual output.
15694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15697 lt_cv_prog_compiler_rtti_exceptions=yes
15700 $rm conftest*
15703 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15704 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15707 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15708 else
15714 lt_prog_compiler_wl_GCJ=
15715 lt_prog_compiler_pic_GCJ=
15716 lt_prog_compiler_static_GCJ=
15718 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15721 if test "$GCC" = yes; then
15722 lt_prog_compiler_wl_GCJ='-Wl,'
15723 lt_prog_compiler_static_GCJ='-static'
15725 case $host_os in
15726 aix*)
15727 # All AIX code is PIC.
15728 if test "$host_cpu" = ia64; then
15729 # AIX 5 now supports IA64 processor
15730 lt_prog_compiler_static_GCJ='-Bstatic'
15734 amigaos*)
15735 # FIXME: we need at least 68020 code to build shared libraries, but
15736 # adding the `-m68020' flag to GCC prevents building anything better,
15737 # like `-m68040'.
15738 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15742 # PIC is the default for these OSes.
15745 mingw* | cygwin* | pw32* | os2*)
15746 # This hack is so that the source file can tell whether it is being
15747 # built for inclusion in a dll (and should export symbols for example).
15748 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15749 # (--disable-auto-import) libraries
15750 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15753 darwin* | rhapsody*)
15754 # PIC is the default on this platform
15755 # Common symbols not allowed in MH_DYLIB files
15756 lt_prog_compiler_pic_GCJ='-fno-common'
15759 interix[3-9]*)
15760 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15761 # Instead, we relocate shared libraries at runtime.
15764 msdosdjgpp*)
15765 # Just because we use GCC doesn't mean we suddenly get shared libraries
15766 # on systems that don't support them.
15767 lt_prog_compiler_can_build_shared_GCJ=no
15768 enable_shared=no
15771 sysv4*MP*)
15772 if test -d /usr/nec; then
15773 lt_prog_compiler_pic_GCJ=-Kconform_pic
15777 hpux*)
15778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15779 # not for PA HP-UX.
15780 case $host_cpu in
15781 hppa*64*|ia64*)
15782 # +Z the default
15785 lt_prog_compiler_pic_GCJ='-fPIC'
15787 esac
15791 lt_prog_compiler_pic_GCJ='-fPIC'
15793 esac
15794 else
15795 # PORTME Check for flag to pass linker flags through the system compiler.
15796 case $host_os in
15797 aix*)
15798 lt_prog_compiler_wl_GCJ='-Wl,'
15799 if test "$host_cpu" = ia64; then
15800 # AIX 5 now supports IA64 processor
15801 lt_prog_compiler_static_GCJ='-Bstatic'
15802 else
15803 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15806 darwin*)
15807 # PIC is the default on this platform
15808 # Common symbols not allowed in MH_DYLIB files
15809 case $cc_basename in
15810 xlc*)
15811 lt_prog_compiler_pic_GCJ='-qnocommon'
15812 lt_prog_compiler_wl_GCJ='-Wl,'
15814 esac
15817 mingw* | cygwin* | pw32* | os2*)
15818 # This hack is so that the source file can tell whether it is being
15819 # built for inclusion in a dll (and should export symbols for example).
15820 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15823 hpux9* | hpux10* | hpux11*)
15824 lt_prog_compiler_wl_GCJ='-Wl,'
15825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15826 # not for PA HP-UX.
15827 case $host_cpu in
15828 hppa*64*|ia64*)
15829 # +Z the default
15832 lt_prog_compiler_pic_GCJ='+Z'
15834 esac
15835 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15836 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15839 irix5* | irix6* | nonstopux*)
15840 lt_prog_compiler_wl_GCJ='-Wl,'
15841 # PIC (with -KPIC) is the default.
15842 lt_prog_compiler_static_GCJ='-non_shared'
15845 newsos6)
15846 lt_prog_compiler_pic_GCJ='-KPIC'
15847 lt_prog_compiler_static_GCJ='-Bstatic'
15850 linux* | k*bsd*-gnu)
15851 case $cc_basename in
15852 icc* | ecc*)
15853 lt_prog_compiler_wl_GCJ='-Wl,'
15854 lt_prog_compiler_pic_GCJ='-KPIC'
15855 lt_prog_compiler_static_GCJ='-static'
15857 pgcc* | pgf77* | pgf90* | pgf95*)
15858 # Portland Group compilers (*not* the Pentium gcc compiler,
15859 # which looks to be a dead project)
15860 lt_prog_compiler_wl_GCJ='-Wl,'
15861 lt_prog_compiler_pic_GCJ='-fpic'
15862 lt_prog_compiler_static_GCJ='-Bstatic'
15864 ccc*)
15865 lt_prog_compiler_wl_GCJ='-Wl,'
15866 # All Alpha code is PIC.
15867 lt_prog_compiler_static_GCJ='-non_shared'
15870 case `$CC -V 2>&1 | sed 5q` in
15871 *Sun\ C*)
15872 # Sun C 5.9
15873 lt_prog_compiler_pic_GCJ='-KPIC'
15874 lt_prog_compiler_static_GCJ='-Bstatic'
15875 lt_prog_compiler_wl_GCJ='-Wl,'
15877 *Sun\ F*)
15878 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15879 lt_prog_compiler_pic_GCJ='-KPIC'
15880 lt_prog_compiler_static_GCJ='-Bstatic'
15881 lt_prog_compiler_wl_GCJ=''
15883 esac
15885 esac
15888 osf3* | osf4* | osf5*)
15889 lt_prog_compiler_wl_GCJ='-Wl,'
15890 # All OSF/1 code is PIC.
15891 lt_prog_compiler_static_GCJ='-non_shared'
15894 rdos*)
15895 lt_prog_compiler_static_GCJ='-non_shared'
15898 solaris*)
15899 lt_prog_compiler_pic_GCJ='-KPIC'
15900 lt_prog_compiler_static_GCJ='-Bstatic'
15901 case $cc_basename in
15902 f77* | f90* | f95*)
15903 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15905 lt_prog_compiler_wl_GCJ='-Wl,';;
15906 esac
15909 sunos4*)
15910 lt_prog_compiler_wl_GCJ='-Qoption ld '
15911 lt_prog_compiler_pic_GCJ='-PIC'
15912 lt_prog_compiler_static_GCJ='-Bstatic'
15915 sysv4 | sysv4.2uw2* | sysv4.3*)
15916 lt_prog_compiler_wl_GCJ='-Wl,'
15917 lt_prog_compiler_pic_GCJ='-KPIC'
15918 lt_prog_compiler_static_GCJ='-Bstatic'
15921 sysv4*MP*)
15922 if test -d /usr/nec ;then
15923 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15924 lt_prog_compiler_static_GCJ='-Bstatic'
15928 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15929 lt_prog_compiler_wl_GCJ='-Wl,'
15930 lt_prog_compiler_pic_GCJ='-KPIC'
15931 lt_prog_compiler_static_GCJ='-Bstatic'
15934 unicos*)
15935 lt_prog_compiler_wl_GCJ='-Wl,'
15936 lt_prog_compiler_can_build_shared_GCJ=no
15939 uts4*)
15940 lt_prog_compiler_pic_GCJ='-pic'
15941 lt_prog_compiler_static_GCJ='-Bstatic'
15945 lt_prog_compiler_can_build_shared_GCJ=no
15947 esac
15950 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15951 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15954 # Check to make sure the PIC flag actually works.
15956 if test -n "$lt_prog_compiler_pic_GCJ"; then
15958 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15959 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15960 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 else
15963 lt_prog_compiler_pic_works_GCJ=no
15964 ac_outfile=conftest.$ac_objext
15965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15966 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15967 # Insert the option either (1) after the last *FLAGS variable, or
15968 # (2) before a word containing "conftest.", or (3) at the end.
15969 # Note that $ac_compile itself does not contain backslashes and begins
15970 # with a dollar sign (not a hyphen), so the echo should work correctly.
15971 # The option is referenced via a variable to avoid confusing sed.
15972 lt_compile=`echo "$ac_compile" | $SED \
15973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15975 -e 's:$: $lt_compiler_flag:'`
15976 (eval echo "\"\$as_me:15976: $lt_compile\"" >&5)
15977 (eval "$lt_compile" 2>conftest.err)
15978 ac_status=$?
15979 cat conftest.err >&5
15980 echo "$as_me:15980: \$? = $ac_status" >&5
15981 if (exit $ac_status) && test -s "$ac_outfile"; then
15982 # The compiler can only warn and ignore the option if not recognized
15983 # So say no if there are warnings other than the usual output.
15984 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15987 lt_prog_compiler_pic_works_GCJ=yes
15990 $rm conftest*
15993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15994 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15996 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15997 case $lt_prog_compiler_pic_GCJ in
15998 "" | " "*) ;;
15999 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16000 esac
16001 else
16002 lt_prog_compiler_pic_GCJ=
16003 lt_prog_compiler_can_build_shared_GCJ=no
16007 case $host_os in
16008 # For platforms which do not support PIC, -DPIC is meaningless:
16009 *djgpp*)
16010 lt_prog_compiler_pic_GCJ=
16013 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16015 esac
16018 # Check to make sure the static flag actually works.
16020 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16021 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16022 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16023 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16025 else
16026 lt_prog_compiler_static_works_GCJ=no
16027 save_LDFLAGS="$LDFLAGS"
16028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16031 # The linker can only warn and ignore the option if not recognized
16032 # So say no if there are warnings
16033 if test -s conftest.err; then
16034 # Append any errors to the config.log.
16035 cat conftest.err 1>&5
16036 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16038 if diff conftest.exp conftest.er2 >/dev/null; then
16039 lt_prog_compiler_static_works_GCJ=yes
16041 else
16042 lt_prog_compiler_static_works_GCJ=yes
16045 $rm conftest*
16046 LDFLAGS="$save_LDFLAGS"
16049 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16050 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16052 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16054 else
16055 lt_prog_compiler_static_GCJ=
16059 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16060 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16061 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064 lt_cv_prog_compiler_c_o_GCJ=no
16065 $rm -r conftest 2>/dev/null
16066 mkdir conftest
16067 cd conftest
16068 mkdir out
16069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16071 lt_compiler_flag="-o out/conftest2.$ac_objext"
16072 # Insert the option either (1) after the last *FLAGS variable, or
16073 # (2) before a word containing "conftest.", or (3) at the end.
16074 # Note that $ac_compile itself does not contain backslashes and begins
16075 # with a dollar sign (not a hyphen), so the echo should work correctly.
16076 lt_compile=`echo "$ac_compile" | $SED \
16077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16079 -e 's:$: $lt_compiler_flag:'`
16080 (eval echo "\"\$as_me:16080: $lt_compile\"" >&5)
16081 (eval "$lt_compile" 2>out/conftest.err)
16082 ac_status=$?
16083 cat out/conftest.err >&5
16084 echo "$as_me:16084: \$? = $ac_status" >&5
16085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16086 then
16087 # The compiler can only warn and ignore the option if not recognized
16088 # So say no if there are warnings
16089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16092 lt_cv_prog_compiler_c_o_GCJ=yes
16095 chmod u+w . 2>&5
16096 $rm conftest*
16097 # SGI C++ compiler will create directory out/ii_files/ for
16098 # template instantiation
16099 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16100 $rm out/* && rmdir out
16101 cd ..
16102 rmdir conftest
16103 $rm conftest*
16106 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16107 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16110 hard_links="nottested"
16111 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16112 # do not overwrite the value of need_locks provided by the user
16113 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16114 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16115 hard_links=yes
16116 $rm conftest*
16117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16118 touch conftest.a
16119 ln conftest.a conftest.b 2>&5 || hard_links=no
16120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16121 { echo "$as_me:$LINENO: result: $hard_links" >&5
16122 echo "${ECHO_T}$hard_links" >&6; }
16123 if test "$hard_links" = no; then
16124 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16125 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16126 need_locks=warn
16128 else
16129 need_locks=no
16132 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16133 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16135 runpath_var=
16136 allow_undefined_flag_GCJ=
16137 enable_shared_with_static_runtimes_GCJ=no
16138 archive_cmds_GCJ=
16139 archive_expsym_cmds_GCJ=
16140 old_archive_From_new_cmds_GCJ=
16141 old_archive_from_expsyms_cmds_GCJ=
16142 export_dynamic_flag_spec_GCJ=
16143 whole_archive_flag_spec_GCJ=
16144 thread_safe_flag_spec_GCJ=
16145 hardcode_libdir_flag_spec_GCJ=
16146 hardcode_libdir_flag_spec_ld_GCJ=
16147 hardcode_libdir_separator_GCJ=
16148 hardcode_direct_GCJ=no
16149 hardcode_minus_L_GCJ=no
16150 hardcode_shlibpath_var_GCJ=unsupported
16151 link_all_deplibs_GCJ=unknown
16152 hardcode_automatic_GCJ=no
16153 module_cmds_GCJ=
16154 module_expsym_cmds_GCJ=
16155 always_export_symbols_GCJ=no
16156 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16157 # include_expsyms should be a list of space-separated symbols to be *always*
16158 # included in the symbol list
16159 include_expsyms_GCJ=
16160 # exclude_expsyms can be an extended regexp of symbols to exclude
16161 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16162 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16163 # as well as any symbol that contains `d'.
16164 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16165 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16166 # platforms (ab)use it in PIC code, but their linkers get confused if
16167 # the symbol is explicitly referenced. Since portable code cannot
16168 # rely on this symbol name, it's probably fine to never include it in
16169 # preloaded symbol tables.
16170 extract_expsyms_cmds=
16171 # Just being paranoid about ensuring that cc_basename is set.
16172 for cc_temp in $compiler""; do
16173 case $cc_temp in
16174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16176 \-*) ;;
16177 *) break;;
16178 esac
16179 done
16180 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16182 case $host_os in
16183 cygwin* | mingw* | pw32*)
16184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16185 # When not using gcc, we currently assume that we are using
16186 # Microsoft Visual C++.
16187 if test "$GCC" != yes; then
16188 with_gnu_ld=no
16191 interix*)
16192 # we just hope/assume this is gcc and not c89 (= MSVC++)
16193 with_gnu_ld=yes
16195 openbsd*)
16196 with_gnu_ld=no
16198 esac
16200 ld_shlibs_GCJ=yes
16201 if test "$with_gnu_ld" = yes; then
16202 # If archive_cmds runs LD, not CC, wlarc should be empty
16203 wlarc='${wl}'
16205 # Set some defaults for GNU ld with shared library support. These
16206 # are reset later if shared libraries are not supported. Putting them
16207 # here allows them to be overridden if necessary.
16208 runpath_var=LD_RUN_PATH
16209 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16210 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16211 # ancient GNU ld didn't support --whole-archive et. al.
16212 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16213 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16214 else
16215 whole_archive_flag_spec_GCJ=
16217 supports_anon_versioning=no
16218 case `$LD -v 2>/dev/null` in
16219 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16220 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16221 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16222 *\ 2.11.*) ;; # other 2.11 versions
16223 *) supports_anon_versioning=yes ;;
16224 esac
16226 # See if GNU ld supports shared libraries.
16227 case $host_os in
16228 aix3* | aix4* | aix5*)
16229 # On AIX/PPC, the GNU linker is very broken
16230 if test "$host_cpu" != ia64; then
16231 ld_shlibs_GCJ=no
16232 cat <<EOF 1>&2
16234 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16235 *** to be unable to reliably create shared libraries on AIX.
16236 *** Therefore, libtool is disabling shared libraries support. If you
16237 *** really care for shared libraries, you may want to modify your PATH
16238 *** so that a non-GNU linker is found, and then restart.
16244 amigaos*)
16245 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)'
16246 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16247 hardcode_minus_L_GCJ=yes
16249 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16250 # that the semantics of dynamic libraries on AmigaOS, at least up
16251 # to version 4, is to share data among multiple programs linked
16252 # with the same dynamic library. Since this doesn't match the
16253 # behavior of shared libraries on other platforms, we can't use
16254 # them.
16255 ld_shlibs_GCJ=no
16258 beos*)
16259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16260 allow_undefined_flag_GCJ=unsupported
16261 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16262 # support --undefined. This deserves some investigation. FIXME
16263 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16264 else
16265 ld_shlibs_GCJ=no
16269 cygwin* | mingw* | pw32*)
16270 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16271 # as there is no search path for DLLs.
16272 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16273 allow_undefined_flag_GCJ=unsupported
16274 always_export_symbols_GCJ=no
16275 enable_shared_with_static_runtimes_GCJ=yes
16276 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16278 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16279 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16280 # If the export-symbols file already is a .def file (1st line
16281 # is EXPORTS), use it as is; otherwise, prepend...
16282 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16283 cp $export_symbols $output_objdir/$soname.def;
16284 else
16285 echo EXPORTS > $output_objdir/$soname.def;
16286 cat $export_symbols >> $output_objdir/$soname.def;
16288 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16289 else
16290 ld_shlibs_GCJ=no
16294 interix[3-9]*)
16295 hardcode_direct_GCJ=no
16296 hardcode_shlibpath_var_GCJ=no
16297 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16298 export_dynamic_flag_spec_GCJ='${wl}-E'
16299 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16300 # Instead, shared libraries are loaded at an image base (0x10000000 by
16301 # default) and relocated if they conflict, which is a slow very memory
16302 # consuming and fragmenting process. To avoid this, we pick a random,
16303 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16304 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16305 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'
16306 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'
16309 gnu* | linux* | k*bsd*-gnu)
16310 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311 tmp_addflag=
16312 case $cc_basename,$host_cpu in
16313 pgcc*) # Portland Group C compiler
16314 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'
16315 tmp_addflag=' $pic_flag'
16317 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16318 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'
16319 tmp_addflag=' $pic_flag -Mnomain' ;;
16320 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16321 tmp_addflag=' -i_dynamic' ;;
16322 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16323 tmp_addflag=' -i_dynamic -nofor_main' ;;
16324 ifc* | ifort*) # Intel Fortran compiler
16325 tmp_addflag=' -nofor_main' ;;
16326 esac
16327 case `$CC -V 2>&1 | sed 5q` in
16328 *Sun\ C*) # Sun C 5.9
16329 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'
16330 tmp_sharedflag='-G' ;;
16331 *Sun\ F*) # Sun Fortran 8.3
16332 tmp_sharedflag='-G' ;;
16334 tmp_sharedflag='-shared' ;;
16335 esac
16336 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16338 if test $supports_anon_versioning = yes; then
16339 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16341 $echo "local: *; };" >> $output_objdir/$libname.ver~
16342 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16344 else
16345 ld_shlibs_GCJ=no
16349 netbsd*)
16350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16351 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16352 wlarc=
16353 else
16354 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16355 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16359 solaris*)
16360 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16361 ld_shlibs_GCJ=no
16362 cat <<EOF 1>&2
16364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16365 *** create shared libraries on Solaris systems. Therefore, libtool
16366 *** is disabling shared libraries support. We urge you to upgrade GNU
16367 *** binutils to release 2.9.1 or newer. Another option is to modify
16368 *** your PATH or compiler configuration so that the native linker is
16369 *** used, and then restart.
16372 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16374 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16375 else
16376 ld_shlibs_GCJ=no
16380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16381 case `$LD -v 2>&1` in
16382 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16383 ld_shlibs_GCJ=no
16384 cat <<_LT_EOF 1>&2
16386 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16387 *** reliably create shared libraries on SCO systems. Therefore, libtool
16388 *** is disabling shared libraries support. We urge you to upgrade GNU
16389 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16390 *** your PATH or compiler configuration so that the native linker is
16391 *** used, and then restart.
16393 _LT_EOF
16396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16397 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16398 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16399 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16400 else
16401 ld_shlibs_GCJ=no
16404 esac
16407 sunos4*)
16408 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16409 wlarc=
16410 hardcode_direct_GCJ=yes
16411 hardcode_shlibpath_var_GCJ=no
16415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16416 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16417 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16418 else
16419 ld_shlibs_GCJ=no
16422 esac
16424 if test "$ld_shlibs_GCJ" = no; then
16425 runpath_var=
16426 hardcode_libdir_flag_spec_GCJ=
16427 export_dynamic_flag_spec_GCJ=
16428 whole_archive_flag_spec_GCJ=
16430 else
16431 # PORTME fill in a description of your system's linker (not GNU ld)
16432 case $host_os in
16433 aix3*)
16434 allow_undefined_flag_GCJ=unsupported
16435 always_export_symbols_GCJ=yes
16436 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'
16437 # Note: this linker hardcodes the directories in LIBPATH if there
16438 # are no directories specified by -L.
16439 hardcode_minus_L_GCJ=yes
16440 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16441 # Neither direct hardcoding nor static linking is supported with a
16442 # broken collect2.
16443 hardcode_direct_GCJ=unsupported
16447 aix4* | aix5*)
16448 if test "$host_cpu" = ia64; then
16449 # On IA64, the linker does run time linking by default, so we don't
16450 # have to do anything special.
16451 aix_use_runtimelinking=no
16452 exp_sym_flag='-Bexport'
16453 no_entry_flag=""
16454 else
16455 # If we're using GNU nm, then we don't want the "-C" option.
16456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16458 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'
16459 else
16460 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'
16462 aix_use_runtimelinking=no
16464 # Test if we are trying to use run time linking or normal
16465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16466 # need to do runtime linking.
16467 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16468 for ld_flag in $LDFLAGS; do
16469 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16470 aix_use_runtimelinking=yes
16471 break
16473 done
16475 esac
16477 exp_sym_flag='-bexport'
16478 no_entry_flag='-bnoentry'
16481 # When large executables or shared objects are built, AIX ld can
16482 # have problems creating the table of contents. If linking a library
16483 # or program results in "error TOC overflow" add -mminimal-toc to
16484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16487 archive_cmds_GCJ=''
16488 hardcode_direct_GCJ=yes
16489 hardcode_libdir_separator_GCJ=':'
16490 link_all_deplibs_GCJ=yes
16492 if test "$GCC" = yes; then
16493 case $host_os in aix4.[012]|aix4.[012].*)
16494 # We only want to do this on AIX 4.2 and lower, the check
16495 # below for broken collect2 doesn't work under 4.3+
16496 collect2name=`${CC} -print-prog-name=collect2`
16497 if test -f "$collect2name" && \
16498 strings "$collect2name" | grep resolve_lib_name >/dev/null
16499 then
16500 # We have reworked collect2
16502 else
16503 # We have old collect2
16504 hardcode_direct_GCJ=unsupported
16505 # It fails to find uninstalled libraries when the uninstalled
16506 # path is not listed in the libpath. Setting hardcode_minus_L
16507 # to unsupported forces relinking
16508 hardcode_minus_L_GCJ=yes
16509 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16510 hardcode_libdir_separator_GCJ=
16513 esac
16514 shared_flag='-shared'
16515 if test "$aix_use_runtimelinking" = yes; then
16516 shared_flag="$shared_flag "'${wl}-G'
16518 else
16519 # not using gcc
16520 if test "$host_cpu" = ia64; then
16521 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16522 # chokes on -Wl,-G. The following line is correct:
16523 shared_flag='-G'
16524 else
16525 if test "$aix_use_runtimelinking" = yes; then
16526 shared_flag='${wl}-G'
16527 else
16528 shared_flag='${wl}-bM:SRE'
16533 # It seems that -bexpall does not export symbols beginning with
16534 # underscore (_), so it is better to generate a list of symbols to export.
16535 always_export_symbols_GCJ=yes
16536 if test "$aix_use_runtimelinking" = yes; then
16537 # Warning - without using the other runtime loading flags (-brtl),
16538 # -berok will link without error, but may produce a broken library.
16539 allow_undefined_flag_GCJ='-berok'
16540 # Determine the default libpath from the value encoded in an empty executable.
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16549 main ()
16553 return 0;
16555 _ACEOF
16556 rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_link") 2>conftest.er1
16564 ac_status=$?
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } && {
16570 test -z "$ac_c_werror_flag" ||
16571 test ! -s conftest.err
16572 } && test -s conftest$ac_exeext &&
16573 $as_test_x conftest$ac_exeext; then
16575 lt_aix_libpath_sed='
16576 /Import File Strings/,/^$/ {
16577 /^0/ {
16578 s/^0 *\(.*\)$/\1/
16582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16583 # Check for a 64-bit object if we didn't find anything.
16584 if test -z "$aix_libpath"; then
16585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16595 conftest$ac_exeext conftest.$ac_ext
16596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16598 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16599 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"
16600 else
16601 if test "$host_cpu" = ia64; then
16602 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16603 allow_undefined_flag_GCJ="-z nodefs"
16604 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"
16605 else
16606 # Determine the default libpath from the value encoded in an empty executable.
16607 cat >conftest.$ac_ext <<_ACEOF
16608 /* confdefs.h. */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16615 main ()
16619 return 0;
16621 _ACEOF
16622 rm -f conftest.$ac_objext conftest$ac_exeext
16623 if { (ac_try="$ac_link"
16624 case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_link") 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } && {
16636 test -z "$ac_c_werror_flag" ||
16637 test ! -s conftest.err
16638 } && test -s conftest$ac_exeext &&
16639 $as_test_x conftest$ac_exeext; then
16641 lt_aix_libpath_sed='
16642 /Import File Strings/,/^$/ {
16643 /^0/ {
16644 s/^0 *\(.*\)$/\1/
16648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16649 # Check for a 64-bit object if we didn't find anything.
16650 if test -z "$aix_libpath"; then
16651 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16653 else
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16661 conftest$ac_exeext conftest.$ac_ext
16662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16664 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16665 # Warning - without using the other run time loading flags,
16666 # -berok will link without error, but may produce a broken library.
16667 no_undefined_flag_GCJ=' ${wl}-bernotok'
16668 allow_undefined_flag_GCJ=' ${wl}-berok'
16669 # Exported symbols can be pulled into shared objects from archives
16670 whole_archive_flag_spec_GCJ='$convenience'
16671 archive_cmds_need_lc_GCJ=yes
16672 # This is similar to how AIX traditionally builds its shared libraries.
16673 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'
16678 amigaos*)
16679 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)'
16680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16681 hardcode_minus_L_GCJ=yes
16682 # see comment about different semantics on the GNU ld section
16683 ld_shlibs_GCJ=no
16686 bsdi[45]*)
16687 export_dynamic_flag_spec_GCJ=-rdynamic
16690 cygwin* | mingw* | pw32*)
16691 # When not using gcc, we currently assume that we are using
16692 # Microsoft Visual C++.
16693 # hardcode_libdir_flag_spec is actually meaningless, as there is
16694 # no search path for DLLs.
16695 hardcode_libdir_flag_spec_GCJ=' '
16696 allow_undefined_flag_GCJ=unsupported
16697 # Tell ltmain to make .lib files, not .a files.
16698 libext=lib
16699 # Tell ltmain to make .dll files, not .so files.
16700 shrext_cmds=".dll"
16701 # FIXME: Setting linknames here is a bad hack.
16702 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16703 # The linker will automatically build a .lib file if we build a DLL.
16704 old_archive_From_new_cmds_GCJ='true'
16705 # FIXME: Should let the user specify the lib program.
16706 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16707 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16708 enable_shared_with_static_runtimes_GCJ=yes
16711 darwin* | rhapsody*)
16712 case $host_os in
16713 rhapsody* | darwin1.[012])
16714 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16716 *) # Darwin 1.3 on
16717 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16718 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16719 else
16720 case ${MACOSX_DEPLOYMENT_TARGET} in
16721 10.[012])
16722 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16724 10.*)
16725 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16727 esac
16730 esac
16731 archive_cmds_need_lc_GCJ=no
16732 hardcode_direct_GCJ=no
16733 hardcode_automatic_GCJ=yes
16734 hardcode_shlibpath_var_GCJ=unsupported
16735 whole_archive_flag_spec_GCJ=''
16736 link_all_deplibs_GCJ=yes
16737 if test "$GCC" = yes ; then
16738 output_verbose_link_cmd='echo'
16739 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16740 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16742 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16743 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}'
16744 else
16745 case $cc_basename in
16746 xlc*)
16747 output_verbose_link_cmd='echo'
16748 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16749 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16750 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16751 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}'
16752 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}'
16755 ld_shlibs_GCJ=no
16757 esac
16761 dgux*)
16762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16763 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16764 hardcode_shlibpath_var_GCJ=no
16767 freebsd1*)
16768 ld_shlibs_GCJ=no
16771 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16772 # support. Future versions do this automatically, but an explicit c++rt0.o
16773 # does not break anything, and helps significantly (at the cost of a little
16774 # extra space).
16775 freebsd2.2*)
16776 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16777 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778 hardcode_direct_GCJ=yes
16779 hardcode_shlibpath_var_GCJ=no
16782 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16783 freebsd2*)
16784 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16785 hardcode_direct_GCJ=yes
16786 hardcode_minus_L_GCJ=yes
16787 hardcode_shlibpath_var_GCJ=no
16790 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16791 freebsd* | dragonfly*)
16792 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16794 hardcode_direct_GCJ=yes
16795 hardcode_shlibpath_var_GCJ=no
16798 hpux9*)
16799 if test "$GCC" = yes; then
16800 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'
16801 else
16802 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'
16804 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16805 hardcode_libdir_separator_GCJ=:
16806 hardcode_direct_GCJ=yes
16808 # hardcode_minus_L: Not really in the search PATH,
16809 # but as the default location of the library.
16810 hardcode_minus_L_GCJ=yes
16811 export_dynamic_flag_spec_GCJ='${wl}-E'
16814 hpux10*)
16815 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16816 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16817 else
16818 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16820 if test "$with_gnu_ld" = no; then
16821 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16822 hardcode_libdir_separator_GCJ=:
16824 hardcode_direct_GCJ=yes
16825 export_dynamic_flag_spec_GCJ='${wl}-E'
16827 # hardcode_minus_L: Not really in the search PATH,
16828 # but as the default location of the library.
16829 hardcode_minus_L_GCJ=yes
16833 hpux11*)
16834 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16835 case $host_cpu in
16836 hppa*64*)
16837 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16839 ia64*)
16840 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16843 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16845 esac
16846 else
16847 case $host_cpu in
16848 hppa*64*)
16849 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16851 ia64*)
16852 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16855 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16857 esac
16859 if test "$with_gnu_ld" = no; then
16860 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16861 hardcode_libdir_separator_GCJ=:
16863 case $host_cpu in
16864 hppa*64*|ia64*)
16865 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16866 hardcode_direct_GCJ=no
16867 hardcode_shlibpath_var_GCJ=no
16870 hardcode_direct_GCJ=yes
16871 export_dynamic_flag_spec_GCJ='${wl}-E'
16873 # hardcode_minus_L: Not really in the search PATH,
16874 # but as the default location of the library.
16875 hardcode_minus_L_GCJ=yes
16877 esac
16881 irix5* | irix6* | nonstopux*)
16882 if test "$GCC" = yes; then
16883 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'
16884 else
16885 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'
16886 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16888 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16889 hardcode_libdir_separator_GCJ=:
16890 link_all_deplibs_GCJ=yes
16893 netbsd*)
16894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16895 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16896 else
16897 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16899 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16900 hardcode_direct_GCJ=yes
16901 hardcode_shlibpath_var_GCJ=no
16904 newsos6)
16905 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16906 hardcode_direct_GCJ=yes
16907 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16908 hardcode_libdir_separator_GCJ=:
16909 hardcode_shlibpath_var_GCJ=no
16912 openbsd*)
16913 if test -f /usr/libexec/ld.so; then
16914 hardcode_direct_GCJ=yes
16915 hardcode_shlibpath_var_GCJ=no
16916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16917 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16918 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16919 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16920 export_dynamic_flag_spec_GCJ='${wl}-E'
16921 else
16922 case $host_os in
16923 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16924 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16925 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16928 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16929 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16931 esac
16933 else
16934 ld_shlibs_GCJ=no
16938 os2*)
16939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940 hardcode_minus_L_GCJ=yes
16941 allow_undefined_flag_GCJ=unsupported
16942 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'
16943 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16946 osf3*)
16947 if test "$GCC" = yes; then
16948 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16949 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'
16950 else
16951 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16952 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'
16954 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16955 hardcode_libdir_separator_GCJ=:
16958 osf4* | osf5*) # as osf3* with the addition of -msym flag
16959 if test "$GCC" = yes; then
16960 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16961 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'
16962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16963 else
16964 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16965 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'
16966 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~
16967 $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'
16969 # Both c and cxx compiler support -rpath directly
16970 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16972 hardcode_libdir_separator_GCJ=:
16975 solaris*)
16976 no_undefined_flag_GCJ=' -z text'
16977 if test "$GCC" = yes; then
16978 wlarc='${wl}'
16979 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16980 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16981 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16982 else
16983 wlarc=''
16984 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16985 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16986 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16988 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16989 hardcode_shlibpath_var_GCJ=no
16990 case $host_os in
16991 solaris2.[0-5] | solaris2.[0-5].*) ;;
16993 # The compiler driver will combine and reorder linker options,
16994 # but understands `-z linker_flag'. GCC discards it without `$wl',
16995 # but is careful enough not to reorder.
16996 # Supported since Solaris 2.6 (maybe 2.5.1?)
16997 if test "$GCC" = yes; then
16998 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16999 else
17000 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17003 esac
17004 link_all_deplibs_GCJ=yes
17007 sunos4*)
17008 if test "x$host_vendor" = xsequent; then
17009 # Use $CC to link under sequent, because it throws in some extra .o
17010 # files that make .init and .fini sections work.
17011 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17012 else
17013 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17016 hardcode_direct_GCJ=yes
17017 hardcode_minus_L_GCJ=yes
17018 hardcode_shlibpath_var_GCJ=no
17021 sysv4)
17022 case $host_vendor in
17023 sni)
17024 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025 hardcode_direct_GCJ=yes # is this really true???
17027 siemens)
17028 ## LD is ld it makes a PLAMLIB
17029 ## CC just makes a GrossModule.
17030 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17031 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17032 hardcode_direct_GCJ=no
17034 motorola)
17035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17038 esac
17039 runpath_var='LD_RUN_PATH'
17040 hardcode_shlibpath_var_GCJ=no
17043 sysv4.3*)
17044 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17045 hardcode_shlibpath_var_GCJ=no
17046 export_dynamic_flag_spec_GCJ='-Bexport'
17049 sysv4*MP*)
17050 if test -d /usr/nec; then
17051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_shlibpath_var_GCJ=no
17053 runpath_var=LD_RUN_PATH
17054 hardcode_runpath_var=yes
17055 ld_shlibs_GCJ=yes
17059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17060 no_undefined_flag_GCJ='${wl}-z,text'
17061 archive_cmds_need_lc_GCJ=no
17062 hardcode_shlibpath_var_GCJ=no
17063 runpath_var='LD_RUN_PATH'
17065 if test "$GCC" = yes; then
17066 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17067 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17068 else
17069 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 sysv5* | sco3.2v5* | sco5v6*)
17075 # Note: We can NOT use -z defs as we might desire, because we do not
17076 # link with -lc, and that would cause any symbols used from libc to
17077 # always be unresolved, which means just about no library would
17078 # ever link correctly. If we're not using GNU ld we use -z text
17079 # though, which does catch some bad symbols but isn't as heavy-handed
17080 # as -z defs.
17081 no_undefined_flag_GCJ='${wl}-z,text'
17082 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17083 archive_cmds_need_lc_GCJ=no
17084 hardcode_shlibpath_var_GCJ=no
17085 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17086 hardcode_libdir_separator_GCJ=':'
17087 link_all_deplibs_GCJ=yes
17088 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17089 runpath_var='LD_RUN_PATH'
17091 if test "$GCC" = yes; then
17092 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17093 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17094 else
17095 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 uts4*)
17101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17103 hardcode_shlibpath_var_GCJ=no
17107 ld_shlibs_GCJ=no
17109 esac
17112 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17113 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17114 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17117 # Do we need to explicitly link libc?
17119 case "x$archive_cmds_need_lc_GCJ" in
17120 x|xyes)
17121 # Assume -lc should be added
17122 archive_cmds_need_lc_GCJ=yes
17124 if test "$enable_shared" = yes && test "$GCC" = yes; then
17125 case $archive_cmds_GCJ in
17126 *'~'*)
17127 # FIXME: we may have to deal with multi-command sequences.
17129 '$CC '*)
17130 # Test whether the compiler implicitly links with -lc since on some
17131 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17132 # to ld, don't add -lc before -lgcc.
17133 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17134 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17135 $rm conftest*
17136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17139 (eval $ac_compile) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } 2>conftest.err; then
17143 soname=conftest
17144 lib=conftest
17145 libobjs=conftest.$ac_objext
17146 deplibs=
17147 wl=$lt_prog_compiler_wl_GCJ
17148 pic_flag=$lt_prog_compiler_pic_GCJ
17149 compiler_flags=-v
17150 linker_flags=-v
17151 verstring=
17152 output_objdir=.
17153 libname=conftest
17154 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17155 allow_undefined_flag_GCJ=
17156 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17157 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }
17161 then
17162 archive_cmds_need_lc_GCJ=no
17163 else
17164 archive_cmds_need_lc_GCJ=yes
17166 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17167 else
17168 cat conftest.err 1>&5
17170 $rm conftest*
17171 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17172 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17174 esac
17177 esac
17179 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17180 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17181 library_names_spec=
17182 libname_spec='lib$name'
17183 soname_spec=
17184 shrext_cmds=".so"
17185 postinstall_cmds=
17186 postuninstall_cmds=
17187 finish_cmds=
17188 finish_eval=
17189 shlibpath_var=
17190 shlibpath_overrides_runpath=unknown
17191 version_type=none
17192 dynamic_linker="$host_os ld.so"
17193 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17195 need_lib_prefix=unknown
17196 hardcode_into_libs=no
17198 # when you set need_version to no, make sure it does not cause -set_version
17199 # flags to be left without arguments
17200 need_version=unknown
17202 case $host_os in
17203 aix3*)
17204 version_type=linux
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17206 shlibpath_var=LIBPATH
17208 # AIX 3 has no versioning support, so we append a major version to the name.
17209 soname_spec='${libname}${release}${shared_ext}$major'
17212 aix4* | aix5*)
17213 version_type=linux
17214 need_lib_prefix=no
17215 need_version=no
17216 hardcode_into_libs=yes
17217 if test "$host_cpu" = ia64; then
17218 # AIX 5 supports IA64
17219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17220 shlibpath_var=LD_LIBRARY_PATH
17221 else
17222 # With GCC up to 2.95.x, collect2 would create an import file
17223 # for dependence libraries. The import file would start with
17224 # the line `#! .'. This would cause the generated library to
17225 # depend on `.', always an invalid library. This was fixed in
17226 # development snapshots of GCC prior to 3.0.
17227 case $host_os in
17228 aix4 | aix4.[01] | aix4.[01].*)
17229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17230 echo ' yes '
17231 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17233 else
17234 can_build_shared=no
17237 esac
17238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17239 # soname into executable. Probably we can add versioning support to
17240 # collect2, so additional links can be useful in future.
17241 if test "$aix_use_runtimelinking" = yes; then
17242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17243 # instead of lib<name>.a to let people know that these are not
17244 # typical AIX shared libraries.
17245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17246 else
17247 # We preserve .a as extension for shared libraries through AIX4.2
17248 # and later when we are not doing run time linking.
17249 library_names_spec='${libname}${release}.a $libname.a'
17250 soname_spec='${libname}${release}${shared_ext}$major'
17252 shlibpath_var=LIBPATH
17256 amigaos*)
17257 library_names_spec='$libname.ixlibrary $libname.a'
17258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17259 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'
17262 beos*)
17263 library_names_spec='${libname}${shared_ext}'
17264 dynamic_linker="$host_os ld.so"
17265 shlibpath_var=LIBRARY_PATH
17268 bsdi[45]*)
17269 version_type=linux
17270 need_version=no
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17276 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17277 # the default ld.so.conf also contains /usr/contrib/lib and
17278 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17279 # libtool to hard-code these into programs
17282 cygwin* | mingw* | pw32*)
17283 version_type=windows
17284 shrext_cmds=".dll"
17285 need_version=no
17286 need_lib_prefix=no
17288 case $GCC,$host_os in
17289 yes,cygwin* | yes,mingw* | yes,pw32*)
17290 library_names_spec='$libname.dll.a'
17291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17292 postinstall_cmds='base_file=`basename \${file}`~
17293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17294 dldir=$destdir/`dirname \$dlpath`~
17295 test -d \$dldir || mkdir -p \$dldir~
17296 $install_prog $dir/$dlname \$dldir/$dlname~
17297 chmod a+x \$dldir/$dlname'
17298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17299 dlpath=$dir/\$dldll~
17300 $rm \$dlpath'
17301 shlibpath_overrides_runpath=yes
17303 case $host_os in
17304 cygwin*)
17305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17307 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17309 mingw*)
17310 # MinGW DLLs use traditional 'lib' prefix
17311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17313 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17314 # It is most probably a Windows format PATH printed by
17315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17316 # path with ; separators, and with drive letters. We can handle the
17317 # drive letters (cygwin fileutils understands them), so leave them,
17318 # especially as we might pass files found there to a mingw objdump,
17319 # which wouldn't understand a cygwinified path. Ahh.
17320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17321 else
17322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17325 pw32*)
17326 # pw32 DLLs use 'pw' prefix rather than 'lib'
17327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17329 esac
17333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17335 esac
17336 dynamic_linker='Win32 ld.exe'
17337 # FIXME: first we should search . and the directory the executable is in
17338 shlibpath_var=PATH
17341 darwin* | rhapsody*)
17342 dynamic_linker="$host_os dyld"
17343 version_type=darwin
17344 need_lib_prefix=no
17345 need_version=no
17346 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17347 soname_spec='${libname}${release}${major}$shared_ext'
17348 shlibpath_overrides_runpath=yes
17349 shlibpath_var=DYLD_LIBRARY_PATH
17350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17352 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17355 dgux*)
17356 version_type=linux
17357 need_lib_prefix=no
17358 need_version=no
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17360 soname_spec='${libname}${release}${shared_ext}$major'
17361 shlibpath_var=LD_LIBRARY_PATH
17364 freebsd1*)
17365 dynamic_linker=no
17368 freebsd* | dragonfly*)
17369 # DragonFly does not have aout. When/if they implement a new
17370 # versioning mechanism, adjust this.
17371 if test -x /usr/bin/objformat; then
17372 objformat=`/usr/bin/objformat`
17373 else
17374 case $host_os in
17375 freebsd[123]*) objformat=aout ;;
17376 *) objformat=elf ;;
17377 esac
17379 version_type=freebsd-$objformat
17380 case $version_type in
17381 freebsd-elf*)
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17383 need_version=no
17384 need_lib_prefix=no
17386 freebsd-*)
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17388 need_version=yes
17390 esac
17391 shlibpath_var=LD_LIBRARY_PATH
17392 case $host_os in
17393 freebsd2*)
17394 shlibpath_overrides_runpath=yes
17396 freebsd3.[01]* | freebsdelf3.[01]*)
17397 shlibpath_overrides_runpath=yes
17398 hardcode_into_libs=yes
17400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17402 shlibpath_overrides_runpath=no
17403 hardcode_into_libs=yes
17405 *) # from 4.6 on, and DragonFly
17406 shlibpath_overrides_runpath=yes
17407 hardcode_into_libs=yes
17409 esac
17412 gnu*)
17413 version_type=linux
17414 need_lib_prefix=no
17415 need_version=no
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17417 soname_spec='${libname}${release}${shared_ext}$major'
17418 shlibpath_var=LD_LIBRARY_PATH
17419 hardcode_into_libs=yes
17422 hpux9* | hpux10* | hpux11*)
17423 # Give a soname corresponding to the major version so that dld.sl refuses to
17424 # link against other versions.
17425 version_type=sunos
17426 need_lib_prefix=no
17427 need_version=no
17428 case $host_cpu in
17429 ia64*)
17430 shrext_cmds='.so'
17431 hardcode_into_libs=yes
17432 dynamic_linker="$host_os dld.so"
17433 shlibpath_var=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 if test "X$HPUX_IA64_MODE" = X32; then
17438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17439 else
17440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17444 hppa*64*)
17445 shrext_cmds='.sl'
17446 hardcode_into_libs=yes
17447 dynamic_linker="$host_os dld.sl"
17448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451 soname_spec='${libname}${release}${shared_ext}$major'
17452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17456 shrext_cmds='.sl'
17457 dynamic_linker="$host_os dld.sl"
17458 shlibpath_var=SHLIB_PATH
17459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17463 esac
17464 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17465 postinstall_cmds='chmod 555 $lib'
17468 interix[3-9]*)
17469 version_type=linux
17470 need_lib_prefix=no
17471 need_version=no
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17475 shlibpath_var=LD_LIBRARY_PATH
17476 shlibpath_overrides_runpath=no
17477 hardcode_into_libs=yes
17480 irix5* | irix6* | nonstopux*)
17481 case $host_os in
17482 nonstopux*) version_type=nonstopux ;;
17484 if test "$lt_cv_prog_gnu_ld" = yes; then
17485 version_type=linux
17486 else
17487 version_type=irix
17488 fi ;;
17489 esac
17490 need_lib_prefix=no
17491 need_version=no
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17494 case $host_os in
17495 irix5* | nonstopux*)
17496 libsuff= shlibsuff=
17499 case $LD in # libtool.m4 will add one of these switches to LD
17500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17501 libsuff= shlibsuff= libmagic=32-bit;;
17502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17503 libsuff=32 shlibsuff=N32 libmagic=N32;;
17504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17506 *) libsuff= shlibsuff= libmagic=never-match;;
17507 esac
17509 esac
17510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17511 shlibpath_overrides_runpath=no
17512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17514 hardcode_into_libs=yes
17517 # No shared lib support for Linux oldld, aout, or coff.
17518 linux*oldld* | linux*aout* | linux*coff*)
17519 dynamic_linker=no
17522 # This must be Linux ELF.
17523 linux* | k*bsd*-gnu)
17524 version_type=linux
17525 need_lib_prefix=no
17526 need_version=no
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528 soname_spec='${libname}${release}${shared_ext}$major'
17529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 shlibpath_overrides_runpath=no
17532 # This implies no fast_install, which is unacceptable.
17533 # Some rework will be needed to allow for fast_install
17534 # before this can be enabled.
17535 hardcode_into_libs=yes
17537 # Append ld.so.conf contents to the search path
17538 if test -f /etc/ld.so.conf; then
17539 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' ' '`
17540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17543 # We used to test for /lib/ld.so.1 and disable shared libraries on
17544 # powerpc, because MkLinux only supported shared libraries with the
17545 # GNU dynamic linker. Since this was broken with cross compilers,
17546 # most powerpc-linux boxes support dynamic linking these days and
17547 # people can always --disable-shared, the test was removed, and we
17548 # assume the GNU/Linux dynamic linker is in use.
17549 dynamic_linker='GNU/Linux ld.so'
17552 netbsd*)
17553 version_type=sunos
17554 need_lib_prefix=no
17555 need_version=no
17556 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17559 dynamic_linker='NetBSD (a.out) ld.so'
17560 else
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 dynamic_linker='NetBSD ld.elf_so'
17565 shlibpath_var=LD_LIBRARY_PATH
17566 shlibpath_overrides_runpath=yes
17567 hardcode_into_libs=yes
17570 newsos6)
17571 version_type=linux
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 shlibpath_overrides_runpath=yes
17577 nto-qnx*)
17578 version_type=linux
17579 need_lib_prefix=no
17580 need_version=no
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17582 soname_spec='${libname}${release}${shared_ext}$major'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath=yes
17587 openbsd*)
17588 version_type=sunos
17589 sys_lib_dlsearch_path_spec="/usr/lib"
17590 need_lib_prefix=no
17591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17592 case $host_os in
17593 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17594 *) need_version=no ;;
17595 esac
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17598 shlibpath_var=LD_LIBRARY_PATH
17599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17600 case $host_os in
17601 openbsd2.[89] | openbsd2.[89].*)
17602 shlibpath_overrides_runpath=no
17605 shlibpath_overrides_runpath=yes
17607 esac
17608 else
17609 shlibpath_overrides_runpath=yes
17613 os2*)
17614 libname_spec='$name'
17615 shrext_cmds=".dll"
17616 need_lib_prefix=no
17617 library_names_spec='$libname${shared_ext} $libname.a'
17618 dynamic_linker='OS/2 ld.exe'
17619 shlibpath_var=LIBPATH
17622 osf3* | osf4* | osf5*)
17623 version_type=osf
17624 need_lib_prefix=no
17625 need_version=no
17626 soname_spec='${libname}${release}${shared_ext}$major'
17627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17633 rdos*)
17634 dynamic_linker=no
17637 solaris*)
17638 version_type=linux
17639 need_lib_prefix=no
17640 need_version=no
17641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642 soname_spec='${libname}${release}${shared_ext}$major'
17643 shlibpath_var=LD_LIBRARY_PATH
17644 shlibpath_overrides_runpath=yes
17645 hardcode_into_libs=yes
17646 # ldd complains unless libraries are executable
17647 postinstall_cmds='chmod +x $lib'
17650 sunos4*)
17651 version_type=sunos
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=yes
17656 if test "$with_gnu_ld" = yes; then
17657 need_lib_prefix=no
17659 need_version=yes
17662 sysv4 | sysv4.3*)
17663 version_type=linux
17664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 shlibpath_var=LD_LIBRARY_PATH
17667 case $host_vendor in
17668 sni)
17669 shlibpath_overrides_runpath=no
17670 need_lib_prefix=no
17671 export_dynamic_flag_spec='${wl}-Blargedynsym'
17672 runpath_var=LD_RUN_PATH
17674 siemens)
17675 need_lib_prefix=no
17677 motorola)
17678 need_lib_prefix=no
17679 need_version=no
17680 shlibpath_overrides_runpath=no
17681 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17683 esac
17686 sysv4*MP*)
17687 if test -d /usr/nec ;then
17688 version_type=linux
17689 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17690 soname_spec='$libname${shared_ext}.$major'
17691 shlibpath_var=LD_LIBRARY_PATH
17695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17696 version_type=freebsd-elf
17697 need_lib_prefix=no
17698 need_version=no
17699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17700 soname_spec='${libname}${release}${shared_ext}$major'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 hardcode_into_libs=yes
17703 if test "$with_gnu_ld" = yes; then
17704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17705 shlibpath_overrides_runpath=no
17706 else
17707 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17708 shlibpath_overrides_runpath=yes
17709 case $host_os in
17710 sco3.2v5*)
17711 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17713 esac
17715 sys_lib_dlsearch_path_spec='/usr/lib'
17718 uts4*)
17719 version_type=linux
17720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721 soname_spec='${libname}${release}${shared_ext}$major'
17722 shlibpath_var=LD_LIBRARY_PATH
17726 dynamic_linker=no
17728 esac
17729 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17730 echo "${ECHO_T}$dynamic_linker" >&6; }
17731 test "$dynamic_linker" = no && can_build_shared=no
17733 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17734 if test "$GCC" = yes; then
17735 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17738 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17739 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17740 hardcode_action_GCJ=
17741 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17742 test -n "$runpath_var_GCJ" || \
17743 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17745 # We can hardcode non-existant directories.
17746 if test "$hardcode_direct_GCJ" != no &&
17747 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17748 # have to relink, otherwise we might link with an installed library
17749 # when we should be linking with a yet-to-be-installed one
17750 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17751 test "$hardcode_minus_L_GCJ" != no; then
17752 # Linking always hardcodes the temporary library directory.
17753 hardcode_action_GCJ=relink
17754 else
17755 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17756 hardcode_action_GCJ=immediate
17758 else
17759 # We cannot hardcode anything, or else we can only hardcode existing
17760 # directories.
17761 hardcode_action_GCJ=unsupported
17763 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17764 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17766 if test "$hardcode_action_GCJ" = relink; then
17767 # Fast installation is not supported
17768 enable_fast_install=no
17769 elif test "$shlibpath_overrides_runpath" = yes ||
17770 test "$enable_shared" = no; then
17771 # Fast installation is not necessary
17772 enable_fast_install=needless
17776 # The else clause should only fire when bootstrapping the
17777 # libtool distribution, otherwise you forgot to ship ltmain.sh
17778 # with your package, and you will get complaints that there are
17779 # no rules to generate ltmain.sh.
17780 if test -f "$ltmain"; then
17781 # See if we are running on zsh, and set the options which allow our commands through
17782 # without removal of \ escapes.
17783 if test -n "${ZSH_VERSION+set}" ; then
17784 setopt NO_GLOB_SUBST
17786 # Now quote all the things that may contain metacharacters while being
17787 # careful not to overquote the AC_SUBSTed values. We take copies of the
17788 # variables and quote the copies for generation of the libtool script.
17789 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17790 SED SHELL STRIP \
17791 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17792 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17793 deplibs_check_method reload_flag reload_cmds need_locks \
17794 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17795 lt_cv_sys_global_symbol_to_c_name_address \
17796 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17797 old_postinstall_cmds old_postuninstall_cmds \
17798 compiler_GCJ \
17799 CC_GCJ \
17800 LD_GCJ \
17801 lt_prog_compiler_wl_GCJ \
17802 lt_prog_compiler_pic_GCJ \
17803 lt_prog_compiler_static_GCJ \
17804 lt_prog_compiler_no_builtin_flag_GCJ \
17805 export_dynamic_flag_spec_GCJ \
17806 thread_safe_flag_spec_GCJ \
17807 whole_archive_flag_spec_GCJ \
17808 enable_shared_with_static_runtimes_GCJ \
17809 old_archive_cmds_GCJ \
17810 old_archive_from_new_cmds_GCJ \
17811 predep_objects_GCJ \
17812 postdep_objects_GCJ \
17813 predeps_GCJ \
17814 postdeps_GCJ \
17815 compiler_lib_search_path_GCJ \
17816 archive_cmds_GCJ \
17817 archive_expsym_cmds_GCJ \
17818 postinstall_cmds_GCJ \
17819 postuninstall_cmds_GCJ \
17820 old_archive_from_expsyms_cmds_GCJ \
17821 allow_undefined_flag_GCJ \
17822 no_undefined_flag_GCJ \
17823 export_symbols_cmds_GCJ \
17824 hardcode_libdir_flag_spec_GCJ \
17825 hardcode_libdir_flag_spec_ld_GCJ \
17826 hardcode_libdir_separator_GCJ \
17827 hardcode_automatic_GCJ \
17828 module_cmds_GCJ \
17829 module_expsym_cmds_GCJ \
17830 lt_cv_prog_compiler_c_o_GCJ \
17831 fix_srcfile_path_GCJ \
17832 exclude_expsyms_GCJ \
17833 include_expsyms_GCJ; do
17835 case $var in
17836 old_archive_cmds_GCJ | \
17837 old_archive_from_new_cmds_GCJ | \
17838 archive_cmds_GCJ | \
17839 archive_expsym_cmds_GCJ | \
17840 module_cmds_GCJ | \
17841 module_expsym_cmds_GCJ | \
17842 old_archive_from_expsyms_cmds_GCJ | \
17843 export_symbols_cmds_GCJ | \
17844 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17845 postinstall_cmds | postuninstall_cmds | \
17846 old_postinstall_cmds | old_postuninstall_cmds | \
17847 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17848 # Double-quote double-evaled strings.
17849 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17854 esac
17855 done
17857 case $lt_echo in
17858 *'\$0 --fallback-echo"')
17859 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17861 esac
17863 cfgfile="$ofile"
17865 cat <<__EOF__ >> "$cfgfile"
17866 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17870 # Shell to use when invoking shell scripts.
17871 SHELL=$lt_SHELL
17873 # Whether or not to build shared libraries.
17874 build_libtool_libs=$enable_shared
17876 # Whether or not to build static libraries.
17877 build_old_libs=$enable_static
17879 # Whether or not to add -lc for building shared libraries.
17880 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17882 # Whether or not to disallow shared libs when runtime libs are static
17883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17885 # Whether or not to optimize for fast installation.
17886 fast_install=$enable_fast_install
17888 # The host system.
17889 host_alias=$host_alias
17890 host=$host
17891 host_os=$host_os
17893 # The build system.
17894 build_alias=$build_alias
17895 build=$build
17896 build_os=$build_os
17898 # An echo program that does not interpret backslashes.
17899 echo=$lt_echo
17901 # The archiver.
17902 AR=$lt_AR
17903 AR_FLAGS=$lt_AR_FLAGS
17905 # A C compiler.
17906 LTCC=$lt_LTCC
17908 # LTCC compiler flags.
17909 LTCFLAGS=$lt_LTCFLAGS
17911 # A language-specific compiler.
17912 CC=$lt_compiler_GCJ
17914 # Is the compiler the GNU C compiler?
17915 with_gcc=$GCC_GCJ
17917 # An ERE matcher.
17918 EGREP=$lt_EGREP
17920 # The linker used to build libraries.
17921 LD=$lt_LD_GCJ
17923 # Whether we need hard or soft links.
17924 LN_S=$lt_LN_S
17926 # A BSD-compatible nm program.
17927 NM=$lt_NM
17929 # A symbol stripping program
17930 STRIP=$lt_STRIP
17932 # Used to examine libraries when file_magic_cmd begins "file"
17933 MAGIC_CMD=$MAGIC_CMD
17935 # Used on cygwin: DLL creation program.
17936 DLLTOOL="$DLLTOOL"
17938 # Used on cygwin: object dumper.
17939 OBJDUMP="$OBJDUMP"
17941 # Used on cygwin: assembler.
17942 AS="$AS"
17944 # The name of the directory that contains temporary libtool files.
17945 objdir=$objdir
17947 # How to create reloadable object files.
17948 reload_flag=$lt_reload_flag
17949 reload_cmds=$lt_reload_cmds
17951 # How to pass a linker flag through the compiler.
17952 wl=$lt_lt_prog_compiler_wl_GCJ
17954 # Object file suffix (normally "o").
17955 objext="$ac_objext"
17957 # Old archive suffix (normally "a").
17958 libext="$libext"
17960 # Shared library suffix (normally ".so").
17961 shrext_cmds='$shrext_cmds'
17963 # Executable file suffix (normally "").
17964 exeext="$exeext"
17966 # Additional compiler flags for building library objects.
17967 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17968 pic_mode=$pic_mode
17970 # What is the maximum length of a command?
17971 max_cmd_len=$lt_cv_sys_max_cmd_len
17973 # Does compiler simultaneously support -c and -o options?
17974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17976 # Must we lock files when doing compilation?
17977 need_locks=$lt_need_locks
17979 # Do we need the lib prefix for modules?
17980 need_lib_prefix=$need_lib_prefix
17982 # Do we need a version for libraries?
17983 need_version=$need_version
17985 # Whether dlopen is supported.
17986 dlopen_support=$enable_dlopen
17988 # Whether dlopen of programs is supported.
17989 dlopen_self=$enable_dlopen_self
17991 # Whether dlopen of statically linked programs is supported.
17992 dlopen_self_static=$enable_dlopen_self_static
17994 # Compiler flag to prevent dynamic linking.
17995 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17997 # Compiler flag to turn off builtin functions.
17998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18000 # Compiler flag to allow reflexive dlopens.
18001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18003 # Compiler flag to generate shared objects directly from archives.
18004 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18006 # Compiler flag to generate thread-safe objects.
18007 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18009 # Library versioning type.
18010 version_type=$version_type
18012 # Format of library name prefix.
18013 libname_spec=$lt_libname_spec
18015 # List of archive names. First name is the real one, the rest are links.
18016 # The last name is the one that the linker finds with -lNAME.
18017 library_names_spec=$lt_library_names_spec
18019 # The coded name of the library, if different from the real name.
18020 soname_spec=$lt_soname_spec
18022 # Commands used to build and install an old-style archive.
18023 RANLIB=$lt_RANLIB
18024 old_archive_cmds=$lt_old_archive_cmds_GCJ
18025 old_postinstall_cmds=$lt_old_postinstall_cmds
18026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18028 # Create an old-style archive from a shared archive.
18029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18031 # Create a temporary old-style archive to link instead of a shared archive.
18032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18034 # Commands used to build and install a shared archive.
18035 archive_cmds=$lt_archive_cmds_GCJ
18036 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18037 postinstall_cmds=$lt_postinstall_cmds
18038 postuninstall_cmds=$lt_postuninstall_cmds
18040 # Commands used to build a loadable module (assumed same as above if empty)
18041 module_cmds=$lt_module_cmds_GCJ
18042 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18044 # Commands to strip libraries.
18045 old_striplib=$lt_old_striplib
18046 striplib=$lt_striplib
18048 # Dependencies to place before the objects being linked to create a
18049 # shared library.
18050 predep_objects=$lt_predep_objects_GCJ
18052 # Dependencies to place after the objects being linked to create a
18053 # shared library.
18054 postdep_objects=$lt_postdep_objects_GCJ
18056 # Dependencies to place before the objects being linked to create a
18057 # shared library.
18058 predeps=$lt_predeps_GCJ
18060 # Dependencies to place after the objects being linked to create a
18061 # shared library.
18062 postdeps=$lt_postdeps_GCJ
18064 # The library search path used internally by the compiler when linking
18065 # a shared library.
18066 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18068 # Method to check whether dependent libraries are shared objects.
18069 deplibs_check_method=$lt_deplibs_check_method
18071 # Command to use when deplibs_check_method == file_magic.
18072 file_magic_cmd=$lt_file_magic_cmd
18074 # Flag that allows shared libraries with undefined symbols to be built.
18075 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18077 # Flag that forces no undefined symbols.
18078 no_undefined_flag=$lt_no_undefined_flag_GCJ
18080 # Commands used to finish a libtool library installation in a directory.
18081 finish_cmds=$lt_finish_cmds
18083 # Same as above, but a single script fragment to be evaled but not shown.
18084 finish_eval=$lt_finish_eval
18086 # Take the output of nm and produce a listing of raw symbols and C names.
18087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18089 # Transform the output of nm in a proper C declaration
18090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18092 # Transform the output of nm in a C name address pair
18093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18095 # This is the shared library runtime path variable.
18096 runpath_var=$runpath_var
18098 # This is the shared library path variable.
18099 shlibpath_var=$shlibpath_var
18101 # Is shlibpath searched before the hard-coded library search path?
18102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18104 # How to hardcode a shared library path into an executable.
18105 hardcode_action=$hardcode_action_GCJ
18107 # Whether we should hardcode library paths into libraries.
18108 hardcode_into_libs=$hardcode_into_libs
18110 # Flag to hardcode \$libdir into a binary during linking.
18111 # This must work even if \$libdir does not exist.
18112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18114 # If ld is used when linking, flag to hardcode \$libdir into
18115 # a binary during linking. This must work even if \$libdir does
18116 # not exist.
18117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18119 # Whether we need a single -rpath flag with a separated argument.
18120 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18123 # resulting binary.
18124 hardcode_direct=$hardcode_direct_GCJ
18126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18127 # resulting binary.
18128 hardcode_minus_L=$hardcode_minus_L_GCJ
18130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18131 # the resulting binary.
18132 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18134 # Set to yes if building a shared library automatically hardcodes DIR into the library
18135 # and all subsequent libraries and executables linked against it.
18136 hardcode_automatic=$hardcode_automatic_GCJ
18138 # Variables whose values should be saved in libtool wrapper scripts and
18139 # restored at relink time.
18140 variables_saved_for_relink="$variables_saved_for_relink"
18142 # Whether libtool must link a program against all its dependency libraries.
18143 link_all_deplibs=$link_all_deplibs_GCJ
18145 # Compile-time system search path for libraries
18146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18148 # Run-time system search path for libraries
18149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18151 # Fix the shell variable \$srcfile for the compiler.
18152 fix_srcfile_path=$lt_fix_srcfile_path
18154 # Set to yes if exported symbols are required.
18155 always_export_symbols=$always_export_symbols_GCJ
18157 # The commands to list exported symbols.
18158 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18160 # The commands to extract the exported symbol list from a shared archive.
18161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18163 # Symbols that should not be listed in the preloaded symbols.
18164 exclude_expsyms=$lt_exclude_expsyms_GCJ
18166 # Symbols that must always be exported.
18167 include_expsyms=$lt_include_expsyms_GCJ
18169 # ### END LIBTOOL TAG CONFIG: $tagname
18171 __EOF__
18174 else
18175 # If there is no Makefile yet, we rely on a make rule to execute
18176 # `config.status --recheck' to rerun these tests and create the
18177 # libtool script then.
18178 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18179 if test -f "$ltmain_in"; then
18180 test -f Makefile && make "$ltmain"
18185 ac_ext=c
18186 ac_cpp='$CPP $CPPFLAGS'
18187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18191 CC="$lt_save_CC"
18193 else
18194 tagname=""
18201 # Source file extension for RC test sources.
18202 ac_ext=rc
18204 # Object file extension for compiled RC test sources.
18205 objext=o
18206 objext_RC=$objext
18208 # Code to be used in simple compile tests
18209 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18211 # Code to be used in simple link tests
18212 lt_simple_link_test_code="$lt_simple_compile_test_code"
18214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18216 # If no C compiler was specified, use CC.
18217 LTCC=${LTCC-"$CC"}
18219 # If no C compiler flags were specified, use CFLAGS.
18220 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18222 # Allow CC to be a program name with arguments.
18223 compiler=$CC
18226 # save warnings/boilerplate of simple test code
18227 ac_outfile=conftest.$ac_objext
18228 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18229 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18230 _lt_compiler_boilerplate=`cat conftest.err`
18231 $rm conftest*
18233 ac_outfile=conftest.$ac_objext
18234 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18235 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18236 _lt_linker_boilerplate=`cat conftest.err`
18237 $rm conftest*
18240 # Allow CC to be a program name with arguments.
18241 lt_save_CC="$CC"
18242 CC=${RC-"windres"}
18243 compiler=$CC
18244 compiler_RC=$CC
18245 for cc_temp in $compiler""; do
18246 case $cc_temp in
18247 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18248 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18249 \-*) ;;
18250 *) break;;
18251 esac
18252 done
18253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18255 lt_cv_prog_compiler_c_o_RC=yes
18257 # The else clause should only fire when bootstrapping the
18258 # libtool distribution, otherwise you forgot to ship ltmain.sh
18259 # with your package, and you will get complaints that there are
18260 # no rules to generate ltmain.sh.
18261 if test -f "$ltmain"; then
18262 # See if we are running on zsh, and set the options which allow our commands through
18263 # without removal of \ escapes.
18264 if test -n "${ZSH_VERSION+set}" ; then
18265 setopt NO_GLOB_SUBST
18267 # Now quote all the things that may contain metacharacters while being
18268 # careful not to overquote the AC_SUBSTed values. We take copies of the
18269 # variables and quote the copies for generation of the libtool script.
18270 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18271 SED SHELL STRIP \
18272 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18273 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18274 deplibs_check_method reload_flag reload_cmds need_locks \
18275 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18276 lt_cv_sys_global_symbol_to_c_name_address \
18277 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18278 old_postinstall_cmds old_postuninstall_cmds \
18279 compiler_RC \
18280 CC_RC \
18281 LD_RC \
18282 lt_prog_compiler_wl_RC \
18283 lt_prog_compiler_pic_RC \
18284 lt_prog_compiler_static_RC \
18285 lt_prog_compiler_no_builtin_flag_RC \
18286 export_dynamic_flag_spec_RC \
18287 thread_safe_flag_spec_RC \
18288 whole_archive_flag_spec_RC \
18289 enable_shared_with_static_runtimes_RC \
18290 old_archive_cmds_RC \
18291 old_archive_from_new_cmds_RC \
18292 predep_objects_RC \
18293 postdep_objects_RC \
18294 predeps_RC \
18295 postdeps_RC \
18296 compiler_lib_search_path_RC \
18297 archive_cmds_RC \
18298 archive_expsym_cmds_RC \
18299 postinstall_cmds_RC \
18300 postuninstall_cmds_RC \
18301 old_archive_from_expsyms_cmds_RC \
18302 allow_undefined_flag_RC \
18303 no_undefined_flag_RC \
18304 export_symbols_cmds_RC \
18305 hardcode_libdir_flag_spec_RC \
18306 hardcode_libdir_flag_spec_ld_RC \
18307 hardcode_libdir_separator_RC \
18308 hardcode_automatic_RC \
18309 module_cmds_RC \
18310 module_expsym_cmds_RC \
18311 lt_cv_prog_compiler_c_o_RC \
18312 fix_srcfile_path_RC \
18313 exclude_expsyms_RC \
18314 include_expsyms_RC; do
18316 case $var in
18317 old_archive_cmds_RC | \
18318 old_archive_from_new_cmds_RC | \
18319 archive_cmds_RC | \
18320 archive_expsym_cmds_RC | \
18321 module_cmds_RC | \
18322 module_expsym_cmds_RC | \
18323 old_archive_from_expsyms_cmds_RC | \
18324 export_symbols_cmds_RC | \
18325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18326 postinstall_cmds | postuninstall_cmds | \
18327 old_postinstall_cmds | old_postuninstall_cmds | \
18328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18329 # Double-quote double-evaled strings.
18330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18335 esac
18336 done
18338 case $lt_echo in
18339 *'\$0 --fallback-echo"')
18340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18342 esac
18344 cfgfile="$ofile"
18346 cat <<__EOF__ >> "$cfgfile"
18347 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18351 # Shell to use when invoking shell scripts.
18352 SHELL=$lt_SHELL
18354 # Whether or not to build shared libraries.
18355 build_libtool_libs=$enable_shared
18357 # Whether or not to build static libraries.
18358 build_old_libs=$enable_static
18360 # Whether or not to add -lc for building shared libraries.
18361 build_libtool_need_lc=$archive_cmds_need_lc_RC
18363 # Whether or not to disallow shared libs when runtime libs are static
18364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18366 # Whether or not to optimize for fast installation.
18367 fast_install=$enable_fast_install
18369 # The host system.
18370 host_alias=$host_alias
18371 host=$host
18372 host_os=$host_os
18374 # The build system.
18375 build_alias=$build_alias
18376 build=$build
18377 build_os=$build_os
18379 # An echo program that does not interpret backslashes.
18380 echo=$lt_echo
18382 # The archiver.
18383 AR=$lt_AR
18384 AR_FLAGS=$lt_AR_FLAGS
18386 # A C compiler.
18387 LTCC=$lt_LTCC
18389 # LTCC compiler flags.
18390 LTCFLAGS=$lt_LTCFLAGS
18392 # A language-specific compiler.
18393 CC=$lt_compiler_RC
18395 # Is the compiler the GNU C compiler?
18396 with_gcc=$GCC_RC
18398 # An ERE matcher.
18399 EGREP=$lt_EGREP
18401 # The linker used to build libraries.
18402 LD=$lt_LD_RC
18404 # Whether we need hard or soft links.
18405 LN_S=$lt_LN_S
18407 # A BSD-compatible nm program.
18408 NM=$lt_NM
18410 # A symbol stripping program
18411 STRIP=$lt_STRIP
18413 # Used to examine libraries when file_magic_cmd begins "file"
18414 MAGIC_CMD=$MAGIC_CMD
18416 # Used on cygwin: DLL creation program.
18417 DLLTOOL="$DLLTOOL"
18419 # Used on cygwin: object dumper.
18420 OBJDUMP="$OBJDUMP"
18422 # Used on cygwin: assembler.
18423 AS="$AS"
18425 # The name of the directory that contains temporary libtool files.
18426 objdir=$objdir
18428 # How to create reloadable object files.
18429 reload_flag=$lt_reload_flag
18430 reload_cmds=$lt_reload_cmds
18432 # How to pass a linker flag through the compiler.
18433 wl=$lt_lt_prog_compiler_wl_RC
18435 # Object file suffix (normally "o").
18436 objext="$ac_objext"
18438 # Old archive suffix (normally "a").
18439 libext="$libext"
18441 # Shared library suffix (normally ".so").
18442 shrext_cmds='$shrext_cmds'
18444 # Executable file suffix (normally "").
18445 exeext="$exeext"
18447 # Additional compiler flags for building library objects.
18448 pic_flag=$lt_lt_prog_compiler_pic_RC
18449 pic_mode=$pic_mode
18451 # What is the maximum length of a command?
18452 max_cmd_len=$lt_cv_sys_max_cmd_len
18454 # Does compiler simultaneously support -c and -o options?
18455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18457 # Must we lock files when doing compilation?
18458 need_locks=$lt_need_locks
18460 # Do we need the lib prefix for modules?
18461 need_lib_prefix=$need_lib_prefix
18463 # Do we need a version for libraries?
18464 need_version=$need_version
18466 # Whether dlopen is supported.
18467 dlopen_support=$enable_dlopen
18469 # Whether dlopen of programs is supported.
18470 dlopen_self=$enable_dlopen_self
18472 # Whether dlopen of statically linked programs is supported.
18473 dlopen_self_static=$enable_dlopen_self_static
18475 # Compiler flag to prevent dynamic linking.
18476 link_static_flag=$lt_lt_prog_compiler_static_RC
18478 # Compiler flag to turn off builtin functions.
18479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18481 # Compiler flag to allow reflexive dlopens.
18482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18484 # Compiler flag to generate shared objects directly from archives.
18485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18487 # Compiler flag to generate thread-safe objects.
18488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18490 # Library versioning type.
18491 version_type=$version_type
18493 # Format of library name prefix.
18494 libname_spec=$lt_libname_spec
18496 # List of archive names. First name is the real one, the rest are links.
18497 # The last name is the one that the linker finds with -lNAME.
18498 library_names_spec=$lt_library_names_spec
18500 # The coded name of the library, if different from the real name.
18501 soname_spec=$lt_soname_spec
18503 # Commands used to build and install an old-style archive.
18504 RANLIB=$lt_RANLIB
18505 old_archive_cmds=$lt_old_archive_cmds_RC
18506 old_postinstall_cmds=$lt_old_postinstall_cmds
18507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18509 # Create an old-style archive from a shared archive.
18510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18512 # Create a temporary old-style archive to link instead of a shared archive.
18513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18515 # Commands used to build and install a shared archive.
18516 archive_cmds=$lt_archive_cmds_RC
18517 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18518 postinstall_cmds=$lt_postinstall_cmds
18519 postuninstall_cmds=$lt_postuninstall_cmds
18521 # Commands used to build a loadable module (assumed same as above if empty)
18522 module_cmds=$lt_module_cmds_RC
18523 module_expsym_cmds=$lt_module_expsym_cmds_RC
18525 # Commands to strip libraries.
18526 old_striplib=$lt_old_striplib
18527 striplib=$lt_striplib
18529 # Dependencies to place before the objects being linked to create a
18530 # shared library.
18531 predep_objects=$lt_predep_objects_RC
18533 # Dependencies to place after the objects being linked to create a
18534 # shared library.
18535 postdep_objects=$lt_postdep_objects_RC
18537 # Dependencies to place before the objects being linked to create a
18538 # shared library.
18539 predeps=$lt_predeps_RC
18541 # Dependencies to place after the objects being linked to create a
18542 # shared library.
18543 postdeps=$lt_postdeps_RC
18545 # The library search path used internally by the compiler when linking
18546 # a shared library.
18547 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18549 # Method to check whether dependent libraries are shared objects.
18550 deplibs_check_method=$lt_deplibs_check_method
18552 # Command to use when deplibs_check_method == file_magic.
18553 file_magic_cmd=$lt_file_magic_cmd
18555 # Flag that allows shared libraries with undefined symbols to be built.
18556 allow_undefined_flag=$lt_allow_undefined_flag_RC
18558 # Flag that forces no undefined symbols.
18559 no_undefined_flag=$lt_no_undefined_flag_RC
18561 # Commands used to finish a libtool library installation in a directory.
18562 finish_cmds=$lt_finish_cmds
18564 # Same as above, but a single script fragment to be evaled but not shown.
18565 finish_eval=$lt_finish_eval
18567 # Take the output of nm and produce a listing of raw symbols and C names.
18568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18570 # Transform the output of nm in a proper C declaration
18571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18573 # Transform the output of nm in a C name address pair
18574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18576 # This is the shared library runtime path variable.
18577 runpath_var=$runpath_var
18579 # This is the shared library path variable.
18580 shlibpath_var=$shlibpath_var
18582 # Is shlibpath searched before the hard-coded library search path?
18583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18585 # How to hardcode a shared library path into an executable.
18586 hardcode_action=$hardcode_action_RC
18588 # Whether we should hardcode library paths into libraries.
18589 hardcode_into_libs=$hardcode_into_libs
18591 # Flag to hardcode \$libdir into a binary during linking.
18592 # This must work even if \$libdir does not exist.
18593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18595 # If ld is used when linking, flag to hardcode \$libdir into
18596 # a binary during linking. This must work even if \$libdir does
18597 # not exist.
18598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18600 # Whether we need a single -rpath flag with a separated argument.
18601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18604 # resulting binary.
18605 hardcode_direct=$hardcode_direct_RC
18607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18608 # resulting binary.
18609 hardcode_minus_L=$hardcode_minus_L_RC
18611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18612 # the resulting binary.
18613 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18615 # Set to yes if building a shared library automatically hardcodes DIR into the library
18616 # and all subsequent libraries and executables linked against it.
18617 hardcode_automatic=$hardcode_automatic_RC
18619 # Variables whose values should be saved in libtool wrapper scripts and
18620 # restored at relink time.
18621 variables_saved_for_relink="$variables_saved_for_relink"
18623 # Whether libtool must link a program against all its dependency libraries.
18624 link_all_deplibs=$link_all_deplibs_RC
18626 # Compile-time system search path for libraries
18627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18629 # Run-time system search path for libraries
18630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18632 # Fix the shell variable \$srcfile for the compiler.
18633 fix_srcfile_path=$lt_fix_srcfile_path
18635 # Set to yes if exported symbols are required.
18636 always_export_symbols=$always_export_symbols_RC
18638 # The commands to list exported symbols.
18639 export_symbols_cmds=$lt_export_symbols_cmds_RC
18641 # The commands to extract the exported symbol list from a shared archive.
18642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18644 # Symbols that should not be listed in the preloaded symbols.
18645 exclude_expsyms=$lt_exclude_expsyms_RC
18647 # Symbols that must always be exported.
18648 include_expsyms=$lt_include_expsyms_RC
18650 # ### END LIBTOOL TAG CONFIG: $tagname
18652 __EOF__
18655 else
18656 # If there is no Makefile yet, we rely on a make rule to execute
18657 # `config.status --recheck' to rerun these tests and create the
18658 # libtool script then.
18659 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18660 if test -f "$ltmain_in"; then
18661 test -f Makefile && make "$ltmain"
18666 ac_ext=c
18667 ac_cpp='$CPP $CPPFLAGS'
18668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18672 CC="$lt_save_CC"
18677 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18678 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18679 { (exit 1); exit 1; }; }
18681 esac
18683 # Append the new tag name to the list of available tags.
18684 if test -n "$tagname" ; then
18685 available_tags="$available_tags $tagname"
18688 done
18689 IFS="$lt_save_ifs"
18691 # Now substitute the updated list of available tags.
18692 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18693 mv "${ofile}T" "$ofile"
18694 chmod +x "$ofile"
18695 else
18696 rm -f "${ofile}T"
18697 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18698 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18699 { (exit 1); exit 1; }; }
18705 # This can be used to rebuild libtool when needed
18706 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18708 # Always use our own libtool.
18709 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18711 # Prevent multiple expansion
18732 am__api_version="1.9"
18733 # Find a good install program. We prefer a C program (faster),
18734 # so one script is as good as another. But avoid the broken or
18735 # incompatible versions:
18736 # SysV /etc/install, /usr/sbin/install
18737 # SunOS /usr/etc/install
18738 # IRIX /sbin/install
18739 # AIX /bin/install
18740 # AmigaOS /C/install, which installs bootblocks on floppy discs
18741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18744 # OS/2's system install, which has a completely different semantic
18745 # ./install, which can be erroneously created by make from ./install.sh.
18746 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18747 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
18748 if test -z "$INSTALL"; then
18749 if test "${ac_cv_path_install+set}" = set; then
18750 echo $ECHO_N "(cached) $ECHO_C" >&6
18751 else
18752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18753 for as_dir in $PATH
18755 IFS=$as_save_IFS
18756 test -z "$as_dir" && as_dir=.
18757 # Account for people who put trailing slashes in PATH elements.
18758 case $as_dir/ in
18759 ./ | .// | /cC/* | \
18760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18761 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18762 /usr/ucb/* ) ;;
18764 # OSF1 and SCO ODT 3.0 have their own names for install.
18765 # Don't use installbsd from OSF since it installs stuff as root
18766 # by default.
18767 for ac_prog in ginstall scoinst install; do
18768 for ac_exec_ext in '' $ac_executable_extensions; do
18769 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18770 if test $ac_prog = install &&
18771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18772 # AIX install. It has an incompatible calling convention.
18774 elif test $ac_prog = install &&
18775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18776 # program-specific install script used by HP pwplus--don't use.
18778 else
18779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18780 break 3
18783 done
18784 done
18786 esac
18787 done
18788 IFS=$as_save_IFS
18792 if test "${ac_cv_path_install+set}" = set; then
18793 INSTALL=$ac_cv_path_install
18794 else
18795 # As a last resort, use the slow shell script. Don't cache a
18796 # value for INSTALL within a source directory, because that will
18797 # break other packages using the cache if that directory is
18798 # removed, or if the value is a relative name.
18799 INSTALL=$ac_install_sh
18802 { echo "$as_me:$LINENO: result: $INSTALL" >&5
18803 echo "${ECHO_T}$INSTALL" >&6; }
18805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18806 # It thinks the first close brace ends the variable substitution.
18807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18813 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18814 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18815 # Just in case
18816 sleep 1
18817 echo timestamp > conftest.file
18818 # Do `set' in a subshell so we don't clobber the current shell's
18819 # arguments. Must try -L first in case configure is actually a
18820 # symlink; some systems play weird games with the mod time of symlinks
18821 # (eg FreeBSD returns the mod time of the symlink's containing
18822 # directory).
18823 if (
18824 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18825 if test "$*" = "X"; then
18826 # -L didn't work.
18827 set X `ls -t $srcdir/configure conftest.file`
18829 rm -f conftest.file
18830 if test "$*" != "X $srcdir/configure conftest.file" \
18831 && test "$*" != "X conftest.file $srcdir/configure"; then
18833 # If neither matched, then we have a broken ls. This can happen
18834 # if, for instance, CONFIG_SHELL is bash and it inherits a
18835 # broken ls alias from the environment. This has actually
18836 # happened. Such a system could not be considered "sane".
18837 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
18838 alias in your environment" >&5
18839 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
18840 alias in your environment" >&2;}
18841 { (exit 1); exit 1; }; }
18844 test "$2" = conftest.file
18846 then
18847 # Ok.
18849 else
18850 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18851 Check your system clock" >&5
18852 echo "$as_me: error: newly created file is older than distributed files!
18853 Check your system clock" >&2;}
18854 { (exit 1); exit 1; }; }
18856 { echo "$as_me:$LINENO: result: yes" >&5
18857 echo "${ECHO_T}yes" >&6; }
18858 test "$program_prefix" != NONE &&
18859 program_transform_name="s&^&$program_prefix&;$program_transform_name"
18860 # Use a double $ so make ignores it.
18861 test "$program_suffix" != NONE &&
18862 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18863 # Double any \ or $. echo might interpret backslashes.
18864 # By default was `s,x,x', remove it if useless.
18865 cat <<\_ACEOF >conftest.sed
18866 s/[\\$]/&&/g;s/;s,x,x,$//
18867 _ACEOF
18868 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18869 rm -f conftest.sed
18871 # expand $ac_aux_dir to an absolute path
18872 am_aux_dir=`cd $ac_aux_dir && pwd`
18874 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18875 # Use eval to expand $SHELL
18876 if eval "$MISSING --run true"; then
18877 am_missing_run="$MISSING --run "
18878 else
18879 am_missing_run=
18880 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18881 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18884 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
18885 # We used to keeping the `.' as first argument, in order to
18886 # allow $(mkdir_p) to be used without argument. As in
18887 # $(mkdir_p) $(somedir)
18888 # where $(somedir) is conditionally defined. However this is wrong
18889 # for two reasons:
18890 # 1. if the package is installed by a user who cannot write `.'
18891 # make install will fail,
18892 # 2. the above comment should most certainly read
18893 # $(mkdir_p) $(DESTDIR)$(somedir)
18894 # so it does not work when $(somedir) is undefined and
18895 # $(DESTDIR) is not.
18896 # To support the latter case, we have to write
18897 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
18898 # so the `.' trick is pointless.
18899 mkdir_p='mkdir -p --'
18900 else
18901 # On NextStep and OpenStep, the `mkdir' command does not
18902 # recognize any option. It will interpret all options as
18903 # directories to create, and then abort because `.' already
18904 # exists.
18905 for d in ./-p ./--version;
18907 test -d $d && rmdir $d
18908 done
18909 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
18910 if test -f "$ac_aux_dir/mkinstalldirs"; then
18911 mkdir_p='$(mkinstalldirs)'
18912 else
18913 mkdir_p='$(install_sh) -d'
18917 for ac_prog in gawk mawk nawk awk
18919 # Extract the first word of "$ac_prog", so it can be a program name with args.
18920 set dummy $ac_prog; ac_word=$2
18921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18923 if test "${ac_cv_prog_AWK+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926 if test -n "$AWK"; then
18927 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18928 else
18929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18930 for as_dir in $PATH
18932 IFS=$as_save_IFS
18933 test -z "$as_dir" && as_dir=.
18934 for ac_exec_ext in '' $ac_executable_extensions; do
18935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18936 ac_cv_prog_AWK="$ac_prog"
18937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18938 break 2
18940 done
18941 done
18942 IFS=$as_save_IFS
18946 AWK=$ac_cv_prog_AWK
18947 if test -n "$AWK"; then
18948 { echo "$as_me:$LINENO: result: $AWK" >&5
18949 echo "${ECHO_T}$AWK" >&6; }
18950 else
18951 { echo "$as_me:$LINENO: result: no" >&5
18952 echo "${ECHO_T}no" >&6; }
18956 test -n "$AWK" && break
18957 done
18959 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18960 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18961 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18962 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 cat >conftest.make <<\_ACEOF
18966 SHELL = /bin/sh
18967 all:
18968 @echo '@@@%%%=$(MAKE)=@@@%%%'
18969 _ACEOF
18970 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18971 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18972 *@@@%%%=?*=@@@%%%*)
18973 eval ac_cv_prog_make_${ac_make}_set=yes;;
18975 eval ac_cv_prog_make_${ac_make}_set=no;;
18976 esac
18977 rm -f conftest.make
18979 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18980 { echo "$as_me:$LINENO: result: yes" >&5
18981 echo "${ECHO_T}yes" >&6; }
18982 SET_MAKE=
18983 else
18984 { echo "$as_me:$LINENO: result: no" >&5
18985 echo "${ECHO_T}no" >&6; }
18986 SET_MAKE="MAKE=${MAKE-make}"
18989 rm -rf .tst 2>/dev/null
18990 mkdir .tst 2>/dev/null
18991 if test -d .tst; then
18992 am__leading_dot=.
18993 else
18994 am__leading_dot=_
18996 rmdir .tst 2>/dev/null
18998 DEPDIR="${am__leading_dot}deps"
19000 ac_config_commands="$ac_config_commands depfiles"
19003 am_make=${MAKE-make}
19004 cat > confinc << 'END'
19005 am__doit:
19006 @echo done
19007 .PHONY: am__doit
19009 # If we don't find an include directive, just comment out the code.
19010 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19011 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
19012 am__include="#"
19013 am__quote=
19014 _am_result=none
19015 # First try GNU make style include.
19016 echo "include confinc" > confmf
19017 # We grep out `Entering directory' and `Leaving directory'
19018 # messages which can occur if `w' ends up in MAKEFLAGS.
19019 # In particular we don't look at `^make:' because GNU make might
19020 # be invoked under some other name (usually "gmake"), in which
19021 # case it prints its new name instead of `make'.
19022 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19023 am__include=include
19024 am__quote=
19025 _am_result=GNU
19027 # Now try BSD make style include.
19028 if test "$am__include" = "#"; then
19029 echo '.include "confinc"' > confmf
19030 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19031 am__include=.include
19032 am__quote="\""
19033 _am_result=BSD
19038 { echo "$as_me:$LINENO: result: $_am_result" >&5
19039 echo "${ECHO_T}$_am_result" >&6; }
19040 rm -f confinc confmf
19042 # Check whether --enable-dependency-tracking was given.
19043 if test "${enable_dependency_tracking+set}" = set; then
19044 enableval=$enable_dependency_tracking;
19047 if test "x$enable_dependency_tracking" != xno; then
19048 am_depcomp="$ac_aux_dir/depcomp"
19049 AMDEPBACKSLASH='\'
19053 if test "x$enable_dependency_tracking" != xno; then
19054 AMDEP_TRUE=
19055 AMDEP_FALSE='#'
19056 else
19057 AMDEP_TRUE='#'
19058 AMDEP_FALSE=
19063 # test to see if srcdir already configured
19064 if test "`cd $srcdir && pwd`" != "`pwd`" &&
19065 test -f $srcdir/config.status; then
19066 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19067 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19068 { (exit 1); exit 1; }; }
19071 # test whether we have cygpath
19072 if test -z "$CYGPATH_W"; then
19073 if (cygpath --version) >/dev/null 2>/dev/null; then
19074 CYGPATH_W='cygpath -w'
19075 else
19076 CYGPATH_W=echo
19081 # Define the identity of the package.
19082 PACKAGE='openpam'
19083 VERSION='20071221'
19086 cat >>confdefs.h <<_ACEOF
19087 #define PACKAGE "$PACKAGE"
19088 _ACEOF
19091 cat >>confdefs.h <<_ACEOF
19092 #define VERSION "$VERSION"
19093 _ACEOF
19095 # Some tools Automake needs.
19097 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19100 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19103 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19106 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19109 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19111 install_sh=${install_sh-"$am_aux_dir/install-sh"}
19113 # Installed binaries are usually stripped using `strip' when the user
19114 # run `make install-strip'. However `strip' might not be the right
19115 # tool to use in cross-compilation environments, therefore Automake
19116 # will honor the `STRIP' environment variable to overrule this program.
19117 if test "$cross_compiling" != no; then
19118 if test -n "$ac_tool_prefix"; then
19119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19120 set dummy ${ac_tool_prefix}strip; ac_word=$2
19121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19123 if test "${ac_cv_prog_STRIP+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 else
19126 if test -n "$STRIP"; then
19127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19128 else
19129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19130 for as_dir in $PATH
19132 IFS=$as_save_IFS
19133 test -z "$as_dir" && as_dir=.
19134 for ac_exec_ext in '' $ac_executable_extensions; do
19135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19136 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19138 break 2
19140 done
19141 done
19142 IFS=$as_save_IFS
19146 STRIP=$ac_cv_prog_STRIP
19147 if test -n "$STRIP"; then
19148 { echo "$as_me:$LINENO: result: $STRIP" >&5
19149 echo "${ECHO_T}$STRIP" >&6; }
19150 else
19151 { echo "$as_me:$LINENO: result: no" >&5
19152 echo "${ECHO_T}no" >&6; }
19157 if test -z "$ac_cv_prog_STRIP"; then
19158 ac_ct_STRIP=$STRIP
19159 # Extract the first word of "strip", so it can be a program name with args.
19160 set dummy strip; ac_word=$2
19161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19163 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 else
19166 if test -n "$ac_ct_STRIP"; then
19167 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19168 else
19169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19170 for as_dir in $PATH
19172 IFS=$as_save_IFS
19173 test -z "$as_dir" && as_dir=.
19174 for ac_exec_ext in '' $ac_executable_extensions; do
19175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19176 ac_cv_prog_ac_ct_STRIP="strip"
19177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19178 break 2
19180 done
19181 done
19182 IFS=$as_save_IFS
19186 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19187 if test -n "$ac_ct_STRIP"; then
19188 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19189 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19190 else
19191 { echo "$as_me:$LINENO: result: no" >&5
19192 echo "${ECHO_T}no" >&6; }
19195 if test "x$ac_ct_STRIP" = x; then
19196 STRIP=":"
19197 else
19198 case $cross_compiling:$ac_tool_warned in
19199 yes:)
19200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19201 whose name does not start with the host triplet. If you think this
19202 configuration is useful to you, please write to autoconf@gnu.org." >&5
19203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19204 whose name does not start with the host triplet. If you think this
19205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19206 ac_tool_warned=yes ;;
19207 esac
19208 STRIP=$ac_ct_STRIP
19210 else
19211 STRIP="$ac_cv_prog_STRIP"
19215 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
19217 # We need awk for the "check" target. The system "awk" is bad on
19218 # some platforms.
19219 # Always define AMTAR for backward compatibility.
19221 AMTAR=${AMTAR-"${am_missing_run}tar"}
19223 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19228 depcc="$CC" am_compiler_list=
19230 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19231 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19232 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19236 # We make a subdir and do the tests there. Otherwise we can end up
19237 # making bogus files that we don't know about and never remove. For
19238 # instance it was reported that on HP-UX the gcc test will end up
19239 # making a dummy file named `D' -- because `-MD' means `put the output
19240 # in D'.
19241 mkdir conftest.dir
19242 # Copy depcomp to subdir because otherwise we won't find it if we're
19243 # using a relative directory.
19244 cp "$am_depcomp" conftest.dir
19245 cd conftest.dir
19246 # We will build objects and dependencies in a subdirectory because
19247 # it helps to detect inapplicable dependency modes. For instance
19248 # both Tru64's cc and ICC support -MD to output dependencies as a
19249 # side effect of compilation, but ICC will put the dependencies in
19250 # the current directory while Tru64 will put them in the object
19251 # directory.
19252 mkdir sub
19254 am_cv_CC_dependencies_compiler_type=none
19255 if test "$am_compiler_list" = ""; then
19256 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19258 for depmode in $am_compiler_list; do
19259 # Setup a source with many dependencies, because some compilers
19260 # like to wrap large dependency lists on column 80 (with \), and
19261 # we should not choose a depcomp mode which is confused by this.
19263 # We need to recreate these files for each test, as the compiler may
19264 # overwrite some of them when testing with obscure command lines.
19265 # This happens at least with the AIX C compiler.
19266 : > sub/conftest.c
19267 for i in 1 2 3 4 5 6; do
19268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19269 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19270 # Solaris 8's {/usr,}/bin/sh.
19271 touch sub/conftst$i.h
19272 done
19273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19275 case $depmode in
19276 nosideeffect)
19277 # after this tag, mechanisms are not by side-effect, so they'll
19278 # only be used when explicitly requested
19279 if test "x$enable_dependency_tracking" = xyes; then
19280 continue
19281 else
19282 break
19285 none) break ;;
19286 esac
19287 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19288 # mode. It turns out that the SunPro C++ compiler does not properly
19289 # handle `-M -o', and we need to detect this.
19290 if depmode=$depmode \
19291 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19292 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19293 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19294 >/dev/null 2>conftest.err &&
19295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19296 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19298 # icc doesn't choke on unknown options, it will just issue warnings
19299 # or remarks (even with -Werror). So we grep stderr for any message
19300 # that says an option was ignored or not supported.
19301 # When given -MP, icc 7.0 and 7.1 complain thusly:
19302 # icc: Command line warning: ignoring option '-M'; no argument required
19303 # The diagnosis changed in icc 8.0:
19304 # icc: Command line remark: option '-MP' not supported
19305 if (grep 'ignoring option' conftest.err ||
19306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19307 am_cv_CC_dependencies_compiler_type=$depmode
19308 break
19311 done
19313 cd ..
19314 rm -rf conftest.dir
19315 else
19316 am_cv_CC_dependencies_compiler_type=none
19320 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19321 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19322 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19327 test "x$enable_dependency_tracking" != xno \
19328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19329 am__fastdepCC_TRUE=
19330 am__fastdepCC_FALSE='#'
19331 else
19332 am__fastdepCC_TRUE='#'
19333 am__fastdepCC_FALSE=
19337 depcc="$CXX" am_compiler_list=
19339 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19340 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19341 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19345 # We make a subdir and do the tests there. Otherwise we can end up
19346 # making bogus files that we don't know about and never remove. For
19347 # instance it was reported that on HP-UX the gcc test will end up
19348 # making a dummy file named `D' -- because `-MD' means `put the output
19349 # in D'.
19350 mkdir conftest.dir
19351 # Copy depcomp to subdir because otherwise we won't find it if we're
19352 # using a relative directory.
19353 cp "$am_depcomp" conftest.dir
19354 cd conftest.dir
19355 # We will build objects and dependencies in a subdirectory because
19356 # it helps to detect inapplicable dependency modes. For instance
19357 # both Tru64's cc and ICC support -MD to output dependencies as a
19358 # side effect of compilation, but ICC will put the dependencies in
19359 # the current directory while Tru64 will put them in the object
19360 # directory.
19361 mkdir sub
19363 am_cv_CXX_dependencies_compiler_type=none
19364 if test "$am_compiler_list" = ""; then
19365 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19367 for depmode in $am_compiler_list; do
19368 # Setup a source with many dependencies, because some compilers
19369 # like to wrap large dependency lists on column 80 (with \), and
19370 # we should not choose a depcomp mode which is confused by this.
19372 # We need to recreate these files for each test, as the compiler may
19373 # overwrite some of them when testing with obscure command lines.
19374 # This happens at least with the AIX C compiler.
19375 : > sub/conftest.c
19376 for i in 1 2 3 4 5 6; do
19377 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19378 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19379 # Solaris 8's {/usr,}/bin/sh.
19380 touch sub/conftst$i.h
19381 done
19382 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19384 case $depmode in
19385 nosideeffect)
19386 # after this tag, mechanisms are not by side-effect, so they'll
19387 # only be used when explicitly requested
19388 if test "x$enable_dependency_tracking" = xyes; then
19389 continue
19390 else
19391 break
19394 none) break ;;
19395 esac
19396 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19397 # mode. It turns out that the SunPro C++ compiler does not properly
19398 # handle `-M -o', and we need to detect this.
19399 if depmode=$depmode \
19400 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19401 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19402 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19403 >/dev/null 2>conftest.err &&
19404 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19405 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19406 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19407 # icc doesn't choke on unknown options, it will just issue warnings
19408 # or remarks (even with -Werror). So we grep stderr for any message
19409 # that says an option was ignored or not supported.
19410 # When given -MP, icc 7.0 and 7.1 complain thusly:
19411 # icc: Command line warning: ignoring option '-M'; no argument required
19412 # The diagnosis changed in icc 8.0:
19413 # icc: Command line remark: option '-MP' not supported
19414 if (grep 'ignoring option' conftest.err ||
19415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19416 am_cv_CXX_dependencies_compiler_type=$depmode
19417 break
19420 done
19422 cd ..
19423 rm -rf conftest.dir
19424 else
19425 am_cv_CXX_dependencies_compiler_type=none
19429 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19430 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19431 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19436 test "x$enable_dependency_tracking" != xno \
19437 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19438 am__fastdepCXX_TRUE=
19439 am__fastdepCXX_FALSE='#'
19440 else
19441 am__fastdepCXX_TRUE='#'
19442 am__fastdepCXX_FALSE=
19448 LIB_MAJ=2
19451 cat >>confdefs.h <<_ACEOF
19452 #define LIB_MAJ $LIB_MAJ
19453 _ACEOF
19456 # Check whether --enable-debug was given.
19457 if test "${enable_debug+set}" = set; then
19458 enableval=$enable_debug;
19459 cat >>confdefs.h <<\_ACEOF
19460 #define OPENPAM_DEBUG 1
19461 _ACEOF
19466 { echo "$as_me:$LINENO: checking whether loading unversioned modules support is enabled" >&5
19467 echo $ECHO_N "checking whether loading unversioned modules support is enabled... $ECHO_C" >&6; }
19468 # Check whether --enable-unversioned-modules was given.
19469 if test "${enable_unversioned_modules+set}" = set; then
19470 enableval=$enable_unversioned_modules; if test "$enableval" = "no"; then
19472 cat >>confdefs.h <<\_ACEOF
19473 #define DISABLE_UNVERSIONED_MODULES 1
19474 _ACEOF
19477 { echo "$as_me:$LINENO: result: no" >&5
19478 echo "${ECHO_T}no" >&6; }
19479 else
19480 { echo "$as_me:$LINENO: result: yes" >&5
19481 echo "${ECHO_T}yes" >&6; }
19485 { echo "$as_me:$LINENO: checking for modules directory support" >&5
19486 echo $ECHO_N "checking for modules directory support... $ECHO_C" >&6; }
19488 # Check whether --with-modules-dir was given.
19489 if test "${with_modules_dir+set}" = set; then
19490 withval=$with_modules_dir; if test "$withval" != "no"; then
19491 OPENPAM_MODULES_DIR="$withval"
19493 cat >>confdefs.h <<_ACEOF
19494 #define OPENPAM_MODULES_DIR "$OPENPAM_MODULES_DIR"
19495 _ACEOF
19497 { echo "$as_me:$LINENO: result: $OPENPAM_MODULES_DIR" >&5
19498 echo "${ECHO_T}$OPENPAM_MODULES_DIR" >&6; }
19499 else
19500 OPENPAM_MODULES_DIR="$libdir"
19501 { echo "$as_me:$LINENO: result: no" >&5
19502 echo "${ECHO_T}no" >&6; }
19504 else
19505 OPENPAM_MODULES_DIR="$libdir"
19506 { echo "$as_me:$LINENO: result: no" >&5
19507 echo "${ECHO_T}no" >&6; }
19512 { echo "$as_me:$LINENO: checking whether to build the documentation" >&5
19513 echo $ECHO_N "checking whether to build the documentation... $ECHO_C" >&6; }
19515 # Check whether --with-doc was given.
19516 if test "${with_doc+set}" = set; then
19517 withval=$with_doc;
19518 else
19519 with_doc=yes
19522 { echo "$as_me:$LINENO: result: $with_doc" >&5
19523 echo "${ECHO_T}$with_doc" >&6; }
19525 { echo "$as_me:$LINENO: checking whether to build example version of pam_unix.so" >&5
19526 echo $ECHO_N "checking whether to build example version of pam_unix.so... $ECHO_C" >&6; }
19528 # Check whether --with-pam-unix was given.
19529 if test "${with_pam_unix+set}" = set; then
19530 withval=$with_pam_unix;
19531 else
19532 with_pam_unix=no
19535 { echo "$as_me:$LINENO: result: $with_pam_unix" >&5
19536 echo "${ECHO_T}$with_pam_unix" >&6; }
19538 { echo "$as_me:$LINENO: checking whether to build example version of su(1)" >&5
19539 echo $ECHO_N "checking whether to build example version of su(1)... $ECHO_C" >&6; }
19541 # Check whether --with-su was given.
19542 if test "${with_su+set}" = set; then
19543 withval=$with_su;
19544 else
19545 with_su=no
19548 { echo "$as_me:$LINENO: result: $with_su" >&5
19549 echo "${ECHO_T}$with_su" >&6; }
19553 if test "x$with_doc" = "xyes"; then
19554 WITH_DOC_TRUE=
19555 WITH_DOC_FALSE='#'
19556 else
19557 WITH_DOC_TRUE='#'
19558 WITH_DOC_FALSE=
19563 if test "x$with_pam_unix" = "xyes"; then
19564 WITH_PAM_UNIX_TRUE=
19565 WITH_PAM_UNIX_FALSE='#'
19566 else
19567 WITH_PAM_UNIX_TRUE='#'
19568 WITH_PAM_UNIX_FALSE=
19573 if test "x$with_su" = "xyes"; then
19574 WITH_SU_TRUE=
19575 WITH_SU_FALSE='#'
19576 else
19577 WITH_SU_TRUE='#'
19578 WITH_SU_FALSE=
19582 # Find a good install program. We prefer a C program (faster),
19583 # so one script is as good as another. But avoid the broken or
19584 # incompatible versions:
19585 # SysV /etc/install, /usr/sbin/install
19586 # SunOS /usr/etc/install
19587 # IRIX /sbin/install
19588 # AIX /bin/install
19589 # AmigaOS /C/install, which installs bootblocks on floppy discs
19590 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19593 # OS/2's system install, which has a completely different semantic
19594 # ./install, which can be erroneously created by make from ./install.sh.
19595 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19596 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19597 if test -z "$INSTALL"; then
19598 if test "${ac_cv_path_install+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19602 for as_dir in $PATH
19604 IFS=$as_save_IFS
19605 test -z "$as_dir" && as_dir=.
19606 # Account for people who put trailing slashes in PATH elements.
19607 case $as_dir/ in
19608 ./ | .// | /cC/* | \
19609 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19610 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19611 /usr/ucb/* ) ;;
19613 # OSF1 and SCO ODT 3.0 have their own names for install.
19614 # Don't use installbsd from OSF since it installs stuff as root
19615 # by default.
19616 for ac_prog in ginstall scoinst install; do
19617 for ac_exec_ext in '' $ac_executable_extensions; do
19618 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19619 if test $ac_prog = install &&
19620 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19621 # AIX install. It has an incompatible calling convention.
19623 elif test $ac_prog = install &&
19624 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19625 # program-specific install script used by HP pwplus--don't use.
19627 else
19628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19629 break 3
19632 done
19633 done
19635 esac
19636 done
19637 IFS=$as_save_IFS
19641 if test "${ac_cv_path_install+set}" = set; then
19642 INSTALL=$ac_cv_path_install
19643 else
19644 # As a last resort, use the slow shell script. Don't cache a
19645 # value for INSTALL within a source directory, because that will
19646 # break other packages using the cache if that directory is
19647 # removed, or if the value is a relative name.
19648 INSTALL=$ac_install_sh
19651 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19652 echo "${ECHO_T}$INSTALL" >&6; }
19654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19655 # It thinks the first close brace ends the variable substitution.
19656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19664 for ac_header in crypt.h
19666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 ac_res=`eval echo '${'$as_ac_Header'}'`
19674 { echo "$as_me:$LINENO: result: $ac_res" >&5
19675 echo "${ECHO_T}$ac_res" >&6; }
19676 else
19677 # Is the header compilable?
19678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h. */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19686 $ac_includes_default
19687 #include <$ac_header>
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_c_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest.$ac_objext; then
19706 ac_header_compiler=yes
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_header_compiler=no
19714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19716 echo "${ECHO_T}$ac_header_compiler" >&6; }
19718 # Is the header present?
19719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h. */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #include <$ac_header>
19728 _ACEOF
19729 if { (ac_try="$ac_cpp conftest.$ac_ext"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } >/dev/null && {
19742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 }; then
19745 ac_header_preproc=yes
19746 else
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 ac_header_preproc=no
19753 rm -f conftest.err conftest.$ac_ext
19754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19755 echo "${ECHO_T}$ac_header_preproc" >&6; }
19757 # So? What about this header?
19758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19759 yes:no: )
19760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19764 ac_header_preproc=yes
19766 no:yes:* )
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19779 ( cat <<\_ASBOX
19780 ## ------------------------- ##
19781 ## Report this to des@des.no ##
19782 ## ------------------------- ##
19783 _ASBOX
19784 ) | sed "s/^/$as_me: WARNING: /" >&2
19786 esac
19787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792 eval "$as_ac_Header=\$ac_header_preproc"
19794 ac_res=`eval echo '${'$as_ac_Header'}'`
19795 { echo "$as_me:$LINENO: result: $ac_res" >&5
19796 echo "${ECHO_T}$ac_res" >&6; }
19799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19800 cat >>confdefs.h <<_ACEOF
19801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19802 _ACEOF
19806 done
19810 for ac_func in fpurge
19812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818 cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h. */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19826 #define $ac_func innocuous_$ac_func
19828 /* System header to define __stub macros and hopefully few prototypes,
19829 which can conflict with char $ac_func (); below.
19830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19831 <limits.h> exists even on freestanding compilers. */
19833 #ifdef __STDC__
19834 # include <limits.h>
19835 #else
19836 # include <assert.h>
19837 #endif
19839 #undef $ac_func
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 char $ac_func ();
19848 /* The GNU C library defines this for functions which it implements
19849 to always fail with ENOSYS. Some functions are actually named
19850 something starting with __ and the normal name is an alias. */
19851 #if defined __stub_$ac_func || defined __stub___$ac_func
19852 choke me
19853 #endif
19856 main ()
19858 return $ac_func ();
19860 return 0;
19862 _ACEOF
19863 rm -f conftest.$ac_objext conftest$ac_exeext
19864 if { (ac_try="$ac_link"
19865 case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_link") 2>conftest.er1
19871 ac_status=$?
19872 grep -v '^ *+' conftest.er1 >conftest.err
19873 rm -f conftest.er1
19874 cat conftest.err >&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } && {
19877 test -z "$ac_c_werror_flag" ||
19878 test ! -s conftest.err
19879 } && test -s conftest$ac_exeext &&
19880 $as_test_x conftest$ac_exeext; then
19881 eval "$as_ac_var=yes"
19882 else
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19886 eval "$as_ac_var=no"
19889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19890 conftest$ac_exeext conftest.$ac_ext
19892 ac_res=`eval echo '${'$as_ac_var'}'`
19893 { echo "$as_me:$LINENO: result: $ac_res" >&5
19894 echo "${ECHO_T}$ac_res" >&6; }
19895 if test `eval echo '${'$as_ac_var'}'` = yes; then
19896 cat >>confdefs.h <<_ACEOF
19897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19898 _ACEOF
19901 done
19904 DL_LIBS=
19905 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19906 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 else
19910 ac_check_lib_save_LIBS=$LIBS
19911 LIBS="-ldl $LIBS"
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19919 /* Override any GCC internal prototype to avoid an error.
19920 Use char because int might match the return type of a GCC
19921 builtin and then its argument prototype would still apply. */
19922 #ifdef __cplusplus
19923 extern "C"
19924 #endif
19925 char dlopen ();
19927 main ()
19929 return dlopen ();
19931 return 0;
19933 _ACEOF
19934 rm -f conftest.$ac_objext conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_link") 2>conftest.er1
19942 ac_status=$?
19943 grep -v '^ *+' conftest.er1 >conftest.err
19944 rm -f conftest.er1
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest$ac_exeext &&
19951 $as_test_x conftest$ac_exeext; then
19952 ac_cv_lib_dl_dlopen=yes
19953 else
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ac_cv_lib_dl_dlopen=no
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961 conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19964 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19965 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19966 if test $ac_cv_lib_dl_dlopen = yes; then
19967 DL_LIBS=-ldl
19972 CRYPT_LIBS=
19973 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19974 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
19975 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978 ac_check_lib_save_LIBS=$LIBS
19979 LIBS="-lcrypt $LIBS"
19980 cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h. */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19987 /* Override any GCC internal prototype to avoid an error.
19988 Use char because int might match the return type of a GCC
19989 builtin and then its argument prototype would still apply. */
19990 #ifdef __cplusplus
19991 extern "C"
19992 #endif
19993 char crypt ();
19995 main ()
19997 return crypt ();
19999 return 0;
20001 _ACEOF
20002 rm -f conftest.$ac_objext conftest$ac_exeext
20003 if { (ac_try="$ac_link"
20004 case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_link") 2>conftest.er1
20010 ac_status=$?
20011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } && {
20016 test -z "$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 } && test -s conftest$ac_exeext &&
20019 $as_test_x conftest$ac_exeext; then
20020 ac_cv_lib_crypt_crypt=yes
20021 else
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_cv_lib_crypt_crypt=no
20028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20029 conftest$ac_exeext conftest.$ac_ext
20030 LIBS=$ac_check_lib_save_LIBS
20032 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20033 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
20034 if test $ac_cv_lib_crypt_crypt = yes; then
20035 CRYPT_LIBS=-lcrypt
20040 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20042 # This corresponds to FreeBSD's WARNS level 6
20043 DEVELOPER_CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wformat"
20045 # Check whether --enable-developer-warnings was given.
20046 if test "${enable_developer_warnings+set}" = set; then
20047 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
20050 # Check whether --enable-debugging-symbols was given.
20051 if test "${enable_debugging_symbols+set}" = set; then
20052 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
20055 # Check whether --enable-werror was given.
20056 if test "${enable_werror+set}" = set; then
20057 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
20061 ac_config_files="$ac_config_files bin/Makefile bin/su/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_unix/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile doc/Makefile doc/man/Makefile Makefile"
20063 cat >confcache <<\_ACEOF
20064 # This file is a shell script that caches the results of configure
20065 # tests run on this system so they can be shared between configure
20066 # scripts and configure runs, see configure's option --config-cache.
20067 # It is not useful on other systems. If it contains results you don't
20068 # want to keep, you may remove or edit it.
20070 # config.status only pays attention to the cache file if you give it
20071 # the --recheck option to rerun configure.
20073 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20074 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20075 # following values.
20077 _ACEOF
20079 # The following way of writing the cache mishandles newlines in values,
20080 # but we know of no workaround that is simple, portable, and efficient.
20081 # So, we kill variables containing newlines.
20082 # Ultrix sh set writes to stderr and can't be redirected directly,
20083 # and sets the high bit in the cache file unless we assign to the vars.
20085 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20086 eval ac_val=\$$ac_var
20087 case $ac_val in #(
20088 *${as_nl}*)
20089 case $ac_var in #(
20090 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20091 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20092 esac
20093 case $ac_var in #(
20094 _ | IFS | as_nl) ;; #(
20095 *) $as_unset $ac_var ;;
20096 esac ;;
20097 esac
20098 done
20100 (set) 2>&1 |
20101 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20102 *${as_nl}ac_space=\ *)
20103 # `set' does not quote correctly, so add quotes (double-quote
20104 # substitution turns \\\\ into \\, and sed turns \\ into \).
20105 sed -n \
20106 "s/'/'\\\\''/g;
20107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20108 ;; #(
20110 # `set' quotes correctly as required by POSIX, so do not add quotes.
20111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20113 esac |
20114 sort
20116 sed '
20117 /^ac_cv_env_/b end
20118 t clear
20119 :clear
20120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20121 t end
20122 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20123 :end' >>confcache
20124 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20125 if test -w "$cache_file"; then
20126 test "x$cache_file" != "x/dev/null" &&
20127 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20128 echo "$as_me: updating cache $cache_file" >&6;}
20129 cat confcache >$cache_file
20130 else
20131 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20132 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20135 rm -f confcache
20137 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20138 # Let make expand exec_prefix.
20139 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20141 DEFS=-DHAVE_CONFIG_H
20143 ac_libobjs=
20144 ac_ltlibobjs=
20145 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20146 # 1. Remove the extension, and $U if already installed.
20147 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20148 ac_i=`echo "$ac_i" | sed "$ac_script"`
20149 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20150 # will be set to the directory where LIBOBJS objects are built.
20151 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20152 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20153 done
20154 LIBOBJS=$ac_libobjs
20156 LTLIBOBJS=$ac_ltlibobjs
20159 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20160 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20161 Usually this means the macro was only invoked conditionally." >&5
20162 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20163 Usually this means the macro was only invoked conditionally." >&2;}
20164 { (exit 1); exit 1; }; }
20166 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20167 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20168 Usually this means the macro was only invoked conditionally." >&5
20169 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20170 Usually this means the macro was only invoked conditionally." >&2;}
20171 { (exit 1); exit 1; }; }
20173 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20174 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20175 Usually this means the macro was only invoked conditionally." >&5
20176 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20177 Usually this means the macro was only invoked conditionally." >&2;}
20178 { (exit 1); exit 1; }; }
20180 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
20181 { { echo "$as_me:$LINENO: error: conditional \"WITH_DOC\" was never defined.
20182 Usually this means the macro was only invoked conditionally." >&5
20183 echo "$as_me: error: conditional \"WITH_DOC\" was never defined.
20184 Usually this means the macro was only invoked conditionally." >&2;}
20185 { (exit 1); exit 1; }; }
20187 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
20188 { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_UNIX\" was never defined.
20189 Usually this means the macro was only invoked conditionally." >&5
20190 echo "$as_me: error: conditional \"WITH_PAM_UNIX\" was never defined.
20191 Usually this means the macro was only invoked conditionally." >&2;}
20192 { (exit 1); exit 1; }; }
20194 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
20195 { { echo "$as_me:$LINENO: error: conditional \"WITH_SU\" was never defined.
20196 Usually this means the macro was only invoked conditionally." >&5
20197 echo "$as_me: error: conditional \"WITH_SU\" was never defined.
20198 Usually this means the macro was only invoked conditionally." >&2;}
20199 { (exit 1); exit 1; }; }
20202 : ${CONFIG_STATUS=./config.status}
20203 ac_clean_files_save=$ac_clean_files
20204 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20205 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20206 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20207 cat >$CONFIG_STATUS <<_ACEOF
20208 #! $SHELL
20209 # Generated by $as_me.
20210 # Run this file to recreate the current configuration.
20211 # Compiler output produced by configure, useful for debugging
20212 # configure, is in config.log if it exists.
20214 debug=false
20215 ac_cs_recheck=false
20216 ac_cs_silent=false
20217 SHELL=\${CONFIG_SHELL-$SHELL}
20218 _ACEOF
20220 cat >>$CONFIG_STATUS <<\_ACEOF
20221 ## --------------------- ##
20222 ## M4sh Initialization. ##
20223 ## --------------------- ##
20225 # Be more Bourne compatible
20226 DUALCASE=1; export DUALCASE # for MKS sh
20227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20228 emulate sh
20229 NULLCMD=:
20230 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20231 # is contrary to our usage. Disable this feature.
20232 alias -g '${1+"$@"}'='"$@"'
20233 setopt NO_GLOB_SUBST
20234 else
20235 case `(set -o) 2>/dev/null` in
20236 *posix*) set -o posix ;;
20237 esac
20244 # PATH needs CR
20245 # Avoid depending upon Character Ranges.
20246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20249 as_cr_digits='0123456789'
20250 as_cr_alnum=$as_cr_Letters$as_cr_digits
20252 # The user is always right.
20253 if test "${PATH_SEPARATOR+set}" != set; then
20254 echo "#! /bin/sh" >conf$$.sh
20255 echo "exit 0" >>conf$$.sh
20256 chmod +x conf$$.sh
20257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20258 PATH_SEPARATOR=';'
20259 else
20260 PATH_SEPARATOR=:
20262 rm -f conf$$.sh
20265 # Support unset when possible.
20266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20267 as_unset=unset
20268 else
20269 as_unset=false
20273 # IFS
20274 # We need space, tab and new line, in precisely that order. Quoting is
20275 # there to prevent editors from complaining about space-tab.
20276 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20277 # splitting by setting IFS to empty value.)
20278 as_nl='
20280 IFS=" "" $as_nl"
20282 # Find who we are. Look in the path if we contain no directory separator.
20283 case $0 in
20284 *[\\/]* ) as_myself=$0 ;;
20285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20286 for as_dir in $PATH
20288 IFS=$as_save_IFS
20289 test -z "$as_dir" && as_dir=.
20290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20291 done
20292 IFS=$as_save_IFS
20295 esac
20296 # We did not find ourselves, most probably we were run as `sh COMMAND'
20297 # in which case we are not to be found in the path.
20298 if test "x$as_myself" = x; then
20299 as_myself=$0
20301 if test ! -f "$as_myself"; then
20302 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20303 { (exit 1); exit 1; }
20306 # Work around bugs in pre-3.0 UWIN ksh.
20307 for as_var in ENV MAIL MAILPATH
20308 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20309 done
20310 PS1='$ '
20311 PS2='> '
20312 PS4='+ '
20314 # NLS nuisances.
20315 for as_var in \
20316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20318 LC_TELEPHONE LC_TIME
20320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20321 eval $as_var=C; export $as_var
20322 else
20323 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20325 done
20327 # Required to use basename.
20328 if expr a : '\(a\)' >/dev/null 2>&1 &&
20329 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20330 as_expr=expr
20331 else
20332 as_expr=false
20335 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20336 as_basename=basename
20337 else
20338 as_basename=false
20342 # Name of the executable.
20343 as_me=`$as_basename -- "$0" ||
20344 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20345 X"$0" : 'X\(//\)$' \| \
20346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20347 echo X/"$0" |
20348 sed '/^.*\/\([^/][^/]*\)\/*$/{
20349 s//\1/
20352 /^X\/\(\/\/\)$/{
20353 s//\1/
20356 /^X\/\(\/\).*/{
20357 s//\1/
20360 s/.*/./; q'`
20362 # CDPATH.
20363 $as_unset CDPATH
20367 as_lineno_1=$LINENO
20368 as_lineno_2=$LINENO
20369 test "x$as_lineno_1" != "x$as_lineno_2" &&
20370 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20373 # uniformly replaced by the line number. The first 'sed' inserts a
20374 # line-number line after each line using $LINENO; the second 'sed'
20375 # does the real work. The second script uses 'N' to pair each
20376 # line-number line with the line containing $LINENO, and appends
20377 # trailing '-' during substitution so that $LINENO is not a special
20378 # case at line end.
20379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20380 # scripts with optimization help from Paolo Bonzini. Blame Lee
20381 # E. McMahon (1931-1989) for sed's syntax. :-)
20382 sed -n '
20384 /[$]LINENO/=
20385 ' <$as_myself |
20386 sed '
20387 s/[$]LINENO.*/&-/
20388 t lineno
20390 :lineno
20392 :loop
20393 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20394 t loop
20395 s/-\n.*//
20396 ' >$as_me.lineno &&
20397 chmod +x "$as_me.lineno" ||
20398 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20399 { (exit 1); exit 1; }; }
20401 # Don't try to exec as it changes $[0], causing all sort of problems
20402 # (the dirname of $[0] is not the place where we might find the
20403 # original and so on. Autoconf is especially sensitive to this).
20404 . "./$as_me.lineno"
20405 # Exit status is that of the last command.
20406 exit
20410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20411 as_dirname=dirname
20412 else
20413 as_dirname=false
20416 ECHO_C= ECHO_N= ECHO_T=
20417 case `echo -n x` in
20418 -n*)
20419 case `echo 'x\c'` in
20420 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20421 *) ECHO_C='\c';;
20422 esac;;
20424 ECHO_N='-n';;
20425 esac
20427 if expr a : '\(a\)' >/dev/null 2>&1 &&
20428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20429 as_expr=expr
20430 else
20431 as_expr=false
20434 rm -f conf$$ conf$$.exe conf$$.file
20435 if test -d conf$$.dir; then
20436 rm -f conf$$.dir/conf$$.file
20437 else
20438 rm -f conf$$.dir
20439 mkdir conf$$.dir
20441 echo >conf$$.file
20442 if ln -s conf$$.file conf$$ 2>/dev/null; then
20443 as_ln_s='ln -s'
20444 # ... but there are two gotchas:
20445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20447 # In both cases, we have to default to `cp -p'.
20448 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20449 as_ln_s='cp -p'
20450 elif ln conf$$.file conf$$ 2>/dev/null; then
20451 as_ln_s=ln
20452 else
20453 as_ln_s='cp -p'
20455 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20456 rmdir conf$$.dir 2>/dev/null
20458 if mkdir -p . 2>/dev/null; then
20459 as_mkdir_p=:
20460 else
20461 test -d ./-p && rmdir ./-p
20462 as_mkdir_p=false
20465 if test -x / >/dev/null 2>&1; then
20466 as_test_x='test -x'
20467 else
20468 if ls -dL / >/dev/null 2>&1; then
20469 as_ls_L_option=L
20470 else
20471 as_ls_L_option=
20473 as_test_x='
20474 eval sh -c '\''
20475 if test -d "$1"; then
20476 test -d "$1/.";
20477 else
20478 case $1 in
20479 -*)set "./$1";;
20480 esac;
20481 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20482 ???[sx]*):;;*)false;;esac;fi
20483 '\'' sh
20486 as_executable_p=$as_test_x
20488 # Sed expression to map a string onto a valid CPP name.
20489 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20491 # Sed expression to map a string onto a valid variable name.
20492 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20495 exec 6>&1
20497 # Save the log message, to keep $[0] and so on meaningful, and to
20498 # report actual input values of CONFIG_FILES etc. instead of their
20499 # values after options handling.
20500 ac_log="
20501 This file was extended by OpenPAM $as_me 20071221, which was
20502 generated by GNU Autoconf 2.61. Invocation command line was
20504 CONFIG_FILES = $CONFIG_FILES
20505 CONFIG_HEADERS = $CONFIG_HEADERS
20506 CONFIG_LINKS = $CONFIG_LINKS
20507 CONFIG_COMMANDS = $CONFIG_COMMANDS
20508 $ $0 $@
20510 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20513 _ACEOF
20515 cat >>$CONFIG_STATUS <<_ACEOF
20516 # Files that config.status was made for.
20517 config_files="$ac_config_files"
20518 config_headers="$ac_config_headers"
20519 config_commands="$ac_config_commands"
20521 _ACEOF
20523 cat >>$CONFIG_STATUS <<\_ACEOF
20524 ac_cs_usage="\
20525 \`$as_me' instantiates files from templates according to the
20526 current configuration.
20528 Usage: $0 [OPTIONS] [FILE]...
20530 -h, --help print this help, then exit
20531 -V, --version print version number and configuration settings, then exit
20532 -q, --quiet do not print progress messages
20533 -d, --debug don't remove temporary files
20534 --recheck update $as_me by reconfiguring in the same conditions
20535 --file=FILE[:TEMPLATE]
20536 instantiate the configuration file FILE
20537 --header=FILE[:TEMPLATE]
20538 instantiate the configuration header FILE
20540 Configuration files:
20541 $config_files
20543 Configuration headers:
20544 $config_headers
20546 Configuration commands:
20547 $config_commands
20549 Report bugs to <bug-autoconf@gnu.org>."
20551 _ACEOF
20552 cat >>$CONFIG_STATUS <<_ACEOF
20553 ac_cs_version="\\
20554 OpenPAM config.status 20071221
20555 configured by $0, generated by GNU Autoconf 2.61,
20556 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20558 Copyright (C) 2006 Free Software Foundation, Inc.
20559 This config.status script is free software; the Free Software Foundation
20560 gives unlimited permission to copy, distribute and modify it."
20562 ac_pwd='$ac_pwd'
20563 srcdir='$srcdir'
20564 INSTALL='$INSTALL'
20565 _ACEOF
20567 cat >>$CONFIG_STATUS <<\_ACEOF
20568 # If no file are specified by the user, then we need to provide default
20569 # value. By we need to know if files were specified by the user.
20570 ac_need_defaults=:
20571 while test $# != 0
20573 case $1 in
20574 --*=*)
20575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20576 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20577 ac_shift=:
20580 ac_option=$1
20581 ac_optarg=$2
20582 ac_shift=shift
20584 esac
20586 case $ac_option in
20587 # Handling of the options.
20588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20589 ac_cs_recheck=: ;;
20590 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20591 echo "$ac_cs_version"; exit ;;
20592 --debug | --debu | --deb | --de | --d | -d )
20593 debug=: ;;
20594 --file | --fil | --fi | --f )
20595 $ac_shift
20596 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20597 ac_need_defaults=false;;
20598 --header | --heade | --head | --hea )
20599 $ac_shift
20600 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20601 ac_need_defaults=false;;
20602 --he | --h)
20603 # Conflict between --help and --header
20604 { echo "$as_me: error: ambiguous option: $1
20605 Try \`$0 --help' for more information." >&2
20606 { (exit 1); exit 1; }; };;
20607 --help | --hel | -h )
20608 echo "$ac_cs_usage"; exit ;;
20609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20610 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20611 ac_cs_silent=: ;;
20613 # This is an error.
20614 -*) { echo "$as_me: error: unrecognized option: $1
20615 Try \`$0 --help' for more information." >&2
20616 { (exit 1); exit 1; }; } ;;
20618 *) ac_config_targets="$ac_config_targets $1"
20619 ac_need_defaults=false ;;
20621 esac
20622 shift
20623 done
20625 ac_configure_extra_args=
20627 if $ac_cs_silent; then
20628 exec 6>/dev/null
20629 ac_configure_extra_args="$ac_configure_extra_args --silent"
20632 _ACEOF
20633 cat >>$CONFIG_STATUS <<_ACEOF
20634 if \$ac_cs_recheck; then
20635 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20636 CONFIG_SHELL=$SHELL
20637 export CONFIG_SHELL
20638 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20641 _ACEOF
20642 cat >>$CONFIG_STATUS <<\_ACEOF
20643 exec 5>>config.log
20645 echo
20646 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20647 ## Running $as_me. ##
20648 _ASBOX
20649 echo "$ac_log"
20650 } >&5
20652 _ACEOF
20653 cat >>$CONFIG_STATUS <<_ACEOF
20655 # INIT-COMMANDS
20657 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20659 _ACEOF
20661 cat >>$CONFIG_STATUS <<\_ACEOF
20663 # Handling of arguments.
20664 for ac_config_target in $ac_config_targets
20666 case $ac_config_target in
20667 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20668 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20669 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20670 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
20671 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20672 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
20673 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20674 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
20675 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
20676 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
20677 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
20678 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20679 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20680 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20684 { (exit 1); exit 1; }; };;
20685 esac
20686 done
20689 # If the user did not use the arguments to specify the items to instantiate,
20690 # then the envvar interface is used. Set only those that are not.
20691 # We use the long form for the default assignment because of an extremely
20692 # bizarre bug on SunOS 4.1.3.
20693 if $ac_need_defaults; then
20694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20699 # Have a temporary directory for convenience. Make it in the build tree
20700 # simply because there is no reason against having it here, and in addition,
20701 # creating and moving files from /tmp can sometimes cause problems.
20702 # Hook for its removal unless debugging.
20703 # Note that there is a small window in which the directory will not be cleaned:
20704 # after its creation but before its name has been assigned to `$tmp'.
20705 $debug ||
20707 tmp=
20708 trap 'exit_status=$?
20709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20711 trap '{ (exit 1); exit 1; }' 1 2 13 15
20713 # Create a (secure) tmp directory for tmp files.
20716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20717 test -n "$tmp" && test -d "$tmp"
20718 } ||
20720 tmp=./conf$$-$RANDOM
20721 (umask 077 && mkdir "$tmp")
20722 } ||
20724 echo "$me: cannot create a temporary directory in ." >&2
20725 { (exit 1); exit 1; }
20729 # Set up the sed scripts for CONFIG_FILES section.
20732 # No need to generate the scripts if there are no CONFIG_FILES.
20733 # This happens for instance when ./config.status config.h
20734 if test -n "$CONFIG_FILES"; then
20736 _ACEOF
20740 ac_delim='%!_!# '
20741 for ac_last_try in false false false false false :; do
20742 cat >conf$$subs.sed <<_ACEOF
20743 SHELL!$SHELL$ac_delim
20744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20750 exec_prefix!$exec_prefix$ac_delim
20751 prefix!$prefix$ac_delim
20752 program_transform_name!$program_transform_name$ac_delim
20753 bindir!$bindir$ac_delim
20754 sbindir!$sbindir$ac_delim
20755 libexecdir!$libexecdir$ac_delim
20756 datarootdir!$datarootdir$ac_delim
20757 datadir!$datadir$ac_delim
20758 sysconfdir!$sysconfdir$ac_delim
20759 sharedstatedir!$sharedstatedir$ac_delim
20760 localstatedir!$localstatedir$ac_delim
20761 includedir!$includedir$ac_delim
20762 oldincludedir!$oldincludedir$ac_delim
20763 docdir!$docdir$ac_delim
20764 infodir!$infodir$ac_delim
20765 htmldir!$htmldir$ac_delim
20766 dvidir!$dvidir$ac_delim
20767 pdfdir!$pdfdir$ac_delim
20768 psdir!$psdir$ac_delim
20769 libdir!$libdir$ac_delim
20770 localedir!$localedir$ac_delim
20771 mandir!$mandir$ac_delim
20772 DEFS!$DEFS$ac_delim
20773 ECHO_C!$ECHO_C$ac_delim
20774 ECHO_N!$ECHO_N$ac_delim
20775 ECHO_T!$ECHO_T$ac_delim
20776 LIBS!$LIBS$ac_delim
20777 build_alias!$build_alias$ac_delim
20778 host_alias!$host_alias$ac_delim
20779 target_alias!$target_alias$ac_delim
20780 build!$build$ac_delim
20781 build_cpu!$build_cpu$ac_delim
20782 build_vendor!$build_vendor$ac_delim
20783 build_os!$build_os$ac_delim
20784 host!$host$ac_delim
20785 host_cpu!$host_cpu$ac_delim
20786 host_vendor!$host_vendor$ac_delim
20787 host_os!$host_os$ac_delim
20788 target!$target$ac_delim
20789 target_cpu!$target_cpu$ac_delim
20790 target_vendor!$target_vendor$ac_delim
20791 target_os!$target_os$ac_delim
20792 CC!$CC$ac_delim
20793 CFLAGS!$CFLAGS$ac_delim
20794 LDFLAGS!$LDFLAGS$ac_delim
20795 CPPFLAGS!$CPPFLAGS$ac_delim
20796 ac_ct_CC!$ac_ct_CC$ac_delim
20797 EXEEXT!$EXEEXT$ac_delim
20798 OBJEXT!$OBJEXT$ac_delim
20799 SED!$SED$ac_delim
20800 GREP!$GREP$ac_delim
20801 EGREP!$EGREP$ac_delim
20802 LN_S!$LN_S$ac_delim
20803 ECHO!$ECHO$ac_delim
20804 AR!$AR$ac_delim
20805 RANLIB!$RANLIB$ac_delim
20806 STRIP!$STRIP$ac_delim
20807 CPP!$CPP$ac_delim
20808 CXX!$CXX$ac_delim
20809 CXXFLAGS!$CXXFLAGS$ac_delim
20810 ac_ct_CXX!$ac_ct_CXX$ac_delim
20811 CXXCPP!$CXXCPP$ac_delim
20812 F77!$F77$ac_delim
20813 FFLAGS!$FFLAGS$ac_delim
20814 ac_ct_F77!$ac_ct_F77$ac_delim
20815 LIBTOOL!$LIBTOOL$ac_delim
20816 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20817 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20818 INSTALL_DATA!$INSTALL_DATA$ac_delim
20819 CYGPATH_W!$CYGPATH_W$ac_delim
20820 PACKAGE!$PACKAGE$ac_delim
20821 VERSION!$VERSION$ac_delim
20822 ACLOCAL!$ACLOCAL$ac_delim
20823 AUTOCONF!$AUTOCONF$ac_delim
20824 AUTOMAKE!$AUTOMAKE$ac_delim
20825 AUTOHEADER!$AUTOHEADER$ac_delim
20826 MAKEINFO!$MAKEINFO$ac_delim
20827 install_sh!$install_sh$ac_delim
20828 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20829 mkdir_p!$mkdir_p$ac_delim
20830 AWK!$AWK$ac_delim
20831 SET_MAKE!$SET_MAKE$ac_delim
20832 am__leading_dot!$am__leading_dot$ac_delim
20833 AMTAR!$AMTAR$ac_delim
20834 am__tar!$am__tar$ac_delim
20835 am__untar!$am__untar$ac_delim
20836 DEPDIR!$DEPDIR$ac_delim
20837 am__include!$am__include$ac_delim
20838 am__quote!$am__quote$ac_delim
20839 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20840 _ACEOF
20842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20843 break
20844 elif $ac_last_try; then
20845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20847 { (exit 1); exit 1; }; }
20848 else
20849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20851 done
20853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20854 if test -n "$ac_eof"; then
20855 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20856 ac_eof=`expr $ac_eof + 1`
20859 cat >>$CONFIG_STATUS <<_ACEOF
20860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20862 _ACEOF
20863 sed '
20864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20865 s/^/s,@/; s/!/@,|#_!!_#|/
20868 s/'"$ac_delim"'$/,g/; t
20869 s/$/\\/; p
20870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20871 ' >>$CONFIG_STATUS <conf$$subs.sed
20872 rm -f conf$$subs.sed
20873 cat >>$CONFIG_STATUS <<_ACEOF
20874 CEOF$ac_eof
20875 _ACEOF
20878 ac_delim='%!_!# '
20879 for ac_last_try in false false false false false :; do
20880 cat >conf$$subs.sed <<_ACEOF
20881 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20882 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20883 CCDEPMODE!$CCDEPMODE$ac_delim
20884 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20885 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20886 CXXDEPMODE!$CXXDEPMODE$ac_delim
20887 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20888 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20889 LIB_MAJ!$LIB_MAJ$ac_delim
20890 OPENPAM_MODULES_DIR!$OPENPAM_MODULES_DIR$ac_delim
20891 WITH_DOC_TRUE!$WITH_DOC_TRUE$ac_delim
20892 WITH_DOC_FALSE!$WITH_DOC_FALSE$ac_delim
20893 WITH_PAM_UNIX_TRUE!$WITH_PAM_UNIX_TRUE$ac_delim
20894 WITH_PAM_UNIX_FALSE!$WITH_PAM_UNIX_FALSE$ac_delim
20895 WITH_SU_TRUE!$WITH_SU_TRUE$ac_delim
20896 WITH_SU_FALSE!$WITH_SU_FALSE$ac_delim
20897 DL_LIBS!$DL_LIBS$ac_delim
20898 CRYPT_LIBS!$CRYPT_LIBS$ac_delim
20899 LIBOBJS!$LIBOBJS$ac_delim
20900 LTLIBOBJS!$LTLIBOBJS$ac_delim
20901 _ACEOF
20903 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
20904 break
20905 elif $ac_last_try; then
20906 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20907 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20908 { (exit 1); exit 1; }; }
20909 else
20910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20912 done
20914 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20915 if test -n "$ac_eof"; then
20916 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20917 ac_eof=`expr $ac_eof + 1`
20920 cat >>$CONFIG_STATUS <<_ACEOF
20921 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20922 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20923 _ACEOF
20924 sed '
20925 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20926 s/^/s,@/; s/!/@,|#_!!_#|/
20929 s/'"$ac_delim"'$/,g/; t
20930 s/$/\\/; p
20931 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20932 ' >>$CONFIG_STATUS <conf$$subs.sed
20933 rm -f conf$$subs.sed
20934 cat >>$CONFIG_STATUS <<_ACEOF
20935 :end
20936 s/|#_!!_#|//g
20937 CEOF$ac_eof
20938 _ACEOF
20941 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20942 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20943 # trailing colons and then remove the whole line if VPATH becomes empty
20944 # (actually we leave an empty line to preserve line numbers).
20945 if test "x$srcdir" = x.; then
20946 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20947 s/:*\$(srcdir):*/:/
20948 s/:*\${srcdir}:*/:/
20949 s/:*@srcdir@:*/:/
20950 s/^\([^=]*=[ ]*\):*/\1/
20951 s/:*$//
20952 s/^[^=]*=[ ]*$//
20956 cat >>$CONFIG_STATUS <<\_ACEOF
20957 fi # test -n "$CONFIG_FILES"
20960 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20962 case $ac_tag in
20963 :[FHLC]) ac_mode=$ac_tag; continue;;
20964 esac
20965 case $ac_mode$ac_tag in
20966 :[FHL]*:*);;
20967 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20968 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20969 { (exit 1); exit 1; }; };;
20970 :[FH]-) ac_tag=-:-;;
20971 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20972 esac
20973 ac_save_IFS=$IFS
20974 IFS=:
20975 set x $ac_tag
20976 IFS=$ac_save_IFS
20977 shift
20978 ac_file=$1
20979 shift
20981 case $ac_mode in
20982 :L) ac_source=$1;;
20983 :[FH])
20984 ac_file_inputs=
20985 for ac_f
20987 case $ac_f in
20988 -) ac_f="$tmp/stdin";;
20989 *) # Look for the file first in the build tree, then in the source tree
20990 # (if the path is not absolute). The absolute path cannot be DOS-style,
20991 # because $ac_f cannot contain `:'.
20992 test -f "$ac_f" ||
20993 case $ac_f in
20994 [\\/$]*) false;;
20995 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20996 esac ||
20997 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20998 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20999 { (exit 1); exit 1; }; };;
21000 esac
21001 ac_file_inputs="$ac_file_inputs $ac_f"
21002 done
21004 # Let's still pretend it is `configure' which instantiates (i.e., don't
21005 # use $as_me), people would be surprised to read:
21006 # /* config.h. Generated by config.status. */
21007 configure_input="Generated from "`IFS=:
21008 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21009 if test x"$ac_file" != x-; then
21010 configure_input="$ac_file. $configure_input"
21011 { echo "$as_me:$LINENO: creating $ac_file" >&5
21012 echo "$as_me: creating $ac_file" >&6;}
21015 case $ac_tag in
21016 *:-:* | *:-) cat >"$tmp/stdin";;
21017 esac
21019 esac
21021 ac_dir=`$as_dirname -- "$ac_file" ||
21022 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21023 X"$ac_file" : 'X\(//\)[^/]' \| \
21024 X"$ac_file" : 'X\(//\)$' \| \
21025 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21026 echo X"$ac_file" |
21027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21028 s//\1/
21031 /^X\(\/\/\)[^/].*/{
21032 s//\1/
21035 /^X\(\/\/\)$/{
21036 s//\1/
21039 /^X\(\/\).*/{
21040 s//\1/
21043 s/.*/./; q'`
21044 { as_dir="$ac_dir"
21045 case $as_dir in #(
21046 -*) as_dir=./$as_dir;;
21047 esac
21048 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21049 as_dirs=
21050 while :; do
21051 case $as_dir in #(
21052 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21053 *) as_qdir=$as_dir;;
21054 esac
21055 as_dirs="'$as_qdir' $as_dirs"
21056 as_dir=`$as_dirname -- "$as_dir" ||
21057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21058 X"$as_dir" : 'X\(//\)[^/]' \| \
21059 X"$as_dir" : 'X\(//\)$' \| \
21060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21061 echo X"$as_dir" |
21062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21063 s//\1/
21066 /^X\(\/\/\)[^/].*/{
21067 s//\1/
21070 /^X\(\/\/\)$/{
21071 s//\1/
21074 /^X\(\/\).*/{
21075 s//\1/
21078 s/.*/./; q'`
21079 test -d "$as_dir" && break
21080 done
21081 test -z "$as_dirs" || eval "mkdir $as_dirs"
21082 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21083 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21084 { (exit 1); exit 1; }; }; }
21085 ac_builddir=.
21087 case "$ac_dir" in
21088 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21091 # A ".." for each directory in $ac_dir_suffix.
21092 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21093 case $ac_top_builddir_sub in
21094 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21095 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21096 esac ;;
21097 esac
21098 ac_abs_top_builddir=$ac_pwd
21099 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21100 # for backward compatibility:
21101 ac_top_builddir=$ac_top_build_prefix
21103 case $srcdir in
21104 .) # We are building in place.
21105 ac_srcdir=.
21106 ac_top_srcdir=$ac_top_builddir_sub
21107 ac_abs_top_srcdir=$ac_pwd ;;
21108 [\\/]* | ?:[\\/]* ) # Absolute name.
21109 ac_srcdir=$srcdir$ac_dir_suffix;
21110 ac_top_srcdir=$srcdir
21111 ac_abs_top_srcdir=$srcdir ;;
21112 *) # Relative name.
21113 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21114 ac_top_srcdir=$ac_top_build_prefix$srcdir
21115 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21116 esac
21117 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21120 case $ac_mode in
21123 # CONFIG_FILE
21126 case $INSTALL in
21127 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21128 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21129 esac
21130 _ACEOF
21132 cat >>$CONFIG_STATUS <<\_ACEOF
21133 # If the template does not know about datarootdir, expand it.
21134 # FIXME: This hack should be removed a few years after 2.60.
21135 ac_datarootdir_hack=; ac_datarootdir_seen=
21137 case `sed -n '/datarootdir/ {
21141 /@datadir@/p
21142 /@docdir@/p
21143 /@infodir@/p
21144 /@localedir@/p
21145 /@mandir@/p
21146 ' $ac_file_inputs` in
21147 *datarootdir*) ac_datarootdir_seen=yes;;
21148 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21149 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21150 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21151 _ACEOF
21152 cat >>$CONFIG_STATUS <<_ACEOF
21153 ac_datarootdir_hack='
21154 s&@datadir@&$datadir&g
21155 s&@docdir@&$docdir&g
21156 s&@infodir@&$infodir&g
21157 s&@localedir@&$localedir&g
21158 s&@mandir@&$mandir&g
21159 s&\\\${datarootdir}&$datarootdir&g' ;;
21160 esac
21161 _ACEOF
21163 # Neutralize VPATH when `$srcdir' = `.'.
21164 # Shell code in configure.ac might set extrasub.
21165 # FIXME: do we really want to maintain this feature?
21166 cat >>$CONFIG_STATUS <<_ACEOF
21167 sed "$ac_vpsub
21168 $extrasub
21169 _ACEOF
21170 cat >>$CONFIG_STATUS <<\_ACEOF
21172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21173 s&@configure_input@&$configure_input&;t t
21174 s&@top_builddir@&$ac_top_builddir_sub&;t t
21175 s&@srcdir@&$ac_srcdir&;t t
21176 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21177 s&@top_srcdir@&$ac_top_srcdir&;t t
21178 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21179 s&@builddir@&$ac_builddir&;t t
21180 s&@abs_builddir@&$ac_abs_builddir&;t t
21181 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21182 s&@INSTALL@&$ac_INSTALL&;t t
21183 $ac_datarootdir_hack
21184 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21186 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21189 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21190 which seems to be undefined. Please make sure it is defined." >&5
21191 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21192 which seems to be undefined. Please make sure it is defined." >&2;}
21194 rm -f "$tmp/stdin"
21195 case $ac_file in
21196 -) cat "$tmp/out"; rm -f "$tmp/out";;
21197 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21198 esac
21202 # CONFIG_HEADER
21204 _ACEOF
21206 # Transform confdefs.h into a sed script `conftest.defines', that
21207 # substitutes the proper values into config.h.in to produce config.h.
21208 rm -f conftest.defines conftest.tail
21209 # First, append a space to every undef/define line, to ease matching.
21210 echo 's/$/ /' >conftest.defines
21211 # Then, protect against being on the right side of a sed subst, or in
21212 # an unquoted here document, in config.status. If some macros were
21213 # called several times there might be several #defines for the same
21214 # symbol, which is useless. But do not sort them, since the last
21215 # AC_DEFINE must be honored.
21216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21217 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21218 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21219 # PARAMS is the parameter list in the macro definition--in most cases, it's
21220 # just an empty string.
21221 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21222 ac_dB='\\)[ (].*,\\1define\\2'
21223 ac_dC=' '
21224 ac_dD=' ,'
21226 uniq confdefs.h |
21227 sed -n '
21228 t rset
21229 :rset
21230 s/^[ ]*#[ ]*define[ ][ ]*//
21231 t ok
21234 s/[\\&,]/\\&/g
21235 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21236 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21237 ' >>conftest.defines
21239 # Remove the space that was appended to ease matching.
21240 # Then replace #undef with comments. This is necessary, for
21241 # example, in the case of _POSIX_SOURCE, which is predefined and required
21242 # on some systems where configure will not decide to define it.
21243 # (The regexp can be short, since the line contains either #define or #undef.)
21244 echo 's/ $//
21245 s,^[ #]*u.*,/* & */,' >>conftest.defines
21247 # Break up conftest.defines:
21248 ac_max_sed_lines=50
21250 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21251 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21252 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21253 # et cetera.
21254 ac_in='$ac_file_inputs'
21255 ac_out='"$tmp/out1"'
21256 ac_nxt='"$tmp/out2"'
21258 while :
21260 # Write a here document:
21261 cat >>$CONFIG_STATUS <<_ACEOF
21262 # First, check the format of the line:
21263 cat >"\$tmp/defines.sed" <<\\CEOF
21264 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21265 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21267 :def
21268 _ACEOF
21269 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21270 echo 'CEOF
21271 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21272 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21273 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21274 grep . conftest.tail >/dev/null || break
21275 rm -f conftest.defines
21276 mv conftest.tail conftest.defines
21277 done
21278 rm -f conftest.defines conftest.tail
21280 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21281 cat >>$CONFIG_STATUS <<\_ACEOF
21282 if test x"$ac_file" != x-; then
21283 echo "/* $configure_input */" >"$tmp/config.h"
21284 cat "$ac_result" >>"$tmp/config.h"
21285 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21286 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21287 echo "$as_me: $ac_file is unchanged" >&6;}
21288 else
21289 rm -f $ac_file
21290 mv "$tmp/config.h" $ac_file
21292 else
21293 echo "/* $configure_input */"
21294 cat "$ac_result"
21296 rm -f "$tmp/out12"
21297 # Compute $ac_file's index in $config_headers.
21298 _am_stamp_count=1
21299 for _am_header in $config_headers :; do
21300 case $_am_header in
21301 $ac_file | $ac_file:* )
21302 break ;;
21304 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21305 esac
21306 done
21307 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21308 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21309 X$ac_file : 'X\(//\)[^/]' \| \
21310 X$ac_file : 'X\(//\)$' \| \
21311 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21312 echo X$ac_file |
21313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21314 s//\1/
21317 /^X\(\/\/\)[^/].*/{
21318 s//\1/
21321 /^X\(\/\/\)$/{
21322 s//\1/
21325 /^X\(\/\).*/{
21326 s//\1/
21329 s/.*/./; q'`/stamp-h$_am_stamp_count
21332 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21333 echo "$as_me: executing $ac_file commands" >&6;}
21335 esac
21338 case $ac_file$ac_mode in
21339 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21340 # Strip MF so we end up with the name of the file.
21341 mf=`echo "$mf" | sed -e 's/:.*$//'`
21342 # Check whether this is an Automake generated Makefile or not.
21343 # We used to match only the files named `Makefile.in', but
21344 # some people rename them; so instead we look at the file content.
21345 # Grep'ing the first line is not enough: some people post-process
21346 # each Makefile.in and add a new line on top of each file to say so.
21347 # So let's grep whole file.
21348 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21349 dirpart=`$as_dirname -- "$mf" ||
21350 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21351 X"$mf" : 'X\(//\)[^/]' \| \
21352 X"$mf" : 'X\(//\)$' \| \
21353 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21354 echo X"$mf" |
21355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21356 s//\1/
21359 /^X\(\/\/\)[^/].*/{
21360 s//\1/
21363 /^X\(\/\/\)$/{
21364 s//\1/
21367 /^X\(\/\).*/{
21368 s//\1/
21371 s/.*/./; q'`
21372 else
21373 continue
21375 # Extract the definition of DEPDIR, am__include, and am__quote
21376 # from the Makefile without running `make'.
21377 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21378 test -z "$DEPDIR" && continue
21379 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21380 test -z "am__include" && continue
21381 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21382 # When using ansi2knr, U may be empty or an underscore; expand it
21383 U=`sed -n 's/^U = //p' < "$mf"`
21384 # Find all dependency output files, they are included files with
21385 # $(DEPDIR) in their names. We invoke sed twice because it is the
21386 # simplest approach to changing $(DEPDIR) to its actual value in the
21387 # expansion.
21388 for file in `sed -n "
21389 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21390 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21391 # Make sure the directory exists.
21392 test -f "$dirpart/$file" && continue
21393 fdir=`$as_dirname -- "$file" ||
21394 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21395 X"$file" : 'X\(//\)[^/]' \| \
21396 X"$file" : 'X\(//\)$' \| \
21397 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21398 echo X"$file" |
21399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21400 s//\1/
21403 /^X\(\/\/\)[^/].*/{
21404 s//\1/
21407 /^X\(\/\/\)$/{
21408 s//\1/
21411 /^X\(\/\).*/{
21412 s//\1/
21415 s/.*/./; q'`
21416 { as_dir=$dirpart/$fdir
21417 case $as_dir in #(
21418 -*) as_dir=./$as_dir;;
21419 esac
21420 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21421 as_dirs=
21422 while :; do
21423 case $as_dir in #(
21424 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21425 *) as_qdir=$as_dir;;
21426 esac
21427 as_dirs="'$as_qdir' $as_dirs"
21428 as_dir=`$as_dirname -- "$as_dir" ||
21429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21430 X"$as_dir" : 'X\(//\)[^/]' \| \
21431 X"$as_dir" : 'X\(//\)$' \| \
21432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21433 echo X"$as_dir" |
21434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21435 s//\1/
21438 /^X\(\/\/\)[^/].*/{
21439 s//\1/
21442 /^X\(\/\/\)$/{
21443 s//\1/
21446 /^X\(\/\).*/{
21447 s//\1/
21450 s/.*/./; q'`
21451 test -d "$as_dir" && break
21452 done
21453 test -z "$as_dirs" || eval "mkdir $as_dirs"
21454 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21455 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21456 { (exit 1); exit 1; }; }; }
21457 # echo "creating $dirpart/$file"
21458 echo '# dummy' > "$dirpart/$file"
21459 done
21460 done
21463 esac
21464 done # for ac_tag
21467 { (exit 0); exit 0; }
21468 _ACEOF
21469 chmod +x $CONFIG_STATUS
21470 ac_clean_files=$ac_clean_files_save
21473 # configure is writing to config.log, and then calls config.status.
21474 # config.status does its own redirection, appending to config.log.
21475 # Unfortunately, on DOS this fails, as config.log is still kept open
21476 # by configure, so config.status won't be able to write to it; its
21477 # output is simply discarded. So we exec the FD to /dev/null,
21478 # effectively closing config.log, so it can be properly (re)opened and
21479 # appended to by config.status. When coming back to configure, we
21480 # need to make the FD available again.
21481 if test "$no_create" != yes; then
21482 ac_cs_success=:
21483 ac_config_status_args=
21484 test "$silent" = yes &&
21485 ac_config_status_args="$ac_config_status_args --quiet"
21486 exec 5>/dev/null
21487 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21488 exec 5>>config.log
21489 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21490 # would make configure fail if this is the last instruction.
21491 $ac_cs_success || { (exit 1); exit 1; }