idk
[openDashboard.git] / configure
blob9e0e1eec2d8d5f2b422ce679a03fb31811a114be
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for opendashboard 0.0.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='opendashboard'
728 PACKAGE_TARNAME='opendashboard'
729 PACKAGE_VERSION='0.0.0'
730 PACKAGE_STRING='opendashboard 0.0.0'
731 PACKAGE_BUGREPORT=''
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 # include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 # include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 am__isrc
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 MAINTAINER_MODE_TRUE
829 MAINTAINER_MODE_FALSE
830 MAINT
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
848 CXXFLAGS
849 ac_ct_CXX
850 CXXDEPMODE
851 am__fastdepCXX_TRUE
852 am__fastdepCXX_FALSE
854 GREP
855 EGREP
856 GETTEXT_PACKAGE
857 build
858 build_cpu
859 build_vendor
860 build_os
861 host
862 host_cpu
863 host_vendor
864 host_os
865 USE_NLS
866 MSGFMT
867 MSGFMT_OPTS
868 GMSGFMT
869 XGETTEXT
870 CATALOGS
871 CATOBJEXT
872 DATADIRNAME
873 GMOFILES
874 INSTOBJEXT
875 INTLLIBS
876 PO_IN_DATADIR_TRUE
877 PO_IN_DATADIR_FALSE
878 POFILES
879 POSUB
880 MKINSTALLDIRS
881 INTLTOOL_DESKTOP_RULE
882 INTLTOOL_DIRECTORY_RULE
883 INTLTOOL_KEYS_RULE
884 INTLTOOL_PROP_RULE
885 INTLTOOL_OAF_RULE
886 INTLTOOL_PONG_RULE
887 INTLTOOL_SERVER_RULE
888 INTLTOOL_SHEET_RULE
889 INTLTOOL_SOUNDLIST_RULE
890 INTLTOOL_UI_RULE
891 INTLTOOL_XAM_RULE
892 INTLTOOL_KBD_RULE
893 INTLTOOL_XML_RULE
894 INTLTOOL_XML_NOMERGE_RULE
895 INTLTOOL_CAVES_RULE
896 INTLTOOL_SCHEMAS_RULE
897 INTLTOOL_THEME_RULE
898 INTLTOOL_SERVICE_RULE
899 INTLTOOL_EXTRACT
900 INTLTOOL_MERGE
901 INTLTOOL_UPDATE
902 INTLTOOL_PERL
903 INTLTOOL_ICONV
904 INTLTOOL_MSGFMT
905 INTLTOOL_MSGMERGE
906 INTLTOOL_XGETTEXT
907 ALL_LINGUAS
909 LN_S
910 ECHO
912 RANLIB
913 CXXCPP
915 FFLAGS
916 ac_ct_F77
917 LIBTOOL
918 LIBOBJS
919 LTLIBOBJS'
920 ac_subst_files=''
921 ac_precious_vars='build_alias
922 host_alias
923 target_alias
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
930 CXXFLAGS
933 CXXCPP
935 FFLAGS'
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
984 ac_prev=
985 ac_dashdash=
986 for ac_option
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1004 ac_dashdash=yes ;;
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1038 -disable-* | --disable-*)
1039 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1045 eval enable_$ac_feature=no ;;
1047 -docdir | --docdir | --docdi | --doc | --do)
1048 ac_prev=docdir ;;
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 ac_prev=dvidir ;;
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
1057 -enable-* | --enable-*)
1058 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1064 eval enable_$ac_feature=\$ac_optarg ;;
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
1073 exec_prefix=$ac_optarg ;;
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 ac_prev=htmldir ;;
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 | --ht=*)
1095 htmldir=$ac_optarg ;;
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
1102 includedir=$ac_optarg ;;
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
1119 libexecdir=$ac_optarg ;;
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
1127 | --localstate | --localstat | --localsta | --localst | --locals)
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131 localstatedir=$ac_optarg ;;
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143 | --no-cr | --no-c | -n)
1144 no_create=yes ;;
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 no_recursion=yes ;;
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157 oldincludedir=$ac_optarg ;;
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169 program_prefix=$ac_optarg ;;
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176 program_suffix=$ac_optarg ;;
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
1193 program_transform_name=$ac_optarg ;;
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
1213 sbindir=$ac_optarg ;;
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
1224 sharedstatedir=$ac_optarg ;;
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
1229 site=$ac_optarg ;;
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1254 -with-* | --with-*)
1255 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid package name: $ac_package" >&2
1259 { (exit 1); exit 1; }; }
1260 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1261 eval with_$ac_package=\$ac_optarg ;;
1263 -without-* | --without-*)
1264 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1270 eval with_$ac_package=no ;;
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281 x_includes=$ac_optarg ;;
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288 x_libraries=$ac_optarg ;;
1290 -*) { echo "$as_me: error: unrecognized option: $ac_option
1291 Try \`$0 --help' for more information." >&2
1292 { (exit 1); exit 1; }; }
1295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1299 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1300 { (exit 1); exit 1; }; }
1301 eval $ac_envvar=\$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1312 esac
1313 done
1315 if test -n "$ac_prev"; then
1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317 { echo "$as_me: error: missing argument to $ac_option" >&2
1318 { (exit 1); exit 1; }; }
1321 # Be sure to have absolute directory names.
1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325 libdir localedir mandir
1327 eval ac_val=\$$ac_var
1328 case $ac_val in
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 esac
1332 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1334 done
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357 test "$silent" = yes && exec 6>/dev/null
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 { echo "$as_me: error: Working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$0" ||
1375 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$0" : 'X\(//\)[^/]' \| \
1377 X"$0" : 'X\(//\)$' \| \
1378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1379 echo X"$0" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1388 /^X\(\/\/\)$/{
1389 s//\1/
1392 /^X\(\/\).*/{
1393 s//\1/
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1401 else
1402 ac_srcdir_defaulted=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438 \`configure' configures opendashboard 0.0.0 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1447 Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 [PREFIX]
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/opendashboard]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1493 cat <<\_ACEOF
1495 Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of opendashboard 0.0.0:";;
1509 esac
1510 cat <<\_ACEOF
1512 Optional Features:
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-maintainer-mode enable make rules and dependencies not useful
1516 (and sometimes confusing) to the casual installer
1517 --disable-dependency-tracking speeds up one-time build
1518 --enable-dependency-tracking do not reject slow dependency extractors
1519 --enable-shared[=PKGS] build shared libraries [default=yes]
1520 --enable-static[=PKGS] build static libraries [default=yes]
1521 --enable-fast-install[=PKGS]
1522 optimize for fast installation [default=yes]
1523 --disable-libtool-lock avoid locking (might break parallel builds)
1525 Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1529 --with-pic try to use only PIC/non-PIC objects [default=use
1530 both]
1531 --with-tags[=TAGS] include additional configurations [automatic]
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1541 CXX C++ compiler command
1542 CXXFLAGS C++ compiler flags
1543 CPP C preprocessor
1544 CXXCPP C++ preprocessor
1545 F77 Fortran 77 compiler command
1546 FFLAGS Fortran 77 compiler flags
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1551 _ACEOF
1552 ac_status=$?
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" || continue
1559 ac_builddir=.
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 opendashboard configure 0.0.0
1612 generated by GNU Autoconf 2.61
1614 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1615 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619 exit
1621 cat >config.log <<_ACEOF
1622 This file contains any messages produced by compilers while
1623 running configure, to aid debugging if configure makes a mistake.
1625 It was created by opendashboard $as_me 0.0.0, which was
1626 generated by GNU Autoconf 2.61. Invocation command line was
1628 $ $0 $@
1630 _ACEOF
1631 exec 5>>config.log
1633 cat <<_ASUNAME
1634 ## --------- ##
1635 ## Platform. ##
1636 ## --------- ##
1638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1645 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1647 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1648 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1650 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1651 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1652 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1653 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1655 _ASUNAME
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 echo "PATH: $as_dir"
1663 done
1664 IFS=$as_save_IFS
1666 } >&5
1668 cat >&5 <<_ACEOF
1671 ## ----------- ##
1672 ## Core tests. ##
1673 ## ----------- ##
1675 _ACEOF
1678 # Keep a trace of the command line.
1679 # Strip out --no-create and --no-recursion so they do not pile up.
1680 # Strip out --silent because we don't want to record it for future runs.
1681 # Also quote any args containing shell meta-characters.
1682 # Make two passes to allow for proper duplicate-argument suppression.
1683 ac_configure_args=
1684 ac_configure_args0=
1685 ac_configure_args1=
1686 ac_must_keep_next=false
1687 for ac_pass in 1 2
1689 for ac_arg
1691 case $ac_arg in
1692 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1694 | -silent | --silent | --silen | --sile | --sil)
1695 continue ;;
1696 *\'*)
1697 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698 esac
1699 case $ac_pass in
1700 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1702 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1703 if test $ac_must_keep_next = true; then
1704 ac_must_keep_next=false # Got value, back to normal.
1705 else
1706 case $ac_arg in
1707 *=* | --config-cache | -C | -disable-* | --disable-* \
1708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1710 | -with-* | --with-* | -without-* | --without-* | --x)
1711 case "$ac_configure_args0 " in
1712 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1713 esac
1715 -* ) ac_must_keep_next=true ;;
1716 esac
1718 ac_configure_args="$ac_configure_args '$ac_arg'"
1720 esac
1721 done
1722 done
1723 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1724 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1726 # When interrupted or exit'd, cleanup temporary files, and complete
1727 # config.log. We remove comments because anyway the quotes in there
1728 # would cause problems or look ugly.
1729 # WARNING: Use '\'' to represent an apostrophe within the trap.
1730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1731 trap 'exit_status=$?
1732 # Save into config.log some information that might help in debugging.
1734 echo
1736 cat <<\_ASBOX
1737 ## ---------------- ##
1738 ## Cache variables. ##
1739 ## ---------------- ##
1740 _ASBOX
1741 echo
1742 # The following way of writing the cache mishandles newlines in values,
1744 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1745 eval ac_val=\$$ac_var
1746 case $ac_val in #(
1747 *${as_nl}*)
1748 case $ac_var in #(
1749 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1750 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1751 esac
1752 case $ac_var in #(
1753 _ | IFS | as_nl) ;; #(
1754 *) $as_unset $ac_var ;;
1755 esac ;;
1756 esac
1757 done
1758 (set) 2>&1 |
1759 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1760 *${as_nl}ac_space=\ *)
1761 sed -n \
1762 "s/'\''/'\''\\\\'\'''\''/g;
1763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1764 ;; #(
1766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1768 esac |
1769 sort
1771 echo
1773 cat <<\_ASBOX
1774 ## ----------------- ##
1775 ## Output variables. ##
1776 ## ----------------- ##
1777 _ASBOX
1778 echo
1779 for ac_var in $ac_subst_vars
1781 eval ac_val=\$$ac_var
1782 case $ac_val in
1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 esac
1785 echo "$ac_var='\''$ac_val'\''"
1786 done | sort
1787 echo
1789 if test -n "$ac_subst_files"; then
1790 cat <<\_ASBOX
1791 ## ------------------- ##
1792 ## File substitutions. ##
1793 ## ------------------- ##
1794 _ASBOX
1795 echo
1796 for ac_var in $ac_subst_files
1798 eval ac_val=\$$ac_var
1799 case $ac_val in
1800 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 esac
1802 echo "$ac_var='\''$ac_val'\''"
1803 done | sort
1804 echo
1807 if test -s confdefs.h; then
1808 cat <<\_ASBOX
1809 ## ----------- ##
1810 ## confdefs.h. ##
1811 ## ----------- ##
1812 _ASBOX
1813 echo
1814 cat confdefs.h
1815 echo
1817 test "$ac_signal" != 0 &&
1818 echo "$as_me: caught signal $ac_signal"
1819 echo "$as_me: exit $exit_status"
1820 } >&5
1821 rm -f core *.core core.conftest.* &&
1822 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1823 exit $exit_status
1825 for ac_signal in 1 2 13 15; do
1826 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827 done
1828 ac_signal=0
1830 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1831 rm -f -r conftest* confdefs.h
1833 # Predefined preprocessor variables.
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_NAME "$PACKAGE_NAME"
1837 _ACEOF
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842 _ACEOF
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1847 _ACEOF
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_STRING "$PACKAGE_STRING"
1852 _ACEOF
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857 _ACEOF
1860 # Let the site file select an alternate cache file if it wants to.
1861 # Prefer explicitly selected file to automatically selected ones.
1862 if test -n "$CONFIG_SITE"; then
1863 set x "$CONFIG_SITE"
1864 elif test "x$prefix" != xNONE; then
1865 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1866 else
1867 set x "$ac_default_prefix/share/config.site" \
1868 "$ac_default_prefix/etc/config.site"
1870 shift
1871 for ac_site_file
1873 if test -r "$ac_site_file"; then
1874 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875 echo "$as_me: loading site script $ac_site_file" >&6;}
1876 sed 's/^/| /' "$ac_site_file" >&5
1877 . "$ac_site_file"
1879 done
1881 if test -r "$cache_file"; then
1882 # Some versions of bash will fail to source /dev/null (special
1883 # files actually), so we avoid doing that.
1884 if test -f "$cache_file"; then
1885 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886 echo "$as_me: loading cache $cache_file" >&6;}
1887 case $cache_file in
1888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889 *) . "./$cache_file";;
1890 esac
1892 else
1893 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894 echo "$as_me: creating cache $cache_file" >&6;}
1895 >$cache_file
1898 # Check that the precious variables saved in the cache have kept the same
1899 # value.
1900 ac_cache_corrupted=false
1901 for ac_var in $ac_precious_vars; do
1902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903 eval ac_new_set=\$ac_env_${ac_var}_set
1904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905 eval ac_new_val=\$ac_env_${ac_var}_value
1906 case $ac_old_set,$ac_new_set in
1907 set,)
1908 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910 ac_cache_corrupted=: ;;
1911 ,set)
1912 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1915 ,);;
1917 if test "x$ac_old_val" != "x$ac_new_val"; then
1918 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1919 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1920 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1921 echo "$as_me: former value: $ac_old_val" >&2;}
1922 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1923 echo "$as_me: current value: $ac_new_val" >&2;}
1924 ac_cache_corrupted=:
1925 fi;;
1926 esac
1927 # Pass precious variables to config.status.
1928 if test "$ac_new_set" = set; then
1929 case $ac_new_val in
1930 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 *) ac_arg=$ac_var=$ac_new_val ;;
1932 esac
1933 case " $ac_configure_args " in
1934 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1935 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936 esac
1938 done
1939 if $ac_cache_corrupted; then
1940 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944 { (exit 1); exit 1; }; }
1971 ac_ext=c
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 am__api_version='1.10'
1981 ac_aux_dir=
1982 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1983 if test -f "$ac_dir/install-sh"; then
1984 ac_aux_dir=$ac_dir
1985 ac_install_sh="$ac_aux_dir/install-sh -c"
1986 break
1987 elif test -f "$ac_dir/install.sh"; then
1988 ac_aux_dir=$ac_dir
1989 ac_install_sh="$ac_aux_dir/install.sh -c"
1990 break
1991 elif test -f "$ac_dir/shtool"; then
1992 ac_aux_dir=$ac_dir
1993 ac_install_sh="$ac_aux_dir/shtool install -c"
1994 break
1996 done
1997 if test -z "$ac_aux_dir"; then
1998 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1999 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2000 { (exit 1); exit 1; }; }
2003 # These three variables are undocumented and unsupported,
2004 # and are intended to be withdrawn in a future Autoconf release.
2005 # They can cause serious problems if a builder's source tree is in a directory
2006 # whose full name contains unusual characters.
2007 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2008 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2009 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2012 # Find a good install program. We prefer a C program (faster),
2013 # so one script is as good as another. But avoid the broken or
2014 # incompatible versions:
2015 # SysV /etc/install, /usr/sbin/install
2016 # SunOS /usr/etc/install
2017 # IRIX /sbin/install
2018 # AIX /bin/install
2019 # AmigaOS /C/install, which installs bootblocks on floppy discs
2020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2023 # OS/2's system install, which has a completely different semantic
2024 # ./install, which can be erroneously created by make from ./install.sh.
2025 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2026 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2027 if test -z "$INSTALL"; then
2028 if test "${ac_cv_path_install+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 # Account for people who put trailing slashes in PATH elements.
2037 case $as_dir/ in
2038 ./ | .// | /cC/* | \
2039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2041 /usr/ucb/* ) ;;
2043 # OSF1 and SCO ODT 3.0 have their own names for install.
2044 # Don't use installbsd from OSF since it installs stuff as root
2045 # by default.
2046 for ac_prog in ginstall scoinst install; do
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2049 if test $ac_prog = install &&
2050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051 # AIX install. It has an incompatible calling convention.
2053 elif test $ac_prog = install &&
2054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # program-specific install script used by HP pwplus--don't use.
2057 else
2058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059 break 3
2062 done
2063 done
2065 esac
2066 done
2067 IFS=$as_save_IFS
2071 if test "${ac_cv_path_install+set}" = set; then
2072 INSTALL=$ac_cv_path_install
2073 else
2074 # As a last resort, use the slow shell script. Don't cache a
2075 # value for INSTALL within a source directory, because that will
2076 # break other packages using the cache if that directory is
2077 # removed, or if the value is a relative name.
2078 INSTALL=$ac_install_sh
2081 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2082 echo "${ECHO_T}$INSTALL" >&6; }
2084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2085 # It thinks the first close brace ends the variable substitution.
2086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2092 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2093 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2094 # Just in case
2095 sleep 1
2096 echo timestamp > conftest.file
2097 # Do `set' in a subshell so we don't clobber the current shell's
2098 # arguments. Must try -L first in case configure is actually a
2099 # symlink; some systems play weird games with the mod time of symlinks
2100 # (eg FreeBSD returns the mod time of the symlink's containing
2101 # directory).
2102 if (
2103 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2104 if test "$*" = "X"; then
2105 # -L didn't work.
2106 set X `ls -t $srcdir/configure conftest.file`
2108 rm -f conftest.file
2109 if test "$*" != "X $srcdir/configure conftest.file" \
2110 && test "$*" != "X conftest.file $srcdir/configure"; then
2112 # If neither matched, then we have a broken ls. This can happen
2113 # if, for instance, CONFIG_SHELL is bash and it inherits a
2114 # broken ls alias from the environment. This has actually
2115 # happened. Such a system could not be considered "sane".
2116 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2117 alias in your environment" >&5
2118 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2119 alias in your environment" >&2;}
2120 { (exit 1); exit 1; }; }
2123 test "$2" = conftest.file
2125 then
2126 # Ok.
2128 else
2129 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2130 Check your system clock" >&5
2131 echo "$as_me: error: newly created file is older than distributed files!
2132 Check your system clock" >&2;}
2133 { (exit 1); exit 1; }; }
2135 { echo "$as_me:$LINENO: result: yes" >&5
2136 echo "${ECHO_T}yes" >&6; }
2137 test "$program_prefix" != NONE &&
2138 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2139 # Use a double $ so make ignores it.
2140 test "$program_suffix" != NONE &&
2141 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2142 # Double any \ or $. echo might interpret backslashes.
2143 # By default was `s,x,x', remove it if useless.
2144 cat <<\_ACEOF >conftest.sed
2145 s/[\\$]/&&/g;s/;s,x,x,$//
2146 _ACEOF
2147 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2148 rm -f conftest.sed
2150 # expand $ac_aux_dir to an absolute path
2151 am_aux_dir=`cd $ac_aux_dir && pwd`
2153 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2154 # Use eval to expand $SHELL
2155 if eval "$MISSING --run true"; then
2156 am_missing_run="$MISSING --run "
2157 else
2158 am_missing_run=
2159 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2160 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2163 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2164 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2165 if test -z "$MKDIR_P"; then
2166 if test "${ac_cv_path_mkdir+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_prog in mkdir gmkdir; do
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2178 'mkdir (GNU coreutils) '* | \
2179 'mkdir (coreutils) '* | \
2180 'mkdir (fileutils) '4.1*)
2181 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2182 break 3;;
2183 esac
2184 done
2185 done
2186 done
2187 IFS=$as_save_IFS
2191 if test "${ac_cv_path_mkdir+set}" = set; then
2192 MKDIR_P="$ac_cv_path_mkdir -p"
2193 else
2194 # As a last resort, use the slow shell script. Don't cache a
2195 # value for MKDIR_P within a source directory, because that will
2196 # break other packages using the cache if that directory is
2197 # removed, or if the value is a relative name.
2198 test -d ./--version && rmdir ./--version
2199 MKDIR_P="$ac_install_sh -d"
2202 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2203 echo "${ECHO_T}$MKDIR_P" >&6; }
2205 mkdir_p="$MKDIR_P"
2206 case $mkdir_p in
2207 [\\/$]* | ?:[\\/]*) ;;
2208 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2209 esac
2211 for ac_prog in gawk mawk nawk awk
2213 # Extract the first word of "$ac_prog", so it can be a program name with args.
2214 set dummy $ac_prog; ac_word=$2
2215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217 if test "${ac_cv_prog_AWK+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$AWK"; then
2221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230 ac_cv_prog_AWK="$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2234 done
2235 done
2236 IFS=$as_save_IFS
2240 AWK=$ac_cv_prog_AWK
2241 if test -n "$AWK"; then
2242 { echo "$as_me:$LINENO: result: $AWK" >&5
2243 echo "${ECHO_T}$AWK" >&6; }
2244 else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2250 test -n "$AWK" && break
2251 done
2253 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2254 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2255 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2256 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 cat >conftest.make <<\_ACEOF
2260 SHELL = /bin/sh
2261 all:
2262 @echo '@@@%%%=$(MAKE)=@@@%%%'
2263 _ACEOF
2264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266 *@@@%%%=?*=@@@%%%*)
2267 eval ac_cv_prog_make_${ac_make}_set=yes;;
2269 eval ac_cv_prog_make_${ac_make}_set=no;;
2270 esac
2271 rm -f conftest.make
2273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276 SET_MAKE=
2277 else
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2280 SET_MAKE="MAKE=${MAKE-make}"
2283 rm -rf .tst 2>/dev/null
2284 mkdir .tst 2>/dev/null
2285 if test -d .tst; then
2286 am__leading_dot=.
2287 else
2288 am__leading_dot=_
2290 rmdir .tst 2>/dev/null
2292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2294 # is not polluted with repeated "-I."
2295 am__isrc=' -I$(srcdir)'
2296 # test to see if srcdir already configured
2297 if test -f $srcdir/config.status; then
2298 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2299 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2300 { (exit 1); exit 1; }; }
2304 # test whether we have cygpath
2305 if test -z "$CYGPATH_W"; then
2306 if (cygpath --version) >/dev/null 2>/dev/null; then
2307 CYGPATH_W='cygpath -w'
2308 else
2309 CYGPATH_W=echo
2314 # Define the identity of the package.
2315 PACKAGE=opendashboard
2316 VERSION=0.0.0
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE "$PACKAGE"
2321 _ACEOF
2324 cat >>confdefs.h <<_ACEOF
2325 #define VERSION "$VERSION"
2326 _ACEOF
2328 # Some tools Automake needs.
2330 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2333 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2336 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2339 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2342 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2344 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2346 # Installed binaries are usually stripped using `strip' when the user
2347 # run `make install-strip'. However `strip' might not be the right
2348 # tool to use in cross-compilation environments, therefore Automake
2349 # will honor the `STRIP' environment variable to overrule this program.
2350 if test "$cross_compiling" != no; then
2351 if test -n "$ac_tool_prefix"; then
2352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}strip; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_STRIP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 if test -n "$STRIP"; then
2360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2373 done
2374 done
2375 IFS=$as_save_IFS
2379 STRIP=$ac_cv_prog_STRIP
2380 if test -n "$STRIP"; then
2381 { echo "$as_me:$LINENO: result: $STRIP" >&5
2382 echo "${ECHO_T}$STRIP" >&6; }
2383 else
2384 { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2390 if test -z "$ac_cv_prog_STRIP"; then
2391 ac_ct_STRIP=$STRIP
2392 # Extract the first word of "strip", so it can be a program name with args.
2393 set dummy strip; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399 if test -n "$ac_ct_STRIP"; then
2400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_ac_ct_STRIP="strip"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2413 done
2414 done
2415 IFS=$as_save_IFS
2419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2420 if test -n "$ac_ct_STRIP"; then
2421 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2422 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2423 else
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2428 if test "x$ac_ct_STRIP" = x; then
2429 STRIP=":"
2430 else
2431 case $cross_compiling:$ac_tool_warned in
2432 yes:)
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet. If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439 ac_tool_warned=yes ;;
2440 esac
2441 STRIP=$ac_ct_STRIP
2443 else
2444 STRIP="$ac_cv_prog_STRIP"
2448 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2450 # We need awk for the "check" target. The system "awk" is bad on
2451 # some platforms.
2452 # Always define AMTAR for backward compatibility.
2454 AMTAR=${AMTAR-"${am_missing_run}tar"}
2456 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2462 ac_config_headers="$ac_config_headers config.h"
2464 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2465 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2466 # Check whether --enable-maintainer-mode was given.
2467 if test "${enable_maintainer_mode+set}" = set; then
2468 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2469 else
2470 USE_MAINTAINER_MODE=no
2473 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2474 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2475 if test $USE_MAINTAINER_MODE = yes; then
2476 MAINTAINER_MODE_TRUE=
2477 MAINTAINER_MODE_FALSE='#'
2478 else
2479 MAINTAINER_MODE_TRUE='#'
2480 MAINTAINER_MODE_FALSE=
2483 MAINT=$MAINTAINER_MODE_TRUE
2487 DEPDIR="${am__leading_dot}deps"
2489 ac_config_commands="$ac_config_commands depfiles"
2492 am_make=${MAKE-make}
2493 cat > confinc << 'END'
2494 am__doit:
2495 @echo done
2496 .PHONY: am__doit
2498 # If we don't find an include directive, just comment out the code.
2499 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2500 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2501 am__include="#"
2502 am__quote=
2503 _am_result=none
2504 # First try GNU make style include.
2505 echo "include confinc" > confmf
2506 # We grep out `Entering directory' and `Leaving directory'
2507 # messages which can occur if `w' ends up in MAKEFLAGS.
2508 # In particular we don't look at `^make:' because GNU make might
2509 # be invoked under some other name (usually "gmake"), in which
2510 # case it prints its new name instead of `make'.
2511 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2512 am__include=include
2513 am__quote=
2514 _am_result=GNU
2516 # Now try BSD make style include.
2517 if test "$am__include" = "#"; then
2518 echo '.include "confinc"' > confmf
2519 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2520 am__include=.include
2521 am__quote="\""
2522 _am_result=BSD
2527 { echo "$as_me:$LINENO: result: $_am_result" >&5
2528 echo "${ECHO_T}$_am_result" >&6; }
2529 rm -f confinc confmf
2531 # Check whether --enable-dependency-tracking was given.
2532 if test "${enable_dependency_tracking+set}" = set; then
2533 enableval=$enable_dependency_tracking;
2536 if test "x$enable_dependency_tracking" != xno; then
2537 am_depcomp="$ac_aux_dir/depcomp"
2538 AMDEPBACKSLASH='\'
2540 if test "x$enable_dependency_tracking" != xno; then
2541 AMDEP_TRUE=
2542 AMDEP_FALSE='#'
2543 else
2544 AMDEP_TRUE='#'
2545 AMDEP_FALSE=
2549 ac_ext=c
2550 ac_cpp='$CPP $CPPFLAGS'
2551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2576 done
2577 done
2578 IFS=$as_save_IFS
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2586 else
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2593 if test -z "$ac_cv_prog_CC"; then
2594 ac_ct_CC=$CC
2595 # Extract the first word of "gcc", so it can be a program name with args.
2596 set dummy gcc; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -n "$ac_ct_CC"; then
2603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2604 else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 ac_cv_prog_ac_ct_CC="gcc"
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 break 2
2616 done
2617 done
2618 IFS=$as_save_IFS
2622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2623 if test -n "$ac_ct_CC"; then
2624 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2625 echo "${ECHO_T}$ac_ct_CC" >&6; }
2626 else
2627 { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2631 if test "x$ac_ct_CC" = x; then
2632 CC=""
2633 else
2634 case $cross_compiling:$ac_tool_warned in
2635 yes:)
2636 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2637 whose name does not start with the host triplet. If you think this
2638 configuration is useful to you, please write to autoconf@gnu.org." >&5
2639 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet. If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2642 ac_tool_warned=yes ;;
2643 esac
2644 CC=$ac_ct_CC
2646 else
2647 CC="$ac_cv_prog_CC"
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2653 set dummy ${ac_tool_prefix}cc; ac_word=$2
2654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2656 if test "${ac_cv_prog_CC+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659 if test -n "$CC"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_CC="${ac_tool_prefix}cc"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2673 done
2674 done
2675 IFS=$as_save_IFS
2679 CC=$ac_cv_prog_CC
2680 if test -n "$CC"; then
2681 { echo "$as_me:$LINENO: result: $CC" >&5
2682 echo "${ECHO_T}$CC" >&6; }
2683 else
2684 { echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6; }
2691 if test -z "$CC"; then
2692 # Extract the first word of "cc", so it can be a program name with args.
2693 set dummy cc; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 ac_prog_rejected=no
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2711 ac_prog_rejected=yes
2712 continue
2714 ac_cv_prog_CC="cc"
2715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2720 IFS=$as_save_IFS
2722 if test $ac_prog_rejected = yes; then
2723 # We found a bogon in the path, so make sure we never use it.
2724 set dummy $ac_cv_prog_CC
2725 shift
2726 if test $# != 0; then
2727 # We chose a different compiler from the bogus one.
2728 # However, it has the same basename, so the bogon will be chosen
2729 # first if we set CC to just the basename; use the full file name.
2730 shift
2731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2740 else
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$CC"; then
2748 if test -n "$ac_tool_prefix"; then
2749 for ac_prog in cl.exe
2751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2774 IFS=$as_save_IFS
2778 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then
2780 { echo "$as_me:$LINENO: result: $CC" >&5
2781 echo "${ECHO_T}$CC" >&6; }
2782 else
2783 { echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6; }
2788 test -n "$CC" && break
2789 done
2791 if test -z "$CC"; then
2792 ac_ct_CC=$CC
2793 for ac_prog in cl.exe
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 if test -n "$ac_ct_CC"; then
2803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_ac_ct_CC="$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2818 IFS=$as_save_IFS
2822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823 if test -n "$ac_ct_CC"; then
2824 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2825 echo "${ECHO_T}$ac_ct_CC" >&6; }
2826 else
2827 { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2832 test -n "$ac_ct_CC" && break
2833 done
2835 if test "x$ac_ct_CC" = x; then
2836 CC=""
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2841 whose name does not start with the host triplet. If you think this
2842 configuration is useful to you, please write to autoconf@gnu.org." >&5
2843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2844 whose name does not start with the host triplet. If you think this
2845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2846 ac_tool_warned=yes ;;
2847 esac
2848 CC=$ac_ct_CC
2855 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2861 # Provide some information about the compiler.
2862 echo "$as_me:$LINENO: checking for C compiler version" >&5
2863 ac_compiler=`set X $ac_compile; echo $2`
2864 { (ac_try="$ac_compiler --version >&5"
2865 case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compiler --version >&5") 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (ac_try="$ac_compiler -v >&5"
2875 case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_compiler -v >&5") 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (ac_try="$ac_compiler -V >&5"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler -V >&5") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2903 main ()
2907 return 0;
2909 _ACEOF
2910 ac_clean_files_save=$ac_clean_files
2911 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2912 # Try to create an executable without -o first, disregard a.out.
2913 # It will help us diagnose broken compilers, and finding out an intuition
2914 # of exeext.
2915 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2916 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2917 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2919 # List of possible output files, starting from the most likely.
2920 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2921 # only as a last resort. b.out is created by i960 compilers.
2922 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2924 # The IRIX 6 linker writes into existing files which may not be
2925 # executable, retaining their permissions. Remove them first so a
2926 # subsequent execution test works.
2927 ac_rmfiles=
2928 for ac_file in $ac_files
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2933 esac
2934 done
2935 rm -f $ac_rmfiles
2937 if { (ac_try="$ac_link_default"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_link_default") 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2950 # so that the user can short-circuit this test for compilers unknown to
2951 # Autoconf.
2952 for ac_file in $ac_files ''
2954 test -f "$ac_file" || continue
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2958 [ab].out )
2959 # We found the default executable, but exeext='' is most
2960 # certainly right.
2961 break;;
2962 *.* )
2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2964 then :; else
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2971 # actually working.
2972 break;;
2974 break;;
2975 esac
2976 done
2977 test "$ac_cv_exeext" = no && ac_cv_exeext=
2979 else
2980 ac_file=''
2983 { echo "$as_me:$LINENO: result: $ac_file" >&5
2984 echo "${ECHO_T}$ac_file" >&6; }
2985 if test -z "$ac_file"; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2990 See \`config.log' for more details." >&5
2991 echo "$as_me: error: C compiler cannot create executables
2992 See \`config.log' for more details." >&2;}
2993 { (exit 77); exit 77; }; }
2996 ac_exeext=$ac_cv_exeext
2998 # Check that the compiler produces executables we can run. If not, either
2999 # the compiler is broken, or we cross compile.
3000 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3001 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3002 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3003 # If not cross compiling, check that we can run a simple program.
3004 if test "$cross_compiling" != yes; then
3005 if { ac_try='./$ac_file'
3006 { (case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_try") 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 cross_compiling=no
3016 else
3017 if test "$cross_compiling" = maybe; then
3018 cross_compiling=yes
3019 else
3020 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3021 If you meant to cross compile, use \`--host'.
3022 See \`config.log' for more details." >&5
3023 echo "$as_me: error: cannot run C compiled programs.
3024 If you meant to cross compile, use \`--host'.
3025 See \`config.log' for more details." >&2;}
3026 { (exit 1); exit 1; }; }
3030 { echo "$as_me:$LINENO: result: yes" >&5
3031 echo "${ECHO_T}yes" >&6; }
3033 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3034 ac_clean_files=$ac_clean_files_save
3035 # Check that the compiler produces executables we can run. If not, either
3036 # the compiler is broken, or we cross compile.
3037 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3038 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3039 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3040 echo "${ECHO_T}$cross_compiling" >&6; }
3042 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3043 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3044 if { (ac_try="$ac_link"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_link") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; then
3054 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3055 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3056 # work properly (i.e., refer to `conftest.exe'), while it won't with
3057 # `rm'.
3058 for ac_file in conftest.exe conftest conftest.*; do
3059 test -f "$ac_file" || continue
3060 case $ac_file in
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3062 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3063 break;;
3064 * ) break;;
3065 esac
3066 done
3067 else
3068 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&5
3070 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3075 rm -f conftest$ac_cv_exeext
3076 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3077 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3079 rm -f conftest.$ac_ext
3080 EXEEXT=$ac_cv_exeext
3081 ac_exeext=$EXEEXT
3082 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3083 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3084 if test "${ac_cv_objext+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 main ()
3099 return 0;
3101 _ACEOF
3102 rm -f conftest.o conftest.obj
3103 if { (ac_try="$ac_compile"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_compile") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; then
3113 for ac_file in conftest.o conftest.obj conftest.*; do
3114 test -f "$ac_file" || continue;
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3117 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3118 break;;
3119 esac
3120 done
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3126 See \`config.log' for more details." >&5
3127 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3128 See \`config.log' for more details." >&2;}
3129 { (exit 1); exit 1; }; }
3132 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3135 echo "${ECHO_T}$ac_cv_objext" >&6; }
3136 OBJEXT=$ac_cv_objext
3137 ac_objext=$OBJEXT
3138 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3139 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3140 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3151 main ()
3153 #ifndef __GNUC__
3154 choke me
3155 #endif
3158 return 0;
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3163 case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } && {
3175 test -z "$ac_c_werror_flag" ||
3176 test ! -s conftest.err
3177 } && test -s conftest.$ac_objext; then
3178 ac_compiler_gnu=yes
3179 else
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3183 ac_compiler_gnu=no
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3191 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3192 GCC=`test $ac_compiler_gnu = yes && echo yes`
3193 ac_test_CFLAGS=${CFLAGS+set}
3194 ac_save_CFLAGS=$CFLAGS
3195 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3196 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3197 if test "${ac_cv_prog_cc_g+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 ac_save_c_werror_flag=$ac_c_werror_flag
3201 ac_c_werror_flag=yes
3202 ac_cv_prog_cc_g=no
3203 CFLAGS="-g"
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3212 main ()
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } && {
3233 test -z "$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 } && test -s conftest.$ac_objext; then
3236 ac_cv_prog_cc_g=yes
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 CFLAGS=""
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3250 main ()
3254 return 0;
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (ac_try="$ac_compile"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_compile") 2>conftest.er1
3265 ac_status=$?
3266 grep -v '^ *+' conftest.er1 >conftest.err
3267 rm -f conftest.er1
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } && {
3271 test -z "$ac_c_werror_flag" ||
3272 test ! -s conftest.err
3273 } && test -s conftest.$ac_objext; then
3275 else
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3280 CFLAGS="-g"
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3289 main ()
3293 return 0;
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3304 ac_status=$?
3305 grep -v '^ *+' conftest.er1 >conftest.err
3306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3313 ac_cv_prog_cc_g=yes
3314 else
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 ac_c_werror_flag=$ac_save_c_werror_flag
3330 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3331 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3332 if test "$ac_test_CFLAGS" = set; then
3333 CFLAGS=$ac_save_CFLAGS
3334 elif test $ac_cv_prog_cc_g = yes; then
3335 if test "$GCC" = yes; then
3336 CFLAGS="-g -O2"
3337 else
3338 CFLAGS="-g"
3340 else
3341 if test "$GCC" = yes; then
3342 CFLAGS="-O2"
3343 else
3344 CFLAGS=
3347 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3348 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3349 if test "${ac_cv_prog_cc_c89+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 ac_cv_prog_cc_c89=no
3353 ac_save_CC=$CC
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <stdarg.h>
3361 #include <stdio.h>
3362 #include <sys/types.h>
3363 #include <sys/stat.h>
3364 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3365 struct buf { int x; };
3366 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3367 static char *e (p, i)
3368 char **p;
3369 int i;
3371 return p[i];
3373 static char *f (char * (*g) (char **, int), char **p, ...)
3375 char *s;
3376 va_list v;
3377 va_start (v,p);
3378 s = g (p, va_arg (v,int));
3379 va_end (v);
3380 return s;
3383 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3384 function prototypes and stuff, but not '\xHH' hex character constants.
3385 These don't provoke an error unfortunately, instead are silently treated
3386 as 'x'. The following induces an error, until -std is added to get
3387 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3388 array size at least. It's necessary to write '\x00'==0 to get something
3389 that's true only with -std. */
3390 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3392 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3393 inside strings and character constants. */
3394 #define FOO(x) 'x'
3395 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3397 int test (int i, double x);
3398 struct s1 {int (*f) (int a);};
3399 struct s2 {int (*f) (double a);};
3400 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3401 int argc;
3402 char **argv;
3404 main ()
3406 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3408 return 0;
3410 _ACEOF
3411 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3412 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3414 CC="$ac_save_CC $ac_arg"
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_compile") 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } && {
3429 test -z "$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 } && test -s conftest.$ac_objext; then
3432 ac_cv_prog_cc_c89=$ac_arg
3433 else
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3440 rm -f core conftest.err conftest.$ac_objext
3441 test "x$ac_cv_prog_cc_c89" != "xno" && break
3442 done
3443 rm -f conftest.$ac_ext
3444 CC=$ac_save_CC
3447 # AC_CACHE_VAL
3448 case "x$ac_cv_prog_cc_c89" in
3450 { echo "$as_me:$LINENO: result: none needed" >&5
3451 echo "${ECHO_T}none needed" >&6; } ;;
3452 xno)
3453 { echo "$as_me:$LINENO: result: unsupported" >&5
3454 echo "${ECHO_T}unsupported" >&6; } ;;
3456 CC="$CC $ac_cv_prog_cc_c89"
3457 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3458 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3459 esac
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 depcc="$CC" am_compiler_list=
3470 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3471 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3472 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3476 # We make a subdir and do the tests there. Otherwise we can end up
3477 # making bogus files that we don't know about and never remove. For
3478 # instance it was reported that on HP-UX the gcc test will end up
3479 # making a dummy file named `D' -- because `-MD' means `put the output
3480 # in D'.
3481 mkdir conftest.dir
3482 # Copy depcomp to subdir because otherwise we won't find it if we're
3483 # using a relative directory.
3484 cp "$am_depcomp" conftest.dir
3485 cd conftest.dir
3486 # We will build objects and dependencies in a subdirectory because
3487 # it helps to detect inapplicable dependency modes. For instance
3488 # both Tru64's cc and ICC support -MD to output dependencies as a
3489 # side effect of compilation, but ICC will put the dependencies in
3490 # the current directory while Tru64 will put them in the object
3491 # directory.
3492 mkdir sub
3494 am_cv_CC_dependencies_compiler_type=none
3495 if test "$am_compiler_list" = ""; then
3496 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3498 for depmode in $am_compiler_list; do
3499 # Setup a source with many dependencies, because some compilers
3500 # like to wrap large dependency lists on column 80 (with \), and
3501 # we should not choose a depcomp mode which is confused by this.
3503 # We need to recreate these files for each test, as the compiler may
3504 # overwrite some of them when testing with obscure command lines.
3505 # This happens at least with the AIX C compiler.
3506 : > sub/conftest.c
3507 for i in 1 2 3 4 5 6; do
3508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3509 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3510 # Solaris 8's {/usr,}/bin/sh.
3511 touch sub/conftst$i.h
3512 done
3513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3515 case $depmode in
3516 nosideeffect)
3517 # after this tag, mechanisms are not by side-effect, so they'll
3518 # only be used when explicitly requested
3519 if test "x$enable_dependency_tracking" = xyes; then
3520 continue
3521 else
3522 break
3525 none) break ;;
3526 esac
3527 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3528 # mode. It turns out that the SunPro C++ compiler does not properly
3529 # handle `-M -o', and we need to detect this.
3530 if depmode=$depmode \
3531 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3533 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3534 >/dev/null 2>conftest.err &&
3535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3537 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3539 # icc doesn't choke on unknown options, it will just issue warnings
3540 # or remarks (even with -Werror). So we grep stderr for any message
3541 # that says an option was ignored or not supported.
3542 # When given -MP, icc 7.0 and 7.1 complain thusly:
3543 # icc: Command line warning: ignoring option '-M'; no argument required
3544 # The diagnosis changed in icc 8.0:
3545 # icc: Command line remark: option '-MP' not supported
3546 if (grep 'ignoring option' conftest.err ||
3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3548 am_cv_CC_dependencies_compiler_type=$depmode
3549 break
3552 done
3554 cd ..
3555 rm -rf conftest.dir
3556 else
3557 am_cv_CC_dependencies_compiler_type=none
3561 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3562 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3563 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3566 test "x$enable_dependency_tracking" != xno \
3567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3568 am__fastdepCC_TRUE=
3569 am__fastdepCC_FALSE='#'
3570 else
3571 am__fastdepCC_TRUE='#'
3572 am__fastdepCC_FALSE=
3577 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3578 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3579 if test "${ac_cv_search_strerror+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 ac_func_search_save_LIBS=$LIBS
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3590 /* Override any GCC internal prototype to avoid an error.
3591 Use char because int might match the return type of a GCC
3592 builtin and then its argument prototype would still apply. */
3593 #ifdef __cplusplus
3594 extern "C"
3595 #endif
3596 char strerror ();
3598 main ()
3600 return strerror ();
3602 return 0;
3604 _ACEOF
3605 for ac_lib in '' cposix; do
3606 if test -z "$ac_lib"; then
3607 ac_res="none required"
3608 else
3609 ac_res=-l$ac_lib
3610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3612 rm -f conftest.$ac_objext conftest$ac_exeext
3613 if { (ac_try="$ac_link"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_link") 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && {
3626 test -z "$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 } && test -s conftest$ac_exeext &&
3629 $as_test_x conftest$ac_exeext; then
3630 ac_cv_search_strerror=$ac_res
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3639 conftest$ac_exeext
3640 if test "${ac_cv_search_strerror+set}" = set; then
3641 break
3643 done
3644 if test "${ac_cv_search_strerror+set}" = set; then
3646 else
3647 ac_cv_search_strerror=no
3649 rm conftest.$ac_ext
3650 LIBS=$ac_func_search_save_LIBS
3652 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3653 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3654 ac_res=$ac_cv_search_strerror
3655 if test "$ac_res" != no; then
3656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3660 ac_ext=cpp
3661 ac_cpp='$CXXCPP $CPPFLAGS'
3662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3665 if test -z "$CXX"; then
3666 if test -n "$CCC"; then
3667 CXX=$CCC
3668 else
3669 if test -n "$ac_tool_prefix"; then
3670 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3676 if test "${ac_cv_prog_CXX+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 if test -n "$CXX"; then
3680 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3681 else
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 break 2
3693 done
3694 done
3695 IFS=$as_save_IFS
3699 CXX=$ac_cv_prog_CXX
3700 if test -n "$CXX"; then
3701 { echo "$as_me:$LINENO: result: $CXX" >&5
3702 echo "${ECHO_T}$CXX" >&6; }
3703 else
3704 { echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6; }
3709 test -n "$CXX" && break
3710 done
3712 if test -z "$CXX"; then
3713 ac_ct_CXX=$CXX
3714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3716 # Extract the first word of "$ac_prog", so it can be a program name with args.
3717 set dummy $ac_prog; ac_word=$2
3718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 if test -n "$ac_ct_CXX"; then
3724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_ac_ct_CXX="$ac_prog"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3737 done
3738 done
3739 IFS=$as_save_IFS
3743 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3744 if test -n "$ac_ct_CXX"; then
3745 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3746 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3747 else
3748 { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3753 test -n "$ac_ct_CXX" && break
3754 done
3756 if test "x$ac_ct_CXX" = x; then
3757 CXX="g++"
3758 else
3759 case $cross_compiling:$ac_tool_warned in
3760 yes:)
3761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3762 whose name does not start with the host triplet. If you think this
3763 configuration is useful to you, please write to autoconf@gnu.org." >&5
3764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3765 whose name does not start with the host triplet. If you think this
3766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3767 ac_tool_warned=yes ;;
3768 esac
3769 CXX=$ac_ct_CXX
3775 # Provide some information about the compiler.
3776 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3777 ac_compiler=`set X $ac_compile; echo $2`
3778 { (ac_try="$ac_compiler --version >&5"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_compiler --version >&5") 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }
3788 { (ac_try="$ac_compiler -v >&5"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_compiler -v >&5") 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }
3798 { (ac_try="$ac_compiler -V >&5"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compiler -V >&5") 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }
3809 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3810 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3811 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h. */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3822 main ()
3824 #ifndef __GNUC__
3825 choke me
3826 #endif
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && {
3846 test -z "$ac_cxx_werror_flag" ||
3847 test ! -s conftest.err
3848 } && test -s conftest.$ac_objext; then
3849 ac_compiler_gnu=yes
3850 else
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 ac_compiler_gnu=no
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3861 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3862 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3863 GXX=`test $ac_compiler_gnu = yes && echo yes`
3864 ac_test_CXXFLAGS=${CXXFLAGS+set}
3865 ac_save_CXXFLAGS=$CXXFLAGS
3866 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3867 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3868 if test "${ac_cv_prog_cxx_g+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3872 ac_cxx_werror_flag=yes
3873 ac_cv_prog_cxx_g=no
3874 CXXFLAGS="-g"
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h. */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3883 main ()
3887 return 0;
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3898 ac_status=$?
3899 grep -v '^ *+' conftest.er1 >conftest.err
3900 rm -f conftest.er1
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_cxx_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3907 ac_cv_prog_cxx_g=yes
3908 else
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 CXXFLAGS=""
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3921 main ()
3925 return 0;
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_compile") 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && {
3942 test -z "$ac_cxx_werror_flag" ||
3943 test ! -s conftest.err
3944 } && test -s conftest.$ac_objext; then
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3951 CXXFLAGS="-g"
3952 cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3960 main ()
3964 return 0;
3966 _ACEOF
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_compile") 2>conftest.er1
3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_cxx_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest.$ac_objext; then
3984 ac_cv_prog_cxx_g=yes
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4001 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4002 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4003 if test "$ac_test_CXXFLAGS" = set; then
4004 CXXFLAGS=$ac_save_CXXFLAGS
4005 elif test $ac_cv_prog_cxx_g = yes; then
4006 if test "$GXX" = yes; then
4007 CXXFLAGS="-g -O2"
4008 else
4009 CXXFLAGS="-g"
4011 else
4012 if test "$GXX" = yes; then
4013 CXXFLAGS="-O2"
4014 else
4015 CXXFLAGS=
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
4024 depcc="$CXX" am_compiler_list=
4026 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4027 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4028 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4032 # We make a subdir and do the tests there. Otherwise we can end up
4033 # making bogus files that we don't know about and never remove. For
4034 # instance it was reported that on HP-UX the gcc test will end up
4035 # making a dummy file named `D' -- because `-MD' means `put the output
4036 # in D'.
4037 mkdir conftest.dir
4038 # Copy depcomp to subdir because otherwise we won't find it if we're
4039 # using a relative directory.
4040 cp "$am_depcomp" conftest.dir
4041 cd conftest.dir
4042 # We will build objects and dependencies in a subdirectory because
4043 # it helps to detect inapplicable dependency modes. For instance
4044 # both Tru64's cc and ICC support -MD to output dependencies as a
4045 # side effect of compilation, but ICC will put the dependencies in
4046 # the current directory while Tru64 will put them in the object
4047 # directory.
4048 mkdir sub
4050 am_cv_CXX_dependencies_compiler_type=none
4051 if test "$am_compiler_list" = ""; then
4052 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4054 for depmode in $am_compiler_list; do
4055 # Setup a source with many dependencies, because some compilers
4056 # like to wrap large dependency lists on column 80 (with \), and
4057 # we should not choose a depcomp mode which is confused by this.
4059 # We need to recreate these files for each test, as the compiler may
4060 # overwrite some of them when testing with obscure command lines.
4061 # This happens at least with the AIX C compiler.
4062 : > sub/conftest.c
4063 for i in 1 2 3 4 5 6; do
4064 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4065 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4066 # Solaris 8's {/usr,}/bin/sh.
4067 touch sub/conftst$i.h
4068 done
4069 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4071 case $depmode in
4072 nosideeffect)
4073 # after this tag, mechanisms are not by side-effect, so they'll
4074 # only be used when explicitly requested
4075 if test "x$enable_dependency_tracking" = xyes; then
4076 continue
4077 else
4078 break
4081 none) break ;;
4082 esac
4083 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4084 # mode. It turns out that the SunPro C++ compiler does not properly
4085 # handle `-M -o', and we need to detect this.
4086 if depmode=$depmode \
4087 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4088 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4089 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4090 >/dev/null 2>conftest.err &&
4091 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4092 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4093 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4094 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4095 # icc doesn't choke on unknown options, it will just issue warnings
4096 # or remarks (even with -Werror). So we grep stderr for any message
4097 # that says an option was ignored or not supported.
4098 # When given -MP, icc 7.0 and 7.1 complain thusly:
4099 # icc: Command line warning: ignoring option '-M'; no argument required
4100 # The diagnosis changed in icc 8.0:
4101 # icc: Command line remark: option '-MP' not supported
4102 if (grep 'ignoring option' conftest.err ||
4103 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4104 am_cv_CXX_dependencies_compiler_type=$depmode
4105 break
4108 done
4110 cd ..
4111 rm -rf conftest.dir
4112 else
4113 am_cv_CXX_dependencies_compiler_type=none
4117 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4118 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4119 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4122 test "x$enable_dependency_tracking" != xno \
4123 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4124 am__fastdepCXX_TRUE=
4125 am__fastdepCXX_FALSE='#'
4126 else
4127 am__fastdepCXX_TRUE='#'
4128 am__fastdepCXX_FALSE=
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4142 if test "${ac_cv_prog_CC+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4159 done
4160 done
4161 IFS=$as_save_IFS
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { echo "$as_me:$LINENO: result: $CC" >&5
4168 echo "${ECHO_T}$CC" >&6; }
4169 else
4170 { echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6; }
4176 if test -z "$ac_cv_prog_CC"; then
4177 ac_ct_CC=$CC
4178 # Extract the first word of "gcc", so it can be a program name with args.
4179 set dummy gcc; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4195 ac_cv_prog_ac_ct_CC="gcc"
4196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4201 IFS=$as_save_IFS
4205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 if test -n "$ac_ct_CC"; then
4207 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4208 echo "${ECHO_T}$ac_ct_CC" >&6; }
4209 else
4210 { echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6; }
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218 yes:)
4219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4220 whose name does not start with the host triplet. If you think this
4221 configuration is useful to you, please write to autoconf@gnu.org." >&5
4222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4223 whose name does not start with the host triplet. If you think this
4224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4225 ac_tool_warned=yes ;;
4226 esac
4227 CC=$ac_ct_CC
4229 else
4230 CC="$ac_cv_prog_CC"
4233 if test -z "$CC"; then
4234 if test -n "$ac_tool_prefix"; then
4235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}cc; ac_word=$2
4237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4239 if test "${ac_cv_prog_CC+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242 if test -n "$CC"; then
4243 ac_cv_prog_CC="$CC" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 ac_cv_prog_CC="${ac_tool_prefix}cc"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4258 IFS=$as_save_IFS
4262 CC=$ac_cv_prog_CC
4263 if test -n "$CC"; then
4264 { echo "$as_me:$LINENO: result: $CC" >&5
4265 echo "${ECHO_T}$CC" >&6; }
4266 else
4267 { echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6; }
4274 if test -z "$CC"; then
4275 # Extract the first word of "cc", so it can be a program name with args.
4276 set dummy cc; ac_word=$2
4277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4279 if test "${ac_cv_prog_CC+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 if test -n "$CC"; then
4283 ac_cv_prog_CC="$CC" # Let the user override the test.
4284 else
4285 ac_prog_rejected=no
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4294 ac_prog_rejected=yes
4295 continue
4297 ac_cv_prog_CC="cc"
4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4301 done
4302 done
4303 IFS=$as_save_IFS
4305 if test $ac_prog_rejected = yes; then
4306 # We found a bogon in the path, so make sure we never use it.
4307 set dummy $ac_cv_prog_CC
4308 shift
4309 if test $# != 0; then
4310 # We chose a different compiler from the bogus one.
4311 # However, it has the same basename, so the bogon will be chosen
4312 # first if we set CC to just the basename; use the full file name.
4313 shift
4314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4319 CC=$ac_cv_prog_CC
4320 if test -n "$CC"; then
4321 { echo "$as_me:$LINENO: result: $CC" >&5
4322 echo "${ECHO_T}$CC" >&6; }
4323 else
4324 { echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6; }
4330 if test -z "$CC"; then
4331 if test -n "$ac_tool_prefix"; then
4332 for ac_prog in cl.exe
4334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338 if test "${ac_cv_prog_CC+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 if test -n "$CC"; then
4342 ac_cv_prog_CC="$CC" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4361 CC=$ac_cv_prog_CC
4362 if test -n "$CC"; then
4363 { echo "$as_me:$LINENO: result: $CC" >&5
4364 echo "${ECHO_T}$CC" >&6; }
4365 else
4366 { echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6; }
4371 test -n "$CC" && break
4372 done
4374 if test -z "$CC"; then
4375 ac_ct_CC=$CC
4376 for ac_prog in cl.exe
4378 # Extract the first word of "$ac_prog", so it can be a program name with args.
4379 set dummy $ac_prog; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 if test -n "$ac_ct_CC"; then
4386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_ac_ct_CC="$ac_prog"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4399 done
4400 done
4401 IFS=$as_save_IFS
4405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4406 if test -n "$ac_ct_CC"; then
4407 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4408 echo "${ECHO_T}$ac_ct_CC" >&6; }
4409 else
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4415 test -n "$ac_ct_CC" && break
4416 done
4418 if test "x$ac_ct_CC" = x; then
4419 CC=""
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422 yes:)
4423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4424 whose name does not start with the host triplet. If you think this
4425 configuration is useful to you, please write to autoconf@gnu.org." >&5
4426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4427 whose name does not start with the host triplet. If you think this
4428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4429 ac_tool_warned=yes ;;
4430 esac
4431 CC=$ac_ct_CC
4438 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4439 See \`config.log' for more details." >&5
4440 echo "$as_me: error: no acceptable C compiler found in \$PATH
4441 See \`config.log' for more details." >&2;}
4442 { (exit 1); exit 1; }; }
4444 # Provide some information about the compiler.
4445 echo "$as_me:$LINENO: checking for C compiler version" >&5
4446 ac_compiler=`set X $ac_compile; echo $2`
4447 { (ac_try="$ac_compiler --version >&5"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_compiler --version >&5") 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }
4457 { (ac_try="$ac_compiler -v >&5"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_compiler -v >&5") 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }
4467 { (ac_try="$ac_compiler -V >&5"
4468 case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compiler -V >&5") 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }
4478 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4479 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4480 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h. */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4491 main ()
4493 #ifndef __GNUC__
4494 choke me
4495 #endif
4498 return 0;
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (ac_try="$ac_compile"
4503 case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506 esac
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_compile") 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } && {
4515 test -z "$ac_c_werror_flag" ||
4516 test ! -s conftest.err
4517 } && test -s conftest.$ac_objext; then
4518 ac_compiler_gnu=yes
4519 else
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4523 ac_compiler_gnu=no
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4530 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4531 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4532 GCC=`test $ac_compiler_gnu = yes && echo yes`
4533 ac_test_CFLAGS=${CFLAGS+set}
4534 ac_save_CFLAGS=$CFLAGS
4535 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4536 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4537 if test "${ac_cv_prog_cc_g+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 ac_save_c_werror_flag=$ac_c_werror_flag
4541 ac_c_werror_flag=yes
4542 ac_cv_prog_cc_g=no
4543 CFLAGS="-g"
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4552 main ()
4556 return 0;
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4561 case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4576 ac_cv_prog_cc_g=yes
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 CFLAGS=""
4582 cat >conftest.$ac_ext <<_ACEOF
4583 /* confdefs.h. */
4584 _ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4590 main ()
4594 return 0;
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && {
4611 test -z "$ac_c_werror_flag" ||
4612 test ! -s conftest.err
4613 } && test -s conftest.$ac_objext; then
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="-g"
4621 cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h. */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4629 main ()
4633 return 0;
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_cv_prog_cc_g=yes
4654 else
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_c_werror_flag=$ac_save_c_werror_flag
4670 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4671 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4672 if test "$ac_test_CFLAGS" = set; then
4673 CFLAGS=$ac_save_CFLAGS
4674 elif test $ac_cv_prog_cc_g = yes; then
4675 if test "$GCC" = yes; then
4676 CFLAGS="-g -O2"
4677 else
4678 CFLAGS="-g"
4680 else
4681 if test "$GCC" = yes; then
4682 CFLAGS="-O2"
4683 else
4684 CFLAGS=
4687 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4688 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_cc_c89+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 ac_cv_prog_cc_c89=no
4693 ac_save_CC=$CC
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 #include <stdarg.h>
4701 #include <stdio.h>
4702 #include <sys/types.h>
4703 #include <sys/stat.h>
4704 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4705 struct buf { int x; };
4706 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4707 static char *e (p, i)
4708 char **p;
4709 int i;
4711 return p[i];
4713 static char *f (char * (*g) (char **, int), char **p, ...)
4715 char *s;
4716 va_list v;
4717 va_start (v,p);
4718 s = g (p, va_arg (v,int));
4719 va_end (v);
4720 return s;
4723 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4724 function prototypes and stuff, but not '\xHH' hex character constants.
4725 These don't provoke an error unfortunately, instead are silently treated
4726 as 'x'. The following induces an error, until -std is added to get
4727 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4728 array size at least. It's necessary to write '\x00'==0 to get something
4729 that's true only with -std. */
4730 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4732 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4733 inside strings and character constants. */
4734 #define FOO(x) 'x'
4735 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4737 int test (int i, double x);
4738 struct s1 {int (*f) (int a);};
4739 struct s2 {int (*f) (double a);};
4740 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4741 int argc;
4742 char **argv;
4744 main ()
4746 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4748 return 0;
4750 _ACEOF
4751 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4752 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4754 CC="$ac_save_CC $ac_arg"
4755 rm -f conftest.$ac_objext
4756 if { (ac_try="$ac_compile"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_compile") 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } && {
4769 test -z "$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 } && test -s conftest.$ac_objext; then
4772 ac_cv_prog_cc_c89=$ac_arg
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4780 rm -f core conftest.err conftest.$ac_objext
4781 test "x$ac_cv_prog_cc_c89" != "xno" && break
4782 done
4783 rm -f conftest.$ac_ext
4784 CC=$ac_save_CC
4787 # AC_CACHE_VAL
4788 case "x$ac_cv_prog_cc_c89" in
4790 { echo "$as_me:$LINENO: result: none needed" >&5
4791 echo "${ECHO_T}none needed" >&6; } ;;
4792 xno)
4793 { echo "$as_me:$LINENO: result: unsupported" >&5
4794 echo "${ECHO_T}unsupported" >&6; } ;;
4796 CC="$CC $ac_cv_prog_cc_c89"
4797 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4798 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4799 esac
4802 ac_ext=c
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808 depcc="$CC" am_compiler_list=
4810 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4811 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4812 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4816 # We make a subdir and do the tests there. Otherwise we can end up
4817 # making bogus files that we don't know about and never remove. For
4818 # instance it was reported that on HP-UX the gcc test will end up
4819 # making a dummy file named `D' -- because `-MD' means `put the output
4820 # in D'.
4821 mkdir conftest.dir
4822 # Copy depcomp to subdir because otherwise we won't find it if we're
4823 # using a relative directory.
4824 cp "$am_depcomp" conftest.dir
4825 cd conftest.dir
4826 # We will build objects and dependencies in a subdirectory because
4827 # it helps to detect inapplicable dependency modes. For instance
4828 # both Tru64's cc and ICC support -MD to output dependencies as a
4829 # side effect of compilation, but ICC will put the dependencies in
4830 # the current directory while Tru64 will put them in the object
4831 # directory.
4832 mkdir sub
4834 am_cv_CC_dependencies_compiler_type=none
4835 if test "$am_compiler_list" = ""; then
4836 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4838 for depmode in $am_compiler_list; do
4839 # Setup a source with many dependencies, because some compilers
4840 # like to wrap large dependency lists on column 80 (with \), and
4841 # we should not choose a depcomp mode which is confused by this.
4843 # We need to recreate these files for each test, as the compiler may
4844 # overwrite some of them when testing with obscure command lines.
4845 # This happens at least with the AIX C compiler.
4846 : > sub/conftest.c
4847 for i in 1 2 3 4 5 6; do
4848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4849 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4850 # Solaris 8's {/usr,}/bin/sh.
4851 touch sub/conftst$i.h
4852 done
4853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4855 case $depmode in
4856 nosideeffect)
4857 # after this tag, mechanisms are not by side-effect, so they'll
4858 # only be used when explicitly requested
4859 if test "x$enable_dependency_tracking" = xyes; then
4860 continue
4861 else
4862 break
4865 none) break ;;
4866 esac
4867 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4868 # mode. It turns out that the SunPro C++ compiler does not properly
4869 # handle `-M -o', and we need to detect this.
4870 if depmode=$depmode \
4871 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4872 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4873 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4874 >/dev/null 2>conftest.err &&
4875 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4876 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4877 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4878 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4879 # icc doesn't choke on unknown options, it will just issue warnings
4880 # or remarks (even with -Werror). So we grep stderr for any message
4881 # that says an option was ignored or not supported.
4882 # When given -MP, icc 7.0 and 7.1 complain thusly:
4883 # icc: Command line warning: ignoring option '-M'; no argument required
4884 # The diagnosis changed in icc 8.0:
4885 # icc: Command line remark: option '-MP' not supported
4886 if (grep 'ignoring option' conftest.err ||
4887 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4888 am_cv_CC_dependencies_compiler_type=$depmode
4889 break
4892 done
4894 cd ..
4895 rm -rf conftest.dir
4896 else
4897 am_cv_CC_dependencies_compiler_type=none
4901 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4902 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4903 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4906 test "x$enable_dependency_tracking" != xno \
4907 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4908 am__fastdepCC_TRUE=
4909 am__fastdepCC_FALSE='#'
4910 else
4911 am__fastdepCC_TRUE='#'
4912 am__fastdepCC_FALSE=
4917 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4925 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4926 # On Suns, sometimes $CPP names a directory.
4927 if test -n "$CPP" && test -d "$CPP"; then
4928 CPP=
4930 if test -z "$CPP"; then
4931 if test "${ac_cv_prog_CPP+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 # Double quotes because CPP needs to be expanded
4935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4937 ac_preproc_ok=false
4938 for ac_c_preproc_warn_flag in '' yes
4940 # Use a header file that comes with gcc, so configuring glibc
4941 # with a fresh cross-compiler works.
4942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4943 # <limits.h> exists even on freestanding compilers.
4944 # On the NeXT, cc -E runs the code through the compiler's parser,
4945 # not just through cpp. "Syntax error" is here to catch this case.
4946 cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h. */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #ifdef __STDC__
4953 # include <limits.h>
4954 #else
4955 # include <assert.h>
4956 #endif
4957 Syntax error
4958 _ACEOF
4959 if { (ac_try="$ac_cpp conftest.$ac_ext"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966 ac_status=$?
4967 grep -v '^ *+' conftest.er1 >conftest.err
4968 rm -f conftest.er1
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null && {
4972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4974 }; then
4976 else
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4980 # Broken: fails on valid input.
4981 continue
4984 rm -f conftest.err conftest.$ac_ext
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h. */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 #include <ac_nonexistent.h>
4995 _ACEOF
4996 if { (ac_try="$ac_cpp conftest.$ac_ext"
4997 case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000 esac
5001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } >/dev/null && {
5009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5010 test ! -s conftest.err
5011 }; then
5012 # Broken: success on invalid input.
5013 continue
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5018 # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5023 rm -f conftest.err conftest.$ac_ext
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then
5029 break
5032 done
5033 ac_cv_prog_CPP=$CPP
5036 CPP=$ac_cv_prog_CPP
5037 else
5038 ac_cv_prog_CPP=$CPP
5040 { echo "$as_me:$LINENO: result: $CPP" >&5
5041 echo "${ECHO_T}$CPP" >&6; }
5042 ac_preproc_ok=false
5043 for ac_c_preproc_warn_flag in '' yes
5045 # Use a header file that comes with gcc, so configuring glibc
5046 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #ifdef __STDC__
5058 # include <limits.h>
5059 #else
5060 # include <assert.h>
5061 #endif
5062 Syntax error
5063 _ACEOF
5064 if { (ac_try="$ac_cpp conftest.$ac_ext"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null && {
5077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 }; then
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 # Broken: fails on valid input.
5086 continue
5089 rm -f conftest.err conftest.$ac_ext
5091 # OK, works on sane cases. Now check whether nonexistent headers
5092 # can be detected and how.
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 #include <ac_nonexistent.h>
5100 _ACEOF
5101 if { (ac_try="$ac_cpp conftest.$ac_ext"
5102 case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105 esac
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null && {
5114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5115 test ! -s conftest.err
5116 }; then
5117 # Broken: success on invalid input.
5118 continue
5119 else
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5123 # Passes both tests.
5124 ac_preproc_ok=:
5125 break
5128 rm -f conftest.err conftest.$ac_ext
5130 done
5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132 rm -f conftest.err conftest.$ac_ext
5133 if $ac_preproc_ok; then
5135 else
5136 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5137 See \`config.log' for more details." >&5
5138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5139 See \`config.log' for more details." >&2;}
5140 { (exit 1); exit 1; }; }
5143 ac_ext=c
5144 ac_cpp='$CPP $CPPFLAGS'
5145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5150 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5151 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_GREP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 # Extract the first word of "grep ggrep" to use in msg output
5156 if test -z "$GREP"; then
5157 set dummy grep ggrep; ac_prog_name=$2
5158 if test "${ac_cv_path_GREP+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 ac_path_GREP_found=false
5162 # Loop through the user's path and test for each of PROGNAME-LIST
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_prog in grep ggrep; do
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5171 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5172 # Check for GNU ac_path_GREP and select it if it is found.
5173 # Check for GNU $ac_path_GREP
5174 case `"$ac_path_GREP" --version 2>&1` in
5175 *GNU*)
5176 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5178 ac_count=0
5179 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5180 while :
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 echo 'GREP' >> "conftest.nl"
5186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 ac_count=`expr $ac_count + 1`
5189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_GREP="$ac_path_GREP"
5192 ac_path_GREP_max=$ac_count
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5196 done
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198 esac
5201 $ac_path_GREP_found && break 3
5202 done
5203 done
5205 done
5206 IFS=$as_save_IFS
5211 GREP="$ac_cv_path_GREP"
5212 if test -z "$GREP"; then
5213 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5214 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5215 { (exit 1); exit 1; }; }
5218 else
5219 ac_cv_path_GREP=$GREP
5224 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5225 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5226 GREP="$ac_cv_path_GREP"
5229 { echo "$as_me:$LINENO: checking for egrep" >&5
5230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_EGREP+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5235 then ac_cv_path_EGREP="$GREP -E"
5236 else
5237 # Extract the first word of "egrep" to use in msg output
5238 if test -z "$EGREP"; then
5239 set dummy egrep; ac_prog_name=$2
5240 if test "${ac_cv_path_EGREP+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 ac_path_EGREP_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_prog in egrep; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5253 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5254 # Check for GNU ac_path_EGREP and select it if it is found.
5255 # Check for GNU $ac_path_EGREP
5256 case `"$ac_path_EGREP" --version 2>&1` in
5257 *GNU*)
5258 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5260 ac_count=0
5261 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5262 while :
5264 cat "conftest.in" "conftest.in" >"conftest.tmp"
5265 mv "conftest.tmp" "conftest.in"
5266 cp "conftest.in" "conftest.nl"
5267 echo 'EGREP' >> "conftest.nl"
5268 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270 ac_count=`expr $ac_count + 1`
5271 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_EGREP="$ac_path_EGREP"
5274 ac_path_EGREP_max=$ac_count
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5278 done
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280 esac
5283 $ac_path_EGREP_found && break 3
5284 done
5285 done
5287 done
5288 IFS=$as_save_IFS
5293 EGREP="$ac_cv_path_EGREP"
5294 if test -z "$EGREP"; then
5295 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5296 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5297 { (exit 1); exit 1; }; }
5300 else
5301 ac_cv_path_EGREP=$EGREP
5307 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5308 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5309 EGREP="$ac_cv_path_EGREP"
5312 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5313 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5314 if test "${ac_cv_header_stdc+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 #include <stdlib.h>
5324 #include <stdarg.h>
5325 #include <string.h>
5326 #include <float.h>
5329 main ()
5333 return 0;
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5338 case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compile") 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } && {
5350 test -z "$ac_c_werror_flag" ||
5351 test ! -s conftest.err
5352 } && test -s conftest.$ac_objext; then
5353 ac_cv_header_stdc=yes
5354 else
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 ac_cv_header_stdc=no
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 if test $ac_cv_header_stdc = yes; then
5364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 #include <string.h>
5373 _ACEOF
5374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375 $EGREP "memchr" >/dev/null 2>&1; then
5377 else
5378 ac_cv_header_stdc=no
5380 rm -f conftest*
5384 if test $ac_cv_header_stdc = yes; then
5385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <stdlib.h>
5394 _ACEOF
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396 $EGREP "free" >/dev/null 2>&1; then
5398 else
5399 ac_cv_header_stdc=no
5401 rm -f conftest*
5405 if test $ac_cv_header_stdc = yes; then
5406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5407 if test "$cross_compiling" = yes; then
5409 else
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <ctype.h>
5417 #include <stdlib.h>
5418 #if ((' ' & 0x0FF) == 0x020)
5419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5421 #else
5422 # define ISLOWER(c) \
5423 (('a' <= (c) && (c) <= 'i') \
5424 || ('j' <= (c) && (c) <= 'r') \
5425 || ('s' <= (c) && (c) <= 'z'))
5426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5427 #endif
5429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5431 main ()
5433 int i;
5434 for (i = 0; i < 256; i++)
5435 if (XOR (islower (i), ISLOWER (i))
5436 || toupper (i) != TOUPPER (i))
5437 return 2;
5438 return 0;
5440 _ACEOF
5441 rm -f conftest$ac_exeext
5442 if { (ac_try="$ac_link"
5443 case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_link") 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5452 { (case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_try") 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5462 else
5463 echo "$as_me: program exited with status $ac_status" >&5
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5467 ( exit $ac_status )
5468 ac_cv_header_stdc=no
5470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5478 if test $ac_cv_header_stdc = yes; then
5480 cat >>confdefs.h <<\_ACEOF
5481 #define STDC_HEADERS 1
5482 _ACEOF
5490 GETTEXT_PACKAGE=opendashboard
5493 cat >>confdefs.h <<_ACEOF
5494 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5495 _ACEOF
5497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5507 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5508 inttypes.h stdint.h unistd.h
5510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 $ac_includes_default
5524 #include <$ac_header>
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 eval "$as_ac_Header=yes"
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 eval "$as_ac_Header=no"
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 ac_res=`eval echo '${'$as_ac_Header'}'`
5554 { echo "$as_me:$LINENO: result: $ac_res" >&5
5555 echo "${ECHO_T}$ac_res" >&6; }
5556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5557 cat >>confdefs.h <<_ACEOF
5558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559 _ACEOF
5563 done
5566 # Make sure we can run config.sub.
5567 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5568 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5569 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5570 { (exit 1); exit 1; }; }
5572 { echo "$as_me:$LINENO: checking build system type" >&5
5573 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5574 if test "${ac_cv_build+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577 ac_build_alias=$build_alias
5578 test "x$ac_build_alias" = x &&
5579 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5580 test "x$ac_build_alias" = x &&
5581 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5582 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5583 { (exit 1); exit 1; }; }
5584 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5585 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5586 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5587 { (exit 1); exit 1; }; }
5590 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5591 echo "${ECHO_T}$ac_cv_build" >&6; }
5592 case $ac_cv_build in
5593 *-*-*) ;;
5594 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5595 echo "$as_me: error: invalid value of canonical build" >&2;}
5596 { (exit 1); exit 1; }; };;
5597 esac
5598 build=$ac_cv_build
5599 ac_save_IFS=$IFS; IFS='-'
5600 set x $ac_cv_build
5601 shift
5602 build_cpu=$1
5603 build_vendor=$2
5604 shift; shift
5605 # Remember, the first character of IFS is used to create $*,
5606 # except with old shells:
5607 build_os=$*
5608 IFS=$ac_save_IFS
5609 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5612 { echo "$as_me:$LINENO: checking host system type" >&5
5613 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5614 if test "${ac_cv_host+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 if test "x$host_alias" = x; then
5618 ac_cv_host=$ac_cv_build
5619 else
5620 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5621 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5622 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5623 { (exit 1); exit 1; }; }
5627 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5628 echo "${ECHO_T}$ac_cv_host" >&6; }
5629 case $ac_cv_host in
5630 *-*-*) ;;
5631 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5632 echo "$as_me: error: invalid value of canonical host" >&2;}
5633 { (exit 1); exit 1; }; };;
5634 esac
5635 host=$ac_cv_host
5636 ac_save_IFS=$IFS; IFS='-'
5637 set x $ac_cv_host
5638 shift
5639 host_cpu=$1
5640 host_vendor=$2
5641 shift; shift
5642 # Remember, the first character of IFS is used to create $*,
5643 # except with old shells:
5644 host_os=$*
5645 IFS=$ac_save_IFS
5646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5651 for ac_header in locale.h
5653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 ac_res=`eval echo '${'$as_ac_Header'}'`
5661 { echo "$as_me:$LINENO: result: $ac_res" >&5
5662 echo "${ECHO_T}$ac_res" >&6; }
5663 else
5664 # Is the header compilable?
5665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 $ac_includes_default
5674 #include <$ac_header>
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 ac_header_compiler=yes
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 ac_header_compiler=no
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5703 echo "${ECHO_T}$ac_header_compiler" >&6; }
5705 # Is the header present?
5706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <$ac_header>
5715 _ACEOF
5716 if { (ac_try="$ac_cpp conftest.$ac_ext"
5717 case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } >/dev/null && {
5729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 }; then
5732 ac_header_preproc=yes
5733 else
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_header_preproc=no
5740 rm -f conftest.err conftest.$ac_ext
5741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5742 echo "${ECHO_T}$ac_header_preproc" >&6; }
5744 # So? What about this header?
5745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5746 yes:no: )
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5751 ac_header_preproc=yes
5753 no:yes:* )
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5768 esac
5769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774 eval "$as_ac_Header=\$ac_header_preproc"
5776 ac_res=`eval echo '${'$as_ac_Header'}'`
5777 { echo "$as_me:$LINENO: result: $ac_res" >&5
5778 echo "${ECHO_T}$ac_res" >&6; }
5781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5782 cat >>confdefs.h <<_ACEOF
5783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5784 _ACEOF
5788 done
5790 if test $ac_cv_header_locale_h = yes; then
5791 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5792 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
5793 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <locale.h>
5804 main ()
5806 return LC_MESSAGES
5808 return 0;
5810 _ACEOF
5811 rm -f conftest.$ac_objext conftest$ac_exeext
5812 if { (ac_try="$ac_link"
5813 case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_link") 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && {
5825 test -z "$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5827 } && test -s conftest$ac_exeext &&
5828 $as_test_x conftest$ac_exeext; then
5829 am_cv_val_LC_MESSAGES=yes
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 am_cv_val_LC_MESSAGES=no
5837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5838 conftest$ac_exeext conftest.$ac_ext
5840 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5841 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
5842 if test $am_cv_val_LC_MESSAGES = yes; then
5844 cat >>confdefs.h <<\_ACEOF
5845 #define HAVE_LC_MESSAGES 1
5846 _ACEOF
5850 USE_NLS=yes
5853 gt_cv_have_gettext=no
5855 CATOBJEXT=NONE
5856 XGETTEXT=:
5857 INTLLIBS=
5859 if test "${ac_cv_header_libintl_h+set}" = set; then
5860 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5861 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5862 if test "${ac_cv_header_libintl_h+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5866 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5867 else
5868 # Is the header compilable?
5869 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
5870 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5878 #include <libintl.h>
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (ac_try="$ac_compile"
5882 case "(($ac_try" in
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5885 esac
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_compile") 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest.$ac_objext; then
5897 ac_header_compiler=yes
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_header_compiler=no
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5907 echo "${ECHO_T}$ac_header_compiler" >&6; }
5909 # Is the header present?
5910 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
5911 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <libintl.h>
5919 _ACEOF
5920 if { (ac_try="$ac_cpp conftest.$ac_ext"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } >/dev/null && {
5933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 }; then
5936 ac_header_preproc=yes
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ac_header_preproc=no
5944 rm -f conftest.err conftest.$ac_ext
5945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5946 echo "${ECHO_T}$ac_header_preproc" >&6; }
5948 # So? What about this header?
5949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5950 yes:no: )
5951 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5952 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5954 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5955 ac_header_preproc=yes
5957 no:yes:* )
5958 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5959 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5960 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5961 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5962 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5963 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5964 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5965 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5967 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5969 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5972 esac
5973 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5974 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5975 if test "${ac_cv_header_libintl_h+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 ac_cv_header_libintl_h=$ac_header_preproc
5980 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5981 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5984 if test $ac_cv_header_libintl_h = yes; then
5985 gt_cv_func_dgettext_libintl="no"
5986 libintl_extra_libs=""
5989 # First check in libc
5991 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
5992 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
5993 if test "${gt_cv_func_ngettext_libc+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6003 #include <libintl.h>
6006 main ()
6008 return !ngettext ("","", 1)
6010 return 0;
6012 _ACEOF
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (ac_try="$ac_link"
6015 case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018 esac
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_link") 2>conftest.er1
6021 ac_status=$?
6022 grep -v '^ *+' conftest.er1 >conftest.err
6023 rm -f conftest.er1
6024 cat conftest.err >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); } && {
6027 test -z "$ac_c_werror_flag" ||
6028 test ! -s conftest.err
6029 } && test -s conftest$ac_exeext &&
6030 $as_test_x conftest$ac_exeext; then
6031 gt_cv_func_ngettext_libc=yes
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 gt_cv_func_ngettext_libc=no
6039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6040 conftest$ac_exeext conftest.$ac_ext
6043 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6044 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
6046 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6047 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6048 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
6049 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 #include <libintl.h>
6062 main ()
6064 return !dgettext ("","")
6066 return 0;
6068 _ACEOF
6069 rm -f conftest.$ac_objext conftest$ac_exeext
6070 if { (ac_try="$ac_link"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_link") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest$ac_exeext &&
6086 $as_test_x conftest$ac_exeext; then
6087 gt_cv_func_dgettext_libc=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 gt_cv_func_dgettext_libc=no
6095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6096 conftest$ac_exeext conftest.$ac_ext
6099 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6100 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6103 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6105 for ac_func in bind_textdomain_codeset
6107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6121 #define $ac_func innocuous_$ac_func
6123 /* System header to define __stub macros and hopefully few prototypes,
6124 which can conflict with char $ac_func (); below.
6125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6126 <limits.h> exists even on freestanding compilers. */
6128 #ifdef __STDC__
6129 # include <limits.h>
6130 #else
6131 # include <assert.h>
6132 #endif
6134 #undef $ac_func
6136 /* Override any GCC internal prototype to avoid an error.
6137 Use char because int might match the return type of a GCC
6138 builtin and then its argument prototype would still apply. */
6139 #ifdef __cplusplus
6140 extern "C"
6141 #endif
6142 char $ac_func ();
6143 /* The GNU C library defines this for functions which it implements
6144 to always fail with ENOSYS. Some functions are actually named
6145 something starting with __ and the normal name is an alias. */
6146 #if defined __stub_$ac_func || defined __stub___$ac_func
6147 choke me
6148 #endif
6151 main ()
6153 return $ac_func ();
6155 return 0;
6157 _ACEOF
6158 rm -f conftest.$ac_objext conftest$ac_exeext
6159 if { (ac_try="$ac_link"
6160 case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_link") 2>conftest.er1
6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } && {
6172 test -z "$ac_c_werror_flag" ||
6173 test ! -s conftest.err
6174 } && test -s conftest$ac_exeext &&
6175 $as_test_x conftest$ac_exeext; then
6176 eval "$as_ac_var=yes"
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6181 eval "$as_ac_var=no"
6184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6185 conftest$ac_exeext conftest.$ac_ext
6187 ac_res=`eval echo '${'$as_ac_var'}'`
6188 { echo "$as_me:$LINENO: result: $ac_res" >&5
6189 echo "${ECHO_T}$ac_res" >&6; }
6190 if test `eval echo '${'$as_ac_var'}'` = yes; then
6191 cat >>confdefs.h <<_ACEOF
6192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6193 _ACEOF
6196 done
6201 # If we don't have everything we want, check in libintl
6203 if test "$gt_cv_func_dgettext_libc" != "yes" \
6204 || test "$gt_cv_func_ngettext_libc" != "yes" \
6205 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6207 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6208 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6209 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 ac_check_lib_save_LIBS=$LIBS
6213 LIBS="-lintl $LIBS"
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h. */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6221 /* Override any GCC internal prototype to avoid an error.
6222 Use char because int might match the return type of a GCC
6223 builtin and then its argument prototype would still apply. */
6224 #ifdef __cplusplus
6225 extern "C"
6226 #endif
6227 char bindtextdomain ();
6229 main ()
6231 return bindtextdomain ();
6233 return 0;
6235 _ACEOF
6236 rm -f conftest.$ac_objext conftest$ac_exeext
6237 if { (ac_try="$ac_link"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_link") 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } && {
6250 test -z "$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6252 } && test -s conftest$ac_exeext &&
6253 $as_test_x conftest$ac_exeext; then
6254 ac_cv_lib_intl_bindtextdomain=yes
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 ac_cv_lib_intl_bindtextdomain=no
6262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6263 conftest$ac_exeext conftest.$ac_ext
6264 LIBS=$ac_check_lib_save_LIBS
6266 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6267 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6268 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6269 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6270 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6271 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274 ac_check_lib_save_LIBS=$LIBS
6275 LIBS="-lintl $LIBS"
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6283 /* Override any GCC internal prototype to avoid an error.
6284 Use char because int might match the return type of a GCC
6285 builtin and then its argument prototype would still apply. */
6286 #ifdef __cplusplus
6287 extern "C"
6288 #endif
6289 char ngettext ();
6291 main ()
6293 return ngettext ();
6295 return 0;
6297 _ACEOF
6298 rm -f conftest.$ac_objext conftest$ac_exeext
6299 if { (ac_try="$ac_link"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_link") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest$ac_exeext &&
6315 $as_test_x conftest$ac_exeext; then
6316 ac_cv_lib_intl_ngettext=yes
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 ac_cv_lib_intl_ngettext=no
6324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6325 conftest$ac_exeext conftest.$ac_ext
6326 LIBS=$ac_check_lib_save_LIBS
6328 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6329 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6330 if test $ac_cv_lib_intl_ngettext = yes; then
6331 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6332 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6333 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336 ac_check_lib_save_LIBS=$LIBS
6337 LIBS="-lintl $LIBS"
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6345 /* Override any GCC internal prototype to avoid an error.
6346 Use char because int might match the return type of a GCC
6347 builtin and then its argument prototype would still apply. */
6348 #ifdef __cplusplus
6349 extern "C"
6350 #endif
6351 char dgettext ();
6353 main ()
6355 return dgettext ();
6357 return 0;
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (ac_try="$ac_link"
6362 case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_link") 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest$ac_exeext &&
6377 $as_test_x conftest$ac_exeext; then
6378 ac_cv_lib_intl_dgettext=yes
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 ac_cv_lib_intl_dgettext=no
6386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6387 conftest$ac_exeext conftest.$ac_ext
6388 LIBS=$ac_check_lib_save_LIBS
6390 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6391 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6392 if test $ac_cv_lib_intl_dgettext = yes; then
6393 gt_cv_func_dgettext_libintl=yes
6401 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6402 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6403 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6404 { echo "$as_me:$LINENO: result: " >&5
6405 echo "${ECHO_T}" >&6; }
6406 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6407 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6408 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 ac_check_lib_save_LIBS=$LIBS
6412 LIBS="-lintl -liconv $LIBS"
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6420 /* Override any GCC internal prototype to avoid an error.
6421 Use char because int might match the return type of a GCC
6422 builtin and then its argument prototype would still apply. */
6423 #ifdef __cplusplus
6424 extern "C"
6425 #endif
6426 char ngettext ();
6428 main ()
6430 return ngettext ();
6432 return 0;
6434 _ACEOF
6435 rm -f conftest.$ac_objext conftest$ac_exeext
6436 if { (ac_try="$ac_link"
6437 case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_link") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && {
6449 test -z "$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 } && test -s conftest$ac_exeext &&
6452 $as_test_x conftest$ac_exeext; then
6453 ac_cv_lib_intl_ngettext=yes
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 ac_cv_lib_intl_ngettext=no
6461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6462 conftest$ac_exeext conftest.$ac_ext
6463 LIBS=$ac_check_lib_save_LIBS
6465 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6466 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6467 if test $ac_cv_lib_intl_ngettext = yes; then
6468 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6469 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6470 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 ac_check_lib_save_LIBS=$LIBS
6474 LIBS="-lintl -liconv $LIBS"
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6482 /* Override any GCC internal prototype to avoid an error.
6483 Use char because int might match the return type of a GCC
6484 builtin and then its argument prototype would still apply. */
6485 #ifdef __cplusplus
6486 extern "C"
6487 #endif
6488 char dcgettext ();
6490 main ()
6492 return dcgettext ();
6494 return 0;
6496 _ACEOF
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (ac_try="$ac_link"
6499 case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502 esac
6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_link") 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && {
6511 test -z "$ac_c_werror_flag" ||
6512 test ! -s conftest.err
6513 } && test -s conftest$ac_exeext &&
6514 $as_test_x conftest$ac_exeext; then
6515 ac_cv_lib_intl_dcgettext=yes
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 ac_cv_lib_intl_dcgettext=no
6523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6524 conftest$ac_exeext conftest.$ac_ext
6525 LIBS=$ac_check_lib_save_LIBS
6527 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6528 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
6529 if test $ac_cv_lib_intl_dcgettext = yes; then
6530 gt_cv_func_dgettext_libintl=yes
6531 libintl_extra_libs=-liconv
6532 else
6536 else
6543 # If we found libintl, then check in it for bind_textdomain_codeset();
6544 # we'll prefer libc if neither have bind_textdomain_codeset(),
6545 # and both have dgettext and ngettext
6547 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6548 glib_save_LIBS="$LIBS"
6549 LIBS="$LIBS -lintl $libintl_extra_libs"
6550 unset ac_cv_func_bind_textdomain_codeset
6552 for ac_func in bind_textdomain_codeset
6554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6568 #define $ac_func innocuous_$ac_func
6570 /* System header to define __stub macros and hopefully few prototypes,
6571 which can conflict with char $ac_func (); below.
6572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6573 <limits.h> exists even on freestanding compilers. */
6575 #ifdef __STDC__
6576 # include <limits.h>
6577 #else
6578 # include <assert.h>
6579 #endif
6581 #undef $ac_func
6583 /* Override any GCC internal prototype to avoid an error.
6584 Use char because int might match the return type of a GCC
6585 builtin and then its argument prototype would still apply. */
6586 #ifdef __cplusplus
6587 extern "C"
6588 #endif
6589 char $ac_func ();
6590 /* The GNU C library defines this for functions which it implements
6591 to always fail with ENOSYS. Some functions are actually named
6592 something starting with __ and the normal name is an alias. */
6593 #if defined __stub_$ac_func || defined __stub___$ac_func
6594 choke me
6595 #endif
6598 main ()
6600 return $ac_func ();
6602 return 0;
6604 _ACEOF
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (ac_try="$ac_link"
6607 case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610 esac
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_link") 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest$ac_exeext &&
6622 $as_test_x conftest$ac_exeext; then
6623 eval "$as_ac_var=yes"
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 eval "$as_ac_var=no"
6631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6632 conftest$ac_exeext conftest.$ac_ext
6634 ac_res=`eval echo '${'$as_ac_var'}'`
6635 { echo "$as_me:$LINENO: result: $ac_res" >&5
6636 echo "${ECHO_T}$ac_res" >&6; }
6637 if test `eval echo '${'$as_ac_var'}'` = yes; then
6638 cat >>confdefs.h <<_ACEOF
6639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6640 _ACEOF
6643 done
6645 LIBS="$glib_save_LIBS"
6647 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6648 gt_cv_func_dgettext_libc=no
6649 else
6650 if test "$gt_cv_func_dgettext_libc" = "yes" \
6651 && test "$gt_cv_func_ngettext_libc" = "yes"; then
6652 gt_cv_func_dgettext_libintl=no
6658 if test "$gt_cv_func_dgettext_libc" = "yes" \
6659 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
6660 gt_cv_have_gettext=yes
6663 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6664 INTLLIBS="-lintl $libintl_extra_libs"
6667 if test "$gt_cv_have_gettext" = "yes"; then
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_GETTEXT 1
6671 _ACEOF
6673 # Extract the first word of "msgfmt", so it can be a program name with args.
6674 set dummy msgfmt; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_path_MSGFMT+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 case "$MSGFMT" in
6682 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6686 for ac_dir in $PATH; do
6687 test -z "$ac_dir" && ac_dir=.
6688 if test -f $ac_dir/$ac_word; then
6689 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6690 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6691 break
6694 done
6695 IFS="$ac_save_ifs"
6696 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6698 esac
6700 MSGFMT="$ac_cv_path_MSGFMT"
6701 if test "$MSGFMT" != "no"; then
6702 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6703 echo "${ECHO_T}$MSGFMT" >&6; }
6704 else
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6708 if test "$MSGFMT" != "no"; then
6709 glib_save_LIBS="$LIBS"
6710 LIBS="$LIBS $INTLLIBS"
6712 for ac_func in dcgettext
6714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6719 else
6720 cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h. */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6728 #define $ac_func innocuous_$ac_func
6730 /* System header to define __stub macros and hopefully few prototypes,
6731 which can conflict with char $ac_func (); below.
6732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6733 <limits.h> exists even on freestanding compilers. */
6735 #ifdef __STDC__
6736 # include <limits.h>
6737 #else
6738 # include <assert.h>
6739 #endif
6741 #undef $ac_func
6743 /* Override any GCC internal prototype to avoid an error.
6744 Use char because int might match the return type of a GCC
6745 builtin and then its argument prototype would still apply. */
6746 #ifdef __cplusplus
6747 extern "C"
6748 #endif
6749 char $ac_func ();
6750 /* The GNU C library defines this for functions which it implements
6751 to always fail with ENOSYS. Some functions are actually named
6752 something starting with __ and the normal name is an alias. */
6753 #if defined __stub_$ac_func || defined __stub___$ac_func
6754 choke me
6755 #endif
6758 main ()
6760 return $ac_func ();
6762 return 0;
6764 _ACEOF
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (ac_try="$ac_link"
6767 case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_link") 2>conftest.er1
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest$ac_exeext &&
6782 $as_test_x conftest$ac_exeext; then
6783 eval "$as_ac_var=yes"
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 eval "$as_ac_var=no"
6791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6792 conftest$ac_exeext conftest.$ac_ext
6794 ac_res=`eval echo '${'$as_ac_var'}'`
6795 { echo "$as_me:$LINENO: result: $ac_res" >&5
6796 echo "${ECHO_T}$ac_res" >&6; }
6797 if test `eval echo '${'$as_ac_var'}'` = yes; then
6798 cat >>confdefs.h <<_ACEOF
6799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6800 _ACEOF
6803 done
6805 MSGFMT_OPTS=
6806 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
6807 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
6808 cat >conftest.foo <<_ACEOF
6810 msgid ""
6811 msgstr ""
6812 "Content-Type: text/plain; charset=UTF-8\n"
6813 "Project-Id-Version: test 1.0\n"
6814 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
6815 "Last-Translator: test <foo@bar.xx>\n"
6816 "Language-Team: C <LL@li.org>\n"
6817 "MIME-Version: 1.0\n"
6818 "Content-Transfer-Encoding: 8bit\n"
6820 _ACEOF
6821 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
6822 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; then
6826 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
6827 echo "${ECHO_T}yes" >&6; }
6828 else { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6830 echo "$as_me: failed input was:" >&5
6831 sed 's/^/| /' conftest.foo >&5
6834 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6835 set dummy gmsgfmt; ac_word=$2
6836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6838 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 case $GMSGFMT in
6842 [\\/]* | ?:[\\/]*)
6843 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6857 done
6858 done
6859 IFS=$as_save_IFS
6861 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6863 esac
6865 GMSGFMT=$ac_cv_path_GMSGFMT
6866 if test -n "$GMSGFMT"; then
6867 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6868 echo "${ECHO_T}$GMSGFMT" >&6; }
6869 else
6870 { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6875 # Extract the first word of "xgettext", so it can be a program name with args.
6876 set dummy xgettext; ac_word=$2
6877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 case "$XGETTEXT" in
6884 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6888 for ac_dir in $PATH; do
6889 test -z "$ac_dir" && ac_dir=.
6890 if test -f $ac_dir/$ac_word; then
6891 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6892 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6893 break
6896 done
6897 IFS="$ac_save_ifs"
6898 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6900 esac
6902 XGETTEXT="$ac_cv_path_XGETTEXT"
6903 if test "$XGETTEXT" != ":"; then
6904 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6905 echo "${ECHO_T}$XGETTEXT" >&6; }
6906 else
6907 { echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6; }
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6919 main ()
6921 extern int _nl_msg_cat_cntr;
6922 return _nl_msg_cat_cntr
6924 return 0;
6926 _ACEOF
6927 rm -f conftest.$ac_objext conftest$ac_exeext
6928 if { (ac_try="$ac_link"
6929 case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932 esac
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_link") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } && {
6941 test -z "$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 } && test -s conftest$ac_exeext &&
6944 $as_test_x conftest$ac_exeext; then
6945 CATOBJEXT=.gmo
6946 DATADIRNAME=share
6947 else
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 case $host in
6952 *-*-solaris*)
6953 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6954 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6955 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6966 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6968 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char bind_textdomain_codeset (); below.
6970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971 <limits.h> exists even on freestanding compilers. */
6973 #ifdef __STDC__
6974 # include <limits.h>
6975 #else
6976 # include <assert.h>
6977 #endif
6979 #undef bind_textdomain_codeset
6981 /* Override any GCC internal prototype to avoid an error.
6982 Use char because int might match the return type of a GCC
6983 builtin and then its argument prototype would still apply. */
6984 #ifdef __cplusplus
6985 extern "C"
6986 #endif
6987 char bind_textdomain_codeset ();
6988 /* The GNU C library defines this for functions which it implements
6989 to always fail with ENOSYS. Some functions are actually named
6990 something starting with __ and the normal name is an alias. */
6991 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6992 choke me
6993 #endif
6996 main ()
6998 return bind_textdomain_codeset ();
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (ac_try="$ac_link"
7005 case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_link") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest$ac_exeext &&
7020 $as_test_x conftest$ac_exeext; then
7021 ac_cv_func_bind_textdomain_codeset=yes
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7026 ac_cv_func_bind_textdomain_codeset=no
7029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7030 conftest$ac_exeext conftest.$ac_ext
7032 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7033 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7034 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7035 CATOBJEXT=.gmo
7036 DATADIRNAME=share
7037 else
7038 CATOBJEXT=.mo
7039 DATADIRNAME=lib
7044 CATOBJEXT=.mo
7045 DATADIRNAME=lib
7047 esac
7050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7051 conftest$ac_exeext conftest.$ac_ext
7052 LIBS="$glib_save_LIBS"
7053 INSTOBJEXT=.mo
7054 else
7055 gt_cv_have_gettext=no
7063 if test "$gt_cv_have_gettext" = "yes" ; then
7065 cat >>confdefs.h <<\_ACEOF
7066 #define ENABLE_NLS 1
7067 _ACEOF
7071 if test "$XGETTEXT" != ":"; then
7072 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7074 else
7075 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7076 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
7077 XGETTEXT=":"
7081 # We need to process the po/ directory.
7082 POSUB=po
7084 ac_config_commands="$ac_config_commands default-1"
7087 for lang in $ALL_LINGUAS; do
7088 GMOFILES="$GMOFILES $lang.gmo"
7089 POFILES="$POFILES $lang.po"
7090 done
7104 if test "$gt_cv_have_gettext" = "yes"; then
7105 if test "x$ALL_LINGUAS" = "x"; then
7106 LINGUAS=
7107 else
7108 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7109 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
7110 NEW_LINGUAS=
7111 for presentlang in $ALL_LINGUAS; do
7112 useit=no
7113 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7114 desiredlanguages="$LINGUAS"
7115 else
7116 desiredlanguages="$ALL_LINGUAS"
7118 for desiredlang in $desiredlanguages; do
7119 # Use the presentlang catalog if desiredlang is
7120 # a. equal to presentlang, or
7121 # b. a variant of presentlang (because in this case,
7122 # presentlang can be used as a fallback for messages
7123 # which are not translated in the desiredlang catalog).
7124 case "$desiredlang" in
7125 "$presentlang"*) useit=yes;;
7126 esac
7127 done
7128 if test $useit = yes; then
7129 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7131 done
7132 LINGUAS=$NEW_LINGUAS
7133 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
7134 echo "${ECHO_T}$LINGUAS" >&6; }
7137 if test -n "$LINGUAS"; then
7138 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7142 MKINSTALLDIRS=
7143 if test -n "$ac_aux_dir"; then
7144 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7146 if test -z "$MKINSTALLDIRS"; then
7147 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7151 test -d po || mkdir po
7152 if test "x$srcdir" != "x."; then
7153 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7154 posrcprefix="$srcdir/"
7155 else
7156 posrcprefix="../$srcdir/"
7158 else
7159 posrcprefix="../"
7161 rm -f po/POTFILES
7162 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7163 < $srcdir/po/POTFILES.in > po/POTFILES
7166 case "$am__api_version" in
7167 1.01234)
7168 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
7169 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
7170 { (exit 1); exit 1; }; }
7174 esac
7176 if test -n "0.35.0"; then
7177 { echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
7178 echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
7180 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7181 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
7182 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
7184 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7185 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
7186 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7187 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.35.0 or later." >&5
7188 echo "$as_me: error: Your intltool is too old. You need intltool 0.35.0 or later." >&2;}
7189 { (exit 1); exit 1; }; }
7192 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7193 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7194 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7195 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7196 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
7197 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7198 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7199 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7200 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7201 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7202 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7203 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
7204 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7205 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7206 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7207 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7208 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7209 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7230 # Use the tools built into the package, not the ones that are installed.
7231 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7233 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7235 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7238 # Extract the first word of "perl", so it can be a program name with args.
7239 set dummy perl; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 case $INTLTOOL_PERL in
7246 [\\/]* | ?:[\\/]*)
7247 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7261 done
7262 done
7263 IFS=$as_save_IFS
7266 esac
7268 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7269 if test -n "$INTLTOOL_PERL"; then
7270 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7271 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
7272 else
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 if test -z "$INTLTOOL_PERL"; then
7279 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7280 echo "$as_me: error: perl not found; required for intltool" >&2;}
7281 { (exit 1); exit 1; }; }
7283 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7284 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7285 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7286 { (exit 1); exit 1; }; }
7288 if test "x" != "xno-xml"; then
7289 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
7290 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
7291 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
7292 { echo "$as_me:$LINENO: result: ok" >&5
7293 echo "${ECHO_T}ok" >&6; }
7294 else
7295 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
7296 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
7297 { (exit 1); exit 1; }; }
7301 # Extract the first word of "iconv", so it can be a program name with args.
7302 set dummy iconv; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 case $INTLTOOL_ICONV in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7324 done
7325 done
7326 IFS=$as_save_IFS
7328 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
7330 esac
7332 INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
7333 if test -n "$INTLTOOL_ICONV"; then
7334 { echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
7335 echo "${ECHO_T}$INTLTOOL_ICONV" >&6; }
7336 else
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7342 # Extract the first word of "msgfmt", so it can be a program name with args.
7343 set dummy msgfmt; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 case $INTLTOOL_MSGFMT in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7365 done
7366 done
7367 IFS=$as_save_IFS
7369 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
7371 esac
7373 INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
7374 if test -n "$INTLTOOL_MSGFMT"; then
7375 { echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
7376 echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6; }
7377 else
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 # Extract the first word of "msgmerge", so it can be a program name with args.
7384 set dummy msgmerge; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 case $INTLTOOL_MSGMERGE in
7391 [\\/]* | ?:[\\/]*)
7392 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7406 done
7407 done
7408 IFS=$as_save_IFS
7410 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
7412 esac
7414 INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
7415 if test -n "$INTLTOOL_MSGMERGE"; then
7416 { echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
7417 echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6; }
7418 else
7419 { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7424 # Extract the first word of "xgettext", so it can be a program name with args.
7425 set dummy xgettext; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 case $INTLTOOL_XGETTEXT in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7451 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
7453 esac
7455 INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
7456 if test -n "$INTLTOOL_XGETTEXT"; then
7457 { echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
7458 echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6; }
7459 else
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7466 # Substitute ALL_LINGUAS so we can use it in po/Makefile
7469 # Set DATADIRNAME correctly if it is not set yet
7470 # (copied from glib-gettext.m4)
7471 if test -z "$DATADIRNAME"; then
7472 cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h. */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7480 main ()
7482 extern int _nl_msg_cat_cntr;
7483 return _nl_msg_cat_cntr
7485 return 0;
7487 _ACEOF
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (ac_try="$ac_link"
7490 case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_link") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest$ac_exeext &&
7505 $as_test_x conftest$ac_exeext; then
7506 DATADIRNAME=share
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 case $host in
7512 *-*-solaris*)
7513 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7514 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
7515 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7526 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7528 /* System header to define __stub macros and hopefully few prototypes,
7529 which can conflict with char bind_textdomain_codeset (); below.
7530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7531 <limits.h> exists even on freestanding compilers. */
7533 #ifdef __STDC__
7534 # include <limits.h>
7535 #else
7536 # include <assert.h>
7537 #endif
7539 #undef bind_textdomain_codeset
7541 /* Override any GCC internal prototype to avoid an error.
7542 Use char because int might match the return type of a GCC
7543 builtin and then its argument prototype would still apply. */
7544 #ifdef __cplusplus
7545 extern "C"
7546 #endif
7547 char bind_textdomain_codeset ();
7548 /* The GNU C library defines this for functions which it implements
7549 to always fail with ENOSYS. Some functions are actually named
7550 something starting with __ and the normal name is an alias. */
7551 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7552 choke me
7553 #endif
7556 main ()
7558 return bind_textdomain_codeset ();
7560 return 0;
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (ac_try="$ac_link"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_link") 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest$ac_exeext &&
7580 $as_test_x conftest$ac_exeext; then
7581 ac_cv_func_bind_textdomain_codeset=yes
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_cv_func_bind_textdomain_codeset=no
7589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7590 conftest$ac_exeext conftest.$ac_ext
7592 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7593 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7594 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7595 DATADIRNAME=share
7596 else
7597 DATADIRNAME=lib
7602 DATADIRNAME=lib
7604 esac
7607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7608 conftest$ac_exeext conftest.$ac_ext
7615 ac_config_commands="$ac_config_commands intltool"
7622 # Check whether --enable-shared was given.
7623 if test "${enable_shared+set}" = set; then
7624 enableval=$enable_shared; p=${PACKAGE-default}
7625 case $enableval in
7626 yes) enable_shared=yes ;;
7627 no) enable_shared=no ;;
7629 enable_shared=no
7630 # Look at the argument we got. We use all the common list separators.
7631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7632 for pkg in $enableval; do
7633 IFS="$lt_save_ifs"
7634 if test "X$pkg" = "X$p"; then
7635 enable_shared=yes
7637 done
7638 IFS="$lt_save_ifs"
7640 esac
7641 else
7642 enable_shared=yes
7646 # Check whether --enable-static was given.
7647 if test "${enable_static+set}" = set; then
7648 enableval=$enable_static; p=${PACKAGE-default}
7649 case $enableval in
7650 yes) enable_static=yes ;;
7651 no) enable_static=no ;;
7653 enable_static=no
7654 # Look at the argument we got. We use all the common list separators.
7655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7656 for pkg in $enableval; do
7657 IFS="$lt_save_ifs"
7658 if test "X$pkg" = "X$p"; then
7659 enable_static=yes
7661 done
7662 IFS="$lt_save_ifs"
7664 esac
7665 else
7666 enable_static=yes
7670 # Check whether --enable-fast-install was given.
7671 if test "${enable_fast_install+set}" = set; then
7672 enableval=$enable_fast_install; p=${PACKAGE-default}
7673 case $enableval in
7674 yes) enable_fast_install=yes ;;
7675 no) enable_fast_install=no ;;
7677 enable_fast_install=no
7678 # Look at the argument we got. We use all the common list separators.
7679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7680 for pkg in $enableval; do
7681 IFS="$lt_save_ifs"
7682 if test "X$pkg" = "X$p"; then
7683 enable_fast_install=yes
7685 done
7686 IFS="$lt_save_ifs"
7688 esac
7689 else
7690 enable_fast_install=yes
7694 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7695 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7696 if test "${lt_cv_path_SED+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699 # Loop through the user's path and test for sed and gsed.
7700 # Then use that list of sed's as ones to test for truncation.
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for lt_ac_prog in sed gsed; do
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
7709 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7711 done
7712 done
7713 done
7714 IFS=$as_save_IFS
7715 lt_ac_max=0
7716 lt_ac_count=0
7717 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7718 # along with /bin/sed that truncates output.
7719 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7720 test ! -f $lt_ac_sed && continue
7721 cat /dev/null > conftest.in
7722 lt_ac_count=0
7723 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7724 # Check for GNU sed and select it if it is found.
7725 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7726 lt_cv_path_SED=$lt_ac_sed
7727 break
7729 while true; do
7730 cat conftest.in conftest.in >conftest.tmp
7731 mv conftest.tmp conftest.in
7732 cp conftest.in conftest.nl
7733 echo >>conftest.nl
7734 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7735 cmp -s conftest.out conftest.nl || break
7736 # 10000 chars as input seems more than enough
7737 test $lt_ac_count -gt 10 && break
7738 lt_ac_count=`expr $lt_ac_count + 1`
7739 if test $lt_ac_count -gt $lt_ac_max; then
7740 lt_ac_max=$lt_ac_count
7741 lt_cv_path_SED=$lt_ac_sed
7743 done
7744 done
7748 SED=$lt_cv_path_SED
7750 { echo "$as_me:$LINENO: result: $SED" >&5
7751 echo "${ECHO_T}$SED" >&6; }
7754 # Check whether --with-gnu-ld was given.
7755 if test "${with_gnu_ld+set}" = set; then
7756 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7757 else
7758 with_gnu_ld=no
7761 ac_prog=ld
7762 if test "$GCC" = yes; then
7763 # Check if gcc -print-prog-name=ld gives a path.
7764 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7765 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7766 case $host in
7767 *-*-mingw*)
7768 # gcc leaves a trailing carriage return which upsets mingw
7769 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7771 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7772 esac
7773 case $ac_prog in
7774 # Accept absolute paths.
7775 [\\/]* | ?:[\\/]*)
7776 re_direlt='/[^/][^/]*/\.\./'
7777 # Canonicalize the pathname of ld
7778 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7779 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7780 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7781 done
7782 test -z "$LD" && LD="$ac_prog"
7785 # If it fails, then pretend we aren't using GCC.
7786 ac_prog=ld
7789 # If it is relative, then search for the first ld in PATH.
7790 with_gnu_ld=unknown
7792 esac
7793 elif test "$with_gnu_ld" = yes; then
7794 { echo "$as_me:$LINENO: checking for GNU ld" >&5
7795 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7796 else
7797 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7798 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7800 if test "${lt_cv_path_LD+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803 if test -z "$LD"; then
7804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7805 for ac_dir in $PATH; do
7806 IFS="$lt_save_ifs"
7807 test -z "$ac_dir" && ac_dir=.
7808 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7809 lt_cv_path_LD="$ac_dir/$ac_prog"
7810 # Check to see if the program is GNU ld. I'd rather use --version,
7811 # but apparently some variants of GNU ld only accept -v.
7812 # Break only if it was the GNU/non-GNU ld that we prefer.
7813 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7814 *GNU* | *'with BFD'*)
7815 test "$with_gnu_ld" != no && break
7818 test "$with_gnu_ld" != yes && break
7820 esac
7822 done
7823 IFS="$lt_save_ifs"
7824 else
7825 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7829 LD="$lt_cv_path_LD"
7830 if test -n "$LD"; then
7831 { echo "$as_me:$LINENO: result: $LD" >&5
7832 echo "${ECHO_T}$LD" >&6; }
7833 else
7834 { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7837 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7838 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7839 { (exit 1); exit 1; }; }
7840 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7841 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7842 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7846 case `$LD -v 2>&1 </dev/null` in
7847 *GNU* | *'with BFD'*)
7848 lt_cv_prog_gnu_ld=yes
7851 lt_cv_prog_gnu_ld=no
7853 esac
7855 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7856 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
7857 with_gnu_ld=$lt_cv_prog_gnu_ld
7860 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7861 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
7862 if test "${lt_cv_ld_reload_flag+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 lt_cv_ld_reload_flag='-r'
7867 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7868 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
7869 reload_flag=$lt_cv_ld_reload_flag
7870 case $reload_flag in
7871 "" | " "*) ;;
7872 *) reload_flag=" $reload_flag" ;;
7873 esac
7874 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7875 case $host_os in
7876 darwin*)
7877 if test "$GCC" = yes; then
7878 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7879 else
7880 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7883 esac
7885 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7886 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
7887 if test "${lt_cv_path_NM+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 if test -n "$NM"; then
7891 # Let the user override the test.
7892 lt_cv_path_NM="$NM"
7893 else
7894 lt_nm_to_check="${ac_tool_prefix}nm"
7895 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7896 lt_nm_to_check="$lt_nm_to_check nm"
7898 for lt_tmp_nm in $lt_nm_to_check; do
7899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7900 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7901 IFS="$lt_save_ifs"
7902 test -z "$ac_dir" && ac_dir=.
7903 tmp_nm="$ac_dir/$lt_tmp_nm"
7904 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7905 # Check to see if the nm accepts a BSD-compat flag.
7906 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7907 # nm: unknown option "B" ignored
7908 # Tru64's nm complains that /dev/null is an invalid object file
7909 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7910 */dev/null* | *'Invalid file or object type'*)
7911 lt_cv_path_NM="$tmp_nm -B"
7912 break
7915 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7916 */dev/null*)
7917 lt_cv_path_NM="$tmp_nm -p"
7918 break
7921 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7922 continue # so that we can try to find one that supports BSD flags
7924 esac
7926 esac
7928 done
7929 IFS="$lt_save_ifs"
7930 done
7931 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7934 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7935 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
7936 NM="$lt_cv_path_NM"
7938 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7939 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7940 LN_S=$as_ln_s
7941 if test "$LN_S" = "ln -s"; then
7942 { echo "$as_me:$LINENO: result: yes" >&5
7943 echo "${ECHO_T}yes" >&6; }
7944 else
7945 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7946 echo "${ECHO_T}no, using $LN_S" >&6; }
7949 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7950 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
7951 if test "${lt_cv_deplibs_check_method+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 lt_cv_file_magic_cmd='$MAGIC_CMD'
7955 lt_cv_file_magic_test_file=
7956 lt_cv_deplibs_check_method='unknown'
7957 # Need to set the preceding variable on all platforms that support
7958 # interlibrary dependencies.
7959 # 'none' -- dependencies not supported.
7960 # `unknown' -- same as none, but documents that we really don't know.
7961 # 'pass_all' -- all dependencies passed with no checks.
7962 # 'test_compile' -- check by making test program.
7963 # 'file_magic [[regex]]' -- check by looking for files in library path
7964 # which responds to the $file_magic_cmd with a given extended regex.
7965 # If you have `file' or equivalent on your system and you're not sure
7966 # whether `pass_all' will *always* work, you probably want this one.
7968 case $host_os in
7969 aix4* | aix5*)
7970 lt_cv_deplibs_check_method=pass_all
7973 beos*)
7974 lt_cv_deplibs_check_method=pass_all
7977 bsdi[45]*)
7978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7979 lt_cv_file_magic_cmd='/usr/bin/file -L'
7980 lt_cv_file_magic_test_file=/shlib/libc.so
7983 cygwin*)
7984 # func_win32_libid is a shell function defined in ltmain.sh
7985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7986 lt_cv_file_magic_cmd='func_win32_libid'
7989 mingw* | pw32*)
7990 # Base MSYS/MinGW do not provide the 'file' command needed by
7991 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7992 # unless we find 'file', for example because we are cross-compiling.
7993 if ( file / ) >/dev/null 2>&1; then
7994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7995 lt_cv_file_magic_cmd='func_win32_libid'
7996 else
7997 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7998 lt_cv_file_magic_cmd='$OBJDUMP -f'
8002 darwin* | rhapsody*)
8003 lt_cv_deplibs_check_method=pass_all
8006 freebsd* | dragonfly*)
8007 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8008 case $host_cpu in
8009 i*86 )
8010 # Not sure whether the presence of OpenBSD here was a mistake.
8011 # Let's accept both of them until this is cleared up.
8012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8013 lt_cv_file_magic_cmd=/usr/bin/file
8014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8016 esac
8017 else
8018 lt_cv_deplibs_check_method=pass_all
8022 gnu*)
8023 lt_cv_deplibs_check_method=pass_all
8026 hpux10.20* | hpux11*)
8027 lt_cv_file_magic_cmd=/usr/bin/file
8028 case $host_cpu in
8029 ia64*)
8030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8033 hppa*64*)
8034 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]'
8035 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8039 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8041 esac
8044 interix[3-9]*)
8045 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8049 irix5* | irix6* | nonstopux*)
8050 case $LD in
8051 *-32|*"-32 ") libmagic=32-bit;;
8052 *-n32|*"-n32 ") libmagic=N32;;
8053 *-64|*"-64 ") libmagic=64-bit;;
8054 *) libmagic=never-match;;
8055 esac
8056 lt_cv_deplibs_check_method=pass_all
8059 # This must be Linux ELF.
8060 linux* | k*bsd*-gnu)
8061 lt_cv_deplibs_check_method=pass_all
8064 netbsd*)
8065 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8067 else
8068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8072 newos6*)
8073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8074 lt_cv_file_magic_cmd=/usr/bin/file
8075 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8078 nto-qnx*)
8079 lt_cv_deplibs_check_method=unknown
8082 openbsd*)
8083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8085 else
8086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8090 osf3* | osf4* | osf5*)
8091 lt_cv_deplibs_check_method=pass_all
8094 rdos*)
8095 lt_cv_deplibs_check_method=pass_all
8098 solaris*)
8099 lt_cv_deplibs_check_method=pass_all
8102 sysv4 | sysv4.3*)
8103 case $host_vendor in
8104 motorola)
8105 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]'
8106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8108 ncr)
8109 lt_cv_deplibs_check_method=pass_all
8111 sequent)
8112 lt_cv_file_magic_cmd='/bin/file'
8113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8115 sni)
8116 lt_cv_file_magic_cmd='/bin/file'
8117 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8118 lt_cv_file_magic_test_file=/lib/libc.so
8120 siemens)
8121 lt_cv_deplibs_check_method=pass_all
8124 lt_cv_deplibs_check_method=pass_all
8126 esac
8129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8130 lt_cv_deplibs_check_method=pass_all
8132 esac
8135 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8136 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8137 file_magic_cmd=$lt_cv_file_magic_cmd
8138 deplibs_check_method=$lt_cv_deplibs_check_method
8139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8144 # If no C compiler was specified, use CC.
8145 LTCC=${LTCC-"$CC"}
8147 # If no C compiler flags were specified, use CFLAGS.
8148 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8150 # Allow CC to be a program name with arguments.
8151 compiler=$CC
8153 # Check whether --enable-libtool-lock was given.
8154 if test "${enable_libtool_lock+set}" = set; then
8155 enableval=$enable_libtool_lock;
8158 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8160 # Some flags need to be propagated to the compiler or linker for good
8161 # libtool support.
8162 case $host in
8163 ia64-*-hpux*)
8164 # Find out which ABI we are using.
8165 echo 'int i;' > conftest.$ac_ext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8167 (eval $ac_compile) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; then
8171 case `/usr/bin/file conftest.$ac_objext` in
8172 *ELF-32*)
8173 HPUX_IA64_MODE="32"
8175 *ELF-64*)
8176 HPUX_IA64_MODE="64"
8178 esac
8180 rm -rf conftest*
8182 *-*-irix6*)
8183 # Find out which ABI we are using.
8184 echo '#line 8184 "configure"' > conftest.$ac_ext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; then
8190 if test "$lt_cv_prog_gnu_ld" = yes; then
8191 case `/usr/bin/file conftest.$ac_objext` in
8192 *32-bit*)
8193 LD="${LD-ld} -melf32bsmip"
8195 *N32*)
8196 LD="${LD-ld} -melf32bmipn32"
8198 *64-bit*)
8199 LD="${LD-ld} -melf64bmip"
8201 esac
8202 else
8203 case `/usr/bin/file conftest.$ac_objext` in
8204 *32-bit*)
8205 LD="${LD-ld} -32"
8207 *N32*)
8208 LD="${LD-ld} -n32"
8210 *64-bit*)
8211 LD="${LD-ld} -64"
8213 esac
8216 rm -rf conftest*
8219 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8220 s390*-*linux*|sparc*-*linux*)
8221 # Find out which ABI we are using.
8222 echo 'int i;' > conftest.$ac_ext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8224 (eval $ac_compile) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; then
8228 case `/usr/bin/file conftest.o` in
8229 *32-bit*)
8230 case $host in
8231 x86_64-*kfreebsd*-gnu)
8232 LD="${LD-ld} -m elf_i386_fbsd"
8234 x86_64-*linux*)
8235 LD="${LD-ld} -m elf_i386"
8237 ppc64-*linux*|powerpc64-*linux*)
8238 LD="${LD-ld} -m elf32ppclinux"
8240 s390x-*linux*)
8241 LD="${LD-ld} -m elf_s390"
8243 sparc64-*linux*)
8244 LD="${LD-ld} -m elf32_sparc"
8246 esac
8248 *64-bit*)
8249 case $host in
8250 x86_64-*kfreebsd*-gnu)
8251 LD="${LD-ld} -m elf_x86_64_fbsd"
8253 x86_64-*linux*)
8254 LD="${LD-ld} -m elf_x86_64"
8256 ppc*-*linux*|powerpc*-*linux*)
8257 LD="${LD-ld} -m elf64ppc"
8259 s390*-*linux*)
8260 LD="${LD-ld} -m elf64_s390"
8262 sparc*-*linux*)
8263 LD="${LD-ld} -m elf64_sparc"
8265 esac
8267 esac
8269 rm -rf conftest*
8272 *-*-sco3.2v5*)
8273 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8274 SAVE_CFLAGS="$CFLAGS"
8275 CFLAGS="$CFLAGS -belf"
8276 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8277 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8278 if test "${lt_cv_cc_needs_belf+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281 ac_ext=c
8282 ac_cpp='$CPP $CPPFLAGS'
8283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8295 main ()
8299 return 0;
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8304 case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_link") 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest$ac_exeext &&
8319 $as_test_x conftest$ac_exeext; then
8320 lt_cv_cc_needs_belf=yes
8321 else
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 lt_cv_cc_needs_belf=no
8328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8329 conftest$ac_exeext conftest.$ac_ext
8330 ac_ext=c
8331 ac_cpp='$CPP $CPPFLAGS'
8332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8337 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8338 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8339 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8340 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8341 CFLAGS="$SAVE_CFLAGS"
8344 sparc*-*solaris*)
8345 # Find out which ABI we are using.
8346 echo 'int i;' > conftest.$ac_ext
8347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8348 (eval $ac_compile) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; then
8352 case `/usr/bin/file conftest.o` in
8353 *64-bit*)
8354 case $lt_cv_prog_gnu_ld in
8355 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8356 *) LD="${LD-ld} -64" ;;
8357 esac
8359 esac
8361 rm -rf conftest*
8365 esac
8367 need_locks="$enable_libtool_lock"
8371 for ac_header in dlfcn.h
8373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 ac_res=`eval echo '${'$as_ac_Header'}'`
8381 { echo "$as_me:$LINENO: result: $ac_res" >&5
8382 echo "${ECHO_T}$ac_res" >&6; }
8383 else
8384 # Is the header compilable?
8385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #include <$ac_header>
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (ac_try="$ac_compile"
8398 case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_compile") 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest.$ac_objext; then
8413 ac_header_compiler=yes
8414 else
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_header_compiler=no
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8423 echo "${ECHO_T}$ac_header_compiler" >&6; }
8425 # Is the header present?
8426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h. */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 #include <$ac_header>
8435 _ACEOF
8436 if { (ac_try="$ac_cpp conftest.$ac_ext"
8437 case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } >/dev/null && {
8449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 }; then
8452 ac_header_preproc=yes
8453 else
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.$ac_ext >&5
8457 ac_header_preproc=no
8460 rm -f conftest.err conftest.$ac_ext
8461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462 echo "${ECHO_T}$ac_header_preproc" >&6; }
8464 # So? What about this header?
8465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8466 yes:no: )
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8471 ac_header_preproc=yes
8473 no:yes:* )
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8488 esac
8489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494 eval "$as_ac_Header=\$ac_header_preproc"
8496 ac_res=`eval echo '${'$as_ac_Header'}'`
8497 { echo "$as_me:$LINENO: result: $ac_res" >&5
8498 echo "${ECHO_T}$ac_res" >&6; }
8501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504 _ACEOF
8508 done
8512 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8513 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8514 (test "X$CXX" != "Xg++"))) ; then
8515 ac_ext=cpp
8516 ac_cpp='$CXXCPP $CPPFLAGS'
8517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8520 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8521 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8522 if test -z "$CXXCPP"; then
8523 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526 # Double quotes because CXXCPP needs to be expanded
8527 for CXXCPP in "$CXX -E" "/lib/cpp"
8529 ac_preproc_ok=false
8530 for ac_cxx_preproc_warn_flag in '' yes
8532 # Use a header file that comes with gcc, so configuring glibc
8533 # with a fresh cross-compiler works.
8534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8535 # <limits.h> exists even on freestanding compilers.
8536 # On the NeXT, cc -E runs the code through the compiler's parser,
8537 # not just through cpp. "Syntax error" is here to catch this case.
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 #ifdef __STDC__
8545 # include <limits.h>
8546 #else
8547 # include <assert.h>
8548 #endif
8549 Syntax error
8550 _ACEOF
8551 if { (ac_try="$ac_cpp conftest.$ac_ext"
8552 case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555 esac
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8558 ac_status=$?
8559 grep -v '^ *+' conftest.er1 >conftest.err
8560 rm -f conftest.er1
8561 cat conftest.err >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } >/dev/null && {
8564 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8565 test ! -s conftest.err
8566 }; then
8568 else
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 # Broken: fails on valid input.
8573 continue
8576 rm -f conftest.err conftest.$ac_ext
8578 # OK, works on sane cases. Now check whether nonexistent headers
8579 # can be detected and how.
8580 cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h. */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 #include <ac_nonexistent.h>
8587 _ACEOF
8588 if { (ac_try="$ac_cpp conftest.$ac_ext"
8589 case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8595 ac_status=$?
8596 grep -v '^ *+' conftest.er1 >conftest.err
8597 rm -f conftest.er1
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } >/dev/null && {
8601 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8602 test ! -s conftest.err
8603 }; then
8604 # Broken: success on invalid input.
8605 continue
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 # Passes both tests.
8611 ac_preproc_ok=:
8612 break
8615 rm -f conftest.err conftest.$ac_ext
8617 done
8618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8619 rm -f conftest.err conftest.$ac_ext
8620 if $ac_preproc_ok; then
8621 break
8624 done
8625 ac_cv_prog_CXXCPP=$CXXCPP
8628 CXXCPP=$ac_cv_prog_CXXCPP
8629 else
8630 ac_cv_prog_CXXCPP=$CXXCPP
8632 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8633 echo "${ECHO_T}$CXXCPP" >&6; }
8634 ac_preproc_ok=false
8635 for ac_cxx_preproc_warn_flag in '' yes
8637 # Use a header file that comes with gcc, so configuring glibc
8638 # with a fresh cross-compiler works.
8639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8640 # <limits.h> exists even on freestanding compilers.
8641 # On the NeXT, cc -E runs the code through the compiler's parser,
8642 # not just through cpp. "Syntax error" is here to catch this case.
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #ifdef __STDC__
8650 # include <limits.h>
8651 #else
8652 # include <assert.h>
8653 #endif
8654 Syntax error
8655 _ACEOF
8656 if { (ac_try="$ac_cpp conftest.$ac_ext"
8657 case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660 esac
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8663 ac_status=$?
8664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } >/dev/null && {
8669 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8670 test ! -s conftest.err
8671 }; then
8673 else
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 # Broken: fails on valid input.
8678 continue
8681 rm -f conftest.err conftest.$ac_ext
8683 # OK, works on sane cases. Now check whether nonexistent headers
8684 # can be detected and how.
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h. */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691 #include <ac_nonexistent.h>
8692 _ACEOF
8693 if { (ac_try="$ac_cpp conftest.$ac_ext"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } >/dev/null && {
8706 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8707 test ! -s conftest.err
8708 }; then
8709 # Broken: success on invalid input.
8710 continue
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 # Passes both tests.
8716 ac_preproc_ok=:
8717 break
8720 rm -f conftest.err conftest.$ac_ext
8722 done
8723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8724 rm -f conftest.err conftest.$ac_ext
8725 if $ac_preproc_ok; then
8727 else
8728 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8729 See \`config.log' for more details." >&5
8730 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8731 See \`config.log' for more details." >&2;}
8732 { (exit 1); exit 1; }; }
8735 ac_ext=cpp
8736 ac_cpp='$CXXCPP $CPPFLAGS'
8737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8744 ac_ext=f
8745 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8746 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8747 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8748 if test -n "$ac_tool_prefix"; then
8749 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
8751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8755 if test "${ac_cv_prog_F77+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 if test -n "$F77"; then
8759 ac_cv_prog_F77="$F77" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8774 IFS=$as_save_IFS
8778 F77=$ac_cv_prog_F77
8779 if test -n "$F77"; then
8780 { echo "$as_me:$LINENO: result: $F77" >&5
8781 echo "${ECHO_T}$F77" >&6; }
8782 else
8783 { echo "$as_me:$LINENO: result: no" >&5
8784 echo "${ECHO_T}no" >&6; }
8788 test -n "$F77" && break
8789 done
8791 if test -z "$F77"; then
8792 ac_ct_F77=$F77
8793 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
8795 # Extract the first word of "$ac_prog", so it can be a program name with args.
8796 set dummy $ac_prog; ac_word=$2
8797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8799 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 else
8802 if test -n "$ac_ct_F77"; then
8803 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8804 else
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806 for as_dir in $PATH
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812 ac_cv_prog_ac_ct_F77="$ac_prog"
8813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8816 done
8817 done
8818 IFS=$as_save_IFS
8822 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8823 if test -n "$ac_ct_F77"; then
8824 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8825 echo "${ECHO_T}$ac_ct_F77" >&6; }
8826 else
8827 { echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6; }
8832 test -n "$ac_ct_F77" && break
8833 done
8835 if test "x$ac_ct_F77" = x; then
8836 F77=""
8837 else
8838 case $cross_compiling:$ac_tool_warned in
8839 yes:)
8840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8841 whose name does not start with the host triplet. If you think this
8842 configuration is useful to you, please write to autoconf@gnu.org." >&5
8843 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8844 whose name does not start with the host triplet. If you think this
8845 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8846 ac_tool_warned=yes ;;
8847 esac
8848 F77=$ac_ct_F77
8853 # Provide some information about the compiler.
8854 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8855 ac_compiler=`set X $ac_compile; echo $2`
8856 { (ac_try="$ac_compiler --version >&5"
8857 case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_compiler --version >&5") 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }
8866 { (ac_try="$ac_compiler -v >&5"
8867 case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_compiler -v >&5") 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }
8876 { (ac_try="$ac_compiler -V >&5"
8877 case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compiler -V >&5") 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }
8886 rm -f a.out
8888 # If we don't use `.F' as extension, the preprocessor is not run on the
8889 # input file. (Note that this only needs to work for GNU compilers.)
8890 ac_save_ext=$ac_ext
8891 ac_ext=F
8892 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8893 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8894 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897 cat >conftest.$ac_ext <<_ACEOF
8898 program main
8899 #ifndef __GNUC__
8900 choke me
8901 #endif
8904 _ACEOF
8905 rm -f conftest.$ac_objext
8906 if { (ac_try="$ac_compile"
8907 case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8910 esac
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_compile") 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_f77_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest.$ac_objext; then
8922 ac_compiler_gnu=yes
8923 else
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_compiler_gnu=no
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8934 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8935 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
8936 ac_ext=$ac_save_ext
8937 ac_test_FFLAGS=${FFLAGS+set}
8938 ac_save_FFLAGS=$FFLAGS
8939 FFLAGS=
8940 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8941 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
8942 if test "${ac_cv_prog_f77_g+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 FFLAGS=-g
8946 cat >conftest.$ac_ext <<_ACEOF
8947 program main
8950 _ACEOF
8951 rm -f conftest.$ac_objext
8952 if { (ac_try="$ac_compile"
8953 case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_compile") 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && {
8965 test -z "$ac_f77_werror_flag" ||
8966 test ! -s conftest.err
8967 } && test -s conftest.$ac_objext; then
8968 ac_cv_prog_f77_g=yes
8969 else
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_cv_prog_f77_g=no
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8980 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
8981 if test "$ac_test_FFLAGS" = set; then
8982 FFLAGS=$ac_save_FFLAGS
8983 elif test $ac_cv_prog_f77_g = yes; then
8984 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8985 FFLAGS="-g -O2"
8986 else
8987 FFLAGS="-g"
8989 else
8990 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8991 FFLAGS="-O2"
8992 else
8993 FFLAGS=
8997 G77=`test $ac_compiler_gnu = yes && echo yes`
8998 ac_ext=c
8999 ac_cpp='$CPP $CPPFLAGS'
9000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9006 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9008 # find the maximum length of command line arguments
9009 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9010 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
9011 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9015 teststring="ABCD"
9017 case $build_os in
9018 msdosdjgpp*)
9019 # On DJGPP, this test can blow up pretty badly due to problems in libc
9020 # (any single argument exceeding 2000 bytes causes a buffer overrun
9021 # during glob expansion). Even if it were fixed, the result of this
9022 # check would be larger than it should be.
9023 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9026 gnu*)
9027 # Under GNU Hurd, this test is not required because there is
9028 # no limit to the length of command line arguments.
9029 # Libtool will interpret -1 as no limit whatsoever
9030 lt_cv_sys_max_cmd_len=-1;
9033 cygwin* | mingw*)
9034 # On Win9x/ME, this test blows up -- it succeeds, but takes
9035 # about 5 minutes as the teststring grows exponentially.
9036 # Worse, since 9x/ME are not pre-emptively multitasking,
9037 # you end up with a "frozen" computer, even though with patience
9038 # the test eventually succeeds (with a max line length of 256k).
9039 # Instead, let's just punt: use the minimum linelength reported by
9040 # all of the supported platforms: 8192 (on NT/2K/XP).
9041 lt_cv_sys_max_cmd_len=8192;
9044 amigaos*)
9045 # On AmigaOS with pdksh, this test takes hours, literally.
9046 # So we just punt and use a minimum line length of 8192.
9047 lt_cv_sys_max_cmd_len=8192;
9050 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9051 # This has been around since 386BSD, at least. Likely further.
9052 if test -x /sbin/sysctl; then
9053 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9054 elif test -x /usr/sbin/sysctl; then
9055 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9056 else
9057 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9059 # And add a safety zone
9060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9064 interix*)
9065 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9066 lt_cv_sys_max_cmd_len=196608
9069 osf*)
9070 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9071 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9072 # nice to cause kernel panics so lets avoid the loop below.
9073 # First set a reasonable default.
9074 lt_cv_sys_max_cmd_len=16384
9076 if test -x /sbin/sysconfig; then
9077 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9078 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9079 esac
9082 sco3.2v5*)
9083 lt_cv_sys_max_cmd_len=102400
9085 sysv5* | sco5v6* | sysv4.2uw2*)
9086 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9087 if test -n "$kargmax"; then
9088 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9089 else
9090 lt_cv_sys_max_cmd_len=32768
9094 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9095 if test -n "$lt_cv_sys_max_cmd_len"; then
9096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9098 else
9099 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9100 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9101 = "XX$teststring") >/dev/null 2>&1 &&
9102 new_result=`expr "X$teststring" : ".*" 2>&1` &&
9103 lt_cv_sys_max_cmd_len=$new_result &&
9104 test $i != 17 # 1/2 MB should be enough
9106 i=`expr $i + 1`
9107 teststring=$teststring$teststring
9108 done
9109 teststring=
9110 # Add a significant safety factor because C++ compilers can tack on massive
9111 # amounts of additional arguments before passing them to the linker.
9112 # It appears as though 1/2 is a usable value.
9113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9116 esac
9120 if test -n $lt_cv_sys_max_cmd_len ; then
9121 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9122 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9123 else
9124 { echo "$as_me:$LINENO: result: none" >&5
9125 echo "${ECHO_T}none" >&6; }
9132 # Check for command to grab the raw symbol name followed by C symbol from nm.
9133 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9134 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9135 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9139 # These are sane defaults that work on at least a few old systems.
9140 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9142 # Character class describing NM global symbol codes.
9143 symcode='[BCDEGRST]'
9145 # Regexp to match symbols that can be accessed directly from C.
9146 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9148 # Transform an extracted symbol line into a proper C declaration
9149 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9151 # Transform an extracted symbol line into symbol name and symbol address
9152 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'"
9154 # Define system-specific variables.
9155 case $host_os in
9156 aix*)
9157 symcode='[BCDT]'
9159 cygwin* | mingw* | pw32*)
9160 symcode='[ABCDGISTW]'
9162 hpux*) # Its linker distinguishes data from code symbols
9163 if test "$host_cpu" = ia64; then
9164 symcode='[ABCDEGRST]'
9166 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9167 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'"
9169 linux* | k*bsd*-gnu)
9170 if test "$host_cpu" = ia64; then
9171 symcode='[ABCDGIRSTW]'
9172 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9173 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'"
9176 irix* | nonstopux*)
9177 symcode='[BCDEGRST]'
9179 osf*)
9180 symcode='[BCDEGQRST]'
9182 solaris*)
9183 symcode='[BDRT]'
9185 sco3.2v5*)
9186 symcode='[DT]'
9188 sysv4.2uw2*)
9189 symcode='[DT]'
9191 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9192 symcode='[ABDT]'
9194 sysv4)
9195 symcode='[DFNSTU]'
9197 esac
9199 # Handle CRLF in mingw tool chain
9200 opt_cr=
9201 case $build_os in
9202 mingw*)
9203 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9205 esac
9207 # If we're using GNU nm, then use its standard symbol codes.
9208 case `$NM -V 2>&1` in
9209 *GNU* | *'with BFD'*)
9210 symcode='[ABCDGIRSTW]' ;;
9211 esac
9213 # Try without a prefix undercore, then with it.
9214 for ac_symprfx in "" "_"; do
9216 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9217 symxfrm="\\1 $ac_symprfx\\2 \\2"
9219 # Write the raw and C identifiers.
9220 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9222 # Check to see that the pipe works correctly.
9223 pipe_works=no
9225 rm -f conftest*
9226 cat > conftest.$ac_ext <<EOF
9227 #ifdef __cplusplus
9228 extern "C" {
9229 #endif
9230 char nm_test_var;
9231 void nm_test_func(){}
9232 #ifdef __cplusplus
9234 #endif
9235 int main(){nm_test_var='a';nm_test_func();return(0);}
9238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9239 (eval $ac_compile) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; then
9243 # Now try to grab the symbols.
9244 nlist=conftest.nm
9245 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9246 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } && test -s "$nlist"; then
9250 # Try sorting and uniquifying the output.
9251 if sort "$nlist" | uniq > "$nlist"T; then
9252 mv -f "$nlist"T "$nlist"
9253 else
9254 rm -f "$nlist"T
9257 # Make sure that we snagged all the symbols we need.
9258 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9259 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9260 cat <<EOF > conftest.$ac_ext
9261 #ifdef __cplusplus
9262 extern "C" {
9263 #endif
9266 # Now generate the symbol file.
9267 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9269 cat <<EOF >> conftest.$ac_ext
9270 #if defined (__STDC__) && __STDC__
9271 # define lt_ptr_t void *
9272 #else
9273 # define lt_ptr_t char *
9274 # define const
9275 #endif
9277 /* The mapping between symbol names and symbols. */
9278 const struct {
9279 const char *name;
9280 lt_ptr_t address;
9282 lt_preloaded_symbols[] =
9285 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9286 cat <<\EOF >> conftest.$ac_ext
9287 {0, (lt_ptr_t) 0}
9290 #ifdef __cplusplus
9292 #endif
9294 # Now try linking the two files.
9295 mv conftest.$ac_objext conftstm.$ac_objext
9296 lt_save_LIBS="$LIBS"
9297 lt_save_CFLAGS="$CFLAGS"
9298 LIBS="conftstm.$ac_objext"
9299 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9305 pipe_works=yes
9307 LIBS="$lt_save_LIBS"
9308 CFLAGS="$lt_save_CFLAGS"
9309 else
9310 echo "cannot find nm_test_func in $nlist" >&5
9312 else
9313 echo "cannot find nm_test_var in $nlist" >&5
9315 else
9316 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9318 else
9319 echo "$progname: failed program was:" >&5
9320 cat conftest.$ac_ext >&5
9322 rm -f conftest* conftst*
9324 # Do not use the global_symbol_pipe unless it works.
9325 if test "$pipe_works" = yes; then
9326 break
9327 else
9328 lt_cv_sys_global_symbol_pipe=
9330 done
9334 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9335 lt_cv_sys_global_symbol_to_cdecl=
9337 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9338 { echo "$as_me:$LINENO: result: failed" >&5
9339 echo "${ECHO_T}failed" >&6; }
9340 else
9341 { echo "$as_me:$LINENO: result: ok" >&5
9342 echo "${ECHO_T}ok" >&6; }
9345 { echo "$as_me:$LINENO: checking for objdir" >&5
9346 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9347 if test "${lt_cv_objdir+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 rm -f .libs 2>/dev/null
9351 mkdir .libs 2>/dev/null
9352 if test -d .libs; then
9353 lt_cv_objdir=.libs
9354 else
9355 # MS-DOS does not allow filenames that begin with a dot.
9356 lt_cv_objdir=_libs
9358 rmdir .libs 2>/dev/null
9360 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9361 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9362 objdir=$lt_cv_objdir
9368 case $host_os in
9369 aix3*)
9370 # AIX sometimes has problems with the GCC collect2 program. For some
9371 # reason, if we set the COLLECT_NAMES environment variable, the problems
9372 # vanish in a puff of smoke.
9373 if test "X${COLLECT_NAMES+set}" != Xset; then
9374 COLLECT_NAMES=
9375 export COLLECT_NAMES
9378 esac
9380 # Sed substitution that helps us do robust quoting. It backslashifies
9381 # metacharacters that are still active within double-quoted strings.
9382 Xsed='sed -e 1s/^X//'
9383 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9385 # Same as above, but do not quote variable references.
9386 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9388 # Sed substitution to delay expansion of an escaped shell variable in a
9389 # double_quote_subst'ed string.
9390 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9392 # Sed substitution to avoid accidental globbing in evaled expressions
9393 no_glob_subst='s/\*/\\\*/g'
9395 # Constants:
9396 rm="rm -f"
9398 # Global variables:
9399 default_ofile=libtool
9400 can_build_shared=yes
9402 # All known linkers require a `.a' archive for static linking (except MSVC,
9403 # which needs '.lib').
9404 libext=a
9405 ltmain="$ac_aux_dir/ltmain.sh"
9406 ofile="$default_ofile"
9407 with_gnu_ld="$lt_cv_prog_gnu_ld"
9409 if test -n "$ac_tool_prefix"; then
9410 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9411 set dummy ${ac_tool_prefix}ar; ac_word=$2
9412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9414 if test "${ac_cv_prog_AR+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417 if test -n "$AR"; then
9418 ac_cv_prog_AR="$AR" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9427 ac_cv_prog_AR="${ac_tool_prefix}ar"
9428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9431 done
9432 done
9433 IFS=$as_save_IFS
9437 AR=$ac_cv_prog_AR
9438 if test -n "$AR"; then
9439 { echo "$as_me:$LINENO: result: $AR" >&5
9440 echo "${ECHO_T}$AR" >&6; }
9441 else
9442 { echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6; }
9448 if test -z "$ac_cv_prog_AR"; then
9449 ac_ct_AR=$AR
9450 # Extract the first word of "ar", so it can be a program name with args.
9451 set dummy ar; ac_word=$2
9452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9454 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457 if test -n "$ac_ct_AR"; then
9458 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9459 else
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9463 IFS=$as_save_IFS
9464 test -z "$as_dir" && as_dir=.
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9467 ac_cv_prog_ac_ct_AR="ar"
9468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9469 break 2
9471 done
9472 done
9473 IFS=$as_save_IFS
9477 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9478 if test -n "$ac_ct_AR"; then
9479 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9480 echo "${ECHO_T}$ac_ct_AR" >&6; }
9481 else
9482 { echo "$as_me:$LINENO: result: no" >&5
9483 echo "${ECHO_T}no" >&6; }
9486 if test "x$ac_ct_AR" = x; then
9487 AR="false"
9488 else
9489 case $cross_compiling:$ac_tool_warned in
9490 yes:)
9491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9492 whose name does not start with the host triplet. If you think this
9493 configuration is useful to you, please write to autoconf@gnu.org." >&5
9494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9495 whose name does not start with the host triplet. If you think this
9496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9497 ac_tool_warned=yes ;;
9498 esac
9499 AR=$ac_ct_AR
9501 else
9502 AR="$ac_cv_prog_AR"
9505 if test -n "$ac_tool_prefix"; then
9506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9507 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9510 if test "${ac_cv_prog_RANLIB+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513 if test -n "$RANLIB"; then
9514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9515 else
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 break 2
9527 done
9528 done
9529 IFS=$as_save_IFS
9533 RANLIB=$ac_cv_prog_RANLIB
9534 if test -n "$RANLIB"; then
9535 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9536 echo "${ECHO_T}$RANLIB" >&6; }
9537 else
9538 { echo "$as_me:$LINENO: result: no" >&5
9539 echo "${ECHO_T}no" >&6; }
9544 if test -z "$ac_cv_prog_RANLIB"; then
9545 ac_ct_RANLIB=$RANLIB
9546 # Extract the first word of "ranlib", so it can be a program name with args.
9547 set dummy ranlib; ac_word=$2
9548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9550 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 if test -n "$ac_ct_RANLIB"; then
9554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9555 else
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_prog_ac_ct_RANLIB="ranlib"
9564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9567 done
9568 done
9569 IFS=$as_save_IFS
9573 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9574 if test -n "$ac_ct_RANLIB"; then
9575 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9576 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9577 else
9578 { echo "$as_me:$LINENO: result: no" >&5
9579 echo "${ECHO_T}no" >&6; }
9582 if test "x$ac_ct_RANLIB" = x; then
9583 RANLIB=":"
9584 else
9585 case $cross_compiling:$ac_tool_warned in
9586 yes:)
9587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9588 whose name does not start with the host triplet. If you think this
9589 configuration is useful to you, please write to autoconf@gnu.org." >&5
9590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9591 whose name does not start with the host triplet. If you think this
9592 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9593 ac_tool_warned=yes ;;
9594 esac
9595 RANLIB=$ac_ct_RANLIB
9597 else
9598 RANLIB="$ac_cv_prog_RANLIB"
9601 if test -n "$ac_tool_prefix"; then
9602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9603 set dummy ${ac_tool_prefix}strip; ac_word=$2
9604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9606 if test "${ac_cv_prog_STRIP+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 if test -n "$STRIP"; then
9610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9611 else
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9623 done
9624 done
9625 IFS=$as_save_IFS
9629 STRIP=$ac_cv_prog_STRIP
9630 if test -n "$STRIP"; then
9631 { echo "$as_me:$LINENO: result: $STRIP" >&5
9632 echo "${ECHO_T}$STRIP" >&6; }
9633 else
9634 { echo "$as_me:$LINENO: result: no" >&5
9635 echo "${ECHO_T}no" >&6; }
9640 if test -z "$ac_cv_prog_STRIP"; then
9641 ac_ct_STRIP=$STRIP
9642 # Extract the first word of "strip", so it can be a program name with args.
9643 set dummy strip; ac_word=$2
9644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 if test -n "$ac_ct_STRIP"; then
9650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9651 else
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in $PATH
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9659 ac_cv_prog_ac_ct_STRIP="strip"
9660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9663 done
9664 done
9665 IFS=$as_save_IFS
9669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9670 if test -n "$ac_ct_STRIP"; then
9671 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9672 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9673 else
9674 { echo "$as_me:$LINENO: result: no" >&5
9675 echo "${ECHO_T}no" >&6; }
9678 if test "x$ac_ct_STRIP" = x; then
9679 STRIP=":"
9680 else
9681 case $cross_compiling:$ac_tool_warned in
9682 yes:)
9683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9684 whose name does not start with the host triplet. If you think this
9685 configuration is useful to you, please write to autoconf@gnu.org." >&5
9686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9687 whose name does not start with the host triplet. If you think this
9688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9689 ac_tool_warned=yes ;;
9690 esac
9691 STRIP=$ac_ct_STRIP
9693 else
9694 STRIP="$ac_cv_prog_STRIP"
9698 old_CC="$CC"
9699 old_CFLAGS="$CFLAGS"
9701 # Set sane defaults for various variables
9702 test -z "$AR" && AR=ar
9703 test -z "$AR_FLAGS" && AR_FLAGS=cru
9704 test -z "$AS" && AS=as
9705 test -z "$CC" && CC=cc
9706 test -z "$LTCC" && LTCC=$CC
9707 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9708 test -z "$DLLTOOL" && DLLTOOL=dlltool
9709 test -z "$LD" && LD=ld
9710 test -z "$LN_S" && LN_S="ln -s"
9711 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9712 test -z "$NM" && NM=nm
9713 test -z "$SED" && SED=sed
9714 test -z "$OBJDUMP" && OBJDUMP=objdump
9715 test -z "$RANLIB" && RANLIB=:
9716 test -z "$STRIP" && STRIP=:
9717 test -z "$ac_objext" && ac_objext=o
9719 # Determine commands to create old-style static archives.
9720 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9721 old_postinstall_cmds='chmod 644 $oldlib'
9722 old_postuninstall_cmds=
9724 if test -n "$RANLIB"; then
9725 case $host_os in
9726 openbsd*)
9727 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9730 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9732 esac
9733 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9736 for cc_temp in $compiler""; do
9737 case $cc_temp in
9738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9740 \-*) ;;
9741 *) break;;
9742 esac
9743 done
9744 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9747 # Only perform the check for file, if the check method requires it
9748 case $deplibs_check_method in
9749 file_magic*)
9750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9751 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9752 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9753 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 case $MAGIC_CMD in
9757 [\\/*] | ?:[\\/]*)
9758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9761 lt_save_MAGIC_CMD="$MAGIC_CMD"
9762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9764 for ac_dir in $ac_dummy; do
9765 IFS="$lt_save_ifs"
9766 test -z "$ac_dir" && ac_dir=.
9767 if test -f $ac_dir/${ac_tool_prefix}file; then
9768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9769 if test -n "$file_magic_test_file"; then
9770 case $deplibs_check_method in
9771 "file_magic "*)
9772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9775 $EGREP "$file_magic_regex" > /dev/null; then
9777 else
9778 cat <<EOF 1>&2
9780 *** Warning: the command libtool uses to detect shared libraries,
9781 *** $file_magic_cmd, produces output that libtool cannot recognize.
9782 *** The result is that libtool may fail to recognize shared libraries
9783 *** as such. This will affect the creation of libtool libraries that
9784 *** depend on shared libraries, but programs linked with such libtool
9785 *** libraries will work regardless of this problem. Nevertheless, you
9786 *** may want to report the problem to your system manager and/or to
9787 *** bug-libtool@gnu.org
9790 fi ;;
9791 esac
9793 break
9795 done
9796 IFS="$lt_save_ifs"
9797 MAGIC_CMD="$lt_save_MAGIC_CMD"
9799 esac
9802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9803 if test -n "$MAGIC_CMD"; then
9804 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9805 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9806 else
9807 { echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6; }
9811 if test -z "$lt_cv_path_MAGIC_CMD"; then
9812 if test -n "$ac_tool_prefix"; then
9813 { echo "$as_me:$LINENO: checking for file" >&5
9814 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9815 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 case $MAGIC_CMD in
9819 [\\/*] | ?:[\\/]*)
9820 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9823 lt_save_MAGIC_CMD="$MAGIC_CMD"
9824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9825 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9826 for ac_dir in $ac_dummy; do
9827 IFS="$lt_save_ifs"
9828 test -z "$ac_dir" && ac_dir=.
9829 if test -f $ac_dir/file; then
9830 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9831 if test -n "$file_magic_test_file"; then
9832 case $deplibs_check_method in
9833 "file_magic "*)
9834 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9836 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9837 $EGREP "$file_magic_regex" > /dev/null; then
9839 else
9840 cat <<EOF 1>&2
9842 *** Warning: the command libtool uses to detect shared libraries,
9843 *** $file_magic_cmd, produces output that libtool cannot recognize.
9844 *** The result is that libtool may fail to recognize shared libraries
9845 *** as such. This will affect the creation of libtool libraries that
9846 *** depend on shared libraries, but programs linked with such libtool
9847 *** libraries will work regardless of this problem. Nevertheless, you
9848 *** may want to report the problem to your system manager and/or to
9849 *** bug-libtool@gnu.org
9852 fi ;;
9853 esac
9855 break
9857 done
9858 IFS="$lt_save_ifs"
9859 MAGIC_CMD="$lt_save_MAGIC_CMD"
9861 esac
9864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9865 if test -n "$MAGIC_CMD"; then
9866 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9867 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9868 else
9869 { echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6; }
9873 else
9874 MAGIC_CMD=:
9880 esac
9882 enable_dlopen=no
9883 enable_win32_dll=no
9885 # Check whether --enable-libtool-lock was given.
9886 if test "${enable_libtool_lock+set}" = set; then
9887 enableval=$enable_libtool_lock;
9890 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9893 # Check whether --with-pic was given.
9894 if test "${with_pic+set}" = set; then
9895 withval=$with_pic; pic_mode="$withval"
9896 else
9897 pic_mode=default
9900 test -z "$pic_mode" && pic_mode=default
9902 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
9904 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
9905 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
9906 # calls AC_LIBTOOL_CONFIG and creates libtool.
9908 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
9909 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
9910 if test "x$ltmain" = "x" ; then
9911 { echo "$as_me:$LINENO: result: no" >&5
9912 echo "${ECHO_T}no" >&6; }
9913 { { echo "$as_me:$LINENO: error:
9915 *** [Gentoo] sanity check failed! ***
9916 *** \$ltmain is not defined, please check the patch for consistency! ***
9917 " >&5
9918 echo "$as_me: error:
9920 *** [Gentoo] sanity check failed! ***
9921 *** \$ltmain is not defined, please check the patch for consistency! ***
9922 " >&2;}
9923 { (exit 1); exit 1; }; }
9925 gentoo_lt_version="1.5.24"
9926 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
9927 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
9928 { echo "$as_me:$LINENO: result: no" >&5
9929 echo "${ECHO_T}no" >&6; }
9930 { { echo "$as_me:$LINENO: error:
9932 *** [Gentoo] sanity check failed! ***
9933 *** libtool.m4 and ltmain.sh have a version mismatch! ***
9934 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
9936 Please run:
9938 libtoolize --copy --force
9940 if appropriate, please contact the maintainer of this
9941 package (or your distribution) for help.
9942 " >&5
9943 echo "$as_me: error:
9945 *** [Gentoo] sanity check failed! ***
9946 *** libtool.m4 and ltmain.sh have a version mismatch! ***
9947 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
9949 Please run:
9951 libtoolize --copy --force
9953 if appropriate, please contact the maintainer of this
9954 package (or your distribution) for help.
9955 " >&2;}
9956 { (exit 1); exit 1; }; }
9957 else
9958 { echo "$as_me:$LINENO: result: yes" >&5
9959 echo "${ECHO_T}yes" >&6; }
9963 # Use C for the default configuration in the libtool script
9964 tagname=
9965 lt_save_CC="$CC"
9966 ac_ext=c
9967 ac_cpp='$CPP $CPPFLAGS'
9968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9973 # Source file extension for C test sources.
9974 ac_ext=c
9976 # Object file extension for compiled C test sources.
9977 objext=o
9978 objext=$objext
9980 # Code to be used in simple compile tests
9981 lt_simple_compile_test_code="int some_variable = 0;"
9983 # Code to be used in simple link tests
9984 lt_simple_link_test_code='int main(){return(0);}'
9987 # If no C compiler was specified, use CC.
9988 LTCC=${LTCC-"$CC"}
9990 # If no C compiler flags were specified, use CFLAGS.
9991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9993 # Allow CC to be a program name with arguments.
9994 compiler=$CC
9997 # save warnings/boilerplate of simple test code
9998 ac_outfile=conftest.$ac_objext
9999 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10001 _lt_compiler_boilerplate=`cat conftest.err`
10002 $rm conftest*
10004 ac_outfile=conftest.$ac_objext
10005 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10007 _lt_linker_boilerplate=`cat conftest.err`
10008 $rm conftest*
10012 lt_prog_compiler_no_builtin_flag=
10014 if test "$GCC" = yes; then
10015 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10018 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10019 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10020 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 lt_cv_prog_compiler_rtti_exceptions=no
10024 ac_outfile=conftest.$ac_objext
10025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10026 lt_compiler_flag="-fno-rtti -fno-exceptions"
10027 # Insert the option either (1) after the last *FLAGS variable, or
10028 # (2) before a word containing "conftest.", or (3) at the end.
10029 # Note that $ac_compile itself does not contain backslashes and begins
10030 # with a dollar sign (not a hyphen), so the echo should work correctly.
10031 # The option is referenced via a variable to avoid confusing sed.
10032 lt_compile=`echo "$ac_compile" | $SED \
10033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10035 -e 's:$: $lt_compiler_flag:'`
10036 (eval echo "\"\$as_me:10036: $lt_compile\"" >&5)
10037 (eval "$lt_compile" 2>conftest.err)
10038 ac_status=$?
10039 cat conftest.err >&5
10040 echo "$as_me:10040: \$? = $ac_status" >&5
10041 if (exit $ac_status) && test -s "$ac_outfile"; then
10042 # The compiler can only warn and ignore the option if not recognized
10043 # So say no if there are warnings other than the usual output.
10044 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10047 lt_cv_prog_compiler_rtti_exceptions=yes
10050 $rm conftest*
10053 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10054 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10056 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10057 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10058 else
10064 lt_prog_compiler_wl=
10065 lt_prog_compiler_pic=
10066 lt_prog_compiler_static=
10068 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10069 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10071 if test "$GCC" = yes; then
10072 lt_prog_compiler_wl='-Wl,'
10073 lt_prog_compiler_static='-static'
10075 case $host_os in
10076 aix*)
10077 # All AIX code is PIC.
10078 if test "$host_cpu" = ia64; then
10079 # AIX 5 now supports IA64 processor
10080 lt_prog_compiler_static='-Bstatic'
10084 amigaos*)
10085 # FIXME: we need at least 68020 code to build shared libraries, but
10086 # adding the `-m68020' flag to GCC prevents building anything better,
10087 # like `-m68040'.
10088 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10091 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10092 # PIC is the default for these OSes.
10095 mingw* | cygwin* | pw32* | os2*)
10096 # This hack is so that the source file can tell whether it is being
10097 # built for inclusion in a dll (and should export symbols for example).
10098 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10099 # (--disable-auto-import) libraries
10100 lt_prog_compiler_pic='-DDLL_EXPORT'
10103 darwin* | rhapsody*)
10104 # PIC is the default on this platform
10105 # Common symbols not allowed in MH_DYLIB files
10106 lt_prog_compiler_pic='-fno-common'
10109 interix[3-9]*)
10110 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10111 # Instead, we relocate shared libraries at runtime.
10114 msdosdjgpp*)
10115 # Just because we use GCC doesn't mean we suddenly get shared libraries
10116 # on systems that don't support them.
10117 lt_prog_compiler_can_build_shared=no
10118 enable_shared=no
10121 sysv4*MP*)
10122 if test -d /usr/nec; then
10123 lt_prog_compiler_pic=-Kconform_pic
10127 hpux*)
10128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10129 # not for PA HP-UX.
10130 case $host_cpu in
10131 hppa*64*|ia64*)
10132 # +Z the default
10135 lt_prog_compiler_pic='-fPIC'
10137 esac
10141 lt_prog_compiler_pic='-fPIC'
10143 esac
10144 else
10145 # PORTME Check for flag to pass linker flags through the system compiler.
10146 case $host_os in
10147 aix*)
10148 lt_prog_compiler_wl='-Wl,'
10149 if test "$host_cpu" = ia64; then
10150 # AIX 5 now supports IA64 processor
10151 lt_prog_compiler_static='-Bstatic'
10152 else
10153 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10156 darwin*)
10157 # PIC is the default on this platform
10158 # Common symbols not allowed in MH_DYLIB files
10159 case $cc_basename in
10160 xlc*)
10161 lt_prog_compiler_pic='-qnocommon'
10162 lt_prog_compiler_wl='-Wl,'
10164 esac
10167 mingw* | cygwin* | pw32* | os2*)
10168 # This hack is so that the source file can tell whether it is being
10169 # built for inclusion in a dll (and should export symbols for example).
10170 lt_prog_compiler_pic='-DDLL_EXPORT'
10173 hpux9* | hpux10* | hpux11*)
10174 lt_prog_compiler_wl='-Wl,'
10175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10176 # not for PA HP-UX.
10177 case $host_cpu in
10178 hppa*64*|ia64*)
10179 # +Z the default
10182 lt_prog_compiler_pic='+Z'
10184 esac
10185 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10186 lt_prog_compiler_static='${wl}-a ${wl}archive'
10189 irix5* | irix6* | nonstopux*)
10190 lt_prog_compiler_wl='-Wl,'
10191 # PIC (with -KPIC) is the default.
10192 lt_prog_compiler_static='-non_shared'
10195 newsos6)
10196 lt_prog_compiler_pic='-KPIC'
10197 lt_prog_compiler_static='-Bstatic'
10200 linux* | k*bsd*-gnu)
10201 case $cc_basename in
10202 icc* | ecc*)
10203 lt_prog_compiler_wl='-Wl,'
10204 lt_prog_compiler_pic='-KPIC'
10205 lt_prog_compiler_static='-static'
10207 pgcc* | pgf77* | pgf90* | pgf95*)
10208 # Portland Group compilers (*not* the Pentium gcc compiler,
10209 # which looks to be a dead project)
10210 lt_prog_compiler_wl='-Wl,'
10211 lt_prog_compiler_pic='-fpic'
10212 lt_prog_compiler_static='-Bstatic'
10214 ccc*)
10215 lt_prog_compiler_wl='-Wl,'
10216 # All Alpha code is PIC.
10217 lt_prog_compiler_static='-non_shared'
10220 case `$CC -V 2>&1 | sed 5q` in
10221 *Sun\ C*)
10222 # Sun C 5.9
10223 lt_prog_compiler_pic='-KPIC'
10224 lt_prog_compiler_static='-Bstatic'
10225 lt_prog_compiler_wl='-Wl,'
10227 *Sun\ F*)
10228 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10229 lt_prog_compiler_pic='-KPIC'
10230 lt_prog_compiler_static='-Bstatic'
10231 lt_prog_compiler_wl=''
10233 esac
10235 esac
10238 osf3* | osf4* | osf5*)
10239 lt_prog_compiler_wl='-Wl,'
10240 # All OSF/1 code is PIC.
10241 lt_prog_compiler_static='-non_shared'
10244 rdos*)
10245 lt_prog_compiler_static='-non_shared'
10248 solaris*)
10249 lt_prog_compiler_pic='-KPIC'
10250 lt_prog_compiler_static='-Bstatic'
10251 case $cc_basename in
10252 f77* | f90* | f95*)
10253 lt_prog_compiler_wl='-Qoption ld ';;
10255 lt_prog_compiler_wl='-Wl,';;
10256 esac
10259 sunos4*)
10260 lt_prog_compiler_wl='-Qoption ld '
10261 lt_prog_compiler_pic='-PIC'
10262 lt_prog_compiler_static='-Bstatic'
10265 sysv4 | sysv4.2uw2* | sysv4.3*)
10266 lt_prog_compiler_wl='-Wl,'
10267 lt_prog_compiler_pic='-KPIC'
10268 lt_prog_compiler_static='-Bstatic'
10271 sysv4*MP*)
10272 if test -d /usr/nec ;then
10273 lt_prog_compiler_pic='-Kconform_pic'
10274 lt_prog_compiler_static='-Bstatic'
10278 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10279 lt_prog_compiler_wl='-Wl,'
10280 lt_prog_compiler_pic='-KPIC'
10281 lt_prog_compiler_static='-Bstatic'
10284 unicos*)
10285 lt_prog_compiler_wl='-Wl,'
10286 lt_prog_compiler_can_build_shared=no
10289 uts4*)
10290 lt_prog_compiler_pic='-pic'
10291 lt_prog_compiler_static='-Bstatic'
10295 lt_prog_compiler_can_build_shared=no
10297 esac
10300 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10301 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10304 # Check to make sure the PIC flag actually works.
10306 if test -n "$lt_prog_compiler_pic"; then
10308 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10309 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10310 if test "${lt_prog_compiler_pic_works+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313 lt_prog_compiler_pic_works=no
10314 ac_outfile=conftest.$ac_objext
10315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10316 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10317 # Insert the option either (1) after the last *FLAGS variable, or
10318 # (2) before a word containing "conftest.", or (3) at the end.
10319 # Note that $ac_compile itself does not contain backslashes and begins
10320 # with a dollar sign (not a hyphen), so the echo should work correctly.
10321 # The option is referenced via a variable to avoid confusing sed.
10322 lt_compile=`echo "$ac_compile" | $SED \
10323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10325 -e 's:$: $lt_compiler_flag:'`
10326 (eval echo "\"\$as_me:10326: $lt_compile\"" >&5)
10327 (eval "$lt_compile" 2>conftest.err)
10328 ac_status=$?
10329 cat conftest.err >&5
10330 echo "$as_me:10330: \$? = $ac_status" >&5
10331 if (exit $ac_status) && test -s "$ac_outfile"; then
10332 # The compiler can only warn and ignore the option if not recognized
10333 # So say no if there are warnings other than the usual output.
10334 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10337 lt_prog_compiler_pic_works=yes
10340 $rm conftest*
10343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10344 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
10346 if test x"$lt_prog_compiler_pic_works" = xyes; then
10347 case $lt_prog_compiler_pic in
10348 "" | " "*) ;;
10349 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10350 esac
10351 else
10352 lt_prog_compiler_pic=
10353 lt_prog_compiler_can_build_shared=no
10357 case $host_os in
10358 # For platforms which do not support PIC, -DPIC is meaningless:
10359 *djgpp*)
10360 lt_prog_compiler_pic=
10363 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10365 esac
10368 # Check to make sure the static flag actually works.
10370 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10371 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10372 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10373 if test "${lt_prog_compiler_static_works+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376 lt_prog_compiler_static_works=no
10377 save_LDFLAGS="$LDFLAGS"
10378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10381 # The linker can only warn and ignore the option if not recognized
10382 # So say no if there are warnings
10383 if test -s conftest.err; then
10384 # Append any errors to the config.log.
10385 cat conftest.err 1>&5
10386 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10388 if diff conftest.exp conftest.er2 >/dev/null; then
10389 lt_prog_compiler_static_works=yes
10391 else
10392 lt_prog_compiler_static_works=yes
10395 $rm conftest*
10396 LDFLAGS="$save_LDFLAGS"
10399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10400 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
10402 if test x"$lt_prog_compiler_static_works" = xyes; then
10404 else
10405 lt_prog_compiler_static=
10409 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10411 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414 lt_cv_prog_compiler_c_o=no
10415 $rm -r conftest 2>/dev/null
10416 mkdir conftest
10417 cd conftest
10418 mkdir out
10419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10421 lt_compiler_flag="-o out/conftest2.$ac_objext"
10422 # Insert the option either (1) after the last *FLAGS variable, or
10423 # (2) before a word containing "conftest.", or (3) at the end.
10424 # Note that $ac_compile itself does not contain backslashes and begins
10425 # with a dollar sign (not a hyphen), so the echo should work correctly.
10426 lt_compile=`echo "$ac_compile" | $SED \
10427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429 -e 's:$: $lt_compiler_flag:'`
10430 (eval echo "\"\$as_me:10430: $lt_compile\"" >&5)
10431 (eval "$lt_compile" 2>out/conftest.err)
10432 ac_status=$?
10433 cat out/conftest.err >&5
10434 echo "$as_me:10434: \$? = $ac_status" >&5
10435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10436 then
10437 # The compiler can only warn and ignore the option if not recognized
10438 # So say no if there are warnings
10439 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10442 lt_cv_prog_compiler_c_o=yes
10445 chmod u+w . 2>&5
10446 $rm conftest*
10447 # SGI C++ compiler will create directory out/ii_files/ for
10448 # template instantiation
10449 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10450 $rm out/* && rmdir out
10451 cd ..
10452 rmdir conftest
10453 $rm conftest*
10456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10457 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10460 hard_links="nottested"
10461 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10462 # do not overwrite the value of need_locks provided by the user
10463 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10464 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10465 hard_links=yes
10466 $rm conftest*
10467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10468 touch conftest.a
10469 ln conftest.a conftest.b 2>&5 || hard_links=no
10470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10471 { echo "$as_me:$LINENO: result: $hard_links" >&5
10472 echo "${ECHO_T}$hard_links" >&6; }
10473 if test "$hard_links" = no; then
10474 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10475 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10476 need_locks=warn
10478 else
10479 need_locks=no
10482 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10485 runpath_var=
10486 allow_undefined_flag=
10487 enable_shared_with_static_runtimes=no
10488 archive_cmds=
10489 archive_expsym_cmds=
10490 old_archive_From_new_cmds=
10491 old_archive_from_expsyms_cmds=
10492 export_dynamic_flag_spec=
10493 whole_archive_flag_spec=
10494 thread_safe_flag_spec=
10495 hardcode_libdir_flag_spec=
10496 hardcode_libdir_flag_spec_ld=
10497 hardcode_libdir_separator=
10498 hardcode_direct=no
10499 hardcode_minus_L=no
10500 hardcode_shlibpath_var=unsupported
10501 link_all_deplibs=unknown
10502 hardcode_automatic=no
10503 module_cmds=
10504 module_expsym_cmds=
10505 always_export_symbols=no
10506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10507 # include_expsyms should be a list of space-separated symbols to be *always*
10508 # included in the symbol list
10509 include_expsyms=
10510 # exclude_expsyms can be an extended regexp of symbols to exclude
10511 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10512 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10513 # as well as any symbol that contains `d'.
10514 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10515 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10516 # platforms (ab)use it in PIC code, but their linkers get confused if
10517 # the symbol is explicitly referenced. Since portable code cannot
10518 # rely on this symbol name, it's probably fine to never include it in
10519 # preloaded symbol tables.
10520 extract_expsyms_cmds=
10521 # Just being paranoid about ensuring that cc_basename is set.
10522 for cc_temp in $compiler""; do
10523 case $cc_temp in
10524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10526 \-*) ;;
10527 *) break;;
10528 esac
10529 done
10530 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10532 case $host_os in
10533 cygwin* | mingw* | pw32*)
10534 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10535 # When not using gcc, we currently assume that we are using
10536 # Microsoft Visual C++.
10537 if test "$GCC" != yes; then
10538 with_gnu_ld=no
10541 interix*)
10542 # we just hope/assume this is gcc and not c89 (= MSVC++)
10543 with_gnu_ld=yes
10545 openbsd*)
10546 with_gnu_ld=no
10548 esac
10550 ld_shlibs=yes
10551 if test "$with_gnu_ld" = yes; then
10552 # If archive_cmds runs LD, not CC, wlarc should be empty
10553 wlarc='${wl}'
10555 # Set some defaults for GNU ld with shared library support. These
10556 # are reset later if shared libraries are not supported. Putting them
10557 # here allows them to be overridden if necessary.
10558 runpath_var=LD_RUN_PATH
10559 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10560 export_dynamic_flag_spec='${wl}--export-dynamic'
10561 # ancient GNU ld didn't support --whole-archive et. al.
10562 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10563 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10564 else
10565 whole_archive_flag_spec=
10567 supports_anon_versioning=no
10568 case `$LD -v 2>/dev/null` in
10569 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10570 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10571 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10572 *\ 2.11.*) ;; # other 2.11 versions
10573 *) supports_anon_versioning=yes ;;
10574 esac
10576 # See if GNU ld supports shared libraries.
10577 case $host_os in
10578 aix3* | aix4* | aix5*)
10579 # On AIX/PPC, the GNU linker is very broken
10580 if test "$host_cpu" != ia64; then
10581 ld_shlibs=no
10582 cat <<EOF 1>&2
10584 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10585 *** to be unable to reliably create shared libraries on AIX.
10586 *** Therefore, libtool is disabling shared libraries support. If you
10587 *** really care for shared libraries, you may want to modify your PATH
10588 *** so that a non-GNU linker is found, and then restart.
10594 amigaos*)
10595 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)'
10596 hardcode_libdir_flag_spec='-L$libdir'
10597 hardcode_minus_L=yes
10599 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10600 # that the semantics of dynamic libraries on AmigaOS, at least up
10601 # to version 4, is to share data among multiple programs linked
10602 # with the same dynamic library. Since this doesn't match the
10603 # behavior of shared libraries on other platforms, we can't use
10604 # them.
10605 ld_shlibs=no
10608 beos*)
10609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10610 allow_undefined_flag=unsupported
10611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10612 # support --undefined. This deserves some investigation. FIXME
10613 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10614 else
10615 ld_shlibs=no
10619 cygwin* | mingw* | pw32*)
10620 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10621 # as there is no search path for DLLs.
10622 hardcode_libdir_flag_spec='-L$libdir'
10623 allow_undefined_flag=unsupported
10624 always_export_symbols=no
10625 enable_shared_with_static_runtimes=yes
10626 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10628 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10630 # If the export-symbols file already is a .def file (1st line
10631 # is EXPORTS), use it as is; otherwise, prepend...
10632 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10633 cp $export_symbols $output_objdir/$soname.def;
10634 else
10635 echo EXPORTS > $output_objdir/$soname.def;
10636 cat $export_symbols >> $output_objdir/$soname.def;
10638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10639 else
10640 ld_shlibs=no
10644 interix[3-9]*)
10645 hardcode_direct=no
10646 hardcode_shlibpath_var=no
10647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10648 export_dynamic_flag_spec='${wl}-E'
10649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10650 # Instead, shared libraries are loaded at an image base (0x10000000 by
10651 # default) and relocated if they conflict, which is a slow very memory
10652 # consuming and fragmenting process. To avoid this, we pick a random,
10653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10656 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'
10659 gnu* | linux* | k*bsd*-gnu)
10660 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10661 tmp_addflag=
10662 case $cc_basename,$host_cpu in
10663 pgcc*) # Portland Group C compiler
10664 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'
10665 tmp_addflag=' $pic_flag'
10667 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10668 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'
10669 tmp_addflag=' $pic_flag -Mnomain' ;;
10670 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10671 tmp_addflag=' -i_dynamic' ;;
10672 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10673 tmp_addflag=' -i_dynamic -nofor_main' ;;
10674 ifc* | ifort*) # Intel Fortran compiler
10675 tmp_addflag=' -nofor_main' ;;
10676 esac
10677 case `$CC -V 2>&1 | sed 5q` in
10678 *Sun\ C*) # Sun C 5.9
10679 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'
10680 tmp_sharedflag='-G' ;;
10681 *Sun\ F*) # Sun Fortran 8.3
10682 tmp_sharedflag='-G' ;;
10684 tmp_sharedflag='-shared' ;;
10685 esac
10686 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10688 if test $supports_anon_versioning = yes; then
10689 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10690 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10691 $echo "local: *; };" >> $output_objdir/$libname.ver~
10692 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10694 else
10695 ld_shlibs=no
10699 netbsd*)
10700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10701 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10702 wlarc=
10703 else
10704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10709 solaris*)
10710 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10711 ld_shlibs=no
10712 cat <<EOF 1>&2
10714 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10715 *** create shared libraries on Solaris systems. Therefore, libtool
10716 *** is disabling shared libraries support. We urge you to upgrade GNU
10717 *** binutils to release 2.9.1 or newer. Another option is to modify
10718 *** your PATH or compiler configuration so that the native linker is
10719 *** used, and then restart.
10722 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10724 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10725 else
10726 ld_shlibs=no
10730 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10731 case `$LD -v 2>&1` in
10732 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10733 ld_shlibs=no
10734 cat <<_LT_EOF 1>&2
10736 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10737 *** reliably create shared libraries on SCO systems. Therefore, libtool
10738 *** is disabling shared libraries support. We urge you to upgrade GNU
10739 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10740 *** your PATH or compiler configuration so that the native linker is
10741 *** used, and then restart.
10743 _LT_EOF
10746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10747 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10750 else
10751 ld_shlibs=no
10754 esac
10757 sunos4*)
10758 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10759 wlarc=
10760 hardcode_direct=yes
10761 hardcode_shlibpath_var=no
10765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10768 else
10769 ld_shlibs=no
10772 esac
10774 if test "$ld_shlibs" = no; then
10775 runpath_var=
10776 hardcode_libdir_flag_spec=
10777 export_dynamic_flag_spec=
10778 whole_archive_flag_spec=
10780 else
10781 # PORTME fill in a description of your system's linker (not GNU ld)
10782 case $host_os in
10783 aix3*)
10784 allow_undefined_flag=unsupported
10785 always_export_symbols=yes
10786 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'
10787 # Note: this linker hardcodes the directories in LIBPATH if there
10788 # are no directories specified by -L.
10789 hardcode_minus_L=yes
10790 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10791 # Neither direct hardcoding nor static linking is supported with a
10792 # broken collect2.
10793 hardcode_direct=unsupported
10797 aix4* | aix5*)
10798 if test "$host_cpu" = ia64; then
10799 # On IA64, the linker does run time linking by default, so we don't
10800 # have to do anything special.
10801 aix_use_runtimelinking=no
10802 exp_sym_flag='-Bexport'
10803 no_entry_flag=""
10804 else
10805 # If we're using GNU nm, then we don't want the "-C" option.
10806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10807 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10808 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'
10809 else
10810 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'
10812 aix_use_runtimelinking=no
10814 # Test if we are trying to use run time linking or normal
10815 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10816 # need to do runtime linking.
10817 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10818 for ld_flag in $LDFLAGS; do
10819 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10820 aix_use_runtimelinking=yes
10821 break
10823 done
10825 esac
10827 exp_sym_flag='-bexport'
10828 no_entry_flag='-bnoentry'
10831 # When large executables or shared objects are built, AIX ld can
10832 # have problems creating the table of contents. If linking a library
10833 # or program results in "error TOC overflow" add -mminimal-toc to
10834 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10835 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10837 archive_cmds=''
10838 hardcode_direct=yes
10839 hardcode_libdir_separator=':'
10840 link_all_deplibs=yes
10842 if test "$GCC" = yes; then
10843 case $host_os in aix4.[012]|aix4.[012].*)
10844 # We only want to do this on AIX 4.2 and lower, the check
10845 # below for broken collect2 doesn't work under 4.3+
10846 collect2name=`${CC} -print-prog-name=collect2`
10847 if test -f "$collect2name" && \
10848 strings "$collect2name" | grep resolve_lib_name >/dev/null
10849 then
10850 # We have reworked collect2
10852 else
10853 # We have old collect2
10854 hardcode_direct=unsupported
10855 # It fails to find uninstalled libraries when the uninstalled
10856 # path is not listed in the libpath. Setting hardcode_minus_L
10857 # to unsupported forces relinking
10858 hardcode_minus_L=yes
10859 hardcode_libdir_flag_spec='-L$libdir'
10860 hardcode_libdir_separator=
10863 esac
10864 shared_flag='-shared'
10865 if test "$aix_use_runtimelinking" = yes; then
10866 shared_flag="$shared_flag "'${wl}-G'
10868 else
10869 # not using gcc
10870 if test "$host_cpu" = ia64; then
10871 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10872 # chokes on -Wl,-G. The following line is correct:
10873 shared_flag='-G'
10874 else
10875 if test "$aix_use_runtimelinking" = yes; then
10876 shared_flag='${wl}-G'
10877 else
10878 shared_flag='${wl}-bM:SRE'
10883 # It seems that -bexpall does not export symbols beginning with
10884 # underscore (_), so it is better to generate a list of symbols to export.
10885 always_export_symbols=yes
10886 if test "$aix_use_runtimelinking" = yes; then
10887 # Warning - without using the other runtime loading flags (-brtl),
10888 # -berok will link without error, but may produce a broken library.
10889 allow_undefined_flag='-berok'
10890 # Determine the default libpath from the value encoded in an empty executable.
10891 cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h. */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10899 main ()
10903 return 0;
10905 _ACEOF
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && {
10920 test -z "$ac_c_werror_flag" ||
10921 test ! -s conftest.err
10922 } && test -s conftest$ac_exeext &&
10923 $as_test_x conftest$ac_exeext; then
10925 lt_aix_libpath_sed='
10926 /Import File Strings/,/^$/ {
10927 /^0/ {
10928 s/^0 *\(.*\)$/\1/
10932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10933 # Check for a 64-bit object if we didn't find anything.
10934 if test -z "$aix_libpath"; then
10935 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10937 else
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10945 conftest$ac_exeext conftest.$ac_ext
10946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10948 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10949 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"
10950 else
10951 if test "$host_cpu" = ia64; then
10952 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10953 allow_undefined_flag="-z nodefs"
10954 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"
10955 else
10956 # Determine the default libpath from the value encoded in an empty executable.
10957 cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h. */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10965 main ()
10969 return 0;
10971 _ACEOF
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (ac_try="$ac_link"
10974 case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_link") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest$ac_exeext &&
10989 $as_test_x conftest$ac_exeext; then
10991 lt_aix_libpath_sed='
10992 /Import File Strings/,/^$/ {
10993 /^0/ {
10994 s/^0 *\(.*\)$/\1/
10998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10999 # Check for a 64-bit object if we didn't find anything.
11000 if test -z "$aix_libpath"; then
11001 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11003 else
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011 conftest$ac_exeext conftest.$ac_ext
11012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11015 # Warning - without using the other run time loading flags,
11016 # -berok will link without error, but may produce a broken library.
11017 no_undefined_flag=' ${wl}-bernotok'
11018 allow_undefined_flag=' ${wl}-berok'
11019 # Exported symbols can be pulled into shared objects from archives
11020 whole_archive_flag_spec='$convenience'
11021 archive_cmds_need_lc=yes
11022 # This is similar to how AIX traditionally builds its shared libraries.
11023 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'
11028 amigaos*)
11029 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)'
11030 hardcode_libdir_flag_spec='-L$libdir'
11031 hardcode_minus_L=yes
11032 # see comment about different semantics on the GNU ld section
11033 ld_shlibs=no
11036 bsdi[45]*)
11037 export_dynamic_flag_spec=-rdynamic
11040 cygwin* | mingw* | pw32*)
11041 # When not using gcc, we currently assume that we are using
11042 # Microsoft Visual C++.
11043 # hardcode_libdir_flag_spec is actually meaningless, as there is
11044 # no search path for DLLs.
11045 hardcode_libdir_flag_spec=' '
11046 allow_undefined_flag=unsupported
11047 # Tell ltmain to make .lib files, not .a files.
11048 libext=lib
11049 # Tell ltmain to make .dll files, not .so files.
11050 shrext_cmds=".dll"
11051 # FIXME: Setting linknames here is a bad hack.
11052 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11053 # The linker will automatically build a .lib file if we build a DLL.
11054 old_archive_From_new_cmds='true'
11055 # FIXME: Should let the user specify the lib program.
11056 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11057 fix_srcfile_path='`cygpath -w "$srcfile"`'
11058 enable_shared_with_static_runtimes=yes
11061 darwin* | rhapsody*)
11062 case $host_os in
11063 rhapsody* | darwin1.[012])
11064 allow_undefined_flag='${wl}-undefined ${wl}suppress'
11066 *) # Darwin 1.3 on
11067 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11068 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11069 else
11070 case ${MACOSX_DEPLOYMENT_TARGET} in
11071 10.[012])
11072 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11074 10.*)
11075 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11077 esac
11080 esac
11081 archive_cmds_need_lc=no
11082 hardcode_direct=no
11083 hardcode_automatic=yes
11084 hardcode_shlibpath_var=unsupported
11085 whole_archive_flag_spec=''
11086 link_all_deplibs=yes
11087 if test "$GCC" = yes ; then
11088 output_verbose_link_cmd='echo'
11089 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11090 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11092 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}'
11093 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}'
11094 else
11095 case $cc_basename in
11096 xlc*)
11097 output_verbose_link_cmd='echo'
11098 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11099 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11100 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11101 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}'
11102 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}'
11105 ld_shlibs=no
11107 esac
11111 dgux*)
11112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11113 hardcode_libdir_flag_spec='-L$libdir'
11114 hardcode_shlibpath_var=no
11117 freebsd1*)
11118 ld_shlibs=no
11121 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11122 # support. Future versions do this automatically, but an explicit c++rt0.o
11123 # does not break anything, and helps significantly (at the cost of a little
11124 # extra space).
11125 freebsd2.2*)
11126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11127 hardcode_libdir_flag_spec='-R$libdir'
11128 hardcode_direct=yes
11129 hardcode_shlibpath_var=no
11132 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11133 freebsd2*)
11134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11135 hardcode_direct=yes
11136 hardcode_minus_L=yes
11137 hardcode_shlibpath_var=no
11140 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11141 freebsd* | dragonfly*)
11142 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11143 hardcode_libdir_flag_spec='-R$libdir'
11144 hardcode_direct=yes
11145 hardcode_shlibpath_var=no
11148 hpux9*)
11149 if test "$GCC" = yes; then
11150 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'
11151 else
11152 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'
11154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11155 hardcode_libdir_separator=:
11156 hardcode_direct=yes
11158 # hardcode_minus_L: Not really in the search PATH,
11159 # but as the default location of the library.
11160 hardcode_minus_L=yes
11161 export_dynamic_flag_spec='${wl}-E'
11164 hpux10*)
11165 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11166 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11167 else
11168 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11170 if test "$with_gnu_ld" = no; then
11171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11172 hardcode_libdir_separator=:
11174 hardcode_direct=yes
11175 export_dynamic_flag_spec='${wl}-E'
11177 # hardcode_minus_L: Not really in the search PATH,
11178 # but as the default location of the library.
11179 hardcode_minus_L=yes
11183 hpux11*)
11184 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11185 case $host_cpu in
11186 hppa*64*)
11187 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11189 ia64*)
11190 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11193 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11195 esac
11196 else
11197 case $host_cpu in
11198 hppa*64*)
11199 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11201 ia64*)
11202 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11207 esac
11209 if test "$with_gnu_ld" = no; then
11210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11211 hardcode_libdir_separator=:
11213 case $host_cpu in
11214 hppa*64*|ia64*)
11215 hardcode_libdir_flag_spec_ld='+b $libdir'
11216 hardcode_direct=no
11217 hardcode_shlibpath_var=no
11220 hardcode_direct=yes
11221 export_dynamic_flag_spec='${wl}-E'
11223 # hardcode_minus_L: Not really in the search PATH,
11224 # but as the default location of the library.
11225 hardcode_minus_L=yes
11227 esac
11231 irix5* | irix6* | nonstopux*)
11232 if test "$GCC" = yes; then
11233 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'
11234 else
11235 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'
11236 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11239 hardcode_libdir_separator=:
11240 link_all_deplibs=yes
11243 netbsd*)
11244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11246 else
11247 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11249 hardcode_libdir_flag_spec='-R$libdir'
11250 hardcode_direct=yes
11251 hardcode_shlibpath_var=no
11254 newsos6)
11255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11256 hardcode_direct=yes
11257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11258 hardcode_libdir_separator=:
11259 hardcode_shlibpath_var=no
11262 openbsd*)
11263 if test -f /usr/libexec/ld.so; then
11264 hardcode_direct=yes
11265 hardcode_shlibpath_var=no
11266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11268 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11270 export_dynamic_flag_spec='${wl}-E'
11271 else
11272 case $host_os in
11273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11275 hardcode_libdir_flag_spec='-R$libdir'
11278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11281 esac
11283 else
11284 ld_shlibs=no
11288 os2*)
11289 hardcode_libdir_flag_spec='-L$libdir'
11290 hardcode_minus_L=yes
11291 allow_undefined_flag=unsupported
11292 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'
11293 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11296 osf3*)
11297 if test "$GCC" = yes; then
11298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11299 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'
11300 else
11301 allow_undefined_flag=' -expect_unresolved \*'
11302 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'
11304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11305 hardcode_libdir_separator=:
11308 osf4* | osf5*) # as osf3* with the addition of -msym flag
11309 if test "$GCC" = yes; then
11310 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11311 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'
11312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11313 else
11314 allow_undefined_flag=' -expect_unresolved \*'
11315 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'
11316 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11317 $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'
11319 # Both c and cxx compiler support -rpath directly
11320 hardcode_libdir_flag_spec='-rpath $libdir'
11322 hardcode_libdir_separator=:
11325 solaris*)
11326 no_undefined_flag=' -z text'
11327 if test "$GCC" = yes; then
11328 wlarc='${wl}'
11329 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11331 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11332 else
11333 wlarc=''
11334 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11335 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11338 hardcode_libdir_flag_spec='-R$libdir'
11339 hardcode_shlibpath_var=no
11340 case $host_os in
11341 solaris2.[0-5] | solaris2.[0-5].*) ;;
11343 # The compiler driver will combine and reorder linker options,
11344 # but understands `-z linker_flag'. GCC discards it without `$wl',
11345 # but is careful enough not to reorder.
11346 # Supported since Solaris 2.6 (maybe 2.5.1?)
11347 if test "$GCC" = yes; then
11348 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11349 else
11350 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11353 esac
11354 link_all_deplibs=yes
11357 sunos4*)
11358 if test "x$host_vendor" = xsequent; then
11359 # Use $CC to link under sequent, because it throws in some extra .o
11360 # files that make .init and .fini sections work.
11361 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11362 else
11363 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11365 hardcode_libdir_flag_spec='-L$libdir'
11366 hardcode_direct=yes
11367 hardcode_minus_L=yes
11368 hardcode_shlibpath_var=no
11371 sysv4)
11372 case $host_vendor in
11373 sni)
11374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11375 hardcode_direct=yes # is this really true???
11377 siemens)
11378 ## LD is ld it makes a PLAMLIB
11379 ## CC just makes a GrossModule.
11380 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11381 reload_cmds='$CC -r -o $output$reload_objs'
11382 hardcode_direct=no
11384 motorola)
11385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11386 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11388 esac
11389 runpath_var='LD_RUN_PATH'
11390 hardcode_shlibpath_var=no
11393 sysv4.3*)
11394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11395 hardcode_shlibpath_var=no
11396 export_dynamic_flag_spec='-Bexport'
11399 sysv4*MP*)
11400 if test -d /usr/nec; then
11401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402 hardcode_shlibpath_var=no
11403 runpath_var=LD_RUN_PATH
11404 hardcode_runpath_var=yes
11405 ld_shlibs=yes
11409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11410 no_undefined_flag='${wl}-z,text'
11411 archive_cmds_need_lc=no
11412 hardcode_shlibpath_var=no
11413 runpath_var='LD_RUN_PATH'
11415 if test "$GCC" = yes; then
11416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11418 else
11419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11424 sysv5* | sco3.2v5* | sco5v6*)
11425 # Note: We can NOT use -z defs as we might desire, because we do not
11426 # link with -lc, and that would cause any symbols used from libc to
11427 # always be unresolved, which means just about no library would
11428 # ever link correctly. If we're not using GNU ld we use -z text
11429 # though, which does catch some bad symbols but isn't as heavy-handed
11430 # as -z defs.
11431 no_undefined_flag='${wl}-z,text'
11432 allow_undefined_flag='${wl}-z,nodefs'
11433 archive_cmds_need_lc=no
11434 hardcode_shlibpath_var=no
11435 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11436 hardcode_libdir_separator=':'
11437 link_all_deplibs=yes
11438 export_dynamic_flag_spec='${wl}-Bexport'
11439 runpath_var='LD_RUN_PATH'
11441 if test "$GCC" = yes; then
11442 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11443 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11444 else
11445 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11446 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11450 uts4*)
11451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11452 hardcode_libdir_flag_spec='-L$libdir'
11453 hardcode_shlibpath_var=no
11457 ld_shlibs=no
11459 esac
11462 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11463 echo "${ECHO_T}$ld_shlibs" >&6; }
11464 test "$ld_shlibs" = no && can_build_shared=no
11467 # Do we need to explicitly link libc?
11469 case "x$archive_cmds_need_lc" in
11470 x|xyes)
11471 # Assume -lc should be added
11472 archive_cmds_need_lc=yes
11474 if test "$enable_shared" = yes && test "$GCC" = yes; then
11475 case $archive_cmds in
11476 *'~'*)
11477 # FIXME: we may have to deal with multi-command sequences.
11479 '$CC '*)
11480 # Test whether the compiler implicitly links with -lc since on some
11481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11482 # to ld, don't add -lc before -lgcc.
11483 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11485 $rm conftest*
11486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489 (eval $ac_compile) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } 2>conftest.err; then
11493 soname=conftest
11494 lib=conftest
11495 libobjs=conftest.$ac_objext
11496 deplibs=
11497 wl=$lt_prog_compiler_wl
11498 pic_flag=$lt_prog_compiler_pic
11499 compiler_flags=-v
11500 linker_flags=-v
11501 verstring=
11502 output_objdir=.
11503 libname=conftest
11504 lt_save_allow_undefined_flag=$allow_undefined_flag
11505 allow_undefined_flag=
11506 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11507 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }
11511 then
11512 archive_cmds_need_lc=no
11513 else
11514 archive_cmds_need_lc=yes
11516 allow_undefined_flag=$lt_save_allow_undefined_flag
11517 else
11518 cat conftest.err 1>&5
11520 $rm conftest*
11521 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11522 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11524 esac
11527 esac
11529 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11530 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11531 library_names_spec=
11532 libname_spec='lib$name'
11533 soname_spec=
11534 shrext_cmds=".so"
11535 postinstall_cmds=
11536 postuninstall_cmds=
11537 finish_cmds=
11538 finish_eval=
11539 shlibpath_var=
11540 shlibpath_overrides_runpath=unknown
11541 version_type=none
11542 dynamic_linker="$host_os ld.so"
11543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11545 if test "$GCC" = yes; then
11546 case $host_os in
11547 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11548 *) lt_awk_arg="/^libraries:/" ;;
11549 esac
11550 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11551 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11552 # if the path contains ";" then we assume it to be the separator
11553 # otherwise default to the standard path separator (i.e. ":") - it is
11554 # assumed that no part of a normal pathname contains ";" but that should
11555 # okay in the real world where ";" in dirpaths is itself problematic.
11556 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11557 else
11558 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11560 # Ok, now we have the path, separated by spaces, we can step through it
11561 # and add multilib dir if necessary.
11562 lt_tmp_lt_search_path_spec=
11563 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11564 for lt_sys_path in $lt_search_path_spec; do
11565 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11567 else
11568 test -d "$lt_sys_path" && \
11569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11571 done
11572 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11573 BEGIN {RS=" "; FS="/|\n";} {
11574 lt_foo="";
11575 lt_count=0;
11576 for (lt_i = NF; lt_i > 0; lt_i--) {
11577 if ($lt_i != "" && $lt_i != ".") {
11578 if ($lt_i == "..") {
11579 lt_count++;
11580 } else {
11581 if (lt_count == 0) {
11582 lt_foo="/" $lt_i lt_foo;
11583 } else {
11584 lt_count--;
11589 if (lt_foo != "") { lt_freq[lt_foo]++; }
11590 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11592 sys_lib_search_path_spec=`echo $lt_search_path_spec`
11593 else
11594 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11596 need_lib_prefix=unknown
11597 hardcode_into_libs=no
11599 # when you set need_version to no, make sure it does not cause -set_version
11600 # flags to be left without arguments
11601 need_version=unknown
11603 case $host_os in
11604 aix3*)
11605 version_type=linux
11606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11607 shlibpath_var=LIBPATH
11609 # AIX 3 has no versioning support, so we append a major version to the name.
11610 soname_spec='${libname}${release}${shared_ext}$major'
11613 aix4* | aix5*)
11614 version_type=linux
11615 need_lib_prefix=no
11616 need_version=no
11617 hardcode_into_libs=yes
11618 if test "$host_cpu" = ia64; then
11619 # AIX 5 supports IA64
11620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 else
11623 # With GCC up to 2.95.x, collect2 would create an import file
11624 # for dependence libraries. The import file would start with
11625 # the line `#! .'. This would cause the generated library to
11626 # depend on `.', always an invalid library. This was fixed in
11627 # development snapshots of GCC prior to 3.0.
11628 case $host_os in
11629 aix4 | aix4.[01] | aix4.[01].*)
11630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11631 echo ' yes '
11632 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11634 else
11635 can_build_shared=no
11638 esac
11639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11640 # soname into executable. Probably we can add versioning support to
11641 # collect2, so additional links can be useful in future.
11642 if test "$aix_use_runtimelinking" = yes; then
11643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11644 # instead of lib<name>.a to let people know that these are not
11645 # typical AIX shared libraries.
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647 else
11648 # We preserve .a as extension for shared libraries through AIX4.2
11649 # and later when we are not doing run time linking.
11650 library_names_spec='${libname}${release}.a $libname.a'
11651 soname_spec='${libname}${release}${shared_ext}$major'
11653 shlibpath_var=LIBPATH
11657 amigaos*)
11658 library_names_spec='$libname.ixlibrary $libname.a'
11659 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11660 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'
11663 beos*)
11664 library_names_spec='${libname}${shared_ext}'
11665 dynamic_linker="$host_os ld.so"
11666 shlibpath_var=LIBRARY_PATH
11669 bsdi[45]*)
11670 version_type=linux
11671 need_version=no
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11675 shlibpath_var=LD_LIBRARY_PATH
11676 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11677 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11678 # the default ld.so.conf also contains /usr/contrib/lib and
11679 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11680 # libtool to hard-code these into programs
11683 cygwin* | mingw* | pw32*)
11684 version_type=windows
11685 shrext_cmds=".dll"
11686 need_version=no
11687 need_lib_prefix=no
11689 case $GCC,$host_os in
11690 yes,cygwin* | yes,mingw* | yes,pw32*)
11691 library_names_spec='$libname.dll.a'
11692 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11693 postinstall_cmds='base_file=`basename \${file}`~
11694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11695 dldir=$destdir/`dirname \$dlpath`~
11696 test -d \$dldir || mkdir -p \$dldir~
11697 $install_prog $dir/$dlname \$dldir/$dlname~
11698 chmod a+x \$dldir/$dlname'
11699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11700 dlpath=$dir/\$dldll~
11701 $rm \$dlpath'
11702 shlibpath_overrides_runpath=yes
11704 case $host_os in
11705 cygwin*)
11706 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11707 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11708 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11710 mingw*)
11711 # MinGW DLLs use traditional 'lib' prefix
11712 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11713 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11714 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11715 # It is most probably a Windows format PATH printed by
11716 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11717 # path with ; separators, and with drive letters. We can handle the
11718 # drive letters (cygwin fileutils understands them), so leave them,
11719 # especially as we might pass files found there to a mingw objdump,
11720 # which wouldn't understand a cygwinified path. Ahh.
11721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11722 else
11723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11726 pw32*)
11727 # pw32 DLLs use 'pw' prefix rather than 'lib'
11728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11730 esac
11734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11736 esac
11737 dynamic_linker='Win32 ld.exe'
11738 # FIXME: first we should search . and the directory the executable is in
11739 shlibpath_var=PATH
11742 darwin* | rhapsody*)
11743 dynamic_linker="$host_os dyld"
11744 version_type=darwin
11745 need_lib_prefix=no
11746 need_version=no
11747 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11748 soname_spec='${libname}${release}${major}$shared_ext'
11749 shlibpath_overrides_runpath=yes
11750 shlibpath_var=DYLD_LIBRARY_PATH
11751 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11753 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11757 dgux*)
11758 version_type=linux
11759 need_lib_prefix=no
11760 need_version=no
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11766 freebsd1*)
11767 dynamic_linker=no
11770 freebsd* | dragonfly*)
11771 # DragonFly does not have aout. When/if they implement a new
11772 # versioning mechanism, adjust this.
11773 if test -x /usr/bin/objformat; then
11774 objformat=`/usr/bin/objformat`
11775 else
11776 case $host_os in
11777 freebsd[123]*) objformat=aout ;;
11778 *) objformat=elf ;;
11779 esac
11781 # Handle Gentoo/FreeBSD as it was Linux
11782 case $host_vendor in
11783 gentoo)
11784 version_type=linux ;;
11786 version_type=freebsd-$objformat ;;
11787 esac
11789 case $version_type in
11790 freebsd-elf*)
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11792 need_version=no
11793 need_lib_prefix=no
11795 freebsd-*)
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11797 need_version=yes
11799 linux)
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11801 soname_spec='${libname}${release}${shared_ext}$major'
11802 need_lib_prefix=no
11803 need_version=no
11805 esac
11806 shlibpath_var=LD_LIBRARY_PATH
11807 case $host_os in
11808 freebsd2*)
11809 shlibpath_overrides_runpath=yes
11811 freebsd3.[01]* | freebsdelf3.[01]*)
11812 shlibpath_overrides_runpath=yes
11813 hardcode_into_libs=yes
11815 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11816 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11817 shlibpath_overrides_runpath=no
11818 hardcode_into_libs=yes
11820 *) # from 4.6 on, and DragonFly
11821 shlibpath_overrides_runpath=yes
11822 hardcode_into_libs=yes
11824 esac
11827 gnu*)
11828 version_type=linux
11829 need_lib_prefix=no
11830 need_version=no
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11832 soname_spec='${libname}${release}${shared_ext}$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 hardcode_into_libs=yes
11837 hpux9* | hpux10* | hpux11*)
11838 # Give a soname corresponding to the major version so that dld.sl refuses to
11839 # link against other versions.
11840 version_type=sunos
11841 need_lib_prefix=no
11842 need_version=no
11843 case $host_cpu in
11844 ia64*)
11845 shrext_cmds='.so'
11846 hardcode_into_libs=yes
11847 dynamic_linker="$host_os dld.so"
11848 shlibpath_var=LD_LIBRARY_PATH
11849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851 soname_spec='${libname}${release}${shared_ext}$major'
11852 if test "X$HPUX_IA64_MODE" = X32; then
11853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11854 else
11855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11859 hppa*64*)
11860 shrext_cmds='.sl'
11861 hardcode_into_libs=yes
11862 dynamic_linker="$host_os dld.sl"
11863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11871 shrext_cmds='.sl'
11872 dynamic_linker="$host_os dld.sl"
11873 shlibpath_var=SHLIB_PATH
11874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876 soname_spec='${libname}${release}${shared_ext}$major'
11878 esac
11879 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11880 postinstall_cmds='chmod 555 $lib'
11883 interix[3-9]*)
11884 version_type=linux
11885 need_lib_prefix=no
11886 need_version=no
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11888 soname_spec='${libname}${release}${shared_ext}$major'
11889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=no
11892 hardcode_into_libs=yes
11895 irix5* | irix6* | nonstopux*)
11896 case $host_os in
11897 nonstopux*) version_type=nonstopux ;;
11899 if test "$lt_cv_prog_gnu_ld" = yes; then
11900 version_type=linux
11901 else
11902 version_type=irix
11903 fi ;;
11904 esac
11905 need_lib_prefix=no
11906 need_version=no
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11909 case $host_os in
11910 irix5* | nonstopux*)
11911 libsuff= shlibsuff=
11914 case $LD in # libtool.m4 will add one of these switches to LD
11915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11916 libsuff= shlibsuff= libmagic=32-bit;;
11917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11918 libsuff=32 shlibsuff=N32 libmagic=N32;;
11919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11921 *) libsuff= shlibsuff= libmagic=never-match;;
11922 esac
11924 esac
11925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11926 shlibpath_overrides_runpath=no
11927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11929 hardcode_into_libs=yes
11932 # No shared lib support for Linux oldld, aout, or coff.
11933 linux*oldld* | linux*aout* | linux*coff*)
11934 dynamic_linker=no
11937 # This must be Linux ELF.
11938 linux* | k*bsd*-gnu)
11939 version_type=linux
11940 need_lib_prefix=no
11941 need_version=no
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943 soname_spec='${libname}${release}${shared_ext}$major'
11944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 shlibpath_overrides_runpath=no
11947 # This implies no fast_install, which is unacceptable.
11948 # Some rework will be needed to allow for fast_install
11949 # before this can be enabled.
11950 hardcode_into_libs=yes
11952 # Append ld.so.conf contents to the search path
11953 if test -f /etc/ld.so.conf; then
11954 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' ' '`
11955 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11958 # We used to test for /lib/ld.so.1 and disable shared libraries on
11959 # powerpc, because MkLinux only supported shared libraries with the
11960 # GNU dynamic linker. Since this was broken with cross compilers,
11961 # most powerpc-linux boxes support dynamic linking these days and
11962 # people can always --disable-shared, the test was removed, and we
11963 # assume the GNU/Linux dynamic linker is in use.
11964 dynamic_linker='GNU/Linux ld.so'
11967 netbsd*)
11968 version_type=sunos
11969 need_lib_prefix=no
11970 need_version=no
11971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11974 dynamic_linker='NetBSD (a.out) ld.so'
11975 else
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11977 soname_spec='${libname}${release}${shared_ext}$major'
11978 dynamic_linker='NetBSD ld.elf_so'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 shlibpath_overrides_runpath=yes
11982 hardcode_into_libs=yes
11985 newsos6)
11986 version_type=linux
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11988 shlibpath_var=LD_LIBRARY_PATH
11989 shlibpath_overrides_runpath=yes
11992 nto-qnx*)
11993 version_type=linux
11994 need_lib_prefix=no
11995 need_version=no
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997 soname_spec='${libname}${release}${shared_ext}$major'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 shlibpath_overrides_runpath=yes
12002 openbsd*)
12003 version_type=sunos
12004 sys_lib_dlsearch_path_spec="/usr/lib"
12005 need_lib_prefix=no
12006 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12007 case $host_os in
12008 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12009 *) need_version=no ;;
12010 esac
12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12013 shlibpath_var=LD_LIBRARY_PATH
12014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12015 case $host_os in
12016 openbsd2.[89] | openbsd2.[89].*)
12017 shlibpath_overrides_runpath=no
12020 shlibpath_overrides_runpath=yes
12022 esac
12023 else
12024 shlibpath_overrides_runpath=yes
12028 os2*)
12029 libname_spec='$name'
12030 shrext_cmds=".dll"
12031 need_lib_prefix=no
12032 library_names_spec='$libname${shared_ext} $libname.a'
12033 dynamic_linker='OS/2 ld.exe'
12034 shlibpath_var=LIBPATH
12037 osf3* | osf4* | osf5*)
12038 version_type=osf
12039 need_lib_prefix=no
12040 need_version=no
12041 soname_spec='${libname}${release}${shared_ext}$major'
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043 shlibpath_var=LD_LIBRARY_PATH
12044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12045 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12048 rdos*)
12049 dynamic_linker=no
12052 solaris*)
12053 version_type=linux
12054 need_lib_prefix=no
12055 need_version=no
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=yes
12060 hardcode_into_libs=yes
12061 # ldd complains unless libraries are executable
12062 postinstall_cmds='chmod +x $lib'
12065 sunos4*)
12066 version_type=sunos
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=yes
12071 if test "$with_gnu_ld" = yes; then
12072 need_lib_prefix=no
12074 need_version=yes
12077 sysv4 | sysv4.3*)
12078 version_type=linux
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080 soname_spec='${libname}${release}${shared_ext}$major'
12081 shlibpath_var=LD_LIBRARY_PATH
12082 case $host_vendor in
12083 sni)
12084 shlibpath_overrides_runpath=no
12085 need_lib_prefix=no
12086 export_dynamic_flag_spec='${wl}-Blargedynsym'
12087 runpath_var=LD_RUN_PATH
12089 siemens)
12090 need_lib_prefix=no
12092 motorola)
12093 need_lib_prefix=no
12094 need_version=no
12095 shlibpath_overrides_runpath=no
12096 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12098 esac
12101 sysv4*MP*)
12102 if test -d /usr/nec ;then
12103 version_type=linux
12104 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12105 soname_spec='$libname${shared_ext}.$major'
12106 shlibpath_var=LD_LIBRARY_PATH
12110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12111 version_type=freebsd-elf
12112 need_lib_prefix=no
12113 need_version=no
12114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12115 soname_spec='${libname}${release}${shared_ext}$major'
12116 shlibpath_var=LD_LIBRARY_PATH
12117 hardcode_into_libs=yes
12118 if test "$with_gnu_ld" = yes; then
12119 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12120 shlibpath_overrides_runpath=no
12121 else
12122 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12123 shlibpath_overrides_runpath=yes
12124 case $host_os in
12125 sco3.2v5*)
12126 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12128 esac
12130 sys_lib_dlsearch_path_spec='/usr/lib'
12133 uts4*)
12134 version_type=linux
12135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12136 soname_spec='${libname}${release}${shared_ext}$major'
12137 shlibpath_var=LD_LIBRARY_PATH
12141 dynamic_linker=no
12143 esac
12144 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12145 echo "${ECHO_T}$dynamic_linker" >&6; }
12146 test "$dynamic_linker" = no && can_build_shared=no
12148 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12149 if test "$GCC" = yes; then
12150 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12153 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12154 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12155 hardcode_action=
12156 if test -n "$hardcode_libdir_flag_spec" || \
12157 test -n "$runpath_var" || \
12158 test "X$hardcode_automatic" = "Xyes" ; then
12160 # We can hardcode non-existant directories.
12161 if test "$hardcode_direct" != no &&
12162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12163 # have to relink, otherwise we might link with an installed library
12164 # when we should be linking with a yet-to-be-installed one
12165 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12166 test "$hardcode_minus_L" != no; then
12167 # Linking always hardcodes the temporary library directory.
12168 hardcode_action=relink
12169 else
12170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12171 hardcode_action=immediate
12173 else
12174 # We cannot hardcode anything, or else we can only hardcode existing
12175 # directories.
12176 hardcode_action=unsupported
12178 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12179 echo "${ECHO_T}$hardcode_action" >&6; }
12181 if test "$hardcode_action" = relink; then
12182 # Fast installation is not supported
12183 enable_fast_install=no
12184 elif test "$shlibpath_overrides_runpath" = yes ||
12185 test "$enable_shared" = no; then
12186 # Fast installation is not necessary
12187 enable_fast_install=needless
12190 striplib=
12191 old_striplib=
12192 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12193 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12194 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12195 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12196 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12197 { echo "$as_me:$LINENO: result: yes" >&5
12198 echo "${ECHO_T}yes" >&6; }
12199 else
12200 # FIXME - insert some real tests, host_os isn't really good enough
12201 case $host_os in
12202 darwin*)
12203 if test -n "$STRIP" ; then
12204 striplib="$STRIP -x"
12205 old_striplib="$STRIP -S"
12206 { echo "$as_me:$LINENO: result: yes" >&5
12207 echo "${ECHO_T}yes" >&6; }
12208 else
12209 { echo "$as_me:$LINENO: result: no" >&5
12210 echo "${ECHO_T}no" >&6; }
12214 { echo "$as_me:$LINENO: result: no" >&5
12215 echo "${ECHO_T}no" >&6; }
12217 esac
12220 if test "x$enable_dlopen" != xyes; then
12221 enable_dlopen=unknown
12222 enable_dlopen_self=unknown
12223 enable_dlopen_self_static=unknown
12224 else
12225 lt_cv_dlopen=no
12226 lt_cv_dlopen_libs=
12228 case $host_os in
12229 beos*)
12230 lt_cv_dlopen="load_add_on"
12231 lt_cv_dlopen_libs=
12232 lt_cv_dlopen_self=yes
12235 mingw* | pw32*)
12236 lt_cv_dlopen="LoadLibrary"
12237 lt_cv_dlopen_libs=
12240 cygwin*)
12241 lt_cv_dlopen="dlopen"
12242 lt_cv_dlopen_libs=
12245 darwin*)
12246 # if libdl is installed we need to link against it
12247 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12248 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-ldl $LIBS"
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char dlopen ();
12269 main ()
12271 return dlopen ();
12273 return 0;
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 ac_cv_lib_dl_dlopen=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_dl_dlopen=no
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12308 if test $ac_cv_lib_dl_dlopen = yes; then
12309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12310 else
12312 lt_cv_dlopen="dyld"
12313 lt_cv_dlopen_libs=
12314 lt_cv_dlopen_self=yes
12321 { echo "$as_me:$LINENO: checking for shl_load" >&5
12322 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12323 if test "${ac_cv_func_shl_load+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12334 #define shl_load innocuous_shl_load
12336 /* System header to define __stub macros and hopefully few prototypes,
12337 which can conflict with char shl_load (); below.
12338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12339 <limits.h> exists even on freestanding compilers. */
12341 #ifdef __STDC__
12342 # include <limits.h>
12343 #else
12344 # include <assert.h>
12345 #endif
12347 #undef shl_load
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char shl_load ();
12356 /* The GNU C library defines this for functions which it implements
12357 to always fail with ENOSYS. Some functions are actually named
12358 something starting with __ and the normal name is an alias. */
12359 #if defined __stub_shl_load || defined __stub___shl_load
12360 choke me
12361 #endif
12364 main ()
12366 return shl_load ();
12368 return 0;
12370 _ACEOF
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (ac_try="$ac_link"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_link") 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } && {
12385 test -z "$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 } && test -s conftest$ac_exeext &&
12388 $as_test_x conftest$ac_exeext; then
12389 ac_cv_func_shl_load=yes
12390 else
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 ac_cv_func_shl_load=no
12397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12398 conftest$ac_exeext conftest.$ac_ext
12400 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12401 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12402 if test $ac_cv_func_shl_load = yes; then
12403 lt_cv_dlopen="shl_load"
12404 else
12405 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12406 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12407 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410 ac_check_lib_save_LIBS=$LIBS
12411 LIBS="-ldld $LIBS"
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char shl_load ();
12427 main ()
12429 return shl_load ();
12431 return 0;
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && {
12448 test -z "$ac_c_werror_flag" ||
12449 test ! -s conftest.err
12450 } && test -s conftest$ac_exeext &&
12451 $as_test_x conftest$ac_exeext; then
12452 ac_cv_lib_dld_shl_load=yes
12453 else
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 ac_cv_lib_dld_shl_load=no
12460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12461 conftest$ac_exeext conftest.$ac_ext
12462 LIBS=$ac_check_lib_save_LIBS
12464 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12465 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12466 if test $ac_cv_lib_dld_shl_load = yes; then
12467 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12468 else
12469 { echo "$as_me:$LINENO: checking for dlopen" >&5
12470 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12471 if test "${ac_cv_func_dlopen+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h. */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12482 #define dlopen innocuous_dlopen
12484 /* System header to define __stub macros and hopefully few prototypes,
12485 which can conflict with char dlopen (); below.
12486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12487 <limits.h> exists even on freestanding compilers. */
12489 #ifdef __STDC__
12490 # include <limits.h>
12491 #else
12492 # include <assert.h>
12493 #endif
12495 #undef dlopen
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12500 #ifdef __cplusplus
12501 extern "C"
12502 #endif
12503 char dlopen ();
12504 /* The GNU C library defines this for functions which it implements
12505 to always fail with ENOSYS. Some functions are actually named
12506 something starting with __ and the normal name is an alias. */
12507 #if defined __stub_dlopen || defined __stub___dlopen
12508 choke me
12509 #endif
12512 main ()
12514 return dlopen ();
12516 return 0;
12518 _ACEOF
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (ac_try="$ac_link"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524 esac
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_link") 2>conftest.er1
12527 ac_status=$?
12528 grep -v '^ *+' conftest.er1 >conftest.err
12529 rm -f conftest.er1
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } && {
12533 test -z "$ac_c_werror_flag" ||
12534 test ! -s conftest.err
12535 } && test -s conftest$ac_exeext &&
12536 $as_test_x conftest$ac_exeext; then
12537 ac_cv_func_dlopen=yes
12538 else
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ac_cv_func_dlopen=no
12545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12546 conftest$ac_exeext conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12549 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12550 if test $ac_cv_func_dlopen = yes; then
12551 lt_cv_dlopen="dlopen"
12552 else
12553 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12554 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12555 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558 ac_check_lib_save_LIBS=$LIBS
12559 LIBS="-ldl $LIBS"
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h. */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12570 #ifdef __cplusplus
12571 extern "C"
12572 #endif
12573 char dlopen ();
12575 main ()
12577 return dlopen ();
12579 return 0;
12581 _ACEOF
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (ac_try="$ac_link"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_link") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest$ac_exeext &&
12599 $as_test_x conftest$ac_exeext; then
12600 ac_cv_lib_dl_dlopen=yes
12601 else
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ac_cv_lib_dl_dlopen=no
12608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12609 conftest$ac_exeext conftest.$ac_ext
12610 LIBS=$ac_check_lib_save_LIBS
12612 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12614 if test $ac_cv_lib_dl_dlopen = yes; then
12615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12616 else
12617 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12618 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12619 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622 ac_check_lib_save_LIBS=$LIBS
12623 LIBS="-lsvld $LIBS"
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h. */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12631 /* Override any GCC internal prototype to avoid an error.
12632 Use char because int might match the return type of a GCC
12633 builtin and then its argument prototype would still apply. */
12634 #ifdef __cplusplus
12635 extern "C"
12636 #endif
12637 char dlopen ();
12639 main ()
12641 return dlopen ();
12643 return 0;
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (ac_try="$ac_link"
12648 case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651 esac
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_link") 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest$ac_exeext &&
12663 $as_test_x conftest$ac_exeext; then
12664 ac_cv_lib_svld_dlopen=yes
12665 else
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12669 ac_cv_lib_svld_dlopen=no
12672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12676 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12677 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12678 if test $ac_cv_lib_svld_dlopen = yes; then
12679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12680 else
12681 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12682 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12683 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686 ac_check_lib_save_LIBS=$LIBS
12687 LIBS="-ldld $LIBS"
12688 cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h. */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12695 /* Override any GCC internal prototype to avoid an error.
12696 Use char because int might match the return type of a GCC
12697 builtin and then its argument prototype would still apply. */
12698 #ifdef __cplusplus
12699 extern "C"
12700 #endif
12701 char dld_link ();
12703 main ()
12705 return dld_link ();
12707 return 0;
12709 _ACEOF
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (ac_try="$ac_link"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_link") 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && {
12724 test -z "$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12726 } && test -s conftest$ac_exeext &&
12727 $as_test_x conftest$ac_exeext; then
12728 ac_cv_lib_dld_dld_link=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 ac_cv_lib_dld_dld_link=no
12736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12737 conftest$ac_exeext conftest.$ac_ext
12738 LIBS=$ac_check_lib_save_LIBS
12740 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12741 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12742 if test $ac_cv_lib_dld_dld_link = yes; then
12743 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12762 esac
12764 if test "x$lt_cv_dlopen" != xno; then
12765 enable_dlopen=yes
12766 else
12767 enable_dlopen=no
12770 case $lt_cv_dlopen in
12771 dlopen)
12772 save_CPPFLAGS="$CPPFLAGS"
12773 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12775 save_LDFLAGS="$LDFLAGS"
12776 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12778 save_LIBS="$LIBS"
12779 LIBS="$lt_cv_dlopen_libs $LIBS"
12781 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12782 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12783 if test "${lt_cv_dlopen_self+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 else
12786 if test "$cross_compiling" = yes; then :
12787 lt_cv_dlopen_self=cross
12788 else
12789 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12790 lt_status=$lt_dlunknown
12791 cat > conftest.$ac_ext <<EOF
12792 #line 12792 "configure"
12793 #include "confdefs.h"
12795 #if HAVE_DLFCN_H
12796 #include <dlfcn.h>
12797 #endif
12799 #include <stdio.h>
12801 #ifdef RTLD_GLOBAL
12802 # define LT_DLGLOBAL RTLD_GLOBAL
12803 #else
12804 # ifdef DL_GLOBAL
12805 # define LT_DLGLOBAL DL_GLOBAL
12806 # else
12807 # define LT_DLGLOBAL 0
12808 # endif
12809 #endif
12811 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12812 find out it does not work in some platform. */
12813 #ifndef LT_DLLAZY_OR_NOW
12814 # ifdef RTLD_LAZY
12815 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12816 # else
12817 # ifdef DL_LAZY
12818 # define LT_DLLAZY_OR_NOW DL_LAZY
12819 # else
12820 # ifdef RTLD_NOW
12821 # define LT_DLLAZY_OR_NOW RTLD_NOW
12822 # else
12823 # ifdef DL_NOW
12824 # define LT_DLLAZY_OR_NOW DL_NOW
12825 # else
12826 # define LT_DLLAZY_OR_NOW 0
12827 # endif
12828 # endif
12829 # endif
12830 # endif
12831 #endif
12833 #ifdef __cplusplus
12834 extern "C" void exit (int);
12835 #endif
12837 void fnord() { int i=42;}
12838 int main ()
12840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12841 int status = $lt_dlunknown;
12843 if (self)
12845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12846 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12847 /* dlclose (self); */
12849 else
12850 puts (dlerror ());
12852 exit (status);
12855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12860 (./conftest; exit; ) >&5 2>/dev/null
12861 lt_status=$?
12862 case x$lt_status in
12863 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12864 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12865 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12866 esac
12867 else :
12868 # compilation failed
12869 lt_cv_dlopen_self=no
12872 rm -fr conftest*
12876 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12877 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12879 if test "x$lt_cv_dlopen_self" = xyes; then
12880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12881 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12882 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12883 if test "${lt_cv_dlopen_self_static+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 if test "$cross_compiling" = yes; then :
12887 lt_cv_dlopen_self_static=cross
12888 else
12889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12890 lt_status=$lt_dlunknown
12891 cat > conftest.$ac_ext <<EOF
12892 #line 12892 "configure"
12893 #include "confdefs.h"
12895 #if HAVE_DLFCN_H
12896 #include <dlfcn.h>
12897 #endif
12899 #include <stdio.h>
12901 #ifdef RTLD_GLOBAL
12902 # define LT_DLGLOBAL RTLD_GLOBAL
12903 #else
12904 # ifdef DL_GLOBAL
12905 # define LT_DLGLOBAL DL_GLOBAL
12906 # else
12907 # define LT_DLGLOBAL 0
12908 # endif
12909 #endif
12911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12912 find out it does not work in some platform. */
12913 #ifndef LT_DLLAZY_OR_NOW
12914 # ifdef RTLD_LAZY
12915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12916 # else
12917 # ifdef DL_LAZY
12918 # define LT_DLLAZY_OR_NOW DL_LAZY
12919 # else
12920 # ifdef RTLD_NOW
12921 # define LT_DLLAZY_OR_NOW RTLD_NOW
12922 # else
12923 # ifdef DL_NOW
12924 # define LT_DLLAZY_OR_NOW DL_NOW
12925 # else
12926 # define LT_DLLAZY_OR_NOW 0
12927 # endif
12928 # endif
12929 # endif
12930 # endif
12931 #endif
12933 #ifdef __cplusplus
12934 extern "C" void exit (int);
12935 #endif
12937 void fnord() { int i=42;}
12938 int main ()
12940 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12941 int status = $lt_dlunknown;
12943 if (self)
12945 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12946 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12947 /* dlclose (self); */
12949 else
12950 puts (dlerror ());
12952 exit (status);
12955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12956 (eval $ac_link) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12960 (./conftest; exit; ) >&5 2>/dev/null
12961 lt_status=$?
12962 case x$lt_status in
12963 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12964 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12965 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12966 esac
12967 else :
12968 # compilation failed
12969 lt_cv_dlopen_self_static=no
12972 rm -fr conftest*
12976 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12977 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12980 CPPFLAGS="$save_CPPFLAGS"
12981 LDFLAGS="$save_LDFLAGS"
12982 LIBS="$save_LIBS"
12984 esac
12986 case $lt_cv_dlopen_self in
12987 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12988 *) enable_dlopen_self=unknown ;;
12989 esac
12991 case $lt_cv_dlopen_self_static in
12992 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12993 *) enable_dlopen_self_static=unknown ;;
12994 esac
12998 # Report which library types will actually be built
12999 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13000 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13001 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13002 echo "${ECHO_T}$can_build_shared" >&6; }
13004 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13005 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13006 test "$can_build_shared" = "no" && enable_shared=no
13008 # On AIX, shared libraries and static libraries use the same namespace, and
13009 # are all built from PIC.
13010 case $host_os in
13011 aix3*)
13012 test "$enable_shared" = yes && enable_static=no
13013 if test -n "$RANLIB"; then
13014 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13015 postinstall_cmds='$RANLIB $lib'
13019 aix4* | aix5*)
13020 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13021 test "$enable_shared" = yes && enable_static=no
13024 esac
13025 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13026 echo "${ECHO_T}$enable_shared" >&6; }
13028 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13029 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13030 # Make sure either enable_shared or enable_static is yes.
13031 test "$enable_shared" = yes || enable_static=yes
13032 { echo "$as_me:$LINENO: result: $enable_static" >&5
13033 echo "${ECHO_T}$enable_static" >&6; }
13035 # The else clause should only fire when bootstrapping the
13036 # libtool distribution, otherwise you forgot to ship ltmain.sh
13037 # with your package, and you will get complaints that there are
13038 # no rules to generate ltmain.sh.
13039 if test -f "$ltmain"; then
13040 # See if we are running on zsh, and set the options which allow our commands through
13041 # without removal of \ escapes.
13042 if test -n "${ZSH_VERSION+set}" ; then
13043 setopt NO_GLOB_SUBST
13045 # Now quote all the things that may contain metacharacters while being
13046 # careful not to overquote the AC_SUBSTed values. We take copies of the
13047 # variables and quote the copies for generation of the libtool script.
13048 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13049 SED SHELL STRIP \
13050 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13051 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13052 deplibs_check_method reload_flag reload_cmds need_locks \
13053 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13054 lt_cv_sys_global_symbol_to_c_name_address \
13055 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13056 old_postinstall_cmds old_postuninstall_cmds \
13057 compiler \
13058 CC \
13059 LD \
13060 lt_prog_compiler_wl \
13061 lt_prog_compiler_pic \
13062 lt_prog_compiler_static \
13063 lt_prog_compiler_no_builtin_flag \
13064 export_dynamic_flag_spec \
13065 thread_safe_flag_spec \
13066 whole_archive_flag_spec \
13067 enable_shared_with_static_runtimes \
13068 old_archive_cmds \
13069 old_archive_from_new_cmds \
13070 predep_objects \
13071 postdep_objects \
13072 predeps \
13073 postdeps \
13074 compiler_lib_search_path \
13075 archive_cmds \
13076 archive_expsym_cmds \
13077 postinstall_cmds \
13078 postuninstall_cmds \
13079 old_archive_from_expsyms_cmds \
13080 allow_undefined_flag \
13081 no_undefined_flag \
13082 export_symbols_cmds \
13083 hardcode_libdir_flag_spec \
13084 hardcode_libdir_flag_spec_ld \
13085 hardcode_libdir_separator \
13086 hardcode_automatic \
13087 module_cmds \
13088 module_expsym_cmds \
13089 lt_cv_prog_compiler_c_o \
13090 fix_srcfile_path \
13091 exclude_expsyms \
13092 include_expsyms; do
13094 case $var in
13095 old_archive_cmds | \
13096 old_archive_from_new_cmds | \
13097 archive_cmds | \
13098 archive_expsym_cmds | \
13099 module_cmds | \
13100 module_expsym_cmds | \
13101 old_archive_from_expsyms_cmds | \
13102 export_symbols_cmds | \
13103 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13104 postinstall_cmds | postuninstall_cmds | \
13105 old_postinstall_cmds | old_postuninstall_cmds | \
13106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13107 # Double-quote double-evaled strings.
13108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13113 esac
13114 done
13116 case $lt_echo in
13117 *'\$0 --fallback-echo"')
13118 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13120 esac
13122 cfgfile="${ofile}T"
13123 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13124 $rm -f "$cfgfile"
13125 { echo "$as_me:$LINENO: creating $ofile" >&5
13126 echo "$as_me: creating $ofile" >&6;}
13128 cat <<__EOF__ >> "$cfgfile"
13129 #! $SHELL
13131 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13132 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13133 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13135 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
13136 # Free Software Foundation, Inc.
13138 # This file is part of GNU Libtool:
13139 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13141 # This program is free software; you can redistribute it and/or modify
13142 # it under the terms of the GNU General Public License as published by
13143 # the Free Software Foundation; either version 2 of the License, or
13144 # (at your option) any later version.
13146 # This program is distributed in the hope that it will be useful, but
13147 # WITHOUT ANY WARRANTY; without even the implied warranty of
13148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13149 # General Public License for more details.
13151 # You should have received a copy of the GNU General Public License
13152 # along with this program; if not, write to the Free Software
13153 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13155 # As a special exception to the GNU General Public License, if you
13156 # distribute this file as part of a program that contains a
13157 # configuration script generated by Autoconf, you may include it under
13158 # the same distribution terms that you use for the rest of that program.
13160 # A sed program that does not truncate output.
13161 SED=$lt_SED
13163 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13164 Xsed="$SED -e 1s/^X//"
13166 # The HP-UX ksh and POSIX shell print the target directory to stdout
13167 # if CDPATH is set.
13168 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13170 # The names of the tagged configurations supported by this script.
13171 available_tags=
13173 # ### BEGIN LIBTOOL CONFIG
13175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13177 # Shell to use when invoking shell scripts.
13178 SHELL=$lt_SHELL
13180 # Whether or not to build shared libraries.
13181 build_libtool_libs=$enable_shared
13183 # Whether or not to build static libraries.
13184 build_old_libs=$enable_static
13186 # Whether or not to add -lc for building shared libraries.
13187 build_libtool_need_lc=$archive_cmds_need_lc
13189 # Whether or not to disallow shared libs when runtime libs are static
13190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13192 # Whether or not to optimize for fast installation.
13193 fast_install=$enable_fast_install
13195 # The host system.
13196 host_alias=$host_alias
13197 host=$host
13198 host_os=$host_os
13200 # The build system.
13201 build_alias=$build_alias
13202 build=$build
13203 build_os=$build_os
13205 # An echo program that does not interpret backslashes.
13206 echo=$lt_echo
13208 # The archiver.
13209 AR=$lt_AR
13210 AR_FLAGS=$lt_AR_FLAGS
13212 # A C compiler.
13213 LTCC=$lt_LTCC
13215 # LTCC compiler flags.
13216 LTCFLAGS=$lt_LTCFLAGS
13218 # A language-specific compiler.
13219 CC=$lt_compiler
13221 # Is the compiler the GNU C compiler?
13222 with_gcc=$GCC
13224 # An ERE matcher.
13225 EGREP=$lt_EGREP
13227 # The linker used to build libraries.
13228 LD=$lt_LD
13230 # Whether we need hard or soft links.
13231 LN_S=$lt_LN_S
13233 # A BSD-compatible nm program.
13234 NM=$lt_NM
13236 # A symbol stripping program
13237 STRIP=$lt_STRIP
13239 # Used to examine libraries when file_magic_cmd begins "file"
13240 MAGIC_CMD=$MAGIC_CMD
13242 # Used on cygwin: DLL creation program.
13243 DLLTOOL="$DLLTOOL"
13245 # Used on cygwin: object dumper.
13246 OBJDUMP="$OBJDUMP"
13248 # Used on cygwin: assembler.
13249 AS="$AS"
13251 # The name of the directory that contains temporary libtool files.
13252 objdir=$objdir
13254 # How to create reloadable object files.
13255 reload_flag=$lt_reload_flag
13256 reload_cmds=$lt_reload_cmds
13258 # How to pass a linker flag through the compiler.
13259 wl=$lt_lt_prog_compiler_wl
13261 # Object file suffix (normally "o").
13262 objext="$ac_objext"
13264 # Old archive suffix (normally "a").
13265 libext="$libext"
13267 # Shared library suffix (normally ".so").
13268 shrext_cmds='$shrext_cmds'
13270 # Executable file suffix (normally "").
13271 exeext="$exeext"
13273 # Additional compiler flags for building library objects.
13274 pic_flag=$lt_lt_prog_compiler_pic
13275 pic_mode=$pic_mode
13277 # What is the maximum length of a command?
13278 max_cmd_len=$lt_cv_sys_max_cmd_len
13280 # Does compiler simultaneously support -c and -o options?
13281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13283 # Must we lock files when doing compilation?
13284 need_locks=$lt_need_locks
13286 # Do we need the lib prefix for modules?
13287 need_lib_prefix=$need_lib_prefix
13289 # Do we need a version for libraries?
13290 need_version=$need_version
13292 # Whether dlopen is supported.
13293 dlopen_support=$enable_dlopen
13295 # Whether dlopen of programs is supported.
13296 dlopen_self=$enable_dlopen_self
13298 # Whether dlopen of statically linked programs is supported.
13299 dlopen_self_static=$enable_dlopen_self_static
13301 # Compiler flag to prevent dynamic linking.
13302 link_static_flag=$lt_lt_prog_compiler_static
13304 # Compiler flag to turn off builtin functions.
13305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13307 # Compiler flag to allow reflexive dlopens.
13308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13310 # Compiler flag to generate shared objects directly from archives.
13311 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13313 # Compiler flag to generate thread-safe objects.
13314 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13316 # Library versioning type.
13317 version_type=$version_type
13319 # Format of library name prefix.
13320 libname_spec=$lt_libname_spec
13322 # List of archive names. First name is the real one, the rest are links.
13323 # The last name is the one that the linker finds with -lNAME.
13324 library_names_spec=$lt_library_names_spec
13326 # The coded name of the library, if different from the real name.
13327 soname_spec=$lt_soname_spec
13329 # Commands used to build and install an old-style archive.
13330 RANLIB=$lt_RANLIB
13331 old_archive_cmds=$lt_old_archive_cmds
13332 old_postinstall_cmds=$lt_old_postinstall_cmds
13333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13335 # Create an old-style archive from a shared archive.
13336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13338 # Create a temporary old-style archive to link instead of a shared archive.
13339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13341 # Commands used to build and install a shared archive.
13342 archive_cmds=$lt_archive_cmds
13343 archive_expsym_cmds=$lt_archive_expsym_cmds
13344 postinstall_cmds=$lt_postinstall_cmds
13345 postuninstall_cmds=$lt_postuninstall_cmds
13347 # Commands used to build a loadable module (assumed same as above if empty)
13348 module_cmds=$lt_module_cmds
13349 module_expsym_cmds=$lt_module_expsym_cmds
13351 # Commands to strip libraries.
13352 old_striplib=$lt_old_striplib
13353 striplib=$lt_striplib
13355 # Dependencies to place before the objects being linked to create a
13356 # shared library.
13357 predep_objects=$lt_predep_objects
13359 # Dependencies to place after the objects being linked to create a
13360 # shared library.
13361 postdep_objects=$lt_postdep_objects
13363 # Dependencies to place before the objects being linked to create a
13364 # shared library.
13365 predeps=$lt_predeps
13367 # Dependencies to place after the objects being linked to create a
13368 # shared library.
13369 postdeps=$lt_postdeps
13371 # The library search path used internally by the compiler when linking
13372 # a shared library.
13373 compiler_lib_search_path=$lt_compiler_lib_search_path
13375 # Method to check whether dependent libraries are shared objects.
13376 deplibs_check_method=$lt_deplibs_check_method
13378 # Command to use when deplibs_check_method == file_magic.
13379 file_magic_cmd=$lt_file_magic_cmd
13381 # Flag that allows shared libraries with undefined symbols to be built.
13382 allow_undefined_flag=$lt_allow_undefined_flag
13384 # Flag that forces no undefined symbols.
13385 no_undefined_flag=$lt_no_undefined_flag
13387 # Commands used to finish a libtool library installation in a directory.
13388 finish_cmds=$lt_finish_cmds
13390 # Same as above, but a single script fragment to be evaled but not shown.
13391 finish_eval=$lt_finish_eval
13393 # Take the output of nm and produce a listing of raw symbols and C names.
13394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13396 # Transform the output of nm in a proper C declaration
13397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13399 # Transform the output of nm in a C name address pair
13400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13402 # This is the shared library runtime path variable.
13403 runpath_var=$runpath_var
13405 # This is the shared library path variable.
13406 shlibpath_var=$shlibpath_var
13408 # Is shlibpath searched before the hard-coded library search path?
13409 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13411 # How to hardcode a shared library path into an executable.
13412 hardcode_action=$hardcode_action
13414 # Whether we should hardcode library paths into libraries.
13415 hardcode_into_libs=$hardcode_into_libs
13417 # Flag to hardcode \$libdir into a binary during linking.
13418 # This must work even if \$libdir does not exist.
13419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13421 # If ld is used when linking, flag to hardcode \$libdir into
13422 # a binary during linking. This must work even if \$libdir does
13423 # not exist.
13424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13426 # Whether we need a single -rpath flag with a separated argument.
13427 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13429 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13430 # resulting binary.
13431 hardcode_direct=$hardcode_direct
13433 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13434 # resulting binary.
13435 hardcode_minus_L=$hardcode_minus_L
13437 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13438 # the resulting binary.
13439 hardcode_shlibpath_var=$hardcode_shlibpath_var
13441 # Set to yes if building a shared library automatically hardcodes DIR into the library
13442 # and all subsequent libraries and executables linked against it.
13443 hardcode_automatic=$hardcode_automatic
13445 # Variables whose values should be saved in libtool wrapper scripts and
13446 # restored at relink time.
13447 variables_saved_for_relink="$variables_saved_for_relink"
13449 # Whether libtool must link a program against all its dependency libraries.
13450 link_all_deplibs=$link_all_deplibs
13452 # Compile-time system search path for libraries
13453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13455 # Run-time system search path for libraries
13456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13458 # Fix the shell variable \$srcfile for the compiler.
13459 fix_srcfile_path=$lt_fix_srcfile_path
13461 # Set to yes if exported symbols are required.
13462 always_export_symbols=$always_export_symbols
13464 # The commands to list exported symbols.
13465 export_symbols_cmds=$lt_export_symbols_cmds
13467 # The commands to extract the exported symbol list from a shared archive.
13468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13470 # Symbols that should not be listed in the preloaded symbols.
13471 exclude_expsyms=$lt_exclude_expsyms
13473 # Symbols that must always be exported.
13474 include_expsyms=$lt_include_expsyms
13476 # ### END LIBTOOL CONFIG
13478 __EOF__
13481 case $host_os in
13482 aix3*)
13483 cat <<\EOF >> "$cfgfile"
13485 # AIX sometimes has problems with the GCC collect2 program. For some
13486 # reason, if we set the COLLECT_NAMES environment variable, the problems
13487 # vanish in a puff of smoke.
13488 if test "X${COLLECT_NAMES+set}" != Xset; then
13489 COLLECT_NAMES=
13490 export COLLECT_NAMES
13494 esac
13496 # We use sed instead of cat because bash on DJGPP gets confused if
13497 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13498 # text mode, it properly converts lines to CR/LF. This bash problem
13499 # is reportedly fixed, but why not run on old versions too?
13500 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13502 mv -f "$cfgfile" "$ofile" || \
13503 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13504 chmod +x "$ofile"
13506 else
13507 # If there is no Makefile yet, we rely on a make rule to execute
13508 # `config.status --recheck' to rerun these tests and create the
13509 # libtool script then.
13510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13511 if test -f "$ltmain_in"; then
13512 test -f Makefile && make "$ltmain"
13517 ac_ext=c
13518 ac_cpp='$CPP $CPPFLAGS'
13519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13523 CC="$lt_save_CC"
13526 # Check whether --with-tags was given.
13527 if test "${with_tags+set}" = set; then
13528 withval=$with_tags; tagnames="$withval"
13532 if test -f "$ltmain" && test -n "$tagnames"; then
13533 if test ! -f "${ofile}"; then
13534 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13535 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13538 if test -z "$LTCC"; then
13539 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13540 if test -z "$LTCC"; then
13541 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13542 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13543 else
13544 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13545 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13548 if test -z "$LTCFLAGS"; then
13549 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13552 # Extract list of available tagged configurations in $ofile.
13553 # Note that this assumes the entire list is on one line.
13554 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13557 for tagname in $tagnames; do
13558 IFS="$lt_save_ifs"
13559 # Check whether tagname contains only valid characters
13560 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13561 "") ;;
13562 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13563 echo "$as_me: error: invalid tag name: $tagname" >&2;}
13564 { (exit 1); exit 1; }; }
13566 esac
13568 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13569 then
13570 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13571 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13572 { (exit 1); exit 1; }; }
13575 # Update the list of available tags.
13576 if test -n "$tagname"; then
13577 echo appending configuration tag \"$tagname\" to $ofile
13579 case $tagname in
13580 CXX)
13581 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13582 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13583 (test "X$CXX" != "Xg++"))) ; then
13584 ac_ext=cpp
13585 ac_cpp='$CXXCPP $CPPFLAGS'
13586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13593 archive_cmds_need_lc_CXX=no
13594 allow_undefined_flag_CXX=
13595 always_export_symbols_CXX=no
13596 archive_expsym_cmds_CXX=
13597 export_dynamic_flag_spec_CXX=
13598 hardcode_direct_CXX=no
13599 hardcode_libdir_flag_spec_CXX=
13600 hardcode_libdir_flag_spec_ld_CXX=
13601 hardcode_libdir_separator_CXX=
13602 hardcode_minus_L_CXX=no
13603 hardcode_shlibpath_var_CXX=unsupported
13604 hardcode_automatic_CXX=no
13605 module_cmds_CXX=
13606 module_expsym_cmds_CXX=
13607 link_all_deplibs_CXX=unknown
13608 old_archive_cmds_CXX=$old_archive_cmds
13609 no_undefined_flag_CXX=
13610 whole_archive_flag_spec_CXX=
13611 enable_shared_with_static_runtimes_CXX=no
13613 # Dependencies to place before and after the object being linked:
13614 predep_objects_CXX=
13615 postdep_objects_CXX=
13616 predeps_CXX=
13617 postdeps_CXX=
13618 compiler_lib_search_path_CXX=
13620 # Source file extension for C++ test sources.
13621 ac_ext=cpp
13623 # Object file extension for compiled C++ test sources.
13624 objext=o
13625 objext_CXX=$objext
13627 # Code to be used in simple compile tests
13628 lt_simple_compile_test_code="int some_variable = 0;"
13630 # Code to be used in simple link tests
13631 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13635 # If no C compiler was specified, use CC.
13636 LTCC=${LTCC-"$CC"}
13638 # If no C compiler flags were specified, use CFLAGS.
13639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13641 # Allow CC to be a program name with arguments.
13642 compiler=$CC
13645 # save warnings/boilerplate of simple test code
13646 ac_outfile=conftest.$ac_objext
13647 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13649 _lt_compiler_boilerplate=`cat conftest.err`
13650 $rm conftest*
13652 ac_outfile=conftest.$ac_objext
13653 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13655 _lt_linker_boilerplate=`cat conftest.err`
13656 $rm conftest*
13659 # Allow CC to be a program name with arguments.
13660 lt_save_CC=$CC
13661 lt_save_LD=$LD
13662 lt_save_GCC=$GCC
13663 GCC=$GXX
13664 lt_save_with_gnu_ld=$with_gnu_ld
13665 lt_save_path_LD=$lt_cv_path_LD
13666 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13667 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13668 else
13669 $as_unset lt_cv_prog_gnu_ld
13671 if test -n "${lt_cv_path_LDCXX+set}"; then
13672 lt_cv_path_LD=$lt_cv_path_LDCXX
13673 else
13674 $as_unset lt_cv_path_LD
13676 test -z "${LDCXX+set}" || LD=$LDCXX
13677 CC=${CXX-"c++"}
13678 compiler=$CC
13679 compiler_CXX=$CC
13680 for cc_temp in $compiler""; do
13681 case $cc_temp in
13682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13684 \-*) ;;
13685 *) break;;
13686 esac
13687 done
13688 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13691 # We don't want -fno-exception wen compiling C++ code, so set the
13692 # no_builtin_flag separately
13693 if test "$GXX" = yes; then
13694 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13695 else
13696 lt_prog_compiler_no_builtin_flag_CXX=
13699 if test "$GXX" = yes; then
13700 # Set up default GNU C++ configuration
13703 # Check whether --with-gnu-ld was given.
13704 if test "${with_gnu_ld+set}" = set; then
13705 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13706 else
13707 with_gnu_ld=no
13710 ac_prog=ld
13711 if test "$GCC" = yes; then
13712 # Check if gcc -print-prog-name=ld gives a path.
13713 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13714 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13715 case $host in
13716 *-*-mingw*)
13717 # gcc leaves a trailing carriage return which upsets mingw
13718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13721 esac
13722 case $ac_prog in
13723 # Accept absolute paths.
13724 [\\/]* | ?:[\\/]*)
13725 re_direlt='/[^/][^/]*/\.\./'
13726 # Canonicalize the pathname of ld
13727 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13728 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13729 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13730 done
13731 test -z "$LD" && LD="$ac_prog"
13734 # If it fails, then pretend we aren't using GCC.
13735 ac_prog=ld
13738 # If it is relative, then search for the first ld in PATH.
13739 with_gnu_ld=unknown
13741 esac
13742 elif test "$with_gnu_ld" = yes; then
13743 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13744 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13745 else
13746 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13747 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13749 if test "${lt_cv_path_LD+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 if test -z "$LD"; then
13753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13754 for ac_dir in $PATH; do
13755 IFS="$lt_save_ifs"
13756 test -z "$ac_dir" && ac_dir=.
13757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13758 lt_cv_path_LD="$ac_dir/$ac_prog"
13759 # Check to see if the program is GNU ld. I'd rather use --version,
13760 # but apparently some variants of GNU ld only accept -v.
13761 # Break only if it was the GNU/non-GNU ld that we prefer.
13762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13763 *GNU* | *'with BFD'*)
13764 test "$with_gnu_ld" != no && break
13767 test "$with_gnu_ld" != yes && break
13769 esac
13771 done
13772 IFS="$lt_save_ifs"
13773 else
13774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13778 LD="$lt_cv_path_LD"
13779 if test -n "$LD"; then
13780 { echo "$as_me:$LINENO: result: $LD" >&5
13781 echo "${ECHO_T}$LD" >&6; }
13782 else
13783 { echo "$as_me:$LINENO: result: no" >&5
13784 echo "${ECHO_T}no" >&6; }
13786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13788 { (exit 1); exit 1; }; }
13789 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13791 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13795 case `$LD -v 2>&1 </dev/null` in
13796 *GNU* | *'with BFD'*)
13797 lt_cv_prog_gnu_ld=yes
13800 lt_cv_prog_gnu_ld=no
13802 esac
13804 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13805 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13806 with_gnu_ld=$lt_cv_prog_gnu_ld
13810 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13811 # archiving commands below assume that GNU ld is being used.
13812 if test "$with_gnu_ld" = yes; then
13813 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814 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'
13816 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13817 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13819 # If archive_cmds runs LD, not CC, wlarc should be empty
13820 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13821 # investigate it a little bit more. (MM)
13822 wlarc='${wl}'
13824 # ancient GNU ld didn't support --whole-archive et. al.
13825 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13826 grep 'no-whole-archive' > /dev/null; then
13827 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13828 else
13829 whole_archive_flag_spec_CXX=
13831 else
13832 with_gnu_ld=no
13833 wlarc=
13835 # A generic and very simple default shared library creation
13836 # command for GNU C++ for the case where it uses the native
13837 # linker, instead of GNU ld. If possible, this setting should
13838 # overridden to take advantage of the native linker features on
13839 # the platform it is being used on.
13840 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13843 # Commands to make compiler produce verbose output that lists
13844 # what "hidden" libraries, object files and flags are used when
13845 # linking a shared library.
13846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13848 else
13849 GXX=no
13850 with_gnu_ld=no
13851 wlarc=
13854 # PORTME: fill in a description of your system's C++ link characteristics
13855 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13856 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13857 ld_shlibs_CXX=yes
13858 case $host_os in
13859 aix3*)
13860 # FIXME: insert proper C++ library support
13861 ld_shlibs_CXX=no
13863 aix4* | aix5*)
13864 if test "$host_cpu" = ia64; then
13865 # On IA64, the linker does run time linking by default, so we don't
13866 # have to do anything special.
13867 aix_use_runtimelinking=no
13868 exp_sym_flag='-Bexport'
13869 no_entry_flag=""
13870 else
13871 aix_use_runtimelinking=no
13873 # Test if we are trying to use run time linking or normal
13874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13875 # need to do runtime linking.
13876 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13877 for ld_flag in $LDFLAGS; do
13878 case $ld_flag in
13879 *-brtl*)
13880 aix_use_runtimelinking=yes
13881 break
13883 esac
13884 done
13886 esac
13888 exp_sym_flag='-bexport'
13889 no_entry_flag='-bnoentry'
13892 # When large executables or shared objects are built, AIX ld can
13893 # have problems creating the table of contents. If linking a library
13894 # or program results in "error TOC overflow" add -mminimal-toc to
13895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13898 archive_cmds_CXX=''
13899 hardcode_direct_CXX=yes
13900 hardcode_libdir_separator_CXX=':'
13901 link_all_deplibs_CXX=yes
13903 if test "$GXX" = yes; then
13904 case $host_os in aix4.[012]|aix4.[012].*)
13905 # We only want to do this on AIX 4.2 and lower, the check
13906 # below for broken collect2 doesn't work under 4.3+
13907 collect2name=`${CC} -print-prog-name=collect2`
13908 if test -f "$collect2name" && \
13909 strings "$collect2name" | grep resolve_lib_name >/dev/null
13910 then
13911 # We have reworked collect2
13913 else
13914 # We have old collect2
13915 hardcode_direct_CXX=unsupported
13916 # It fails to find uninstalled libraries when the uninstalled
13917 # path is not listed in the libpath. Setting hardcode_minus_L
13918 # to unsupported forces relinking
13919 hardcode_minus_L_CXX=yes
13920 hardcode_libdir_flag_spec_CXX='-L$libdir'
13921 hardcode_libdir_separator_CXX=
13924 esac
13925 shared_flag='-shared'
13926 if test "$aix_use_runtimelinking" = yes; then
13927 shared_flag="$shared_flag "'${wl}-G'
13929 else
13930 # not using gcc
13931 if test "$host_cpu" = ia64; then
13932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13933 # chokes on -Wl,-G. The following line is correct:
13934 shared_flag='-G'
13935 else
13936 if test "$aix_use_runtimelinking" = yes; then
13937 shared_flag='${wl}-G'
13938 else
13939 shared_flag='${wl}-bM:SRE'
13944 # It seems that -bexpall does not export symbols beginning with
13945 # underscore (_), so it is better to generate a list of symbols to export.
13946 always_export_symbols_CXX=yes
13947 if test "$aix_use_runtimelinking" = yes; then
13948 # Warning - without using the other runtime loading flags (-brtl),
13949 # -berok will link without error, but may produce a broken library.
13950 allow_undefined_flag_CXX='-berok'
13951 # Determine the default libpath from the value encoded in an empty executable.
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13960 main ()
13964 return 0;
13966 _ACEOF
13967 rm -f conftest.$ac_objext conftest$ac_exeext
13968 if { (ac_try="$ac_link"
13969 case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_link") 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } && {
13981 test -z "$ac_cxx_werror_flag" ||
13982 test ! -s conftest.err
13983 } && test -s conftest$ac_exeext &&
13984 $as_test_x conftest$ac_exeext; then
13986 lt_aix_libpath_sed='
13987 /Import File Strings/,/^$/ {
13988 /^0/ {
13989 s/^0 *\(.*\)$/\1/
13993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13994 # Check for a 64-bit object if we didn't find anything.
13995 if test -z "$aix_libpath"; then
13996 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13998 else
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14006 conftest$ac_exeext conftest.$ac_ext
14007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14009 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14011 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"
14012 else
14013 if test "$host_cpu" = ia64; then
14014 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14015 allow_undefined_flag_CXX="-z nodefs"
14016 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"
14017 else
14018 # Determine the default libpath from the value encoded in an empty executable.
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14027 main ()
14031 return 0;
14033 _ACEOF
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14039 esac
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_link") 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } && {
14048 test -z "$ac_cxx_werror_flag" ||
14049 test ! -s conftest.err
14050 } && test -s conftest$ac_exeext &&
14051 $as_test_x conftest$ac_exeext; then
14053 lt_aix_libpath_sed='
14054 /Import File Strings/,/^$/ {
14055 /^0/ {
14056 s/^0 *\(.*\)$/\1/
14060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14061 # Check for a 64-bit object if we didn't find anything.
14062 if test -z "$aix_libpath"; then
14063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14065 else
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14073 conftest$ac_exeext conftest.$ac_ext
14074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14076 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14077 # Warning - without using the other run time loading flags,
14078 # -berok will link without error, but may produce a broken library.
14079 no_undefined_flag_CXX=' ${wl}-bernotok'
14080 allow_undefined_flag_CXX=' ${wl}-berok'
14081 # Exported symbols can be pulled into shared objects from archives
14082 whole_archive_flag_spec_CXX='$convenience'
14083 archive_cmds_need_lc_CXX=yes
14084 # This is similar to how AIX traditionally builds its shared libraries.
14085 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'
14090 beos*)
14091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14092 allow_undefined_flag_CXX=unsupported
14093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14094 # support --undefined. This deserves some investigation. FIXME
14095 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14096 else
14097 ld_shlibs_CXX=no
14101 chorus*)
14102 case $cc_basename in
14104 # FIXME: insert proper C++ library support
14105 ld_shlibs_CXX=no
14107 esac
14110 cygwin* | mingw* | pw32*)
14111 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14112 # as there is no search path for DLLs.
14113 hardcode_libdir_flag_spec_CXX='-L$libdir'
14114 allow_undefined_flag_CXX=unsupported
14115 always_export_symbols_CXX=no
14116 enable_shared_with_static_runtimes_CXX=yes
14118 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14119 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'
14120 # If the export-symbols file already is a .def file (1st line
14121 # is EXPORTS), use it as is; otherwise, prepend...
14122 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14123 cp $export_symbols $output_objdir/$soname.def;
14124 else
14125 echo EXPORTS > $output_objdir/$soname.def;
14126 cat $export_symbols >> $output_objdir/$soname.def;
14128 $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'
14129 else
14130 ld_shlibs_CXX=no
14133 darwin* | rhapsody*)
14134 case $host_os in
14135 rhapsody* | darwin1.[012])
14136 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
14138 *) # Darwin 1.3 on
14139 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14140 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14141 else
14142 case ${MACOSX_DEPLOYMENT_TARGET} in
14143 10.[012])
14144 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14146 10.*)
14147 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
14149 esac
14152 esac
14153 archive_cmds_need_lc_CXX=no
14154 hardcode_direct_CXX=no
14155 hardcode_automatic_CXX=yes
14156 hardcode_shlibpath_var_CXX=unsupported
14157 whole_archive_flag_spec_CXX=''
14158 link_all_deplibs_CXX=yes
14160 if test "$GXX" = yes ; then
14161 lt_int_apple_cc_single_mod=no
14162 output_verbose_link_cmd='echo'
14163 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
14164 lt_int_apple_cc_single_mod=yes
14166 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14167 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14168 else
14169 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'
14171 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14173 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14174 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}'
14175 else
14176 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}'
14178 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}'
14179 else
14180 case $cc_basename in
14181 xlc*)
14182 output_verbose_link_cmd='echo'
14183 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'
14184 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14186 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}'
14187 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}'
14190 ld_shlibs_CXX=no
14192 esac
14196 dgux*)
14197 case $cc_basename in
14198 ec++*)
14199 # FIXME: insert proper C++ library support
14200 ld_shlibs_CXX=no
14202 ghcx*)
14203 # Green Hills C++ Compiler
14204 # FIXME: insert proper C++ library support
14205 ld_shlibs_CXX=no
14208 # FIXME: insert proper C++ library support
14209 ld_shlibs_CXX=no
14211 esac
14213 freebsd[12]*)
14214 # C++ shared libraries reported to be fairly broken before switch to ELF
14215 ld_shlibs_CXX=no
14217 freebsd-elf*)
14218 archive_cmds_need_lc_CXX=no
14220 freebsd* | dragonfly*)
14221 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14222 # conventions
14223 ld_shlibs_CXX=yes
14225 gnu*)
14227 hpux9*)
14228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14229 hardcode_libdir_separator_CXX=:
14230 export_dynamic_flag_spec_CXX='${wl}-E'
14231 hardcode_direct_CXX=yes
14232 hardcode_minus_L_CXX=yes # Not in the search PATH,
14233 # but as the default
14234 # location of the library.
14236 case $cc_basename in
14237 CC*)
14238 # FIXME: insert proper C++ library support
14239 ld_shlibs_CXX=no
14241 aCC*)
14242 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'
14243 # Commands to make compiler produce verbose output that lists
14244 # what "hidden" libraries, object files and flags are used when
14245 # linking a shared library.
14247 # There doesn't appear to be a way to prevent this compiler from
14248 # explicitly linking system object files so we need to strip them
14249 # from the output so that they don't get included in the library
14250 # dependencies.
14251 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'
14254 if test "$GXX" = yes; then
14255 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'
14256 else
14257 # FIXME: insert proper C++ library support
14258 ld_shlibs_CXX=no
14261 esac
14263 hpux10*|hpux11*)
14264 if test $with_gnu_ld = no; then
14265 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14266 hardcode_libdir_separator_CXX=:
14268 case $host_cpu in
14269 hppa*64*|ia64*) ;;
14271 export_dynamic_flag_spec_CXX='${wl}-E'
14273 esac
14275 case $host_cpu in
14276 hppa*64*|ia64*)
14277 hardcode_direct_CXX=no
14278 hardcode_shlibpath_var_CXX=no
14281 hardcode_direct_CXX=yes
14282 hardcode_minus_L_CXX=yes # Not in the search PATH,
14283 # but as the default
14284 # location of the library.
14286 esac
14288 case $cc_basename in
14289 CC*)
14290 # FIXME: insert proper C++ library support
14291 ld_shlibs_CXX=no
14293 aCC*)
14294 case $host_cpu in
14295 hppa*64*)
14296 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14298 ia64*)
14299 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14302 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14304 esac
14305 # Commands to make compiler produce verbose output that lists
14306 # what "hidden" libraries, object files and flags are used when
14307 # linking a shared library.
14309 # There doesn't appear to be a way to prevent this compiler from
14310 # explicitly linking system object files so we need to strip them
14311 # from the output so that they don't get included in the library
14312 # dependencies.
14313 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'
14316 if test "$GXX" = yes; then
14317 if test $with_gnu_ld = no; then
14318 case $host_cpu in
14319 hppa*64*)
14320 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14322 ia64*)
14323 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14326 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'
14328 esac
14330 else
14331 # FIXME: insert proper C++ library support
14332 ld_shlibs_CXX=no
14335 esac
14337 interix[3-9]*)
14338 hardcode_direct_CXX=no
14339 hardcode_shlibpath_var_CXX=no
14340 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14341 export_dynamic_flag_spec_CXX='${wl}-E'
14342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14343 # Instead, shared libraries are loaded at an image base (0x10000000 by
14344 # default) and relocated if they conflict, which is a slow very memory
14345 # consuming and fragmenting process. To avoid this, we pick a random,
14346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14348 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'
14349 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'
14351 irix5* | irix6*)
14352 case $cc_basename in
14353 CC*)
14354 # SGI C++
14355 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'
14357 # Archives containing C++ object files must be created using
14358 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14359 # necessary to make sure instantiated templates are included
14360 # in the archive.
14361 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14364 if test "$GXX" = yes; then
14365 if test "$with_gnu_ld" = no; then
14366 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'
14367 else
14368 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'
14371 link_all_deplibs_CXX=yes
14373 esac
14374 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14375 hardcode_libdir_separator_CXX=:
14377 linux* | k*bsd*-gnu)
14378 case $cc_basename in
14379 KCC*)
14380 # Kuck and Associates, Inc. (KAI) C++ Compiler
14382 # KCC will only create a shared library if the output file
14383 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14384 # to its proper name (with version) after linking.
14385 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'
14386 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'
14387 # Commands to make compiler produce verbose output that lists
14388 # what "hidden" libraries, object files and flags are used when
14389 # linking a shared library.
14391 # There doesn't appear to be a way to prevent this compiler from
14392 # explicitly linking system object files so we need to strip them
14393 # from the output so that they don't get included in the library
14394 # dependencies.
14395 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'
14397 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14398 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14400 # Archives containing C++ object files must be created using
14401 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14402 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14404 icpc*)
14405 # Intel C++
14406 with_gnu_ld=yes
14407 # version 8.0 and above of icpc choke on multiply defined symbols
14408 # if we add $predep_objects and $postdep_objects, however 7.1 and
14409 # earlier do not add the objects themselves.
14410 case `$CC -V 2>&1` in
14411 *"Version 7."*)
14412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14413 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'
14415 *) # Version 8.0 or newer
14416 tmp_idyn=
14417 case $host_cpu in
14418 ia64*) tmp_idyn=' -i_dynamic';;
14419 esac
14420 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14421 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'
14423 esac
14424 archive_cmds_need_lc_CXX=no
14425 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14427 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14429 pgCC*)
14430 # Portland Group C++ compiler
14431 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14432 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'
14434 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14435 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14436 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'
14438 cxx*)
14439 # Compaq C++
14440 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14441 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'
14443 runpath_var=LD_RUN_PATH
14444 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14445 hardcode_libdir_separator_CXX=:
14447 # Commands to make compiler produce verbose output that lists
14448 # what "hidden" libraries, object files and flags are used when
14449 # linking a shared library.
14451 # There doesn't appear to be a way to prevent this compiler from
14452 # explicitly linking system object files so we need to strip them
14453 # from the output so that they don't get included in the library
14454 # dependencies.
14455 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'
14458 case `$CC -V 2>&1 | sed 5q` in
14459 *Sun\ C*)
14460 # Sun C++ 5.9
14461 no_undefined_flag_CXX=' -zdefs'
14462 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14463 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'
14464 hardcode_libdir_flag_spec_CXX='-R$libdir'
14465 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'
14467 # Not sure whether something based on
14468 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14469 # would be better.
14470 output_verbose_link_cmd='echo'
14472 # Archives containing C++ object files must be created using
14473 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14474 # necessary to make sure instantiated templates are included
14475 # in the archive.
14476 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14478 esac
14480 esac
14482 lynxos*)
14483 # FIXME: insert proper C++ library support
14484 ld_shlibs_CXX=no
14486 m88k*)
14487 # FIXME: insert proper C++ library support
14488 ld_shlibs_CXX=no
14490 mvs*)
14491 case $cc_basename in
14492 cxx*)
14493 # FIXME: insert proper C++ library support
14494 ld_shlibs_CXX=no
14497 # FIXME: insert proper C++ library support
14498 ld_shlibs_CXX=no
14500 esac
14502 netbsd*)
14503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14504 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14505 wlarc=
14506 hardcode_libdir_flag_spec_CXX='-R$libdir'
14507 hardcode_direct_CXX=yes
14508 hardcode_shlibpath_var_CXX=no
14510 # Workaround some broken pre-1.5 toolchains
14511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14513 openbsd2*)
14514 # C++ shared libraries are fairly broken
14515 ld_shlibs_CXX=no
14517 openbsd*)
14518 if test -f /usr/libexec/ld.so; then
14519 hardcode_direct_CXX=yes
14520 hardcode_shlibpath_var_CXX=no
14521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14524 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14525 export_dynamic_flag_spec_CXX='${wl}-E'
14526 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14528 output_verbose_link_cmd='echo'
14529 else
14530 ld_shlibs_CXX=no
14533 osf3*)
14534 case $cc_basename in
14535 KCC*)
14536 # Kuck and Associates, Inc. (KAI) C++ Compiler
14538 # KCC will only create a shared library if the output file
14539 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14540 # to its proper name (with version) after linking.
14541 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'
14543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14544 hardcode_libdir_separator_CXX=:
14546 # Archives containing C++ object files must be created using
14547 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14548 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14551 RCC*)
14552 # Rational C++ 2.4.1
14553 # FIXME: insert proper C++ library support
14554 ld_shlibs_CXX=no
14556 cxx*)
14557 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14558 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'
14560 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14561 hardcode_libdir_separator_CXX=:
14563 # Commands to make compiler produce verbose output that lists
14564 # what "hidden" libraries, object files and flags are used when
14565 # linking a shared library.
14567 # There doesn't appear to be a way to prevent this compiler from
14568 # explicitly linking system object files so we need to strip them
14569 # from the output so that they don't get included in the library
14570 # dependencies.
14571 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'
14574 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14575 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14576 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'
14578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14579 hardcode_libdir_separator_CXX=:
14581 # Commands to make compiler produce verbose output that lists
14582 # what "hidden" libraries, object files and flags are used when
14583 # linking a shared library.
14584 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14586 else
14587 # FIXME: insert proper C++ library support
14588 ld_shlibs_CXX=no
14591 esac
14593 osf4* | osf5*)
14594 case $cc_basename in
14595 KCC*)
14596 # Kuck and Associates, Inc. (KAI) C++ Compiler
14598 # KCC will only create a shared library if the output file
14599 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14600 # to its proper name (with version) after linking.
14601 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'
14603 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14604 hardcode_libdir_separator_CXX=:
14606 # Archives containing C++ object files must be created using
14607 # the KAI C++ compiler.
14608 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14610 RCC*)
14611 # Rational C++ 2.4.1
14612 # FIXME: insert proper C++ library support
14613 ld_shlibs_CXX=no
14615 cxx*)
14616 allow_undefined_flag_CXX=' -expect_unresolved \*'
14617 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'
14618 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14619 echo "-hidden">> $lib.exp~
14620 $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~
14621 $rm $lib.exp'
14623 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14624 hardcode_libdir_separator_CXX=:
14626 # Commands to make compiler produce verbose output that lists
14627 # what "hidden" libraries, object files and flags are used when
14628 # linking a shared library.
14630 # There doesn't appear to be a way to prevent this compiler from
14631 # explicitly linking system object files so we need to strip them
14632 # from the output so that they don't get included in the library
14633 # dependencies.
14634 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'
14637 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14638 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14639 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'
14641 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14642 hardcode_libdir_separator_CXX=:
14644 # Commands to make compiler produce verbose output that lists
14645 # what "hidden" libraries, object files and flags are used when
14646 # linking a shared library.
14647 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14649 else
14650 # FIXME: insert proper C++ library support
14651 ld_shlibs_CXX=no
14654 esac
14656 psos*)
14657 # FIXME: insert proper C++ library support
14658 ld_shlibs_CXX=no
14660 sunos4*)
14661 case $cc_basename in
14662 CC*)
14663 # Sun C++ 4.x
14664 # FIXME: insert proper C++ library support
14665 ld_shlibs_CXX=no
14667 lcc*)
14668 # Lucid
14669 # FIXME: insert proper C++ library support
14670 ld_shlibs_CXX=no
14673 # FIXME: insert proper C++ library support
14674 ld_shlibs_CXX=no
14676 esac
14678 solaris*)
14679 case $cc_basename in
14680 CC*)
14681 # Sun C++ 4.2, 5.x and Centerline C++
14682 archive_cmds_need_lc_CXX=yes
14683 no_undefined_flag_CXX=' -zdefs'
14684 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14685 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14686 $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'
14688 hardcode_libdir_flag_spec_CXX='-R$libdir'
14689 hardcode_shlibpath_var_CXX=no
14690 case $host_os in
14691 solaris2.[0-5] | solaris2.[0-5].*) ;;
14693 # The compiler driver will combine and reorder linker options,
14694 # but understands `-z linker_flag'.
14695 # Supported since Solaris 2.6 (maybe 2.5.1?)
14696 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14698 esac
14699 link_all_deplibs_CXX=yes
14701 output_verbose_link_cmd='echo'
14703 # Archives containing C++ object files must be created using
14704 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14705 # necessary to make sure instantiated templates are included
14706 # in the archive.
14707 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14709 gcx*)
14710 # Green Hills C++ Compiler
14711 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14713 # The C++ compiler must be used to create the archive.
14714 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14717 # GNU C++ compiler with Solaris linker
14718 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14719 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14720 if $CC --version | grep -v '^2\.7' > /dev/null; then
14721 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14722 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14723 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14725 # Commands to make compiler produce verbose output that lists
14726 # what "hidden" libraries, object files and flags are used when
14727 # linking a shared library.
14728 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14729 else
14730 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14731 # platform.
14732 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14733 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14734 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14736 # Commands to make compiler produce verbose output that lists
14737 # what "hidden" libraries, object files and flags are used when
14738 # linking a shared library.
14739 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14742 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14743 case $host_os in
14744 solaris2.[0-5] | solaris2.[0-5].*) ;;
14746 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14748 esac
14751 esac
14753 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14754 no_undefined_flag_CXX='${wl}-z,text'
14755 archive_cmds_need_lc_CXX=no
14756 hardcode_shlibpath_var_CXX=no
14757 runpath_var='LD_RUN_PATH'
14759 case $cc_basename in
14760 CC*)
14761 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14762 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14765 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14766 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14768 esac
14770 sysv5* | sco3.2v5* | sco5v6*)
14771 # Note: We can NOT use -z defs as we might desire, because we do not
14772 # link with -lc, and that would cause any symbols used from libc to
14773 # always be unresolved, which means just about no library would
14774 # ever link correctly. If we're not using GNU ld we use -z text
14775 # though, which does catch some bad symbols but isn't as heavy-handed
14776 # as -z defs.
14777 # For security reasons, it is highly recommended that you always
14778 # use absolute paths for naming shared libraries, and exclude the
14779 # DT_RUNPATH tag from executables and libraries. But doing so
14780 # requires that you compile everything twice, which is a pain.
14781 # So that behaviour is only enabled if SCOABSPATH is set to a
14782 # non-empty value in the environment. Most likely only useful for
14783 # creating official distributions of packages.
14784 # This is a hack until libtool officially supports absolute path
14785 # names for shared libraries.
14786 no_undefined_flag_CXX='${wl}-z,text'
14787 allow_undefined_flag_CXX='${wl}-z,nodefs'
14788 archive_cmds_need_lc_CXX=no
14789 hardcode_shlibpath_var_CXX=no
14790 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14791 hardcode_libdir_separator_CXX=':'
14792 link_all_deplibs_CXX=yes
14793 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14794 runpath_var='LD_RUN_PATH'
14796 case $cc_basename in
14797 CC*)
14798 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14799 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14802 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14803 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14805 esac
14807 tandem*)
14808 case $cc_basename in
14809 NCC*)
14810 # NonStop-UX NCC 3.20
14811 # FIXME: insert proper C++ library support
14812 ld_shlibs_CXX=no
14815 # FIXME: insert proper C++ library support
14816 ld_shlibs_CXX=no
14818 esac
14820 vxworks*)
14821 # FIXME: insert proper C++ library support
14822 ld_shlibs_CXX=no
14825 # FIXME: insert proper C++ library support
14826 ld_shlibs_CXX=no
14828 esac
14829 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14830 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14831 test "$ld_shlibs_CXX" = no && can_build_shared=no
14833 GCC_CXX="$GXX"
14834 LD_CXX="$LD"
14837 cat > conftest.$ac_ext <<EOF
14838 class Foo
14840 public:
14841 Foo (void) { a = 0; }
14842 private:
14843 int a;
14847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14848 (eval $ac_compile) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; then
14852 # Parse the compiler output and extract the necessary
14853 # objects, libraries and library flags.
14855 # Sentinel used to keep track of whether or not we are before
14856 # the conftest object file.
14857 pre_test_object_deps_done=no
14859 # The `*' in the case matches for architectures that use `case' in
14860 # $output_verbose_cmd can trigger glob expansion during the loop
14861 # eval without this substitution.
14862 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14864 for p in `eval $output_verbose_link_cmd`; do
14865 case $p in
14867 -L* | -R* | -l*)
14868 # Some compilers place space between "-{L,R}" and the path.
14869 # Remove the space.
14870 if test $p = "-L" \
14871 || test $p = "-R"; then
14872 prev=$p
14873 continue
14874 else
14875 prev=
14878 if test "$pre_test_object_deps_done" = no; then
14879 case $p in
14880 -L* | -R*)
14881 # Internal compiler library paths should come after those
14882 # provided the user. The postdeps already come after the
14883 # user supplied libs so there is no need to process them.
14884 if test -z "$compiler_lib_search_path_CXX"; then
14885 compiler_lib_search_path_CXX="${prev}${p}"
14886 else
14887 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14890 # The "-l" case would never come before the object being
14891 # linked, so don't bother handling this case.
14892 esac
14893 else
14894 if test -z "$postdeps_CXX"; then
14895 postdeps_CXX="${prev}${p}"
14896 else
14897 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14902 *.$objext)
14903 # This assumes that the test object file only shows up
14904 # once in the compiler output.
14905 if test "$p" = "conftest.$objext"; then
14906 pre_test_object_deps_done=yes
14907 continue
14910 if test "$pre_test_object_deps_done" = no; then
14911 if test -z "$predep_objects_CXX"; then
14912 predep_objects_CXX="$p"
14913 else
14914 predep_objects_CXX="$predep_objects_CXX $p"
14916 else
14917 if test -z "$postdep_objects_CXX"; then
14918 postdep_objects_CXX="$p"
14919 else
14920 postdep_objects_CXX="$postdep_objects_CXX $p"
14925 *) ;; # Ignore the rest.
14927 esac
14928 done
14930 # Clean up.
14931 rm -f a.out a.exe
14932 else
14933 echo "libtool.m4: error: problem compiling CXX test program"
14936 $rm -f confest.$objext
14938 # PORTME: override above test on systems where it is broken
14939 case $host_os in
14940 interix[3-9]*)
14941 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14942 # hack all around it, let's just trust "g++" to DTRT.
14943 predep_objects_CXX=
14944 postdep_objects_CXX=
14945 postdeps_CXX=
14948 linux*)
14949 case `$CC -V 2>&1 | sed 5q` in
14950 *Sun\ C*)
14951 # Sun C++ 5.9
14953 # The more standards-conforming stlport4 library is
14954 # incompatible with the Cstd library. Avoid specifying
14955 # it if it's in CXXFLAGS. Ignore libCrun as
14956 # -library=stlport4 depends on it.
14957 case " $CXX $CXXFLAGS " in
14958 *" -library=stlport4 "*)
14959 solaris_use_stlport4=yes
14961 esac
14962 if test "$solaris_use_stlport4" != yes; then
14963 postdeps_CXX='-library=Cstd -library=Crun'
14966 esac
14969 solaris*)
14970 case $cc_basename in
14971 CC*)
14972 # The more standards-conforming stlport4 library is
14973 # incompatible with the Cstd library. Avoid specifying
14974 # it if it's in CXXFLAGS. Ignore libCrun as
14975 # -library=stlport4 depends on it.
14976 case " $CXX $CXXFLAGS " in
14977 *" -library=stlport4 "*)
14978 solaris_use_stlport4=yes
14980 esac
14982 # Adding this requires a known-good setup of shared libraries for
14983 # Sun compiler versions before 5.6, else PIC objects from an old
14984 # archive will be linked into the output, leading to subtle bugs.
14985 if test "$solaris_use_stlport4" != yes; then
14986 postdeps_CXX='-library=Cstd -library=Crun'
14989 esac
14991 esac
14994 case " $postdeps_CXX " in
14995 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14996 esac
14998 lt_prog_compiler_wl_CXX=
14999 lt_prog_compiler_pic_CXX=
15000 lt_prog_compiler_static_CXX=
15002 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15003 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15005 # C++ specific cases for pic, static, wl, etc.
15006 if test "$GXX" = yes; then
15007 lt_prog_compiler_wl_CXX='-Wl,'
15008 lt_prog_compiler_static_CXX='-static'
15010 case $host_os in
15011 aix*)
15012 # All AIX code is PIC.
15013 if test "$host_cpu" = ia64; then
15014 # AIX 5 now supports IA64 processor
15015 lt_prog_compiler_static_CXX='-Bstatic'
15018 amigaos*)
15019 # FIXME: we need at least 68020 code to build shared libraries, but
15020 # adding the `-m68020' flag to GCC prevents building anything better,
15021 # like `-m68040'.
15022 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15024 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15025 # PIC is the default for these OSes.
15027 mingw* | cygwin* | os2* | pw32*)
15028 # This hack is so that the source file can tell whether it is being
15029 # built for inclusion in a dll (and should export symbols for example).
15030 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15031 # (--disable-auto-import) libraries
15032 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15034 darwin* | rhapsody*)
15035 # PIC is the default on this platform
15036 # Common symbols not allowed in MH_DYLIB files
15037 lt_prog_compiler_pic_CXX='-fno-common'
15039 *djgpp*)
15040 # DJGPP does not support shared libraries at all
15041 lt_prog_compiler_pic_CXX=
15043 interix[3-9]*)
15044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15045 # Instead, we relocate shared libraries at runtime.
15047 sysv4*MP*)
15048 if test -d /usr/nec; then
15049 lt_prog_compiler_pic_CXX=-Kconform_pic
15052 hpux*)
15053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15054 # not for PA HP-UX.
15055 case $host_cpu in
15056 hppa*64*|ia64*)
15059 lt_prog_compiler_pic_CXX='-fPIC'
15061 esac
15064 lt_prog_compiler_pic_CXX='-fPIC'
15066 esac
15067 else
15068 case $host_os in
15069 aix4* | aix5*)
15070 # All AIX code is PIC.
15071 if test "$host_cpu" = ia64; then
15072 # AIX 5 now supports IA64 processor
15073 lt_prog_compiler_static_CXX='-Bstatic'
15074 else
15075 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15078 chorus*)
15079 case $cc_basename in
15080 cxch68*)
15081 # Green Hills C++ Compiler
15082 # _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"
15084 esac
15086 darwin*)
15087 # PIC is the default on this platform
15088 # Common symbols not allowed in MH_DYLIB files
15089 case $cc_basename in
15090 xlc*)
15091 lt_prog_compiler_pic_CXX='-qnocommon'
15092 lt_prog_compiler_wl_CXX='-Wl,'
15094 esac
15096 dgux*)
15097 case $cc_basename in
15098 ec++*)
15099 lt_prog_compiler_pic_CXX='-KPIC'
15101 ghcx*)
15102 # Green Hills C++ Compiler
15103 lt_prog_compiler_pic_CXX='-pic'
15107 esac
15109 freebsd* | dragonfly*)
15110 # FreeBSD uses GNU C++
15112 hpux9* | hpux10* | hpux11*)
15113 case $cc_basename in
15114 CC*)
15115 lt_prog_compiler_wl_CXX='-Wl,'
15116 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15117 if test "$host_cpu" != ia64; then
15118 lt_prog_compiler_pic_CXX='+Z'
15121 aCC*)
15122 lt_prog_compiler_wl_CXX='-Wl,'
15123 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15124 case $host_cpu in
15125 hppa*64*|ia64*)
15126 # +Z the default
15129 lt_prog_compiler_pic_CXX='+Z'
15131 esac
15135 esac
15137 interix*)
15138 # This is c89, which is MS Visual C++ (no shared libs)
15139 # Anyone wants to do a port?
15141 irix5* | irix6* | nonstopux*)
15142 case $cc_basename in
15143 CC*)
15144 lt_prog_compiler_wl_CXX='-Wl,'
15145 lt_prog_compiler_static_CXX='-non_shared'
15146 # CC pic flag -KPIC is the default.
15150 esac
15152 linux* | k*bsd*-gnu)
15153 case $cc_basename in
15154 KCC*)
15155 # KAI C++ Compiler
15156 lt_prog_compiler_wl_CXX='--backend -Wl,'
15157 lt_prog_compiler_pic_CXX='-fPIC'
15159 icpc* | ecpc*)
15160 # Intel C++
15161 lt_prog_compiler_wl_CXX='-Wl,'
15162 lt_prog_compiler_pic_CXX='-KPIC'
15163 lt_prog_compiler_static_CXX='-static'
15165 pgCC*)
15166 # Portland Group C++ compiler.
15167 lt_prog_compiler_wl_CXX='-Wl,'
15168 lt_prog_compiler_pic_CXX='-fpic'
15169 lt_prog_compiler_static_CXX='-Bstatic'
15171 cxx*)
15172 # Compaq C++
15173 # Make sure the PIC flag is empty. It appears that all Alpha
15174 # Linux and Compaq Tru64 Unix objects are PIC.
15175 lt_prog_compiler_pic_CXX=
15176 lt_prog_compiler_static_CXX='-non_shared'
15179 case `$CC -V 2>&1 | sed 5q` in
15180 *Sun\ C*)
15181 # Sun C++ 5.9
15182 lt_prog_compiler_pic_CXX='-KPIC'
15183 lt_prog_compiler_static_CXX='-Bstatic'
15184 lt_prog_compiler_wl_CXX='-Qoption ld '
15186 esac
15188 esac
15190 lynxos*)
15192 m88k*)
15194 mvs*)
15195 case $cc_basename in
15196 cxx*)
15197 lt_prog_compiler_pic_CXX='-W c,exportall'
15201 esac
15203 netbsd*)
15205 osf3* | osf4* | osf5*)
15206 case $cc_basename in
15207 KCC*)
15208 lt_prog_compiler_wl_CXX='--backend -Wl,'
15210 RCC*)
15211 # Rational C++ 2.4.1
15212 lt_prog_compiler_pic_CXX='-pic'
15214 cxx*)
15215 # Digital/Compaq C++
15216 lt_prog_compiler_wl_CXX='-Wl,'
15217 # Make sure the PIC flag is empty. It appears that all Alpha
15218 # Linux and Compaq Tru64 Unix objects are PIC.
15219 lt_prog_compiler_pic_CXX=
15220 lt_prog_compiler_static_CXX='-non_shared'
15224 esac
15226 psos*)
15228 solaris*)
15229 case $cc_basename in
15230 CC*)
15231 # Sun C++ 4.2, 5.x and Centerline C++
15232 lt_prog_compiler_pic_CXX='-KPIC'
15233 lt_prog_compiler_static_CXX='-Bstatic'
15234 lt_prog_compiler_wl_CXX='-Qoption ld '
15236 gcx*)
15237 # Green Hills C++ Compiler
15238 lt_prog_compiler_pic_CXX='-PIC'
15242 esac
15244 sunos4*)
15245 case $cc_basename in
15246 CC*)
15247 # Sun C++ 4.x
15248 lt_prog_compiler_pic_CXX='-pic'
15249 lt_prog_compiler_static_CXX='-Bstatic'
15251 lcc*)
15252 # Lucid
15253 lt_prog_compiler_pic_CXX='-pic'
15257 esac
15259 tandem*)
15260 case $cc_basename in
15261 NCC*)
15262 # NonStop-UX NCC 3.20
15263 lt_prog_compiler_pic_CXX='-KPIC'
15267 esac
15269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15270 case $cc_basename in
15271 CC*)
15272 lt_prog_compiler_wl_CXX='-Wl,'
15273 lt_prog_compiler_pic_CXX='-KPIC'
15274 lt_prog_compiler_static_CXX='-Bstatic'
15276 esac
15278 vxworks*)
15281 lt_prog_compiler_can_build_shared_CXX=no
15283 esac
15286 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15287 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15290 # Check to make sure the PIC flag actually works.
15292 if test -n "$lt_prog_compiler_pic_CXX"; then
15294 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15295 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15296 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299 lt_prog_compiler_pic_works_CXX=no
15300 ac_outfile=conftest.$ac_objext
15301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15302 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15303 # Insert the option either (1) after the last *FLAGS variable, or
15304 # (2) before a word containing "conftest.", or (3) at the end.
15305 # Note that $ac_compile itself does not contain backslashes and begins
15306 # with a dollar sign (not a hyphen), so the echo should work correctly.
15307 # The option is referenced via a variable to avoid confusing sed.
15308 lt_compile=`echo "$ac_compile" | $SED \
15309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15311 -e 's:$: $lt_compiler_flag:'`
15312 (eval echo "\"\$as_me:15312: $lt_compile\"" >&5)
15313 (eval "$lt_compile" 2>conftest.err)
15314 ac_status=$?
15315 cat conftest.err >&5
15316 echo "$as_me:15316: \$? = $ac_status" >&5
15317 if (exit $ac_status) && test -s "$ac_outfile"; then
15318 # The compiler can only warn and ignore the option if not recognized
15319 # So say no if there are warnings other than the usual output.
15320 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15323 lt_prog_compiler_pic_works_CXX=yes
15326 $rm conftest*
15329 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15330 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
15332 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15333 case $lt_prog_compiler_pic_CXX in
15334 "" | " "*) ;;
15335 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15336 esac
15337 else
15338 lt_prog_compiler_pic_CXX=
15339 lt_prog_compiler_can_build_shared_CXX=no
15343 case $host_os in
15344 # For platforms which do not support PIC, -DPIC is meaningless:
15345 *djgpp*)
15346 lt_prog_compiler_pic_CXX=
15349 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15351 esac
15354 # Check to make sure the static flag actually works.
15356 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15357 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15358 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15359 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 else
15362 lt_prog_compiler_static_works_CXX=no
15363 save_LDFLAGS="$LDFLAGS"
15364 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15365 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15366 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15367 # The linker can only warn and ignore the option if not recognized
15368 # So say no if there are warnings
15369 if test -s conftest.err; then
15370 # Append any errors to the config.log.
15371 cat conftest.err 1>&5
15372 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15374 if diff conftest.exp conftest.er2 >/dev/null; then
15375 lt_prog_compiler_static_works_CXX=yes
15377 else
15378 lt_prog_compiler_static_works_CXX=yes
15381 $rm conftest*
15382 LDFLAGS="$save_LDFLAGS"
15385 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
15386 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
15388 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
15390 else
15391 lt_prog_compiler_static_CXX=
15395 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15396 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15397 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 else
15400 lt_cv_prog_compiler_c_o_CXX=no
15401 $rm -r conftest 2>/dev/null
15402 mkdir conftest
15403 cd conftest
15404 mkdir out
15405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15407 lt_compiler_flag="-o out/conftest2.$ac_objext"
15408 # Insert the option either (1) after the last *FLAGS variable, or
15409 # (2) before a word containing "conftest.", or (3) at the end.
15410 # Note that $ac_compile itself does not contain backslashes and begins
15411 # with a dollar sign (not a hyphen), so the echo should work correctly.
15412 lt_compile=`echo "$ac_compile" | $SED \
15413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15415 -e 's:$: $lt_compiler_flag:'`
15416 (eval echo "\"\$as_me:15416: $lt_compile\"" >&5)
15417 (eval "$lt_compile" 2>out/conftest.err)
15418 ac_status=$?
15419 cat out/conftest.err >&5
15420 echo "$as_me:15420: \$? = $ac_status" >&5
15421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15422 then
15423 # The compiler can only warn and ignore the option if not recognized
15424 # So say no if there are warnings
15425 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15428 lt_cv_prog_compiler_c_o_CXX=yes
15431 chmod u+w . 2>&5
15432 $rm conftest*
15433 # SGI C++ compiler will create directory out/ii_files/ for
15434 # template instantiation
15435 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15436 $rm out/* && rmdir out
15437 cd ..
15438 rmdir conftest
15439 $rm conftest*
15442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15443 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15446 hard_links="nottested"
15447 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15448 # do not overwrite the value of need_locks provided by the user
15449 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15450 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15451 hard_links=yes
15452 $rm conftest*
15453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15454 touch conftest.a
15455 ln conftest.a conftest.b 2>&5 || hard_links=no
15456 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15457 { echo "$as_me:$LINENO: result: $hard_links" >&5
15458 echo "${ECHO_T}$hard_links" >&6; }
15459 if test "$hard_links" = no; then
15460 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15461 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15462 need_locks=warn
15464 else
15465 need_locks=no
15468 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15469 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15471 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15472 case $host_os in
15473 aix4* | aix5*)
15474 # If we're using GNU nm, then we don't want the "-C" option.
15475 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15476 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15477 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'
15478 else
15479 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'
15482 pw32*)
15483 export_symbols_cmds_CXX="$ltdll_cmds"
15485 cygwin* | mingw*)
15486 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'
15489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15491 esac
15493 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15494 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15495 test "$ld_shlibs_CXX" = no && can_build_shared=no
15498 # Do we need to explicitly link libc?
15500 case "x$archive_cmds_need_lc_CXX" in
15501 x|xyes)
15502 # Assume -lc should be added
15503 archive_cmds_need_lc_CXX=yes
15505 if test "$enable_shared" = yes && test "$GCC" = yes; then
15506 case $archive_cmds_CXX in
15507 *'~'*)
15508 # FIXME: we may have to deal with multi-command sequences.
15510 '$CC '*)
15511 # Test whether the compiler implicitly links with -lc since on some
15512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15513 # to ld, don't add -lc before -lgcc.
15514 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15516 $rm conftest*
15517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } 2>conftest.err; then
15524 soname=conftest
15525 lib=conftest
15526 libobjs=conftest.$ac_objext
15527 deplibs=
15528 wl=$lt_prog_compiler_wl_CXX
15529 pic_flag=$lt_prog_compiler_pic_CXX
15530 compiler_flags=-v
15531 linker_flags=-v
15532 verstring=
15533 output_objdir=.
15534 libname=conftest
15535 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15536 allow_undefined_flag_CXX=
15537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15538 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }
15542 then
15543 archive_cmds_need_lc_CXX=no
15544 else
15545 archive_cmds_need_lc_CXX=yes
15547 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15548 else
15549 cat conftest.err 1>&5
15551 $rm conftest*
15552 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15553 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15555 esac
15558 esac
15560 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15562 library_names_spec=
15563 libname_spec='lib$name'
15564 soname_spec=
15565 shrext_cmds=".so"
15566 postinstall_cmds=
15567 postuninstall_cmds=
15568 finish_cmds=
15569 finish_eval=
15570 shlibpath_var=
15571 shlibpath_overrides_runpath=unknown
15572 version_type=none
15573 dynamic_linker="$host_os ld.so"
15574 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15576 need_lib_prefix=unknown
15577 hardcode_into_libs=no
15579 # when you set need_version to no, make sure it does not cause -set_version
15580 # flags to be left without arguments
15581 need_version=unknown
15583 case $host_os in
15584 aix3*)
15585 version_type=linux
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15587 shlibpath_var=LIBPATH
15589 # AIX 3 has no versioning support, so we append a major version to the name.
15590 soname_spec='${libname}${release}${shared_ext}$major'
15593 aix4* | aix5*)
15594 version_type=linux
15595 need_lib_prefix=no
15596 need_version=no
15597 hardcode_into_libs=yes
15598 if test "$host_cpu" = ia64; then
15599 # AIX 5 supports IA64
15600 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 else
15603 # With GCC up to 2.95.x, collect2 would create an import file
15604 # for dependence libraries. The import file would start with
15605 # the line `#! .'. This would cause the generated library to
15606 # depend on `.', always an invalid library. This was fixed in
15607 # development snapshots of GCC prior to 3.0.
15608 case $host_os in
15609 aix4 | aix4.[01] | aix4.[01].*)
15610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15611 echo ' yes '
15612 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15614 else
15615 can_build_shared=no
15618 esac
15619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15620 # soname into executable. Probably we can add versioning support to
15621 # collect2, so additional links can be useful in future.
15622 if test "$aix_use_runtimelinking" = yes; then
15623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15624 # instead of lib<name>.a to let people know that these are not
15625 # typical AIX shared libraries.
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 else
15628 # We preserve .a as extension for shared libraries through AIX4.2
15629 # and later when we are not doing run time linking.
15630 library_names_spec='${libname}${release}.a $libname.a'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15633 shlibpath_var=LIBPATH
15637 amigaos*)
15638 library_names_spec='$libname.ixlibrary $libname.a'
15639 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15640 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'
15643 beos*)
15644 library_names_spec='${libname}${shared_ext}'
15645 dynamic_linker="$host_os ld.so"
15646 shlibpath_var=LIBRARY_PATH
15649 bsdi[45]*)
15650 version_type=linux
15651 need_version=no
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15657 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15658 # the default ld.so.conf also contains /usr/contrib/lib and
15659 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15660 # libtool to hard-code these into programs
15663 cygwin* | mingw* | pw32*)
15664 version_type=windows
15665 shrext_cmds=".dll"
15666 need_version=no
15667 need_lib_prefix=no
15669 case $GCC,$host_os in
15670 yes,cygwin* | yes,mingw* | yes,pw32*)
15671 library_names_spec='$libname.dll.a'
15672 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15673 postinstall_cmds='base_file=`basename \${file}`~
15674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15675 dldir=$destdir/`dirname \$dlpath`~
15676 test -d \$dldir || mkdir -p \$dldir~
15677 $install_prog $dir/$dlname \$dldir/$dlname~
15678 chmod a+x \$dldir/$dlname'
15679 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15680 dlpath=$dir/\$dldll~
15681 $rm \$dlpath'
15682 shlibpath_overrides_runpath=yes
15684 case $host_os in
15685 cygwin*)
15686 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15687 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15688 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15690 mingw*)
15691 # MinGW DLLs use traditional 'lib' prefix
15692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15694 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15695 # It is most probably a Windows format PATH printed by
15696 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15697 # path with ; separators, and with drive letters. We can handle the
15698 # drive letters (cygwin fileutils understands them), so leave them,
15699 # especially as we might pass files found there to a mingw objdump,
15700 # which wouldn't understand a cygwinified path. Ahh.
15701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15702 else
15703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15706 pw32*)
15707 # pw32 DLLs use 'pw' prefix rather than 'lib'
15708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710 esac
15714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15716 esac
15717 dynamic_linker='Win32 ld.exe'
15718 # FIXME: first we should search . and the directory the executable is in
15719 shlibpath_var=PATH
15722 darwin* | rhapsody*)
15723 dynamic_linker="$host_os dyld"
15724 version_type=darwin
15725 need_lib_prefix=no
15726 need_version=no
15727 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15728 soname_spec='${libname}${release}${major}$shared_ext'
15729 shlibpath_overrides_runpath=yes
15730 shlibpath_var=DYLD_LIBRARY_PATH
15731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15736 dgux*)
15737 version_type=linux
15738 need_lib_prefix=no
15739 need_version=no
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15745 freebsd1*)
15746 dynamic_linker=no
15749 freebsd* | dragonfly*)
15750 # DragonFly does not have aout. When/if they implement a new
15751 # versioning mechanism, adjust this.
15752 if test -x /usr/bin/objformat; then
15753 objformat=`/usr/bin/objformat`
15754 else
15755 case $host_os in
15756 freebsd[123]*) objformat=aout ;;
15757 *) objformat=elf ;;
15758 esac
15760 # Handle Gentoo/FreeBSD as it was Linux
15761 case $host_vendor in
15762 gentoo)
15763 version_type=linux ;;
15765 version_type=freebsd-$objformat ;;
15766 esac
15768 case $version_type in
15769 freebsd-elf*)
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15771 need_version=no
15772 need_lib_prefix=no
15774 freebsd-*)
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15776 need_version=yes
15778 linux)
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 need_lib_prefix=no
15782 need_version=no
15784 esac
15785 shlibpath_var=LD_LIBRARY_PATH
15786 case $host_os in
15787 freebsd2*)
15788 shlibpath_overrides_runpath=yes
15790 freebsd3.[01]* | freebsdelf3.[01]*)
15791 shlibpath_overrides_runpath=yes
15792 hardcode_into_libs=yes
15794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15796 shlibpath_overrides_runpath=no
15797 hardcode_into_libs=yes
15799 *) # from 4.6 on, and DragonFly
15800 shlibpath_overrides_runpath=yes
15801 hardcode_into_libs=yes
15803 esac
15806 gnu*)
15807 version_type=linux
15808 need_lib_prefix=no
15809 need_version=no
15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15811 soname_spec='${libname}${release}${shared_ext}$major'
15812 shlibpath_var=LD_LIBRARY_PATH
15813 hardcode_into_libs=yes
15816 hpux9* | hpux10* | hpux11*)
15817 # Give a soname corresponding to the major version so that dld.sl refuses to
15818 # link against other versions.
15819 version_type=sunos
15820 need_lib_prefix=no
15821 need_version=no
15822 case $host_cpu in
15823 ia64*)
15824 shrext_cmds='.so'
15825 hardcode_into_libs=yes
15826 dynamic_linker="$host_os dld.so"
15827 shlibpath_var=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 if test "X$HPUX_IA64_MODE" = X32; then
15832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15833 else
15834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15838 hppa*64*)
15839 shrext_cmds='.sl'
15840 hardcode_into_libs=yes
15841 dynamic_linker="$host_os dld.sl"
15842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15850 shrext_cmds='.sl'
15851 dynamic_linker="$host_os dld.sl"
15852 shlibpath_var=SHLIB_PATH
15853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15857 esac
15858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15859 postinstall_cmds='chmod 555 $lib'
15862 interix[3-9]*)
15863 version_type=linux
15864 need_lib_prefix=no
15865 need_version=no
15866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15867 soname_spec='${libname}${release}${shared_ext}$major'
15868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15869 shlibpath_var=LD_LIBRARY_PATH
15870 shlibpath_overrides_runpath=no
15871 hardcode_into_libs=yes
15874 irix5* | irix6* | nonstopux*)
15875 case $host_os in
15876 nonstopux*) version_type=nonstopux ;;
15878 if test "$lt_cv_prog_gnu_ld" = yes; then
15879 version_type=linux
15880 else
15881 version_type=irix
15882 fi ;;
15883 esac
15884 need_lib_prefix=no
15885 need_version=no
15886 soname_spec='${libname}${release}${shared_ext}$major'
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15888 case $host_os in
15889 irix5* | nonstopux*)
15890 libsuff= shlibsuff=
15893 case $LD in # libtool.m4 will add one of these switches to LD
15894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15895 libsuff= shlibsuff= libmagic=32-bit;;
15896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15897 libsuff=32 shlibsuff=N32 libmagic=N32;;
15898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15899 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15900 *) libsuff= shlibsuff= libmagic=never-match;;
15901 esac
15903 esac
15904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15905 shlibpath_overrides_runpath=no
15906 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15907 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15908 hardcode_into_libs=yes
15911 # No shared lib support for Linux oldld, aout, or coff.
15912 linux*oldld* | linux*aout* | linux*coff*)
15913 dynamic_linker=no
15916 # This must be Linux ELF.
15917 linux* | k*bsd*-gnu)
15918 version_type=linux
15919 need_lib_prefix=no
15920 need_version=no
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 shlibpath_overrides_runpath=no
15926 # This implies no fast_install, which is unacceptable.
15927 # Some rework will be needed to allow for fast_install
15928 # before this can be enabled.
15929 hardcode_into_libs=yes
15931 # Append ld.so.conf contents to the search path
15932 if test -f /etc/ld.so.conf; then
15933 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' ' '`
15934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15937 # We used to test for /lib/ld.so.1 and disable shared libraries on
15938 # powerpc, because MkLinux only supported shared libraries with the
15939 # GNU dynamic linker. Since this was broken with cross compilers,
15940 # most powerpc-linux boxes support dynamic linking these days and
15941 # people can always --disable-shared, the test was removed, and we
15942 # assume the GNU/Linux dynamic linker is in use.
15943 dynamic_linker='GNU/Linux ld.so'
15946 netbsd*)
15947 version_type=sunos
15948 need_lib_prefix=no
15949 need_version=no
15950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15953 dynamic_linker='NetBSD (a.out) ld.so'
15954 else
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 dynamic_linker='NetBSD ld.elf_so'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=yes
15961 hardcode_into_libs=yes
15964 newsos6)
15965 version_type=linux
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=yes
15971 nto-qnx*)
15972 version_type=linux
15973 need_lib_prefix=no
15974 need_version=no
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 shlibpath_overrides_runpath=yes
15981 openbsd*)
15982 version_type=sunos
15983 sys_lib_dlsearch_path_spec="/usr/lib"
15984 need_lib_prefix=no
15985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15986 case $host_os in
15987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15988 *) need_version=no ;;
15989 esac
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15992 shlibpath_var=LD_LIBRARY_PATH
15993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15994 case $host_os in
15995 openbsd2.[89] | openbsd2.[89].*)
15996 shlibpath_overrides_runpath=no
15999 shlibpath_overrides_runpath=yes
16001 esac
16002 else
16003 shlibpath_overrides_runpath=yes
16007 os2*)
16008 libname_spec='$name'
16009 shrext_cmds=".dll"
16010 need_lib_prefix=no
16011 library_names_spec='$libname${shared_ext} $libname.a'
16012 dynamic_linker='OS/2 ld.exe'
16013 shlibpath_var=LIBPATH
16016 osf3* | osf4* | osf5*)
16017 version_type=osf
16018 need_lib_prefix=no
16019 need_version=no
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022 shlibpath_var=LD_LIBRARY_PATH
16023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16027 rdos*)
16028 dynamic_linker=no
16031 solaris*)
16032 version_type=linux
16033 need_lib_prefix=no
16034 need_version=no
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 shlibpath_overrides_runpath=yes
16039 hardcode_into_libs=yes
16040 # ldd complains unless libraries are executable
16041 postinstall_cmds='chmod +x $lib'
16044 sunos4*)
16045 version_type=sunos
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 shlibpath_overrides_runpath=yes
16050 if test "$with_gnu_ld" = yes; then
16051 need_lib_prefix=no
16053 need_version=yes
16056 sysv4 | sysv4.3*)
16057 version_type=linux
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 case $host_vendor in
16062 sni)
16063 shlibpath_overrides_runpath=no
16064 need_lib_prefix=no
16065 export_dynamic_flag_spec='${wl}-Blargedynsym'
16066 runpath_var=LD_RUN_PATH
16068 siemens)
16069 need_lib_prefix=no
16071 motorola)
16072 need_lib_prefix=no
16073 need_version=no
16074 shlibpath_overrides_runpath=no
16075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16077 esac
16080 sysv4*MP*)
16081 if test -d /usr/nec ;then
16082 version_type=linux
16083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16084 soname_spec='$libname${shared_ext}.$major'
16085 shlibpath_var=LD_LIBRARY_PATH
16089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16090 version_type=freebsd-elf
16091 need_lib_prefix=no
16092 need_version=no
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 shlibpath_var=LD_LIBRARY_PATH
16096 hardcode_into_libs=yes
16097 if test "$with_gnu_ld" = yes; then
16098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16099 shlibpath_overrides_runpath=no
16100 else
16101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16102 shlibpath_overrides_runpath=yes
16103 case $host_os in
16104 sco3.2v5*)
16105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16107 esac
16109 sys_lib_dlsearch_path_spec='/usr/lib'
16112 uts4*)
16113 version_type=linux
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115 soname_spec='${libname}${release}${shared_ext}$major'
16116 shlibpath_var=LD_LIBRARY_PATH
16120 dynamic_linker=no
16122 esac
16123 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16124 echo "${ECHO_T}$dynamic_linker" >&6; }
16125 test "$dynamic_linker" = no && can_build_shared=no
16127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16128 if test "$GCC" = yes; then
16129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16132 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16134 hardcode_action_CXX=
16135 if test -n "$hardcode_libdir_flag_spec_CXX" || \
16136 test -n "$runpath_var_CXX" || \
16137 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16139 # We can hardcode non-existant directories.
16140 if test "$hardcode_direct_CXX" != no &&
16141 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16142 # have to relink, otherwise we might link with an installed library
16143 # when we should be linking with a yet-to-be-installed one
16144 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16145 test "$hardcode_minus_L_CXX" != no; then
16146 # Linking always hardcodes the temporary library directory.
16147 hardcode_action_CXX=relink
16148 else
16149 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16150 hardcode_action_CXX=immediate
16152 else
16153 # We cannot hardcode anything, or else we can only hardcode existing
16154 # directories.
16155 hardcode_action_CXX=unsupported
16157 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16158 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16160 if test "$hardcode_action_CXX" = relink; then
16161 # Fast installation is not supported
16162 enable_fast_install=no
16163 elif test "$shlibpath_overrides_runpath" = yes ||
16164 test "$enable_shared" = no; then
16165 # Fast installation is not necessary
16166 enable_fast_install=needless
16170 # The else clause should only fire when bootstrapping the
16171 # libtool distribution, otherwise you forgot to ship ltmain.sh
16172 # with your package, and you will get complaints that there are
16173 # no rules to generate ltmain.sh.
16174 if test -f "$ltmain"; then
16175 # See if we are running on zsh, and set the options which allow our commands through
16176 # without removal of \ escapes.
16177 if test -n "${ZSH_VERSION+set}" ; then
16178 setopt NO_GLOB_SUBST
16180 # Now quote all the things that may contain metacharacters while being
16181 # careful not to overquote the AC_SUBSTed values. We take copies of the
16182 # variables and quote the copies for generation of the libtool script.
16183 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16184 SED SHELL STRIP \
16185 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16186 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16187 deplibs_check_method reload_flag reload_cmds need_locks \
16188 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16189 lt_cv_sys_global_symbol_to_c_name_address \
16190 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16191 old_postinstall_cmds old_postuninstall_cmds \
16192 compiler_CXX \
16193 CC_CXX \
16194 LD_CXX \
16195 lt_prog_compiler_wl_CXX \
16196 lt_prog_compiler_pic_CXX \
16197 lt_prog_compiler_static_CXX \
16198 lt_prog_compiler_no_builtin_flag_CXX \
16199 export_dynamic_flag_spec_CXX \
16200 thread_safe_flag_spec_CXX \
16201 whole_archive_flag_spec_CXX \
16202 enable_shared_with_static_runtimes_CXX \
16203 old_archive_cmds_CXX \
16204 old_archive_from_new_cmds_CXX \
16205 predep_objects_CXX \
16206 postdep_objects_CXX \
16207 predeps_CXX \
16208 postdeps_CXX \
16209 compiler_lib_search_path_CXX \
16210 archive_cmds_CXX \
16211 archive_expsym_cmds_CXX \
16212 postinstall_cmds_CXX \
16213 postuninstall_cmds_CXX \
16214 old_archive_from_expsyms_cmds_CXX \
16215 allow_undefined_flag_CXX \
16216 no_undefined_flag_CXX \
16217 export_symbols_cmds_CXX \
16218 hardcode_libdir_flag_spec_CXX \
16219 hardcode_libdir_flag_spec_ld_CXX \
16220 hardcode_libdir_separator_CXX \
16221 hardcode_automatic_CXX \
16222 module_cmds_CXX \
16223 module_expsym_cmds_CXX \
16224 lt_cv_prog_compiler_c_o_CXX \
16225 fix_srcfile_path_CXX \
16226 exclude_expsyms_CXX \
16227 include_expsyms_CXX; do
16229 case $var in
16230 old_archive_cmds_CXX | \
16231 old_archive_from_new_cmds_CXX | \
16232 archive_cmds_CXX | \
16233 archive_expsym_cmds_CXX | \
16234 module_cmds_CXX | \
16235 module_expsym_cmds_CXX | \
16236 old_archive_from_expsyms_cmds_CXX | \
16237 export_symbols_cmds_CXX | \
16238 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16239 postinstall_cmds | postuninstall_cmds | \
16240 old_postinstall_cmds | old_postuninstall_cmds | \
16241 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16242 # Double-quote double-evaled strings.
16243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16248 esac
16249 done
16251 case $lt_echo in
16252 *'\$0 --fallback-echo"')
16253 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16255 esac
16257 cfgfile="$ofile"
16259 cat <<__EOF__ >> "$cfgfile"
16260 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16262 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16264 # Shell to use when invoking shell scripts.
16265 SHELL=$lt_SHELL
16267 # Whether or not to build shared libraries.
16268 build_libtool_libs=$enable_shared
16270 # Whether or not to build static libraries.
16271 build_old_libs=$enable_static
16273 # Whether or not to add -lc for building shared libraries.
16274 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16276 # Whether or not to disallow shared libs when runtime libs are static
16277 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16279 # Whether or not to optimize for fast installation.
16280 fast_install=$enable_fast_install
16282 # The host system.
16283 host_alias=$host_alias
16284 host=$host
16285 host_os=$host_os
16287 # The build system.
16288 build_alias=$build_alias
16289 build=$build
16290 build_os=$build_os
16292 # An echo program that does not interpret backslashes.
16293 echo=$lt_echo
16295 # The archiver.
16296 AR=$lt_AR
16297 AR_FLAGS=$lt_AR_FLAGS
16299 # A C compiler.
16300 LTCC=$lt_LTCC
16302 # LTCC compiler flags.
16303 LTCFLAGS=$lt_LTCFLAGS
16305 # A language-specific compiler.
16306 CC=$lt_compiler_CXX
16308 # Is the compiler the GNU C compiler?
16309 with_gcc=$GCC_CXX
16311 # An ERE matcher.
16312 EGREP=$lt_EGREP
16314 # The linker used to build libraries.
16315 LD=$lt_LD_CXX
16317 # Whether we need hard or soft links.
16318 LN_S=$lt_LN_S
16320 # A BSD-compatible nm program.
16321 NM=$lt_NM
16323 # A symbol stripping program
16324 STRIP=$lt_STRIP
16326 # Used to examine libraries when file_magic_cmd begins "file"
16327 MAGIC_CMD=$MAGIC_CMD
16329 # Used on cygwin: DLL creation program.
16330 DLLTOOL="$DLLTOOL"
16332 # Used on cygwin: object dumper.
16333 OBJDUMP="$OBJDUMP"
16335 # Used on cygwin: assembler.
16336 AS="$AS"
16338 # The name of the directory that contains temporary libtool files.
16339 objdir=$objdir
16341 # How to create reloadable object files.
16342 reload_flag=$lt_reload_flag
16343 reload_cmds=$lt_reload_cmds
16345 # How to pass a linker flag through the compiler.
16346 wl=$lt_lt_prog_compiler_wl_CXX
16348 # Object file suffix (normally "o").
16349 objext="$ac_objext"
16351 # Old archive suffix (normally "a").
16352 libext="$libext"
16354 # Shared library suffix (normally ".so").
16355 shrext_cmds='$shrext_cmds'
16357 # Executable file suffix (normally "").
16358 exeext="$exeext"
16360 # Additional compiler flags for building library objects.
16361 pic_flag=$lt_lt_prog_compiler_pic_CXX
16362 pic_mode=$pic_mode
16364 # What is the maximum length of a command?
16365 max_cmd_len=$lt_cv_sys_max_cmd_len
16367 # Does compiler simultaneously support -c and -o options?
16368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16370 # Must we lock files when doing compilation?
16371 need_locks=$lt_need_locks
16373 # Do we need the lib prefix for modules?
16374 need_lib_prefix=$need_lib_prefix
16376 # Do we need a version for libraries?
16377 need_version=$need_version
16379 # Whether dlopen is supported.
16380 dlopen_support=$enable_dlopen
16382 # Whether dlopen of programs is supported.
16383 dlopen_self=$enable_dlopen_self
16385 # Whether dlopen of statically linked programs is supported.
16386 dlopen_self_static=$enable_dlopen_self_static
16388 # Compiler flag to prevent dynamic linking.
16389 link_static_flag=$lt_lt_prog_compiler_static_CXX
16391 # Compiler flag to turn off builtin functions.
16392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16394 # Compiler flag to allow reflexive dlopens.
16395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16397 # Compiler flag to generate shared objects directly from archives.
16398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16400 # Compiler flag to generate thread-safe objects.
16401 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16403 # Library versioning type.
16404 version_type=$version_type
16406 # Format of library name prefix.
16407 libname_spec=$lt_libname_spec
16409 # List of archive names. First name is the real one, the rest are links.
16410 # The last name is the one that the linker finds with -lNAME.
16411 library_names_spec=$lt_library_names_spec
16413 # The coded name of the library, if different from the real name.
16414 soname_spec=$lt_soname_spec
16416 # Commands used to build and install an old-style archive.
16417 RANLIB=$lt_RANLIB
16418 old_archive_cmds=$lt_old_archive_cmds_CXX
16419 old_postinstall_cmds=$lt_old_postinstall_cmds
16420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16422 # Create an old-style archive from a shared archive.
16423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16425 # Create a temporary old-style archive to link instead of a shared archive.
16426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16428 # Commands used to build and install a shared archive.
16429 archive_cmds=$lt_archive_cmds_CXX
16430 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16431 postinstall_cmds=$lt_postinstall_cmds
16432 postuninstall_cmds=$lt_postuninstall_cmds
16434 # Commands used to build a loadable module (assumed same as above if empty)
16435 module_cmds=$lt_module_cmds_CXX
16436 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16438 # Commands to strip libraries.
16439 old_striplib=$lt_old_striplib
16440 striplib=$lt_striplib
16442 # Dependencies to place before the objects being linked to create a
16443 # shared library.
16444 predep_objects=$lt_predep_objects_CXX
16446 # Dependencies to place after the objects being linked to create a
16447 # shared library.
16448 postdep_objects=$lt_postdep_objects_CXX
16450 # Dependencies to place before the objects being linked to create a
16451 # shared library.
16452 predeps=$lt_predeps_CXX
16454 # Dependencies to place after the objects being linked to create a
16455 # shared library.
16456 postdeps=$lt_postdeps_CXX
16458 # The library search path used internally by the compiler when linking
16459 # a shared library.
16460 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16462 # Method to check whether dependent libraries are shared objects.
16463 deplibs_check_method=$lt_deplibs_check_method
16465 # Command to use when deplibs_check_method == file_magic.
16466 file_magic_cmd=$lt_file_magic_cmd
16468 # Flag that allows shared libraries with undefined symbols to be built.
16469 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16471 # Flag that forces no undefined symbols.
16472 no_undefined_flag=$lt_no_undefined_flag_CXX
16474 # Commands used to finish a libtool library installation in a directory.
16475 finish_cmds=$lt_finish_cmds
16477 # Same as above, but a single script fragment to be evaled but not shown.
16478 finish_eval=$lt_finish_eval
16480 # Take the output of nm and produce a listing of raw symbols and C names.
16481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16483 # Transform the output of nm in a proper C declaration
16484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16486 # Transform the output of nm in a C name address pair
16487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16489 # This is the shared library runtime path variable.
16490 runpath_var=$runpath_var
16492 # This is the shared library path variable.
16493 shlibpath_var=$shlibpath_var
16495 # Is shlibpath searched before the hard-coded library search path?
16496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16498 # How to hardcode a shared library path into an executable.
16499 hardcode_action=$hardcode_action_CXX
16501 # Whether we should hardcode library paths into libraries.
16502 hardcode_into_libs=$hardcode_into_libs
16504 # Flag to hardcode \$libdir into a binary during linking.
16505 # This must work even if \$libdir does not exist.
16506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16508 # If ld is used when linking, flag to hardcode \$libdir into
16509 # a binary during linking. This must work even if \$libdir does
16510 # not exist.
16511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16513 # Whether we need a single -rpath flag with a separated argument.
16514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16516 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16517 # resulting binary.
16518 hardcode_direct=$hardcode_direct_CXX
16520 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16521 # resulting binary.
16522 hardcode_minus_L=$hardcode_minus_L_CXX
16524 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16525 # the resulting binary.
16526 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16528 # Set to yes if building a shared library automatically hardcodes DIR into the library
16529 # and all subsequent libraries and executables linked against it.
16530 hardcode_automatic=$hardcode_automatic_CXX
16532 # Variables whose values should be saved in libtool wrapper scripts and
16533 # restored at relink time.
16534 variables_saved_for_relink="$variables_saved_for_relink"
16536 # Whether libtool must link a program against all its dependency libraries.
16537 link_all_deplibs=$link_all_deplibs_CXX
16539 # Compile-time system search path for libraries
16540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16542 # Run-time system search path for libraries
16543 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16545 # Fix the shell variable \$srcfile for the compiler.
16546 fix_srcfile_path=$lt_fix_srcfile_path
16548 # Set to yes if exported symbols are required.
16549 always_export_symbols=$always_export_symbols_CXX
16551 # The commands to list exported symbols.
16552 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16554 # The commands to extract the exported symbol list from a shared archive.
16555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16557 # Symbols that should not be listed in the preloaded symbols.
16558 exclude_expsyms=$lt_exclude_expsyms_CXX
16560 # Symbols that must always be exported.
16561 include_expsyms=$lt_include_expsyms_CXX
16563 # ### END LIBTOOL TAG CONFIG: $tagname
16565 __EOF__
16568 else
16569 # If there is no Makefile yet, we rely on a make rule to execute
16570 # `config.status --recheck' to rerun these tests and create the
16571 # libtool script then.
16572 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16573 if test -f "$ltmain_in"; then
16574 test -f Makefile && make "$ltmain"
16579 ac_ext=c
16580 ac_cpp='$CPP $CPPFLAGS'
16581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16585 CC=$lt_save_CC
16586 LDCXX=$LD
16587 LD=$lt_save_LD
16588 GCC=$lt_save_GCC
16589 with_gnu_ldcxx=$with_gnu_ld
16590 with_gnu_ld=$lt_save_with_gnu_ld
16591 lt_cv_path_LDCXX=$lt_cv_path_LD
16592 lt_cv_path_LD=$lt_save_path_LD
16593 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16594 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16596 else
16597 tagname=""
16601 F77)
16602 if test -n "$F77" && test "X$F77" != "Xno"; then
16604 ac_ext=f
16605 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16606 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16607 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16610 archive_cmds_need_lc_F77=no
16611 allow_undefined_flag_F77=
16612 always_export_symbols_F77=no
16613 archive_expsym_cmds_F77=
16614 export_dynamic_flag_spec_F77=
16615 hardcode_direct_F77=no
16616 hardcode_libdir_flag_spec_F77=
16617 hardcode_libdir_flag_spec_ld_F77=
16618 hardcode_libdir_separator_F77=
16619 hardcode_minus_L_F77=no
16620 hardcode_automatic_F77=no
16621 module_cmds_F77=
16622 module_expsym_cmds_F77=
16623 link_all_deplibs_F77=unknown
16624 old_archive_cmds_F77=$old_archive_cmds
16625 no_undefined_flag_F77=
16626 whole_archive_flag_spec_F77=
16627 enable_shared_with_static_runtimes_F77=no
16629 # Source file extension for f77 test sources.
16630 ac_ext=f
16632 # Object file extension for compiled f77 test sources.
16633 objext=o
16634 objext_F77=$objext
16636 # Code to be used in simple compile tests
16637 lt_simple_compile_test_code="\
16638 subroutine t
16639 return
16643 # Code to be used in simple link tests
16644 lt_simple_link_test_code="\
16645 program t
16649 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16651 # If no C compiler was specified, use CC.
16652 LTCC=${LTCC-"$CC"}
16654 # If no C compiler flags were specified, use CFLAGS.
16655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16657 # Allow CC to be a program name with arguments.
16658 compiler=$CC
16661 # save warnings/boilerplate of simple test code
16662 ac_outfile=conftest.$ac_objext
16663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16665 _lt_compiler_boilerplate=`cat conftest.err`
16666 $rm conftest*
16668 ac_outfile=conftest.$ac_objext
16669 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16671 _lt_linker_boilerplate=`cat conftest.err`
16672 $rm conftest*
16675 # Allow CC to be a program name with arguments.
16676 lt_save_CC="$CC"
16677 CC=${F77-"f77"}
16678 compiler=$CC
16679 compiler_F77=$CC
16680 for cc_temp in $compiler""; do
16681 case $cc_temp in
16682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16684 \-*) ;;
16685 *) break;;
16686 esac
16687 done
16688 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16691 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16692 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16693 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16694 echo "${ECHO_T}$can_build_shared" >&6; }
16696 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16697 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16698 test "$can_build_shared" = "no" && enable_shared=no
16700 # On AIX, shared libraries and static libraries use the same namespace, and
16701 # are all built from PIC.
16702 case $host_os in
16703 aix3*)
16704 test "$enable_shared" = yes && enable_static=no
16705 if test -n "$RANLIB"; then
16706 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16707 postinstall_cmds='$RANLIB $lib'
16710 aix4* | aix5*)
16711 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16712 test "$enable_shared" = yes && enable_static=no
16715 esac
16716 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16717 echo "${ECHO_T}$enable_shared" >&6; }
16719 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16720 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16721 # Make sure either enable_shared or enable_static is yes.
16722 test "$enable_shared" = yes || enable_static=yes
16723 { echo "$as_me:$LINENO: result: $enable_static" >&5
16724 echo "${ECHO_T}$enable_static" >&6; }
16726 GCC_F77="$G77"
16727 LD_F77="$LD"
16729 lt_prog_compiler_wl_F77=
16730 lt_prog_compiler_pic_F77=
16731 lt_prog_compiler_static_F77=
16733 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16734 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16736 if test "$GCC" = yes; then
16737 lt_prog_compiler_wl_F77='-Wl,'
16738 lt_prog_compiler_static_F77='-static'
16740 case $host_os in
16741 aix*)
16742 # All AIX code is PIC.
16743 if test "$host_cpu" = ia64; then
16744 # AIX 5 now supports IA64 processor
16745 lt_prog_compiler_static_F77='-Bstatic'
16749 amigaos*)
16750 # FIXME: we need at least 68020 code to build shared libraries, but
16751 # adding the `-m68020' flag to GCC prevents building anything better,
16752 # like `-m68040'.
16753 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16756 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16757 # PIC is the default for these OSes.
16760 mingw* | cygwin* | pw32* | os2*)
16761 # This hack is so that the source file can tell whether it is being
16762 # built for inclusion in a dll (and should export symbols for example).
16763 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16764 # (--disable-auto-import) libraries
16765 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16768 darwin* | rhapsody*)
16769 # PIC is the default on this platform
16770 # Common symbols not allowed in MH_DYLIB files
16771 lt_prog_compiler_pic_F77='-fno-common'
16774 interix[3-9]*)
16775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16776 # Instead, we relocate shared libraries at runtime.
16779 msdosdjgpp*)
16780 # Just because we use GCC doesn't mean we suddenly get shared libraries
16781 # on systems that don't support them.
16782 lt_prog_compiler_can_build_shared_F77=no
16783 enable_shared=no
16786 sysv4*MP*)
16787 if test -d /usr/nec; then
16788 lt_prog_compiler_pic_F77=-Kconform_pic
16792 hpux*)
16793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16794 # not for PA HP-UX.
16795 case $host_cpu in
16796 hppa*64*|ia64*)
16797 # +Z the default
16800 lt_prog_compiler_pic_F77='-fPIC'
16802 esac
16806 lt_prog_compiler_pic_F77='-fPIC'
16808 esac
16809 else
16810 # PORTME Check for flag to pass linker flags through the system compiler.
16811 case $host_os in
16812 aix*)
16813 lt_prog_compiler_wl_F77='-Wl,'
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 now supports IA64 processor
16816 lt_prog_compiler_static_F77='-Bstatic'
16817 else
16818 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16821 darwin*)
16822 # PIC is the default on this platform
16823 # Common symbols not allowed in MH_DYLIB files
16824 case $cc_basename in
16825 xlc*)
16826 lt_prog_compiler_pic_F77='-qnocommon'
16827 lt_prog_compiler_wl_F77='-Wl,'
16829 esac
16832 mingw* | cygwin* | pw32* | os2*)
16833 # This hack is so that the source file can tell whether it is being
16834 # built for inclusion in a dll (and should export symbols for example).
16835 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16838 hpux9* | hpux10* | hpux11*)
16839 lt_prog_compiler_wl_F77='-Wl,'
16840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16841 # not for PA HP-UX.
16842 case $host_cpu in
16843 hppa*64*|ia64*)
16844 # +Z the default
16847 lt_prog_compiler_pic_F77='+Z'
16849 esac
16850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16851 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16854 irix5* | irix6* | nonstopux*)
16855 lt_prog_compiler_wl_F77='-Wl,'
16856 # PIC (with -KPIC) is the default.
16857 lt_prog_compiler_static_F77='-non_shared'
16860 newsos6)
16861 lt_prog_compiler_pic_F77='-KPIC'
16862 lt_prog_compiler_static_F77='-Bstatic'
16865 linux* | k*bsd*-gnu)
16866 case $cc_basename in
16867 icc* | ecc*)
16868 lt_prog_compiler_wl_F77='-Wl,'
16869 lt_prog_compiler_pic_F77='-KPIC'
16870 lt_prog_compiler_static_F77='-static'
16872 pgcc* | pgf77* | pgf90* | pgf95*)
16873 # Portland Group compilers (*not* the Pentium gcc compiler,
16874 # which looks to be a dead project)
16875 lt_prog_compiler_wl_F77='-Wl,'
16876 lt_prog_compiler_pic_F77='-fpic'
16877 lt_prog_compiler_static_F77='-Bstatic'
16879 ccc*)
16880 lt_prog_compiler_wl_F77='-Wl,'
16881 # All Alpha code is PIC.
16882 lt_prog_compiler_static_F77='-non_shared'
16885 case `$CC -V 2>&1 | sed 5q` in
16886 *Sun\ C*)
16887 # Sun C 5.9
16888 lt_prog_compiler_pic_F77='-KPIC'
16889 lt_prog_compiler_static_F77='-Bstatic'
16890 lt_prog_compiler_wl_F77='-Wl,'
16892 *Sun\ F*)
16893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16894 lt_prog_compiler_pic_F77='-KPIC'
16895 lt_prog_compiler_static_F77='-Bstatic'
16896 lt_prog_compiler_wl_F77=''
16898 esac
16900 esac
16903 osf3* | osf4* | osf5*)
16904 lt_prog_compiler_wl_F77='-Wl,'
16905 # All OSF/1 code is PIC.
16906 lt_prog_compiler_static_F77='-non_shared'
16909 rdos*)
16910 lt_prog_compiler_static_F77='-non_shared'
16913 solaris*)
16914 lt_prog_compiler_pic_F77='-KPIC'
16915 lt_prog_compiler_static_F77='-Bstatic'
16916 case $cc_basename in
16917 f77* | f90* | f95*)
16918 lt_prog_compiler_wl_F77='-Qoption ld ';;
16920 lt_prog_compiler_wl_F77='-Wl,';;
16921 esac
16924 sunos4*)
16925 lt_prog_compiler_wl_F77='-Qoption ld '
16926 lt_prog_compiler_pic_F77='-PIC'
16927 lt_prog_compiler_static_F77='-Bstatic'
16930 sysv4 | sysv4.2uw2* | sysv4.3*)
16931 lt_prog_compiler_wl_F77='-Wl,'
16932 lt_prog_compiler_pic_F77='-KPIC'
16933 lt_prog_compiler_static_F77='-Bstatic'
16936 sysv4*MP*)
16937 if test -d /usr/nec ;then
16938 lt_prog_compiler_pic_F77='-Kconform_pic'
16939 lt_prog_compiler_static_F77='-Bstatic'
16943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16944 lt_prog_compiler_wl_F77='-Wl,'
16945 lt_prog_compiler_pic_F77='-KPIC'
16946 lt_prog_compiler_static_F77='-Bstatic'
16949 unicos*)
16950 lt_prog_compiler_wl_F77='-Wl,'
16951 lt_prog_compiler_can_build_shared_F77=no
16954 uts4*)
16955 lt_prog_compiler_pic_F77='-pic'
16956 lt_prog_compiler_static_F77='-Bstatic'
16960 lt_prog_compiler_can_build_shared_F77=no
16962 esac
16965 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16966 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16969 # Check to make sure the PIC flag actually works.
16971 if test -n "$lt_prog_compiler_pic_F77"; then
16973 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16974 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16975 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978 lt_prog_compiler_pic_works_F77=no
16979 ac_outfile=conftest.$ac_objext
16980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16981 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16982 # Insert the option either (1) after the last *FLAGS variable, or
16983 # (2) before a word containing "conftest.", or (3) at the end.
16984 # Note that $ac_compile itself does not contain backslashes and begins
16985 # with a dollar sign (not a hyphen), so the echo should work correctly.
16986 # The option is referenced via a variable to avoid confusing sed.
16987 lt_compile=`echo "$ac_compile" | $SED \
16988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16990 -e 's:$: $lt_compiler_flag:'`
16991 (eval echo "\"\$as_me:16991: $lt_compile\"" >&5)
16992 (eval "$lt_compile" 2>conftest.err)
16993 ac_status=$?
16994 cat conftest.err >&5
16995 echo "$as_me:16995: \$? = $ac_status" >&5
16996 if (exit $ac_status) && test -s "$ac_outfile"; then
16997 # The compiler can only warn and ignore the option if not recognized
16998 # So say no if there are warnings other than the usual output.
16999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17002 lt_prog_compiler_pic_works_F77=yes
17005 $rm conftest*
17008 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17009 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
17011 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17012 case $lt_prog_compiler_pic_F77 in
17013 "" | " "*) ;;
17014 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17015 esac
17016 else
17017 lt_prog_compiler_pic_F77=
17018 lt_prog_compiler_can_build_shared_F77=no
17022 case $host_os in
17023 # For platforms which do not support PIC, -DPIC is meaningless:
17024 *djgpp*)
17025 lt_prog_compiler_pic_F77=
17028 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17030 esac
17033 # Check to make sure the static flag actually works.
17035 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17036 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17037 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17038 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 lt_prog_compiler_static_works_F77=no
17042 save_LDFLAGS="$LDFLAGS"
17043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17046 # The linker can only warn and ignore the option if not recognized
17047 # So say no if there are warnings
17048 if test -s conftest.err; then
17049 # Append any errors to the config.log.
17050 cat conftest.err 1>&5
17051 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17053 if diff conftest.exp conftest.er2 >/dev/null; then
17054 lt_prog_compiler_static_works_F77=yes
17056 else
17057 lt_prog_compiler_static_works_F77=yes
17060 $rm conftest*
17061 LDFLAGS="$save_LDFLAGS"
17064 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
17065 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
17067 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
17069 else
17070 lt_prog_compiler_static_F77=
17074 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17076 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 lt_cv_prog_compiler_c_o_F77=no
17080 $rm -r conftest 2>/dev/null
17081 mkdir conftest
17082 cd conftest
17083 mkdir out
17084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17086 lt_compiler_flag="-o out/conftest2.$ac_objext"
17087 # Insert the option either (1) after the last *FLAGS variable, or
17088 # (2) before a word containing "conftest.", or (3) at the end.
17089 # Note that $ac_compile itself does not contain backslashes and begins
17090 # with a dollar sign (not a hyphen), so the echo should work correctly.
17091 lt_compile=`echo "$ac_compile" | $SED \
17092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17094 -e 's:$: $lt_compiler_flag:'`
17095 (eval echo "\"\$as_me:17095: $lt_compile\"" >&5)
17096 (eval "$lt_compile" 2>out/conftest.err)
17097 ac_status=$?
17098 cat out/conftest.err >&5
17099 echo "$as_me:17099: \$? = $ac_status" >&5
17100 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17101 then
17102 # The compiler can only warn and ignore the option if not recognized
17103 # So say no if there are warnings
17104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17105 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17106 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17107 lt_cv_prog_compiler_c_o_F77=yes
17110 chmod u+w . 2>&5
17111 $rm conftest*
17112 # SGI C++ compiler will create directory out/ii_files/ for
17113 # template instantiation
17114 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17115 $rm out/* && rmdir out
17116 cd ..
17117 rmdir conftest
17118 $rm conftest*
17121 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17122 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17125 hard_links="nottested"
17126 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17127 # do not overwrite the value of need_locks provided by the user
17128 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17129 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17130 hard_links=yes
17131 $rm conftest*
17132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17133 touch conftest.a
17134 ln conftest.a conftest.b 2>&5 || hard_links=no
17135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17136 { echo "$as_me:$LINENO: result: $hard_links" >&5
17137 echo "${ECHO_T}$hard_links" >&6; }
17138 if test "$hard_links" = no; then
17139 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17140 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17141 need_locks=warn
17143 else
17144 need_locks=no
17147 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17148 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17150 runpath_var=
17151 allow_undefined_flag_F77=
17152 enable_shared_with_static_runtimes_F77=no
17153 archive_cmds_F77=
17154 archive_expsym_cmds_F77=
17155 old_archive_From_new_cmds_F77=
17156 old_archive_from_expsyms_cmds_F77=
17157 export_dynamic_flag_spec_F77=
17158 whole_archive_flag_spec_F77=
17159 thread_safe_flag_spec_F77=
17160 hardcode_libdir_flag_spec_F77=
17161 hardcode_libdir_flag_spec_ld_F77=
17162 hardcode_libdir_separator_F77=
17163 hardcode_direct_F77=no
17164 hardcode_minus_L_F77=no
17165 hardcode_shlibpath_var_F77=unsupported
17166 link_all_deplibs_F77=unknown
17167 hardcode_automatic_F77=no
17168 module_cmds_F77=
17169 module_expsym_cmds_F77=
17170 always_export_symbols_F77=no
17171 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17172 # include_expsyms should be a list of space-separated symbols to be *always*
17173 # included in the symbol list
17174 include_expsyms_F77=
17175 # exclude_expsyms can be an extended regexp of symbols to exclude
17176 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17177 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17178 # as well as any symbol that contains `d'.
17179 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17181 # platforms (ab)use it in PIC code, but their linkers get confused if
17182 # the symbol is explicitly referenced. Since portable code cannot
17183 # rely on this symbol name, it's probably fine to never include it in
17184 # preloaded symbol tables.
17185 extract_expsyms_cmds=
17186 # Just being paranoid about ensuring that cc_basename is set.
17187 for cc_temp in $compiler""; do
17188 case $cc_temp in
17189 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17190 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17191 \-*) ;;
17192 *) break;;
17193 esac
17194 done
17195 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17197 case $host_os in
17198 cygwin* | mingw* | pw32*)
17199 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17200 # When not using gcc, we currently assume that we are using
17201 # Microsoft Visual C++.
17202 if test "$GCC" != yes; then
17203 with_gnu_ld=no
17206 interix*)
17207 # we just hope/assume this is gcc and not c89 (= MSVC++)
17208 with_gnu_ld=yes
17210 openbsd*)
17211 with_gnu_ld=no
17213 esac
17215 ld_shlibs_F77=yes
17216 if test "$with_gnu_ld" = yes; then
17217 # If archive_cmds runs LD, not CC, wlarc should be empty
17218 wlarc='${wl}'
17220 # Set some defaults for GNU ld with shared library support. These
17221 # are reset later if shared libraries are not supported. Putting them
17222 # here allows them to be overridden if necessary.
17223 runpath_var=LD_RUN_PATH
17224 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17225 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17226 # ancient GNU ld didn't support --whole-archive et. al.
17227 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17228 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17229 else
17230 whole_archive_flag_spec_F77=
17232 supports_anon_versioning=no
17233 case `$LD -v 2>/dev/null` in
17234 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17237 *\ 2.11.*) ;; # other 2.11 versions
17238 *) supports_anon_versioning=yes ;;
17239 esac
17241 # See if GNU ld supports shared libraries.
17242 case $host_os in
17243 aix3* | aix4* | aix5*)
17244 # On AIX/PPC, the GNU linker is very broken
17245 if test "$host_cpu" != ia64; then
17246 ld_shlibs_F77=no
17247 cat <<EOF 1>&2
17249 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17250 *** to be unable to reliably create shared libraries on AIX.
17251 *** Therefore, libtool is disabling shared libraries support. If you
17252 *** really care for shared libraries, you may want to modify your PATH
17253 *** so that a non-GNU linker is found, and then restart.
17259 amigaos*)
17260 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)'
17261 hardcode_libdir_flag_spec_F77='-L$libdir'
17262 hardcode_minus_L_F77=yes
17264 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17265 # that the semantics of dynamic libraries on AmigaOS, at least up
17266 # to version 4, is to share data among multiple programs linked
17267 # with the same dynamic library. Since this doesn't match the
17268 # behavior of shared libraries on other platforms, we can't use
17269 # them.
17270 ld_shlibs_F77=no
17273 beos*)
17274 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17275 allow_undefined_flag_F77=unsupported
17276 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17277 # support --undefined. This deserves some investigation. FIXME
17278 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17279 else
17280 ld_shlibs_F77=no
17284 cygwin* | mingw* | pw32*)
17285 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17286 # as there is no search path for DLLs.
17287 hardcode_libdir_flag_spec_F77='-L$libdir'
17288 allow_undefined_flag_F77=unsupported
17289 always_export_symbols_F77=no
17290 enable_shared_with_static_runtimes_F77=yes
17291 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17293 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17294 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17295 # If the export-symbols file already is a .def file (1st line
17296 # is EXPORTS), use it as is; otherwise, prepend...
17297 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17298 cp $export_symbols $output_objdir/$soname.def;
17299 else
17300 echo EXPORTS > $output_objdir/$soname.def;
17301 cat $export_symbols >> $output_objdir/$soname.def;
17303 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17304 else
17305 ld_shlibs_F77=no
17309 interix[3-9]*)
17310 hardcode_direct_F77=no
17311 hardcode_shlibpath_var_F77=no
17312 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17313 export_dynamic_flag_spec_F77='${wl}-E'
17314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17315 # Instead, shared libraries are loaded at an image base (0x10000000 by
17316 # default) and relocated if they conflict, which is a slow very memory
17317 # consuming and fragmenting process. To avoid this, we pick a random,
17318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17319 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17320 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'
17321 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'
17324 gnu* | linux* | k*bsd*-gnu)
17325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17326 tmp_addflag=
17327 case $cc_basename,$host_cpu in
17328 pgcc*) # Portland Group C compiler
17329 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'
17330 tmp_addflag=' $pic_flag'
17332 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17333 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'
17334 tmp_addflag=' $pic_flag -Mnomain' ;;
17335 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17336 tmp_addflag=' -i_dynamic' ;;
17337 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17338 tmp_addflag=' -i_dynamic -nofor_main' ;;
17339 ifc* | ifort*) # Intel Fortran compiler
17340 tmp_addflag=' -nofor_main' ;;
17341 esac
17342 case `$CC -V 2>&1 | sed 5q` in
17343 *Sun\ C*) # Sun C 5.9
17344 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'
17345 tmp_sharedflag='-G' ;;
17346 *Sun\ F*) # Sun Fortran 8.3
17347 tmp_sharedflag='-G' ;;
17349 tmp_sharedflag='-shared' ;;
17350 esac
17351 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17353 if test $supports_anon_versioning = yes; then
17354 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17356 $echo "local: *; };" >> $output_objdir/$libname.ver~
17357 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17359 else
17360 ld_shlibs_F77=no
17364 netbsd*)
17365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17366 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17367 wlarc=
17368 else
17369 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17370 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17374 solaris*)
17375 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17376 ld_shlibs_F77=no
17377 cat <<EOF 1>&2
17379 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17380 *** create shared libraries on Solaris systems. Therefore, libtool
17381 *** is disabling shared libraries support. We urge you to upgrade GNU
17382 *** binutils to release 2.9.1 or newer. Another option is to modify
17383 *** your PATH or compiler configuration so that the native linker is
17384 *** used, and then restart.
17387 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17388 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17389 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17390 else
17391 ld_shlibs_F77=no
17395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17396 case `$LD -v 2>&1` in
17397 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17398 ld_shlibs_F77=no
17399 cat <<_LT_EOF 1>&2
17401 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17402 *** reliably create shared libraries on SCO systems. Therefore, libtool
17403 *** is disabling shared libraries support. We urge you to upgrade GNU
17404 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17405 *** your PATH or compiler configuration so that the native linker is
17406 *** used, and then restart.
17408 _LT_EOF
17411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17412 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17413 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17414 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17415 else
17416 ld_shlibs_F77=no
17419 esac
17422 sunos4*)
17423 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424 wlarc=
17425 hardcode_direct_F77=yes
17426 hardcode_shlibpath_var_F77=no
17430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17431 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17432 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17433 else
17434 ld_shlibs_F77=no
17437 esac
17439 if test "$ld_shlibs_F77" = no; then
17440 runpath_var=
17441 hardcode_libdir_flag_spec_F77=
17442 export_dynamic_flag_spec_F77=
17443 whole_archive_flag_spec_F77=
17445 else
17446 # PORTME fill in a description of your system's linker (not GNU ld)
17447 case $host_os in
17448 aix3*)
17449 allow_undefined_flag_F77=unsupported
17450 always_export_symbols_F77=yes
17451 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'
17452 # Note: this linker hardcodes the directories in LIBPATH if there
17453 # are no directories specified by -L.
17454 hardcode_minus_L_F77=yes
17455 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17456 # Neither direct hardcoding nor static linking is supported with a
17457 # broken collect2.
17458 hardcode_direct_F77=unsupported
17462 aix4* | aix5*)
17463 if test "$host_cpu" = ia64; then
17464 # On IA64, the linker does run time linking by default, so we don't
17465 # have to do anything special.
17466 aix_use_runtimelinking=no
17467 exp_sym_flag='-Bexport'
17468 no_entry_flag=""
17469 else
17470 # If we're using GNU nm, then we don't want the "-C" option.
17471 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17472 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17473 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'
17474 else
17475 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'
17477 aix_use_runtimelinking=no
17479 # Test if we are trying to use run time linking or normal
17480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17481 # need to do runtime linking.
17482 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17483 for ld_flag in $LDFLAGS; do
17484 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17485 aix_use_runtimelinking=yes
17486 break
17488 done
17490 esac
17492 exp_sym_flag='-bexport'
17493 no_entry_flag='-bnoentry'
17496 # When large executables or shared objects are built, AIX ld can
17497 # have problems creating the table of contents. If linking a library
17498 # or program results in "error TOC overflow" add -mminimal-toc to
17499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17502 archive_cmds_F77=''
17503 hardcode_direct_F77=yes
17504 hardcode_libdir_separator_F77=':'
17505 link_all_deplibs_F77=yes
17507 if test "$GCC" = yes; then
17508 case $host_os in aix4.[012]|aix4.[012].*)
17509 # We only want to do this on AIX 4.2 and lower, the check
17510 # below for broken collect2 doesn't work under 4.3+
17511 collect2name=`${CC} -print-prog-name=collect2`
17512 if test -f "$collect2name" && \
17513 strings "$collect2name" | grep resolve_lib_name >/dev/null
17514 then
17515 # We have reworked collect2
17517 else
17518 # We have old collect2
17519 hardcode_direct_F77=unsupported
17520 # It fails to find uninstalled libraries when the uninstalled
17521 # path is not listed in the libpath. Setting hardcode_minus_L
17522 # to unsupported forces relinking
17523 hardcode_minus_L_F77=yes
17524 hardcode_libdir_flag_spec_F77='-L$libdir'
17525 hardcode_libdir_separator_F77=
17528 esac
17529 shared_flag='-shared'
17530 if test "$aix_use_runtimelinking" = yes; then
17531 shared_flag="$shared_flag "'${wl}-G'
17533 else
17534 # not using gcc
17535 if test "$host_cpu" = ia64; then
17536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17537 # chokes on -Wl,-G. The following line is correct:
17538 shared_flag='-G'
17539 else
17540 if test "$aix_use_runtimelinking" = yes; then
17541 shared_flag='${wl}-G'
17542 else
17543 shared_flag='${wl}-bM:SRE'
17548 # It seems that -bexpall does not export symbols beginning with
17549 # underscore (_), so it is better to generate a list of symbols to export.
17550 always_export_symbols_F77=yes
17551 if test "$aix_use_runtimelinking" = yes; then
17552 # Warning - without using the other runtime loading flags (-brtl),
17553 # -berok will link without error, but may produce a broken library.
17554 allow_undefined_flag_F77='-berok'
17555 # Determine the default libpath from the value encoded in an empty executable.
17556 cat >conftest.$ac_ext <<_ACEOF
17557 program main
17560 _ACEOF
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (ac_try="$ac_link"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17566 esac
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_link") 2>conftest.er1
17569 ac_status=$?
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -f conftest.er1
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && {
17575 test -z "$ac_f77_werror_flag" ||
17576 test ! -s conftest.err
17577 } && test -s conftest$ac_exeext &&
17578 $as_test_x conftest$ac_exeext; then
17580 lt_aix_libpath_sed='
17581 /Import File Strings/,/^$/ {
17582 /^0/ {
17583 s/^0 *\(.*\)$/\1/
17587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17588 # Check for a 64-bit object if we didn't find anything.
17589 if test -z "$aix_libpath"; then
17590 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17592 else
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17600 conftest$ac_exeext conftest.$ac_ext
17601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17603 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17604 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"
17605 else
17606 if test "$host_cpu" = ia64; then
17607 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17608 allow_undefined_flag_F77="-z nodefs"
17609 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"
17610 else
17611 # Determine the default libpath from the value encoded in an empty executable.
17612 cat >conftest.$ac_ext <<_ACEOF
17613 program main
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (ac_try="$ac_link"
17619 case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_link") 2>conftest.er1
17625 ac_status=$?
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } && {
17631 test -z "$ac_f77_werror_flag" ||
17632 test ! -s conftest.err
17633 } && test -s conftest$ac_exeext &&
17634 $as_test_x conftest$ac_exeext; then
17636 lt_aix_libpath_sed='
17637 /Import File Strings/,/^$/ {
17638 /^0/ {
17639 s/^0 *\(.*\)$/\1/
17643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17644 # Check for a 64-bit object if we didn't find anything.
17645 if test -z "$aix_libpath"; then
17646 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17648 else
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17656 conftest$ac_exeext conftest.$ac_ext
17657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17659 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17660 # Warning - without using the other run time loading flags,
17661 # -berok will link without error, but may produce a broken library.
17662 no_undefined_flag_F77=' ${wl}-bernotok'
17663 allow_undefined_flag_F77=' ${wl}-berok'
17664 # Exported symbols can be pulled into shared objects from archives
17665 whole_archive_flag_spec_F77='$convenience'
17666 archive_cmds_need_lc_F77=yes
17667 # This is similar to how AIX traditionally builds its shared libraries.
17668 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'
17673 amigaos*)
17674 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)'
17675 hardcode_libdir_flag_spec_F77='-L$libdir'
17676 hardcode_minus_L_F77=yes
17677 # see comment about different semantics on the GNU ld section
17678 ld_shlibs_F77=no
17681 bsdi[45]*)
17682 export_dynamic_flag_spec_F77=-rdynamic
17685 cygwin* | mingw* | pw32*)
17686 # When not using gcc, we currently assume that we are using
17687 # Microsoft Visual C++.
17688 # hardcode_libdir_flag_spec is actually meaningless, as there is
17689 # no search path for DLLs.
17690 hardcode_libdir_flag_spec_F77=' '
17691 allow_undefined_flag_F77=unsupported
17692 # Tell ltmain to make .lib files, not .a files.
17693 libext=lib
17694 # Tell ltmain to make .dll files, not .so files.
17695 shrext_cmds=".dll"
17696 # FIXME: Setting linknames here is a bad hack.
17697 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17698 # The linker will automatically build a .lib file if we build a DLL.
17699 old_archive_From_new_cmds_F77='true'
17700 # FIXME: Should let the user specify the lib program.
17701 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17702 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17703 enable_shared_with_static_runtimes_F77=yes
17706 darwin* | rhapsody*)
17707 case $host_os in
17708 rhapsody* | darwin1.[012])
17709 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17711 *) # Darwin 1.3 on
17712 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17713 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17714 else
17715 case ${MACOSX_DEPLOYMENT_TARGET} in
17716 10.[012])
17717 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17719 10.*)
17720 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17722 esac
17725 esac
17726 archive_cmds_need_lc_F77=no
17727 hardcode_direct_F77=no
17728 hardcode_automatic_F77=yes
17729 hardcode_shlibpath_var_F77=unsupported
17730 whole_archive_flag_spec_F77=''
17731 link_all_deplibs_F77=yes
17732 if test "$GCC" = yes ; then
17733 output_verbose_link_cmd='echo'
17734 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17735 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17737 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}'
17738 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}'
17739 else
17740 case $cc_basename in
17741 xlc*)
17742 output_verbose_link_cmd='echo'
17743 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17744 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17745 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17746 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}'
17747 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}'
17750 ld_shlibs_F77=no
17752 esac
17756 dgux*)
17757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17758 hardcode_libdir_flag_spec_F77='-L$libdir'
17759 hardcode_shlibpath_var_F77=no
17762 freebsd1*)
17763 ld_shlibs_F77=no
17766 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17767 # support. Future versions do this automatically, but an explicit c++rt0.o
17768 # does not break anything, and helps significantly (at the cost of a little
17769 # extra space).
17770 freebsd2.2*)
17771 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17772 hardcode_libdir_flag_spec_F77='-R$libdir'
17773 hardcode_direct_F77=yes
17774 hardcode_shlibpath_var_F77=no
17777 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17778 freebsd2*)
17779 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17780 hardcode_direct_F77=yes
17781 hardcode_minus_L_F77=yes
17782 hardcode_shlibpath_var_F77=no
17785 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17786 freebsd* | dragonfly*)
17787 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17788 hardcode_libdir_flag_spec_F77='-R$libdir'
17789 hardcode_direct_F77=yes
17790 hardcode_shlibpath_var_F77=no
17793 hpux9*)
17794 if test "$GCC" = yes; then
17795 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'
17796 else
17797 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'
17799 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17800 hardcode_libdir_separator_F77=:
17801 hardcode_direct_F77=yes
17803 # hardcode_minus_L: Not really in the search PATH,
17804 # but as the default location of the library.
17805 hardcode_minus_L_F77=yes
17806 export_dynamic_flag_spec_F77='${wl}-E'
17809 hpux10*)
17810 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17811 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17812 else
17813 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17815 if test "$with_gnu_ld" = no; then
17816 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17817 hardcode_libdir_separator_F77=:
17819 hardcode_direct_F77=yes
17820 export_dynamic_flag_spec_F77='${wl}-E'
17822 # hardcode_minus_L: Not really in the search PATH,
17823 # but as the default location of the library.
17824 hardcode_minus_L_F77=yes
17828 hpux11*)
17829 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17830 case $host_cpu in
17831 hppa*64*)
17832 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17834 ia64*)
17835 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17838 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17840 esac
17841 else
17842 case $host_cpu in
17843 hppa*64*)
17844 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17846 ia64*)
17847 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17850 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17852 esac
17854 if test "$with_gnu_ld" = no; then
17855 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17856 hardcode_libdir_separator_F77=:
17858 case $host_cpu in
17859 hppa*64*|ia64*)
17860 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17861 hardcode_direct_F77=no
17862 hardcode_shlibpath_var_F77=no
17865 hardcode_direct_F77=yes
17866 export_dynamic_flag_spec_F77='${wl}-E'
17868 # hardcode_minus_L: Not really in the search PATH,
17869 # but as the default location of the library.
17870 hardcode_minus_L_F77=yes
17872 esac
17876 irix5* | irix6* | nonstopux*)
17877 if test "$GCC" = yes; then
17878 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'
17879 else
17880 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'
17881 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17883 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17884 hardcode_libdir_separator_F77=:
17885 link_all_deplibs_F77=yes
17888 netbsd*)
17889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17890 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17891 else
17892 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17894 hardcode_libdir_flag_spec_F77='-R$libdir'
17895 hardcode_direct_F77=yes
17896 hardcode_shlibpath_var_F77=no
17899 newsos6)
17900 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17901 hardcode_direct_F77=yes
17902 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17903 hardcode_libdir_separator_F77=:
17904 hardcode_shlibpath_var_F77=no
17907 openbsd*)
17908 if test -f /usr/libexec/ld.so; then
17909 hardcode_direct_F77=yes
17910 hardcode_shlibpath_var_F77=no
17911 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17912 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17913 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17914 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17915 export_dynamic_flag_spec_F77='${wl}-E'
17916 else
17917 case $host_os in
17918 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17919 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17920 hardcode_libdir_flag_spec_F77='-R$libdir'
17923 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17924 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17926 esac
17928 else
17929 ld_shlibs_F77=no
17933 os2*)
17934 hardcode_libdir_flag_spec_F77='-L$libdir'
17935 hardcode_minus_L_F77=yes
17936 allow_undefined_flag_F77=unsupported
17937 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'
17938 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17941 osf3*)
17942 if test "$GCC" = yes; then
17943 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17944 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'
17945 else
17946 allow_undefined_flag_F77=' -expect_unresolved \*'
17947 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'
17949 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17950 hardcode_libdir_separator_F77=:
17953 osf4* | osf5*) # as osf3* with the addition of -msym flag
17954 if test "$GCC" = yes; then
17955 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17956 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'
17957 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17958 else
17959 allow_undefined_flag_F77=' -expect_unresolved \*'
17960 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'
17961 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~
17962 $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'
17964 # Both c and cxx compiler support -rpath directly
17965 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17967 hardcode_libdir_separator_F77=:
17970 solaris*)
17971 no_undefined_flag_F77=' -z text'
17972 if test "$GCC" = yes; then
17973 wlarc='${wl}'
17974 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17975 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17976 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17977 else
17978 wlarc=''
17979 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17980 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17981 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17983 hardcode_libdir_flag_spec_F77='-R$libdir'
17984 hardcode_shlibpath_var_F77=no
17985 case $host_os in
17986 solaris2.[0-5] | solaris2.[0-5].*) ;;
17988 # The compiler driver will combine and reorder linker options,
17989 # but understands `-z linker_flag'. GCC discards it without `$wl',
17990 # but is careful enough not to reorder.
17991 # Supported since Solaris 2.6 (maybe 2.5.1?)
17992 if test "$GCC" = yes; then
17993 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17994 else
17995 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17998 esac
17999 link_all_deplibs_F77=yes
18002 sunos4*)
18003 if test "x$host_vendor" = xsequent; then
18004 # Use $CC to link under sequent, because it throws in some extra .o
18005 # files that make .init and .fini sections work.
18006 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18007 else
18008 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18010 hardcode_libdir_flag_spec_F77='-L$libdir'
18011 hardcode_direct_F77=yes
18012 hardcode_minus_L_F77=yes
18013 hardcode_shlibpath_var_F77=no
18016 sysv4)
18017 case $host_vendor in
18018 sni)
18019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020 hardcode_direct_F77=yes # is this really true???
18022 siemens)
18023 ## LD is ld it makes a PLAMLIB
18024 ## CC just makes a GrossModule.
18025 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18026 reload_cmds_F77='$CC -r -o $output$reload_objs'
18027 hardcode_direct_F77=no
18029 motorola)
18030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18031 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18033 esac
18034 runpath_var='LD_RUN_PATH'
18035 hardcode_shlibpath_var_F77=no
18038 sysv4.3*)
18039 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18040 hardcode_shlibpath_var_F77=no
18041 export_dynamic_flag_spec_F77='-Bexport'
18044 sysv4*MP*)
18045 if test -d /usr/nec; then
18046 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18047 hardcode_shlibpath_var_F77=no
18048 runpath_var=LD_RUN_PATH
18049 hardcode_runpath_var=yes
18050 ld_shlibs_F77=yes
18054 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18055 no_undefined_flag_F77='${wl}-z,text'
18056 archive_cmds_need_lc_F77=no
18057 hardcode_shlibpath_var_F77=no
18058 runpath_var='LD_RUN_PATH'
18060 if test "$GCC" = yes; then
18061 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18062 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18063 else
18064 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18065 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18069 sysv5* | sco3.2v5* | sco5v6*)
18070 # Note: We can NOT use -z defs as we might desire, because we do not
18071 # link with -lc, and that would cause any symbols used from libc to
18072 # always be unresolved, which means just about no library would
18073 # ever link correctly. If we're not using GNU ld we use -z text
18074 # though, which does catch some bad symbols but isn't as heavy-handed
18075 # as -z defs.
18076 no_undefined_flag_F77='${wl}-z,text'
18077 allow_undefined_flag_F77='${wl}-z,nodefs'
18078 archive_cmds_need_lc_F77=no
18079 hardcode_shlibpath_var_F77=no
18080 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18081 hardcode_libdir_separator_F77=':'
18082 link_all_deplibs_F77=yes
18083 export_dynamic_flag_spec_F77='${wl}-Bexport'
18084 runpath_var='LD_RUN_PATH'
18086 if test "$GCC" = yes; then
18087 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18088 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18089 else
18090 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18091 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095 uts4*)
18096 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097 hardcode_libdir_flag_spec_F77='-L$libdir'
18098 hardcode_shlibpath_var_F77=no
18102 ld_shlibs_F77=no
18104 esac
18107 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18108 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
18109 test "$ld_shlibs_F77" = no && can_build_shared=no
18112 # Do we need to explicitly link libc?
18114 case "x$archive_cmds_need_lc_F77" in
18115 x|xyes)
18116 # Assume -lc should be added
18117 archive_cmds_need_lc_F77=yes
18119 if test "$enable_shared" = yes && test "$GCC" = yes; then
18120 case $archive_cmds_F77 in
18121 *'~'*)
18122 # FIXME: we may have to deal with multi-command sequences.
18124 '$CC '*)
18125 # Test whether the compiler implicitly links with -lc since on some
18126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18127 # to ld, don't add -lc before -lgcc.
18128 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18129 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18130 $rm conftest*
18131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18134 (eval $ac_compile) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } 2>conftest.err; then
18138 soname=conftest
18139 lib=conftest
18140 libobjs=conftest.$ac_objext
18141 deplibs=
18142 wl=$lt_prog_compiler_wl_F77
18143 pic_flag=$lt_prog_compiler_pic_F77
18144 compiler_flags=-v
18145 linker_flags=-v
18146 verstring=
18147 output_objdir=.
18148 libname=conftest
18149 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18150 allow_undefined_flag_F77=
18151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18152 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }
18156 then
18157 archive_cmds_need_lc_F77=no
18158 else
18159 archive_cmds_need_lc_F77=yes
18161 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18162 else
18163 cat conftest.err 1>&5
18165 $rm conftest*
18166 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18167 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18169 esac
18172 esac
18174 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18175 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18176 library_names_spec=
18177 libname_spec='lib$name'
18178 soname_spec=
18179 shrext_cmds=".so"
18180 postinstall_cmds=
18181 postuninstall_cmds=
18182 finish_cmds=
18183 finish_eval=
18184 shlibpath_var=
18185 shlibpath_overrides_runpath=unknown
18186 version_type=none
18187 dynamic_linker="$host_os ld.so"
18188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18190 need_lib_prefix=unknown
18191 hardcode_into_libs=no
18193 # when you set need_version to no, make sure it does not cause -set_version
18194 # flags to be left without arguments
18195 need_version=unknown
18197 case $host_os in
18198 aix3*)
18199 version_type=linux
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18201 shlibpath_var=LIBPATH
18203 # AIX 3 has no versioning support, so we append a major version to the name.
18204 soname_spec='${libname}${release}${shared_ext}$major'
18207 aix4* | aix5*)
18208 version_type=linux
18209 need_lib_prefix=no
18210 need_version=no
18211 hardcode_into_libs=yes
18212 if test "$host_cpu" = ia64; then
18213 # AIX 5 supports IA64
18214 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 else
18217 # With GCC up to 2.95.x, collect2 would create an import file
18218 # for dependence libraries. The import file would start with
18219 # the line `#! .'. This would cause the generated library to
18220 # depend on `.', always an invalid library. This was fixed in
18221 # development snapshots of GCC prior to 3.0.
18222 case $host_os in
18223 aix4 | aix4.[01] | aix4.[01].*)
18224 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18225 echo ' yes '
18226 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18228 else
18229 can_build_shared=no
18232 esac
18233 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18234 # soname into executable. Probably we can add versioning support to
18235 # collect2, so additional links can be useful in future.
18236 if test "$aix_use_runtimelinking" = yes; then
18237 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18238 # instead of lib<name>.a to let people know that these are not
18239 # typical AIX shared libraries.
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18241 else
18242 # We preserve .a as extension for shared libraries through AIX4.2
18243 # and later when we are not doing run time linking.
18244 library_names_spec='${libname}${release}.a $libname.a'
18245 soname_spec='${libname}${release}${shared_ext}$major'
18247 shlibpath_var=LIBPATH
18251 amigaos*)
18252 library_names_spec='$libname.ixlibrary $libname.a'
18253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18254 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'
18257 beos*)
18258 library_names_spec='${libname}${shared_ext}'
18259 dynamic_linker="$host_os ld.so"
18260 shlibpath_var=LIBRARY_PATH
18263 bsdi[45]*)
18264 version_type=linux
18265 need_version=no
18266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18267 soname_spec='${libname}${release}${shared_ext}$major'
18268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18272 # the default ld.so.conf also contains /usr/contrib/lib and
18273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18274 # libtool to hard-code these into programs
18277 cygwin* | mingw* | pw32*)
18278 version_type=windows
18279 shrext_cmds=".dll"
18280 need_version=no
18281 need_lib_prefix=no
18283 case $GCC,$host_os in
18284 yes,cygwin* | yes,mingw* | yes,pw32*)
18285 library_names_spec='$libname.dll.a'
18286 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18287 postinstall_cmds='base_file=`basename \${file}`~
18288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18289 dldir=$destdir/`dirname \$dlpath`~
18290 test -d \$dldir || mkdir -p \$dldir~
18291 $install_prog $dir/$dlname \$dldir/$dlname~
18292 chmod a+x \$dldir/$dlname'
18293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18294 dlpath=$dir/\$dldll~
18295 $rm \$dlpath'
18296 shlibpath_overrides_runpath=yes
18298 case $host_os in
18299 cygwin*)
18300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18302 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18304 mingw*)
18305 # MinGW DLLs use traditional 'lib' prefix
18306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18309 # It is most probably a Windows format PATH printed by
18310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18311 # path with ; separators, and with drive letters. We can handle the
18312 # drive letters (cygwin fileutils understands them), so leave them,
18313 # especially as we might pass files found there to a mingw objdump,
18314 # which wouldn't understand a cygwinified path. Ahh.
18315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18316 else
18317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18320 pw32*)
18321 # pw32 DLLs use 'pw' prefix rather than 'lib'
18322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18324 esac
18328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18330 esac
18331 dynamic_linker='Win32 ld.exe'
18332 # FIXME: first we should search . and the directory the executable is in
18333 shlibpath_var=PATH
18336 darwin* | rhapsody*)
18337 dynamic_linker="$host_os dyld"
18338 version_type=darwin
18339 need_lib_prefix=no
18340 need_version=no
18341 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18342 soname_spec='${libname}${release}${major}$shared_ext'
18343 shlibpath_overrides_runpath=yes
18344 shlibpath_var=DYLD_LIBRARY_PATH
18345 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18347 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18350 dgux*)
18351 version_type=linux
18352 need_lib_prefix=no
18353 need_version=no
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18355 soname_spec='${libname}${release}${shared_ext}$major'
18356 shlibpath_var=LD_LIBRARY_PATH
18359 freebsd1*)
18360 dynamic_linker=no
18363 freebsd* | dragonfly*)
18364 # DragonFly does not have aout. When/if they implement a new
18365 # versioning mechanism, adjust this.
18366 if test -x /usr/bin/objformat; then
18367 objformat=`/usr/bin/objformat`
18368 else
18369 case $host_os in
18370 freebsd[123]*) objformat=aout ;;
18371 *) objformat=elf ;;
18372 esac
18374 # Handle Gentoo/FreeBSD as it was Linux
18375 case $host_vendor in
18376 gentoo)
18377 version_type=linux ;;
18379 version_type=freebsd-$objformat ;;
18380 esac
18382 case $version_type in
18383 freebsd-elf*)
18384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18385 need_version=no
18386 need_lib_prefix=no
18388 freebsd-*)
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18390 need_version=yes
18392 linux)
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 need_lib_prefix=no
18396 need_version=no
18398 esac
18399 shlibpath_var=LD_LIBRARY_PATH
18400 case $host_os in
18401 freebsd2*)
18402 shlibpath_overrides_runpath=yes
18404 freebsd3.[01]* | freebsdelf3.[01]*)
18405 shlibpath_overrides_runpath=yes
18406 hardcode_into_libs=yes
18408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18410 shlibpath_overrides_runpath=no
18411 hardcode_into_libs=yes
18413 *) # from 4.6 on, and DragonFly
18414 shlibpath_overrides_runpath=yes
18415 hardcode_into_libs=yes
18417 esac
18420 gnu*)
18421 version_type=linux
18422 need_lib_prefix=no
18423 need_version=no
18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18425 soname_spec='${libname}${release}${shared_ext}$major'
18426 shlibpath_var=LD_LIBRARY_PATH
18427 hardcode_into_libs=yes
18430 hpux9* | hpux10* | hpux11*)
18431 # Give a soname corresponding to the major version so that dld.sl refuses to
18432 # link against other versions.
18433 version_type=sunos
18434 need_lib_prefix=no
18435 need_version=no
18436 case $host_cpu in
18437 ia64*)
18438 shrext_cmds='.so'
18439 hardcode_into_libs=yes
18440 dynamic_linker="$host_os dld.so"
18441 shlibpath_var=LD_LIBRARY_PATH
18442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18445 if test "X$HPUX_IA64_MODE" = X32; then
18446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18447 else
18448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18452 hppa*64*)
18453 shrext_cmds='.sl'
18454 hardcode_into_libs=yes
18455 dynamic_linker="$host_os dld.sl"
18456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18459 soname_spec='${libname}${release}${shared_ext}$major'
18460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18464 shrext_cmds='.sl'
18465 dynamic_linker="$host_os dld.sl"
18466 shlibpath_var=SHLIB_PATH
18467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18469 soname_spec='${libname}${release}${shared_ext}$major'
18471 esac
18472 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18473 postinstall_cmds='chmod 555 $lib'
18476 interix[3-9]*)
18477 version_type=linux
18478 need_lib_prefix=no
18479 need_version=no
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18481 soname_spec='${libname}${release}${shared_ext}$major'
18482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18483 shlibpath_var=LD_LIBRARY_PATH
18484 shlibpath_overrides_runpath=no
18485 hardcode_into_libs=yes
18488 irix5* | irix6* | nonstopux*)
18489 case $host_os in
18490 nonstopux*) version_type=nonstopux ;;
18492 if test "$lt_cv_prog_gnu_ld" = yes; then
18493 version_type=linux
18494 else
18495 version_type=irix
18496 fi ;;
18497 esac
18498 need_lib_prefix=no
18499 need_version=no
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18502 case $host_os in
18503 irix5* | nonstopux*)
18504 libsuff= shlibsuff=
18507 case $LD in # libtool.m4 will add one of these switches to LD
18508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18509 libsuff= shlibsuff= libmagic=32-bit;;
18510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18511 libsuff=32 shlibsuff=N32 libmagic=N32;;
18512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18514 *) libsuff= shlibsuff= libmagic=never-match;;
18515 esac
18517 esac
18518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18519 shlibpath_overrides_runpath=no
18520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18522 hardcode_into_libs=yes
18525 # No shared lib support for Linux oldld, aout, or coff.
18526 linux*oldld* | linux*aout* | linux*coff*)
18527 dynamic_linker=no
18530 # This must be Linux ELF.
18531 linux* | k*bsd*-gnu)
18532 version_type=linux
18533 need_lib_prefix=no
18534 need_version=no
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536 soname_spec='${libname}${release}${shared_ext}$major'
18537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18538 shlibpath_var=LD_LIBRARY_PATH
18539 shlibpath_overrides_runpath=no
18540 # This implies no fast_install, which is unacceptable.
18541 # Some rework will be needed to allow for fast_install
18542 # before this can be enabled.
18543 hardcode_into_libs=yes
18545 # Append ld.so.conf contents to the search path
18546 if test -f /etc/ld.so.conf; then
18547 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' ' '`
18548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18551 # We used to test for /lib/ld.so.1 and disable shared libraries on
18552 # powerpc, because MkLinux only supported shared libraries with the
18553 # GNU dynamic linker. Since this was broken with cross compilers,
18554 # most powerpc-linux boxes support dynamic linking these days and
18555 # people can always --disable-shared, the test was removed, and we
18556 # assume the GNU/Linux dynamic linker is in use.
18557 dynamic_linker='GNU/Linux ld.so'
18560 netbsd*)
18561 version_type=sunos
18562 need_lib_prefix=no
18563 need_version=no
18564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567 dynamic_linker='NetBSD (a.out) ld.so'
18568 else
18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18570 soname_spec='${libname}${release}${shared_ext}$major'
18571 dynamic_linker='NetBSD ld.elf_so'
18573 shlibpath_var=LD_LIBRARY_PATH
18574 shlibpath_overrides_runpath=yes
18575 hardcode_into_libs=yes
18578 newsos6)
18579 version_type=linux
18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18581 shlibpath_var=LD_LIBRARY_PATH
18582 shlibpath_overrides_runpath=yes
18585 nto-qnx*)
18586 version_type=linux
18587 need_lib_prefix=no
18588 need_version=no
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 shlibpath_var=LD_LIBRARY_PATH
18592 shlibpath_overrides_runpath=yes
18595 openbsd*)
18596 version_type=sunos
18597 sys_lib_dlsearch_path_spec="/usr/lib"
18598 need_lib_prefix=no
18599 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18600 case $host_os in
18601 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18602 *) need_version=no ;;
18603 esac
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18606 shlibpath_var=LD_LIBRARY_PATH
18607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18608 case $host_os in
18609 openbsd2.[89] | openbsd2.[89].*)
18610 shlibpath_overrides_runpath=no
18613 shlibpath_overrides_runpath=yes
18615 esac
18616 else
18617 shlibpath_overrides_runpath=yes
18621 os2*)
18622 libname_spec='$name'
18623 shrext_cmds=".dll"
18624 need_lib_prefix=no
18625 library_names_spec='$libname${shared_ext} $libname.a'
18626 dynamic_linker='OS/2 ld.exe'
18627 shlibpath_var=LIBPATH
18630 osf3* | osf4* | osf5*)
18631 version_type=osf
18632 need_lib_prefix=no
18633 need_version=no
18634 soname_spec='${libname}${release}${shared_ext}$major'
18635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636 shlibpath_var=LD_LIBRARY_PATH
18637 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18638 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18641 rdos*)
18642 dynamic_linker=no
18645 solaris*)
18646 version_type=linux
18647 need_lib_prefix=no
18648 need_version=no
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18650 soname_spec='${libname}${release}${shared_ext}$major'
18651 shlibpath_var=LD_LIBRARY_PATH
18652 shlibpath_overrides_runpath=yes
18653 hardcode_into_libs=yes
18654 # ldd complains unless libraries are executable
18655 postinstall_cmds='chmod +x $lib'
18658 sunos4*)
18659 version_type=sunos
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18662 shlibpath_var=LD_LIBRARY_PATH
18663 shlibpath_overrides_runpath=yes
18664 if test "$with_gnu_ld" = yes; then
18665 need_lib_prefix=no
18667 need_version=yes
18670 sysv4 | sysv4.3*)
18671 version_type=linux
18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673 soname_spec='${libname}${release}${shared_ext}$major'
18674 shlibpath_var=LD_LIBRARY_PATH
18675 case $host_vendor in
18676 sni)
18677 shlibpath_overrides_runpath=no
18678 need_lib_prefix=no
18679 export_dynamic_flag_spec='${wl}-Blargedynsym'
18680 runpath_var=LD_RUN_PATH
18682 siemens)
18683 need_lib_prefix=no
18685 motorola)
18686 need_lib_prefix=no
18687 need_version=no
18688 shlibpath_overrides_runpath=no
18689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18691 esac
18694 sysv4*MP*)
18695 if test -d /usr/nec ;then
18696 version_type=linux
18697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18698 soname_spec='$libname${shared_ext}.$major'
18699 shlibpath_var=LD_LIBRARY_PATH
18703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18704 version_type=freebsd-elf
18705 need_lib_prefix=no
18706 need_version=no
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 shlibpath_var=LD_LIBRARY_PATH
18710 hardcode_into_libs=yes
18711 if test "$with_gnu_ld" = yes; then
18712 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18713 shlibpath_overrides_runpath=no
18714 else
18715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18716 shlibpath_overrides_runpath=yes
18717 case $host_os in
18718 sco3.2v5*)
18719 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18721 esac
18723 sys_lib_dlsearch_path_spec='/usr/lib'
18726 uts4*)
18727 version_type=linux
18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729 soname_spec='${libname}${release}${shared_ext}$major'
18730 shlibpath_var=LD_LIBRARY_PATH
18734 dynamic_linker=no
18736 esac
18737 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18738 echo "${ECHO_T}$dynamic_linker" >&6; }
18739 test "$dynamic_linker" = no && can_build_shared=no
18741 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18742 if test "$GCC" = yes; then
18743 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18746 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18747 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18748 hardcode_action_F77=
18749 if test -n "$hardcode_libdir_flag_spec_F77" || \
18750 test -n "$runpath_var_F77" || \
18751 test "X$hardcode_automatic_F77" = "Xyes" ; then
18753 # We can hardcode non-existant directories.
18754 if test "$hardcode_direct_F77" != no &&
18755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18756 # have to relink, otherwise we might link with an installed library
18757 # when we should be linking with a yet-to-be-installed one
18758 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18759 test "$hardcode_minus_L_F77" != no; then
18760 # Linking always hardcodes the temporary library directory.
18761 hardcode_action_F77=relink
18762 else
18763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18764 hardcode_action_F77=immediate
18766 else
18767 # We cannot hardcode anything, or else we can only hardcode existing
18768 # directories.
18769 hardcode_action_F77=unsupported
18771 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18772 echo "${ECHO_T}$hardcode_action_F77" >&6; }
18774 if test "$hardcode_action_F77" = relink; then
18775 # Fast installation is not supported
18776 enable_fast_install=no
18777 elif test "$shlibpath_overrides_runpath" = yes ||
18778 test "$enable_shared" = no; then
18779 # Fast installation is not necessary
18780 enable_fast_install=needless
18784 # The else clause should only fire when bootstrapping the
18785 # libtool distribution, otherwise you forgot to ship ltmain.sh
18786 # with your package, and you will get complaints that there are
18787 # no rules to generate ltmain.sh.
18788 if test -f "$ltmain"; then
18789 # See if we are running on zsh, and set the options which allow our commands through
18790 # without removal of \ escapes.
18791 if test -n "${ZSH_VERSION+set}" ; then
18792 setopt NO_GLOB_SUBST
18794 # Now quote all the things that may contain metacharacters while being
18795 # careful not to overquote the AC_SUBSTed values. We take copies of the
18796 # variables and quote the copies for generation of the libtool script.
18797 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18798 SED SHELL STRIP \
18799 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18800 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18801 deplibs_check_method reload_flag reload_cmds need_locks \
18802 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18803 lt_cv_sys_global_symbol_to_c_name_address \
18804 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18805 old_postinstall_cmds old_postuninstall_cmds \
18806 compiler_F77 \
18807 CC_F77 \
18808 LD_F77 \
18809 lt_prog_compiler_wl_F77 \
18810 lt_prog_compiler_pic_F77 \
18811 lt_prog_compiler_static_F77 \
18812 lt_prog_compiler_no_builtin_flag_F77 \
18813 export_dynamic_flag_spec_F77 \
18814 thread_safe_flag_spec_F77 \
18815 whole_archive_flag_spec_F77 \
18816 enable_shared_with_static_runtimes_F77 \
18817 old_archive_cmds_F77 \
18818 old_archive_from_new_cmds_F77 \
18819 predep_objects_F77 \
18820 postdep_objects_F77 \
18821 predeps_F77 \
18822 postdeps_F77 \
18823 compiler_lib_search_path_F77 \
18824 archive_cmds_F77 \
18825 archive_expsym_cmds_F77 \
18826 postinstall_cmds_F77 \
18827 postuninstall_cmds_F77 \
18828 old_archive_from_expsyms_cmds_F77 \
18829 allow_undefined_flag_F77 \
18830 no_undefined_flag_F77 \
18831 export_symbols_cmds_F77 \
18832 hardcode_libdir_flag_spec_F77 \
18833 hardcode_libdir_flag_spec_ld_F77 \
18834 hardcode_libdir_separator_F77 \
18835 hardcode_automatic_F77 \
18836 module_cmds_F77 \
18837 module_expsym_cmds_F77 \
18838 lt_cv_prog_compiler_c_o_F77 \
18839 fix_srcfile_path_F77 \
18840 exclude_expsyms_F77 \
18841 include_expsyms_F77; do
18843 case $var in
18844 old_archive_cmds_F77 | \
18845 old_archive_from_new_cmds_F77 | \
18846 archive_cmds_F77 | \
18847 archive_expsym_cmds_F77 | \
18848 module_cmds_F77 | \
18849 module_expsym_cmds_F77 | \
18850 old_archive_from_expsyms_cmds_F77 | \
18851 export_symbols_cmds_F77 | \
18852 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18853 postinstall_cmds | postuninstall_cmds | \
18854 old_postinstall_cmds | old_postuninstall_cmds | \
18855 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18856 # Double-quote double-evaled strings.
18857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18862 esac
18863 done
18865 case $lt_echo in
18866 *'\$0 --fallback-echo"')
18867 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18869 esac
18871 cfgfile="$ofile"
18873 cat <<__EOF__ >> "$cfgfile"
18874 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18878 # Shell to use when invoking shell scripts.
18879 SHELL=$lt_SHELL
18881 # Whether or not to build shared libraries.
18882 build_libtool_libs=$enable_shared
18884 # Whether or not to build static libraries.
18885 build_old_libs=$enable_static
18887 # Whether or not to add -lc for building shared libraries.
18888 build_libtool_need_lc=$archive_cmds_need_lc_F77
18890 # Whether or not to disallow shared libs when runtime libs are static
18891 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18893 # Whether or not to optimize for fast installation.
18894 fast_install=$enable_fast_install
18896 # The host system.
18897 host_alias=$host_alias
18898 host=$host
18899 host_os=$host_os
18901 # The build system.
18902 build_alias=$build_alias
18903 build=$build
18904 build_os=$build_os
18906 # An echo program that does not interpret backslashes.
18907 echo=$lt_echo
18909 # The archiver.
18910 AR=$lt_AR
18911 AR_FLAGS=$lt_AR_FLAGS
18913 # A C compiler.
18914 LTCC=$lt_LTCC
18916 # LTCC compiler flags.
18917 LTCFLAGS=$lt_LTCFLAGS
18919 # A language-specific compiler.
18920 CC=$lt_compiler_F77
18922 # Is the compiler the GNU C compiler?
18923 with_gcc=$GCC_F77
18925 # An ERE matcher.
18926 EGREP=$lt_EGREP
18928 # The linker used to build libraries.
18929 LD=$lt_LD_F77
18931 # Whether we need hard or soft links.
18932 LN_S=$lt_LN_S
18934 # A BSD-compatible nm program.
18935 NM=$lt_NM
18937 # A symbol stripping program
18938 STRIP=$lt_STRIP
18940 # Used to examine libraries when file_magic_cmd begins "file"
18941 MAGIC_CMD=$MAGIC_CMD
18943 # Used on cygwin: DLL creation program.
18944 DLLTOOL="$DLLTOOL"
18946 # Used on cygwin: object dumper.
18947 OBJDUMP="$OBJDUMP"
18949 # Used on cygwin: assembler.
18950 AS="$AS"
18952 # The name of the directory that contains temporary libtool files.
18953 objdir=$objdir
18955 # How to create reloadable object files.
18956 reload_flag=$lt_reload_flag
18957 reload_cmds=$lt_reload_cmds
18959 # How to pass a linker flag through the compiler.
18960 wl=$lt_lt_prog_compiler_wl_F77
18962 # Object file suffix (normally "o").
18963 objext="$ac_objext"
18965 # Old archive suffix (normally "a").
18966 libext="$libext"
18968 # Shared library suffix (normally ".so").
18969 shrext_cmds='$shrext_cmds'
18971 # Executable file suffix (normally "").
18972 exeext="$exeext"
18974 # Additional compiler flags for building library objects.
18975 pic_flag=$lt_lt_prog_compiler_pic_F77
18976 pic_mode=$pic_mode
18978 # What is the maximum length of a command?
18979 max_cmd_len=$lt_cv_sys_max_cmd_len
18981 # Does compiler simultaneously support -c and -o options?
18982 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18984 # Must we lock files when doing compilation?
18985 need_locks=$lt_need_locks
18987 # Do we need the lib prefix for modules?
18988 need_lib_prefix=$need_lib_prefix
18990 # Do we need a version for libraries?
18991 need_version=$need_version
18993 # Whether dlopen is supported.
18994 dlopen_support=$enable_dlopen
18996 # Whether dlopen of programs is supported.
18997 dlopen_self=$enable_dlopen_self
18999 # Whether dlopen of statically linked programs is supported.
19000 dlopen_self_static=$enable_dlopen_self_static
19002 # Compiler flag to prevent dynamic linking.
19003 link_static_flag=$lt_lt_prog_compiler_static_F77
19005 # Compiler flag to turn off builtin functions.
19006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19008 # Compiler flag to allow reflexive dlopens.
19009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19011 # Compiler flag to generate shared objects directly from archives.
19012 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19014 # Compiler flag to generate thread-safe objects.
19015 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19017 # Library versioning type.
19018 version_type=$version_type
19020 # Format of library name prefix.
19021 libname_spec=$lt_libname_spec
19023 # List of archive names. First name is the real one, the rest are links.
19024 # The last name is the one that the linker finds with -lNAME.
19025 library_names_spec=$lt_library_names_spec
19027 # The coded name of the library, if different from the real name.
19028 soname_spec=$lt_soname_spec
19030 # Commands used to build and install an old-style archive.
19031 RANLIB=$lt_RANLIB
19032 old_archive_cmds=$lt_old_archive_cmds_F77
19033 old_postinstall_cmds=$lt_old_postinstall_cmds
19034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19036 # Create an old-style archive from a shared archive.
19037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19039 # Create a temporary old-style archive to link instead of a shared archive.
19040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19042 # Commands used to build and install a shared archive.
19043 archive_cmds=$lt_archive_cmds_F77
19044 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19045 postinstall_cmds=$lt_postinstall_cmds
19046 postuninstall_cmds=$lt_postuninstall_cmds
19048 # Commands used to build a loadable module (assumed same as above if empty)
19049 module_cmds=$lt_module_cmds_F77
19050 module_expsym_cmds=$lt_module_expsym_cmds_F77
19052 # Commands to strip libraries.
19053 old_striplib=$lt_old_striplib
19054 striplib=$lt_striplib
19056 # Dependencies to place before the objects being linked to create a
19057 # shared library.
19058 predep_objects=$lt_predep_objects_F77
19060 # Dependencies to place after the objects being linked to create a
19061 # shared library.
19062 postdep_objects=$lt_postdep_objects_F77
19064 # Dependencies to place before the objects being linked to create a
19065 # shared library.
19066 predeps=$lt_predeps_F77
19068 # Dependencies to place after the objects being linked to create a
19069 # shared library.
19070 postdeps=$lt_postdeps_F77
19072 # The library search path used internally by the compiler when linking
19073 # a shared library.
19074 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19076 # Method to check whether dependent libraries are shared objects.
19077 deplibs_check_method=$lt_deplibs_check_method
19079 # Command to use when deplibs_check_method == file_magic.
19080 file_magic_cmd=$lt_file_magic_cmd
19082 # Flag that allows shared libraries with undefined symbols to be built.
19083 allow_undefined_flag=$lt_allow_undefined_flag_F77
19085 # Flag that forces no undefined symbols.
19086 no_undefined_flag=$lt_no_undefined_flag_F77
19088 # Commands used to finish a libtool library installation in a directory.
19089 finish_cmds=$lt_finish_cmds
19091 # Same as above, but a single script fragment to be evaled but not shown.
19092 finish_eval=$lt_finish_eval
19094 # Take the output of nm and produce a listing of raw symbols and C names.
19095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19097 # Transform the output of nm in a proper C declaration
19098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19100 # Transform the output of nm in a C name address pair
19101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19103 # This is the shared library runtime path variable.
19104 runpath_var=$runpath_var
19106 # This is the shared library path variable.
19107 shlibpath_var=$shlibpath_var
19109 # Is shlibpath searched before the hard-coded library search path?
19110 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19112 # How to hardcode a shared library path into an executable.
19113 hardcode_action=$hardcode_action_F77
19115 # Whether we should hardcode library paths into libraries.
19116 hardcode_into_libs=$hardcode_into_libs
19118 # Flag to hardcode \$libdir into a binary during linking.
19119 # This must work even if \$libdir does not exist.
19120 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19122 # If ld is used when linking, flag to hardcode \$libdir into
19123 # a binary during linking. This must work even if \$libdir does
19124 # not exist.
19125 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19127 # Whether we need a single -rpath flag with a separated argument.
19128 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19130 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19131 # resulting binary.
19132 hardcode_direct=$hardcode_direct_F77
19134 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19135 # resulting binary.
19136 hardcode_minus_L=$hardcode_minus_L_F77
19138 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19139 # the resulting binary.
19140 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19142 # Set to yes if building a shared library automatically hardcodes DIR into the library
19143 # and all subsequent libraries and executables linked against it.
19144 hardcode_automatic=$hardcode_automatic_F77
19146 # Variables whose values should be saved in libtool wrapper scripts and
19147 # restored at relink time.
19148 variables_saved_for_relink="$variables_saved_for_relink"
19150 # Whether libtool must link a program against all its dependency libraries.
19151 link_all_deplibs=$link_all_deplibs_F77
19153 # Compile-time system search path for libraries
19154 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19156 # Run-time system search path for libraries
19157 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19159 # Fix the shell variable \$srcfile for the compiler.
19160 fix_srcfile_path=$lt_fix_srcfile_path
19162 # Set to yes if exported symbols are required.
19163 always_export_symbols=$always_export_symbols_F77
19165 # The commands to list exported symbols.
19166 export_symbols_cmds=$lt_export_symbols_cmds_F77
19168 # The commands to extract the exported symbol list from a shared archive.
19169 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19171 # Symbols that should not be listed in the preloaded symbols.
19172 exclude_expsyms=$lt_exclude_expsyms_F77
19174 # Symbols that must always be exported.
19175 include_expsyms=$lt_include_expsyms_F77
19177 # ### END LIBTOOL TAG CONFIG: $tagname
19179 __EOF__
19182 else
19183 # If there is no Makefile yet, we rely on a make rule to execute
19184 # `config.status --recheck' to rerun these tests and create the
19185 # libtool script then.
19186 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19187 if test -f "$ltmain_in"; then
19188 test -f Makefile && make "$ltmain"
19193 ac_ext=c
19194 ac_cpp='$CPP $CPPFLAGS'
19195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19199 CC="$lt_save_CC"
19201 else
19202 tagname=""
19206 GCJ)
19207 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19210 # Source file extension for Java test sources.
19211 ac_ext=java
19213 # Object file extension for compiled Java test sources.
19214 objext=o
19215 objext_GCJ=$objext
19217 # Code to be used in simple compile tests
19218 lt_simple_compile_test_code="class foo {}"
19220 # Code to be used in simple link tests
19221 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
19223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19225 # If no C compiler was specified, use CC.
19226 LTCC=${LTCC-"$CC"}
19228 # If no C compiler flags were specified, use CFLAGS.
19229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19231 # Allow CC to be a program name with arguments.
19232 compiler=$CC
19235 # save warnings/boilerplate of simple test code
19236 ac_outfile=conftest.$ac_objext
19237 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19239 _lt_compiler_boilerplate=`cat conftest.err`
19240 $rm conftest*
19242 ac_outfile=conftest.$ac_objext
19243 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19245 _lt_linker_boilerplate=`cat conftest.err`
19246 $rm conftest*
19249 # Allow CC to be a program name with arguments.
19250 lt_save_CC="$CC"
19251 CC=${GCJ-"gcj"}
19252 compiler=$CC
19253 compiler_GCJ=$CC
19254 for cc_temp in $compiler""; do
19255 case $cc_temp in
19256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19258 \-*) ;;
19259 *) break;;
19260 esac
19261 done
19262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19265 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19266 archive_cmds_need_lc_GCJ=no
19268 old_archive_cmds_GCJ=$old_archive_cmds
19271 lt_prog_compiler_no_builtin_flag_GCJ=
19273 if test "$GCC" = yes; then
19274 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19277 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19278 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
19279 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19282 lt_cv_prog_compiler_rtti_exceptions=no
19283 ac_outfile=conftest.$ac_objext
19284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19285 lt_compiler_flag="-fno-rtti -fno-exceptions"
19286 # Insert the option either (1) after the last *FLAGS variable, or
19287 # (2) before a word containing "conftest.", or (3) at the end.
19288 # Note that $ac_compile itself does not contain backslashes and begins
19289 # with a dollar sign (not a hyphen), so the echo should work correctly.
19290 # The option is referenced via a variable to avoid confusing sed.
19291 lt_compile=`echo "$ac_compile" | $SED \
19292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19294 -e 's:$: $lt_compiler_flag:'`
19295 (eval echo "\"\$as_me:19295: $lt_compile\"" >&5)
19296 (eval "$lt_compile" 2>conftest.err)
19297 ac_status=$?
19298 cat conftest.err >&5
19299 echo "$as_me:19299: \$? = $ac_status" >&5
19300 if (exit $ac_status) && test -s "$ac_outfile"; then
19301 # The compiler can only warn and ignore the option if not recognized
19302 # So say no if there are warnings other than the usual output.
19303 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19306 lt_cv_prog_compiler_rtti_exceptions=yes
19309 $rm conftest*
19312 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19313 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19315 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19316 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19317 else
19323 lt_prog_compiler_wl_GCJ=
19324 lt_prog_compiler_pic_GCJ=
19325 lt_prog_compiler_static_GCJ=
19327 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19328 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19330 if test "$GCC" = yes; then
19331 lt_prog_compiler_wl_GCJ='-Wl,'
19332 lt_prog_compiler_static_GCJ='-static'
19334 case $host_os in
19335 aix*)
19336 # All AIX code is PIC.
19337 if test "$host_cpu" = ia64; then
19338 # AIX 5 now supports IA64 processor
19339 lt_prog_compiler_static_GCJ='-Bstatic'
19343 amigaos*)
19344 # FIXME: we need at least 68020 code to build shared libraries, but
19345 # adding the `-m68020' flag to GCC prevents building anything better,
19346 # like `-m68040'.
19347 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19350 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19351 # PIC is the default for these OSes.
19354 mingw* | cygwin* | pw32* | os2*)
19355 # This hack is so that the source file can tell whether it is being
19356 # built for inclusion in a dll (and should export symbols for example).
19357 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19358 # (--disable-auto-import) libraries
19359 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19362 darwin* | rhapsody*)
19363 # PIC is the default on this platform
19364 # Common symbols not allowed in MH_DYLIB files
19365 lt_prog_compiler_pic_GCJ='-fno-common'
19368 interix[3-9]*)
19369 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19370 # Instead, we relocate shared libraries at runtime.
19373 msdosdjgpp*)
19374 # Just because we use GCC doesn't mean we suddenly get shared libraries
19375 # on systems that don't support them.
19376 lt_prog_compiler_can_build_shared_GCJ=no
19377 enable_shared=no
19380 sysv4*MP*)
19381 if test -d /usr/nec; then
19382 lt_prog_compiler_pic_GCJ=-Kconform_pic
19386 hpux*)
19387 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19388 # not for PA HP-UX.
19389 case $host_cpu in
19390 hppa*64*|ia64*)
19391 # +Z the default
19394 lt_prog_compiler_pic_GCJ='-fPIC'
19396 esac
19400 lt_prog_compiler_pic_GCJ='-fPIC'
19402 esac
19403 else
19404 # PORTME Check for flag to pass linker flags through the system compiler.
19405 case $host_os in
19406 aix*)
19407 lt_prog_compiler_wl_GCJ='-Wl,'
19408 if test "$host_cpu" = ia64; then
19409 # AIX 5 now supports IA64 processor
19410 lt_prog_compiler_static_GCJ='-Bstatic'
19411 else
19412 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19415 darwin*)
19416 # PIC is the default on this platform
19417 # Common symbols not allowed in MH_DYLIB files
19418 case $cc_basename in
19419 xlc*)
19420 lt_prog_compiler_pic_GCJ='-qnocommon'
19421 lt_prog_compiler_wl_GCJ='-Wl,'
19423 esac
19426 mingw* | cygwin* | pw32* | os2*)
19427 # This hack is so that the source file can tell whether it is being
19428 # built for inclusion in a dll (and should export symbols for example).
19429 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19432 hpux9* | hpux10* | hpux11*)
19433 lt_prog_compiler_wl_GCJ='-Wl,'
19434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19435 # not for PA HP-UX.
19436 case $host_cpu in
19437 hppa*64*|ia64*)
19438 # +Z the default
19441 lt_prog_compiler_pic_GCJ='+Z'
19443 esac
19444 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19445 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19448 irix5* | irix6* | nonstopux*)
19449 lt_prog_compiler_wl_GCJ='-Wl,'
19450 # PIC (with -KPIC) is the default.
19451 lt_prog_compiler_static_GCJ='-non_shared'
19454 newsos6)
19455 lt_prog_compiler_pic_GCJ='-KPIC'
19456 lt_prog_compiler_static_GCJ='-Bstatic'
19459 linux* | k*bsd*-gnu)
19460 case $cc_basename in
19461 icc* | ecc*)
19462 lt_prog_compiler_wl_GCJ='-Wl,'
19463 lt_prog_compiler_pic_GCJ='-KPIC'
19464 lt_prog_compiler_static_GCJ='-static'
19466 pgcc* | pgf77* | pgf90* | pgf95*)
19467 # Portland Group compilers (*not* the Pentium gcc compiler,
19468 # which looks to be a dead project)
19469 lt_prog_compiler_wl_GCJ='-Wl,'
19470 lt_prog_compiler_pic_GCJ='-fpic'
19471 lt_prog_compiler_static_GCJ='-Bstatic'
19473 ccc*)
19474 lt_prog_compiler_wl_GCJ='-Wl,'
19475 # All Alpha code is PIC.
19476 lt_prog_compiler_static_GCJ='-non_shared'
19479 case `$CC -V 2>&1 | sed 5q` in
19480 *Sun\ C*)
19481 # Sun C 5.9
19482 lt_prog_compiler_pic_GCJ='-KPIC'
19483 lt_prog_compiler_static_GCJ='-Bstatic'
19484 lt_prog_compiler_wl_GCJ='-Wl,'
19486 *Sun\ F*)
19487 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19488 lt_prog_compiler_pic_GCJ='-KPIC'
19489 lt_prog_compiler_static_GCJ='-Bstatic'
19490 lt_prog_compiler_wl_GCJ=''
19492 esac
19494 esac
19497 osf3* | osf4* | osf5*)
19498 lt_prog_compiler_wl_GCJ='-Wl,'
19499 # All OSF/1 code is PIC.
19500 lt_prog_compiler_static_GCJ='-non_shared'
19503 rdos*)
19504 lt_prog_compiler_static_GCJ='-non_shared'
19507 solaris*)
19508 lt_prog_compiler_pic_GCJ='-KPIC'
19509 lt_prog_compiler_static_GCJ='-Bstatic'
19510 case $cc_basename in
19511 f77* | f90* | f95*)
19512 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19514 lt_prog_compiler_wl_GCJ='-Wl,';;
19515 esac
19518 sunos4*)
19519 lt_prog_compiler_wl_GCJ='-Qoption ld '
19520 lt_prog_compiler_pic_GCJ='-PIC'
19521 lt_prog_compiler_static_GCJ='-Bstatic'
19524 sysv4 | sysv4.2uw2* | sysv4.3*)
19525 lt_prog_compiler_wl_GCJ='-Wl,'
19526 lt_prog_compiler_pic_GCJ='-KPIC'
19527 lt_prog_compiler_static_GCJ='-Bstatic'
19530 sysv4*MP*)
19531 if test -d /usr/nec ;then
19532 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19533 lt_prog_compiler_static_GCJ='-Bstatic'
19537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19538 lt_prog_compiler_wl_GCJ='-Wl,'
19539 lt_prog_compiler_pic_GCJ='-KPIC'
19540 lt_prog_compiler_static_GCJ='-Bstatic'
19543 unicos*)
19544 lt_prog_compiler_wl_GCJ='-Wl,'
19545 lt_prog_compiler_can_build_shared_GCJ=no
19548 uts4*)
19549 lt_prog_compiler_pic_GCJ='-pic'
19550 lt_prog_compiler_static_GCJ='-Bstatic'
19554 lt_prog_compiler_can_build_shared_GCJ=no
19556 esac
19559 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19560 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
19563 # Check to make sure the PIC flag actually works.
19565 if test -n "$lt_prog_compiler_pic_GCJ"; then
19567 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19568 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19569 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19571 else
19572 lt_prog_compiler_pic_works_GCJ=no
19573 ac_outfile=conftest.$ac_objext
19574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19575 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19576 # Insert the option either (1) after the last *FLAGS variable, or
19577 # (2) before a word containing "conftest.", or (3) at the end.
19578 # Note that $ac_compile itself does not contain backslashes and begins
19579 # with a dollar sign (not a hyphen), so the echo should work correctly.
19580 # The option is referenced via a variable to avoid confusing sed.
19581 lt_compile=`echo "$ac_compile" | $SED \
19582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19584 -e 's:$: $lt_compiler_flag:'`
19585 (eval echo "\"\$as_me:19585: $lt_compile\"" >&5)
19586 (eval "$lt_compile" 2>conftest.err)
19587 ac_status=$?
19588 cat conftest.err >&5
19589 echo "$as_me:19589: \$? = $ac_status" >&5
19590 if (exit $ac_status) && test -s "$ac_outfile"; then
19591 # The compiler can only warn and ignore the option if not recognized
19592 # So say no if there are warnings other than the usual output.
19593 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19595 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19596 lt_prog_compiler_pic_works_GCJ=yes
19599 $rm conftest*
19602 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19603 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
19605 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19606 case $lt_prog_compiler_pic_GCJ in
19607 "" | " "*) ;;
19608 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19609 esac
19610 else
19611 lt_prog_compiler_pic_GCJ=
19612 lt_prog_compiler_can_build_shared_GCJ=no
19616 case $host_os in
19617 # For platforms which do not support PIC, -DPIC is meaningless:
19618 *djgpp*)
19619 lt_prog_compiler_pic_GCJ=
19622 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19624 esac
19627 # Check to make sure the static flag actually works.
19629 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
19630 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19631 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19632 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19634 else
19635 lt_prog_compiler_static_works_GCJ=no
19636 save_LDFLAGS="$LDFLAGS"
19637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19638 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19640 # The linker can only warn and ignore the option if not recognized
19641 # So say no if there are warnings
19642 if test -s conftest.err; then
19643 # Append any errors to the config.log.
19644 cat conftest.err 1>&5
19645 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19647 if diff conftest.exp conftest.er2 >/dev/null; then
19648 lt_prog_compiler_static_works_GCJ=yes
19650 else
19651 lt_prog_compiler_static_works_GCJ=yes
19654 $rm conftest*
19655 LDFLAGS="$save_LDFLAGS"
19658 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
19659 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
19661 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
19663 else
19664 lt_prog_compiler_static_GCJ=
19668 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19669 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19670 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673 lt_cv_prog_compiler_c_o_GCJ=no
19674 $rm -r conftest 2>/dev/null
19675 mkdir conftest
19676 cd conftest
19677 mkdir out
19678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19680 lt_compiler_flag="-o out/conftest2.$ac_objext"
19681 # Insert the option either (1) after the last *FLAGS variable, or
19682 # (2) before a word containing "conftest.", or (3) at the end.
19683 # Note that $ac_compile itself does not contain backslashes and begins
19684 # with a dollar sign (not a hyphen), so the echo should work correctly.
19685 lt_compile=`echo "$ac_compile" | $SED \
19686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19688 -e 's:$: $lt_compiler_flag:'`
19689 (eval echo "\"\$as_me:19689: $lt_compile\"" >&5)
19690 (eval "$lt_compile" 2>out/conftest.err)
19691 ac_status=$?
19692 cat out/conftest.err >&5
19693 echo "$as_me:19693: \$? = $ac_status" >&5
19694 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19695 then
19696 # The compiler can only warn and ignore the option if not recognized
19697 # So say no if there are warnings
19698 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19699 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19700 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19701 lt_cv_prog_compiler_c_o_GCJ=yes
19704 chmod u+w . 2>&5
19705 $rm conftest*
19706 # SGI C++ compiler will create directory out/ii_files/ for
19707 # template instantiation
19708 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19709 $rm out/* && rmdir out
19710 cd ..
19711 rmdir conftest
19712 $rm conftest*
19715 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19716 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19719 hard_links="nottested"
19720 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19721 # do not overwrite the value of need_locks provided by the user
19722 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19723 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19724 hard_links=yes
19725 $rm conftest*
19726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19727 touch conftest.a
19728 ln conftest.a conftest.b 2>&5 || hard_links=no
19729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19730 { echo "$as_me:$LINENO: result: $hard_links" >&5
19731 echo "${ECHO_T}$hard_links" >&6; }
19732 if test "$hard_links" = no; then
19733 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19734 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19735 need_locks=warn
19737 else
19738 need_locks=no
19741 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19742 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19744 runpath_var=
19745 allow_undefined_flag_GCJ=
19746 enable_shared_with_static_runtimes_GCJ=no
19747 archive_cmds_GCJ=
19748 archive_expsym_cmds_GCJ=
19749 old_archive_From_new_cmds_GCJ=
19750 old_archive_from_expsyms_cmds_GCJ=
19751 export_dynamic_flag_spec_GCJ=
19752 whole_archive_flag_spec_GCJ=
19753 thread_safe_flag_spec_GCJ=
19754 hardcode_libdir_flag_spec_GCJ=
19755 hardcode_libdir_flag_spec_ld_GCJ=
19756 hardcode_libdir_separator_GCJ=
19757 hardcode_direct_GCJ=no
19758 hardcode_minus_L_GCJ=no
19759 hardcode_shlibpath_var_GCJ=unsupported
19760 link_all_deplibs_GCJ=unknown
19761 hardcode_automatic_GCJ=no
19762 module_cmds_GCJ=
19763 module_expsym_cmds_GCJ=
19764 always_export_symbols_GCJ=no
19765 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19766 # include_expsyms should be a list of space-separated symbols to be *always*
19767 # included in the symbol list
19768 include_expsyms_GCJ=
19769 # exclude_expsyms can be an extended regexp of symbols to exclude
19770 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19771 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19772 # as well as any symbol that contains `d'.
19773 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19774 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19775 # platforms (ab)use it in PIC code, but their linkers get confused if
19776 # the symbol is explicitly referenced. Since portable code cannot
19777 # rely on this symbol name, it's probably fine to never include it in
19778 # preloaded symbol tables.
19779 extract_expsyms_cmds=
19780 # Just being paranoid about ensuring that cc_basename is set.
19781 for cc_temp in $compiler""; do
19782 case $cc_temp in
19783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19785 \-*) ;;
19786 *) break;;
19787 esac
19788 done
19789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19791 case $host_os in
19792 cygwin* | mingw* | pw32*)
19793 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19794 # When not using gcc, we currently assume that we are using
19795 # Microsoft Visual C++.
19796 if test "$GCC" != yes; then
19797 with_gnu_ld=no
19800 interix*)
19801 # we just hope/assume this is gcc and not c89 (= MSVC++)
19802 with_gnu_ld=yes
19804 openbsd*)
19805 with_gnu_ld=no
19807 esac
19809 ld_shlibs_GCJ=yes
19810 if test "$with_gnu_ld" = yes; then
19811 # If archive_cmds runs LD, not CC, wlarc should be empty
19812 wlarc='${wl}'
19814 # Set some defaults for GNU ld with shared library support. These
19815 # are reset later if shared libraries are not supported. Putting them
19816 # here allows them to be overridden if necessary.
19817 runpath_var=LD_RUN_PATH
19818 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19819 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19820 # ancient GNU ld didn't support --whole-archive et. al.
19821 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19822 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19823 else
19824 whole_archive_flag_spec_GCJ=
19826 supports_anon_versioning=no
19827 case `$LD -v 2>/dev/null` in
19828 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19829 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19830 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19831 *\ 2.11.*) ;; # other 2.11 versions
19832 *) supports_anon_versioning=yes ;;
19833 esac
19835 # See if GNU ld supports shared libraries.
19836 case $host_os in
19837 aix3* | aix4* | aix5*)
19838 # On AIX/PPC, the GNU linker is very broken
19839 if test "$host_cpu" != ia64; then
19840 ld_shlibs_GCJ=no
19841 cat <<EOF 1>&2
19843 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19844 *** to be unable to reliably create shared libraries on AIX.
19845 *** Therefore, libtool is disabling shared libraries support. If you
19846 *** really care for shared libraries, you may want to modify your PATH
19847 *** so that a non-GNU linker is found, and then restart.
19853 amigaos*)
19854 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)'
19855 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19856 hardcode_minus_L_GCJ=yes
19858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19859 # that the semantics of dynamic libraries on AmigaOS, at least up
19860 # to version 4, is to share data among multiple programs linked
19861 # with the same dynamic library. Since this doesn't match the
19862 # behavior of shared libraries on other platforms, we can't use
19863 # them.
19864 ld_shlibs_GCJ=no
19867 beos*)
19868 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19869 allow_undefined_flag_GCJ=unsupported
19870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19871 # support --undefined. This deserves some investigation. FIXME
19872 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19873 else
19874 ld_shlibs_GCJ=no
19878 cygwin* | mingw* | pw32*)
19879 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19880 # as there is no search path for DLLs.
19881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19882 allow_undefined_flag_GCJ=unsupported
19883 always_export_symbols_GCJ=no
19884 enable_shared_with_static_runtimes_GCJ=yes
19885 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19887 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19888 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19889 # If the export-symbols file already is a .def file (1st line
19890 # is EXPORTS), use it as is; otherwise, prepend...
19891 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19892 cp $export_symbols $output_objdir/$soname.def;
19893 else
19894 echo EXPORTS > $output_objdir/$soname.def;
19895 cat $export_symbols >> $output_objdir/$soname.def;
19897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19898 else
19899 ld_shlibs_GCJ=no
19903 interix[3-9]*)
19904 hardcode_direct_GCJ=no
19905 hardcode_shlibpath_var_GCJ=no
19906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19907 export_dynamic_flag_spec_GCJ='${wl}-E'
19908 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19909 # Instead, shared libraries are loaded at an image base (0x10000000 by
19910 # default) and relocated if they conflict, which is a slow very memory
19911 # consuming and fragmenting process. To avoid this, we pick a random,
19912 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19913 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19914 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'
19915 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'
19918 gnu* | linux* | k*bsd*-gnu)
19919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19920 tmp_addflag=
19921 case $cc_basename,$host_cpu in
19922 pgcc*) # Portland Group C compiler
19923 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'
19924 tmp_addflag=' $pic_flag'
19926 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19927 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'
19928 tmp_addflag=' $pic_flag -Mnomain' ;;
19929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19930 tmp_addflag=' -i_dynamic' ;;
19931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19932 tmp_addflag=' -i_dynamic -nofor_main' ;;
19933 ifc* | ifort*) # Intel Fortran compiler
19934 tmp_addflag=' -nofor_main' ;;
19935 esac
19936 case `$CC -V 2>&1 | sed 5q` in
19937 *Sun\ C*) # Sun C 5.9
19938 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'
19939 tmp_sharedflag='-G' ;;
19940 *Sun\ F*) # Sun Fortran 8.3
19941 tmp_sharedflag='-G' ;;
19943 tmp_sharedflag='-shared' ;;
19944 esac
19945 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19947 if test $supports_anon_versioning = yes; then
19948 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19949 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19950 $echo "local: *; };" >> $output_objdir/$libname.ver~
19951 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19953 else
19954 ld_shlibs_GCJ=no
19958 netbsd*)
19959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19960 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19961 wlarc=
19962 else
19963 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19964 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19968 solaris*)
19969 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19970 ld_shlibs_GCJ=no
19971 cat <<EOF 1>&2
19973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19974 *** create shared libraries on Solaris systems. Therefore, libtool
19975 *** is disabling shared libraries support. We urge you to upgrade GNU
19976 *** binutils to release 2.9.1 or newer. Another option is to modify
19977 *** your PATH or compiler configuration so that the native linker is
19978 *** used, and then restart.
19981 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19982 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19983 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19984 else
19985 ld_shlibs_GCJ=no
19989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19990 case `$LD -v 2>&1` in
19991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19992 ld_shlibs_GCJ=no
19993 cat <<_LT_EOF 1>&2
19995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19996 *** reliably create shared libraries on SCO systems. Therefore, libtool
19997 *** is disabling shared libraries support. We urge you to upgrade GNU
19998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19999 *** your PATH or compiler configuration so that the native linker is
20000 *** used, and then restart.
20002 _LT_EOF
20005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20006 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20007 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20008 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20009 else
20010 ld_shlibs_GCJ=no
20013 esac
20016 sunos4*)
20017 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20018 wlarc=
20019 hardcode_direct_GCJ=yes
20020 hardcode_shlibpath_var_GCJ=no
20024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20025 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20026 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20027 else
20028 ld_shlibs_GCJ=no
20031 esac
20033 if test "$ld_shlibs_GCJ" = no; then
20034 runpath_var=
20035 hardcode_libdir_flag_spec_GCJ=
20036 export_dynamic_flag_spec_GCJ=
20037 whole_archive_flag_spec_GCJ=
20039 else
20040 # PORTME fill in a description of your system's linker (not GNU ld)
20041 case $host_os in
20042 aix3*)
20043 allow_undefined_flag_GCJ=unsupported
20044 always_export_symbols_GCJ=yes
20045 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'
20046 # Note: this linker hardcodes the directories in LIBPATH if there
20047 # are no directories specified by -L.
20048 hardcode_minus_L_GCJ=yes
20049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20050 # Neither direct hardcoding nor static linking is supported with a
20051 # broken collect2.
20052 hardcode_direct_GCJ=unsupported
20056 aix4* | aix5*)
20057 if test "$host_cpu" = ia64; then
20058 # On IA64, the linker does run time linking by default, so we don't
20059 # have to do anything special.
20060 aix_use_runtimelinking=no
20061 exp_sym_flag='-Bexport'
20062 no_entry_flag=""
20063 else
20064 # If we're using GNU nm, then we don't want the "-C" option.
20065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20066 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20067 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'
20068 else
20069 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'
20071 aix_use_runtimelinking=no
20073 # Test if we are trying to use run time linking or normal
20074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20075 # need to do runtime linking.
20076 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20077 for ld_flag in $LDFLAGS; do
20078 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20079 aix_use_runtimelinking=yes
20080 break
20082 done
20084 esac
20086 exp_sym_flag='-bexport'
20087 no_entry_flag='-bnoentry'
20090 # When large executables or shared objects are built, AIX ld can
20091 # have problems creating the table of contents. If linking a library
20092 # or program results in "error TOC overflow" add -mminimal-toc to
20093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20096 archive_cmds_GCJ=''
20097 hardcode_direct_GCJ=yes
20098 hardcode_libdir_separator_GCJ=':'
20099 link_all_deplibs_GCJ=yes
20101 if test "$GCC" = yes; then
20102 case $host_os in aix4.[012]|aix4.[012].*)
20103 # We only want to do this on AIX 4.2 and lower, the check
20104 # below for broken collect2 doesn't work under 4.3+
20105 collect2name=`${CC} -print-prog-name=collect2`
20106 if test -f "$collect2name" && \
20107 strings "$collect2name" | grep resolve_lib_name >/dev/null
20108 then
20109 # We have reworked collect2
20111 else
20112 # We have old collect2
20113 hardcode_direct_GCJ=unsupported
20114 # It fails to find uninstalled libraries when the uninstalled
20115 # path is not listed in the libpath. Setting hardcode_minus_L
20116 # to unsupported forces relinking
20117 hardcode_minus_L_GCJ=yes
20118 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20119 hardcode_libdir_separator_GCJ=
20122 esac
20123 shared_flag='-shared'
20124 if test "$aix_use_runtimelinking" = yes; then
20125 shared_flag="$shared_flag "'${wl}-G'
20127 else
20128 # not using gcc
20129 if test "$host_cpu" = ia64; then
20130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20131 # chokes on -Wl,-G. The following line is correct:
20132 shared_flag='-G'
20133 else
20134 if test "$aix_use_runtimelinking" = yes; then
20135 shared_flag='${wl}-G'
20136 else
20137 shared_flag='${wl}-bM:SRE'
20142 # It seems that -bexpall does not export symbols beginning with
20143 # underscore (_), so it is better to generate a list of symbols to export.
20144 always_export_symbols_GCJ=yes
20145 if test "$aix_use_runtimelinking" = yes; then
20146 # Warning - without using the other runtime loading flags (-brtl),
20147 # -berok will link without error, but may produce a broken library.
20148 allow_undefined_flag_GCJ='-berok'
20149 # Determine the default libpath from the value encoded in an empty executable.
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20158 main ()
20162 return 0;
20164 _ACEOF
20165 rm -f conftest.$ac_objext conftest$ac_exeext
20166 if { (ac_try="$ac_link"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20170 esac
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_link") 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } && {
20179 test -z "$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20181 } && test -s conftest$ac_exeext &&
20182 $as_test_x conftest$ac_exeext; then
20184 lt_aix_libpath_sed='
20185 /Import File Strings/,/^$/ {
20186 /^0/ {
20187 s/^0 *\(.*\)$/\1/
20191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20192 # Check for a 64-bit object if we didn't find anything.
20193 if test -z "$aix_libpath"; then
20194 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20204 conftest$ac_exeext conftest.$ac_ext
20205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20207 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20208 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"
20209 else
20210 if test "$host_cpu" = ia64; then
20211 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20212 allow_undefined_flag_GCJ="-z nodefs"
20213 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"
20214 else
20215 # Determine the default libpath from the value encoded in an empty executable.
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h. */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20224 main ()
20228 return 0;
20230 _ACEOF
20231 rm -f conftest.$ac_objext conftest$ac_exeext
20232 if { (ac_try="$ac_link"
20233 case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_link") 2>conftest.er1
20239 ac_status=$?
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } && {
20245 test -z "$ac_c_werror_flag" ||
20246 test ! -s conftest.err
20247 } && test -s conftest$ac_exeext &&
20248 $as_test_x conftest$ac_exeext; then
20250 lt_aix_libpath_sed='
20251 /Import File Strings/,/^$/ {
20252 /^0/ {
20253 s/^0 *\(.*\)$/\1/
20257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20258 # Check for a 64-bit object if we didn't find anything.
20259 if test -z "$aix_libpath"; then
20260 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20262 else
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20270 conftest$ac_exeext conftest.$ac_ext
20271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20273 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20274 # Warning - without using the other run time loading flags,
20275 # -berok will link without error, but may produce a broken library.
20276 no_undefined_flag_GCJ=' ${wl}-bernotok'
20277 allow_undefined_flag_GCJ=' ${wl}-berok'
20278 # Exported symbols can be pulled into shared objects from archives
20279 whole_archive_flag_spec_GCJ='$convenience'
20280 archive_cmds_need_lc_GCJ=yes
20281 # This is similar to how AIX traditionally builds its shared libraries.
20282 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'
20287 amigaos*)
20288 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)'
20289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20290 hardcode_minus_L_GCJ=yes
20291 # see comment about different semantics on the GNU ld section
20292 ld_shlibs_GCJ=no
20295 bsdi[45]*)
20296 export_dynamic_flag_spec_GCJ=-rdynamic
20299 cygwin* | mingw* | pw32*)
20300 # When not using gcc, we currently assume that we are using
20301 # Microsoft Visual C++.
20302 # hardcode_libdir_flag_spec is actually meaningless, as there is
20303 # no search path for DLLs.
20304 hardcode_libdir_flag_spec_GCJ=' '
20305 allow_undefined_flag_GCJ=unsupported
20306 # Tell ltmain to make .lib files, not .a files.
20307 libext=lib
20308 # Tell ltmain to make .dll files, not .so files.
20309 shrext_cmds=".dll"
20310 # FIXME: Setting linknames here is a bad hack.
20311 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20312 # The linker will automatically build a .lib file if we build a DLL.
20313 old_archive_From_new_cmds_GCJ='true'
20314 # FIXME: Should let the user specify the lib program.
20315 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20316 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20317 enable_shared_with_static_runtimes_GCJ=yes
20320 darwin* | rhapsody*)
20321 case $host_os in
20322 rhapsody* | darwin1.[012])
20323 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20325 *) # Darwin 1.3 on
20326 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20327 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20328 else
20329 case ${MACOSX_DEPLOYMENT_TARGET} in
20330 10.[012])
20331 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20333 10.*)
20334 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20336 esac
20339 esac
20340 archive_cmds_need_lc_GCJ=no
20341 hardcode_direct_GCJ=no
20342 hardcode_automatic_GCJ=yes
20343 hardcode_shlibpath_var_GCJ=unsupported
20344 whole_archive_flag_spec_GCJ=''
20345 link_all_deplibs_GCJ=yes
20346 if test "$GCC" = yes ; then
20347 output_verbose_link_cmd='echo'
20348 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20349 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20350 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20351 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}'
20352 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}'
20353 else
20354 case $cc_basename in
20355 xlc*)
20356 output_verbose_link_cmd='echo'
20357 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20358 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20359 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20360 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}'
20361 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}'
20364 ld_shlibs_GCJ=no
20366 esac
20370 dgux*)
20371 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20372 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20373 hardcode_shlibpath_var_GCJ=no
20376 freebsd1*)
20377 ld_shlibs_GCJ=no
20380 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20381 # support. Future versions do this automatically, but an explicit c++rt0.o
20382 # does not break anything, and helps significantly (at the cost of a little
20383 # extra space).
20384 freebsd2.2*)
20385 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20386 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20387 hardcode_direct_GCJ=yes
20388 hardcode_shlibpath_var_GCJ=no
20391 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20392 freebsd2*)
20393 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20394 hardcode_direct_GCJ=yes
20395 hardcode_minus_L_GCJ=yes
20396 hardcode_shlibpath_var_GCJ=no
20399 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20400 freebsd* | dragonfly*)
20401 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20402 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20403 hardcode_direct_GCJ=yes
20404 hardcode_shlibpath_var_GCJ=no
20407 hpux9*)
20408 if test "$GCC" = yes; then
20409 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'
20410 else
20411 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'
20413 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20414 hardcode_libdir_separator_GCJ=:
20415 hardcode_direct_GCJ=yes
20417 # hardcode_minus_L: Not really in the search PATH,
20418 # but as the default location of the library.
20419 hardcode_minus_L_GCJ=yes
20420 export_dynamic_flag_spec_GCJ='${wl}-E'
20423 hpux10*)
20424 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20425 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20426 else
20427 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20429 if test "$with_gnu_ld" = no; then
20430 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20431 hardcode_libdir_separator_GCJ=:
20433 hardcode_direct_GCJ=yes
20434 export_dynamic_flag_spec_GCJ='${wl}-E'
20436 # hardcode_minus_L: Not really in the search PATH,
20437 # but as the default location of the library.
20438 hardcode_minus_L_GCJ=yes
20442 hpux11*)
20443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20444 case $host_cpu in
20445 hppa*64*)
20446 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20448 ia64*)
20449 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20452 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20454 esac
20455 else
20456 case $host_cpu in
20457 hppa*64*)
20458 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20460 ia64*)
20461 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20464 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20466 esac
20468 if test "$with_gnu_ld" = no; then
20469 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20470 hardcode_libdir_separator_GCJ=:
20472 case $host_cpu in
20473 hppa*64*|ia64*)
20474 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20475 hardcode_direct_GCJ=no
20476 hardcode_shlibpath_var_GCJ=no
20479 hardcode_direct_GCJ=yes
20480 export_dynamic_flag_spec_GCJ='${wl}-E'
20482 # hardcode_minus_L: Not really in the search PATH,
20483 # but as the default location of the library.
20484 hardcode_minus_L_GCJ=yes
20486 esac
20490 irix5* | irix6* | nonstopux*)
20491 if test "$GCC" = yes; then
20492 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'
20493 else
20494 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'
20495 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20498 hardcode_libdir_separator_GCJ=:
20499 link_all_deplibs_GCJ=yes
20502 netbsd*)
20503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20505 else
20506 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20508 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20509 hardcode_direct_GCJ=yes
20510 hardcode_shlibpath_var_GCJ=no
20513 newsos6)
20514 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20515 hardcode_direct_GCJ=yes
20516 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20517 hardcode_libdir_separator_GCJ=:
20518 hardcode_shlibpath_var_GCJ=no
20521 openbsd*)
20522 if test -f /usr/libexec/ld.so; then
20523 hardcode_direct_GCJ=yes
20524 hardcode_shlibpath_var_GCJ=no
20525 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20526 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20527 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20529 export_dynamic_flag_spec_GCJ='${wl}-E'
20530 else
20531 case $host_os in
20532 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20533 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20534 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20537 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20538 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20540 esac
20542 else
20543 ld_shlibs_GCJ=no
20547 os2*)
20548 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20549 hardcode_minus_L_GCJ=yes
20550 allow_undefined_flag_GCJ=unsupported
20551 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'
20552 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20555 osf3*)
20556 if test "$GCC" = yes; then
20557 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20558 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'
20559 else
20560 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20561 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'
20563 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20564 hardcode_libdir_separator_GCJ=:
20567 osf4* | osf5*) # as osf3* with the addition of -msym flag
20568 if test "$GCC" = yes; then
20569 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20570 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'
20571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20572 else
20573 allow_undefined_flag_GCJ=' -expect_unresolved \*'
20574 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'
20575 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~
20576 $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'
20578 # Both c and cxx compiler support -rpath directly
20579 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20581 hardcode_libdir_separator_GCJ=:
20584 solaris*)
20585 no_undefined_flag_GCJ=' -z text'
20586 if test "$GCC" = yes; then
20587 wlarc='${wl}'
20588 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20589 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20590 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20591 else
20592 wlarc=''
20593 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20594 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20595 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20597 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20598 hardcode_shlibpath_var_GCJ=no
20599 case $host_os in
20600 solaris2.[0-5] | solaris2.[0-5].*) ;;
20602 # The compiler driver will combine and reorder linker options,
20603 # but understands `-z linker_flag'. GCC discards it without `$wl',
20604 # but is careful enough not to reorder.
20605 # Supported since Solaris 2.6 (maybe 2.5.1?)
20606 if test "$GCC" = yes; then
20607 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20608 else
20609 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
20612 esac
20613 link_all_deplibs_GCJ=yes
20616 sunos4*)
20617 if test "x$host_vendor" = xsequent; then
20618 # Use $CC to link under sequent, because it throws in some extra .o
20619 # files that make .init and .fini sections work.
20620 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20621 else
20622 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20624 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20625 hardcode_direct_GCJ=yes
20626 hardcode_minus_L_GCJ=yes
20627 hardcode_shlibpath_var_GCJ=no
20630 sysv4)
20631 case $host_vendor in
20632 sni)
20633 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20634 hardcode_direct_GCJ=yes # is this really true???
20636 siemens)
20637 ## LD is ld it makes a PLAMLIB
20638 ## CC just makes a GrossModule.
20639 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20640 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20641 hardcode_direct_GCJ=no
20643 motorola)
20644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20645 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20647 esac
20648 runpath_var='LD_RUN_PATH'
20649 hardcode_shlibpath_var_GCJ=no
20652 sysv4.3*)
20653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20654 hardcode_shlibpath_var_GCJ=no
20655 export_dynamic_flag_spec_GCJ='-Bexport'
20658 sysv4*MP*)
20659 if test -d /usr/nec; then
20660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20661 hardcode_shlibpath_var_GCJ=no
20662 runpath_var=LD_RUN_PATH
20663 hardcode_runpath_var=yes
20664 ld_shlibs_GCJ=yes
20668 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20669 no_undefined_flag_GCJ='${wl}-z,text'
20670 archive_cmds_need_lc_GCJ=no
20671 hardcode_shlibpath_var_GCJ=no
20672 runpath_var='LD_RUN_PATH'
20674 if test "$GCC" = yes; then
20675 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20676 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20677 else
20678 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20679 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20683 sysv5* | sco3.2v5* | sco5v6*)
20684 # Note: We can NOT use -z defs as we might desire, because we do not
20685 # link with -lc, and that would cause any symbols used from libc to
20686 # always be unresolved, which means just about no library would
20687 # ever link correctly. If we're not using GNU ld we use -z text
20688 # though, which does catch some bad symbols but isn't as heavy-handed
20689 # as -z defs.
20690 no_undefined_flag_GCJ='${wl}-z,text'
20691 allow_undefined_flag_GCJ='${wl}-z,nodefs'
20692 archive_cmds_need_lc_GCJ=no
20693 hardcode_shlibpath_var_GCJ=no
20694 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20695 hardcode_libdir_separator_GCJ=':'
20696 link_all_deplibs_GCJ=yes
20697 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20698 runpath_var='LD_RUN_PATH'
20700 if test "$GCC" = yes; then
20701 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20702 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20703 else
20704 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20705 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20709 uts4*)
20710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20711 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20712 hardcode_shlibpath_var_GCJ=no
20716 ld_shlibs_GCJ=no
20718 esac
20721 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20722 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20723 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20726 # Do we need to explicitly link libc?
20728 case "x$archive_cmds_need_lc_GCJ" in
20729 x|xyes)
20730 # Assume -lc should be added
20731 archive_cmds_need_lc_GCJ=yes
20733 if test "$enable_shared" = yes && test "$GCC" = yes; then
20734 case $archive_cmds_GCJ in
20735 *'~'*)
20736 # FIXME: we may have to deal with multi-command sequences.
20738 '$CC '*)
20739 # Test whether the compiler implicitly links with -lc since on some
20740 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20741 # to ld, don't add -lc before -lgcc.
20742 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20743 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20744 $rm conftest*
20745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20748 (eval $ac_compile) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } 2>conftest.err; then
20752 soname=conftest
20753 lib=conftest
20754 libobjs=conftest.$ac_objext
20755 deplibs=
20756 wl=$lt_prog_compiler_wl_GCJ
20757 pic_flag=$lt_prog_compiler_pic_GCJ
20758 compiler_flags=-v
20759 linker_flags=-v
20760 verstring=
20761 output_objdir=.
20762 libname=conftest
20763 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20764 allow_undefined_flag_GCJ=
20765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20766 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }
20770 then
20771 archive_cmds_need_lc_GCJ=no
20772 else
20773 archive_cmds_need_lc_GCJ=yes
20775 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20776 else
20777 cat conftest.err 1>&5
20779 $rm conftest*
20780 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20781 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20783 esac
20786 esac
20788 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20789 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20790 library_names_spec=
20791 libname_spec='lib$name'
20792 soname_spec=
20793 shrext_cmds=".so"
20794 postinstall_cmds=
20795 postuninstall_cmds=
20796 finish_cmds=
20797 finish_eval=
20798 shlibpath_var=
20799 shlibpath_overrides_runpath=unknown
20800 version_type=none
20801 dynamic_linker="$host_os ld.so"
20802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20804 need_lib_prefix=unknown
20805 hardcode_into_libs=no
20807 # when you set need_version to no, make sure it does not cause -set_version
20808 # flags to be left without arguments
20809 need_version=unknown
20811 case $host_os in
20812 aix3*)
20813 version_type=linux
20814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20815 shlibpath_var=LIBPATH
20817 # AIX 3 has no versioning support, so we append a major version to the name.
20818 soname_spec='${libname}${release}${shared_ext}$major'
20821 aix4* | aix5*)
20822 version_type=linux
20823 need_lib_prefix=no
20824 need_version=no
20825 hardcode_into_libs=yes
20826 if test "$host_cpu" = ia64; then
20827 # AIX 5 supports IA64
20828 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20829 shlibpath_var=LD_LIBRARY_PATH
20830 else
20831 # With GCC up to 2.95.x, collect2 would create an import file
20832 # for dependence libraries. The import file would start with
20833 # the line `#! .'. This would cause the generated library to
20834 # depend on `.', always an invalid library. This was fixed in
20835 # development snapshots of GCC prior to 3.0.
20836 case $host_os in
20837 aix4 | aix4.[01] | aix4.[01].*)
20838 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20839 echo ' yes '
20840 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20842 else
20843 can_build_shared=no
20846 esac
20847 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20848 # soname into executable. Probably we can add versioning support to
20849 # collect2, so additional links can be useful in future.
20850 if test "$aix_use_runtimelinking" = yes; then
20851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20852 # instead of lib<name>.a to let people know that these are not
20853 # typical AIX shared libraries.
20854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20855 else
20856 # We preserve .a as extension for shared libraries through AIX4.2
20857 # and later when we are not doing run time linking.
20858 library_names_spec='${libname}${release}.a $libname.a'
20859 soname_spec='${libname}${release}${shared_ext}$major'
20861 shlibpath_var=LIBPATH
20865 amigaos*)
20866 library_names_spec='$libname.ixlibrary $libname.a'
20867 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20868 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'
20871 beos*)
20872 library_names_spec='${libname}${shared_ext}'
20873 dynamic_linker="$host_os ld.so"
20874 shlibpath_var=LIBRARY_PATH
20877 bsdi[45]*)
20878 version_type=linux
20879 need_version=no
20880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20881 soname_spec='${libname}${release}${shared_ext}$major'
20882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20883 shlibpath_var=LD_LIBRARY_PATH
20884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20886 # the default ld.so.conf also contains /usr/contrib/lib and
20887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20888 # libtool to hard-code these into programs
20891 cygwin* | mingw* | pw32*)
20892 version_type=windows
20893 shrext_cmds=".dll"
20894 need_version=no
20895 need_lib_prefix=no
20897 case $GCC,$host_os in
20898 yes,cygwin* | yes,mingw* | yes,pw32*)
20899 library_names_spec='$libname.dll.a'
20900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20901 postinstall_cmds='base_file=`basename \${file}`~
20902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20903 dldir=$destdir/`dirname \$dlpath`~
20904 test -d \$dldir || mkdir -p \$dldir~
20905 $install_prog $dir/$dlname \$dldir/$dlname~
20906 chmod a+x \$dldir/$dlname'
20907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20908 dlpath=$dir/\$dldll~
20909 $rm \$dlpath'
20910 shlibpath_overrides_runpath=yes
20912 case $host_os in
20913 cygwin*)
20914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20916 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20918 mingw*)
20919 # MinGW DLLs use traditional 'lib' prefix
20920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20921 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20922 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20923 # It is most probably a Windows format PATH printed by
20924 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20925 # path with ; separators, and with drive letters. We can handle the
20926 # drive letters (cygwin fileutils understands them), so leave them,
20927 # especially as we might pass files found there to a mingw objdump,
20928 # which wouldn't understand a cygwinified path. Ahh.
20929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20930 else
20931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20934 pw32*)
20935 # pw32 DLLs use 'pw' prefix rather than 'lib'
20936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20938 esac
20942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20944 esac
20945 dynamic_linker='Win32 ld.exe'
20946 # FIXME: first we should search . and the directory the executable is in
20947 shlibpath_var=PATH
20950 darwin* | rhapsody*)
20951 dynamic_linker="$host_os dyld"
20952 version_type=darwin
20953 need_lib_prefix=no
20954 need_version=no
20955 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20956 soname_spec='${libname}${release}${major}$shared_ext'
20957 shlibpath_overrides_runpath=yes
20958 shlibpath_var=DYLD_LIBRARY_PATH
20959 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20961 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20964 dgux*)
20965 version_type=linux
20966 need_lib_prefix=no
20967 need_version=no
20968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20969 soname_spec='${libname}${release}${shared_ext}$major'
20970 shlibpath_var=LD_LIBRARY_PATH
20973 freebsd1*)
20974 dynamic_linker=no
20977 freebsd* | dragonfly*)
20978 # DragonFly does not have aout. When/if they implement a new
20979 # versioning mechanism, adjust this.
20980 if test -x /usr/bin/objformat; then
20981 objformat=`/usr/bin/objformat`
20982 else
20983 case $host_os in
20984 freebsd[123]*) objformat=aout ;;
20985 *) objformat=elf ;;
20986 esac
20988 # Handle Gentoo/FreeBSD as it was Linux
20989 case $host_vendor in
20990 gentoo)
20991 version_type=linux ;;
20993 version_type=freebsd-$objformat ;;
20994 esac
20996 case $version_type in
20997 freebsd-elf*)
20998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20999 need_version=no
21000 need_lib_prefix=no
21002 freebsd-*)
21003 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21004 need_version=yes
21006 linux)
21007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21008 soname_spec='${libname}${release}${shared_ext}$major'
21009 need_lib_prefix=no
21010 need_version=no
21012 esac
21013 shlibpath_var=LD_LIBRARY_PATH
21014 case $host_os in
21015 freebsd2*)
21016 shlibpath_overrides_runpath=yes
21018 freebsd3.[01]* | freebsdelf3.[01]*)
21019 shlibpath_overrides_runpath=yes
21020 hardcode_into_libs=yes
21022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21024 shlibpath_overrides_runpath=no
21025 hardcode_into_libs=yes
21027 *) # from 4.6 on, and DragonFly
21028 shlibpath_overrides_runpath=yes
21029 hardcode_into_libs=yes
21031 esac
21034 gnu*)
21035 version_type=linux
21036 need_lib_prefix=no
21037 need_version=no
21038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21039 soname_spec='${libname}${release}${shared_ext}$major'
21040 shlibpath_var=LD_LIBRARY_PATH
21041 hardcode_into_libs=yes
21044 hpux9* | hpux10* | hpux11*)
21045 # Give a soname corresponding to the major version so that dld.sl refuses to
21046 # link against other versions.
21047 version_type=sunos
21048 need_lib_prefix=no
21049 need_version=no
21050 case $host_cpu in
21051 ia64*)
21052 shrext_cmds='.so'
21053 hardcode_into_libs=yes
21054 dynamic_linker="$host_os dld.so"
21055 shlibpath_var=LD_LIBRARY_PATH
21056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21058 soname_spec='${libname}${release}${shared_ext}$major'
21059 if test "X$HPUX_IA64_MODE" = X32; then
21060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21061 else
21062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21066 hppa*64*)
21067 shrext_cmds='.sl'
21068 hardcode_into_libs=yes
21069 dynamic_linker="$host_os dld.sl"
21070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21073 soname_spec='${libname}${release}${shared_ext}$major'
21074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21078 shrext_cmds='.sl'
21079 dynamic_linker="$host_os dld.sl"
21080 shlibpath_var=SHLIB_PATH
21081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21083 soname_spec='${libname}${release}${shared_ext}$major'
21085 esac
21086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21087 postinstall_cmds='chmod 555 $lib'
21090 interix[3-9]*)
21091 version_type=linux
21092 need_lib_prefix=no
21093 need_version=no
21094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21095 soname_spec='${libname}${release}${shared_ext}$major'
21096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21097 shlibpath_var=LD_LIBRARY_PATH
21098 shlibpath_overrides_runpath=no
21099 hardcode_into_libs=yes
21102 irix5* | irix6* | nonstopux*)
21103 case $host_os in
21104 nonstopux*) version_type=nonstopux ;;
21106 if test "$lt_cv_prog_gnu_ld" = yes; then
21107 version_type=linux
21108 else
21109 version_type=irix
21110 fi ;;
21111 esac
21112 need_lib_prefix=no
21113 need_version=no
21114 soname_spec='${libname}${release}${shared_ext}$major'
21115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21116 case $host_os in
21117 irix5* | nonstopux*)
21118 libsuff= shlibsuff=
21121 case $LD in # libtool.m4 will add one of these switches to LD
21122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21123 libsuff= shlibsuff= libmagic=32-bit;;
21124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21125 libsuff=32 shlibsuff=N32 libmagic=N32;;
21126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21128 *) libsuff= shlibsuff= libmagic=never-match;;
21129 esac
21131 esac
21132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21133 shlibpath_overrides_runpath=no
21134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21136 hardcode_into_libs=yes
21139 # No shared lib support for Linux oldld, aout, or coff.
21140 linux*oldld* | linux*aout* | linux*coff*)
21141 dynamic_linker=no
21144 # This must be Linux ELF.
21145 linux* | k*bsd*-gnu)
21146 version_type=linux
21147 need_lib_prefix=no
21148 need_version=no
21149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21150 soname_spec='${libname}${release}${shared_ext}$major'
21151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21152 shlibpath_var=LD_LIBRARY_PATH
21153 shlibpath_overrides_runpath=no
21154 # This implies no fast_install, which is unacceptable.
21155 # Some rework will be needed to allow for fast_install
21156 # before this can be enabled.
21157 hardcode_into_libs=yes
21159 # Append ld.so.conf contents to the search path
21160 if test -f /etc/ld.so.conf; then
21161 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' ' '`
21162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21165 # We used to test for /lib/ld.so.1 and disable shared libraries on
21166 # powerpc, because MkLinux only supported shared libraries with the
21167 # GNU dynamic linker. Since this was broken with cross compilers,
21168 # most powerpc-linux boxes support dynamic linking these days and
21169 # people can always --disable-shared, the test was removed, and we
21170 # assume the GNU/Linux dynamic linker is in use.
21171 dynamic_linker='GNU/Linux ld.so'
21174 netbsd*)
21175 version_type=sunos
21176 need_lib_prefix=no
21177 need_version=no
21178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21181 dynamic_linker='NetBSD (a.out) ld.so'
21182 else
21183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21184 soname_spec='${libname}${release}${shared_ext}$major'
21185 dynamic_linker='NetBSD ld.elf_so'
21187 shlibpath_var=LD_LIBRARY_PATH
21188 shlibpath_overrides_runpath=yes
21189 hardcode_into_libs=yes
21192 newsos6)
21193 version_type=linux
21194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21195 shlibpath_var=LD_LIBRARY_PATH
21196 shlibpath_overrides_runpath=yes
21199 nto-qnx*)
21200 version_type=linux
21201 need_lib_prefix=no
21202 need_version=no
21203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21204 soname_spec='${libname}${release}${shared_ext}$major'
21205 shlibpath_var=LD_LIBRARY_PATH
21206 shlibpath_overrides_runpath=yes
21209 openbsd*)
21210 version_type=sunos
21211 sys_lib_dlsearch_path_spec="/usr/lib"
21212 need_lib_prefix=no
21213 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21214 case $host_os in
21215 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21216 *) need_version=no ;;
21217 esac
21218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21220 shlibpath_var=LD_LIBRARY_PATH
21221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21222 case $host_os in
21223 openbsd2.[89] | openbsd2.[89].*)
21224 shlibpath_overrides_runpath=no
21227 shlibpath_overrides_runpath=yes
21229 esac
21230 else
21231 shlibpath_overrides_runpath=yes
21235 os2*)
21236 libname_spec='$name'
21237 shrext_cmds=".dll"
21238 need_lib_prefix=no
21239 library_names_spec='$libname${shared_ext} $libname.a'
21240 dynamic_linker='OS/2 ld.exe'
21241 shlibpath_var=LIBPATH
21244 osf3* | osf4* | osf5*)
21245 version_type=osf
21246 need_lib_prefix=no
21247 need_version=no
21248 soname_spec='${libname}${release}${shared_ext}$major'
21249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21250 shlibpath_var=LD_LIBRARY_PATH
21251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21252 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21255 rdos*)
21256 dynamic_linker=no
21259 solaris*)
21260 version_type=linux
21261 need_lib_prefix=no
21262 need_version=no
21263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21264 soname_spec='${libname}${release}${shared_ext}$major'
21265 shlibpath_var=LD_LIBRARY_PATH
21266 shlibpath_overrides_runpath=yes
21267 hardcode_into_libs=yes
21268 # ldd complains unless libraries are executable
21269 postinstall_cmds='chmod +x $lib'
21272 sunos4*)
21273 version_type=sunos
21274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21276 shlibpath_var=LD_LIBRARY_PATH
21277 shlibpath_overrides_runpath=yes
21278 if test "$with_gnu_ld" = yes; then
21279 need_lib_prefix=no
21281 need_version=yes
21284 sysv4 | sysv4.3*)
21285 version_type=linux
21286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21287 soname_spec='${libname}${release}${shared_ext}$major'
21288 shlibpath_var=LD_LIBRARY_PATH
21289 case $host_vendor in
21290 sni)
21291 shlibpath_overrides_runpath=no
21292 need_lib_prefix=no
21293 export_dynamic_flag_spec='${wl}-Blargedynsym'
21294 runpath_var=LD_RUN_PATH
21296 siemens)
21297 need_lib_prefix=no
21299 motorola)
21300 need_lib_prefix=no
21301 need_version=no
21302 shlibpath_overrides_runpath=no
21303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21305 esac
21308 sysv4*MP*)
21309 if test -d /usr/nec ;then
21310 version_type=linux
21311 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21312 soname_spec='$libname${shared_ext}.$major'
21313 shlibpath_var=LD_LIBRARY_PATH
21317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21318 version_type=freebsd-elf
21319 need_lib_prefix=no
21320 need_version=no
21321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21322 soname_spec='${libname}${release}${shared_ext}$major'
21323 shlibpath_var=LD_LIBRARY_PATH
21324 hardcode_into_libs=yes
21325 if test "$with_gnu_ld" = yes; then
21326 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21327 shlibpath_overrides_runpath=no
21328 else
21329 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21330 shlibpath_overrides_runpath=yes
21331 case $host_os in
21332 sco3.2v5*)
21333 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21335 esac
21337 sys_lib_dlsearch_path_spec='/usr/lib'
21340 uts4*)
21341 version_type=linux
21342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21343 soname_spec='${libname}${release}${shared_ext}$major'
21344 shlibpath_var=LD_LIBRARY_PATH
21348 dynamic_linker=no
21350 esac
21351 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21352 echo "${ECHO_T}$dynamic_linker" >&6; }
21353 test "$dynamic_linker" = no && can_build_shared=no
21355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21356 if test "$GCC" = yes; then
21357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21360 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21361 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21362 hardcode_action_GCJ=
21363 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21364 test -n "$runpath_var_GCJ" || \
21365 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21367 # We can hardcode non-existant directories.
21368 if test "$hardcode_direct_GCJ" != no &&
21369 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21370 # have to relink, otherwise we might link with an installed library
21371 # when we should be linking with a yet-to-be-installed one
21372 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21373 test "$hardcode_minus_L_GCJ" != no; then
21374 # Linking always hardcodes the temporary library directory.
21375 hardcode_action_GCJ=relink
21376 else
21377 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21378 hardcode_action_GCJ=immediate
21380 else
21381 # We cannot hardcode anything, or else we can only hardcode existing
21382 # directories.
21383 hardcode_action_GCJ=unsupported
21385 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21386 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
21388 if test "$hardcode_action_GCJ" = relink; then
21389 # Fast installation is not supported
21390 enable_fast_install=no
21391 elif test "$shlibpath_overrides_runpath" = yes ||
21392 test "$enable_shared" = no; then
21393 # Fast installation is not necessary
21394 enable_fast_install=needless
21398 # The else clause should only fire when bootstrapping the
21399 # libtool distribution, otherwise you forgot to ship ltmain.sh
21400 # with your package, and you will get complaints that there are
21401 # no rules to generate ltmain.sh.
21402 if test -f "$ltmain"; then
21403 # See if we are running on zsh, and set the options which allow our commands through
21404 # without removal of \ escapes.
21405 if test -n "${ZSH_VERSION+set}" ; then
21406 setopt NO_GLOB_SUBST
21408 # Now quote all the things that may contain metacharacters while being
21409 # careful not to overquote the AC_SUBSTed values. We take copies of the
21410 # variables and quote the copies for generation of the libtool script.
21411 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21412 SED SHELL STRIP \
21413 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21414 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21415 deplibs_check_method reload_flag reload_cmds need_locks \
21416 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21417 lt_cv_sys_global_symbol_to_c_name_address \
21418 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21419 old_postinstall_cmds old_postuninstall_cmds \
21420 compiler_GCJ \
21421 CC_GCJ \
21422 LD_GCJ \
21423 lt_prog_compiler_wl_GCJ \
21424 lt_prog_compiler_pic_GCJ \
21425 lt_prog_compiler_static_GCJ \
21426 lt_prog_compiler_no_builtin_flag_GCJ \
21427 export_dynamic_flag_spec_GCJ \
21428 thread_safe_flag_spec_GCJ \
21429 whole_archive_flag_spec_GCJ \
21430 enable_shared_with_static_runtimes_GCJ \
21431 old_archive_cmds_GCJ \
21432 old_archive_from_new_cmds_GCJ \
21433 predep_objects_GCJ \
21434 postdep_objects_GCJ \
21435 predeps_GCJ \
21436 postdeps_GCJ \
21437 compiler_lib_search_path_GCJ \
21438 archive_cmds_GCJ \
21439 archive_expsym_cmds_GCJ \
21440 postinstall_cmds_GCJ \
21441 postuninstall_cmds_GCJ \
21442 old_archive_from_expsyms_cmds_GCJ \
21443 allow_undefined_flag_GCJ \
21444 no_undefined_flag_GCJ \
21445 export_symbols_cmds_GCJ \
21446 hardcode_libdir_flag_spec_GCJ \
21447 hardcode_libdir_flag_spec_ld_GCJ \
21448 hardcode_libdir_separator_GCJ \
21449 hardcode_automatic_GCJ \
21450 module_cmds_GCJ \
21451 module_expsym_cmds_GCJ \
21452 lt_cv_prog_compiler_c_o_GCJ \
21453 fix_srcfile_path_GCJ \
21454 exclude_expsyms_GCJ \
21455 include_expsyms_GCJ; do
21457 case $var in
21458 old_archive_cmds_GCJ | \
21459 old_archive_from_new_cmds_GCJ | \
21460 archive_cmds_GCJ | \
21461 archive_expsym_cmds_GCJ | \
21462 module_cmds_GCJ | \
21463 module_expsym_cmds_GCJ | \
21464 old_archive_from_expsyms_cmds_GCJ | \
21465 export_symbols_cmds_GCJ | \
21466 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21467 postinstall_cmds | postuninstall_cmds | \
21468 old_postinstall_cmds | old_postuninstall_cmds | \
21469 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21470 # Double-quote double-evaled strings.
21471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21474 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21476 esac
21477 done
21479 case $lt_echo in
21480 *'\$0 --fallback-echo"')
21481 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21483 esac
21485 cfgfile="$ofile"
21487 cat <<__EOF__ >> "$cfgfile"
21488 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21490 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21492 # Shell to use when invoking shell scripts.
21493 SHELL=$lt_SHELL
21495 # Whether or not to build shared libraries.
21496 build_libtool_libs=$enable_shared
21498 # Whether or not to build static libraries.
21499 build_old_libs=$enable_static
21501 # Whether or not to add -lc for building shared libraries.
21502 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21504 # Whether or not to disallow shared libs when runtime libs are static
21505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21507 # Whether or not to optimize for fast installation.
21508 fast_install=$enable_fast_install
21510 # The host system.
21511 host_alias=$host_alias
21512 host=$host
21513 host_os=$host_os
21515 # The build system.
21516 build_alias=$build_alias
21517 build=$build
21518 build_os=$build_os
21520 # An echo program that does not interpret backslashes.
21521 echo=$lt_echo
21523 # The archiver.
21524 AR=$lt_AR
21525 AR_FLAGS=$lt_AR_FLAGS
21527 # A C compiler.
21528 LTCC=$lt_LTCC
21530 # LTCC compiler flags.
21531 LTCFLAGS=$lt_LTCFLAGS
21533 # A language-specific compiler.
21534 CC=$lt_compiler_GCJ
21536 # Is the compiler the GNU C compiler?
21537 with_gcc=$GCC_GCJ
21539 # An ERE matcher.
21540 EGREP=$lt_EGREP
21542 # The linker used to build libraries.
21543 LD=$lt_LD_GCJ
21545 # Whether we need hard or soft links.
21546 LN_S=$lt_LN_S
21548 # A BSD-compatible nm program.
21549 NM=$lt_NM
21551 # A symbol stripping program
21552 STRIP=$lt_STRIP
21554 # Used to examine libraries when file_magic_cmd begins "file"
21555 MAGIC_CMD=$MAGIC_CMD
21557 # Used on cygwin: DLL creation program.
21558 DLLTOOL="$DLLTOOL"
21560 # Used on cygwin: object dumper.
21561 OBJDUMP="$OBJDUMP"
21563 # Used on cygwin: assembler.
21564 AS="$AS"
21566 # The name of the directory that contains temporary libtool files.
21567 objdir=$objdir
21569 # How to create reloadable object files.
21570 reload_flag=$lt_reload_flag
21571 reload_cmds=$lt_reload_cmds
21573 # How to pass a linker flag through the compiler.
21574 wl=$lt_lt_prog_compiler_wl_GCJ
21576 # Object file suffix (normally "o").
21577 objext="$ac_objext"
21579 # Old archive suffix (normally "a").
21580 libext="$libext"
21582 # Shared library suffix (normally ".so").
21583 shrext_cmds='$shrext_cmds'
21585 # Executable file suffix (normally "").
21586 exeext="$exeext"
21588 # Additional compiler flags for building library objects.
21589 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21590 pic_mode=$pic_mode
21592 # What is the maximum length of a command?
21593 max_cmd_len=$lt_cv_sys_max_cmd_len
21595 # Does compiler simultaneously support -c and -o options?
21596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21598 # Must we lock files when doing compilation?
21599 need_locks=$lt_need_locks
21601 # Do we need the lib prefix for modules?
21602 need_lib_prefix=$need_lib_prefix
21604 # Do we need a version for libraries?
21605 need_version=$need_version
21607 # Whether dlopen is supported.
21608 dlopen_support=$enable_dlopen
21610 # Whether dlopen of programs is supported.
21611 dlopen_self=$enable_dlopen_self
21613 # Whether dlopen of statically linked programs is supported.
21614 dlopen_self_static=$enable_dlopen_self_static
21616 # Compiler flag to prevent dynamic linking.
21617 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21619 # Compiler flag to turn off builtin functions.
21620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21622 # Compiler flag to allow reflexive dlopens.
21623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21625 # Compiler flag to generate shared objects directly from archives.
21626 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21628 # Compiler flag to generate thread-safe objects.
21629 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21631 # Library versioning type.
21632 version_type=$version_type
21634 # Format of library name prefix.
21635 libname_spec=$lt_libname_spec
21637 # List of archive names. First name is the real one, the rest are links.
21638 # The last name is the one that the linker finds with -lNAME.
21639 library_names_spec=$lt_library_names_spec
21641 # The coded name of the library, if different from the real name.
21642 soname_spec=$lt_soname_spec
21644 # Commands used to build and install an old-style archive.
21645 RANLIB=$lt_RANLIB
21646 old_archive_cmds=$lt_old_archive_cmds_GCJ
21647 old_postinstall_cmds=$lt_old_postinstall_cmds
21648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21650 # Create an old-style archive from a shared archive.
21651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21653 # Create a temporary old-style archive to link instead of a shared archive.
21654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21656 # Commands used to build and install a shared archive.
21657 archive_cmds=$lt_archive_cmds_GCJ
21658 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21659 postinstall_cmds=$lt_postinstall_cmds
21660 postuninstall_cmds=$lt_postuninstall_cmds
21662 # Commands used to build a loadable module (assumed same as above if empty)
21663 module_cmds=$lt_module_cmds_GCJ
21664 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21666 # Commands to strip libraries.
21667 old_striplib=$lt_old_striplib
21668 striplib=$lt_striplib
21670 # Dependencies to place before the objects being linked to create a
21671 # shared library.
21672 predep_objects=$lt_predep_objects_GCJ
21674 # Dependencies to place after the objects being linked to create a
21675 # shared library.
21676 postdep_objects=$lt_postdep_objects_GCJ
21678 # Dependencies to place before the objects being linked to create a
21679 # shared library.
21680 predeps=$lt_predeps_GCJ
21682 # Dependencies to place after the objects being linked to create a
21683 # shared library.
21684 postdeps=$lt_postdeps_GCJ
21686 # The library search path used internally by the compiler when linking
21687 # a shared library.
21688 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21690 # Method to check whether dependent libraries are shared objects.
21691 deplibs_check_method=$lt_deplibs_check_method
21693 # Command to use when deplibs_check_method == file_magic.
21694 file_magic_cmd=$lt_file_magic_cmd
21696 # Flag that allows shared libraries with undefined symbols to be built.
21697 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21699 # Flag that forces no undefined symbols.
21700 no_undefined_flag=$lt_no_undefined_flag_GCJ
21702 # Commands used to finish a libtool library installation in a directory.
21703 finish_cmds=$lt_finish_cmds
21705 # Same as above, but a single script fragment to be evaled but not shown.
21706 finish_eval=$lt_finish_eval
21708 # Take the output of nm and produce a listing of raw symbols and C names.
21709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21711 # Transform the output of nm in a proper C declaration
21712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21714 # Transform the output of nm in a C name address pair
21715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21717 # This is the shared library runtime path variable.
21718 runpath_var=$runpath_var
21720 # This is the shared library path variable.
21721 shlibpath_var=$shlibpath_var
21723 # Is shlibpath searched before the hard-coded library search path?
21724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21726 # How to hardcode a shared library path into an executable.
21727 hardcode_action=$hardcode_action_GCJ
21729 # Whether we should hardcode library paths into libraries.
21730 hardcode_into_libs=$hardcode_into_libs
21732 # Flag to hardcode \$libdir into a binary during linking.
21733 # This must work even if \$libdir does not exist.
21734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21736 # If ld is used when linking, flag to hardcode \$libdir into
21737 # a binary during linking. This must work even if \$libdir does
21738 # not exist.
21739 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21741 # Whether we need a single -rpath flag with a separated argument.
21742 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21744 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21745 # resulting binary.
21746 hardcode_direct=$hardcode_direct_GCJ
21748 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21749 # resulting binary.
21750 hardcode_minus_L=$hardcode_minus_L_GCJ
21752 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21753 # the resulting binary.
21754 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21756 # Set to yes if building a shared library automatically hardcodes DIR into the library
21757 # and all subsequent libraries and executables linked against it.
21758 hardcode_automatic=$hardcode_automatic_GCJ
21760 # Variables whose values should be saved in libtool wrapper scripts and
21761 # restored at relink time.
21762 variables_saved_for_relink="$variables_saved_for_relink"
21764 # Whether libtool must link a program against all its dependency libraries.
21765 link_all_deplibs=$link_all_deplibs_GCJ
21767 # Compile-time system search path for libraries
21768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21770 # Run-time system search path for libraries
21771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21773 # Fix the shell variable \$srcfile for the compiler.
21774 fix_srcfile_path=$lt_fix_srcfile_path
21776 # Set to yes if exported symbols are required.
21777 always_export_symbols=$always_export_symbols_GCJ
21779 # The commands to list exported symbols.
21780 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21782 # The commands to extract the exported symbol list from a shared archive.
21783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21785 # Symbols that should not be listed in the preloaded symbols.
21786 exclude_expsyms=$lt_exclude_expsyms_GCJ
21788 # Symbols that must always be exported.
21789 include_expsyms=$lt_include_expsyms_GCJ
21791 # ### END LIBTOOL TAG CONFIG: $tagname
21793 __EOF__
21796 else
21797 # If there is no Makefile yet, we rely on a make rule to execute
21798 # `config.status --recheck' to rerun these tests and create the
21799 # libtool script then.
21800 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21801 if test -f "$ltmain_in"; then
21802 test -f Makefile && make "$ltmain"
21807 ac_ext=c
21808 ac_cpp='$CPP $CPPFLAGS'
21809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21813 CC="$lt_save_CC"
21815 else
21816 tagname=""
21823 # Source file extension for RC test sources.
21824 ac_ext=rc
21826 # Object file extension for compiled RC test sources.
21827 objext=o
21828 objext_RC=$objext
21830 # Code to be used in simple compile tests
21831 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21833 # Code to be used in simple link tests
21834 lt_simple_link_test_code="$lt_simple_compile_test_code"
21836 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21838 # If no C compiler was specified, use CC.
21839 LTCC=${LTCC-"$CC"}
21841 # If no C compiler flags were specified, use CFLAGS.
21842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21844 # Allow CC to be a program name with arguments.
21845 compiler=$CC
21848 # save warnings/boilerplate of simple test code
21849 ac_outfile=conftest.$ac_objext
21850 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21851 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21852 _lt_compiler_boilerplate=`cat conftest.err`
21853 $rm conftest*
21855 ac_outfile=conftest.$ac_objext
21856 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21857 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21858 _lt_linker_boilerplate=`cat conftest.err`
21859 $rm conftest*
21862 # Allow CC to be a program name with arguments.
21863 lt_save_CC="$CC"
21864 CC=${RC-"windres"}
21865 compiler=$CC
21866 compiler_RC=$CC
21867 for cc_temp in $compiler""; do
21868 case $cc_temp in
21869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21871 \-*) ;;
21872 *) break;;
21873 esac
21874 done
21875 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21877 lt_cv_prog_compiler_c_o_RC=yes
21879 # The else clause should only fire when bootstrapping the
21880 # libtool distribution, otherwise you forgot to ship ltmain.sh
21881 # with your package, and you will get complaints that there are
21882 # no rules to generate ltmain.sh.
21883 if test -f "$ltmain"; then
21884 # See if we are running on zsh, and set the options which allow our commands through
21885 # without removal of \ escapes.
21886 if test -n "${ZSH_VERSION+set}" ; then
21887 setopt NO_GLOB_SUBST
21889 # Now quote all the things that may contain metacharacters while being
21890 # careful not to overquote the AC_SUBSTed values. We take copies of the
21891 # variables and quote the copies for generation of the libtool script.
21892 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21893 SED SHELL STRIP \
21894 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21895 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21896 deplibs_check_method reload_flag reload_cmds need_locks \
21897 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21898 lt_cv_sys_global_symbol_to_c_name_address \
21899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21900 old_postinstall_cmds old_postuninstall_cmds \
21901 compiler_RC \
21902 CC_RC \
21903 LD_RC \
21904 lt_prog_compiler_wl_RC \
21905 lt_prog_compiler_pic_RC \
21906 lt_prog_compiler_static_RC \
21907 lt_prog_compiler_no_builtin_flag_RC \
21908 export_dynamic_flag_spec_RC \
21909 thread_safe_flag_spec_RC \
21910 whole_archive_flag_spec_RC \
21911 enable_shared_with_static_runtimes_RC \
21912 old_archive_cmds_RC \
21913 old_archive_from_new_cmds_RC \
21914 predep_objects_RC \
21915 postdep_objects_RC \
21916 predeps_RC \
21917 postdeps_RC \
21918 compiler_lib_search_path_RC \
21919 archive_cmds_RC \
21920 archive_expsym_cmds_RC \
21921 postinstall_cmds_RC \
21922 postuninstall_cmds_RC \
21923 old_archive_from_expsyms_cmds_RC \
21924 allow_undefined_flag_RC \
21925 no_undefined_flag_RC \
21926 export_symbols_cmds_RC \
21927 hardcode_libdir_flag_spec_RC \
21928 hardcode_libdir_flag_spec_ld_RC \
21929 hardcode_libdir_separator_RC \
21930 hardcode_automatic_RC \
21931 module_cmds_RC \
21932 module_expsym_cmds_RC \
21933 lt_cv_prog_compiler_c_o_RC \
21934 fix_srcfile_path_RC \
21935 exclude_expsyms_RC \
21936 include_expsyms_RC; do
21938 case $var in
21939 old_archive_cmds_RC | \
21940 old_archive_from_new_cmds_RC | \
21941 archive_cmds_RC | \
21942 archive_expsym_cmds_RC | \
21943 module_cmds_RC | \
21944 module_expsym_cmds_RC | \
21945 old_archive_from_expsyms_cmds_RC | \
21946 export_symbols_cmds_RC | \
21947 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21948 postinstall_cmds | postuninstall_cmds | \
21949 old_postinstall_cmds | old_postuninstall_cmds | \
21950 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21951 # Double-quote double-evaled strings.
21952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21955 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21957 esac
21958 done
21960 case $lt_echo in
21961 *'\$0 --fallback-echo"')
21962 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21964 esac
21966 cfgfile="$ofile"
21968 cat <<__EOF__ >> "$cfgfile"
21969 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21973 # Shell to use when invoking shell scripts.
21974 SHELL=$lt_SHELL
21976 # Whether or not to build shared libraries.
21977 build_libtool_libs=$enable_shared
21979 # Whether or not to build static libraries.
21980 build_old_libs=$enable_static
21982 # Whether or not to add -lc for building shared libraries.
21983 build_libtool_need_lc=$archive_cmds_need_lc_RC
21985 # Whether or not to disallow shared libs when runtime libs are static
21986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21988 # Whether or not to optimize for fast installation.
21989 fast_install=$enable_fast_install
21991 # The host system.
21992 host_alias=$host_alias
21993 host=$host
21994 host_os=$host_os
21996 # The build system.
21997 build_alias=$build_alias
21998 build=$build
21999 build_os=$build_os
22001 # An echo program that does not interpret backslashes.
22002 echo=$lt_echo
22004 # The archiver.
22005 AR=$lt_AR
22006 AR_FLAGS=$lt_AR_FLAGS
22008 # A C compiler.
22009 LTCC=$lt_LTCC
22011 # LTCC compiler flags.
22012 LTCFLAGS=$lt_LTCFLAGS
22014 # A language-specific compiler.
22015 CC=$lt_compiler_RC
22017 # Is the compiler the GNU C compiler?
22018 with_gcc=$GCC_RC
22020 # An ERE matcher.
22021 EGREP=$lt_EGREP
22023 # The linker used to build libraries.
22024 LD=$lt_LD_RC
22026 # Whether we need hard or soft links.
22027 LN_S=$lt_LN_S
22029 # A BSD-compatible nm program.
22030 NM=$lt_NM
22032 # A symbol stripping program
22033 STRIP=$lt_STRIP
22035 # Used to examine libraries when file_magic_cmd begins "file"
22036 MAGIC_CMD=$MAGIC_CMD
22038 # Used on cygwin: DLL creation program.
22039 DLLTOOL="$DLLTOOL"
22041 # Used on cygwin: object dumper.
22042 OBJDUMP="$OBJDUMP"
22044 # Used on cygwin: assembler.
22045 AS="$AS"
22047 # The name of the directory that contains temporary libtool files.
22048 objdir=$objdir
22050 # How to create reloadable object files.
22051 reload_flag=$lt_reload_flag
22052 reload_cmds=$lt_reload_cmds
22054 # How to pass a linker flag through the compiler.
22055 wl=$lt_lt_prog_compiler_wl_RC
22057 # Object file suffix (normally "o").
22058 objext="$ac_objext"
22060 # Old archive suffix (normally "a").
22061 libext="$libext"
22063 # Shared library suffix (normally ".so").
22064 shrext_cmds='$shrext_cmds'
22066 # Executable file suffix (normally "").
22067 exeext="$exeext"
22069 # Additional compiler flags for building library objects.
22070 pic_flag=$lt_lt_prog_compiler_pic_RC
22071 pic_mode=$pic_mode
22073 # What is the maximum length of a command?
22074 max_cmd_len=$lt_cv_sys_max_cmd_len
22076 # Does compiler simultaneously support -c and -o options?
22077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22079 # Must we lock files when doing compilation?
22080 need_locks=$lt_need_locks
22082 # Do we need the lib prefix for modules?
22083 need_lib_prefix=$need_lib_prefix
22085 # Do we need a version for libraries?
22086 need_version=$need_version
22088 # Whether dlopen is supported.
22089 dlopen_support=$enable_dlopen
22091 # Whether dlopen of programs is supported.
22092 dlopen_self=$enable_dlopen_self
22094 # Whether dlopen of statically linked programs is supported.
22095 dlopen_self_static=$enable_dlopen_self_static
22097 # Compiler flag to prevent dynamic linking.
22098 link_static_flag=$lt_lt_prog_compiler_static_RC
22100 # Compiler flag to turn off builtin functions.
22101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22103 # Compiler flag to allow reflexive dlopens.
22104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22106 # Compiler flag to generate shared objects directly from archives.
22107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22109 # Compiler flag to generate thread-safe objects.
22110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22112 # Library versioning type.
22113 version_type=$version_type
22115 # Format of library name prefix.
22116 libname_spec=$lt_libname_spec
22118 # List of archive names. First name is the real one, the rest are links.
22119 # The last name is the one that the linker finds with -lNAME.
22120 library_names_spec=$lt_library_names_spec
22122 # The coded name of the library, if different from the real name.
22123 soname_spec=$lt_soname_spec
22125 # Commands used to build and install an old-style archive.
22126 RANLIB=$lt_RANLIB
22127 old_archive_cmds=$lt_old_archive_cmds_RC
22128 old_postinstall_cmds=$lt_old_postinstall_cmds
22129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22131 # Create an old-style archive from a shared archive.
22132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22134 # Create a temporary old-style archive to link instead of a shared archive.
22135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22137 # Commands used to build and install a shared archive.
22138 archive_cmds=$lt_archive_cmds_RC
22139 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22140 postinstall_cmds=$lt_postinstall_cmds
22141 postuninstall_cmds=$lt_postuninstall_cmds
22143 # Commands used to build a loadable module (assumed same as above if empty)
22144 module_cmds=$lt_module_cmds_RC
22145 module_expsym_cmds=$lt_module_expsym_cmds_RC
22147 # Commands to strip libraries.
22148 old_striplib=$lt_old_striplib
22149 striplib=$lt_striplib
22151 # Dependencies to place before the objects being linked to create a
22152 # shared library.
22153 predep_objects=$lt_predep_objects_RC
22155 # Dependencies to place after the objects being linked to create a
22156 # shared library.
22157 postdep_objects=$lt_postdep_objects_RC
22159 # Dependencies to place before the objects being linked to create a
22160 # shared library.
22161 predeps=$lt_predeps_RC
22163 # Dependencies to place after the objects being linked to create a
22164 # shared library.
22165 postdeps=$lt_postdeps_RC
22167 # The library search path used internally by the compiler when linking
22168 # a shared library.
22169 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22171 # Method to check whether dependent libraries are shared objects.
22172 deplibs_check_method=$lt_deplibs_check_method
22174 # Command to use when deplibs_check_method == file_magic.
22175 file_magic_cmd=$lt_file_magic_cmd
22177 # Flag that allows shared libraries with undefined symbols to be built.
22178 allow_undefined_flag=$lt_allow_undefined_flag_RC
22180 # Flag that forces no undefined symbols.
22181 no_undefined_flag=$lt_no_undefined_flag_RC
22183 # Commands used to finish a libtool library installation in a directory.
22184 finish_cmds=$lt_finish_cmds
22186 # Same as above, but a single script fragment to be evaled but not shown.
22187 finish_eval=$lt_finish_eval
22189 # Take the output of nm and produce a listing of raw symbols and C names.
22190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22192 # Transform the output of nm in a proper C declaration
22193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22195 # Transform the output of nm in a C name address pair
22196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22198 # This is the shared library runtime path variable.
22199 runpath_var=$runpath_var
22201 # This is the shared library path variable.
22202 shlibpath_var=$shlibpath_var
22204 # Is shlibpath searched before the hard-coded library search path?
22205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22207 # How to hardcode a shared library path into an executable.
22208 hardcode_action=$hardcode_action_RC
22210 # Whether we should hardcode library paths into libraries.
22211 hardcode_into_libs=$hardcode_into_libs
22213 # Flag to hardcode \$libdir into a binary during linking.
22214 # This must work even if \$libdir does not exist.
22215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22217 # If ld is used when linking, flag to hardcode \$libdir into
22218 # a binary during linking. This must work even if \$libdir does
22219 # not exist.
22220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22222 # Whether we need a single -rpath flag with a separated argument.
22223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22226 # resulting binary.
22227 hardcode_direct=$hardcode_direct_RC
22229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22230 # resulting binary.
22231 hardcode_minus_L=$hardcode_minus_L_RC
22233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22234 # the resulting binary.
22235 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22237 # Set to yes if building a shared library automatically hardcodes DIR into the library
22238 # and all subsequent libraries and executables linked against it.
22239 hardcode_automatic=$hardcode_automatic_RC
22241 # Variables whose values should be saved in libtool wrapper scripts and
22242 # restored at relink time.
22243 variables_saved_for_relink="$variables_saved_for_relink"
22245 # Whether libtool must link a program against all its dependency libraries.
22246 link_all_deplibs=$link_all_deplibs_RC
22248 # Compile-time system search path for libraries
22249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22251 # Run-time system search path for libraries
22252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22254 # Fix the shell variable \$srcfile for the compiler.
22255 fix_srcfile_path=$lt_fix_srcfile_path
22257 # Set to yes if exported symbols are required.
22258 always_export_symbols=$always_export_symbols_RC
22260 # The commands to list exported symbols.
22261 export_symbols_cmds=$lt_export_symbols_cmds_RC
22263 # The commands to extract the exported symbol list from a shared archive.
22264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22266 # Symbols that should not be listed in the preloaded symbols.
22267 exclude_expsyms=$lt_exclude_expsyms_RC
22269 # Symbols that must always be exported.
22270 include_expsyms=$lt_include_expsyms_RC
22272 # ### END LIBTOOL TAG CONFIG: $tagname
22274 __EOF__
22277 else
22278 # If there is no Makefile yet, we rely on a make rule to execute
22279 # `config.status --recheck' to rerun these tests and create the
22280 # libtool script then.
22281 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22282 if test -f "$ltmain_in"; then
22283 test -f Makefile && make "$ltmain"
22288 ac_ext=c
22289 ac_cpp='$CPP $CPPFLAGS'
22290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22294 CC="$lt_save_CC"
22299 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22300 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22301 { (exit 1); exit 1; }; }
22303 esac
22305 # Append the new tag name to the list of available tags.
22306 if test -n "$tagname" ; then
22307 available_tags="$available_tags $tagname"
22310 done
22311 IFS="$lt_save_ifs"
22313 # Now substitute the updated list of available tags.
22314 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22315 mv "${ofile}T" "$ofile"
22316 chmod +x "$ofile"
22317 else
22318 rm -f "${ofile}T"
22319 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22320 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22321 { (exit 1); exit 1; }; }
22327 # This can be used to rebuild libtool when needed
22328 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22330 # Always use our own libtool.
22331 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22333 # Prevent multiple expansion
22360 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
22362 cat >confcache <<\_ACEOF
22363 # This file is a shell script that caches the results of configure
22364 # tests run on this system so they can be shared between configure
22365 # scripts and configure runs, see configure's option --config-cache.
22366 # It is not useful on other systems. If it contains results you don't
22367 # want to keep, you may remove or edit it.
22369 # config.status only pays attention to the cache file if you give it
22370 # the --recheck option to rerun configure.
22372 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22373 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22374 # following values.
22376 _ACEOF
22378 # The following way of writing the cache mishandles newlines in values,
22379 # but we know of no workaround that is simple, portable, and efficient.
22380 # So, we kill variables containing newlines.
22381 # Ultrix sh set writes to stderr and can't be redirected directly,
22382 # and sets the high bit in the cache file unless we assign to the vars.
22384 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22385 eval ac_val=\$$ac_var
22386 case $ac_val in #(
22387 *${as_nl}*)
22388 case $ac_var in #(
22389 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22390 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22391 esac
22392 case $ac_var in #(
22393 _ | IFS | as_nl) ;; #(
22394 *) $as_unset $ac_var ;;
22395 esac ;;
22396 esac
22397 done
22399 (set) 2>&1 |
22400 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22401 *${as_nl}ac_space=\ *)
22402 # `set' does not quote correctly, so add quotes (double-quote
22403 # substitution turns \\\\ into \\, and sed turns \\ into \).
22404 sed -n \
22405 "s/'/'\\\\''/g;
22406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22407 ;; #(
22409 # `set' quotes correctly as required by POSIX, so do not add quotes.
22410 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22412 esac |
22413 sort
22415 sed '
22416 /^ac_cv_env_/b end
22417 t clear
22418 :clear
22419 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22420 t end
22421 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22422 :end' >>confcache
22423 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22424 if test -w "$cache_file"; then
22425 test "x$cache_file" != "x/dev/null" &&
22426 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22427 echo "$as_me: updating cache $cache_file" >&6;}
22428 cat confcache >$cache_file
22429 else
22430 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22431 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22434 rm -f confcache
22436 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22437 # Let make expand exec_prefix.
22438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22440 DEFS=-DHAVE_CONFIG_H
22442 ac_libobjs=
22443 ac_ltlibobjs=
22444 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22445 # 1. Remove the extension, and $U if already installed.
22446 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22447 ac_i=`echo "$ac_i" | sed "$ac_script"`
22448 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22449 # will be set to the directory where LIBOBJS objects are built.
22450 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22451 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22452 done
22453 LIBOBJS=$ac_libobjs
22455 LTLIBOBJS=$ac_ltlibobjs
22458 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22459 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22460 Usually this means the macro was only invoked conditionally." >&5
22461 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22462 Usually this means the macro was only invoked conditionally." >&2;}
22463 { (exit 1); exit 1; }; }
22465 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22466 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22467 Usually this means the macro was only invoked conditionally." >&5
22468 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22469 Usually this means the macro was only invoked conditionally." >&2;}
22470 { (exit 1); exit 1; }; }
22472 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22473 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22474 Usually this means the macro was only invoked conditionally." >&5
22475 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22476 Usually this means the macro was only invoked conditionally." >&2;}
22477 { (exit 1); exit 1; }; }
22479 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22480 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22481 Usually this means the macro was only invoked conditionally." >&5
22482 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22483 Usually this means the macro was only invoked conditionally." >&2;}
22484 { (exit 1); exit 1; }; }
22486 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22487 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22488 Usually this means the macro was only invoked conditionally." >&5
22489 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22490 Usually this means the macro was only invoked conditionally." >&2;}
22491 { (exit 1); exit 1; }; }
22494 ac_config_commands="$ac_config_commands po/stamp-it"
22498 : ${CONFIG_STATUS=./config.status}
22499 ac_clean_files_save=$ac_clean_files
22500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22501 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22502 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22503 cat >$CONFIG_STATUS <<_ACEOF
22504 #! $SHELL
22505 # Generated by $as_me.
22506 # Run this file to recreate the current configuration.
22507 # Compiler output produced by configure, useful for debugging
22508 # configure, is in config.log if it exists.
22510 debug=false
22511 ac_cs_recheck=false
22512 ac_cs_silent=false
22513 SHELL=\${CONFIG_SHELL-$SHELL}
22514 _ACEOF
22516 cat >>$CONFIG_STATUS <<\_ACEOF
22517 ## --------------------- ##
22518 ## M4sh Initialization. ##
22519 ## --------------------- ##
22521 # Be more Bourne compatible
22522 DUALCASE=1; export DUALCASE # for MKS sh
22523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22524 emulate sh
22525 NULLCMD=:
22526 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22527 # is contrary to our usage. Disable this feature.
22528 alias -g '${1+"$@"}'='"$@"'
22529 setopt NO_GLOB_SUBST
22530 else
22531 case `(set -o) 2>/dev/null` in
22532 *posix*) set -o posix ;;
22533 esac
22540 # PATH needs CR
22541 # Avoid depending upon Character Ranges.
22542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22545 as_cr_digits='0123456789'
22546 as_cr_alnum=$as_cr_Letters$as_cr_digits
22548 # The user is always right.
22549 if test "${PATH_SEPARATOR+set}" != set; then
22550 echo "#! /bin/sh" >conf$$.sh
22551 echo "exit 0" >>conf$$.sh
22552 chmod +x conf$$.sh
22553 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22554 PATH_SEPARATOR=';'
22555 else
22556 PATH_SEPARATOR=:
22558 rm -f conf$$.sh
22561 # Support unset when possible.
22562 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22563 as_unset=unset
22564 else
22565 as_unset=false
22569 # IFS
22570 # We need space, tab and new line, in precisely that order. Quoting is
22571 # there to prevent editors from complaining about space-tab.
22572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22573 # splitting by setting IFS to empty value.)
22574 as_nl='
22576 IFS=" "" $as_nl"
22578 # Find who we are. Look in the path if we contain no directory separator.
22579 case $0 in
22580 *[\\/]* ) as_myself=$0 ;;
22581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22582 for as_dir in $PATH
22584 IFS=$as_save_IFS
22585 test -z "$as_dir" && as_dir=.
22586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22587 done
22588 IFS=$as_save_IFS
22591 esac
22592 # We did not find ourselves, most probably we were run as `sh COMMAND'
22593 # in which case we are not to be found in the path.
22594 if test "x$as_myself" = x; then
22595 as_myself=$0
22597 if test ! -f "$as_myself"; then
22598 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22599 { (exit 1); exit 1; }
22602 # Work around bugs in pre-3.0 UWIN ksh.
22603 for as_var in ENV MAIL MAILPATH
22604 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22605 done
22606 PS1='$ '
22607 PS2='> '
22608 PS4='+ '
22610 # NLS nuisances.
22611 for as_var in \
22612 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22613 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22614 LC_TELEPHONE LC_TIME
22616 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22617 eval $as_var=C; export $as_var
22618 else
22619 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22621 done
22623 # Required to use basename.
22624 if expr a : '\(a\)' >/dev/null 2>&1 &&
22625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22626 as_expr=expr
22627 else
22628 as_expr=false
22631 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22632 as_basename=basename
22633 else
22634 as_basename=false
22638 # Name of the executable.
22639 as_me=`$as_basename -- "$0" ||
22640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22641 X"$0" : 'X\(//\)$' \| \
22642 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22643 echo X/"$0" |
22644 sed '/^.*\/\([^/][^/]*\)\/*$/{
22645 s//\1/
22648 /^X\/\(\/\/\)$/{
22649 s//\1/
22652 /^X\/\(\/\).*/{
22653 s//\1/
22656 s/.*/./; q'`
22658 # CDPATH.
22659 $as_unset CDPATH
22663 as_lineno_1=$LINENO
22664 as_lineno_2=$LINENO
22665 test "x$as_lineno_1" != "x$as_lineno_2" &&
22666 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22668 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22669 # uniformly replaced by the line number. The first 'sed' inserts a
22670 # line-number line after each line using $LINENO; the second 'sed'
22671 # does the real work. The second script uses 'N' to pair each
22672 # line-number line with the line containing $LINENO, and appends
22673 # trailing '-' during substitution so that $LINENO is not a special
22674 # case at line end.
22675 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22676 # scripts with optimization help from Paolo Bonzini. Blame Lee
22677 # E. McMahon (1931-1989) for sed's syntax. :-)
22678 sed -n '
22680 /[$]LINENO/=
22681 ' <$as_myself |
22682 sed '
22683 s/[$]LINENO.*/&-/
22684 t lineno
22686 :lineno
22688 :loop
22689 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22690 t loop
22691 s/-\n.*//
22692 ' >$as_me.lineno &&
22693 chmod +x "$as_me.lineno" ||
22694 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22695 { (exit 1); exit 1; }; }
22697 # Don't try to exec as it changes $[0], causing all sort of problems
22698 # (the dirname of $[0] is not the place where we might find the
22699 # original and so on. Autoconf is especially sensitive to this).
22700 . "./$as_me.lineno"
22701 # Exit status is that of the last command.
22702 exit
22706 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22707 as_dirname=dirname
22708 else
22709 as_dirname=false
22712 ECHO_C= ECHO_N= ECHO_T=
22713 case `echo -n x` in
22714 -n*)
22715 case `echo 'x\c'` in
22716 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22717 *) ECHO_C='\c';;
22718 esac;;
22720 ECHO_N='-n';;
22721 esac
22723 if expr a : '\(a\)' >/dev/null 2>&1 &&
22724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22725 as_expr=expr
22726 else
22727 as_expr=false
22730 rm -f conf$$ conf$$.exe conf$$.file
22731 if test -d conf$$.dir; then
22732 rm -f conf$$.dir/conf$$.file
22733 else
22734 rm -f conf$$.dir
22735 mkdir conf$$.dir
22737 echo >conf$$.file
22738 if ln -s conf$$.file conf$$ 2>/dev/null; then
22739 as_ln_s='ln -s'
22740 # ... but there are two gotchas:
22741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22743 # In both cases, we have to default to `cp -p'.
22744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22745 as_ln_s='cp -p'
22746 elif ln conf$$.file conf$$ 2>/dev/null; then
22747 as_ln_s=ln
22748 else
22749 as_ln_s='cp -p'
22751 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22752 rmdir conf$$.dir 2>/dev/null
22754 if mkdir -p . 2>/dev/null; then
22755 as_mkdir_p=:
22756 else
22757 test -d ./-p && rmdir ./-p
22758 as_mkdir_p=false
22761 if test -x / >/dev/null 2>&1; then
22762 as_test_x='test -x'
22763 else
22764 if ls -dL / >/dev/null 2>&1; then
22765 as_ls_L_option=L
22766 else
22767 as_ls_L_option=
22769 as_test_x='
22770 eval sh -c '\''
22771 if test -d "$1"; then
22772 test -d "$1/.";
22773 else
22774 case $1 in
22775 -*)set "./$1";;
22776 esac;
22777 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22778 ???[sx]*):;;*)false;;esac;fi
22779 '\'' sh
22782 as_executable_p=$as_test_x
22784 # Sed expression to map a string onto a valid CPP name.
22785 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22787 # Sed expression to map a string onto a valid variable name.
22788 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22791 exec 6>&1
22793 # Save the log message, to keep $[0] and so on meaningful, and to
22794 # report actual input values of CONFIG_FILES etc. instead of their
22795 # values after options handling.
22796 ac_log="
22797 This file was extended by opendashboard $as_me 0.0.0, which was
22798 generated by GNU Autoconf 2.61. Invocation command line was
22800 CONFIG_FILES = $CONFIG_FILES
22801 CONFIG_HEADERS = $CONFIG_HEADERS
22802 CONFIG_LINKS = $CONFIG_LINKS
22803 CONFIG_COMMANDS = $CONFIG_COMMANDS
22804 $ $0 $@
22806 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22809 _ACEOF
22811 cat >>$CONFIG_STATUS <<_ACEOF
22812 # Files that config.status was made for.
22813 config_files="$ac_config_files"
22814 config_headers="$ac_config_headers"
22815 config_commands="$ac_config_commands"
22817 _ACEOF
22819 cat >>$CONFIG_STATUS <<\_ACEOF
22820 ac_cs_usage="\
22821 \`$as_me' instantiates files from templates according to the
22822 current configuration.
22824 Usage: $0 [OPTIONS] [FILE]...
22826 -h, --help print this help, then exit
22827 -V, --version print version number and configuration settings, then exit
22828 -q, --quiet do not print progress messages
22829 -d, --debug don't remove temporary files
22830 --recheck update $as_me by reconfiguring in the same conditions
22831 --file=FILE[:TEMPLATE]
22832 instantiate the configuration file FILE
22833 --header=FILE[:TEMPLATE]
22834 instantiate the configuration header FILE
22836 Configuration files:
22837 $config_files
22839 Configuration headers:
22840 $config_headers
22842 Configuration commands:
22843 $config_commands
22845 Report bugs to <bug-autoconf@gnu.org>."
22847 _ACEOF
22848 cat >>$CONFIG_STATUS <<_ACEOF
22849 ac_cs_version="\\
22850 opendashboard config.status 0.0.0
22851 configured by $0, generated by GNU Autoconf 2.61,
22852 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22854 Copyright (C) 2006 Free Software Foundation, Inc.
22855 This config.status script is free software; the Free Software Foundation
22856 gives unlimited permission to copy, distribute and modify it."
22858 ac_pwd='$ac_pwd'
22859 srcdir='$srcdir'
22860 INSTALL='$INSTALL'
22861 MKDIR_P='$MKDIR_P'
22862 _ACEOF
22864 cat >>$CONFIG_STATUS <<\_ACEOF
22865 # If no file are specified by the user, then we need to provide default
22866 # value. By we need to know if files were specified by the user.
22867 ac_need_defaults=:
22868 while test $# != 0
22870 case $1 in
22871 --*=*)
22872 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22873 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22874 ac_shift=:
22877 ac_option=$1
22878 ac_optarg=$2
22879 ac_shift=shift
22881 esac
22883 case $ac_option in
22884 # Handling of the options.
22885 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22886 ac_cs_recheck=: ;;
22887 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22888 echo "$ac_cs_version"; exit ;;
22889 --debug | --debu | --deb | --de | --d | -d )
22890 debug=: ;;
22891 --file | --fil | --fi | --f )
22892 $ac_shift
22893 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22894 ac_need_defaults=false;;
22895 --header | --heade | --head | --hea )
22896 $ac_shift
22897 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22898 ac_need_defaults=false;;
22899 --he | --h)
22900 # Conflict between --help and --header
22901 { echo "$as_me: error: ambiguous option: $1
22902 Try \`$0 --help' for more information." >&2
22903 { (exit 1); exit 1; }; };;
22904 --help | --hel | -h )
22905 echo "$ac_cs_usage"; exit ;;
22906 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22907 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22908 ac_cs_silent=: ;;
22910 # This is an error.
22911 -*) { echo "$as_me: error: unrecognized option: $1
22912 Try \`$0 --help' for more information." >&2
22913 { (exit 1); exit 1; }; } ;;
22915 *) ac_config_targets="$ac_config_targets $1"
22916 ac_need_defaults=false ;;
22918 esac
22919 shift
22920 done
22922 ac_configure_extra_args=
22924 if $ac_cs_silent; then
22925 exec 6>/dev/null
22926 ac_configure_extra_args="$ac_configure_extra_args --silent"
22929 _ACEOF
22930 cat >>$CONFIG_STATUS <<_ACEOF
22931 if \$ac_cs_recheck; then
22932 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22933 CONFIG_SHELL=$SHELL
22934 export CONFIG_SHELL
22935 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22938 _ACEOF
22939 cat >>$CONFIG_STATUS <<\_ACEOF
22940 exec 5>>config.log
22942 echo
22943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22944 ## Running $as_me. ##
22945 _ASBOX
22946 echo "$ac_log"
22947 } >&5
22949 _ACEOF
22950 cat >>$CONFIG_STATUS <<_ACEOF
22952 # INIT-COMMANDS
22954 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22956 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
22957 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
22958 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' INTLTOOL_ICONV='${INTLTOOL_ICONV}'
22959 INTLTOOL_MSGFMT='${INTLTOOL_MSGFMT}' INTLTOOL_MSGMERGE='${INTLTOOL_MSGMERGE}'
22960 INTLTOOL_XGETTEXT='${INTLTOOL_XGETTEXT}'
22962 _ACEOF
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22966 # Handling of arguments.
22967 for ac_config_target in $ac_config_targets
22969 case $ac_config_target in
22970 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22971 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22972 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22973 "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
22974 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22975 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22976 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22977 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
22979 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22980 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22981 { (exit 1); exit 1; }; };;
22982 esac
22983 done
22986 # If the user did not use the arguments to specify the items to instantiate,
22987 # then the envvar interface is used. Set only those that are not.
22988 # We use the long form for the default assignment because of an extremely
22989 # bizarre bug on SunOS 4.1.3.
22990 if $ac_need_defaults; then
22991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22996 # Have a temporary directory for convenience. Make it in the build tree
22997 # simply because there is no reason against having it here, and in addition,
22998 # creating and moving files from /tmp can sometimes cause problems.
22999 # Hook for its removal unless debugging.
23000 # Note that there is a small window in which the directory will not be cleaned:
23001 # after its creation but before its name has been assigned to `$tmp'.
23002 $debug ||
23004 tmp=
23005 trap 'exit_status=$?
23006 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23008 trap '{ (exit 1); exit 1; }' 1 2 13 15
23010 # Create a (secure) tmp directory for tmp files.
23013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23014 test -n "$tmp" && test -d "$tmp"
23015 } ||
23017 tmp=./conf$$-$RANDOM
23018 (umask 077 && mkdir "$tmp")
23019 } ||
23021 echo "$me: cannot create a temporary directory in ." >&2
23022 { (exit 1); exit 1; }
23026 # Set up the sed scripts for CONFIG_FILES section.
23029 # No need to generate the scripts if there are no CONFIG_FILES.
23030 # This happens for instance when ./config.status config.h
23031 if test -n "$CONFIG_FILES"; then
23033 _ACEOF
23037 ac_delim='%!_!# '
23038 for ac_last_try in false false false false false :; do
23039 cat >conf$$subs.sed <<_ACEOF
23040 SHELL!$SHELL$ac_delim
23041 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23042 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23043 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23044 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23045 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23046 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23047 exec_prefix!$exec_prefix$ac_delim
23048 prefix!$prefix$ac_delim
23049 program_transform_name!$program_transform_name$ac_delim
23050 bindir!$bindir$ac_delim
23051 sbindir!$sbindir$ac_delim
23052 libexecdir!$libexecdir$ac_delim
23053 datarootdir!$datarootdir$ac_delim
23054 datadir!$datadir$ac_delim
23055 sysconfdir!$sysconfdir$ac_delim
23056 sharedstatedir!$sharedstatedir$ac_delim
23057 localstatedir!$localstatedir$ac_delim
23058 includedir!$includedir$ac_delim
23059 oldincludedir!$oldincludedir$ac_delim
23060 docdir!$docdir$ac_delim
23061 infodir!$infodir$ac_delim
23062 htmldir!$htmldir$ac_delim
23063 dvidir!$dvidir$ac_delim
23064 pdfdir!$pdfdir$ac_delim
23065 psdir!$psdir$ac_delim
23066 libdir!$libdir$ac_delim
23067 localedir!$localedir$ac_delim
23068 mandir!$mandir$ac_delim
23069 DEFS!$DEFS$ac_delim
23070 ECHO_C!$ECHO_C$ac_delim
23071 ECHO_N!$ECHO_N$ac_delim
23072 ECHO_T!$ECHO_T$ac_delim
23073 LIBS!$LIBS$ac_delim
23074 build_alias!$build_alias$ac_delim
23075 host_alias!$host_alias$ac_delim
23076 target_alias!$target_alias$ac_delim
23077 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23078 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23079 INSTALL_DATA!$INSTALL_DATA$ac_delim
23080 am__isrc!$am__isrc$ac_delim
23081 CYGPATH_W!$CYGPATH_W$ac_delim
23082 PACKAGE!$PACKAGE$ac_delim
23083 VERSION!$VERSION$ac_delim
23084 ACLOCAL!$ACLOCAL$ac_delim
23085 AUTOCONF!$AUTOCONF$ac_delim
23086 AUTOMAKE!$AUTOMAKE$ac_delim
23087 AUTOHEADER!$AUTOHEADER$ac_delim
23088 MAKEINFO!$MAKEINFO$ac_delim
23089 install_sh!$install_sh$ac_delim
23090 STRIP!$STRIP$ac_delim
23091 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23092 mkdir_p!$mkdir_p$ac_delim
23093 AWK!$AWK$ac_delim
23094 SET_MAKE!$SET_MAKE$ac_delim
23095 am__leading_dot!$am__leading_dot$ac_delim
23096 AMTAR!$AMTAR$ac_delim
23097 am__tar!$am__tar$ac_delim
23098 am__untar!$am__untar$ac_delim
23099 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23100 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23101 MAINT!$MAINT$ac_delim
23102 CC!$CC$ac_delim
23103 CFLAGS!$CFLAGS$ac_delim
23104 LDFLAGS!$LDFLAGS$ac_delim
23105 CPPFLAGS!$CPPFLAGS$ac_delim
23106 ac_ct_CC!$ac_ct_CC$ac_delim
23107 EXEEXT!$EXEEXT$ac_delim
23108 OBJEXT!$OBJEXT$ac_delim
23109 DEPDIR!$DEPDIR$ac_delim
23110 am__include!$am__include$ac_delim
23111 am__quote!$am__quote$ac_delim
23112 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23113 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23114 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23115 CCDEPMODE!$CCDEPMODE$ac_delim
23116 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23117 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23118 CXX!$CXX$ac_delim
23119 CXXFLAGS!$CXXFLAGS$ac_delim
23120 ac_ct_CXX!$ac_ct_CXX$ac_delim
23121 CXXDEPMODE!$CXXDEPMODE$ac_delim
23122 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23123 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23124 CPP!$CPP$ac_delim
23125 GREP!$GREP$ac_delim
23126 EGREP!$EGREP$ac_delim
23127 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
23128 build!$build$ac_delim
23129 build_cpu!$build_cpu$ac_delim
23130 build_vendor!$build_vendor$ac_delim
23131 build_os!$build_os$ac_delim
23132 host!$host$ac_delim
23133 host_cpu!$host_cpu$ac_delim
23134 host_vendor!$host_vendor$ac_delim
23135 host_os!$host_os$ac_delim
23136 USE_NLS!$USE_NLS$ac_delim
23137 _ACEOF
23139 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23140 break
23141 elif $ac_last_try; then
23142 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23143 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23144 { (exit 1); exit 1; }; }
23145 else
23146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23148 done
23150 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23151 if test -n "$ac_eof"; then
23152 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23153 ac_eof=`expr $ac_eof + 1`
23156 cat >>$CONFIG_STATUS <<_ACEOF
23157 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23159 _ACEOF
23160 sed '
23161 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23162 s/^/s,@/; s/!/@,|#_!!_#|/
23165 s/'"$ac_delim"'$/,g/; t
23166 s/$/\\/; p
23167 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23168 ' >>$CONFIG_STATUS <conf$$subs.sed
23169 rm -f conf$$subs.sed
23170 cat >>$CONFIG_STATUS <<_ACEOF
23171 CEOF$ac_eof
23172 _ACEOF
23175 ac_delim='%!_!# '
23176 for ac_last_try in false false false false false :; do
23177 cat >conf$$subs.sed <<_ACEOF
23178 MSGFMT!$MSGFMT$ac_delim
23179 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
23180 GMSGFMT!$GMSGFMT$ac_delim
23181 XGETTEXT!$XGETTEXT$ac_delim
23182 CATALOGS!$CATALOGS$ac_delim
23183 CATOBJEXT!$CATOBJEXT$ac_delim
23184 DATADIRNAME!$DATADIRNAME$ac_delim
23185 GMOFILES!$GMOFILES$ac_delim
23186 INSTOBJEXT!$INSTOBJEXT$ac_delim
23187 INTLLIBS!$INTLLIBS$ac_delim
23188 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
23189 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
23190 POFILES!$POFILES$ac_delim
23191 POSUB!$POSUB$ac_delim
23192 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
23193 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
23194 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
23195 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
23196 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
23197 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
23198 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
23199 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
23200 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
23201 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
23202 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
23203 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
23204 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
23205 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
23206 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
23207 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
23208 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
23209 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
23210 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
23211 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
23212 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
23213 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
23214 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
23215 INTLTOOL_ICONV!$INTLTOOL_ICONV$ac_delim
23216 INTLTOOL_MSGFMT!$INTLTOOL_MSGFMT$ac_delim
23217 INTLTOOL_MSGMERGE!$INTLTOOL_MSGMERGE$ac_delim
23218 INTLTOOL_XGETTEXT!$INTLTOOL_XGETTEXT$ac_delim
23219 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
23220 SED!$SED$ac_delim
23221 LN_S!$LN_S$ac_delim
23222 ECHO!$ECHO$ac_delim
23223 AR!$AR$ac_delim
23224 RANLIB!$RANLIB$ac_delim
23225 CXXCPP!$CXXCPP$ac_delim
23226 F77!$F77$ac_delim
23227 FFLAGS!$FFLAGS$ac_delim
23228 ac_ct_F77!$ac_ct_F77$ac_delim
23229 LIBTOOL!$LIBTOOL$ac_delim
23230 LIBOBJS!$LIBOBJS$ac_delim
23231 LTLIBOBJS!$LTLIBOBJS$ac_delim
23232 _ACEOF
23234 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
23235 break
23236 elif $ac_last_try; then
23237 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23238 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23239 { (exit 1); exit 1; }; }
23240 else
23241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23243 done
23245 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23246 if test -n "$ac_eof"; then
23247 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23248 ac_eof=`expr $ac_eof + 1`
23251 cat >>$CONFIG_STATUS <<_ACEOF
23252 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23254 _ACEOF
23255 sed '
23256 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23257 s/^/s,@/; s/!/@,|#_!!_#|/
23260 s/'"$ac_delim"'$/,g/; t
23261 s/$/\\/; p
23262 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23263 ' >>$CONFIG_STATUS <conf$$subs.sed
23264 rm -f conf$$subs.sed
23265 cat >>$CONFIG_STATUS <<_ACEOF
23266 :end
23267 s/|#_!!_#|//g
23268 CEOF$ac_eof
23269 _ACEOF
23272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23274 # trailing colons and then remove the whole line if VPATH becomes empty
23275 # (actually we leave an empty line to preserve line numbers).
23276 if test "x$srcdir" = x.; then
23277 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23278 s/:*\$(srcdir):*/:/
23279 s/:*\${srcdir}:*/:/
23280 s/:*@srcdir@:*/:/
23281 s/^\([^=]*=[ ]*\):*/\1/
23282 s/:*$//
23283 s/^[^=]*=[ ]*$//
23287 cat >>$CONFIG_STATUS <<\_ACEOF
23288 fi # test -n "$CONFIG_FILES"
23291 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23293 case $ac_tag in
23294 :[FHLC]) ac_mode=$ac_tag; continue;;
23295 esac
23296 case $ac_mode$ac_tag in
23297 :[FHL]*:*);;
23298 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23299 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23300 { (exit 1); exit 1; }; };;
23301 :[FH]-) ac_tag=-:-;;
23302 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23303 esac
23304 ac_save_IFS=$IFS
23305 IFS=:
23306 set x $ac_tag
23307 IFS=$ac_save_IFS
23308 shift
23309 ac_file=$1
23310 shift
23312 case $ac_mode in
23313 :L) ac_source=$1;;
23314 :[FH])
23315 ac_file_inputs=
23316 for ac_f
23318 case $ac_f in
23319 -) ac_f="$tmp/stdin";;
23320 *) # Look for the file first in the build tree, then in the source tree
23321 # (if the path is not absolute). The absolute path cannot be DOS-style,
23322 # because $ac_f cannot contain `:'.
23323 test -f "$ac_f" ||
23324 case $ac_f in
23325 [\\/$]*) false;;
23326 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23327 esac ||
23328 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23329 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23330 { (exit 1); exit 1; }; };;
23331 esac
23332 ac_file_inputs="$ac_file_inputs $ac_f"
23333 done
23335 # Let's still pretend it is `configure' which instantiates (i.e., don't
23336 # use $as_me), people would be surprised to read:
23337 # /* config.h. Generated by config.status. */
23338 configure_input="Generated from "`IFS=:
23339 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23340 if test x"$ac_file" != x-; then
23341 configure_input="$ac_file. $configure_input"
23342 { echo "$as_me:$LINENO: creating $ac_file" >&5
23343 echo "$as_me: creating $ac_file" >&6;}
23346 case $ac_tag in
23347 *:-:* | *:-) cat >"$tmp/stdin";;
23348 esac
23350 esac
23352 ac_dir=`$as_dirname -- "$ac_file" ||
23353 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23354 X"$ac_file" : 'X\(//\)[^/]' \| \
23355 X"$ac_file" : 'X\(//\)$' \| \
23356 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23357 echo X"$ac_file" |
23358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23359 s//\1/
23362 /^X\(\/\/\)[^/].*/{
23363 s//\1/
23366 /^X\(\/\/\)$/{
23367 s//\1/
23370 /^X\(\/\).*/{
23371 s//\1/
23374 s/.*/./; q'`
23375 { as_dir="$ac_dir"
23376 case $as_dir in #(
23377 -*) as_dir=./$as_dir;;
23378 esac
23379 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23380 as_dirs=
23381 while :; do
23382 case $as_dir in #(
23383 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23384 *) as_qdir=$as_dir;;
23385 esac
23386 as_dirs="'$as_qdir' $as_dirs"
23387 as_dir=`$as_dirname -- "$as_dir" ||
23388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23389 X"$as_dir" : 'X\(//\)[^/]' \| \
23390 X"$as_dir" : 'X\(//\)$' \| \
23391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23392 echo X"$as_dir" |
23393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23394 s//\1/
23397 /^X\(\/\/\)[^/].*/{
23398 s//\1/
23401 /^X\(\/\/\)$/{
23402 s//\1/
23405 /^X\(\/\).*/{
23406 s//\1/
23409 s/.*/./; q'`
23410 test -d "$as_dir" && break
23411 done
23412 test -z "$as_dirs" || eval "mkdir $as_dirs"
23413 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23414 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23415 { (exit 1); exit 1; }; }; }
23416 ac_builddir=.
23418 case "$ac_dir" in
23419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23422 # A ".." for each directory in $ac_dir_suffix.
23423 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23424 case $ac_top_builddir_sub in
23425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23427 esac ;;
23428 esac
23429 ac_abs_top_builddir=$ac_pwd
23430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23431 # for backward compatibility:
23432 ac_top_builddir=$ac_top_build_prefix
23434 case $srcdir in
23435 .) # We are building in place.
23436 ac_srcdir=.
23437 ac_top_srcdir=$ac_top_builddir_sub
23438 ac_abs_top_srcdir=$ac_pwd ;;
23439 [\\/]* | ?:[\\/]* ) # Absolute name.
23440 ac_srcdir=$srcdir$ac_dir_suffix;
23441 ac_top_srcdir=$srcdir
23442 ac_abs_top_srcdir=$srcdir ;;
23443 *) # Relative name.
23444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23445 ac_top_srcdir=$ac_top_build_prefix$srcdir
23446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23447 esac
23448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23451 case $ac_mode in
23454 # CONFIG_FILE
23457 case $INSTALL in
23458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23459 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23460 esac
23461 ac_MKDIR_P=$MKDIR_P
23462 case $MKDIR_P in
23463 [\\/$]* | ?:[\\/]* ) ;;
23464 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23465 esac
23466 _ACEOF
23468 cat >>$CONFIG_STATUS <<\_ACEOF
23469 # If the template does not know about datarootdir, expand it.
23470 # FIXME: This hack should be removed a few years after 2.60.
23471 ac_datarootdir_hack=; ac_datarootdir_seen=
23473 case `sed -n '/datarootdir/ {
23477 /@datadir@/p
23478 /@docdir@/p
23479 /@infodir@/p
23480 /@localedir@/p
23481 /@mandir@/p
23482 ' $ac_file_inputs` in
23483 *datarootdir*) ac_datarootdir_seen=yes;;
23484 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23485 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23486 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23487 _ACEOF
23488 cat >>$CONFIG_STATUS <<_ACEOF
23489 ac_datarootdir_hack='
23490 s&@datadir@&$datadir&g
23491 s&@docdir@&$docdir&g
23492 s&@infodir@&$infodir&g
23493 s&@localedir@&$localedir&g
23494 s&@mandir@&$mandir&g
23495 s&\\\${datarootdir}&$datarootdir&g' ;;
23496 esac
23497 _ACEOF
23499 # Neutralize VPATH when `$srcdir' = `.'.
23500 # Shell code in configure.ac might set extrasub.
23501 # FIXME: do we really want to maintain this feature?
23502 cat >>$CONFIG_STATUS <<_ACEOF
23503 sed "$ac_vpsub
23504 $extrasub
23505 _ACEOF
23506 cat >>$CONFIG_STATUS <<\_ACEOF
23508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23509 s&@configure_input@&$configure_input&;t t
23510 s&@top_builddir@&$ac_top_builddir_sub&;t t
23511 s&@srcdir@&$ac_srcdir&;t t
23512 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23513 s&@top_srcdir@&$ac_top_srcdir&;t t
23514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23515 s&@builddir@&$ac_builddir&;t t
23516 s&@abs_builddir@&$ac_abs_builddir&;t t
23517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23518 s&@INSTALL@&$ac_INSTALL&;t t
23519 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23520 $ac_datarootdir_hack
23521 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23524 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23526 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23527 which seems to be undefined. Please make sure it is defined." >&5
23528 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23529 which seems to be undefined. Please make sure it is defined." >&2;}
23531 rm -f "$tmp/stdin"
23532 case $ac_file in
23533 -) cat "$tmp/out"; rm -f "$tmp/out";;
23534 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23535 esac
23539 # CONFIG_HEADER
23541 _ACEOF
23543 # Transform confdefs.h into a sed script `conftest.defines', that
23544 # substitutes the proper values into config.h.in to produce config.h.
23545 rm -f conftest.defines conftest.tail
23546 # First, append a space to every undef/define line, to ease matching.
23547 echo 's/$/ /' >conftest.defines
23548 # Then, protect against being on the right side of a sed subst, or in
23549 # an unquoted here document, in config.status. If some macros were
23550 # called several times there might be several #defines for the same
23551 # symbol, which is useless. But do not sort them, since the last
23552 # AC_DEFINE must be honored.
23553 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23554 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23555 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23556 # PARAMS is the parameter list in the macro definition--in most cases, it's
23557 # just an empty string.
23558 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23559 ac_dB='\\)[ (].*,\\1define\\2'
23560 ac_dC=' '
23561 ac_dD=' ,'
23563 uniq confdefs.h |
23564 sed -n '
23565 t rset
23566 :rset
23567 s/^[ ]*#[ ]*define[ ][ ]*//
23568 t ok
23571 s/[\\&,]/\\&/g
23572 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23573 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23574 ' >>conftest.defines
23576 # Remove the space that was appended to ease matching.
23577 # Then replace #undef with comments. This is necessary, for
23578 # example, in the case of _POSIX_SOURCE, which is predefined and required
23579 # on some systems where configure will not decide to define it.
23580 # (The regexp can be short, since the line contains either #define or #undef.)
23581 echo 's/ $//
23582 s,^[ #]*u.*,/* & */,' >>conftest.defines
23584 # Break up conftest.defines:
23585 ac_max_sed_lines=50
23587 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23588 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23589 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23590 # et cetera.
23591 ac_in='$ac_file_inputs'
23592 ac_out='"$tmp/out1"'
23593 ac_nxt='"$tmp/out2"'
23595 while :
23597 # Write a here document:
23598 cat >>$CONFIG_STATUS <<_ACEOF
23599 # First, check the format of the line:
23600 cat >"\$tmp/defines.sed" <<\\CEOF
23601 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23602 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23604 :def
23605 _ACEOF
23606 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23607 echo 'CEOF
23608 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23609 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23610 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23611 grep . conftest.tail >/dev/null || break
23612 rm -f conftest.defines
23613 mv conftest.tail conftest.defines
23614 done
23615 rm -f conftest.defines conftest.tail
23617 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23618 cat >>$CONFIG_STATUS <<\_ACEOF
23619 if test x"$ac_file" != x-; then
23620 echo "/* $configure_input */" >"$tmp/config.h"
23621 cat "$ac_result" >>"$tmp/config.h"
23622 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23623 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23624 echo "$as_me: $ac_file is unchanged" >&6;}
23625 else
23626 rm -f $ac_file
23627 mv "$tmp/config.h" $ac_file
23629 else
23630 echo "/* $configure_input */"
23631 cat "$ac_result"
23633 rm -f "$tmp/out12"
23634 # Compute $ac_file's index in $config_headers.
23635 _am_stamp_count=1
23636 for _am_header in $config_headers :; do
23637 case $_am_header in
23638 $ac_file | $ac_file:* )
23639 break ;;
23641 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23642 esac
23643 done
23644 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23645 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23646 X$ac_file : 'X\(//\)[^/]' \| \
23647 X$ac_file : 'X\(//\)$' \| \
23648 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23649 echo X$ac_file |
23650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23651 s//\1/
23654 /^X\(\/\/\)[^/].*/{
23655 s//\1/
23658 /^X\(\/\/\)$/{
23659 s//\1/
23662 /^X\(\/\).*/{
23663 s//\1/
23666 s/.*/./; q'`/stamp-h$_am_stamp_count
23669 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23670 echo "$as_me: executing $ac_file commands" >&6;}
23672 esac
23675 case $ac_file$ac_mode in
23676 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23677 # Strip MF so we end up with the name of the file.
23678 mf=`echo "$mf" | sed -e 's/:.*$//'`
23679 # Check whether this is an Automake generated Makefile or not.
23680 # We used to match only the files named `Makefile.in', but
23681 # some people rename them; so instead we look at the file content.
23682 # Grep'ing the first line is not enough: some people post-process
23683 # each Makefile.in and add a new line on top of each file to say so.
23684 # Grep'ing the whole file is not good either: AIX grep has a line
23685 # limit of 2048, but all sed's we know have understand at least 4000.
23686 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23687 dirpart=`$as_dirname -- "$mf" ||
23688 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23689 X"$mf" : 'X\(//\)[^/]' \| \
23690 X"$mf" : 'X\(//\)$' \| \
23691 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23692 echo X"$mf" |
23693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23694 s//\1/
23697 /^X\(\/\/\)[^/].*/{
23698 s//\1/
23701 /^X\(\/\/\)$/{
23702 s//\1/
23705 /^X\(\/\).*/{
23706 s//\1/
23709 s/.*/./; q'`
23710 else
23711 continue
23713 # Extract the definition of DEPDIR, am__include, and am__quote
23714 # from the Makefile without running `make'.
23715 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23716 test -z "$DEPDIR" && continue
23717 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23718 test -z "am__include" && continue
23719 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23720 # When using ansi2knr, U may be empty or an underscore; expand it
23721 U=`sed -n 's/^U = //p' < "$mf"`
23722 # Find all dependency output files, they are included files with
23723 # $(DEPDIR) in their names. We invoke sed twice because it is the
23724 # simplest approach to changing $(DEPDIR) to its actual value in the
23725 # expansion.
23726 for file in `sed -n "
23727 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23728 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23729 # Make sure the directory exists.
23730 test -f "$dirpart/$file" && continue
23731 fdir=`$as_dirname -- "$file" ||
23732 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23733 X"$file" : 'X\(//\)[^/]' \| \
23734 X"$file" : 'X\(//\)$' \| \
23735 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23736 echo X"$file" |
23737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23738 s//\1/
23741 /^X\(\/\/\)[^/].*/{
23742 s//\1/
23745 /^X\(\/\/\)$/{
23746 s//\1/
23749 /^X\(\/\).*/{
23750 s//\1/
23753 s/.*/./; q'`
23754 { as_dir=$dirpart/$fdir
23755 case $as_dir in #(
23756 -*) as_dir=./$as_dir;;
23757 esac
23758 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23759 as_dirs=
23760 while :; do
23761 case $as_dir in #(
23762 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23763 *) as_qdir=$as_dir;;
23764 esac
23765 as_dirs="'$as_qdir' $as_dirs"
23766 as_dir=`$as_dirname -- "$as_dir" ||
23767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23768 X"$as_dir" : 'X\(//\)[^/]' \| \
23769 X"$as_dir" : 'X\(//\)$' \| \
23770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23771 echo X"$as_dir" |
23772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23773 s//\1/
23776 /^X\(\/\/\)[^/].*/{
23777 s//\1/
23780 /^X\(\/\/\)$/{
23781 s//\1/
23784 /^X\(\/\).*/{
23785 s//\1/
23788 s/.*/./; q'`
23789 test -d "$as_dir" && break
23790 done
23791 test -z "$as_dirs" || eval "mkdir $as_dirs"
23792 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23793 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23794 { (exit 1); exit 1; }; }; }
23795 # echo "creating $dirpart/$file"
23796 echo '# dummy' > "$dirpart/$file"
23797 done
23798 done
23800 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
23801 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
23802 esac ;;
23803 "intltool":C)
23805 for file in intltool-extract intltool-merge intltool-update; do
23806 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
23807 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
23808 -e "s|@INTLTOOL_ICONV@|${INTLTOOL_ICONV}|g" \
23809 -e "s|@INTLTOOL_MSGFMT@|${INTLTOOL_MSGFMT}|g" \
23810 -e "s|@INTLTOOL_MSGMERGE@|${INTLTOOL_MSGMERGE}|g" \
23811 -e "s|@INTLTOOL_XGETTEXT@|${INTLTOOL_XGETTEXT}|g" \
23812 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
23813 < ${ac_aux_dir}/${file}.in > ${file}.out
23814 if cmp -s ${file} ${file}.out 2>/dev/null; then
23815 rm -f ${file}.out
23816 else
23817 mv -f ${file}.out ${file}
23819 chmod ugo+x ${file}
23820 chmod u+w ${file}
23821 done
23824 "po/stamp-it":C)
23825 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
23826 >"po/stamp-it.tmp"
23827 sed '/^#/d
23828 s/^[[].*] *//
23829 /^[ ]*$/d
23830 '"s|^| $ac_top_srcdir/|" \
23831 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
23833 if test ! -f "po/Makefile"; then
23834 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
23835 echo "$as_me: error: po/Makefile is not ready." >&2;}
23836 { (exit 1); exit 1; }; }
23838 mv "po/Makefile" "po/Makefile.tmp"
23839 sed '/^POTFILES =/,/[^\\]$/ {
23840 /^POTFILES =/!d
23841 r po/POTFILES
23843 ' "po/Makefile.tmp" >"po/Makefile"
23844 rm -f "po/Makefile.tmp"
23845 mv "po/stamp-it.tmp" "po/stamp-it"
23848 esac
23849 done # for ac_tag
23852 { (exit 0); exit 0; }
23853 _ACEOF
23854 chmod +x $CONFIG_STATUS
23855 ac_clean_files=$ac_clean_files_save
23858 # configure is writing to config.log, and then calls config.status.
23859 # config.status does its own redirection, appending to config.log.
23860 # Unfortunately, on DOS this fails, as config.log is still kept open
23861 # by configure, so config.status won't be able to write to it; its
23862 # output is simply discarded. So we exec the FD to /dev/null,
23863 # effectively closing config.log, so it can be properly (re)opened and
23864 # appended to by config.status. When coming back to configure, we
23865 # need to make the FD available again.
23866 if test "$no_create" != yes; then
23867 ac_cs_success=:
23868 ac_config_status_args=
23869 test "$silent" = yes &&
23870 ac_config_status_args="$ac_config_status_args --quiet"
23871 exec 5>/dev/null
23872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23873 exec 5>>config.log
23874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23875 # would make configure fail if this is the last instruction.
23876 $ac_cs_success || { (exit 1); exit 1; }