Add auto-generated build files
[maemopadplus.git] / configure
blob8177077e9fd7fcdde54d092bc6cafa68425c4917
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 ac_unique_file="Makefile.am"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 AMTAR
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
823 SET_MAKE
824 am__leading_dot
825 build
826 build_cpu
827 build_vendor
828 build_os
829 host
830 host_cpu
831 host_vendor
832 host_os
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
850 RANLIB
851 GREP
852 EGREP
853 LN_S
854 ECHO
857 CXXFLAGS
858 ac_ct_CXX
859 CXXDEPMODE
860 am__fastdepCXX_TRUE
861 am__fastdepCXX_FALSE
862 CXXCPP
864 FFLAGS
865 ac_ct_F77
866 LIBTOOL
867 USE_NLS
868 INTLTOOL_UPDATE
869 INTLTOOL_MERGE
870 INTLTOOL_EXTRACT
871 INTLTOOL_DESKTOP_RULE
872 INTLTOOL_DIRECTORY_RULE
873 INTLTOOL_KEYS_RULE
874 INTLTOOL_PROP_RULE
875 INTLTOOL_OAF_RULE
876 INTLTOOL_PONG_RULE
877 INTLTOOL_SERVER_RULE
878 INTLTOOL_SHEET_RULE
879 INTLTOOL_SOUNDLIST_RULE
880 INTLTOOL_UI_RULE
881 INTLTOOL_XAM_RULE
882 INTLTOOL_KBD_RULE
883 INTLTOOL_XML_RULE
884 INTLTOOL_XML_NOMERGE_RULE
885 INTLTOOL_CAVES_RULE
886 INTLTOOL_SCHEMAS_RULE
887 INTLTOOL_THEME_RULE
888 INTLTOOL_SERVICE_RULE
889 INTLTOOL_POLICY_RULE
890 XGETTEXT
891 MSGMERGE
892 MSGFMT
893 GMSGFMT
894 INTLTOOL_PERL
895 ALL_LINGUAS
896 DATADIRNAME
897 PKG_CONFIG
898 HILDON_CFLAGS
899 HILDON_LIBS
900 DBUS_CFLAGS
901 DBUS_LIBS
902 OSSO_CFLAGS
903 OSSO_LIBS
904 SQL3_CFLAGS
905 SQL3_LIBS
906 GETTEXT_PACKAGE
907 MSGFMT_OPTS
908 CATALOGS
909 CATOBJEXT
910 GMOFILES
911 INSTOBJEXT
912 INTLLIBS
913 PO_IN_DATADIR_TRUE
914 PO_IN_DATADIR_FALSE
915 POFILES
916 POSUB
917 MKINSTALLDIRS
918 desktopentrydir
919 serviceentrydir
920 pixmapdir
921 icon_26x26dir
922 icon_34x34dir
923 icon_40x40dir
924 icon_50x50dir
925 icon_scalabledir
926 pluginlibdir
927 plugindesktopentrydir
928 LIBOBJS
929 LTLIBOBJS'
930 ac_subst_files=''
931 ac_precious_vars='build_alias
932 host_alias
933 target_alias
935 CFLAGS
936 LDFLAGS
937 LIBS
938 CPPFLAGS
941 CXXFLAGS
943 CXXCPP
945 FFLAGS
946 PKG_CONFIG
947 HILDON_CFLAGS
948 HILDON_LIBS
949 DBUS_CFLAGS
950 DBUS_LIBS
951 OSSO_CFLAGS
952 OSSO_LIBS
953 SQL3_CFLAGS
954 SQL3_LIBS'
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1010 ac_prev=
1011 continue
1014 case $ac_option in
1015 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 *) ac_optarg=yes ;;
1017 esac
1019 # Accept the important Cygnus configure options, so we can diagnose typos.
1021 case $ac_dashdash$ac_option in
1023 ac_dashdash=yes ;;
1025 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 ac_prev=bindir ;;
1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028 bindir=$ac_optarg ;;
1030 -build | --build | --buil | --bui | --bu)
1031 ac_prev=build_alias ;;
1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033 build_alias=$ac_optarg ;;
1035 -cache-file | --cache-file | --cache-fil | --cache-fi \
1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037 ac_prev=cache_file ;;
1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040 cache_file=$ac_optarg ;;
1042 --config-cache | -C)
1043 cache_file=config.cache ;;
1045 -datadir | --datadir | --datadi | --datad)
1046 ac_prev=datadir ;;
1047 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048 datadir=$ac_optarg ;;
1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051 | --dataroo | --dataro | --datar)
1052 ac_prev=datarootdir ;;
1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055 datarootdir=$ac_optarg ;;
1057 -disable-* | --disable-*)
1058 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1083 eval enable_$ac_feature=\$ac_optarg ;;
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 ac_prev=sbindir ;;
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 | --sbi=* | --sb=*)
1232 sbindir=$ac_optarg ;;
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1237 | --sha | --sh)
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 | --sha=* | --sh=*)
1243 sharedstatedir=$ac_optarg ;;
1245 -site | --site | --sit)
1246 ac_prev=site ;;
1247 -site=* | --site=* | --sit=*)
1248 site=$ac_optarg ;;
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 ac_prev=srcdir ;;
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 verbose=yes ;;
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1273 -with-* | --with-*)
1274 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid package name: $ac_package" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1280 eval with_$ac_package=\$ac_optarg ;;
1282 -without-* | --without-*)
1283 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 { echo "$as_me: error: invalid package name: $ac_package" >&2
1287 { (exit 1); exit 1; }; }
1288 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1289 eval with_$ac_package=no ;;
1291 --x)
1292 # Obsolete; use --with-x.
1293 with_x=yes ;;
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300 x_includes=$ac_optarg ;;
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307 x_libraries=$ac_optarg ;;
1309 -*) { echo "$as_me: error: unrecognized option: $ac_option
1310 Try \`$0 --help' for more information." >&2
1311 { (exit 1); exit 1; }; }
1314 *=*)
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1318 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1319 { (exit 1); exit 1; }; }
1320 eval $ac_envvar=\$ac_optarg
1321 export $ac_envvar ;;
1324 # FIXME: should be removed in autoconf 3.0.
1325 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331 esac
1332 done
1334 if test -n "$ac_prev"; then
1335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336 { echo "$as_me: error: missing argument to $ac_option" >&2
1337 { (exit 1); exit 1; }; }
1340 # Be sure to have absolute directory names.
1341 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
1346 eval ac_val=\$$ac_var
1347 case $ac_val in
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350 esac
1351 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1352 { (exit 1); exit 1; }; }
1353 done
1355 # There might be people who depend on the old broken behavior: `$host'
1356 # used to hold the argument of --host etc.
1357 # FIXME: To remove some day.
1358 build=$build_alias
1359 host=$host_alias
1360 target=$target_alias
1362 # FIXME: To remove some day.
1363 if test "x$host_alias" != x; then
1364 if test "x$build_alias" = x; then
1365 cross_compiling=maybe
1366 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1367 If a cross compiler is detected then cross compile mode will be used." >&2
1368 elif test "x$build_alias" != "x$host_alias"; then
1369 cross_compiling=yes
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376 test "$silent" = yes && exec 6>/dev/null
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382 { echo "$as_me: error: Working directory cannot be determined" >&2
1383 { (exit 1); exit 1; }; }
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385 { echo "$as_me: error: pwd does not report name of working directory" >&2
1386 { (exit 1); exit 1; }; }
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$0" ||
1394 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$0" : 'X\(//\)[^/]' \| \
1396 X"$0" : 'X\(//\)$' \| \
1397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1398 echo X"$0" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1407 /^X\(\/\/\)$/{
1408 s//\1/
1411 /^X\(\/\).*/{
1412 s//\1/
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1420 else
1421 ac_srcdir_defaulted=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1426 { (exit 1); exit 1; }; }
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1431 { (exit 1); exit 1; }; }
1432 pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 srcdir=.
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1451 # Report the --help message.
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1456 cat <<_ACEOF
1457 \`configure' configures this package to adapt to many kinds of systems.
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1464 Defaults for the options are specified in brackets.
1466 Configuration:
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print \`checking...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 [PREFIX]
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1488 For better control, use the options below.
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
1510 _ACEOF
1512 cat <<\_ACEOF
1514 Program names:
1515 --program-prefix=PREFIX prepend PREFIX to installed program names
1516 --program-suffix=SUFFIX append SUFFIX to installed program names
1517 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1519 System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 _ACEOF
1525 if test -n "$ac_init_help"; then
1527 cat <<\_ACEOF
1529 Optional Features:
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1532 --disable-dependency-tracking Speeds up one-time builds
1533 --enable-dependency-tracking Do not reject slow dependency extractors
1534 --enable-shared[=PKGS] build shared libraries [default=yes]
1535 --enable-static[=PKGS] build static libraries [default=yes]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation [default=yes]
1538 --disable-libtool-lock avoid locking (might break parallel builds)
1539 --disable-nls do not use Native Language Support
1540 --enable-debug Debugging (default=no)
1542 Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1547 both]
1548 --with-tags[=TAGS] include additional configurations [automatic]
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CPP C preprocessor
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
1561 CXXCPP C++ preprocessor
1562 F77 Fortran 77 compiler command
1563 FFLAGS Fortran 77 compiler flags
1564 PKG_CONFIG path to pkg-config utility
1565 HILDON_CFLAGS
1566 C compiler flags for HILDON, overriding pkg-config
1567 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1568 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1569 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1570 OSSO_CFLAGS C compiler flags for OSSO, overriding pkg-config
1571 OSSO_LIBS linker flags for OSSO, overriding pkg-config
1572 SQL3_CFLAGS C compiler flags for SQL3, overriding pkg-config
1573 SQL3_LIBS linker flags for SQL3, overriding pkg-config
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1578 _ACEOF
1579 ac_status=$?
1582 if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" || continue
1586 ac_builddir=.
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1604 case $srcdir in
1605 .) # We are building in place.
1606 ac_srcdir=.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1613 *) # Relative name.
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1628 else
1629 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1632 done
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637 cat <<\_ACEOF
1638 configure
1639 generated by GNU Autoconf 2.61
1641 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1642 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1643 This configure script is free software; the Free Software Foundation
1644 gives unlimited permission to copy, distribute and modify it.
1645 _ACEOF
1646 exit
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1652 It was created by $as_me, which was
1653 generated by GNU Autoconf 2.61. Invocation command line was
1655 $ $0 $@
1657 _ACEOF
1658 exec 5>>config.log
1660 cat <<_ASUNAME
1661 ## --------- ##
1662 ## Platform. ##
1663 ## --------- ##
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1674 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1675 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1678 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1679 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1680 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1682 _ASUNAME
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1687 IFS=$as_save_IFS
1688 test -z "$as_dir" && as_dir=.
1689 echo "PATH: $as_dir"
1690 done
1691 IFS=$as_save_IFS
1693 } >&5
1695 cat >&5 <<_ACEOF
1698 ## ----------- ##
1699 ## Core tests. ##
1700 ## ----------- ##
1702 _ACEOF
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_configure_args=
1711 ac_configure_args0=
1712 ac_configure_args1=
1713 ac_must_keep_next=false
1714 for ac_pass in 1 2
1716 for ac_arg
1718 case $ac_arg in
1719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721 | -silent | --silent | --silen | --sile | --sil)
1722 continue ;;
1723 *\'*)
1724 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 esac
1726 case $ac_pass in
1727 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730 if test $ac_must_keep_next = true; then
1731 ac_must_keep_next=false # Got value, back to normal.
1732 else
1733 case $ac_arg in
1734 *=* | --config-cache | -C | -disable-* | --disable-* \
1735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737 | -with-* | --with-* | -without-* | --without-* | --x)
1738 case "$ac_configure_args0 " in
1739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740 esac
1742 -* ) ac_must_keep_next=true ;;
1743 esac
1745 ac_configure_args="$ac_configure_args '$ac_arg'"
1747 esac
1748 done
1749 done
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log. We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759 # Save into config.log some information that might help in debugging.
1761 echo
1763 cat <<\_ASBOX
1764 ## ---------------- ##
1765 ## Cache variables. ##
1766 ## ---------------- ##
1767 _ASBOX
1768 echo
1769 # The following way of writing the cache mishandles newlines in values,
1771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in #(
1774 *${as_nl}*)
1775 case $ac_var in #(
1776 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778 esac
1779 case $ac_var in #(
1780 _ | IFS | as_nl) ;; #(
1781 *) $as_unset $ac_var ;;
1782 esac ;;
1783 esac
1784 done
1785 (set) 2>&1 |
1786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787 *${as_nl}ac_space=\ *)
1788 sed -n \
1789 "s/'\''/'\''\\\\'\'''\''/g;
1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791 ;; #(
1793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795 esac |
1796 sort
1798 echo
1800 cat <<\_ASBOX
1801 ## ----------------- ##
1802 ## Output variables. ##
1803 ## ----------------- ##
1804 _ASBOX
1805 echo
1806 for ac_var in $ac_subst_vars
1808 eval ac_val=\$$ac_var
1809 case $ac_val in
1810 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 esac
1812 echo "$ac_var='\''$ac_val'\''"
1813 done | sort
1814 echo
1816 if test -n "$ac_subst_files"; then
1817 cat <<\_ASBOX
1818 ## ------------------- ##
1819 ## File substitutions. ##
1820 ## ------------------- ##
1821 _ASBOX
1822 echo
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1826 case $ac_val in
1827 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 esac
1829 echo "$ac_var='\''$ac_val'\''"
1830 done | sort
1831 echo
1834 if test -s confdefs.h; then
1835 cat <<\_ASBOX
1836 ## ----------- ##
1837 ## confdefs.h. ##
1838 ## ----------- ##
1839 _ASBOX
1840 echo
1841 cat confdefs.h
1842 echo
1844 test "$ac_signal" != 0 &&
1845 echo "$as_me: caught signal $ac_signal"
1846 echo "$as_me: exit $exit_status"
1847 } >&5
1848 rm -f core *.core core.conftest.* &&
1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850 exit $exit_status
1852 for ac_signal in 1 2 13 15; do
1853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 done
1855 ac_signal=0
1857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1858 rm -f -r conftest* confdefs.h
1860 # Predefined preprocessor variables.
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 _ACEOF
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 _ACEOF
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 _ACEOF
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 _ACEOF
1887 # Let the site file select an alternate cache file if it wants to.
1888 # Prefer explicitly selected file to automatically selected ones.
1889 if test -n "$CONFIG_SITE"; then
1890 set x "$CONFIG_SITE"
1891 elif test "x$prefix" != xNONE; then
1892 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1893 else
1894 set x "$ac_default_prefix/share/config.site" \
1895 "$ac_default_prefix/etc/config.site"
1897 shift
1898 for ac_site_file
1900 if test -r "$ac_site_file"; then
1901 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 echo "$as_me: loading site script $ac_site_file" >&6;}
1903 sed 's/^/| /' "$ac_site_file" >&5
1904 . "$ac_site_file"
1906 done
1908 if test -r "$cache_file"; then
1909 # Some versions of bash will fail to source /dev/null (special
1910 # files actually), so we avoid doing that.
1911 if test -f "$cache_file"; then
1912 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 echo "$as_me: loading cache $cache_file" >&6;}
1914 case $cache_file in
1915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916 *) . "./$cache_file";;
1917 esac
1919 else
1920 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 echo "$as_me: creating cache $cache_file" >&6;}
1922 >$cache_file
1925 # Check that the precious variables saved in the cache have kept the same
1926 # value.
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930 eval ac_new_set=\$ac_env_${ac_var}_set
1931 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932 eval ac_new_val=\$ac_env_${ac_var}_value
1933 case $ac_old_set,$ac_new_set in
1934 set,)
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1938 ,set)
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1942 ,);;
1944 if test "x$ac_old_val" != "x$ac_new_val"; then
1945 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1948 echo "$as_me: former value: $ac_old_val" >&2;}
1949 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1950 echo "$as_me: current value: $ac_new_val" >&2;}
1951 ac_cache_corrupted=:
1952 fi;;
1953 esac
1954 # Pass precious variables to config.status.
1955 if test "$ac_new_set" = set; then
1956 case $ac_new_val in
1957 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 *) ac_arg=$ac_var=$ac_new_val ;;
1959 esac
1960 case " $ac_configure_args " in
1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1962 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 esac
1965 done
1966 if $ac_cache_corrupted; then
1967 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971 { (exit 1); exit 1; }; }
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 am__api_version="1.7"
1998 ac_aux_dir=
1999 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2000 if test -f "$ac_dir/install-sh"; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 break
2004 elif test -f "$ac_dir/install.sh"; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 break
2008 elif test -f "$ac_dir/shtool"; then
2009 ac_aux_dir=$ac_dir
2010 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 break
2013 done
2014 if test -z "$ac_aux_dir"; then
2015 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2016 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2017 { (exit 1); exit 1; }; }
2020 # These three variables are undocumented and unsupported,
2021 # and are intended to be withdrawn in a future Autoconf release.
2022 # They can cause serious problems if a builder's source tree is in a directory
2023 # whose full name contains unusual characters.
2024 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2025 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2026 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2029 # Find a good install program. We prefer a C program (faster),
2030 # so one script is as good as another. But avoid the broken or
2031 # incompatible versions:
2032 # SysV /etc/install, /usr/sbin/install
2033 # SunOS /usr/etc/install
2034 # IRIX /sbin/install
2035 # AIX /bin/install
2036 # AmigaOS /C/install, which installs bootblocks on floppy discs
2037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2040 # OS/2's system install, which has a completely different semantic
2041 # ./install, which can be erroneously created by make from ./install.sh.
2042 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2044 if test -z "$INSTALL"; then
2045 if test "${ac_cv_path_install+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 # Account for people who put trailing slashes in PATH elements.
2054 case $as_dir/ in
2055 ./ | .// | /cC/* | \
2056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2058 /usr/ucb/* ) ;;
2060 # OSF1 and SCO ODT 3.0 have their own names for install.
2061 # Don't use installbsd from OSF since it installs stuff as root
2062 # by default.
2063 for ac_prog in ginstall scoinst install; do
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2066 if test $ac_prog = install &&
2067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2068 # AIX install. It has an incompatible calling convention.
2070 elif test $ac_prog = install &&
2071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2072 # program-specific install script used by HP pwplus--don't use.
2074 else
2075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2076 break 3
2079 done
2080 done
2082 esac
2083 done
2084 IFS=$as_save_IFS
2088 if test "${ac_cv_path_install+set}" = set; then
2089 INSTALL=$ac_cv_path_install
2090 else
2091 # As a last resort, use the slow shell script. Don't cache a
2092 # value for INSTALL within a source directory, because that will
2093 # break other packages using the cache if that directory is
2094 # removed, or if the value is a relative name.
2095 INSTALL=$ac_install_sh
2098 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2099 echo "${ECHO_T}$INSTALL" >&6; }
2101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2102 # It thinks the first close brace ends the variable substitution.
2103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2109 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2110 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2111 # Just in case
2112 sleep 1
2113 echo timestamp > conftest.file
2114 # Do `set' in a subshell so we don't clobber the current shell's
2115 # arguments. Must try -L first in case configure is actually a
2116 # symlink; some systems play weird games with the mod time of symlinks
2117 # (eg FreeBSD returns the mod time of the symlink's containing
2118 # directory).
2119 if (
2120 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2121 if test "$*" = "X"; then
2122 # -L didn't work.
2123 set X `ls -t $srcdir/configure conftest.file`
2125 rm -f conftest.file
2126 if test "$*" != "X $srcdir/configure conftest.file" \
2127 && test "$*" != "X conftest.file $srcdir/configure"; then
2129 # If neither matched, then we have a broken ls. This can happen
2130 # if, for instance, CONFIG_SHELL is bash and it inherits a
2131 # broken ls alias from the environment. This has actually
2132 # happened. Such a system could not be considered "sane".
2133 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2134 alias in your environment" >&5
2135 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2136 alias in your environment" >&2;}
2137 { (exit 1); exit 1; }; }
2140 test "$2" = conftest.file
2142 then
2143 # Ok.
2145 else
2146 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2147 Check your system clock" >&5
2148 echo "$as_me: error: newly created file is older than distributed files!
2149 Check your system clock" >&2;}
2150 { (exit 1); exit 1; }; }
2152 { echo "$as_me:$LINENO: result: yes" >&5
2153 echo "${ECHO_T}yes" >&6; }
2154 test "$program_prefix" != NONE &&
2155 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2156 # Use a double $ so make ignores it.
2157 test "$program_suffix" != NONE &&
2158 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2159 # Double any \ or $. echo might interpret backslashes.
2160 # By default was `s,x,x', remove it if useless.
2161 cat <<\_ACEOF >conftest.sed
2162 s/[\\$]/&&/g;s/;s,x,x,$//
2163 _ACEOF
2164 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2165 rm -f conftest.sed
2168 # expand $ac_aux_dir to an absolute path
2169 am_aux_dir=`cd $ac_aux_dir && pwd`
2171 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2172 # Use eval to expand $SHELL
2173 if eval "$MISSING --run true"; then
2174 am_missing_run="$MISSING --run "
2175 else
2176 am_missing_run=
2177 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2178 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2181 for ac_prog in gawk mawk nawk awk
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy $ac_prog; ac_word=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_AWK+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190 if test -n "$AWK"; then
2191 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 ac_cv_prog_AWK="$ac_prog"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2204 done
2205 done
2206 IFS=$as_save_IFS
2210 AWK=$ac_cv_prog_AWK
2211 if test -n "$AWK"; then
2212 { echo "$as_me:$LINENO: result: $AWK" >&5
2213 echo "${ECHO_T}$AWK" >&6; }
2214 else
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2220 test -n "$AWK" && break
2221 done
2223 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2224 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2225 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2226 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229 cat >conftest.make <<\_ACEOF
2230 SHELL = /bin/sh
2231 all:
2232 @echo '@@@%%%=$(MAKE)=@@@%%%'
2233 _ACEOF
2234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2235 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2236 *@@@%%%=?*=@@@%%%*)
2237 eval ac_cv_prog_make_${ac_make}_set=yes;;
2239 eval ac_cv_prog_make_${ac_make}_set=no;;
2240 esac
2241 rm -f conftest.make
2243 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2244 { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2246 SET_MAKE=
2247 else
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250 SET_MAKE="MAKE=${MAKE-make}"
2253 rm -rf .tst 2>/dev/null
2254 mkdir .tst 2>/dev/null
2255 if test -d .tst; then
2256 am__leading_dot=.
2257 else
2258 am__leading_dot=_
2260 rmdir .tst 2>/dev/null
2262 # test to see if srcdir already configured
2263 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2264 test -f $srcdir/config.status; then
2265 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267 { (exit 1); exit 1; }; }
2270 # test whether we have cygpath
2271 if test -z "$CYGPATH_W"; then
2272 if (cygpath --version) >/dev/null 2>/dev/null; then
2273 CYGPATH_W='cygpath -w'
2274 else
2275 CYGPATH_W=echo
2280 # Define the identity of the package.
2281 PACKAGE=maemopadplus
2282 VERSION=0.34
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE "$PACKAGE"
2287 _ACEOF
2290 cat >>confdefs.h <<_ACEOF
2291 #define VERSION "$VERSION"
2292 _ACEOF
2294 # Some tools Automake needs.
2296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2311 AMTAR=${AMTAR-"${am_missing_run}tar"}
2313 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2315 # Installed binaries are usually stripped using `strip' when the user
2316 # run `make install-strip'. However `strip' might not be the right
2317 # tool to use in cross-compilation environments, therefore Automake
2318 # will honor the `STRIP' environment variable to overrule this program.
2319 if test "$cross_compiling" != no; then
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}strip; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_STRIP+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$STRIP"; then
2329 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2342 done
2343 done
2344 IFS=$as_save_IFS
2348 STRIP=$ac_cv_prog_STRIP
2349 if test -n "$STRIP"; then
2350 { echo "$as_me:$LINENO: result: $STRIP" >&5
2351 echo "${ECHO_T}$STRIP" >&6; }
2352 else
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2359 if test -z "$ac_cv_prog_STRIP"; then
2360 ac_ct_STRIP=$STRIP
2361 # Extract the first word of "strip", so it can be a program name with args.
2362 set dummy strip; ac_word=$2
2363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 if test -n "$ac_ct_STRIP"; then
2369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2378 ac_cv_prog_ac_ct_STRIP="strip"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2382 done
2383 done
2384 IFS=$as_save_IFS
2388 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2389 if test -n "$ac_ct_STRIP"; then
2390 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2391 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2392 else
2393 { echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6; }
2397 if test "x$ac_ct_STRIP" = x; then
2398 STRIP=":"
2399 else
2400 case $cross_compiling:$ac_tool_warned in
2401 yes:)
2402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&5
2405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2406 whose name does not start with the host triplet. If you think this
2407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2408 ac_tool_warned=yes ;;
2409 esac
2410 STRIP=$ac_ct_STRIP
2412 else
2413 STRIP="$ac_cv_prog_STRIP"
2417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2419 # We need awk for the "check" target. The system "awk" is bad on
2420 # some platforms.
2424 ac_config_headers="$ac_config_headers config.h"
2427 # Make sure we can run config.sub.
2428 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2429 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2430 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2431 { (exit 1); exit 1; }; }
2433 { echo "$as_me:$LINENO: checking build system type" >&5
2434 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2435 if test "${ac_cv_build+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 ac_build_alias=$build_alias
2439 test "x$ac_build_alias" = x &&
2440 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2441 test "x$ac_build_alias" = x &&
2442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2444 { (exit 1); exit 1; }; }
2445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2446 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2447 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2448 { (exit 1); exit 1; }; }
2451 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2452 echo "${ECHO_T}$ac_cv_build" >&6; }
2453 case $ac_cv_build in
2454 *-*-*) ;;
2455 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2456 echo "$as_me: error: invalid value of canonical build" >&2;}
2457 { (exit 1); exit 1; }; };;
2458 esac
2459 build=$ac_cv_build
2460 ac_save_IFS=$IFS; IFS='-'
2461 set x $ac_cv_build
2462 shift
2463 build_cpu=$1
2464 build_vendor=$2
2465 shift; shift
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2468 build_os=$*
2469 IFS=$ac_save_IFS
2470 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2473 { echo "$as_me:$LINENO: checking host system type" >&5
2474 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2475 if test "${ac_cv_host+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 if test "x$host_alias" = x; then
2479 ac_cv_host=$ac_cv_build
2480 else
2481 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2482 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2483 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2484 { (exit 1); exit 1; }; }
2488 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2489 echo "${ECHO_T}$ac_cv_host" >&6; }
2490 case $ac_cv_host in
2491 *-*-*) ;;
2492 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2493 echo "$as_me: error: invalid value of canonical host" >&2;}
2494 { (exit 1); exit 1; }; };;
2495 esac
2496 host=$ac_cv_host
2497 ac_save_IFS=$IFS; IFS='-'
2498 set x $ac_cv_host
2499 shift
2500 host_cpu=$1
2501 host_vendor=$2
2502 shift; shift
2503 # Remember, the first character of IFS is used to create $*,
2504 # except with old shells:
2505 host_os=$*
2506 IFS=$ac_save_IFS
2507 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2511 ac_ext=c
2512 ac_cpp='$CPP $CPPFLAGS'
2513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2516 if test -n "$ac_tool_prefix"; then
2517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2538 done
2539 done
2540 IFS=$as_save_IFS
2544 CC=$ac_cv_prog_CC
2545 if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2548 else
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2555 if test -z "$ac_cv_prog_CC"; then
2556 ac_ct_CC=$CC
2557 # Extract the first word of "gcc", so it can be a program name with args.
2558 set dummy gcc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$ac_ct_CC"; then
2565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_ac_ct_CC="gcc"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2578 done
2579 done
2580 IFS=$as_save_IFS
2584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2585 if test -n "$ac_ct_CC"; then
2586 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2587 echo "${ECHO_T}$ac_ct_CC" >&6; }
2588 else
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2593 if test "x$ac_ct_CC" = x; then
2594 CC=""
2595 else
2596 case $cross_compiling:$ac_tool_warned in
2597 yes:)
2598 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2599 whose name does not start with the host triplet. If you think this
2600 configuration is useful to you, please write to autoconf@gnu.org." >&5
2601 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2602 whose name does not start with the host triplet. If you think this
2603 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2604 ac_tool_warned=yes ;;
2605 esac
2606 CC=$ac_ct_CC
2608 else
2609 CC="$ac_cv_prog_CC"
2612 if test -z "$CC"; then
2613 if test -n "$ac_tool_prefix"; then
2614 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}cc; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_CC="${ac_tool_prefix}cc"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2635 done
2636 done
2637 IFS=$as_save_IFS
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643 { echo "$as_me:$LINENO: result: $CC" >&5
2644 echo "${ECHO_T}$CC" >&6; }
2645 else
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2653 if test -z "$CC"; then
2654 # Extract the first word of "cc", so it can be a program name with args.
2655 set dummy cc; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 ac_prog_rejected=no
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2673 ac_prog_rejected=yes
2674 continue
2676 ac_cv_prog_CC="cc"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2680 done
2681 done
2682 IFS=$as_save_IFS
2684 if test $ac_prog_rejected = yes; then
2685 # We found a bogon in the path, so make sure we never use it.
2686 set dummy $ac_cv_prog_CC
2687 shift
2688 if test $# != 0; then
2689 # We chose a different compiler from the bogus one.
2690 # However, it has the same basename, so the bogon will be chosen
2691 # first if we set CC to just the basename; use the full file name.
2692 shift
2693 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { echo "$as_me:$LINENO: result: $CC" >&5
2701 echo "${ECHO_T}$CC" >&6; }
2702 else
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2709 if test -z "$CC"; then
2710 if test -n "$ac_tool_prefix"; then
2711 for ac_prog in cl.exe
2713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2734 done
2735 done
2736 IFS=$as_save_IFS
2740 CC=$ac_cv_prog_CC
2741 if test -n "$CC"; then
2742 { echo "$as_me:$LINENO: result: $CC" >&5
2743 echo "${ECHO_T}$CC" >&6; }
2744 else
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2750 test -n "$CC" && break
2751 done
2753 if test -z "$CC"; then
2754 ac_ct_CC=$CC
2755 for ac_prog in cl.exe
2757 # Extract the first word of "$ac_prog", so it can be a program name with args.
2758 set dummy $ac_prog; ac_word=$2
2759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2761 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test -n "$ac_ct_CC"; then
2765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_ac_ct_CC="$ac_prog"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2778 done
2779 done
2780 IFS=$as_save_IFS
2784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787 echo "${ECHO_T}$ac_ct_CC" >&6; }
2788 else
2789 { echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6; }
2794 test -n "$ac_ct_CC" && break
2795 done
2797 if test "x$ac_ct_CC" = x; then
2798 CC=""
2799 else
2800 case $cross_compiling:$ac_tool_warned in
2801 yes:)
2802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2803 whose name does not start with the host triplet. If you think this
2804 configuration is useful to you, please write to autoconf@gnu.org." >&5
2805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2806 whose name does not start with the host triplet. If you think this
2807 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2808 ac_tool_warned=yes ;;
2809 esac
2810 CC=$ac_ct_CC
2817 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2818 See \`config.log' for more details." >&5
2819 echo "$as_me: error: no acceptable C compiler found in \$PATH
2820 See \`config.log' for more details." >&2;}
2821 { (exit 1); exit 1; }; }
2823 # Provide some information about the compiler.
2824 echo "$as_me:$LINENO: checking for C compiler version" >&5
2825 ac_compiler=`set X $ac_compile; echo $2`
2826 { (ac_try="$ac_compiler --version >&5"
2827 case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compiler --version >&5") 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2836 { (ac_try="$ac_compiler -v >&5"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compiler -v >&5") 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }
2846 { (ac_try="$ac_compiler -V >&5"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_compiler -V >&5") 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2865 main ()
2869 return 0;
2871 _ACEOF
2872 ac_clean_files_save=$ac_clean_files
2873 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2874 # Try to create an executable without -o first, disregard a.out.
2875 # It will help us diagnose broken compilers, and finding out an intuition
2876 # of exeext.
2877 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2878 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2879 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881 # List of possible output files, starting from the most likely.
2882 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2883 # only as a last resort. b.out is created by i960 compilers.
2884 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2886 # The IRIX 6 linker writes into existing files which may not be
2887 # executable, retaining their permissions. Remove them first so a
2888 # subsequent execution test works.
2889 ac_rmfiles=
2890 for ac_file in $ac_files
2892 case $ac_file in
2893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2894 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2895 esac
2896 done
2897 rm -f $ac_rmfiles
2899 if { (ac_try="$ac_link_default"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_link_default") 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; then
2909 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2910 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2911 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2912 # so that the user can short-circuit this test for compilers unknown to
2913 # Autoconf.
2914 for ac_file in $ac_files ''
2916 test -f "$ac_file" || continue
2917 case $ac_file in
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2920 [ab].out )
2921 # We found the default executable, but exeext='' is most
2922 # certainly right.
2923 break;;
2924 *.* )
2925 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2926 then :; else
2927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2929 # We set ac_cv_exeext here because the later test for it is not
2930 # safe: cross compilers may not add the suffix if given an `-o'
2931 # argument, so we may need to know it at that point already.
2932 # Even if this section looks crufty: it has the advantage of
2933 # actually working.
2934 break;;
2936 break;;
2937 esac
2938 done
2939 test "$ac_cv_exeext" = no && ac_cv_exeext=
2941 else
2942 ac_file=''
2945 { echo "$as_me:$LINENO: result: $ac_file" >&5
2946 echo "${ECHO_T}$ac_file" >&6; }
2947 if test -z "$ac_file"; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&2;}
2955 { (exit 77); exit 77; }; }
2958 ac_exeext=$ac_cv_exeext
2960 # Check that the compiler produces executables we can run. If not, either
2961 # the compiler is broken, or we cross compile.
2962 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2963 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2964 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2965 # If not cross compiling, check that we can run a simple program.
2966 if test "$cross_compiling" != yes; then
2967 if { ac_try='./$ac_file'
2968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 cross_compiling=no
2978 else
2979 if test "$cross_compiling" = maybe; then
2980 cross_compiling=yes
2981 else
2982 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details." >&5
2985 echo "$as_me: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'.
2987 See \`config.log' for more details." >&2;}
2988 { (exit 1); exit 1; }; }
2992 { echo "$as_me:$LINENO: result: yes" >&5
2993 echo "${ECHO_T}yes" >&6; }
2995 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2996 ac_clean_files=$ac_clean_files_save
2997 # Check that the compiler produces executables we can run. If not, either
2998 # the compiler is broken, or we cross compile.
2999 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3000 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3001 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3002 echo "${ECHO_T}$cross_compiling" >&6; }
3004 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3005 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3006 if { (ac_try="$ac_link"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_link") 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
3016 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3017 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3018 # work properly (i.e., refer to `conftest.exe'), while it won't with
3019 # `rm'.
3020 for ac_file in conftest.exe conftest conftest.*; do
3021 test -f "$ac_file" || continue
3022 case $ac_file in
3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3024 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 break;;
3026 * ) break;;
3027 esac
3028 done
3029 else
3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3033 See \`config.log' for more details." >&2;}
3034 { (exit 1); exit 1; }; }
3037 rm -f conftest$ac_cv_exeext
3038 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3039 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3041 rm -f conftest.$ac_ext
3042 EXEEXT=$ac_cv_exeext
3043 ac_exeext=$EXEEXT
3044 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3045 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3046 if test "${ac_cv_objext+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3057 main ()
3061 return 0;
3063 _ACEOF
3064 rm -f conftest.o conftest.obj
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>&5
3072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; then
3075 for ac_file in conftest.o conftest.obj conftest.*; do
3076 test -f "$ac_file" || continue;
3077 case $ac_file in
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3079 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3080 break;;
3081 esac
3082 done
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3096 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3097 echo "${ECHO_T}$ac_cv_objext" >&6; }
3098 OBJEXT=$ac_cv_objext
3099 ac_objext=$OBJEXT
3100 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3101 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3102 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h. */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3113 main ()
3115 #ifndef __GNUC__
3116 choke me
3117 #endif
3120 return 0;
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } && {
3137 test -z "$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest.$ac_objext; then
3140 ac_compiler_gnu=yes
3141 else
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 ac_compiler_gnu=no
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3152 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3153 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3154 GCC=`test $ac_compiler_gnu = yes && echo yes`
3155 ac_test_CFLAGS=${CFLAGS+set}
3156 ac_save_CFLAGS=$CFLAGS
3157 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3158 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_cc_g+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 ac_save_c_werror_flag=$ac_c_werror_flag
3163 ac_c_werror_flag=yes
3164 ac_cv_prog_cc_g=no
3165 CFLAGS="-g"
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3174 main ()
3178 return 0;
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } && {
3195 test -z "$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 } && test -s conftest.$ac_objext; then
3198 ac_cv_prog_cc_g=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 CFLAGS=""
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
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3242 CFLAGS="-g"
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3251 main ()
3255 return 0;
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && {
3272 test -z "$ac_c_werror_flag" ||
3273 test ! -s conftest.err
3274 } && test -s conftest.$ac_objext; then
3275 ac_cv_prog_cc_g=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_c_werror_flag=$ac_save_c_werror_flag
3292 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3293 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3294 if test "$ac_test_CFLAGS" = set; then
3295 CFLAGS=$ac_save_CFLAGS
3296 elif test $ac_cv_prog_cc_g = yes; then
3297 if test "$GCC" = yes; then
3298 CFLAGS="-g -O2"
3299 else
3300 CFLAGS="-g"
3302 else
3303 if test "$GCC" = yes; then
3304 CFLAGS="-O2"
3305 else
3306 CFLAGS=
3309 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3310 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3311 if test "${ac_cv_prog_cc_c89+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 ac_cv_prog_cc_c89=no
3315 ac_save_CC=$CC
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322 #include <stdarg.h>
3323 #include <stdio.h>
3324 #include <sys/types.h>
3325 #include <sys/stat.h>
3326 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3327 struct buf { int x; };
3328 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3329 static char *e (p, i)
3330 char **p;
3331 int i;
3333 return p[i];
3335 static char *f (char * (*g) (char **, int), char **p, ...)
3337 char *s;
3338 va_list v;
3339 va_start (v,p);
3340 s = g (p, va_arg (v,int));
3341 va_end (v);
3342 return s;
3345 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3346 function prototypes and stuff, but not '\xHH' hex character constants.
3347 These don't provoke an error unfortunately, instead are silently treated
3348 as 'x'. The following induces an error, until -std is added to get
3349 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3350 array size at least. It's necessary to write '\x00'==0 to get something
3351 that's true only with -std. */
3352 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3354 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3355 inside strings and character constants. */
3356 #define FOO(x) 'x'
3357 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3359 int test (int i, double x);
3360 struct s1 {int (*f) (int a);};
3361 struct s2 {int (*f) (double a);};
3362 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363 int argc;
3364 char **argv;
3366 main ()
3368 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3370 return 0;
3372 _ACEOF
3373 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3374 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3376 CC="$ac_save_CC $ac_arg"
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_cv_prog_cc_c89=$ac_arg
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3402 rm -f core conftest.err conftest.$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
3404 done
3405 rm -f conftest.$ac_ext
3406 CC=$ac_save_CC
3409 # AC_CACHE_VAL
3410 case "x$ac_cv_prog_cc_c89" in
3412 { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3414 xno)
3415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3418 CC="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3421 esac
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 DEPDIR="${am__leading_dot}deps"
3431 ac_config_commands="$ac_config_commands depfiles"
3434 am_make=${MAKE-make}
3435 cat > confinc << 'END'
3436 am__doit:
3437 @echo done
3438 .PHONY: am__doit
3440 # If we don't find an include directive, just comment out the code.
3441 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3442 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3443 am__include="#"
3444 am__quote=
3445 _am_result=none
3446 # First try GNU make style include.
3447 echo "include confinc" > confmf
3448 # We grep out `Entering directory' and `Leaving directory'
3449 # messages which can occur if `w' ends up in MAKEFLAGS.
3450 # In particular we don't look at `^make:' because GNU make might
3451 # be invoked under some other name (usually "gmake"), in which
3452 # case it prints its new name instead of `make'.
3453 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3454 am__include=include
3455 am__quote=
3456 _am_result=GNU
3458 # Now try BSD make style include.
3459 if test "$am__include" = "#"; then
3460 echo '.include "confinc"' > confmf
3461 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3462 am__include=.include
3463 am__quote="\""
3464 _am_result=BSD
3469 { echo "$as_me:$LINENO: result: $_am_result" >&5
3470 echo "${ECHO_T}$_am_result" >&6; }
3471 rm -f confinc confmf
3473 # Check whether --enable-dependency-tracking was given.
3474 if test "${enable_dependency_tracking+set}" = set; then
3475 enableval=$enable_dependency_tracking;
3478 if test "x$enable_dependency_tracking" != xno; then
3479 am_depcomp="$ac_aux_dir/depcomp"
3480 AMDEPBACKSLASH='\'
3484 if test "x$enable_dependency_tracking" != xno; then
3485 AMDEP_TRUE=
3486 AMDEP_FALSE='#'
3487 else
3488 AMDEP_TRUE='#'
3489 AMDEP_FALSE=
3495 depcc="$CC" am_compiler_list=
3497 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3498 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3499 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3503 # We make a subdir and do the tests there. Otherwise we can end up
3504 # making bogus files that we don't know about and never remove. For
3505 # instance it was reported that on HP-UX the gcc test will end up
3506 # making a dummy file named `D' -- because `-MD' means `put the output
3507 # in D'.
3508 mkdir conftest.dir
3509 # Copy depcomp to subdir because otherwise we won't find it if we're
3510 # using a relative directory.
3511 cp "$am_depcomp" conftest.dir
3512 cd conftest.dir
3513 # We will build objects and dependencies in a subdirectory because
3514 # it helps to detect inapplicable dependency modes. For instance
3515 # both Tru64's cc and ICC support -MD to output dependencies as a
3516 # side effect of compilation, but ICC will put the dependencies in
3517 # the current directory while Tru64 will put them in the object
3518 # directory.
3519 mkdir sub
3521 am_cv_CC_dependencies_compiler_type=none
3522 if test "$am_compiler_list" = ""; then
3523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3525 for depmode in $am_compiler_list; do
3526 # Setup a source with many dependencies, because some compilers
3527 # like to wrap large dependency lists on column 80 (with \), and
3528 # we should not choose a depcomp mode which is confused by this.
3530 # We need to recreate these files for each test, as the compiler may
3531 # overwrite some of them when testing with obscure command lines.
3532 # This happens at least with the AIX C compiler.
3533 : > sub/conftest.c
3534 for i in 1 2 3 4 5 6; do
3535 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3536 : > sub/conftst$i.h
3537 done
3538 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3540 case $depmode in
3541 nosideeffect)
3542 # after this tag, mechanisms are not by side-effect, so they'll
3543 # only be used when explicitly requested
3544 if test "x$enable_dependency_tracking" = xyes; then
3545 continue
3546 else
3547 break
3550 none) break ;;
3551 esac
3552 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3553 # mode. It turns out that the SunPro C++ compiler does not properly
3554 # handle `-M -o', and we need to detect this.
3555 if depmode=$depmode \
3556 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3557 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3558 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3559 >/dev/null 2>conftest.err &&
3560 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3561 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3562 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3563 # icc doesn't choke on unknown options, it will just issue warnings
3564 # (even with -Werror). So we grep stderr for any message
3565 # that says an option was ignored.
3566 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3567 am_cv_CC_dependencies_compiler_type=$depmode
3568 break
3571 done
3573 cd ..
3574 rm -rf conftest.dir
3575 else
3576 am_cv_CC_dependencies_compiler_type=none
3580 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3581 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3587 test "x$enable_dependency_tracking" != xno \
3588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3589 am__fastdepCC_TRUE=
3590 am__fastdepCC_FALSE='#'
3591 else
3592 am__fastdepCC_TRUE='#'
3593 am__fastdepCC_FALSE=
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3603 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3604 # On Suns, sometimes $CPP names a directory.
3605 if test -n "$CPP" && test -d "$CPP"; then
3606 CPP=
3608 if test -z "$CPP"; then
3609 if test "${ac_cv_prog_CPP+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 # Double quotes because CPP needs to be expanded
3613 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3615 ac_preproc_ok=false
3616 for ac_c_preproc_warn_flag in '' yes
3618 # Use a header file that comes with gcc, so configuring glibc
3619 # with a fresh cross-compiler works.
3620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3621 # <limits.h> exists even on freestanding compilers.
3622 # On the NeXT, cc -E runs the code through the compiler's parser,
3623 # not just through cpp. "Syntax error" is here to catch this case.
3624 cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h. */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #ifdef __STDC__
3631 # include <limits.h>
3632 #else
3633 # include <assert.h>
3634 #endif
3635 Syntax error
3636 _ACEOF
3637 if { (ac_try="$ac_cpp conftest.$ac_ext"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } >/dev/null && {
3650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 }; then
3654 else
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 # Broken: fails on valid input.
3659 continue
3662 rm -f conftest.err conftest.$ac_ext
3664 # OK, works on sane cases. Now check whether nonexistent headers
3665 # can be detected and how.
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672 #include <ac_nonexistent.h>
3673 _ACEOF
3674 if { (ac_try="$ac_cpp conftest.$ac_ext"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3681 ac_status=$?
3682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } >/dev/null && {
3687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3689 }; then
3690 # Broken: success on invalid input.
3691 continue
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 # Passes both tests.
3697 ac_preproc_ok=:
3698 break
3701 rm -f conftest.err conftest.$ac_ext
3703 done
3704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3705 rm -f conftest.err conftest.$ac_ext
3706 if $ac_preproc_ok; then
3707 break
3710 done
3711 ac_cv_prog_CPP=$CPP
3714 CPP=$ac_cv_prog_CPP
3715 else
3716 ac_cv_prog_CPP=$CPP
3718 { echo "$as_me:$LINENO: result: $CPP" >&5
3719 echo "${ECHO_T}$CPP" >&6; }
3720 ac_preproc_ok=false
3721 for ac_c_preproc_warn_flag in '' yes
3723 # Use a header file that comes with gcc, so configuring glibc
3724 # with a fresh cross-compiler works.
3725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 # <limits.h> exists even on freestanding compilers.
3727 # On the NeXT, cc -E runs the code through the compiler's parser,
3728 # not just through cpp. "Syntax error" is here to catch this case.
3729 cat >conftest.$ac_ext <<_ACEOF
3730 /* confdefs.h. */
3731 _ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3735 #ifdef __STDC__
3736 # include <limits.h>
3737 #else
3738 # include <assert.h>
3739 #endif
3740 Syntax error
3741 _ACEOF
3742 if { (ac_try="$ac_cpp conftest.$ac_ext"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } >/dev/null && {
3755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 }; then
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 # Broken: fails on valid input.
3764 continue
3767 rm -f conftest.err conftest.$ac_ext
3769 # OK, works on sane cases. Now check whether nonexistent headers
3770 # can be detected and how.
3771 cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h. */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3777 #include <ac_nonexistent.h>
3778 _ACEOF
3779 if { (ac_try="$ac_cpp conftest.$ac_ext"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } >/dev/null && {
3792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 }; then
3795 # Broken: success on invalid input.
3796 continue
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 # Passes both tests.
3802 ac_preproc_ok=:
3803 break
3806 rm -f conftest.err conftest.$ac_ext
3808 done
3809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3810 rm -f conftest.err conftest.$ac_ext
3811 if $ac_preproc_ok; then
3813 else
3814 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3817 See \`config.log' for more details." >&2;}
3818 { (exit 1); exit 1; }; }
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 # Find a good install program. We prefer a C program (faster),
3828 # so one script is as good as another. But avoid the broken or
3829 # incompatible versions:
3830 # SysV /etc/install, /usr/sbin/install
3831 # SunOS /usr/etc/install
3832 # IRIX /sbin/install
3833 # AIX /bin/install
3834 # AmigaOS /C/install, which installs bootblocks on floppy discs
3835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3838 # OS/2's system install, which has a completely different semantic
3839 # ./install, which can be erroneously created by make from ./install.sh.
3840 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3841 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3842 if test -z "$INSTALL"; then
3843 if test "${ac_cv_path_install+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 # Account for people who put trailing slashes in PATH elements.
3852 case $as_dir/ in
3853 ./ | .// | /cC/* | \
3854 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3855 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3856 /usr/ucb/* ) ;;
3858 # OSF1 and SCO ODT 3.0 have their own names for install.
3859 # Don't use installbsd from OSF since it installs stuff as root
3860 # by default.
3861 for ac_prog in ginstall scoinst install; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3864 if test $ac_prog = install &&
3865 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3866 # AIX install. It has an incompatible calling convention.
3868 elif test $ac_prog = install &&
3869 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3870 # program-specific install script used by HP pwplus--don't use.
3872 else
3873 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3874 break 3
3877 done
3878 done
3880 esac
3881 done
3882 IFS=$as_save_IFS
3886 if test "${ac_cv_path_install+set}" = set; then
3887 INSTALL=$ac_cv_path_install
3888 else
3889 # As a last resort, use the slow shell script. Don't cache a
3890 # value for INSTALL within a source directory, because that will
3891 # break other packages using the cache if that directory is
3892 # removed, or if the value is a relative name.
3893 INSTALL=$ac_install_sh
3896 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3897 echo "${ECHO_T}$INSTALL" >&6; }
3899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3900 # It thinks the first close brace ends the variable substitution.
3901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3907 if test -n "$ac_tool_prefix"; then
3908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3912 if test "${ac_cv_prog_RANLIB+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915 if test -n "$RANLIB"; then
3916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3929 done
3930 done
3931 IFS=$as_save_IFS
3935 RANLIB=$ac_cv_prog_RANLIB
3936 if test -n "$RANLIB"; then
3937 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3938 echo "${ECHO_T}$RANLIB" >&6; }
3939 else
3940 { echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6; }
3946 if test -z "$ac_cv_prog_RANLIB"; then
3947 ac_ct_RANLIB=$RANLIB
3948 # Extract the first word of "ranlib", so it can be a program name with args.
3949 set dummy ranlib; ac_word=$2
3950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3952 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3953 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955 if test -n "$ac_ct_RANLIB"; then
3956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3965 ac_cv_prog_ac_ct_RANLIB="ranlib"
3966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3969 done
3970 done
3971 IFS=$as_save_IFS
3975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3976 if test -n "$ac_ct_RANLIB"; then
3977 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3978 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3979 else
3980 { echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6; }
3984 if test "x$ac_ct_RANLIB" = x; then
3985 RANLIB=":"
3986 else
3987 case $cross_compiling:$ac_tool_warned in
3988 yes:)
3989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3990 whose name does not start with the host triplet. If you think this
3991 configuration is useful to you, please write to autoconf@gnu.org." >&5
3992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3993 whose name does not start with the host triplet. If you think this
3994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3995 ac_tool_warned=yes ;;
3996 esac
3997 RANLIB=$ac_ct_RANLIB
3999 else
4000 RANLIB="$ac_cv_prog_RANLIB"
4003 # Check whether --enable-shared was given.
4004 if test "${enable_shared+set}" = set; then
4005 enableval=$enable_shared; p=${PACKAGE-default}
4006 case $enableval in
4007 yes) enable_shared=yes ;;
4008 no) enable_shared=no ;;
4010 enable_shared=no
4011 # Look at the argument we got. We use all the common list separators.
4012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4013 for pkg in $enableval; do
4014 IFS="$lt_save_ifs"
4015 if test "X$pkg" = "X$p"; then
4016 enable_shared=yes
4018 done
4019 IFS="$lt_save_ifs"
4021 esac
4022 else
4023 enable_shared=yes
4027 # Check whether --enable-static was given.
4028 if test "${enable_static+set}" = set; then
4029 enableval=$enable_static; p=${PACKAGE-default}
4030 case $enableval in
4031 yes) enable_static=yes ;;
4032 no) enable_static=no ;;
4034 enable_static=no
4035 # Look at the argument we got. We use all the common list separators.
4036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4037 for pkg in $enableval; do
4038 IFS="$lt_save_ifs"
4039 if test "X$pkg" = "X$p"; then
4040 enable_static=yes
4042 done
4043 IFS="$lt_save_ifs"
4045 esac
4046 else
4047 enable_static=yes
4051 # Check whether --enable-fast-install was given.
4052 if test "${enable_fast_install+set}" = set; then
4053 enableval=$enable_fast_install; p=${PACKAGE-default}
4054 case $enableval in
4055 yes) enable_fast_install=yes ;;
4056 no) enable_fast_install=no ;;
4058 enable_fast_install=no
4059 # Look at the argument we got. We use all the common list separators.
4060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4061 for pkg in $enableval; do
4062 IFS="$lt_save_ifs"
4063 if test "X$pkg" = "X$p"; then
4064 enable_fast_install=yes
4066 done
4067 IFS="$lt_save_ifs"
4069 esac
4070 else
4071 enable_fast_install=yes
4075 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4076 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4077 if test "${lt_cv_path_SED+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 # Loop through the user's path and test for sed and gsed.
4081 # Then use that list of sed's as ones to test for truncation.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for lt_ac_prog in sed gsed; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4090 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4092 done
4093 done
4094 done
4095 lt_ac_max=0
4096 lt_ac_count=0
4097 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4098 # along with /bin/sed that truncates output.
4099 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4100 test ! -f $lt_ac_sed && continue
4101 cat /dev/null > conftest.in
4102 lt_ac_count=0
4103 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4104 # Check for GNU sed and select it if it is found.
4105 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4106 lt_cv_path_SED=$lt_ac_sed
4107 break
4109 while true; do
4110 cat conftest.in conftest.in >conftest.tmp
4111 mv conftest.tmp conftest.in
4112 cp conftest.in conftest.nl
4113 echo >>conftest.nl
4114 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4115 cmp -s conftest.out conftest.nl || break
4116 # 10000 chars as input seems more than enough
4117 test $lt_ac_count -gt 10 && break
4118 lt_ac_count=`expr $lt_ac_count + 1`
4119 if test $lt_ac_count -gt $lt_ac_max; then
4120 lt_ac_max=$lt_ac_count
4121 lt_cv_path_SED=$lt_ac_sed
4123 done
4124 done
4128 SED=$lt_cv_path_SED
4129 { echo "$as_me:$LINENO: result: $SED" >&5
4130 echo "${ECHO_T}$SED" >&6; }
4132 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4133 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4134 if test "${ac_cv_path_GREP+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 # Extract the first word of "grep ggrep" to use in msg output
4138 if test -z "$GREP"; then
4139 set dummy grep ggrep; ac_prog_name=$2
4140 if test "${ac_cv_path_GREP+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 ac_path_GREP_found=false
4144 # Loop through the user's path and test for each of PROGNAME-LIST
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for ac_prog in grep ggrep; do
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4153 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4154 # Check for GNU ac_path_GREP and select it if it is found.
4155 # Check for GNU $ac_path_GREP
4156 case `"$ac_path_GREP" --version 2>&1` in
4157 *GNU*)
4158 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4160 ac_count=0
4161 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4162 while :
4164 cat "conftest.in" "conftest.in" >"conftest.tmp"
4165 mv "conftest.tmp" "conftest.in"
4166 cp "conftest.in" "conftest.nl"
4167 echo 'GREP' >> "conftest.nl"
4168 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4170 ac_count=`expr $ac_count + 1`
4171 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4172 # Best one so far, save it but keep looking for a better one
4173 ac_cv_path_GREP="$ac_path_GREP"
4174 ac_path_GREP_max=$ac_count
4176 # 10*(2^10) chars as input seems more than enough
4177 test $ac_count -gt 10 && break
4178 done
4179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4180 esac
4183 $ac_path_GREP_found && break 3
4184 done
4185 done
4187 done
4188 IFS=$as_save_IFS
4193 GREP="$ac_cv_path_GREP"
4194 if test -z "$GREP"; then
4195 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4196 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4197 { (exit 1); exit 1; }; }
4200 else
4201 ac_cv_path_GREP=$GREP
4206 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4207 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4208 GREP="$ac_cv_path_GREP"
4211 { echo "$as_me:$LINENO: checking for egrep" >&5
4212 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4213 if test "${ac_cv_path_EGREP+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4217 then ac_cv_path_EGREP="$GREP -E"
4218 else
4219 # Extract the first word of "egrep" to use in msg output
4220 if test -z "$EGREP"; then
4221 set dummy egrep; ac_prog_name=$2
4222 if test "${ac_cv_path_EGREP+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225 ac_path_EGREP_found=false
4226 # Loop through the user's path and test for each of PROGNAME-LIST
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_prog in egrep; do
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4235 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4236 # Check for GNU ac_path_EGREP and select it if it is found.
4237 # Check for GNU $ac_path_EGREP
4238 case `"$ac_path_EGREP" --version 2>&1` in
4239 *GNU*)
4240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4242 ac_count=0
4243 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4244 while :
4246 cat "conftest.in" "conftest.in" >"conftest.tmp"
4247 mv "conftest.tmp" "conftest.in"
4248 cp "conftest.in" "conftest.nl"
4249 echo 'EGREP' >> "conftest.nl"
4250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4252 ac_count=`expr $ac_count + 1`
4253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4254 # Best one so far, save it but keep looking for a better one
4255 ac_cv_path_EGREP="$ac_path_EGREP"
4256 ac_path_EGREP_max=$ac_count
4258 # 10*(2^10) chars as input seems more than enough
4259 test $ac_count -gt 10 && break
4260 done
4261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4262 esac
4265 $ac_path_EGREP_found && break 3
4266 done
4267 done
4269 done
4270 IFS=$as_save_IFS
4275 EGREP="$ac_cv_path_EGREP"
4276 if test -z "$EGREP"; then
4277 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4278 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4279 { (exit 1); exit 1; }; }
4282 else
4283 ac_cv_path_EGREP=$EGREP
4289 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4290 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4291 EGREP="$ac_cv_path_EGREP"
4295 # Check whether --with-gnu-ld was given.
4296 if test "${with_gnu_ld+set}" = set; then
4297 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4298 else
4299 with_gnu_ld=no
4302 ac_prog=ld
4303 if test "$GCC" = yes; then
4304 # Check if gcc -print-prog-name=ld gives a path.
4305 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4306 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4307 case $host in
4308 *-*-mingw*)
4309 # gcc leaves a trailing carriage return which upsets mingw
4310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4313 esac
4314 case $ac_prog in
4315 # Accept absolute paths.
4316 [\\/]* | ?:[\\/]*)
4317 re_direlt='/[^/][^/]*/\.\./'
4318 # Canonicalize the pathname of ld
4319 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4320 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4321 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4322 done
4323 test -z "$LD" && LD="$ac_prog"
4326 # If it fails, then pretend we aren't using GCC.
4327 ac_prog=ld
4330 # If it is relative, then search for the first ld in PATH.
4331 with_gnu_ld=unknown
4333 esac
4334 elif test "$with_gnu_ld" = yes; then
4335 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4336 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4337 else
4338 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4339 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4341 if test "${lt_cv_path_LD+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 if test -z "$LD"; then
4345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4346 for ac_dir in $PATH; do
4347 IFS="$lt_save_ifs"
4348 test -z "$ac_dir" && ac_dir=.
4349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4350 lt_cv_path_LD="$ac_dir/$ac_prog"
4351 # Check to see if the program is GNU ld. I'd rather use --version,
4352 # but apparently some variants of GNU ld only accept -v.
4353 # Break only if it was the GNU/non-GNU ld that we prefer.
4354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4355 *GNU* | *'with BFD'*)
4356 test "$with_gnu_ld" != no && break
4359 test "$with_gnu_ld" != yes && break
4361 esac
4363 done
4364 IFS="$lt_save_ifs"
4365 else
4366 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4370 LD="$lt_cv_path_LD"
4371 if test -n "$LD"; then
4372 { echo "$as_me:$LINENO: result: $LD" >&5
4373 echo "${ECHO_T}$LD" >&6; }
4374 else
4375 { echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6; }
4378 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4379 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4380 { (exit 1); exit 1; }; }
4381 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4382 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4383 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4387 case `$LD -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389 lt_cv_prog_gnu_ld=yes
4392 lt_cv_prog_gnu_ld=no
4394 esac
4396 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4397 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4398 with_gnu_ld=$lt_cv_prog_gnu_ld
4401 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4402 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4403 if test "${lt_cv_ld_reload_flag+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406 lt_cv_ld_reload_flag='-r'
4408 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4409 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4410 reload_flag=$lt_cv_ld_reload_flag
4411 case $reload_flag in
4412 "" | " "*) ;;
4413 *) reload_flag=" $reload_flag" ;;
4414 esac
4415 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4416 case $host_os in
4417 darwin*)
4418 if test "$GCC" = yes; then
4419 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4420 else
4421 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4424 esac
4426 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4427 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4428 if test "${lt_cv_path_NM+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 if test -n "$NM"; then
4432 # Let the user override the test.
4433 lt_cv_path_NM="$NM"
4434 else
4435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4436 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4437 IFS="$lt_save_ifs"
4438 test -z "$ac_dir" && ac_dir=.
4439 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4440 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4441 # Check to see if the nm accepts a BSD-compat flag.
4442 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4443 # nm: unknown option "B" ignored
4444 # Tru64's nm complains that /dev/null is an invalid object file
4445 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4446 */dev/null* | *'Invalid file or object type'*)
4447 lt_cv_path_NM="$tmp_nm -B"
4448 break
4451 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4452 */dev/null*)
4453 lt_cv_path_NM="$tmp_nm -p"
4454 break
4457 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4458 continue # so that we can try to find one that supports BSD flags
4460 esac
4461 esac
4463 done
4464 IFS="$lt_save_ifs"
4465 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4468 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4469 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4470 NM="$lt_cv_path_NM"
4472 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4473 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4474 LN_S=$as_ln_s
4475 if test "$LN_S" = "ln -s"; then
4476 { echo "$as_me:$LINENO: result: yes" >&5
4477 echo "${ECHO_T}yes" >&6; }
4478 else
4479 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4480 echo "${ECHO_T}no, using $LN_S" >&6; }
4483 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4484 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4485 if test "${lt_cv_deplibs_check_method+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 lt_cv_file_magic_cmd='$MAGIC_CMD'
4489 lt_cv_file_magic_test_file=
4490 lt_cv_deplibs_check_method='unknown'
4491 # Need to set the preceding variable on all platforms that support
4492 # interlibrary dependencies.
4493 # 'none' -- dependencies not supported.
4494 # `unknown' -- same as none, but documents that we really don't know.
4495 # 'pass_all' -- all dependencies passed with no checks.
4496 # 'test_compile' -- check by making test program.
4497 # 'file_magic [[regex]]' -- check by looking for files in library path
4498 # which responds to the $file_magic_cmd with a given extended regex.
4499 # If you have `file' or equivalent on your system and you're not sure
4500 # whether `pass_all' will *always* work, you probably want this one.
4502 case $host_os in
4503 aix4* | aix5*)
4504 lt_cv_deplibs_check_method=pass_all
4507 beos*)
4508 lt_cv_deplibs_check_method=pass_all
4511 bsdi[45]*)
4512 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4513 lt_cv_file_magic_cmd='/usr/bin/file -L'
4514 lt_cv_file_magic_test_file=/shlib/libc.so
4517 cygwin*)
4518 # func_win32_libid is a shell function defined in ltmain.sh
4519 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4520 lt_cv_file_magic_cmd='func_win32_libid'
4523 mingw* | pw32*)
4524 # Base MSYS/MinGW do not provide the 'file' command needed by
4525 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4527 lt_cv_file_magic_cmd='$OBJDUMP -f'
4530 darwin* | rhapsody*)
4531 lt_cv_deplibs_check_method=pass_all
4534 freebsd* | kfreebsd*-gnu | dragonfly*)
4535 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4536 case $host_cpu in
4537 i*86 )
4538 # Not sure whether the presence of OpenBSD here was a mistake.
4539 # Let's accept both of them until this is cleared up.
4540 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4541 lt_cv_file_magic_cmd=/usr/bin/file
4542 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4544 esac
4545 else
4546 lt_cv_deplibs_check_method=pass_all
4550 gnu*)
4551 lt_cv_deplibs_check_method=pass_all
4554 hpux10.20* | hpux11*)
4555 lt_cv_file_magic_cmd=/usr/bin/file
4556 case $host_cpu in
4557 ia64*)
4558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4559 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4561 hppa*64*)
4562 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]'
4563 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4567 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4569 esac
4572 irix5* | irix6* | nonstopux*)
4573 case $LD in
4574 *-32|*"-32 ") libmagic=32-bit;;
4575 *-n32|*"-n32 ") libmagic=N32;;
4576 *-64|*"-64 ") libmagic=64-bit;;
4577 *) libmagic=never-match;;
4578 esac
4579 lt_cv_deplibs_check_method=pass_all
4582 # This must be Linux ELF.
4583 linux*)
4584 lt_cv_deplibs_check_method=pass_all
4587 netbsd*)
4588 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4590 else
4591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4595 newos6*)
4596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4597 lt_cv_file_magic_cmd=/usr/bin/file
4598 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4601 nto-qnx*)
4602 lt_cv_deplibs_check_method=unknown
4605 openbsd*)
4606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4608 else
4609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4613 osf3* | osf4* | osf5*)
4614 lt_cv_deplibs_check_method=pass_all
4617 sco3.2v5*)
4618 lt_cv_deplibs_check_method=pass_all
4621 solaris*)
4622 lt_cv_deplibs_check_method=pass_all
4625 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4626 case $host_vendor in
4627 motorola)
4628 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]'
4629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4631 ncr)
4632 lt_cv_deplibs_check_method=pass_all
4634 sequent)
4635 lt_cv_file_magic_cmd='/bin/file'
4636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4638 sni)
4639 lt_cv_file_magic_cmd='/bin/file'
4640 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4641 lt_cv_file_magic_test_file=/lib/libc.so
4643 siemens)
4644 lt_cv_deplibs_check_method=pass_all
4646 esac
4649 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4650 lt_cv_deplibs_check_method=pass_all
4652 esac
4655 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4656 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4657 file_magic_cmd=$lt_cv_file_magic_cmd
4658 deplibs_check_method=$lt_cv_deplibs_check_method
4659 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4664 # If no C compiler was specified, use CC.
4665 LTCC=${LTCC-"$CC"}
4667 # Allow CC to be a program name with arguments.
4668 compiler=$CC
4671 # Check whether --enable-libtool-lock was given.
4672 if test "${enable_libtool_lock+set}" = set; then
4673 enableval=$enable_libtool_lock;
4676 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4678 # Some flags need to be propagated to the compiler or linker for good
4679 # libtool support.
4680 case $host in
4681 ia64-*-hpux*)
4682 # Find out which ABI we are using.
4683 echo 'int i;' > conftest.$ac_ext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; then
4689 case `/usr/bin/file conftest.$ac_objext` in
4690 *ELF-32*)
4691 HPUX_IA64_MODE="32"
4693 *ELF-64*)
4694 HPUX_IA64_MODE="64"
4696 esac
4698 rm -rf conftest*
4700 *-*-irix6*)
4701 # Find out which ABI we are using.
4702 echo '#line 4702 "configure"' > conftest.$ac_ext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; then
4708 if test "$lt_cv_prog_gnu_ld" = yes; then
4709 case `/usr/bin/file conftest.$ac_objext` in
4710 *32-bit*)
4711 LD="${LD-ld} -melf32bsmip"
4713 *N32*)
4714 LD="${LD-ld} -melf32bmipn32"
4716 *64-bit*)
4717 LD="${LD-ld} -melf64bmip"
4719 esac
4720 else
4721 case `/usr/bin/file conftest.$ac_objext` in
4722 *32-bit*)
4723 LD="${LD-ld} -32"
4725 *N32*)
4726 LD="${LD-ld} -n32"
4728 *64-bit*)
4729 LD="${LD-ld} -64"
4731 esac
4734 rm -rf conftest*
4737 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4738 # Find out which ABI we are using.
4739 echo 'int i;' > conftest.$ac_ext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; then
4745 case `/usr/bin/file conftest.o` in
4746 *32-bit*)
4747 case $host in
4748 x86_64-*linux*)
4749 LD="${LD-ld} -m elf_i386"
4751 ppc64-*linux*|powerpc64-*linux*)
4752 LD="${LD-ld} -m elf32ppclinux"
4754 s390x-*linux*)
4755 LD="${LD-ld} -m elf_s390"
4757 sparc64-*linux*)
4758 LD="${LD-ld} -m elf32_sparc"
4760 esac
4762 *64-bit*)
4763 case $host in
4764 x86_64-*linux*)
4765 LD="${LD-ld} -m elf_x86_64"
4767 ppc*-*linux*|powerpc*-*linux*)
4768 LD="${LD-ld} -m elf64ppc"
4770 s390*-*linux*)
4771 LD="${LD-ld} -m elf64_s390"
4773 sparc*-*linux*)
4774 LD="${LD-ld} -m elf64_sparc"
4776 esac
4778 esac
4780 rm -rf conftest*
4783 *-*-sco3.2v5*)
4784 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4785 SAVE_CFLAGS="$CFLAGS"
4786 CFLAGS="$CFLAGS -belf"
4787 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4788 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4789 if test "${lt_cv_cc_needs_belf+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798 cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h. */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4806 main ()
4810 return 0;
4812 _ACEOF
4813 rm -f conftest.$ac_objext conftest$ac_exeext
4814 if { (ac_try="$ac_link"
4815 case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4818 esac
4819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820 (eval "$ac_link") 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } && {
4827 test -z "$ac_c_werror_flag" ||
4828 test ! -s conftest.err
4829 } && test -s conftest$ac_exeext &&
4830 $as_test_x conftest$ac_exeext; then
4831 lt_cv_cc_needs_belf=yes
4832 else
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 lt_cv_cc_needs_belf=no
4839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4840 conftest$ac_exeext conftest.$ac_ext
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4849 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4850 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4851 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4852 CFLAGS="$SAVE_CFLAGS"
4856 esac
4858 need_locks="$enable_libtool_lock"
4862 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4864 if test "${ac_cv_header_stdc+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <stdlib.h>
4874 #include <stdarg.h>
4875 #include <string.h>
4876 #include <float.h>
4879 main ()
4883 return 0;
4885 _ACEOF
4886 rm -f conftest.$ac_objext
4887 if { (ac_try="$ac_compile"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4903 ac_cv_header_stdc=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_cv_header_stdc=no
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 if test $ac_cv_header_stdc = yes; then
4914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <string.h>
4923 _ACEOF
4924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4925 $EGREP "memchr" >/dev/null 2>&1; then
4927 else
4928 ac_cv_header_stdc=no
4930 rm -f conftest*
4934 if test $ac_cv_header_stdc = yes; then
4935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <stdlib.h>
4944 _ACEOF
4945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946 $EGREP "free" >/dev/null 2>&1; then
4948 else
4949 ac_cv_header_stdc=no
4951 rm -f conftest*
4955 if test $ac_cv_header_stdc = yes; then
4956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4957 if test "$cross_compiling" = yes; then
4959 else
4960 cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 #include <ctype.h>
4967 #include <stdlib.h>
4968 #if ((' ' & 0x0FF) == 0x020)
4969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4971 #else
4972 # define ISLOWER(c) \
4973 (('a' <= (c) && (c) <= 'i') \
4974 || ('j' <= (c) && (c) <= 'r') \
4975 || ('s' <= (c) && (c) <= 'z'))
4976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4977 #endif
4979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4981 main ()
4983 int i;
4984 for (i = 0; i < 256; i++)
4985 if (XOR (islower (i), ISLOWER (i))
4986 || toupper (i) != TOUPPER (i))
4987 return 2;
4988 return 0;
4990 _ACEOF
4991 rm -f conftest$ac_exeext
4992 if { (ac_try="$ac_link"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_link") 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5002 { (case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_try") 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5012 else
5013 echo "$as_me: program exited with status $ac_status" >&5
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 ( exit $ac_status )
5018 ac_cv_header_stdc=no
5020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5026 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5027 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5028 if test $ac_cv_header_stdc = yes; then
5030 cat >>confdefs.h <<\_ACEOF
5031 #define STDC_HEADERS 1
5032 _ACEOF
5036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5047 inttypes.h stdint.h unistd.h
5049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5063 #include <$ac_header>
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (ac_try="$ac_compile"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072 (eval "$ac_compile") 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && {
5079 test -z "$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 } && test -s conftest.$ac_objext; then
5082 eval "$as_ac_Header=yes"
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 eval "$as_ac_Header=no"
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 ac_res=`eval echo '${'$as_ac_Header'}'`
5093 { echo "$as_me:$LINENO: result: $ac_res" >&5
5094 echo "${ECHO_T}$ac_res" >&6; }
5095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5096 cat >>confdefs.h <<_ACEOF
5097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5098 _ACEOF
5102 done
5106 for ac_header in dlfcn.h
5108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 ac_res=`eval echo '${'$as_ac_Header'}'`
5116 { echo "$as_me:$LINENO: result: $ac_res" >&5
5117 echo "${ECHO_T}$ac_res" >&6; }
5118 else
5119 # Is the header compilable?
5120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5129 #include <$ac_header>
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (ac_try="$ac_compile"
5133 case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_compile") 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } && {
5145 test -z "$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 } && test -s conftest.$ac_objext; then
5148 ac_header_compiler=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 ac_header_compiler=no
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5158 echo "${ECHO_T}$ac_header_compiler" >&6; }
5160 # Is the header present?
5161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5163 cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h. */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 #include <$ac_header>
5170 _ACEOF
5171 if { (ac_try="$ac_cpp conftest.$ac_ext"
5172 case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175 esac
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } >/dev/null && {
5184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5185 test ! -s conftest.err
5186 }; then
5187 ac_header_preproc=yes
5188 else
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ac_header_preproc=no
5195 rm -f conftest.err conftest.$ac_ext
5196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5197 echo "${ECHO_T}$ac_header_preproc" >&6; }
5199 # So? What about this header?
5200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5201 yes:no: )
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5206 ac_header_preproc=yes
5208 no:yes:* )
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5223 esac
5224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 eval "$as_ac_Header=\$ac_header_preproc"
5231 ac_res=`eval echo '${'$as_ac_Header'}'`
5232 { echo "$as_me:$LINENO: result: $ac_res" >&5
5233 echo "${ECHO_T}$ac_res" >&6; }
5236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5237 cat >>confdefs.h <<_ACEOF
5238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5239 _ACEOF
5243 done
5245 ac_ext=cpp
5246 ac_cpp='$CXXCPP $CPPFLAGS'
5247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5250 if test -z "$CXX"; then
5251 if test -n "$CCC"; then
5252 CXX=$CCC
5253 else
5254 if test -n "$ac_tool_prefix"; then
5255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5261 if test "${ac_cv_prog_CXX+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263 else
5264 if test -n "$CXX"; then
5265 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5278 done
5279 done
5280 IFS=$as_save_IFS
5284 CXX=$ac_cv_prog_CXX
5285 if test -n "$CXX"; then
5286 { echo "$as_me:$LINENO: result: $CXX" >&5
5287 echo "${ECHO_T}$CXX" >&6; }
5288 else
5289 { echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6; }
5294 test -n "$CXX" && break
5295 done
5297 if test -z "$CXX"; then
5298 ac_ct_CXX=$CXX
5299 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5301 # Extract the first word of "$ac_prog", so it can be a program name with args.
5302 set dummy $ac_prog; ac_word=$2
5303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5305 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 if test -n "$ac_ct_CXX"; then
5309 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_prog_ac_ct_CXX="$ac_prog"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5322 done
5323 done
5324 IFS=$as_save_IFS
5328 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5329 if test -n "$ac_ct_CXX"; then
5330 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5331 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5332 else
5333 { echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6; }
5338 test -n "$ac_ct_CXX" && break
5339 done
5341 if test "x$ac_ct_CXX" = x; then
5342 CXX="g++"
5343 else
5344 case $cross_compiling:$ac_tool_warned in
5345 yes:)
5346 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5347 whose name does not start with the host triplet. If you think this
5348 configuration is useful to you, please write to autoconf@gnu.org." >&5
5349 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5350 whose name does not start with the host triplet. If you think this
5351 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5352 ac_tool_warned=yes ;;
5353 esac
5354 CXX=$ac_ct_CXX
5360 # Provide some information about the compiler.
5361 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5362 ac_compiler=`set X $ac_compile; echo $2`
5363 { (ac_try="$ac_compiler --version >&5"
5364 case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_compiler --version >&5") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }
5373 { (ac_try="$ac_compiler -v >&5"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_compiler -v >&5") 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }
5383 { (ac_try="$ac_compiler -V >&5"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compiler -V >&5") 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }
5394 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5395 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5396 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399 cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h. */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5407 main ()
5409 #ifndef __GNUC__
5410 choke me
5411 #endif
5414 return 0;
5416 _ACEOF
5417 rm -f conftest.$ac_objext
5418 if { (ac_try="$ac_compile"
5419 case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_compile") 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } && {
5431 test -z "$ac_cxx_werror_flag" ||
5432 test ! -s conftest.err
5433 } && test -s conftest.$ac_objext; then
5434 ac_compiler_gnu=yes
5435 else
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 ac_compiler_gnu=no
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5446 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5447 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5448 GXX=`test $ac_compiler_gnu = yes && echo yes`
5449 ac_test_CXXFLAGS=${CXXFLAGS+set}
5450 ac_save_CXXFLAGS=$CXXFLAGS
5451 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5452 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5453 if test "${ac_cv_prog_cxx_g+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5457 ac_cxx_werror_flag=yes
5458 ac_cv_prog_cxx_g=no
5459 CXXFLAGS="-g"
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5468 main ()
5472 return 0;
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_cxx_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.$ac_objext; then
5492 ac_cv_prog_cxx_g=yes
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 CXXFLAGS=""
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5506 main ()
5510 return 0;
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && {
5527 test -z "$ac_cxx_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5536 CXXFLAGS="-g"
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5545 main ()
5549 return 0;
5551 _ACEOF
5552 rm -f conftest.$ac_objext
5553 if { (ac_try="$ac_compile"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_compile") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_cxx_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest.$ac_objext; then
5569 ac_cv_prog_cxx_g=yes
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5586 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5587 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5588 if test "$ac_test_CXXFLAGS" = set; then
5589 CXXFLAGS=$ac_save_CXXFLAGS
5590 elif test $ac_cv_prog_cxx_g = yes; then
5591 if test "$GXX" = yes; then
5592 CXXFLAGS="-g -O2"
5593 else
5594 CXXFLAGS="-g"
5596 else
5597 if test "$GXX" = yes; then
5598 CXXFLAGS="-O2"
5599 else
5600 CXXFLAGS=
5603 ac_ext=cpp
5604 ac_cpp='$CXXCPP $CPPFLAGS'
5605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5609 depcc="$CXX" am_compiler_list=
5611 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5612 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5613 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5617 # We make a subdir and do the tests there. Otherwise we can end up
5618 # making bogus files that we don't know about and never remove. For
5619 # instance it was reported that on HP-UX the gcc test will end up
5620 # making a dummy file named `D' -- because `-MD' means `put the output
5621 # in D'.
5622 mkdir conftest.dir
5623 # Copy depcomp to subdir because otherwise we won't find it if we're
5624 # using a relative directory.
5625 cp "$am_depcomp" conftest.dir
5626 cd conftest.dir
5627 # We will build objects and dependencies in a subdirectory because
5628 # it helps to detect inapplicable dependency modes. For instance
5629 # both Tru64's cc and ICC support -MD to output dependencies as a
5630 # side effect of compilation, but ICC will put the dependencies in
5631 # the current directory while Tru64 will put them in the object
5632 # directory.
5633 mkdir sub
5635 am_cv_CXX_dependencies_compiler_type=none
5636 if test "$am_compiler_list" = ""; then
5637 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5639 for depmode in $am_compiler_list; do
5640 # Setup a source with many dependencies, because some compilers
5641 # like to wrap large dependency lists on column 80 (with \), and
5642 # we should not choose a depcomp mode which is confused by this.
5644 # We need to recreate these files for each test, as the compiler may
5645 # overwrite some of them when testing with obscure command lines.
5646 # This happens at least with the AIX C compiler.
5647 : > sub/conftest.c
5648 for i in 1 2 3 4 5 6; do
5649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5650 : > sub/conftst$i.h
5651 done
5652 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5654 case $depmode in
5655 nosideeffect)
5656 # after this tag, mechanisms are not by side-effect, so they'll
5657 # only be used when explicitly requested
5658 if test "x$enable_dependency_tracking" = xyes; then
5659 continue
5660 else
5661 break
5664 none) break ;;
5665 esac
5666 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5667 # mode. It turns out that the SunPro C++ compiler does not properly
5668 # handle `-M -o', and we need to detect this.
5669 if depmode=$depmode \
5670 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5672 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5673 >/dev/null 2>conftest.err &&
5674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5675 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5677 # icc doesn't choke on unknown options, it will just issue warnings
5678 # (even with -Werror). So we grep stderr for any message
5679 # that says an option was ignored.
5680 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5681 am_cv_CXX_dependencies_compiler_type=$depmode
5682 break
5685 done
5687 cd ..
5688 rm -rf conftest.dir
5689 else
5690 am_cv_CXX_dependencies_compiler_type=none
5694 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5695 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5696 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5701 test "x$enable_dependency_tracking" != xno \
5702 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5703 am__fastdepCXX_TRUE=
5704 am__fastdepCXX_FALSE='#'
5705 else
5706 am__fastdepCXX_TRUE='#'
5707 am__fastdepCXX_FALSE=
5713 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5714 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5715 (test "X$CXX" != "Xg++"))) ; then
5716 ac_ext=cpp
5717 ac_cpp='$CXXCPP $CPPFLAGS'
5718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5721 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5722 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5723 if test -z "$CXXCPP"; then
5724 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 # Double quotes because CXXCPP needs to be expanded
5728 for CXXCPP in "$CXX -E" "/lib/cpp"
5730 ac_preproc_ok=false
5731 for ac_cxx_preproc_warn_flag in '' yes
5733 # Use a header file that comes with gcc, so configuring glibc
5734 # with a fresh cross-compiler works.
5735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736 # <limits.h> exists even on freestanding compilers.
5737 # On the NeXT, cc -E runs the code through the compiler's parser,
5738 # not just through cpp. "Syntax error" is here to catch this case.
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #ifdef __STDC__
5746 # include <limits.h>
5747 #else
5748 # include <assert.h>
5749 #endif
5750 Syntax error
5751 _ACEOF
5752 if { (ac_try="$ac_cpp conftest.$ac_ext"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } >/dev/null && {
5765 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5767 }; then
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 # Broken: fails on valid input.
5774 continue
5777 rm -f conftest.err conftest.$ac_ext
5779 # OK, works on sane cases. Now check whether nonexistent headers
5780 # can be detected and how.
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 #include <ac_nonexistent.h>
5788 _ACEOF
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null && {
5802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5803 test ! -s conftest.err
5804 }; then
5805 # Broken: success on invalid input.
5806 continue
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 # Passes both tests.
5812 ac_preproc_ok=:
5813 break
5816 rm -f conftest.err conftest.$ac_ext
5818 done
5819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 rm -f conftest.err conftest.$ac_ext
5821 if $ac_preproc_ok; then
5822 break
5825 done
5826 ac_cv_prog_CXXCPP=$CXXCPP
5829 CXXCPP=$ac_cv_prog_CXXCPP
5830 else
5831 ac_cv_prog_CXXCPP=$CXXCPP
5833 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5834 echo "${ECHO_T}$CXXCPP" >&6; }
5835 ac_preproc_ok=false
5836 for ac_cxx_preproc_warn_flag in '' yes
5838 # Use a header file that comes with gcc, so configuring glibc
5839 # with a fresh cross-compiler works.
5840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5841 # <limits.h> exists even on freestanding compilers.
5842 # On the NeXT, cc -E runs the code through the compiler's parser,
5843 # not just through cpp. "Syntax error" is here to catch this case.
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #ifdef __STDC__
5851 # include <limits.h>
5852 #else
5853 # include <assert.h>
5854 #endif
5855 Syntax error
5856 _ACEOF
5857 if { (ac_try="$ac_cpp conftest.$ac_ext"
5858 case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } >/dev/null && {
5870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5871 test ! -s conftest.err
5872 }; then
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 # Broken: fails on valid input.
5879 continue
5882 rm -f conftest.err conftest.$ac_ext
5884 # OK, works on sane cases. Now check whether nonexistent headers
5885 # can be detected and how.
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #include <ac_nonexistent.h>
5893 _ACEOF
5894 if { (ac_try="$ac_cpp conftest.$ac_ext"
5895 case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } >/dev/null && {
5907 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5908 test ! -s conftest.err
5909 }; then
5910 # Broken: success on invalid input.
5911 continue
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 # Passes both tests.
5917 ac_preproc_ok=:
5918 break
5921 rm -f conftest.err conftest.$ac_ext
5923 done
5924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5925 rm -f conftest.err conftest.$ac_ext
5926 if $ac_preproc_ok; then
5928 else
5929 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5930 See \`config.log' for more details." >&5
5931 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5932 See \`config.log' for more details." >&2;}
5933 { (exit 1); exit 1; }; }
5936 ac_ext=cpp
5937 ac_cpp='$CXXCPP $CPPFLAGS'
5938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5945 ac_ext=f
5946 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5947 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5949 if test -n "$ac_tool_prefix"; then
5950 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
5952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5956 if test "${ac_cv_prog_F77+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959 if test -n "$F77"; then
5960 ac_cv_prog_F77="$F77" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5965 IFS=$as_save_IFS
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5969 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5973 done
5974 done
5975 IFS=$as_save_IFS
5979 F77=$ac_cv_prog_F77
5980 if test -n "$F77"; then
5981 { echo "$as_me:$LINENO: result: $F77" >&5
5982 echo "${ECHO_T}$F77" >&6; }
5983 else
5984 { echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6; }
5989 test -n "$F77" && break
5990 done
5992 if test -z "$F77"; then
5993 ac_ct_F77=$F77
5994 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
5996 # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy $ac_prog; ac_word=$2
5998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6000 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003 if test -n "$ac_ct_F77"; then
6004 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_F77="$ac_prog"
6014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6017 done
6018 done
6019 IFS=$as_save_IFS
6023 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6024 if test -n "$ac_ct_F77"; then
6025 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6026 echo "${ECHO_T}$ac_ct_F77" >&6; }
6027 else
6028 { echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6; }
6033 test -n "$ac_ct_F77" && break
6034 done
6036 if test "x$ac_ct_F77" = x; then
6037 F77=""
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6042 whose name does not start with the host triplet. If you think this
6043 configuration is useful to you, please write to autoconf@gnu.org." >&5
6044 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6045 whose name does not start with the host triplet. If you think this
6046 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6047 ac_tool_warned=yes ;;
6048 esac
6049 F77=$ac_ct_F77
6054 # Provide some information about the compiler.
6055 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6056 ac_compiler=`set X $ac_compile; echo $2`
6057 { (ac_try="$ac_compiler --version >&5"
6058 case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061 esac
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_compiler --version >&5") 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }
6067 { (ac_try="$ac_compiler -v >&5"
6068 case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_compiler -v >&5") 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }
6077 { (ac_try="$ac_compiler -V >&5"
6078 case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081 esac
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_compiler -V >&5") 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }
6087 rm -f a.out
6089 # If we don't use `.F' as extension, the preprocessor is not run on the
6090 # input file. (Note that this only needs to work for GNU compilers.)
6091 ac_save_ext=$ac_ext
6092 ac_ext=F
6093 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6094 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6095 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 cat >conftest.$ac_ext <<_ACEOF
6099 program main
6100 #ifndef __GNUC__
6101 choke me
6102 #endif
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6108 case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_f77_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.$ac_objext; then
6123 ac_compiler_gnu=yes
6124 else
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6128 ac_compiler_gnu=no
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6135 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6136 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6137 ac_ext=$ac_save_ext
6138 ac_test_FFLAGS=${FFLAGS+set}
6139 ac_save_FFLAGS=$FFLAGS
6140 FFLAGS=
6141 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6142 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_f77_g+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 FFLAGS=-g
6147 cat >conftest.$ac_ext <<_ACEOF
6148 program main
6151 _ACEOF
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6154 case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_f77_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6169 ac_cv_prog_f77_g=yes
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 ac_cv_prog_f77_g=no
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6181 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6182 if test "$ac_test_FFLAGS" = set; then
6183 FFLAGS=$ac_save_FFLAGS
6184 elif test $ac_cv_prog_f77_g = yes; then
6185 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6186 FFLAGS="-g -O2"
6187 else
6188 FFLAGS="-g"
6190 else
6191 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6192 FFLAGS="-O2"
6193 else
6194 FFLAGS=
6198 G77=`test $ac_compiler_gnu = yes && echo yes`
6199 ac_ext=c
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6209 # find the maximum length of command line arguments
6210 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6211 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6212 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6216 teststring="ABCD"
6218 case $build_os in
6219 msdosdjgpp*)
6220 # On DJGPP, this test can blow up pretty badly due to problems in libc
6221 # (any single argument exceeding 2000 bytes causes a buffer overrun
6222 # during glob expansion). Even if it were fixed, the result of this
6223 # check would be larger than it should be.
6224 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6227 gnu*)
6228 # Under GNU Hurd, this test is not required because there is
6229 # no limit to the length of command line arguments.
6230 # Libtool will interpret -1 as no limit whatsoever
6231 lt_cv_sys_max_cmd_len=-1;
6234 cygwin* | mingw*)
6235 # On Win9x/ME, this test blows up -- it succeeds, but takes
6236 # about 5 minutes as the teststring grows exponentially.
6237 # Worse, since 9x/ME are not pre-emptively multitasking,
6238 # you end up with a "frozen" computer, even though with patience
6239 # the test eventually succeeds (with a max line length of 256k).
6240 # Instead, let's just punt: use the minimum linelength reported by
6241 # all of the supported platforms: 8192 (on NT/2K/XP).
6242 lt_cv_sys_max_cmd_len=8192;
6245 amigaos*)
6246 # On AmigaOS with pdksh, this test takes hours, literally.
6247 # So we just punt and use a minimum line length of 8192.
6248 lt_cv_sys_max_cmd_len=8192;
6251 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6252 # This has been around since 386BSD, at least. Likely further.
6253 if test -x /sbin/sysctl; then
6254 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6255 elif test -x /usr/sbin/sysctl; then
6256 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6257 else
6258 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6260 # And add a safety zone
6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6264 osf*)
6265 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6266 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6267 # nice to cause kernel panics so lets avoid the loop below.
6268 # First set a reasonable default.
6269 lt_cv_sys_max_cmd_len=16384
6271 if test -x /sbin/sysconfig; then
6272 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6273 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6274 esac
6278 # If test is not a shell built-in, we'll probably end up computing a
6279 # maximum length that is only half of the actual maximum length, but
6280 # we can't tell.
6281 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6282 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6283 = "XX$teststring") >/dev/null 2>&1 &&
6284 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6285 lt_cv_sys_max_cmd_len=$new_result &&
6286 test $i != 17 # 1/2 MB should be enough
6288 i=`expr $i + 1`
6289 teststring=$teststring$teststring
6290 done
6291 teststring=
6292 # Add a significant safety factor because C++ compilers can tack on massive
6293 # amounts of additional arguments before passing them to the linker.
6294 # It appears as though 1/2 is a usable value.
6295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6297 esac
6301 if test -n $lt_cv_sys_max_cmd_len ; then
6302 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6303 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6304 else
6305 { echo "$as_me:$LINENO: result: none" >&5
6306 echo "${ECHO_T}none" >&6; }
6312 # Check for command to grab the raw symbol name followed by C symbol from nm.
6313 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6314 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6315 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6319 # These are sane defaults that work on at least a few old systems.
6320 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6322 # Character class describing NM global symbol codes.
6323 symcode='[BCDEGRST]'
6325 # Regexp to match symbols that can be accessed directly from C.
6326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6328 # Transform an extracted symbol line into a proper C declaration
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6331 # Transform an extracted symbol line into symbol name and symbol address
6332 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'"
6334 # Define system-specific variables.
6335 case $host_os in
6336 aix*)
6337 symcode='[BCDT]'
6339 cygwin* | mingw* | pw32*)
6340 symcode='[ABCDGISTW]'
6342 hpux*) # Its linker distinguishes data from code symbols
6343 if test "$host_cpu" = ia64; then
6344 symcode='[ABCDEGRST]'
6346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6347 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'"
6349 linux*)
6350 if test "$host_cpu" = ia64; then
6351 symcode='[ABCDGIRSTW]'
6352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6353 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'"
6356 irix* | nonstopux*)
6357 symcode='[BCDEGRST]'
6359 osf*)
6360 symcode='[BCDEGQRST]'
6362 solaris* | sysv5*)
6363 symcode='[BDRT]'
6365 sysv4)
6366 symcode='[DFNSTU]'
6368 esac
6370 # Handle CRLF in mingw tool chain
6371 opt_cr=
6372 case $build_os in
6373 mingw*)
6374 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6376 esac
6378 # If we're using GNU nm, then use its standard symbol codes.
6379 case `$NM -V 2>&1` in
6380 *GNU* | *'with BFD'*)
6381 symcode='[ABCDGIRSTW]' ;;
6382 esac
6384 # Try without a prefix undercore, then with it.
6385 for ac_symprfx in "" "_"; do
6387 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6388 symxfrm="\\1 $ac_symprfx\\2 \\2"
6390 # Write the raw and C identifiers.
6391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6393 # Check to see that the pipe works correctly.
6394 pipe_works=no
6396 rm -f conftest*
6397 cat > conftest.$ac_ext <<EOF
6398 #ifdef __cplusplus
6399 extern "C" {
6400 #endif
6401 char nm_test_var;
6402 void nm_test_func(){}
6403 #ifdef __cplusplus
6405 #endif
6406 int main(){nm_test_var='a';nm_test_func();return(0);}
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; then
6414 # Now try to grab the symbols.
6415 nlist=conftest.nm
6416 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6417 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && test -s "$nlist"; then
6421 # Try sorting and uniquifying the output.
6422 if sort "$nlist" | uniq > "$nlist"T; then
6423 mv -f "$nlist"T "$nlist"
6424 else
6425 rm -f "$nlist"T
6428 # Make sure that we snagged all the symbols we need.
6429 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6430 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6431 cat <<EOF > conftest.$ac_ext
6432 #ifdef __cplusplus
6433 extern "C" {
6434 #endif
6437 # Now generate the symbol file.
6438 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6440 cat <<EOF >> conftest.$ac_ext
6441 #if defined (__STDC__) && __STDC__
6442 # define lt_ptr_t void *
6443 #else
6444 # define lt_ptr_t char *
6445 # define const
6446 #endif
6448 /* The mapping between symbol names and symbols. */
6449 const struct {
6450 const char *name;
6451 lt_ptr_t address;
6453 lt_preloaded_symbols[] =
6456 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6457 cat <<\EOF >> conftest.$ac_ext
6458 {0, (lt_ptr_t) 0}
6461 #ifdef __cplusplus
6463 #endif
6465 # Now try linking the two files.
6466 mv conftest.$ac_objext conftstm.$ac_objext
6467 lt_save_LIBS="$LIBS"
6468 lt_save_CFLAGS="$CFLAGS"
6469 LIBS="conftstm.$ac_objext"
6470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472 (eval $ac_link) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6476 pipe_works=yes
6478 LIBS="$lt_save_LIBS"
6479 CFLAGS="$lt_save_CFLAGS"
6480 else
6481 echo "cannot find nm_test_func in $nlist" >&5
6483 else
6484 echo "cannot find nm_test_var in $nlist" >&5
6486 else
6487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6489 else
6490 echo "$progname: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 rm -f conftest* conftst*
6495 # Do not use the global_symbol_pipe unless it works.
6496 if test "$pipe_works" = yes; then
6497 break
6498 else
6499 lt_cv_sys_global_symbol_pipe=
6501 done
6505 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6506 lt_cv_sys_global_symbol_to_cdecl=
6508 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6509 { echo "$as_me:$LINENO: result: failed" >&5
6510 echo "${ECHO_T}failed" >&6; }
6511 else
6512 { echo "$as_me:$LINENO: result: ok" >&5
6513 echo "${ECHO_T}ok" >&6; }
6516 { echo "$as_me:$LINENO: checking for objdir" >&5
6517 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6518 if test "${lt_cv_objdir+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 rm -f .libs 2>/dev/null
6522 mkdir .libs 2>/dev/null
6523 if test -d .libs; then
6524 lt_cv_objdir=.libs
6525 else
6526 # MS-DOS does not allow filenames that begin with a dot.
6527 lt_cv_objdir=_libs
6529 rmdir .libs 2>/dev/null
6531 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6532 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6533 objdir=$lt_cv_objdir
6539 case $host_os in
6540 aix3*)
6541 # AIX sometimes has problems with the GCC collect2 program. For some
6542 # reason, if we set the COLLECT_NAMES environment variable, the problems
6543 # vanish in a puff of smoke.
6544 if test "X${COLLECT_NAMES+set}" != Xset; then
6545 COLLECT_NAMES=
6546 export COLLECT_NAMES
6549 esac
6551 # Sed substitution that helps us do robust quoting. It backslashifies
6552 # metacharacters that are still active within double-quoted strings.
6553 Xsed='sed -e 1s/^X//'
6554 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6556 # Same as above, but do not quote variable references.
6557 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6559 # Sed substitution to delay expansion of an escaped shell variable in a
6560 # double_quote_subst'ed string.
6561 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6563 # Sed substitution to avoid accidental globbing in evaled expressions
6564 no_glob_subst='s/\*/\\\*/g'
6566 # Constants:
6567 rm="rm -f"
6569 # Global variables:
6570 default_ofile=libtool
6571 can_build_shared=yes
6573 # All known linkers require a `.a' archive for static linking (except MSVC,
6574 # which needs '.lib').
6575 libext=a
6576 ltmain="$ac_aux_dir/ltmain.sh"
6577 ofile="$default_ofile"
6578 with_gnu_ld="$lt_cv_prog_gnu_ld"
6580 if test -n "$ac_tool_prefix"; then
6581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6582 set dummy ${ac_tool_prefix}ar; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_prog_AR+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 if test -n "$AR"; then
6589 ac_cv_prog_AR="$AR" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_prog_AR="${ac_tool_prefix}ar"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6602 done
6603 done
6604 IFS=$as_save_IFS
6608 AR=$ac_cv_prog_AR
6609 if test -n "$AR"; then
6610 { echo "$as_me:$LINENO: result: $AR" >&5
6611 echo "${ECHO_T}$AR" >&6; }
6612 else
6613 { echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6; }
6619 if test -z "$ac_cv_prog_AR"; then
6620 ac_ct_AR=$AR
6621 # Extract the first word of "ar", so it can be a program name with args.
6622 set dummy ar; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 if test -n "$ac_ct_AR"; then
6629 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_prog_ac_ct_AR="ar"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6642 done
6643 done
6644 IFS=$as_save_IFS
6648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6649 if test -n "$ac_ct_AR"; then
6650 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6651 echo "${ECHO_T}$ac_ct_AR" >&6; }
6652 else
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6657 if test "x$ac_ct_AR" = x; then
6658 AR="false"
6659 else
6660 case $cross_compiling:$ac_tool_warned in
6661 yes:)
6662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6663 whose name does not start with the host triplet. If you think this
6664 configuration is useful to you, please write to autoconf@gnu.org." >&5
6665 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6666 whose name does not start with the host triplet. If you think this
6667 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6668 ac_tool_warned=yes ;;
6669 esac
6670 AR=$ac_ct_AR
6672 else
6673 AR="$ac_cv_prog_AR"
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_RANLIB+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 if test -n "$RANLIB"; then
6685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6698 done
6699 done
6700 IFS=$as_save_IFS
6704 RANLIB=$ac_cv_prog_RANLIB
6705 if test -n "$RANLIB"; then
6706 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6707 echo "${ECHO_T}$RANLIB" >&6; }
6708 else
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6715 if test -z "$ac_cv_prog_RANLIB"; then
6716 ac_ct_RANLIB=$RANLIB
6717 # Extract the first word of "ranlib", so it can be a program name with args.
6718 set dummy ranlib; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 if test -n "$ac_ct_RANLIB"; then
6725 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_RANLIB="ranlib"
6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6745 if test -n "$ac_ct_RANLIB"; then
6746 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6747 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6748 else
6749 { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6753 if test "x$ac_ct_RANLIB" = x; then
6754 RANLIB=":"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6759 whose name does not start with the host triplet. If you think this
6760 configuration is useful to you, please write to autoconf@gnu.org." >&5
6761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet. If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6764 ac_tool_warned=yes ;;
6765 esac
6766 RANLIB=$ac_ct_RANLIB
6768 else
6769 RANLIB="$ac_cv_prog_RANLIB"
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}strip; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_prog_STRIP+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 if test -n "$STRIP"; then
6781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6794 done
6795 done
6796 IFS=$as_save_IFS
6800 STRIP=$ac_cv_prog_STRIP
6801 if test -n "$STRIP"; then
6802 { echo "$as_me:$LINENO: result: $STRIP" >&5
6803 echo "${ECHO_T}$STRIP" >&6; }
6804 else
6805 { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6811 if test -z "$ac_cv_prog_STRIP"; then
6812 ac_ct_STRIP=$STRIP
6813 # Extract the first word of "strip", so it can be a program name with args.
6814 set dummy strip; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 if test -n "$ac_ct_STRIP"; then
6821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_ac_ct_STRIP="strip"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6834 done
6835 done
6836 IFS=$as_save_IFS
6840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6841 if test -n "$ac_ct_STRIP"; then
6842 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6843 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6844 else
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6849 if test "x$ac_ct_STRIP" = x; then
6850 STRIP=":"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6855 whose name does not start with the host triplet. If you think this
6856 configuration is useful to you, please write to autoconf@gnu.org." >&5
6857 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6858 whose name does not start with the host triplet. If you think this
6859 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862 STRIP=$ac_ct_STRIP
6864 else
6865 STRIP="$ac_cv_prog_STRIP"
6869 old_CC="$CC"
6870 old_CFLAGS="$CFLAGS"
6872 # Set sane defaults for various variables
6873 test -z "$AR" && AR=ar
6874 test -z "$AR_FLAGS" && AR_FLAGS=cru
6875 test -z "$AS" && AS=as
6876 test -z "$CC" && CC=cc
6877 test -z "$LTCC" && LTCC=$CC
6878 test -z "$DLLTOOL" && DLLTOOL=dlltool
6879 test -z "$LD" && LD=ld
6880 test -z "$LN_S" && LN_S="ln -s"
6881 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6882 test -z "$NM" && NM=nm
6883 test -z "$SED" && SED=sed
6884 test -z "$OBJDUMP" && OBJDUMP=objdump
6885 test -z "$RANLIB" && RANLIB=:
6886 test -z "$STRIP" && STRIP=:
6887 test -z "$ac_objext" && ac_objext=o
6889 # Determine commands to create old-style static archives.
6890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6891 old_postinstall_cmds='chmod 644 $oldlib'
6892 old_postuninstall_cmds=
6894 if test -n "$RANLIB"; then
6895 case $host_os in
6896 openbsd*)
6897 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6900 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6902 esac
6903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6906 for cc_temp in $compiler""; do
6907 case $cc_temp in
6908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6910 \-*) ;;
6911 *) break;;
6912 esac
6913 done
6914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6917 # Only perform the check for file, if the check method requires it
6918 case $deplibs_check_method in
6919 file_magic*)
6920 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6921 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6922 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6923 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 case $MAGIC_CMD in
6927 [\\/*] | ?:[\\/]*)
6928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6931 lt_save_MAGIC_CMD="$MAGIC_CMD"
6932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6934 for ac_dir in $ac_dummy; do
6935 IFS="$lt_save_ifs"
6936 test -z "$ac_dir" && ac_dir=.
6937 if test -f $ac_dir/${ac_tool_prefix}file; then
6938 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6939 if test -n "$file_magic_test_file"; then
6940 case $deplibs_check_method in
6941 "file_magic "*)
6942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6945 $EGREP "$file_magic_regex" > /dev/null; then
6947 else
6948 cat <<EOF 1>&2
6950 *** Warning: the command libtool uses to detect shared libraries,
6951 *** $file_magic_cmd, produces output that libtool cannot recognize.
6952 *** The result is that libtool may fail to recognize shared libraries
6953 *** as such. This will affect the creation of libtool libraries that
6954 *** depend on shared libraries, but programs linked with such libtool
6955 *** libraries will work regardless of this problem. Nevertheless, you
6956 *** may want to report the problem to your system manager and/or to
6957 *** bug-libtool@gnu.org
6960 fi ;;
6961 esac
6963 break
6965 done
6966 IFS="$lt_save_ifs"
6967 MAGIC_CMD="$lt_save_MAGIC_CMD"
6969 esac
6972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6973 if test -n "$MAGIC_CMD"; then
6974 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6975 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6976 else
6977 { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6981 if test -z "$lt_cv_path_MAGIC_CMD"; then
6982 if test -n "$ac_tool_prefix"; then
6983 { echo "$as_me:$LINENO: checking for file" >&5
6984 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6985 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988 case $MAGIC_CMD in
6989 [\\/*] | ?:[\\/]*)
6990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6993 lt_save_MAGIC_CMD="$MAGIC_CMD"
6994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6996 for ac_dir in $ac_dummy; do
6997 IFS="$lt_save_ifs"
6998 test -z "$ac_dir" && ac_dir=.
6999 if test -f $ac_dir/file; then
7000 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7001 if test -n "$file_magic_test_file"; then
7002 case $deplibs_check_method in
7003 "file_magic "*)
7004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7007 $EGREP "$file_magic_regex" > /dev/null; then
7009 else
7010 cat <<EOF 1>&2
7012 *** Warning: the command libtool uses to detect shared libraries,
7013 *** $file_magic_cmd, produces output that libtool cannot recognize.
7014 *** The result is that libtool may fail to recognize shared libraries
7015 *** as such. This will affect the creation of libtool libraries that
7016 *** depend on shared libraries, but programs linked with such libtool
7017 *** libraries will work regardless of this problem. Nevertheless, you
7018 *** may want to report the problem to your system manager and/or to
7019 *** bug-libtool@gnu.org
7022 fi ;;
7023 esac
7025 break
7027 done
7028 IFS="$lt_save_ifs"
7029 MAGIC_CMD="$lt_save_MAGIC_CMD"
7031 esac
7034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7035 if test -n "$MAGIC_CMD"; then
7036 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7037 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7038 else
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7043 else
7044 MAGIC_CMD=:
7050 esac
7052 enable_dlopen=no
7053 enable_win32_dll=no
7055 # Check whether --enable-libtool-lock was given.
7056 if test "${enable_libtool_lock+set}" = set; then
7057 enableval=$enable_libtool_lock;
7060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7063 # Check whether --with-pic was given.
7064 if test "${with_pic+set}" = set; then
7065 withval=$with_pic; pic_mode="$withval"
7066 else
7067 pic_mode=default
7070 test -z "$pic_mode" && pic_mode=default
7072 # Use C for the default configuration in the libtool script
7073 tagname=
7074 lt_save_CC="$CC"
7075 ac_ext=c
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082 # Source file extension for C test sources.
7083 ac_ext=c
7085 # Object file extension for compiled C test sources.
7086 objext=o
7087 objext=$objext
7089 # Code to be used in simple compile tests
7090 lt_simple_compile_test_code="int some_variable = 0;\n"
7092 # Code to be used in simple link tests
7093 lt_simple_link_test_code='int main(){return(0);}\n'
7096 # If no C compiler was specified, use CC.
7097 LTCC=${LTCC-"$CC"}
7099 # Allow CC to be a program name with arguments.
7100 compiler=$CC
7103 # save warnings/boilerplate of simple test code
7104 ac_outfile=conftest.$ac_objext
7105 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7106 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7107 _lt_compiler_boilerplate=`cat conftest.err`
7108 $rm conftest*
7110 ac_outfile=conftest.$ac_objext
7111 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7112 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7113 _lt_linker_boilerplate=`cat conftest.err`
7114 $rm conftest*
7118 # Check for any special shared library compilation flags.
7120 lt_prog_cc_shlib=
7121 if test "$GCC" = no; then
7122 case $host_os in
7123 sco3.2v5*)
7124 lt_prog_cc_shlib='-belf'
7126 esac
7128 if test -n "$lt_prog_cc_shlib"; then
7129 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7130 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7131 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7132 else
7133 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7134 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7135 lt_cv_prog_cc_can_build_shared=no
7141 # Check to make sure the static flag actually works.
7143 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7144 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7145 if test "${lt_prog_compiler_static_works+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148 lt_prog_compiler_static_works=no
7149 save_LDFLAGS="$LDFLAGS"
7150 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7151 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7152 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7153 # The linker can only warn and ignore the option if not recognized
7154 # So say no if there are warnings
7155 if test -s conftest.err; then
7156 # Append any errors to the config.log.
7157 cat conftest.err 1>&5
7158 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7159 $SED '/^$/d' conftest.err >conftest.er2
7160 if diff conftest.exp conftest.er2 >/dev/null; then
7161 lt_prog_compiler_static_works=yes
7163 else
7164 lt_prog_compiler_static_works=yes
7167 $rm conftest*
7168 LDFLAGS="$save_LDFLAGS"
7171 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7172 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7174 if test x"$lt_prog_compiler_static_works" = xyes; then
7176 else
7177 lt_prog_compiler_static=
7183 lt_prog_compiler_no_builtin_flag=
7185 if test "$GCC" = yes; then
7186 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7189 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7190 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7191 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 lt_cv_prog_compiler_rtti_exceptions=no
7195 ac_outfile=conftest.$ac_objext
7196 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7197 lt_compiler_flag="-fno-rtti -fno-exceptions"
7198 # Insert the option either (1) after the last *FLAGS variable, or
7199 # (2) before a word containing "conftest.", or (3) at the end.
7200 # Note that $ac_compile itself does not contain backslashes and begins
7201 # with a dollar sign (not a hyphen), so the echo should work correctly.
7202 # The option is referenced via a variable to avoid confusing sed.
7203 lt_compile=`echo "$ac_compile" | $SED \
7204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7206 -e 's:$: $lt_compiler_flag:'`
7207 (eval echo "\"\$as_me:7207: $lt_compile\"" >&5)
7208 (eval "$lt_compile" 2>conftest.err)
7209 ac_status=$?
7210 cat conftest.err >&5
7211 echo "$as_me:7211: \$? = $ac_status" >&5
7212 if (exit $ac_status) && test -s "$ac_outfile"; then
7213 # The compiler can only warn and ignore the option if not recognized
7214 # So say no if there are warnings other than the usual output.
7215 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7216 $SED '/^$/d' conftest.err >conftest.er2
7217 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7218 lt_cv_prog_compiler_rtti_exceptions=yes
7221 $rm conftest*
7224 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7225 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7227 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7228 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7229 else
7235 lt_prog_compiler_wl=
7236 lt_prog_compiler_pic=
7237 lt_prog_compiler_static=
7239 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7240 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7242 if test "$GCC" = yes; then
7243 lt_prog_compiler_wl='-Wl,'
7244 lt_prog_compiler_static='-static'
7246 case $host_os in
7247 aix*)
7248 # All AIX code is PIC.
7249 if test "$host_cpu" = ia64; then
7250 # AIX 5 now supports IA64 processor
7251 lt_prog_compiler_static='-Bstatic'
7255 amigaos*)
7256 # FIXME: we need at least 68020 code to build shared libraries, but
7257 # adding the `-m68020' flag to GCC prevents building anything better,
7258 # like `-m68040'.
7259 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7262 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7263 # PIC is the default for these OSes.
7266 mingw* | pw32* | os2*)
7267 # This hack is so that the source file can tell whether it is being
7268 # built for inclusion in a dll (and should export symbols for example).
7269 lt_prog_compiler_pic='-DDLL_EXPORT'
7272 darwin* | rhapsody*)
7273 # PIC is the default on this platform
7274 # Common symbols not allowed in MH_DYLIB files
7275 lt_prog_compiler_pic='-fno-common'
7278 msdosdjgpp*)
7279 # Just because we use GCC doesn't mean we suddenly get shared libraries
7280 # on systems that don't support them.
7281 lt_prog_compiler_can_build_shared=no
7282 enable_shared=no
7285 sysv4*MP*)
7286 if test -d /usr/nec; then
7287 lt_prog_compiler_pic=-Kconform_pic
7291 hpux*)
7292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7293 # not for PA HP-UX.
7294 case $host_cpu in
7295 hppa*64*|ia64*)
7296 # +Z the default
7299 lt_prog_compiler_pic='-fPIC'
7301 esac
7305 lt_prog_compiler_pic='-fPIC'
7307 esac
7308 else
7309 # PORTME Check for flag to pass linker flags through the system compiler.
7310 case $host_os in
7311 aix*)
7312 lt_prog_compiler_wl='-Wl,'
7313 if test "$host_cpu" = ia64; then
7314 # AIX 5 now supports IA64 processor
7315 lt_prog_compiler_static='-Bstatic'
7316 else
7317 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7320 darwin*)
7321 # PIC is the default on this platform
7322 # Common symbols not allowed in MH_DYLIB files
7323 case $cc_basename in
7324 xlc*)
7325 lt_prog_compiler_pic='-qnocommon'
7326 lt_prog_compiler_wl='-Wl,'
7328 esac
7331 mingw* | pw32* | os2*)
7332 # This hack is so that the source file can tell whether it is being
7333 # built for inclusion in a dll (and should export symbols for example).
7334 lt_prog_compiler_pic='-DDLL_EXPORT'
7337 hpux9* | hpux10* | hpux11*)
7338 lt_prog_compiler_wl='-Wl,'
7339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7340 # not for PA HP-UX.
7341 case $host_cpu in
7342 hppa*64*|ia64*)
7343 # +Z the default
7346 lt_prog_compiler_pic='+Z'
7348 esac
7349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7350 lt_prog_compiler_static='${wl}-a ${wl}archive'
7353 irix5* | irix6* | nonstopux*)
7354 lt_prog_compiler_wl='-Wl,'
7355 # PIC (with -KPIC) is the default.
7356 lt_prog_compiler_static='-non_shared'
7359 newsos6)
7360 lt_prog_compiler_pic='-KPIC'
7361 lt_prog_compiler_static='-Bstatic'
7364 linux*)
7365 case $cc_basename in
7366 icc* | ecc*)
7367 lt_prog_compiler_wl='-Wl,'
7368 lt_prog_compiler_pic='-KPIC'
7369 lt_prog_compiler_static='-static'
7371 pgcc* | pgf77* | pgf90* | pgf95*)
7372 # Portland Group compilers (*not* the Pentium gcc compiler,
7373 # which looks to be a dead project)
7374 lt_prog_compiler_wl='-Wl,'
7375 lt_prog_compiler_pic='-fpic'
7376 lt_prog_compiler_static='-Bstatic'
7378 ccc*)
7379 lt_prog_compiler_wl='-Wl,'
7380 # All Alpha code is PIC.
7381 lt_prog_compiler_static='-non_shared'
7383 esac
7386 osf3* | osf4* | osf5*)
7387 lt_prog_compiler_wl='-Wl,'
7388 # All OSF/1 code is PIC.
7389 lt_prog_compiler_static='-non_shared'
7392 sco3.2v5*)
7393 lt_prog_compiler_pic='-Kpic'
7394 lt_prog_compiler_static='-dn'
7397 solaris*)
7398 lt_prog_compiler_pic='-KPIC'
7399 lt_prog_compiler_static='-Bstatic'
7400 case $cc_basename in
7401 f77* | f90* | f95*)
7402 lt_prog_compiler_wl='-Qoption ld ';;
7404 lt_prog_compiler_wl='-Wl,';;
7405 esac
7408 sunos4*)
7409 lt_prog_compiler_wl='-Qoption ld '
7410 lt_prog_compiler_pic='-PIC'
7411 lt_prog_compiler_static='-Bstatic'
7414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7415 lt_prog_compiler_wl='-Wl,'
7416 lt_prog_compiler_pic='-KPIC'
7417 lt_prog_compiler_static='-Bstatic'
7420 sysv4*MP*)
7421 if test -d /usr/nec ;then
7422 lt_prog_compiler_pic='-Kconform_pic'
7423 lt_prog_compiler_static='-Bstatic'
7427 unicos*)
7428 lt_prog_compiler_wl='-Wl,'
7429 lt_prog_compiler_can_build_shared=no
7432 uts4*)
7433 lt_prog_compiler_pic='-pic'
7434 lt_prog_compiler_static='-Bstatic'
7438 lt_prog_compiler_can_build_shared=no
7440 esac
7443 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7444 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7447 # Check to make sure the PIC flag actually works.
7449 if test -n "$lt_prog_compiler_pic"; then
7451 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7452 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7453 if test "${lt_prog_compiler_pic_works+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 lt_prog_compiler_pic_works=no
7457 ac_outfile=conftest.$ac_objext
7458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7459 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7460 # Insert the option either (1) after the last *FLAGS variable, or
7461 # (2) before a word containing "conftest.", or (3) at the end.
7462 # Note that $ac_compile itself does not contain backslashes and begins
7463 # with a dollar sign (not a hyphen), so the echo should work correctly.
7464 # The option is referenced via a variable to avoid confusing sed.
7465 lt_compile=`echo "$ac_compile" | $SED \
7466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7468 -e 's:$: $lt_compiler_flag:'`
7469 (eval echo "\"\$as_me:7469: $lt_compile\"" >&5)
7470 (eval "$lt_compile" 2>conftest.err)
7471 ac_status=$?
7472 cat conftest.err >&5
7473 echo "$as_me:7473: \$? = $ac_status" >&5
7474 if (exit $ac_status) && test -s "$ac_outfile"; then
7475 # The compiler can only warn and ignore the option if not recognized
7476 # So say no if there are warnings other than the usual output.
7477 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7478 $SED '/^$/d' conftest.err >conftest.er2
7479 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7480 lt_prog_compiler_pic_works=yes
7483 $rm conftest*
7486 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7487 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7489 if test x"$lt_prog_compiler_pic_works" = xyes; then
7490 case $lt_prog_compiler_pic in
7491 "" | " "*) ;;
7492 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7493 esac
7494 else
7495 lt_prog_compiler_pic=
7496 lt_prog_compiler_can_build_shared=no
7500 case $host_os in
7501 # For platforms which do not support PIC, -DPIC is meaningless:
7502 *djgpp*)
7503 lt_prog_compiler_pic=
7506 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7508 esac
7510 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7511 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 lt_cv_prog_compiler_c_o=no
7516 $rm -r conftest 2>/dev/null
7517 mkdir conftest
7518 cd conftest
7519 mkdir out
7520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7522 lt_compiler_flag="-o out/conftest2.$ac_objext"
7523 # Insert the option either (1) after the last *FLAGS variable, or
7524 # (2) before a word containing "conftest.", or (3) at the end.
7525 # Note that $ac_compile itself does not contain backslashes and begins
7526 # with a dollar sign (not a hyphen), so the echo should work correctly.
7527 lt_compile=`echo "$ac_compile" | $SED \
7528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7530 -e 's:$: $lt_compiler_flag:'`
7531 (eval echo "\"\$as_me:7531: $lt_compile\"" >&5)
7532 (eval "$lt_compile" 2>out/conftest.err)
7533 ac_status=$?
7534 cat out/conftest.err >&5
7535 echo "$as_me:7535: \$? = $ac_status" >&5
7536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7537 then
7538 # The compiler can only warn and ignore the option if not recognized
7539 # So say no if there are warnings
7540 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7541 $SED '/^$/d' out/conftest.err >out/conftest.er2
7542 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7543 lt_cv_prog_compiler_c_o=yes
7546 chmod u+w . 2>&5
7547 $rm conftest*
7548 # SGI C++ compiler will create directory out/ii_files/ for
7549 # template instantiation
7550 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7551 $rm out/* && rmdir out
7552 cd ..
7553 rmdir conftest
7554 $rm conftest*
7557 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7558 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7561 hard_links="nottested"
7562 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7563 # do not overwrite the value of need_locks provided by the user
7564 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7565 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7566 hard_links=yes
7567 $rm conftest*
7568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7569 touch conftest.a
7570 ln conftest.a conftest.b 2>&5 || hard_links=no
7571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7572 { echo "$as_me:$LINENO: result: $hard_links" >&5
7573 echo "${ECHO_T}$hard_links" >&6; }
7574 if test "$hard_links" = no; then
7575 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7576 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7577 need_locks=warn
7579 else
7580 need_locks=no
7583 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7584 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7586 runpath_var=
7587 allow_undefined_flag=
7588 enable_shared_with_static_runtimes=no
7589 archive_cmds=
7590 archive_expsym_cmds=
7591 old_archive_From_new_cmds=
7592 old_archive_from_expsyms_cmds=
7593 export_dynamic_flag_spec=
7594 whole_archive_flag_spec=
7595 thread_safe_flag_spec=
7596 hardcode_libdir_flag_spec=
7597 hardcode_libdir_flag_spec_ld=
7598 hardcode_libdir_separator=
7599 hardcode_direct=no
7600 hardcode_minus_L=no
7601 hardcode_shlibpath_var=unsupported
7602 link_all_deplibs=unknown
7603 hardcode_automatic=no
7604 module_cmds=
7605 module_expsym_cmds=
7606 always_export_symbols=no
7607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7608 # include_expsyms should be a list of space-separated symbols to be *always*
7609 # included in the symbol list
7610 include_expsyms=
7611 # exclude_expsyms can be an extended regexp of symbols to exclude
7612 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7614 # as well as any symbol that contains `d'.
7615 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7617 # platforms (ab)use it in PIC code, but their linkers get confused if
7618 # the symbol is explicitly referenced. Since portable code cannot
7619 # rely on this symbol name, it's probably fine to never include it in
7620 # preloaded symbol tables.
7621 extract_expsyms_cmds=
7622 # Just being paranoid about ensuring that cc_basename is set.
7623 for cc_temp in $compiler""; do
7624 case $cc_temp in
7625 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7626 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7627 \-*) ;;
7628 *) break;;
7629 esac
7630 done
7631 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7633 case $host_os in
7634 cygwin* | mingw* | pw32*)
7635 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7636 # When not using gcc, we currently assume that we are using
7637 # Microsoft Visual C++.
7638 if test "$GCC" != yes; then
7639 with_gnu_ld=no
7642 openbsd*)
7643 with_gnu_ld=no
7645 esac
7647 ld_shlibs=yes
7648 if test "$with_gnu_ld" = yes; then
7649 # If archive_cmds runs LD, not CC, wlarc should be empty
7650 wlarc='${wl}'
7652 # Set some defaults for GNU ld with shared library support. These
7653 # are reset later if shared libraries are not supported. Putting them
7654 # here allows them to be overridden if necessary.
7655 runpath_var=LD_RUN_PATH
7656 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7657 export_dynamic_flag_spec='${wl}--export-dynamic'
7658 # ancient GNU ld didn't support --whole-archive et. al.
7659 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7660 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7661 else
7662 whole_archive_flag_spec=
7664 supports_anon_versioning=no
7665 case `$LD -v 2>/dev/null` in
7666 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7667 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7668 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7669 *\ 2.11.*) ;; # other 2.11 versions
7670 *) supports_anon_versioning=yes ;;
7671 esac
7673 # See if GNU ld supports shared libraries.
7674 case $host_os in
7675 aix3* | aix4* | aix5*)
7676 # On AIX/PPC, the GNU linker is very broken
7677 if test "$host_cpu" != ia64; then
7678 ld_shlibs=no
7679 cat <<EOF 1>&2
7681 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7682 *** to be unable to reliably create shared libraries on AIX.
7683 *** Therefore, libtool is disabling shared libraries support. If you
7684 *** really care for shared libraries, you may want to modify your PATH
7685 *** so that a non-GNU linker is found, and then restart.
7691 amigaos*)
7692 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)'
7693 hardcode_libdir_flag_spec='-L$libdir'
7694 hardcode_minus_L=yes
7696 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7697 # that the semantics of dynamic libraries on AmigaOS, at least up
7698 # to version 4, is to share data among multiple programs linked
7699 # with the same dynamic library. Since this doesn't match the
7700 # behavior of shared libraries on other platforms, we can't use
7701 # them.
7702 ld_shlibs=no
7705 beos*)
7706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7707 allow_undefined_flag=unsupported
7708 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7709 # support --undefined. This deserves some investigation. FIXME
7710 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7711 else
7712 ld_shlibs=no
7716 cygwin* | mingw* | pw32*)
7717 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7718 # as there is no search path for DLLs.
7719 hardcode_libdir_flag_spec='-L$libdir'
7720 allow_undefined_flag=unsupported
7721 always_export_symbols=no
7722 enable_shared_with_static_runtimes=yes
7723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7725 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7727 # If the export-symbols file already is a .def file (1st line
7728 # is EXPORTS), use it as is; otherwise, prepend...
7729 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7730 cp $export_symbols $output_objdir/$soname.def;
7731 else
7732 echo EXPORTS > $output_objdir/$soname.def;
7733 cat $export_symbols >> $output_objdir/$soname.def;
7735 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7736 else
7737 ld_shlibs=no
7741 linux*)
7742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7743 tmp_addflag=
7744 case $cc_basename,$host_cpu in
7745 pgcc*) # Portland Group C compiler
7746 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'
7747 tmp_addflag=' $pic_flag'
7749 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7750 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'
7751 tmp_addflag=' $pic_flag -Mnomain' ;;
7752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7753 tmp_addflag=' -i_dynamic' ;;
7754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7755 tmp_addflag=' -i_dynamic -nofor_main' ;;
7756 ifc* | ifort*) # Intel Fortran compiler
7757 tmp_addflag=' -nofor_main' ;;
7758 esac
7759 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761 if test $supports_anon_versioning = yes; then
7762 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7764 $echo "local: *; };" >> $output_objdir/$libname.ver~
7765 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7767 else
7768 ld_shlibs=no
7772 netbsd*)
7773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7775 wlarc=
7776 else
7777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7782 solaris* | sysv5*)
7783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7784 ld_shlibs=no
7785 cat <<EOF 1>&2
7787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7788 *** create shared libraries on Solaris systems. Therefore, libtool
7789 *** is disabling shared libraries support. We urge you to upgrade GNU
7790 *** binutils to release 2.9.1 or newer. Another option is to modify
7791 *** your PATH or compiler configuration so that the native linker is
7792 *** used, and then restart.
7795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7798 else
7799 ld_shlibs=no
7803 sunos4*)
7804 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7805 wlarc=
7806 hardcode_direct=yes
7807 hardcode_shlibpath_var=no
7811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7814 else
7815 ld_shlibs=no
7818 esac
7820 if test "$ld_shlibs" = no; then
7821 runpath_var=
7822 hardcode_libdir_flag_spec=
7823 export_dynamic_flag_spec=
7824 whole_archive_flag_spec=
7826 else
7827 # PORTME fill in a description of your system's linker (not GNU ld)
7828 case $host_os in
7829 aix3*)
7830 allow_undefined_flag=unsupported
7831 always_export_symbols=yes
7832 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'
7833 # Note: this linker hardcodes the directories in LIBPATH if there
7834 # are no directories specified by -L.
7835 hardcode_minus_L=yes
7836 if test "$GCC" = yes && test -z "$link_static_flag"; then
7837 # Neither direct hardcoding nor static linking is supported with a
7838 # broken collect2.
7839 hardcode_direct=unsupported
7843 aix4* | aix5*)
7844 if test "$host_cpu" = ia64; then
7845 # On IA64, the linker does run time linking by default, so we don't
7846 # have to do anything special.
7847 aix_use_runtimelinking=no
7848 exp_sym_flag='-Bexport'
7849 no_entry_flag=""
7850 else
7851 # If we're using GNU nm, then we don't want the "-C" option.
7852 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7853 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7854 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'
7855 else
7856 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'
7858 aix_use_runtimelinking=no
7860 # Test if we are trying to use run time linking or normal
7861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7862 # need to do runtime linking.
7863 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7864 for ld_flag in $LDFLAGS; do
7865 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7866 aix_use_runtimelinking=yes
7867 break
7869 done
7870 esac
7872 exp_sym_flag='-bexport'
7873 no_entry_flag='-bnoentry'
7876 # When large executables or shared objects are built, AIX ld can
7877 # have problems creating the table of contents. If linking a library
7878 # or program results in "error TOC overflow" add -mminimal-toc to
7879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7882 archive_cmds=''
7883 hardcode_direct=yes
7884 hardcode_libdir_separator=':'
7885 link_all_deplibs=yes
7887 if test "$GCC" = yes; then
7888 case $host_os in aix4.[012]|aix4.[012].*)
7889 # We only want to do this on AIX 4.2 and lower, the check
7890 # below for broken collect2 doesn't work under 4.3+
7891 collect2name=`${CC} -print-prog-name=collect2`
7892 if test -f "$collect2name" && \
7893 strings "$collect2name" | grep resolve_lib_name >/dev/null
7894 then
7895 # We have reworked collect2
7896 hardcode_direct=yes
7897 else
7898 # We have old collect2
7899 hardcode_direct=unsupported
7900 # It fails to find uninstalled libraries when the uninstalled
7901 # path is not listed in the libpath. Setting hardcode_minus_L
7902 # to unsupported forces relinking
7903 hardcode_minus_L=yes
7904 hardcode_libdir_flag_spec='-L$libdir'
7905 hardcode_libdir_separator=
7907 esac
7908 shared_flag='-shared'
7909 if test "$aix_use_runtimelinking" = yes; then
7910 shared_flag="$shared_flag "'${wl}-G'
7912 else
7913 # not using gcc
7914 if test "$host_cpu" = ia64; then
7915 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7916 # chokes on -Wl,-G. The following line is correct:
7917 shared_flag='-G'
7918 else
7919 if test "$aix_use_runtimelinking" = yes; then
7920 shared_flag='${wl}-G'
7921 else
7922 shared_flag='${wl}-bM:SRE'
7927 # It seems that -bexpall does not export symbols beginning with
7928 # underscore (_), so it is better to generate a list of symbols to export.
7929 always_export_symbols=yes
7930 if test "$aix_use_runtimelinking" = yes; then
7931 # Warning - without using the other runtime loading flags (-brtl),
7932 # -berok will link without error, but may produce a broken library.
7933 allow_undefined_flag='-berok'
7934 # Determine the default libpath from the value encoded in an empty executable.
7935 cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h. */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7943 main ()
7947 return 0;
7949 _ACEOF
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7952 case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_link") 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest$ac_exeext &&
7967 $as_test_x conftest$ac_exeext; then
7969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7971 # Check for a 64-bit object if we didn't find anything.
7972 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7973 }'`; fi
7974 else
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7982 conftest$ac_exeext conftest.$ac_ext
7983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7986 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7987 else
7988 if test "$host_cpu" = ia64; then
7989 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7990 allow_undefined_flag="-z nodefs"
7991 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7992 else
7993 # Determine the default libpath from the value encoded in an empty executable.
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8002 main ()
8006 return 0;
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest$ac_exeext &&
8026 $as_test_x conftest$ac_exeext; then
8028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8030 # Check for a 64-bit object if we didn't find anything.
8031 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8032 }'`; fi
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8041 conftest$ac_exeext conftest.$ac_ext
8042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8044 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8045 # Warning - without using the other run time loading flags,
8046 # -berok will link without error, but may produce a broken library.
8047 no_undefined_flag=' ${wl}-bernotok'
8048 allow_undefined_flag=' ${wl}-berok'
8049 # -bexpall does not export symbols beginning with underscore (_)
8050 always_export_symbols=yes
8051 # Exported symbols can be pulled into shared objects from archives
8052 whole_archive_flag_spec=' '
8053 archive_cmds_need_lc=yes
8054 # This is similar to how AIX traditionally builds its shared libraries.
8055 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8060 amigaos*)
8061 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)'
8062 hardcode_libdir_flag_spec='-L$libdir'
8063 hardcode_minus_L=yes
8064 # see comment about different semantics on the GNU ld section
8065 ld_shlibs=no
8068 bsdi[45]*)
8069 export_dynamic_flag_spec=-rdynamic
8072 cygwin* | mingw* | pw32*)
8073 # When not using gcc, we currently assume that we are using
8074 # Microsoft Visual C++.
8075 # hardcode_libdir_flag_spec is actually meaningless, as there is
8076 # no search path for DLLs.
8077 hardcode_libdir_flag_spec=' '
8078 allow_undefined_flag=unsupported
8079 # Tell ltmain to make .lib files, not .a files.
8080 libext=lib
8081 # Tell ltmain to make .dll files, not .so files.
8082 shrext_cmds=".dll"
8083 # FIXME: Setting linknames here is a bad hack.
8084 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8085 # The linker will automatically build a .lib file if we build a DLL.
8086 old_archive_From_new_cmds='true'
8087 # FIXME: Should let the user specify the lib program.
8088 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8089 fix_srcfile_path='`cygpath -w "$srcfile"`'
8090 enable_shared_with_static_runtimes=yes
8093 darwin* | rhapsody*)
8094 case $host_os in
8095 rhapsody* | darwin1.[012])
8096 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8098 *) # Darwin 1.3 on
8099 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8100 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8101 else
8102 case ${MACOSX_DEPLOYMENT_TARGET} in
8103 10.[012])
8104 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8106 10.*)
8107 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8109 esac
8112 esac
8113 archive_cmds_need_lc=no
8114 hardcode_direct=no
8115 hardcode_automatic=yes
8116 hardcode_shlibpath_var=unsupported
8117 whole_archive_flag_spec=''
8118 link_all_deplibs=yes
8119 if test "$GCC" = yes ; then
8120 output_verbose_link_cmd='echo'
8121 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8122 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8124 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}'
8125 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}'
8126 else
8127 case $cc_basename in
8128 xlc*)
8129 output_verbose_link_cmd='echo'
8130 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8131 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8133 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8134 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}'
8137 ld_shlibs=no
8139 esac
8143 dgux*)
8144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8145 hardcode_libdir_flag_spec='-L$libdir'
8146 hardcode_shlibpath_var=no
8149 freebsd1*)
8150 ld_shlibs=no
8153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8154 # support. Future versions do this automatically, but an explicit c++rt0.o
8155 # does not break anything, and helps significantly (at the cost of a little
8156 # extra space).
8157 freebsd2.2*)
8158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8159 hardcode_libdir_flag_spec='-R$libdir'
8160 hardcode_direct=yes
8161 hardcode_shlibpath_var=no
8164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8165 freebsd2*)
8166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8167 hardcode_direct=yes
8168 hardcode_minus_L=yes
8169 hardcode_shlibpath_var=no
8172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8173 freebsd* | kfreebsd*-gnu | dragonfly*)
8174 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8175 hardcode_libdir_flag_spec='-R$libdir'
8176 hardcode_direct=yes
8177 hardcode_shlibpath_var=no
8180 hpux9*)
8181 if test "$GCC" = yes; then
8182 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'
8183 else
8184 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'
8186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187 hardcode_libdir_separator=:
8188 hardcode_direct=yes
8190 # hardcode_minus_L: Not really in the search PATH,
8191 # but as the default location of the library.
8192 hardcode_minus_L=yes
8193 export_dynamic_flag_spec='${wl}-E'
8196 hpux10* | hpux11*)
8197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8198 case $host_cpu in
8199 hppa*64*|ia64*)
8200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8203 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8205 esac
8206 else
8207 case $host_cpu in
8208 hppa*64*|ia64*)
8209 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8212 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8214 esac
8216 if test "$with_gnu_ld" = no; then
8217 case $host_cpu in
8218 hppa*64*)
8219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8220 hardcode_libdir_flag_spec_ld='+b $libdir'
8221 hardcode_libdir_separator=:
8222 hardcode_direct=no
8223 hardcode_shlibpath_var=no
8225 ia64*)
8226 hardcode_libdir_flag_spec='-L$libdir'
8227 hardcode_direct=no
8228 hardcode_shlibpath_var=no
8230 # hardcode_minus_L: Not really in the search PATH,
8231 # but as the default location of the library.
8232 hardcode_minus_L=yes
8235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8236 hardcode_libdir_separator=:
8237 hardcode_direct=yes
8238 export_dynamic_flag_spec='${wl}-E'
8240 # hardcode_minus_L: Not really in the search PATH,
8241 # but as the default location of the library.
8242 hardcode_minus_L=yes
8244 esac
8248 irix5* | irix6* | nonstopux*)
8249 if test "$GCC" = yes; then
8250 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'
8251 else
8252 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'
8253 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8256 hardcode_libdir_separator=:
8257 link_all_deplibs=yes
8260 netbsd*)
8261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8263 else
8264 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8266 hardcode_libdir_flag_spec='-R$libdir'
8267 hardcode_direct=yes
8268 hardcode_shlibpath_var=no
8271 newsos6)
8272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8273 hardcode_direct=yes
8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275 hardcode_libdir_separator=:
8276 hardcode_shlibpath_var=no
8279 openbsd*)
8280 hardcode_direct=yes
8281 hardcode_shlibpath_var=no
8282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8284 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286 export_dynamic_flag_spec='${wl}-E'
8287 else
8288 case $host_os in
8289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8291 hardcode_libdir_flag_spec='-R$libdir'
8294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8297 esac
8301 os2*)
8302 hardcode_libdir_flag_spec='-L$libdir'
8303 hardcode_minus_L=yes
8304 allow_undefined_flag=unsupported
8305 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'
8306 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8309 osf3*)
8310 if test "$GCC" = yes; then
8311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8312 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'
8313 else
8314 allow_undefined_flag=' -expect_unresolved \*'
8315 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'
8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318 hardcode_libdir_separator=:
8321 osf4* | osf5*) # as osf3* with the addition of -msym flag
8322 if test "$GCC" = yes; then
8323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8324 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'
8325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8326 else
8327 allow_undefined_flag=' -expect_unresolved \*'
8328 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'
8329 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8330 $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'
8332 # Both c and cxx compiler support -rpath directly
8333 hardcode_libdir_flag_spec='-rpath $libdir'
8335 hardcode_libdir_separator=:
8338 sco3.2v5*)
8339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8340 hardcode_shlibpath_var=no
8341 export_dynamic_flag_spec='${wl}-Bexport'
8342 runpath_var=LD_RUN_PATH
8343 hardcode_runpath_var=yes
8346 solaris*)
8347 no_undefined_flag=' -z text'
8348 if test "$GCC" = yes; then
8349 wlarc='${wl}'
8350 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8351 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8352 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8353 else
8354 wlarc=''
8355 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8357 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8359 hardcode_libdir_flag_spec='-R$libdir'
8360 hardcode_shlibpath_var=no
8361 case $host_os in
8362 solaris2.[0-5] | solaris2.[0-5].*) ;;
8364 # The compiler driver will combine linker options so we
8365 # cannot just pass the convience library names through
8366 # without $wl, iff we do not link with $LD.
8367 # Luckily, gcc supports the same syntax we need for Sun Studio.
8368 # Supported since Solaris 2.6 (maybe 2.5.1?)
8369 case $wlarc in
8371 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8373 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8374 esac ;;
8375 esac
8376 link_all_deplibs=yes
8379 sunos4*)
8380 if test "x$host_vendor" = xsequent; then
8381 # Use $CC to link under sequent, because it throws in some extra .o
8382 # files that make .init and .fini sections work.
8383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8384 else
8385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8387 hardcode_libdir_flag_spec='-L$libdir'
8388 hardcode_direct=yes
8389 hardcode_minus_L=yes
8390 hardcode_shlibpath_var=no
8393 sysv4)
8394 case $host_vendor in
8395 sni)
8396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_direct=yes # is this really true???
8399 siemens)
8400 ## LD is ld it makes a PLAMLIB
8401 ## CC just makes a GrossModule.
8402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8403 reload_cmds='$CC -r -o $output$reload_objs'
8404 hardcode_direct=no
8406 motorola)
8407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8410 esac
8411 runpath_var='LD_RUN_PATH'
8412 hardcode_shlibpath_var=no
8415 sysv4.3*)
8416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_shlibpath_var=no
8418 export_dynamic_flag_spec='-Bexport'
8421 sysv4*MP*)
8422 if test -d /usr/nec; then
8423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8424 hardcode_shlibpath_var=no
8425 runpath_var=LD_RUN_PATH
8426 hardcode_runpath_var=yes
8427 ld_shlibs=yes
8431 sysv4.2uw2*)
8432 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8433 hardcode_direct=yes
8434 hardcode_minus_L=no
8435 hardcode_shlibpath_var=no
8436 hardcode_runpath_var=yes
8437 runpath_var=LD_RUN_PATH
8440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8441 no_undefined_flag='${wl}-z ${wl}text'
8442 if test "$GCC" = yes; then
8443 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8444 else
8445 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8447 runpath_var='LD_RUN_PATH'
8448 hardcode_shlibpath_var=no
8451 sysv5*)
8452 no_undefined_flag=' -z text'
8453 # $CC -shared without GNU ld will not create a library from C++
8454 # object files and a static libstdc++, better avoid it by now
8455 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8456 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8458 hardcode_libdir_flag_spec=
8459 hardcode_shlibpath_var=no
8460 runpath_var='LD_RUN_PATH'
8463 uts4*)
8464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8465 hardcode_libdir_flag_spec='-L$libdir'
8466 hardcode_shlibpath_var=no
8470 ld_shlibs=no
8472 esac
8475 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8476 echo "${ECHO_T}$ld_shlibs" >&6; }
8477 test "$ld_shlibs" = no && can_build_shared=no
8479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8480 if test "$GCC" = yes; then
8481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8485 # Do we need to explicitly link libc?
8487 case "x$archive_cmds_need_lc" in
8488 x|xyes)
8489 # Assume -lc should be added
8490 archive_cmds_need_lc=yes
8492 if test "$enable_shared" = yes && test "$GCC" = yes; then
8493 case $archive_cmds in
8494 *'~'*)
8495 # FIXME: we may have to deal with multi-command sequences.
8497 '$CC '*)
8498 # Test whether the compiler implicitly links with -lc since on some
8499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8500 # to ld, don't add -lc before -lgcc.
8501 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8502 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8503 $rm conftest*
8504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507 (eval $ac_compile) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } 2>conftest.err; then
8511 soname=conftest
8512 lib=conftest
8513 libobjs=conftest.$ac_objext
8514 deplibs=
8515 wl=$lt_prog_compiler_wl
8516 compiler_flags=-v
8517 linker_flags=-v
8518 verstring=
8519 output_objdir=.
8520 libname=conftest
8521 lt_save_allow_undefined_flag=$allow_undefined_flag
8522 allow_undefined_flag=
8523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8524 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }
8528 then
8529 archive_cmds_need_lc=no
8530 else
8531 archive_cmds_need_lc=yes
8533 allow_undefined_flag=$lt_save_allow_undefined_flag
8534 else
8535 cat conftest.err 1>&5
8537 $rm conftest*
8538 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8539 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8541 esac
8544 esac
8546 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8548 library_names_spec=
8549 libname_spec='lib$name'
8550 soname_spec=
8551 shrext_cmds=".so"
8552 postinstall_cmds=
8553 postuninstall_cmds=
8554 finish_cmds=
8555 finish_eval=
8556 shlibpath_var=
8557 shlibpath_overrides_runpath=unknown
8558 version_type=none
8559 dynamic_linker="$host_os ld.so"
8560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8561 if test "$GCC" = yes; then
8562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8564 # if the path contains ";" then we assume it to be the separator
8565 # otherwise default to the standard path separator (i.e. ":") - it is
8566 # assumed that no part of a normal pathname contains ";" but that should
8567 # okay in the real world where ";" in dirpaths is itself problematic.
8568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8569 else
8570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8572 else
8573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8575 need_lib_prefix=unknown
8576 hardcode_into_libs=no
8578 # when you set need_version to no, make sure it does not cause -set_version
8579 # flags to be left without arguments
8580 need_version=unknown
8582 case $host_os in
8583 aix3*)
8584 version_type=linux
8585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8586 shlibpath_var=LIBPATH
8588 # AIX 3 has no versioning support, so we append a major version to the name.
8589 soname_spec='${libname}${release}${shared_ext}$major'
8592 aix4* | aix5*)
8593 version_type=linux
8594 need_lib_prefix=no
8595 need_version=no
8596 hardcode_into_libs=yes
8597 if test "$host_cpu" = ia64; then
8598 # AIX 5 supports IA64
8599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8600 shlibpath_var=LD_LIBRARY_PATH
8601 else
8602 # With GCC up to 2.95.x, collect2 would create an import file
8603 # for dependence libraries. The import file would start with
8604 # the line `#! .'. This would cause the generated library to
8605 # depend on `.', always an invalid library. This was fixed in
8606 # development snapshots of GCC prior to 3.0.
8607 case $host_os in
8608 aix4 | aix4.[01] | aix4.[01].*)
8609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8610 echo ' yes '
8611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8613 else
8614 can_build_shared=no
8617 esac
8618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8619 # soname into executable. Probably we can add versioning support to
8620 # collect2, so additional links can be useful in future.
8621 if test "$aix_use_runtimelinking" = yes; then
8622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8623 # instead of lib<name>.a to let people know that these are not
8624 # typical AIX shared libraries.
8625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8626 else
8627 # We preserve .a as extension for shared libraries through AIX4.2
8628 # and later when we are not doing run time linking.
8629 library_names_spec='${libname}${release}.a $libname.a'
8630 soname_spec='${libname}${release}${shared_ext}$major'
8632 shlibpath_var=LIBPATH
8636 amigaos*)
8637 library_names_spec='$libname.ixlibrary $libname.a'
8638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8639 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'
8642 beos*)
8643 library_names_spec='${libname}${shared_ext}'
8644 dynamic_linker="$host_os ld.so"
8645 shlibpath_var=LIBRARY_PATH
8648 bsdi[45]*)
8649 version_type=linux
8650 need_version=no
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8654 shlibpath_var=LD_LIBRARY_PATH
8655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8657 # the default ld.so.conf also contains /usr/contrib/lib and
8658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8659 # libtool to hard-code these into programs
8662 cygwin* | mingw* | pw32*)
8663 version_type=windows
8664 shrext_cmds=".dll"
8665 need_version=no
8666 need_lib_prefix=no
8668 case $GCC,$host_os in
8669 yes,cygwin* | yes,mingw* | yes,pw32*)
8670 library_names_spec='$libname.dll.a'
8671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8672 postinstall_cmds='base_file=`basename \${file}`~
8673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8674 dldir=$destdir/`dirname \$dlpath`~
8675 test -d \$dldir || mkdir -p \$dldir~
8676 $install_prog $dir/$dlname \$dldir/$dlname~
8677 chmod a+x \$dldir/$dlname'
8678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8679 dlpath=$dir/\$dldll~
8680 $rm \$dlpath'
8681 shlibpath_overrides_runpath=yes
8683 case $host_os in
8684 cygwin*)
8685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8686 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8687 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8689 mingw*)
8690 # MinGW DLLs use traditional 'lib' prefix
8691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8693 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8694 # It is most probably a Windows format PATH printed by
8695 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8696 # path with ; separators, and with drive letters. We can handle the
8697 # drive letters (cygwin fileutils understands them), so leave them,
8698 # especially as we might pass files found there to a mingw objdump,
8699 # which wouldn't understand a cygwinified path. Ahh.
8700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8701 else
8702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8705 pw32*)
8706 # pw32 DLLs use 'pw' prefix rather than 'lib'
8707 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8709 esac
8713 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8715 esac
8716 dynamic_linker='Win32 ld.exe'
8717 # FIXME: first we should search . and the directory the executable is in
8718 shlibpath_var=PATH
8721 darwin* | rhapsody*)
8722 dynamic_linker="$host_os dyld"
8723 version_type=darwin
8724 need_lib_prefix=no
8725 need_version=no
8726 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8727 soname_spec='${libname}${release}${major}$shared_ext'
8728 shlibpath_overrides_runpath=yes
8729 shlibpath_var=DYLD_LIBRARY_PATH
8730 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8731 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8732 if test "$GCC" = yes; then
8733 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8734 else
8735 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8740 dgux*)
8741 version_type=linux
8742 need_lib_prefix=no
8743 need_version=no
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8745 soname_spec='${libname}${release}${shared_ext}$major'
8746 shlibpath_var=LD_LIBRARY_PATH
8749 freebsd1*)
8750 dynamic_linker=no
8753 kfreebsd*-gnu)
8754 version_type=linux
8755 need_lib_prefix=no
8756 need_version=no
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 shlibpath_var=LD_LIBRARY_PATH
8760 shlibpath_overrides_runpath=no
8761 hardcode_into_libs=yes
8762 dynamic_linker='GNU ld.so'
8765 freebsd* | dragonfly*)
8766 # DragonFly does not have aout. When/if they implement a new
8767 # versioning mechanism, adjust this.
8768 if test -x /usr/bin/objformat; then
8769 objformat=`/usr/bin/objformat`
8770 else
8771 case $host_os in
8772 freebsd[123]*) objformat=aout ;;
8773 *) objformat=elf ;;
8774 esac
8776 version_type=freebsd-$objformat
8777 case $version_type in
8778 freebsd-elf*)
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8780 need_version=no
8781 need_lib_prefix=no
8783 freebsd-*)
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8785 need_version=yes
8787 esac
8788 shlibpath_var=LD_LIBRARY_PATH
8789 case $host_os in
8790 freebsd2*)
8791 shlibpath_overrides_runpath=yes
8793 freebsd3.[01]* | freebsdelf3.[01]*)
8794 shlibpath_overrides_runpath=yes
8795 hardcode_into_libs=yes
8797 *) # from 3.2 on
8798 shlibpath_overrides_runpath=no
8799 hardcode_into_libs=yes
8801 esac
8804 gnu*)
8805 version_type=linux
8806 need_lib_prefix=no
8807 need_version=no
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 hardcode_into_libs=yes
8814 hpux9* | hpux10* | hpux11*)
8815 # Give a soname corresponding to the major version so that dld.sl refuses to
8816 # link against other versions.
8817 version_type=sunos
8818 need_lib_prefix=no
8819 need_version=no
8820 case $host_cpu in
8821 ia64*)
8822 shrext_cmds='.so'
8823 hardcode_into_libs=yes
8824 dynamic_linker="$host_os dld.so"
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 if test "X$HPUX_IA64_MODE" = X32; then
8830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8831 else
8832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8836 hppa*64*)
8837 shrext_cmds='.sl'
8838 hardcode_into_libs=yes
8839 dynamic_linker="$host_os dld.sl"
8840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8848 shrext_cmds='.sl'
8849 dynamic_linker="$host_os dld.sl"
8850 shlibpath_var=SHLIB_PATH
8851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8855 esac
8856 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8857 postinstall_cmds='chmod 555 $lib'
8860 irix5* | irix6* | nonstopux*)
8861 case $host_os in
8862 nonstopux*) version_type=nonstopux ;;
8864 if test "$lt_cv_prog_gnu_ld" = yes; then
8865 version_type=linux
8866 else
8867 version_type=irix
8868 fi ;;
8869 esac
8870 need_lib_prefix=no
8871 need_version=no
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8874 case $host_os in
8875 irix5* | nonstopux*)
8876 libsuff= shlibsuff=
8879 case $LD in # libtool.m4 will add one of these switches to LD
8880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8881 libsuff= shlibsuff= libmagic=32-bit;;
8882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8883 libsuff=32 shlibsuff=N32 libmagic=N32;;
8884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8885 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8886 *) libsuff= shlibsuff= libmagic=never-match;;
8887 esac
8889 esac
8890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8891 shlibpath_overrides_runpath=no
8892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8894 hardcode_into_libs=yes
8897 # No shared lib support for Linux oldld, aout, or coff.
8898 linux*oldld* | linux*aout* | linux*coff*)
8899 dynamic_linker=no
8902 # This must be Linux ELF.
8903 linux*)
8904 version_type=linux
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8910 shlibpath_var=LD_LIBRARY_PATH
8911 shlibpath_overrides_runpath=no
8912 # This implies no fast_install, which is unacceptable.
8913 # Some rework will be needed to allow for fast_install
8914 # before this can be enabled.
8915 hardcode_into_libs=yes
8917 # Append ld.so.conf contents to the search path
8918 if test -f /etc/ld.so.conf; then
8919 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8923 # We used to test for /lib/ld.so.1 and disable shared libraries on
8924 # powerpc, because MkLinux only supported shared libraries with the
8925 # GNU dynamic linker. Since this was broken with cross compilers,
8926 # most powerpc-linux boxes support dynamic linking these days and
8927 # people can always --disable-shared, the test was removed, and we
8928 # assume the GNU/Linux dynamic linker is in use.
8929 dynamic_linker='GNU/Linux ld.so'
8932 knetbsd*-gnu)
8933 version_type=linux
8934 need_lib_prefix=no
8935 need_version=no
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=no
8940 hardcode_into_libs=yes
8941 dynamic_linker='GNU ld.so'
8944 netbsd*)
8945 version_type=sunos
8946 need_lib_prefix=no
8947 need_version=no
8948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8951 dynamic_linker='NetBSD (a.out) ld.so'
8952 else
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 dynamic_linker='NetBSD ld.elf_so'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=yes
8959 hardcode_into_libs=yes
8962 newsos6)
8963 version_type=linux
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=yes
8969 nto-qnx*)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 shlibpath_overrides_runpath=yes
8979 openbsd*)
8980 version_type=sunos
8981 need_lib_prefix=no
8982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8983 case $host_os in
8984 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8985 *) need_version=no ;;
8986 esac
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8991 case $host_os in
8992 openbsd2.[89] | openbsd2.[89].*)
8993 shlibpath_overrides_runpath=no
8996 shlibpath_overrides_runpath=yes
8998 esac
8999 else
9000 shlibpath_overrides_runpath=yes
9004 os2*)
9005 libname_spec='$name'
9006 shrext_cmds=".dll"
9007 need_lib_prefix=no
9008 library_names_spec='$libname${shared_ext} $libname.a'
9009 dynamic_linker='OS/2 ld.exe'
9010 shlibpath_var=LIBPATH
9013 osf3* | osf4* | osf5*)
9014 version_type=osf
9015 need_lib_prefix=no
9016 need_version=no
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9024 sco3.2v5*)
9025 version_type=osf
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028 shlibpath_var=LD_LIBRARY_PATH
9031 solaris*)
9032 version_type=linux
9033 need_lib_prefix=no
9034 need_version=no
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9040 # ldd complains unless libraries are executable
9041 postinstall_cmds='chmod +x $lib'
9044 sunos4*)
9045 version_type=sunos
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 if test "$with_gnu_ld" = yes; then
9051 need_lib_prefix=no
9053 need_version=yes
9056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9057 version_type=linux
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 case $host_vendor in
9062 sni)
9063 shlibpath_overrides_runpath=no
9064 need_lib_prefix=no
9065 export_dynamic_flag_spec='${wl}-Blargedynsym'
9066 runpath_var=LD_RUN_PATH
9068 siemens)
9069 need_lib_prefix=no
9071 motorola)
9072 need_lib_prefix=no
9073 need_version=no
9074 shlibpath_overrides_runpath=no
9075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9077 esac
9080 sysv4*MP*)
9081 if test -d /usr/nec ;then
9082 version_type=linux
9083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9084 soname_spec='$libname${shared_ext}.$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9089 uts4*)
9090 version_type=linux
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9097 dynamic_linker=no
9099 esac
9100 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9101 echo "${ECHO_T}$dynamic_linker" >&6; }
9102 test "$dynamic_linker" = no && can_build_shared=no
9104 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9106 hardcode_action=
9107 if test -n "$hardcode_libdir_flag_spec" || \
9108 test -n "$runpath_var" || \
9109 test "X$hardcode_automatic" = "Xyes" ; then
9111 # We can hardcode non-existant directories.
9112 if test "$hardcode_direct" != no &&
9113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9114 # have to relink, otherwise we might link with an installed library
9115 # when we should be linking with a yet-to-be-installed one
9116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9117 test "$hardcode_minus_L" != no; then
9118 # Linking always hardcodes the temporary library directory.
9119 hardcode_action=relink
9120 else
9121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9122 hardcode_action=immediate
9124 else
9125 # We cannot hardcode anything, or else we can only hardcode existing
9126 # directories.
9127 hardcode_action=unsupported
9129 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9130 echo "${ECHO_T}$hardcode_action" >&6; }
9132 if test "$hardcode_action" = relink; then
9133 # Fast installation is not supported
9134 enable_fast_install=no
9135 elif test "$shlibpath_overrides_runpath" = yes ||
9136 test "$enable_shared" = no; then
9137 # Fast installation is not necessary
9138 enable_fast_install=needless
9141 striplib=
9142 old_striplib=
9143 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9144 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9145 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9146 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9147 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9148 { echo "$as_me:$LINENO: result: yes" >&5
9149 echo "${ECHO_T}yes" >&6; }
9150 else
9151 # FIXME - insert some real tests, host_os isn't really good enough
9152 case $host_os in
9153 darwin*)
9154 if test -n "$STRIP" ; then
9155 striplib="$STRIP -x"
9156 { echo "$as_me:$LINENO: result: yes" >&5
9157 echo "${ECHO_T}yes" >&6; }
9158 else
9159 { echo "$as_me:$LINENO: result: no" >&5
9160 echo "${ECHO_T}no" >&6; }
9164 { echo "$as_me:$LINENO: result: no" >&5
9165 echo "${ECHO_T}no" >&6; }
9167 esac
9170 if test "x$enable_dlopen" != xyes; then
9171 enable_dlopen=unknown
9172 enable_dlopen_self=unknown
9173 enable_dlopen_self_static=unknown
9174 else
9175 lt_cv_dlopen=no
9176 lt_cv_dlopen_libs=
9178 case $host_os in
9179 beos*)
9180 lt_cv_dlopen="load_add_on"
9181 lt_cv_dlopen_libs=
9182 lt_cv_dlopen_self=yes
9185 mingw* | pw32*)
9186 lt_cv_dlopen="LoadLibrary"
9187 lt_cv_dlopen_libs=
9190 cygwin*)
9191 lt_cv_dlopen="dlopen"
9192 lt_cv_dlopen_libs=
9195 darwin*)
9196 # if libdl is installed we need to link against it
9197 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202 ac_check_lib_save_LIBS=$LIBS
9203 LIBS="-ldl $LIBS"
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9211 /* Override any GCC internal prototype to avoid an error.
9212 Use char because int might match the return type of a GCC
9213 builtin and then its argument prototype would still apply. */
9214 #ifdef __cplusplus
9215 extern "C"
9216 #endif
9217 char dlopen ();
9219 main ()
9221 return dlopen ();
9223 return 0;
9225 _ACEOF
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (ac_try="$ac_link"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_link") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext &&
9243 $as_test_x conftest$ac_exeext; then
9244 ac_cv_lib_dl_dlopen=yes
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_cv_lib_dl_dlopen=no
9252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9256 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9258 if test $ac_cv_lib_dl_dlopen = yes; then
9259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9260 else
9262 lt_cv_dlopen="dyld"
9263 lt_cv_dlopen_libs=
9264 lt_cv_dlopen_self=yes
9271 { echo "$as_me:$LINENO: checking for shl_load" >&5
9272 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9273 if test "${ac_cv_func_shl_load+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h. */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9284 #define shl_load innocuous_shl_load
9286 /* System header to define __stub macros and hopefully few prototypes,
9287 which can conflict with char shl_load (); below.
9288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9289 <limits.h> exists even on freestanding compilers. */
9291 #ifdef __STDC__
9292 # include <limits.h>
9293 #else
9294 # include <assert.h>
9295 #endif
9297 #undef shl_load
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 char shl_load ();
9306 /* The GNU C library defines this for functions which it implements
9307 to always fail with ENOSYS. Some functions are actually named
9308 something starting with __ and the normal name is an alias. */
9309 #if defined __stub_shl_load || defined __stub___shl_load
9310 choke me
9311 #endif
9314 main ()
9316 return shl_load ();
9318 return 0;
9320 _ACEOF
9321 rm -f conftest.$ac_objext conftest$ac_exeext
9322 if { (ac_try="$ac_link"
9323 case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326 esac
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_link") 2>conftest.er1
9329 ac_status=$?
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest$ac_exeext &&
9338 $as_test_x conftest$ac_exeext; then
9339 ac_cv_func_shl_load=yes
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9344 ac_cv_func_shl_load=no
9347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9348 conftest$ac_exeext conftest.$ac_ext
9350 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9351 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9352 if test $ac_cv_func_shl_load = yes; then
9353 lt_cv_dlopen="shl_load"
9354 else
9355 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9356 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9357 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 ac_check_lib_save_LIBS=$LIBS
9361 LIBS="-ldld $LIBS"
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char shl_load ();
9377 main ()
9379 return shl_load ();
9381 return 0;
9383 _ACEOF
9384 rm -f conftest.$ac_objext conftest$ac_exeext
9385 if { (ac_try="$ac_link"
9386 case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_link") 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && {
9398 test -z "$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9400 } && test -s conftest$ac_exeext &&
9401 $as_test_x conftest$ac_exeext; then
9402 ac_cv_lib_dld_shl_load=yes
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_cv_lib_dld_shl_load=no
9410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9414 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9415 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9416 if test $ac_cv_lib_dld_shl_load = yes; then
9417 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9418 else
9419 { echo "$as_me:$LINENO: checking for dlopen" >&5
9420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9421 if test "${ac_cv_func_dlopen+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424 cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h. */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9432 #define dlopen innocuous_dlopen
9434 /* System header to define __stub macros and hopefully few prototypes,
9435 which can conflict with char dlopen (); below.
9436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9437 <limits.h> exists even on freestanding compilers. */
9439 #ifdef __STDC__
9440 # include <limits.h>
9441 #else
9442 # include <assert.h>
9443 #endif
9445 #undef dlopen
9447 /* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
9449 builtin and then its argument prototype would still apply. */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 char dlopen ();
9454 /* The GNU C library defines this for functions which it implements
9455 to always fail with ENOSYS. Some functions are actually named
9456 something starting with __ and the normal name is an alias. */
9457 #if defined __stub_dlopen || defined __stub___dlopen
9458 choke me
9459 #endif
9462 main ()
9464 return dlopen ();
9466 return 0;
9468 _ACEOF
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9471 case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_link") 2>conftest.er1
9477 ac_status=$?
9478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } && {
9483 test -z "$ac_c_werror_flag" ||
9484 test ! -s conftest.err
9485 } && test -s conftest$ac_exeext &&
9486 $as_test_x conftest$ac_exeext; then
9487 ac_cv_func_dlopen=yes
9488 else
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9492 ac_cv_func_dlopen=no
9495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9496 conftest$ac_exeext conftest.$ac_ext
9498 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9499 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9500 if test $ac_cv_func_dlopen = yes; then
9501 lt_cv_dlopen="dlopen"
9502 else
9503 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9504 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-ldl $LIBS"
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char dlopen ();
9525 main ()
9527 return dlopen ();
9529 return 0;
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest$ac_exeext &&
9549 $as_test_x conftest$ac_exeext; then
9550 ac_cv_lib_dl_dlopen=yes
9551 else
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_cv_lib_dl_dlopen=no
9558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9559 conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_check_lib_save_LIBS
9562 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9564 if test $ac_cv_lib_dl_dlopen = yes; then
9565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9566 else
9567 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9568 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-lsvld $LIBS"
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char dlopen ();
9589 main ()
9591 return dlopen ();
9593 return 0;
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9598 case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest$ac_exeext &&
9613 $as_test_x conftest$ac_exeext; then
9614 ac_cv_lib_svld_dlopen=yes
9615 else
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_cv_lib_svld_dlopen=no
9622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9626 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9627 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9628 if test $ac_cv_lib_svld_dlopen = yes; then
9629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9630 else
9631 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9632 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9633 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 ac_check_lib_save_LIBS=$LIBS
9637 LIBS="-ldld $LIBS"
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9645 /* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9648 #ifdef __cplusplus
9649 extern "C"
9650 #endif
9651 char dld_link ();
9653 main ()
9655 return dld_link ();
9657 return 0;
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (ac_try="$ac_link"
9662 case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_link") 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest$ac_exeext &&
9677 $as_test_x conftest$ac_exeext; then
9678 ac_cv_lib_dld_dld_link=yes
9679 else
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_lib_dld_dld_link=no
9686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9687 conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9691 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9692 if test $ac_cv_lib_dld_dld_link = yes; then
9693 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9712 esac
9714 if test "x$lt_cv_dlopen" != xno; then
9715 enable_dlopen=yes
9716 else
9717 enable_dlopen=no
9720 case $lt_cv_dlopen in
9721 dlopen)
9722 save_CPPFLAGS="$CPPFLAGS"
9723 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9725 save_LDFLAGS="$LDFLAGS"
9726 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9728 save_LIBS="$LIBS"
9729 LIBS="$lt_cv_dlopen_libs $LIBS"
9731 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9732 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9733 if test "${lt_cv_dlopen_self+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736 if test "$cross_compiling" = yes; then :
9737 lt_cv_dlopen_self=cross
9738 else
9739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9740 lt_status=$lt_dlunknown
9741 cat > conftest.$ac_ext <<EOF
9742 #line 9742 "configure"
9743 #include "confdefs.h"
9745 #if HAVE_DLFCN_H
9746 #include <dlfcn.h>
9747 #endif
9749 #include <stdio.h>
9751 #ifdef RTLD_GLOBAL
9752 # define LT_DLGLOBAL RTLD_GLOBAL
9753 #else
9754 # ifdef DL_GLOBAL
9755 # define LT_DLGLOBAL DL_GLOBAL
9756 # else
9757 # define LT_DLGLOBAL 0
9758 # endif
9759 #endif
9761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9762 find out it does not work in some platform. */
9763 #ifndef LT_DLLAZY_OR_NOW
9764 # ifdef RTLD_LAZY
9765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9766 # else
9767 # ifdef DL_LAZY
9768 # define LT_DLLAZY_OR_NOW DL_LAZY
9769 # else
9770 # ifdef RTLD_NOW
9771 # define LT_DLLAZY_OR_NOW RTLD_NOW
9772 # else
9773 # ifdef DL_NOW
9774 # define LT_DLLAZY_OR_NOW DL_NOW
9775 # else
9776 # define LT_DLLAZY_OR_NOW 0
9777 # endif
9778 # endif
9779 # endif
9780 # endif
9781 #endif
9783 #ifdef __cplusplus
9784 extern "C" void exit (int);
9785 #endif
9787 void fnord() { int i=42;}
9788 int main ()
9790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9791 int status = $lt_dlunknown;
9793 if (self)
9795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9796 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9797 /* dlclose (self); */
9800 exit (status);
9803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804 (eval $ac_link) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9808 (./conftest; exit; ) >&5 2>/dev/null
9809 lt_status=$?
9810 case x$lt_status in
9811 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9812 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9813 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9814 esac
9815 else :
9816 # compilation failed
9817 lt_cv_dlopen_self=no
9820 rm -fr conftest*
9824 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9825 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9827 if test "x$lt_cv_dlopen_self" = xyes; then
9828 LDFLAGS="$LDFLAGS $link_static_flag"
9829 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9830 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9831 if test "${lt_cv_dlopen_self_static+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 if test "$cross_compiling" = yes; then :
9835 lt_cv_dlopen_self_static=cross
9836 else
9837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9838 lt_status=$lt_dlunknown
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9840 "configure"
9841 #include "confdefs.h"
9843 #if HAVE_DLFCN_H
9844 #include <dlfcn.h>
9845 #endif
9847 #include <stdio.h>
9849 #ifdef RTLD_GLOBAL
9850 # define LT_DLGLOBAL RTLD_GLOBAL
9851 #else
9852 # ifdef DL_GLOBAL
9853 # define LT_DLGLOBAL DL_GLOBAL
9854 # else
9855 # define LT_DLGLOBAL 0
9856 # endif
9857 #endif
9859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9860 find out it does not work in some platform. */
9861 #ifndef LT_DLLAZY_OR_NOW
9862 # ifdef RTLD_LAZY
9863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9864 # else
9865 # ifdef DL_LAZY
9866 # define LT_DLLAZY_OR_NOW DL_LAZY
9867 # else
9868 # ifdef RTLD_NOW
9869 # define LT_DLLAZY_OR_NOW RTLD_NOW
9870 # else
9871 # ifdef DL_NOW
9872 # define LT_DLLAZY_OR_NOW DL_NOW
9873 # else
9874 # define LT_DLLAZY_OR_NOW 0
9875 # endif
9876 # endif
9877 # endif
9878 # endif
9879 #endif
9881 #ifdef __cplusplus
9882 extern "C" void exit (int);
9883 #endif
9885 void fnord() { int i=42;}
9886 int main ()
9888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9889 int status = $lt_dlunknown;
9891 if (self)
9893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9894 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9895 /* dlclose (self); */
9898 exit (status);
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9906 (./conftest; exit; ) >&5 2>/dev/null
9907 lt_status=$?
9908 case x$lt_status in
9909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9911 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9912 esac
9913 else :
9914 # compilation failed
9915 lt_cv_dlopen_self_static=no
9918 rm -fr conftest*
9922 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9923 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9926 CPPFLAGS="$save_CPPFLAGS"
9927 LDFLAGS="$save_LDFLAGS"
9928 LIBS="$save_LIBS"
9930 esac
9932 case $lt_cv_dlopen_self in
9933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9934 *) enable_dlopen_self=unknown ;;
9935 esac
9937 case $lt_cv_dlopen_self_static in
9938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9939 *) enable_dlopen_self_static=unknown ;;
9940 esac
9944 # Report which librarie types wil actually be built
9945 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9946 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9947 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9948 echo "${ECHO_T}$can_build_shared" >&6; }
9950 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9951 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9952 test "$can_build_shared" = "no" && enable_shared=no
9954 # On AIX, shared libraries and static libraries use the same namespace, and
9955 # are all built from PIC.
9956 case $host_os in
9957 aix3*)
9958 test "$enable_shared" = yes && enable_static=no
9959 if test -n "$RANLIB"; then
9960 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9961 postinstall_cmds='$RANLIB $lib'
9965 aix4* | aix5*)
9966 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9967 test "$enable_shared" = yes && enable_static=no
9970 esac
9971 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9972 echo "${ECHO_T}$enable_shared" >&6; }
9974 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9975 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9976 # Make sure either enable_shared or enable_static is yes.
9977 test "$enable_shared" = yes || enable_static=yes
9978 { echo "$as_me:$LINENO: result: $enable_static" >&5
9979 echo "${ECHO_T}$enable_static" >&6; }
9981 # The else clause should only fire when bootstrapping the
9982 # libtool distribution, otherwise you forgot to ship ltmain.sh
9983 # with your package, and you will get complaints that there are
9984 # no rules to generate ltmain.sh.
9985 if test -f "$ltmain"; then
9986 # See if we are running on zsh, and set the options which allow our commands through
9987 # without removal of \ escapes.
9988 if test -n "${ZSH_VERSION+set}" ; then
9989 setopt NO_GLOB_SUBST
9991 # Now quote all the things that may contain metacharacters while being
9992 # careful not to overquote the AC_SUBSTed values. We take copies of the
9993 # variables and quote the copies for generation of the libtool script.
9994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9995 SED SHELL STRIP \
9996 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9997 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9998 deplibs_check_method reload_flag reload_cmds need_locks \
9999 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10000 lt_cv_sys_global_symbol_to_c_name_address \
10001 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10002 old_postinstall_cmds old_postuninstall_cmds \
10003 compiler \
10004 CC \
10005 LD \
10006 lt_prog_compiler_wl \
10007 lt_prog_compiler_pic \
10008 lt_prog_compiler_static \
10009 lt_prog_compiler_no_builtin_flag \
10010 export_dynamic_flag_spec \
10011 thread_safe_flag_spec \
10012 whole_archive_flag_spec \
10013 enable_shared_with_static_runtimes \
10014 old_archive_cmds \
10015 old_archive_from_new_cmds \
10016 predep_objects \
10017 postdep_objects \
10018 predeps \
10019 postdeps \
10020 compiler_lib_search_path \
10021 archive_cmds \
10022 archive_expsym_cmds \
10023 postinstall_cmds \
10024 postuninstall_cmds \
10025 old_archive_from_expsyms_cmds \
10026 allow_undefined_flag \
10027 no_undefined_flag \
10028 export_symbols_cmds \
10029 hardcode_libdir_flag_spec \
10030 hardcode_libdir_flag_spec_ld \
10031 hardcode_libdir_separator \
10032 hardcode_automatic \
10033 module_cmds \
10034 module_expsym_cmds \
10035 lt_cv_prog_compiler_c_o \
10036 exclude_expsyms \
10037 include_expsyms; do
10039 case $var in
10040 old_archive_cmds | \
10041 old_archive_from_new_cmds | \
10042 archive_cmds | \
10043 archive_expsym_cmds | \
10044 module_cmds | \
10045 module_expsym_cmds | \
10046 old_archive_from_expsyms_cmds | \
10047 export_symbols_cmds | \
10048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10049 postinstall_cmds | postuninstall_cmds | \
10050 old_postinstall_cmds | old_postuninstall_cmds | \
10051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10052 # Double-quote double-evaled strings.
10053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10058 esac
10059 done
10061 case $lt_echo in
10062 *'\$0 --fallback-echo"')
10063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10065 esac
10067 cfgfile="${ofile}T"
10068 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10069 $rm -f "$cfgfile"
10070 { echo "$as_me:$LINENO: creating $ofile" >&5
10071 echo "$as_me: creating $ofile" >&6;}
10073 cat <<__EOF__ >> "$cfgfile"
10074 #! $SHELL
10076 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10077 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10078 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10080 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10081 # Free Software Foundation, Inc.
10083 # This file is part of GNU Libtool:
10084 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10086 # This program is free software; you can redistribute it and/or modify
10087 # it under the terms of the GNU General Public License as published by
10088 # the Free Software Foundation; either version 2 of the License, or
10089 # (at your option) any later version.
10091 # This program is distributed in the hope that it will be useful, but
10092 # WITHOUT ANY WARRANTY; without even the implied warranty of
10093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10094 # General Public License for more details.
10096 # You should have received a copy of the GNU General Public License
10097 # along with this program; if not, write to the Free Software
10098 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10100 # As a special exception to the GNU General Public License, if you
10101 # distribute this file as part of a program that contains a
10102 # configuration script generated by Autoconf, you may include it under
10103 # the same distribution terms that you use for the rest of that program.
10105 # A sed program that does not truncate output.
10106 SED=$lt_SED
10108 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10109 Xsed="$SED -e 1s/^X//"
10111 # The HP-UX ksh and POSIX shell print the target directory to stdout
10112 # if CDPATH is set.
10113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10115 # The names of the tagged configurations supported by this script.
10116 available_tags=
10118 # ### BEGIN LIBTOOL CONFIG
10120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10122 # Shell to use when invoking shell scripts.
10123 SHELL=$lt_SHELL
10125 # Whether or not to build shared libraries.
10126 build_libtool_libs=$enable_shared
10128 # Whether or not to build static libraries.
10129 build_old_libs=$enable_static
10131 # Whether or not to add -lc for building shared libraries.
10132 build_libtool_need_lc=$archive_cmds_need_lc
10134 # Whether or not to disallow shared libs when runtime libs are static
10135 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10137 # Whether or not to optimize for fast installation.
10138 fast_install=$enable_fast_install
10140 # The host system.
10141 host_alias=$host_alias
10142 host=$host
10143 host_os=$host_os
10145 # The build system.
10146 build_alias=$build_alias
10147 build=$build
10148 build_os=$build_os
10150 # An echo program that does not interpret backslashes.
10151 echo=$lt_echo
10153 # The archiver.
10154 AR=$lt_AR
10155 AR_FLAGS=$lt_AR_FLAGS
10157 # A C compiler.
10158 LTCC=$lt_LTCC
10160 # A language-specific compiler.
10161 CC=$lt_compiler
10163 # Is the compiler the GNU C compiler?
10164 with_gcc=$GCC
10166 # An ERE matcher.
10167 EGREP=$lt_EGREP
10169 # The linker used to build libraries.
10170 LD=$lt_LD
10172 # Whether we need hard or soft links.
10173 LN_S=$lt_LN_S
10175 # A BSD-compatible nm program.
10176 NM=$lt_NM
10178 # A symbol stripping program
10179 STRIP=$lt_STRIP
10181 # Used to examine libraries when file_magic_cmd begins "file"
10182 MAGIC_CMD=$MAGIC_CMD
10184 # Used on cygwin: DLL creation program.
10185 DLLTOOL="$DLLTOOL"
10187 # Used on cygwin: object dumper.
10188 OBJDUMP="$OBJDUMP"
10190 # Used on cygwin: assembler.
10191 AS="$AS"
10193 # The name of the directory that contains temporary libtool files.
10194 objdir=$objdir
10196 # How to create reloadable object files.
10197 reload_flag=$lt_reload_flag
10198 reload_cmds=$lt_reload_cmds
10200 # How to pass a linker flag through the compiler.
10201 wl=$lt_lt_prog_compiler_wl
10203 # Object file suffix (normally "o").
10204 objext="$ac_objext"
10206 # Old archive suffix (normally "a").
10207 libext="$libext"
10209 # Shared library suffix (normally ".so").
10210 shrext_cmds='$shrext_cmds'
10212 # Executable file suffix (normally "").
10213 exeext="$exeext"
10215 # Additional compiler flags for building library objects.
10216 pic_flag=$lt_lt_prog_compiler_pic
10217 pic_mode=$pic_mode
10219 # What is the maximum length of a command?
10220 max_cmd_len=$lt_cv_sys_max_cmd_len
10222 # Does compiler simultaneously support -c and -o options?
10223 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10225 # Must we lock files when doing compilation?
10226 need_locks=$lt_need_locks
10228 # Do we need the lib prefix for modules?
10229 need_lib_prefix=$need_lib_prefix
10231 # Do we need a version for libraries?
10232 need_version=$need_version
10234 # Whether dlopen is supported.
10235 dlopen_support=$enable_dlopen
10237 # Whether dlopen of programs is supported.
10238 dlopen_self=$enable_dlopen_self
10240 # Whether dlopen of statically linked programs is supported.
10241 dlopen_self_static=$enable_dlopen_self_static
10243 # Compiler flag to prevent dynamic linking.
10244 link_static_flag=$lt_lt_prog_compiler_static
10246 # Compiler flag to turn off builtin functions.
10247 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10249 # Compiler flag to allow reflexive dlopens.
10250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10252 # Compiler flag to generate shared objects directly from archives.
10253 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10255 # Compiler flag to generate thread-safe objects.
10256 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10258 # Library versioning type.
10259 version_type=$version_type
10261 # Format of library name prefix.
10262 libname_spec=$lt_libname_spec
10264 # List of archive names. First name is the real one, the rest are links.
10265 # The last name is the one that the linker finds with -lNAME.
10266 library_names_spec=$lt_library_names_spec
10268 # The coded name of the library, if different from the real name.
10269 soname_spec=$lt_soname_spec
10271 # Commands used to build and install an old-style archive.
10272 RANLIB=$lt_RANLIB
10273 old_archive_cmds=$lt_old_archive_cmds
10274 old_postinstall_cmds=$lt_old_postinstall_cmds
10275 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10277 # Create an old-style archive from a shared archive.
10278 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10280 # Create a temporary old-style archive to link instead of a shared archive.
10281 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10283 # Commands used to build and install a shared archive.
10284 archive_cmds=$lt_archive_cmds
10285 archive_expsym_cmds=$lt_archive_expsym_cmds
10286 postinstall_cmds=$lt_postinstall_cmds
10287 postuninstall_cmds=$lt_postuninstall_cmds
10289 # Commands used to build a loadable module (assumed same as above if empty)
10290 module_cmds=$lt_module_cmds
10291 module_expsym_cmds=$lt_module_expsym_cmds
10293 # Commands to strip libraries.
10294 old_striplib=$lt_old_striplib
10295 striplib=$lt_striplib
10297 # Dependencies to place before the objects being linked to create a
10298 # shared library.
10299 predep_objects=$lt_predep_objects
10301 # Dependencies to place after the objects being linked to create a
10302 # shared library.
10303 postdep_objects=$lt_postdep_objects
10305 # Dependencies to place before the objects being linked to create a
10306 # shared library.
10307 predeps=$lt_predeps
10309 # Dependencies to place after the objects being linked to create a
10310 # shared library.
10311 postdeps=$lt_postdeps
10313 # The library search path used internally by the compiler when linking
10314 # a shared library.
10315 compiler_lib_search_path=$lt_compiler_lib_search_path
10317 # Method to check whether dependent libraries are shared objects.
10318 deplibs_check_method=$lt_deplibs_check_method
10320 # Command to use when deplibs_check_method == file_magic.
10321 file_magic_cmd=$lt_file_magic_cmd
10323 # Flag that allows shared libraries with undefined symbols to be built.
10324 allow_undefined_flag=$lt_allow_undefined_flag
10326 # Flag that forces no undefined symbols.
10327 no_undefined_flag=$lt_no_undefined_flag
10329 # Commands used to finish a libtool library installation in a directory.
10330 finish_cmds=$lt_finish_cmds
10332 # Same as above, but a single script fragment to be evaled but not shown.
10333 finish_eval=$lt_finish_eval
10335 # Take the output of nm and produce a listing of raw symbols and C names.
10336 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10338 # Transform the output of nm in a proper C declaration
10339 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10341 # Transform the output of nm in a C name address pair
10342 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10344 # This is the shared library runtime path variable.
10345 runpath_var=$runpath_var
10347 # This is the shared library path variable.
10348 shlibpath_var=$shlibpath_var
10350 # Is shlibpath searched before the hard-coded library search path?
10351 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10353 # How to hardcode a shared library path into an executable.
10354 hardcode_action=$hardcode_action
10356 # Whether we should hardcode library paths into libraries.
10357 hardcode_into_libs=$hardcode_into_libs
10359 # Flag to hardcode \$libdir into a binary during linking.
10360 # This must work even if \$libdir does not exist.
10361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10363 # If ld is used when linking, flag to hardcode \$libdir into
10364 # a binary during linking. This must work even if \$libdir does
10365 # not exist.
10366 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10368 # Whether we need a single -rpath flag with a separated argument.
10369 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10371 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10372 # resulting binary.
10373 hardcode_direct=$hardcode_direct
10375 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10376 # resulting binary.
10377 hardcode_minus_L=$hardcode_minus_L
10379 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10380 # the resulting binary.
10381 hardcode_shlibpath_var=$hardcode_shlibpath_var
10383 # Set to yes if building a shared library automatically hardcodes DIR into the library
10384 # and all subsequent libraries and executables linked against it.
10385 hardcode_automatic=$hardcode_automatic
10387 # Variables whose values should be saved in libtool wrapper scripts and
10388 # restored at relink time.
10389 variables_saved_for_relink="$variables_saved_for_relink"
10391 # Whether libtool must link a program against all its dependency libraries.
10392 link_all_deplibs=$link_all_deplibs
10394 # Compile-time system search path for libraries
10395 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10397 # Run-time system search path for libraries
10398 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10400 # Fix the shell variable \$srcfile for the compiler.
10401 fix_srcfile_path="$fix_srcfile_path"
10403 # Set to yes if exported symbols are required.
10404 always_export_symbols=$always_export_symbols
10406 # The commands to list exported symbols.
10407 export_symbols_cmds=$lt_export_symbols_cmds
10409 # The commands to extract the exported symbol list from a shared archive.
10410 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10412 # Symbols that should not be listed in the preloaded symbols.
10413 exclude_expsyms=$lt_exclude_expsyms
10415 # Symbols that must always be exported.
10416 include_expsyms=$lt_include_expsyms
10418 # ### END LIBTOOL CONFIG
10420 __EOF__
10423 case $host_os in
10424 aix3*)
10425 cat <<\EOF >> "$cfgfile"
10427 # AIX sometimes has problems with the GCC collect2 program. For some
10428 # reason, if we set the COLLECT_NAMES environment variable, the problems
10429 # vanish in a puff of smoke.
10430 if test "X${COLLECT_NAMES+set}" != Xset; then
10431 COLLECT_NAMES=
10432 export COLLECT_NAMES
10436 esac
10438 # We use sed instead of cat because bash on DJGPP gets confused if
10439 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10440 # text mode, it properly converts lines to CR/LF. This bash problem
10441 # is reportedly fixed, but why not run on old versions too?
10442 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10444 mv -f "$cfgfile" "$ofile" || \
10445 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10446 chmod +x "$ofile"
10448 else
10449 # If there is no Makefile yet, we rely on a make rule to execute
10450 # `config.status --recheck' to rerun these tests and create the
10451 # libtool script then.
10452 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10453 if test -f "$ltmain_in"; then
10454 test -f Makefile && make "$ltmain"
10459 ac_ext=c
10460 ac_cpp='$CPP $CPPFLAGS'
10461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10465 CC="$lt_save_CC"
10468 # Check whether --with-tags was given.
10469 if test "${with_tags+set}" = set; then
10470 withval=$with_tags; tagnames="$withval"
10474 if test -f "$ltmain" && test -n "$tagnames"; then
10475 if test ! -f "${ofile}"; then
10476 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10477 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10480 if test -z "$LTCC"; then
10481 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10482 if test -z "$LTCC"; then
10483 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10484 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10485 else
10486 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10487 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10491 # Extract list of available tagged configurations in $ofile.
10492 # Note that this assumes the entire list is on one line.
10493 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10496 for tagname in $tagnames; do
10497 IFS="$lt_save_ifs"
10498 # Check whether tagname contains only valid characters
10499 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10500 "") ;;
10501 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10502 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10503 { (exit 1); exit 1; }; }
10505 esac
10507 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10508 then
10509 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10510 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10511 { (exit 1); exit 1; }; }
10514 # Update the list of available tags.
10515 if test -n "$tagname"; then
10516 echo appending configuration tag \"$tagname\" to $ofile
10518 case $tagname in
10519 CXX)
10520 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10521 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10522 (test "X$CXX" != "Xg++"))) ; then
10523 ac_ext=cpp
10524 ac_cpp='$CXXCPP $CPPFLAGS'
10525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10532 archive_cmds_need_lc_CXX=no
10533 allow_undefined_flag_CXX=
10534 always_export_symbols_CXX=no
10535 archive_expsym_cmds_CXX=
10536 export_dynamic_flag_spec_CXX=
10537 hardcode_direct_CXX=no
10538 hardcode_libdir_flag_spec_CXX=
10539 hardcode_libdir_flag_spec_ld_CXX=
10540 hardcode_libdir_separator_CXX=
10541 hardcode_minus_L_CXX=no
10542 hardcode_automatic_CXX=no
10543 module_cmds_CXX=
10544 module_expsym_cmds_CXX=
10545 link_all_deplibs_CXX=unknown
10546 old_archive_cmds_CXX=$old_archive_cmds
10547 no_undefined_flag_CXX=
10548 whole_archive_flag_spec_CXX=
10549 enable_shared_with_static_runtimes_CXX=no
10551 # Dependencies to place before and after the object being linked:
10552 predep_objects_CXX=
10553 postdep_objects_CXX=
10554 predeps_CXX=
10555 postdeps_CXX=
10556 compiler_lib_search_path_CXX=
10558 # Source file extension for C++ test sources.
10559 ac_ext=cpp
10561 # Object file extension for compiled C++ test sources.
10562 objext=o
10563 objext_CXX=$objext
10565 # Code to be used in simple compile tests
10566 lt_simple_compile_test_code="int some_variable = 0;\n"
10568 # Code to be used in simple link tests
10569 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10571 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10573 # If no C compiler was specified, use CC.
10574 LTCC=${LTCC-"$CC"}
10576 # Allow CC to be a program name with arguments.
10577 compiler=$CC
10580 # save warnings/boilerplate of simple test code
10581 ac_outfile=conftest.$ac_objext
10582 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10584 _lt_compiler_boilerplate=`cat conftest.err`
10585 $rm conftest*
10587 ac_outfile=conftest.$ac_objext
10588 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10590 _lt_linker_boilerplate=`cat conftest.err`
10591 $rm conftest*
10594 # Allow CC to be a program name with arguments.
10595 lt_save_CC=$CC
10596 lt_save_LD=$LD
10597 lt_save_GCC=$GCC
10598 GCC=$GXX
10599 lt_save_with_gnu_ld=$with_gnu_ld
10600 lt_save_path_LD=$lt_cv_path_LD
10601 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10602 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10603 else
10604 unset lt_cv_prog_gnu_ld
10606 if test -n "${lt_cv_path_LDCXX+set}"; then
10607 lt_cv_path_LD=$lt_cv_path_LDCXX
10608 else
10609 unset lt_cv_path_LD
10611 test -z "${LDCXX+set}" || LD=$LDCXX
10612 CC=${CXX-"c++"}
10613 compiler=$CC
10614 compiler_CXX=$CC
10615 for cc_temp in $compiler""; do
10616 case $cc_temp in
10617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10619 \-*) ;;
10620 *) break;;
10621 esac
10622 done
10623 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10626 # We don't want -fno-exception wen compiling C++ code, so set the
10627 # no_builtin_flag separately
10628 if test "$GXX" = yes; then
10629 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10630 else
10631 lt_prog_compiler_no_builtin_flag_CXX=
10634 if test "$GXX" = yes; then
10635 # Set up default GNU C++ configuration
10638 # Check whether --with-gnu-ld was given.
10639 if test "${with_gnu_ld+set}" = set; then
10640 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10641 else
10642 with_gnu_ld=no
10645 ac_prog=ld
10646 if test "$GCC" = yes; then
10647 # Check if gcc -print-prog-name=ld gives a path.
10648 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10649 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10650 case $host in
10651 *-*-mingw*)
10652 # gcc leaves a trailing carriage return which upsets mingw
10653 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10655 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10656 esac
10657 case $ac_prog in
10658 # Accept absolute paths.
10659 [\\/]* | ?:[\\/]*)
10660 re_direlt='/[^/][^/]*/\.\./'
10661 # Canonicalize the pathname of ld
10662 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10663 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10664 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10665 done
10666 test -z "$LD" && LD="$ac_prog"
10669 # If it fails, then pretend we aren't using GCC.
10670 ac_prog=ld
10673 # If it is relative, then search for the first ld in PATH.
10674 with_gnu_ld=unknown
10676 esac
10677 elif test "$with_gnu_ld" = yes; then
10678 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10679 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10680 else
10681 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10682 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10684 if test "${lt_cv_path_LD+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687 if test -z "$LD"; then
10688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10689 for ac_dir in $PATH; do
10690 IFS="$lt_save_ifs"
10691 test -z "$ac_dir" && ac_dir=.
10692 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10693 lt_cv_path_LD="$ac_dir/$ac_prog"
10694 # Check to see if the program is GNU ld. I'd rather use --version,
10695 # but apparently some variants of GNU ld only accept -v.
10696 # Break only if it was the GNU/non-GNU ld that we prefer.
10697 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10698 *GNU* | *'with BFD'*)
10699 test "$with_gnu_ld" != no && break
10702 test "$with_gnu_ld" != yes && break
10704 esac
10706 done
10707 IFS="$lt_save_ifs"
10708 else
10709 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10713 LD="$lt_cv_path_LD"
10714 if test -n "$LD"; then
10715 { echo "$as_me:$LINENO: result: $LD" >&5
10716 echo "${ECHO_T}$LD" >&6; }
10717 else
10718 { echo "$as_me:$LINENO: result: no" >&5
10719 echo "${ECHO_T}no" >&6; }
10721 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10722 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10723 { (exit 1); exit 1; }; }
10724 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10725 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10726 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10730 case `$LD -v 2>&1 </dev/null` in
10731 *GNU* | *'with BFD'*)
10732 lt_cv_prog_gnu_ld=yes
10735 lt_cv_prog_gnu_ld=no
10737 esac
10739 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10740 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10741 with_gnu_ld=$lt_cv_prog_gnu_ld
10745 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10746 # archiving commands below assume that GNU ld is being used.
10747 if test "$with_gnu_ld" = yes; then
10748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10749 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'
10751 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10752 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10754 # If archive_cmds runs LD, not CC, wlarc should be empty
10755 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10756 # investigate it a little bit more. (MM)
10757 wlarc='${wl}'
10759 # ancient GNU ld didn't support --whole-archive et. al.
10760 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10761 grep 'no-whole-archive' > /dev/null; then
10762 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10763 else
10764 whole_archive_flag_spec_CXX=
10766 else
10767 with_gnu_ld=no
10768 wlarc=
10770 # A generic and very simple default shared library creation
10771 # command for GNU C++ for the case where it uses the native
10772 # linker, instead of GNU ld. If possible, this setting should
10773 # overridden to take advantage of the native linker features on
10774 # the platform it is being used on.
10775 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10778 # Commands to make compiler produce verbose output that lists
10779 # what "hidden" libraries, object files and flags are used when
10780 # linking a shared library.
10781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10783 else
10784 GXX=no
10785 with_gnu_ld=no
10786 wlarc=
10789 # PORTME: fill in a description of your system's C++ link characteristics
10790 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10791 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10792 ld_shlibs_CXX=yes
10793 case $host_os in
10794 aix3*)
10795 # FIXME: insert proper C++ library support
10796 ld_shlibs_CXX=no
10798 aix4* | aix5*)
10799 if test "$host_cpu" = ia64; then
10800 # On IA64, the linker does run time linking by default, so we don't
10801 # have to do anything special.
10802 aix_use_runtimelinking=no
10803 exp_sym_flag='-Bexport'
10804 no_entry_flag=""
10805 else
10806 aix_use_runtimelinking=no
10808 # Test if we are trying to use run time linking or normal
10809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10810 # need to do runtime linking.
10811 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10812 for ld_flag in $LDFLAGS; do
10813 case $ld_flag in
10814 *-brtl*)
10815 aix_use_runtimelinking=yes
10816 break
10818 esac
10819 done
10820 esac
10822 exp_sym_flag='-bexport'
10823 no_entry_flag='-bnoentry'
10826 # When large executables or shared objects are built, AIX ld can
10827 # have problems creating the table of contents. If linking a library
10828 # or program results in "error TOC overflow" add -mminimal-toc to
10829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10832 archive_cmds_CXX=''
10833 hardcode_direct_CXX=yes
10834 hardcode_libdir_separator_CXX=':'
10835 link_all_deplibs_CXX=yes
10837 if test "$GXX" = yes; then
10838 case $host_os in aix4.[012]|aix4.[012].*)
10839 # We only want to do this on AIX 4.2 and lower, the check
10840 # below for broken collect2 doesn't work under 4.3+
10841 collect2name=`${CC} -print-prog-name=collect2`
10842 if test -f "$collect2name" && \
10843 strings "$collect2name" | grep resolve_lib_name >/dev/null
10844 then
10845 # We have reworked collect2
10846 hardcode_direct_CXX=yes
10847 else
10848 # We have old collect2
10849 hardcode_direct_CXX=unsupported
10850 # It fails to find uninstalled libraries when the uninstalled
10851 # path is not listed in the libpath. Setting hardcode_minus_L
10852 # to unsupported forces relinking
10853 hardcode_minus_L_CXX=yes
10854 hardcode_libdir_flag_spec_CXX='-L$libdir'
10855 hardcode_libdir_separator_CXX=
10857 esac
10858 shared_flag='-shared'
10859 if test "$aix_use_runtimelinking" = yes; then
10860 shared_flag="$shared_flag "'${wl}-G'
10862 else
10863 # not using gcc
10864 if test "$host_cpu" = ia64; then
10865 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10866 # chokes on -Wl,-G. The following line is correct:
10867 shared_flag='-G'
10868 else
10869 if test "$aix_use_runtimelinking" = yes; then
10870 shared_flag='${wl}-G'
10871 else
10872 shared_flag='${wl}-bM:SRE'
10877 # It seems that -bexpall does not export symbols beginning with
10878 # underscore (_), so it is better to generate a list of symbols to export.
10879 always_export_symbols_CXX=yes
10880 if test "$aix_use_runtimelinking" = yes; then
10881 # Warning - without using the other runtime loading flags (-brtl),
10882 # -berok will link without error, but may produce a broken library.
10883 allow_undefined_flag_CXX='-berok'
10884 # Determine the default libpath from the value encoded in an empty executable.
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10893 main ()
10897 return 0;
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_link") 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_cxx_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest$ac_exeext &&
10917 $as_test_x conftest$ac_exeext; then
10919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10921 # Check for a 64-bit object if we didn't find anything.
10922 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10923 }'`; fi
10924 else
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10937 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10938 else
10939 if test "$host_cpu" = ia64; then
10940 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10941 allow_undefined_flag_CXX="-z nodefs"
10942 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10943 else
10944 # Determine the default libpath from the value encoded in an empty executable.
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10953 main ()
10957 return 0;
10959 _ACEOF
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965 esac
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_link") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_cxx_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest$ac_exeext &&
10977 $as_test_x conftest$ac_exeext; then
10979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10981 # Check for a 64-bit object if we didn't find anything.
10982 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10983 }'`; fi
10984 else
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992 conftest$ac_exeext conftest.$ac_ext
10993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10995 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10996 # Warning - without using the other run time loading flags,
10997 # -berok will link without error, but may produce a broken library.
10998 no_undefined_flag_CXX=' ${wl}-bernotok'
10999 allow_undefined_flag_CXX=' ${wl}-berok'
11000 # -bexpall does not export symbols beginning with underscore (_)
11001 always_export_symbols_CXX=yes
11002 # Exported symbols can be pulled into shared objects from archives
11003 whole_archive_flag_spec_CXX=' '
11004 archive_cmds_need_lc_CXX=yes
11005 # This is similar to how AIX traditionally builds its shared libraries.
11006 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11010 chorus*)
11011 case $cc_basename in
11013 # FIXME: insert proper C++ library support
11014 ld_shlibs_CXX=no
11016 esac
11020 cygwin* | mingw* | pw32*)
11021 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11022 # as there is no search path for DLLs.
11023 hardcode_libdir_flag_spec_CXX='-L$libdir'
11024 allow_undefined_flag_CXX=unsupported
11025 always_export_symbols_CXX=no
11026 enable_shared_with_static_runtimes_CXX=yes
11028 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11029 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11030 # If the export-symbols file already is a .def file (1st line
11031 # is EXPORTS), use it as is; otherwise, prepend...
11032 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11033 cp $export_symbols $output_objdir/$soname.def;
11034 else
11035 echo EXPORTS > $output_objdir/$soname.def;
11036 cat $export_symbols >> $output_objdir/$soname.def;
11038 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11039 else
11040 ld_shlibs_CXX=no
11043 darwin* | rhapsody*)
11044 case $host_os in
11045 rhapsody* | darwin1.[012])
11046 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11048 *) # Darwin 1.3 on
11049 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11050 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11051 else
11052 case ${MACOSX_DEPLOYMENT_TARGET} in
11053 10.[012])
11054 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11056 10.*)
11057 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11059 esac
11062 esac
11063 archive_cmds_need_lc_CXX=no
11064 hardcode_direct_CXX=no
11065 hardcode_automatic_CXX=yes
11066 hardcode_shlibpath_var_CXX=unsupported
11067 whole_archive_flag_spec_CXX=''
11068 link_all_deplibs_CXX=yes
11070 if test "$GXX" = yes ; then
11071 lt_int_apple_cc_single_mod=no
11072 output_verbose_link_cmd='echo'
11073 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11074 lt_int_apple_cc_single_mod=yes
11076 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11077 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11078 else
11079 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'
11081 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11082 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11083 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11084 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}'
11085 else
11086 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}'
11088 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}'
11089 else
11090 case $cc_basename in
11091 xlc*)
11092 output_verbose_link_cmd='echo'
11093 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11094 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11095 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11096 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11097 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}'
11100 ld_shlibs_CXX=no
11102 esac
11106 dgux*)
11107 case $cc_basename in
11108 ec++*)
11109 # FIXME: insert proper C++ library support
11110 ld_shlibs_CXX=no
11112 ghcx*)
11113 # Green Hills C++ Compiler
11114 # FIXME: insert proper C++ library support
11115 ld_shlibs_CXX=no
11118 # FIXME: insert proper C++ library support
11119 ld_shlibs_CXX=no
11121 esac
11123 freebsd[12]*)
11124 # C++ shared libraries reported to be fairly broken before switch to ELF
11125 ld_shlibs_CXX=no
11127 freebsd-elf*)
11128 archive_cmds_need_lc_CXX=no
11130 freebsd* | kfreebsd*-gnu | dragonfly*)
11131 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11132 # conventions
11133 ld_shlibs_CXX=yes
11135 gnu*)
11137 hpux9*)
11138 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11139 hardcode_libdir_separator_CXX=:
11140 export_dynamic_flag_spec_CXX='${wl}-E'
11141 hardcode_direct_CXX=yes
11142 hardcode_minus_L_CXX=yes # Not in the search PATH,
11143 # but as the default
11144 # location of the library.
11146 case $cc_basename in
11147 CC*)
11148 # FIXME: insert proper C++ library support
11149 ld_shlibs_CXX=no
11151 aCC*)
11152 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'
11153 # Commands to make compiler produce verbose output that lists
11154 # what "hidden" libraries, object files and flags are used when
11155 # linking a shared library.
11157 # There doesn't appear to be a way to prevent this compiler from
11158 # explicitly linking system object files so we need to strip them
11159 # from the output so that they don't get included in the library
11160 # dependencies.
11161 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'
11164 if test "$GXX" = yes; then
11165 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'
11166 else
11167 # FIXME: insert proper C++ library support
11168 ld_shlibs_CXX=no
11171 esac
11173 hpux10*|hpux11*)
11174 if test $with_gnu_ld = no; then
11175 case $host_cpu in
11176 hppa*64*)
11177 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11178 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11179 hardcode_libdir_separator_CXX=:
11181 ia64*)
11182 hardcode_libdir_flag_spec_CXX='-L$libdir'
11185 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11186 hardcode_libdir_separator_CXX=:
11187 export_dynamic_flag_spec_CXX='${wl}-E'
11189 esac
11191 case $host_cpu in
11192 hppa*64*)
11193 hardcode_direct_CXX=no
11194 hardcode_shlibpath_var_CXX=no
11196 ia64*)
11197 hardcode_direct_CXX=no
11198 hardcode_shlibpath_var_CXX=no
11199 hardcode_minus_L_CXX=yes # Not in the search PATH,
11200 # but as the default
11201 # location of the library.
11204 hardcode_direct_CXX=yes
11205 hardcode_minus_L_CXX=yes # Not in the search PATH,
11206 # but as the default
11207 # location of the library.
11209 esac
11211 case $cc_basename in
11212 CC*)
11213 # FIXME: insert proper C++ library support
11214 ld_shlibs_CXX=no
11216 aCC*)
11217 case $host_cpu in
11218 hppa*64*|ia64*)
11219 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11222 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11224 esac
11225 # Commands to make compiler produce verbose output that lists
11226 # what "hidden" libraries, object files and flags are used when
11227 # linking a shared library.
11229 # There doesn't appear to be a way to prevent this compiler from
11230 # explicitly linking system object files so we need to strip them
11231 # from the output so that they don't get included in the library
11232 # dependencies.
11233 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'
11236 if test "$GXX" = yes; then
11237 if test $with_gnu_ld = no; then
11238 case $host_cpu in
11239 ia64*|hppa*64*)
11240 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11243 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'
11245 esac
11247 else
11248 # FIXME: insert proper C++ library support
11249 ld_shlibs_CXX=no
11252 esac
11254 irix5* | irix6*)
11255 case $cc_basename in
11256 CC*)
11257 # SGI C++
11258 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'
11260 # Archives containing C++ object files must be created using
11261 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11262 # necessary to make sure instantiated templates are included
11263 # in the archive.
11264 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11267 if test "$GXX" = yes; then
11268 if test "$with_gnu_ld" = no; then
11269 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'
11270 else
11271 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'
11274 link_all_deplibs_CXX=yes
11276 esac
11277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11278 hardcode_libdir_separator_CXX=:
11280 linux*)
11281 case $cc_basename in
11282 KCC*)
11283 # Kuck and Associates, Inc. (KAI) C++ Compiler
11285 # KCC will only create a shared library if the output file
11286 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11287 # to its proper name (with version) after linking.
11288 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'
11289 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'
11290 # Commands to make compiler produce verbose output that lists
11291 # what "hidden" libraries, object files and flags are used when
11292 # linking a shared library.
11294 # There doesn't appear to be a way to prevent this compiler from
11295 # explicitly linking system object files so we need to strip them
11296 # from the output so that they don't get included in the library
11297 # dependencies.
11298 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'
11300 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11301 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11303 # Archives containing C++ object files must be created using
11304 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11305 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11307 icpc*)
11308 # Intel C++
11309 with_gnu_ld=yes
11310 # version 8.0 and above of icpc choke on multiply defined symbols
11311 # if we add $predep_objects and $postdep_objects, however 7.1 and
11312 # earlier do not add the objects themselves.
11313 case `$CC -V 2>&1` in
11314 *"Version 7."*)
11315 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11316 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'
11318 *) # Version 8.0 or newer
11319 tmp_idyn=
11320 case $host_cpu in
11321 ia64*) tmp_idyn=' -i_dynamic';;
11322 esac
11323 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11324 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'
11326 esac
11327 archive_cmds_need_lc_CXX=no
11328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11330 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11332 pgCC*)
11333 # Portland Group C++ compiler
11334 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11335 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'
11337 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11338 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11339 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'
11341 cxx*)
11342 # Compaq C++
11343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11344 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'
11346 runpath_var=LD_RUN_PATH
11347 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11348 hardcode_libdir_separator_CXX=:
11350 # Commands to make compiler produce verbose output that lists
11351 # what "hidden" libraries, object files and flags are used when
11352 # linking a shared library.
11354 # There doesn't appear to be a way to prevent this compiler from
11355 # explicitly linking system object files so we need to strip them
11356 # from the output so that they don't get included in the library
11357 # dependencies.
11358 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'
11360 esac
11362 lynxos*)
11363 # FIXME: insert proper C++ library support
11364 ld_shlibs_CXX=no
11366 m88k*)
11367 # FIXME: insert proper C++ library support
11368 ld_shlibs_CXX=no
11370 mvs*)
11371 case $cc_basename in
11372 cxx*)
11373 # FIXME: insert proper C++ library support
11374 ld_shlibs_CXX=no
11377 # FIXME: insert proper C++ library support
11378 ld_shlibs_CXX=no
11380 esac
11382 netbsd*)
11383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11384 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11385 wlarc=
11386 hardcode_libdir_flag_spec_CXX='-R$libdir'
11387 hardcode_direct_CXX=yes
11388 hardcode_shlibpath_var_CXX=no
11390 # Workaround some broken pre-1.5 toolchains
11391 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11393 openbsd2*)
11394 # C++ shared libraries are fairly broken
11395 ld_shlibs_CXX=no
11397 openbsd*)
11398 hardcode_direct_CXX=yes
11399 hardcode_shlibpath_var_CXX=no
11400 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11403 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11404 export_dynamic_flag_spec_CXX='${wl}-E'
11405 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11407 output_verbose_link_cmd='echo'
11409 osf3*)
11410 case $cc_basename in
11411 KCC*)
11412 # Kuck and Associates, Inc. (KAI) C++ Compiler
11414 # KCC will only create a shared library if the output file
11415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11416 # to its proper name (with version) after linking.
11417 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'
11419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11420 hardcode_libdir_separator_CXX=:
11422 # Archives containing C++ object files must be created using
11423 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11424 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11427 RCC*)
11428 # Rational C++ 2.4.1
11429 # FIXME: insert proper C++ library support
11430 ld_shlibs_CXX=no
11432 cxx*)
11433 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11434 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'
11436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11437 hardcode_libdir_separator_CXX=:
11439 # Commands to make compiler produce verbose output that lists
11440 # what "hidden" libraries, object files and flags are used when
11441 # linking a shared library.
11443 # There doesn't appear to be a way to prevent this compiler from
11444 # explicitly linking system object files so we need to strip them
11445 # from the output so that they don't get included in the library
11446 # dependencies.
11447 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'
11450 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11451 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11452 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'
11454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11455 hardcode_libdir_separator_CXX=:
11457 # Commands to make compiler produce verbose output that lists
11458 # what "hidden" libraries, object files and flags are used when
11459 # linking a shared library.
11460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11462 else
11463 # FIXME: insert proper C++ library support
11464 ld_shlibs_CXX=no
11467 esac
11469 osf4* | osf5*)
11470 case $cc_basename in
11471 KCC*)
11472 # Kuck and Associates, Inc. (KAI) C++ Compiler
11474 # KCC will only create a shared library if the output file
11475 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11476 # to its proper name (with version) after linking.
11477 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'
11479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11480 hardcode_libdir_separator_CXX=:
11482 # Archives containing C++ object files must be created using
11483 # the KAI C++ compiler.
11484 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11486 RCC*)
11487 # Rational C++ 2.4.1
11488 # FIXME: insert proper C++ library support
11489 ld_shlibs_CXX=no
11491 cxx*)
11492 allow_undefined_flag_CXX=' -expect_unresolved \*'
11493 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'
11494 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11495 echo "-hidden">> $lib.exp~
11496 $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~
11497 $rm $lib.exp'
11499 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11500 hardcode_libdir_separator_CXX=:
11502 # Commands to make compiler produce verbose output that lists
11503 # what "hidden" libraries, object files and flags are used when
11504 # linking a shared library.
11506 # There doesn't appear to be a way to prevent this compiler from
11507 # explicitly linking system object files so we need to strip them
11508 # from the output so that they don't get included in the library
11509 # dependencies.
11510 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'
11513 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11514 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11515 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'
11517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11518 hardcode_libdir_separator_CXX=:
11520 # Commands to make compiler produce verbose output that lists
11521 # what "hidden" libraries, object files and flags are used when
11522 # linking a shared library.
11523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11525 else
11526 # FIXME: insert proper C++ library support
11527 ld_shlibs_CXX=no
11530 esac
11532 psos*)
11533 # FIXME: insert proper C++ library support
11534 ld_shlibs_CXX=no
11536 sco*)
11537 archive_cmds_need_lc_CXX=no
11538 case $cc_basename in
11539 CC*)
11540 # FIXME: insert proper C++ library support
11541 ld_shlibs_CXX=no
11544 # FIXME: insert proper C++ library support
11545 ld_shlibs_CXX=no
11547 esac
11549 sunos4*)
11550 case $cc_basename in
11551 CC*)
11552 # Sun C++ 4.x
11553 # FIXME: insert proper C++ library support
11554 ld_shlibs_CXX=no
11556 lcc*)
11557 # Lucid
11558 # FIXME: insert proper C++ library support
11559 ld_shlibs_CXX=no
11562 # FIXME: insert proper C++ library support
11563 ld_shlibs_CXX=no
11565 esac
11567 solaris*)
11568 case $cc_basename in
11569 CC*)
11570 # Sun C++ 4.2, 5.x and Centerline C++
11571 archive_cmds_need_lc_CXX=yes
11572 no_undefined_flag_CXX=' -zdefs'
11573 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11574 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11575 $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'
11577 hardcode_libdir_flag_spec_CXX='-R$libdir'
11578 hardcode_shlibpath_var_CXX=no
11579 case $host_os in
11580 solaris2.[0-5] | solaris2.[0-5].*) ;;
11582 # The C++ compiler is used as linker so we must use $wl
11583 # flag to pass the commands to the underlying system
11584 # linker. We must also pass each convience library through
11585 # to the system linker between allextract/defaultextract.
11586 # The C++ compiler will combine linker options so we
11587 # cannot just pass the convience library names through
11588 # without $wl.
11589 # Supported since Solaris 2.6 (maybe 2.5.1?)
11590 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11592 esac
11593 link_all_deplibs_CXX=yes
11595 output_verbose_link_cmd='echo'
11597 # Archives containing C++ object files must be created using
11598 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11599 # necessary to make sure instantiated templates are included
11600 # in the archive.
11601 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11603 gcx*)
11604 # Green Hills C++ Compiler
11605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11607 # The C++ compiler must be used to create the archive.
11608 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11611 # GNU C++ compiler with Solaris linker
11612 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11613 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11614 if $CC --version | grep -v '^2\.7' > /dev/null; then
11615 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11616 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11617 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11619 # Commands to make compiler produce verbose output that lists
11620 # what "hidden" libraries, object files and flags are used when
11621 # linking a shared library.
11622 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11623 else
11624 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11625 # platform.
11626 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11627 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11628 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11630 # Commands to make compiler produce verbose output that lists
11631 # what "hidden" libraries, object files and flags are used when
11632 # linking a shared library.
11633 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11636 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11639 esac
11641 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11642 archive_cmds_need_lc_CXX=no
11644 tandem*)
11645 case $cc_basename in
11646 NCC*)
11647 # NonStop-UX NCC 3.20
11648 # FIXME: insert proper C++ library support
11649 ld_shlibs_CXX=no
11652 # FIXME: insert proper C++ library support
11653 ld_shlibs_CXX=no
11655 esac
11657 vxworks*)
11658 # FIXME: insert proper C++ library support
11659 ld_shlibs_CXX=no
11662 # FIXME: insert proper C++ library support
11663 ld_shlibs_CXX=no
11665 esac
11666 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11667 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11668 test "$ld_shlibs_CXX" = no && can_build_shared=no
11670 GCC_CXX="$GXX"
11671 LD_CXX="$LD"
11674 cat > conftest.$ac_ext <<EOF
11675 class Foo
11677 public:
11678 Foo (void) { a = 0; }
11679 private:
11680 int a;
11684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; then
11689 # Parse the compiler output and extract the necessary
11690 # objects, libraries and library flags.
11692 # Sentinel used to keep track of whether or not we are before
11693 # the conftest object file.
11694 pre_test_object_deps_done=no
11696 # The `*' in the case matches for architectures that use `case' in
11697 # $output_verbose_cmd can trigger glob expansion during the loop
11698 # eval without this substitution.
11699 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11701 for p in `eval $output_verbose_link_cmd`; do
11702 case $p in
11704 -L* | -R* | -l*)
11705 # Some compilers place space between "-{L,R}" and the path.
11706 # Remove the space.
11707 if test $p = "-L" \
11708 || test $p = "-R"; then
11709 prev=$p
11710 continue
11711 else
11712 prev=
11715 if test "$pre_test_object_deps_done" = no; then
11716 case $p in
11717 -L* | -R*)
11718 # Internal compiler library paths should come after those
11719 # provided the user. The postdeps already come after the
11720 # user supplied libs so there is no need to process them.
11721 if test -z "$compiler_lib_search_path_CXX"; then
11722 compiler_lib_search_path_CXX="${prev}${p}"
11723 else
11724 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11727 # The "-l" case would never come before the object being
11728 # linked, so don't bother handling this case.
11729 esac
11730 else
11731 if test -z "$postdeps_CXX"; then
11732 postdeps_CXX="${prev}${p}"
11733 else
11734 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11739 *.$objext)
11740 # This assumes that the test object file only shows up
11741 # once in the compiler output.
11742 if test "$p" = "conftest.$objext"; then
11743 pre_test_object_deps_done=yes
11744 continue
11747 if test "$pre_test_object_deps_done" = no; then
11748 if test -z "$predep_objects_CXX"; then
11749 predep_objects_CXX="$p"
11750 else
11751 predep_objects_CXX="$predep_objects_CXX $p"
11753 else
11754 if test -z "$postdep_objects_CXX"; then
11755 postdep_objects_CXX="$p"
11756 else
11757 postdep_objects_CXX="$postdep_objects_CXX $p"
11762 *) ;; # Ignore the rest.
11764 esac
11765 done
11767 # Clean up.
11768 rm -f a.out a.exe
11769 else
11770 echo "libtool.m4: error: problem compiling CXX test program"
11773 $rm -f confest.$objext
11775 # PORTME: override above test on systems where it is broken
11776 case $host_os in
11777 solaris*)
11778 case $cc_basename in
11779 CC*)
11780 # Adding this requires a known-good setup of shared libraries for
11781 # Sun compiler versions before 5.6, else PIC objects from an old
11782 # archive will be linked into the output, leading to subtle bugs.
11783 postdeps_CXX='-lCstd -lCrun'
11785 esac
11786 esac
11789 case " $postdeps_CXX " in
11790 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11791 esac
11793 lt_prog_compiler_wl_CXX=
11794 lt_prog_compiler_pic_CXX=
11795 lt_prog_compiler_static_CXX=
11797 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11798 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11800 # C++ specific cases for pic, static, wl, etc.
11801 if test "$GXX" = yes; then
11802 lt_prog_compiler_wl_CXX='-Wl,'
11803 lt_prog_compiler_static_CXX='-static'
11805 case $host_os in
11806 aix*)
11807 # All AIX code is PIC.
11808 if test "$host_cpu" = ia64; then
11809 # AIX 5 now supports IA64 processor
11810 lt_prog_compiler_static_CXX='-Bstatic'
11813 amigaos*)
11814 # FIXME: we need at least 68020 code to build shared libraries, but
11815 # adding the `-m68020' flag to GCC prevents building anything better,
11816 # like `-m68040'.
11817 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11819 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11820 # PIC is the default for these OSes.
11822 mingw* | os2* | pw32*)
11823 # This hack is so that the source file can tell whether it is being
11824 # built for inclusion in a dll (and should export symbols for example).
11825 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11827 darwin* | rhapsody*)
11828 # PIC is the default on this platform
11829 # Common symbols not allowed in MH_DYLIB files
11830 lt_prog_compiler_pic_CXX='-fno-common'
11832 *djgpp*)
11833 # DJGPP does not support shared libraries at all
11834 lt_prog_compiler_pic_CXX=
11836 sysv4*MP*)
11837 if test -d /usr/nec; then
11838 lt_prog_compiler_pic_CXX=-Kconform_pic
11841 hpux*)
11842 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11843 # not for PA HP-UX.
11844 case $host_cpu in
11845 hppa*64*|ia64*)
11848 lt_prog_compiler_pic_CXX='-fPIC'
11850 esac
11853 lt_prog_compiler_pic_CXX='-fPIC'
11855 esac
11856 else
11857 case $host_os in
11858 aix4* | aix5*)
11859 # All AIX code is PIC.
11860 if test "$host_cpu" = ia64; then
11861 # AIX 5 now supports IA64 processor
11862 lt_prog_compiler_static_CXX='-Bstatic'
11863 else
11864 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11867 chorus*)
11868 case $cc_basename in
11869 cxch68*)
11870 # Green Hills C++ Compiler
11871 # _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"
11873 esac
11875 darwin*)
11876 # PIC is the default on this platform
11877 # Common symbols not allowed in MH_DYLIB files
11878 case $cc_basename in
11879 xlc*)
11880 lt_prog_compiler_pic_CXX='-qnocommon'
11881 lt_prog_compiler_wl_CXX='-Wl,'
11883 esac
11885 dgux*)
11886 case $cc_basename in
11887 ec++*)
11888 lt_prog_compiler_pic_CXX='-KPIC'
11890 ghcx*)
11891 # Green Hills C++ Compiler
11892 lt_prog_compiler_pic_CXX='-pic'
11896 esac
11898 freebsd* | kfreebsd*-gnu | dragonfly*)
11899 # FreeBSD uses GNU C++
11901 hpux9* | hpux10* | hpux11*)
11902 case $cc_basename in
11903 CC*)
11904 lt_prog_compiler_wl_CXX='-Wl,'
11905 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11906 if test "$host_cpu" != ia64; then
11907 lt_prog_compiler_pic_CXX='+Z'
11910 aCC*)
11911 lt_prog_compiler_wl_CXX='-Wl,'
11912 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11913 case $host_cpu in
11914 hppa*64*|ia64*)
11915 # +Z the default
11918 lt_prog_compiler_pic_CXX='+Z'
11920 esac
11924 esac
11926 irix5* | irix6* | nonstopux*)
11927 case $cc_basename in
11928 CC*)
11929 lt_prog_compiler_wl_CXX='-Wl,'
11930 lt_prog_compiler_static_CXX='-non_shared'
11931 # CC pic flag -KPIC is the default.
11935 esac
11937 linux*)
11938 case $cc_basename in
11939 KCC*)
11940 # KAI C++ Compiler
11941 lt_prog_compiler_wl_CXX='--backend -Wl,'
11942 lt_prog_compiler_pic_CXX='-fPIC'
11944 icpc* | ecpc*)
11945 # Intel C++
11946 lt_prog_compiler_wl_CXX='-Wl,'
11947 lt_prog_compiler_pic_CXX='-KPIC'
11948 lt_prog_compiler_static_CXX='-static'
11950 pgCC*)
11951 # Portland Group C++ compiler.
11952 lt_prog_compiler_wl_CXX='-Wl,'
11953 lt_prog_compiler_pic_CXX='-fpic'
11954 lt_prog_compiler_static_CXX='-Bstatic'
11956 cxx*)
11957 # Compaq C++
11958 # Make sure the PIC flag is empty. It appears that all Alpha
11959 # Linux and Compaq Tru64 Unix objects are PIC.
11960 lt_prog_compiler_pic_CXX=
11961 lt_prog_compiler_static_CXX='-non_shared'
11965 esac
11967 lynxos*)
11969 m88k*)
11971 mvs*)
11972 case $cc_basename in
11973 cxx*)
11974 lt_prog_compiler_pic_CXX='-W c,exportall'
11978 esac
11980 netbsd*)
11982 osf3* | osf4* | osf5*)
11983 case $cc_basename in
11984 KCC*)
11985 lt_prog_compiler_wl_CXX='--backend -Wl,'
11987 RCC*)
11988 # Rational C++ 2.4.1
11989 lt_prog_compiler_pic_CXX='-pic'
11991 cxx*)
11992 # Digital/Compaq C++
11993 lt_prog_compiler_wl_CXX='-Wl,'
11994 # Make sure the PIC flag is empty. It appears that all Alpha
11995 # Linux and Compaq Tru64 Unix objects are PIC.
11996 lt_prog_compiler_pic_CXX=
11997 lt_prog_compiler_static_CXX='-non_shared'
12001 esac
12003 psos*)
12005 sco*)
12006 case $cc_basename in
12007 CC*)
12008 lt_prog_compiler_pic_CXX='-fPIC'
12012 esac
12014 solaris*)
12015 case $cc_basename in
12016 CC*)
12017 # Sun C++ 4.2, 5.x and Centerline C++
12018 lt_prog_compiler_pic_CXX='-KPIC'
12019 lt_prog_compiler_static_CXX='-Bstatic'
12020 lt_prog_compiler_wl_CXX='-Qoption ld '
12022 gcx*)
12023 # Green Hills C++ Compiler
12024 lt_prog_compiler_pic_CXX='-PIC'
12028 esac
12030 sunos4*)
12031 case $cc_basename in
12032 CC*)
12033 # Sun C++ 4.x
12034 lt_prog_compiler_pic_CXX='-pic'
12035 lt_prog_compiler_static_CXX='-Bstatic'
12037 lcc*)
12038 # Lucid
12039 lt_prog_compiler_pic_CXX='-pic'
12043 esac
12045 tandem*)
12046 case $cc_basename in
12047 NCC*)
12048 # NonStop-UX NCC 3.20
12049 lt_prog_compiler_pic_CXX='-KPIC'
12053 esac
12055 unixware*)
12057 vxworks*)
12060 lt_prog_compiler_can_build_shared_CXX=no
12062 esac
12065 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12066 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12069 # Check to make sure the PIC flag actually works.
12071 if test -n "$lt_prog_compiler_pic_CXX"; then
12073 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12074 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12075 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078 lt_prog_compiler_pic_works_CXX=no
12079 ac_outfile=conftest.$ac_objext
12080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12081 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12082 # Insert the option either (1) after the last *FLAGS variable, or
12083 # (2) before a word containing "conftest.", or (3) at the end.
12084 # Note that $ac_compile itself does not contain backslashes and begins
12085 # with a dollar sign (not a hyphen), so the echo should work correctly.
12086 # The option is referenced via a variable to avoid confusing sed.
12087 lt_compile=`echo "$ac_compile" | $SED \
12088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12090 -e 's:$: $lt_compiler_flag:'`
12091 (eval echo "\"\$as_me:12091: $lt_compile\"" >&5)
12092 (eval "$lt_compile" 2>conftest.err)
12093 ac_status=$?
12094 cat conftest.err >&5
12095 echo "$as_me:12095: \$? = $ac_status" >&5
12096 if (exit $ac_status) && test -s "$ac_outfile"; then
12097 # The compiler can only warn and ignore the option if not recognized
12098 # So say no if there are warnings other than the usual output.
12099 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12100 $SED '/^$/d' conftest.err >conftest.er2
12101 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12102 lt_prog_compiler_pic_works_CXX=yes
12105 $rm conftest*
12108 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12109 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12111 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12112 case $lt_prog_compiler_pic_CXX in
12113 "" | " "*) ;;
12114 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12115 esac
12116 else
12117 lt_prog_compiler_pic_CXX=
12118 lt_prog_compiler_can_build_shared_CXX=no
12122 case $host_os in
12123 # For platforms which do not support PIC, -DPIC is meaningless:
12124 *djgpp*)
12125 lt_prog_compiler_pic_CXX=
12128 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12130 esac
12132 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12133 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12134 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137 lt_cv_prog_compiler_c_o_CXX=no
12138 $rm -r conftest 2>/dev/null
12139 mkdir conftest
12140 cd conftest
12141 mkdir out
12142 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12144 lt_compiler_flag="-o out/conftest2.$ac_objext"
12145 # Insert the option either (1) after the last *FLAGS variable, or
12146 # (2) before a word containing "conftest.", or (3) at the end.
12147 # Note that $ac_compile itself does not contain backslashes and begins
12148 # with a dollar sign (not a hyphen), so the echo should work correctly.
12149 lt_compile=`echo "$ac_compile" | $SED \
12150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12152 -e 's:$: $lt_compiler_flag:'`
12153 (eval echo "\"\$as_me:12153: $lt_compile\"" >&5)
12154 (eval "$lt_compile" 2>out/conftest.err)
12155 ac_status=$?
12156 cat out/conftest.err >&5
12157 echo "$as_me:12157: \$? = $ac_status" >&5
12158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12159 then
12160 # The compiler can only warn and ignore the option if not recognized
12161 # So say no if there are warnings
12162 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12163 $SED '/^$/d' out/conftest.err >out/conftest.er2
12164 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12165 lt_cv_prog_compiler_c_o_CXX=yes
12168 chmod u+w . 2>&5
12169 $rm conftest*
12170 # SGI C++ compiler will create directory out/ii_files/ for
12171 # template instantiation
12172 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12173 $rm out/* && rmdir out
12174 cd ..
12175 rmdir conftest
12176 $rm conftest*
12179 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12180 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12183 hard_links="nottested"
12184 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12185 # do not overwrite the value of need_locks provided by the user
12186 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12187 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12188 hard_links=yes
12189 $rm conftest*
12190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12191 touch conftest.a
12192 ln conftest.a conftest.b 2>&5 || hard_links=no
12193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12194 { echo "$as_me:$LINENO: result: $hard_links" >&5
12195 echo "${ECHO_T}$hard_links" >&6; }
12196 if test "$hard_links" = no; then
12197 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12198 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12199 need_locks=warn
12201 else
12202 need_locks=no
12205 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12206 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12208 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12209 case $host_os in
12210 aix4* | aix5*)
12211 # If we're using GNU nm, then we don't want the "-C" option.
12212 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12213 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12214 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'
12215 else
12216 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'
12219 pw32*)
12220 export_symbols_cmds_CXX="$ltdll_cmds"
12222 cygwin* | mingw*)
12223 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'
12226 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12228 esac
12230 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12231 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12232 test "$ld_shlibs_CXX" = no && can_build_shared=no
12234 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12235 if test "$GCC" = yes; then
12236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12240 # Do we need to explicitly link libc?
12242 case "x$archive_cmds_need_lc_CXX" in
12243 x|xyes)
12244 # Assume -lc should be added
12245 archive_cmds_need_lc_CXX=yes
12247 if test "$enable_shared" = yes && test "$GCC" = yes; then
12248 case $archive_cmds_CXX in
12249 *'~'*)
12250 # FIXME: we may have to deal with multi-command sequences.
12252 '$CC '*)
12253 # Test whether the compiler implicitly links with -lc since on some
12254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12255 # to ld, don't add -lc before -lgcc.
12256 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12257 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12258 $rm conftest*
12259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12262 (eval $ac_compile) 2>&5
12263 ac_status=$?
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } 2>conftest.err; then
12266 soname=conftest
12267 lib=conftest
12268 libobjs=conftest.$ac_objext
12269 deplibs=
12270 wl=$lt_prog_compiler_wl_CXX
12271 compiler_flags=-v
12272 linker_flags=-v
12273 verstring=
12274 output_objdir=.
12275 libname=conftest
12276 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12277 allow_undefined_flag_CXX=
12278 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12279 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }
12283 then
12284 archive_cmds_need_lc_CXX=no
12285 else
12286 archive_cmds_need_lc_CXX=yes
12288 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12289 else
12290 cat conftest.err 1>&5
12292 $rm conftest*
12293 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12294 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12296 esac
12299 esac
12301 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12302 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12303 library_names_spec=
12304 libname_spec='lib$name'
12305 soname_spec=
12306 shrext_cmds=".so"
12307 postinstall_cmds=
12308 postuninstall_cmds=
12309 finish_cmds=
12310 finish_eval=
12311 shlibpath_var=
12312 shlibpath_overrides_runpath=unknown
12313 version_type=none
12314 dynamic_linker="$host_os ld.so"
12315 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12316 if test "$GCC" = yes; then
12317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12318 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12319 # if the path contains ";" then we assume it to be the separator
12320 # otherwise default to the standard path separator (i.e. ":") - it is
12321 # assumed that no part of a normal pathname contains ";" but that should
12322 # okay in the real world where ";" in dirpaths is itself problematic.
12323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12324 else
12325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12327 else
12328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12330 need_lib_prefix=unknown
12331 hardcode_into_libs=no
12333 # when you set need_version to no, make sure it does not cause -set_version
12334 # flags to be left without arguments
12335 need_version=unknown
12337 case $host_os in
12338 aix3*)
12339 version_type=linux
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12341 shlibpath_var=LIBPATH
12343 # AIX 3 has no versioning support, so we append a major version to the name.
12344 soname_spec='${libname}${release}${shared_ext}$major'
12347 aix4* | aix5*)
12348 version_type=linux
12349 need_lib_prefix=no
12350 need_version=no
12351 hardcode_into_libs=yes
12352 if test "$host_cpu" = ia64; then
12353 # AIX 5 supports IA64
12354 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 else
12357 # With GCC up to 2.95.x, collect2 would create an import file
12358 # for dependence libraries. The import file would start with
12359 # the line `#! .'. This would cause the generated library to
12360 # depend on `.', always an invalid library. This was fixed in
12361 # development snapshots of GCC prior to 3.0.
12362 case $host_os in
12363 aix4 | aix4.[01] | aix4.[01].*)
12364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12365 echo ' yes '
12366 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12368 else
12369 can_build_shared=no
12372 esac
12373 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12374 # soname into executable. Probably we can add versioning support to
12375 # collect2, so additional links can be useful in future.
12376 if test "$aix_use_runtimelinking" = yes; then
12377 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12378 # instead of lib<name>.a to let people know that these are not
12379 # typical AIX shared libraries.
12380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12381 else
12382 # We preserve .a as extension for shared libraries through AIX4.2
12383 # and later when we are not doing run time linking.
12384 library_names_spec='${libname}${release}.a $libname.a'
12385 soname_spec='${libname}${release}${shared_ext}$major'
12387 shlibpath_var=LIBPATH
12391 amigaos*)
12392 library_names_spec='$libname.ixlibrary $libname.a'
12393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12394 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'
12397 beos*)
12398 library_names_spec='${libname}${shared_ext}'
12399 dynamic_linker="$host_os ld.so"
12400 shlibpath_var=LIBRARY_PATH
12403 bsdi[45]*)
12404 version_type=linux
12405 need_version=no
12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12409 shlibpath_var=LD_LIBRARY_PATH
12410 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12411 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12412 # the default ld.so.conf also contains /usr/contrib/lib and
12413 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12414 # libtool to hard-code these into programs
12417 cygwin* | mingw* | pw32*)
12418 version_type=windows
12419 shrext_cmds=".dll"
12420 need_version=no
12421 need_lib_prefix=no
12423 case $GCC,$host_os in
12424 yes,cygwin* | yes,mingw* | yes,pw32*)
12425 library_names_spec='$libname.dll.a'
12426 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12427 postinstall_cmds='base_file=`basename \${file}`~
12428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12429 dldir=$destdir/`dirname \$dlpath`~
12430 test -d \$dldir || mkdir -p \$dldir~
12431 $install_prog $dir/$dlname \$dldir/$dlname~
12432 chmod a+x \$dldir/$dlname'
12433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12434 dlpath=$dir/\$dldll~
12435 $rm \$dlpath'
12436 shlibpath_overrides_runpath=yes
12438 case $host_os in
12439 cygwin*)
12440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12442 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12444 mingw*)
12445 # MinGW DLLs use traditional 'lib' prefix
12446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12448 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12449 # It is most probably a Windows format PATH printed by
12450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12451 # path with ; separators, and with drive letters. We can handle the
12452 # drive letters (cygwin fileutils understands them), so leave them,
12453 # especially as we might pass files found there to a mingw objdump,
12454 # which wouldn't understand a cygwinified path. Ahh.
12455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12456 else
12457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12460 pw32*)
12461 # pw32 DLLs use 'pw' prefix rather than 'lib'
12462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12464 esac
12468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12470 esac
12471 dynamic_linker='Win32 ld.exe'
12472 # FIXME: first we should search . and the directory the executable is in
12473 shlibpath_var=PATH
12476 darwin* | rhapsody*)
12477 dynamic_linker="$host_os dyld"
12478 version_type=darwin
12479 need_lib_prefix=no
12480 need_version=no
12481 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12482 soname_spec='${libname}${release}${major}$shared_ext'
12483 shlibpath_overrides_runpath=yes
12484 shlibpath_var=DYLD_LIBRARY_PATH
12485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12486 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12487 if test "$GCC" = yes; then
12488 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12489 else
12490 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12495 dgux*)
12496 version_type=linux
12497 need_lib_prefix=no
12498 need_version=no
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12500 soname_spec='${libname}${release}${shared_ext}$major'
12501 shlibpath_var=LD_LIBRARY_PATH
12504 freebsd1*)
12505 dynamic_linker=no
12508 kfreebsd*-gnu)
12509 version_type=linux
12510 need_lib_prefix=no
12511 need_version=no
12512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12513 soname_spec='${libname}${release}${shared_ext}$major'
12514 shlibpath_var=LD_LIBRARY_PATH
12515 shlibpath_overrides_runpath=no
12516 hardcode_into_libs=yes
12517 dynamic_linker='GNU ld.so'
12520 freebsd* | dragonfly*)
12521 # DragonFly does not have aout. When/if they implement a new
12522 # versioning mechanism, adjust this.
12523 if test -x /usr/bin/objformat; then
12524 objformat=`/usr/bin/objformat`
12525 else
12526 case $host_os in
12527 freebsd[123]*) objformat=aout ;;
12528 *) objformat=elf ;;
12529 esac
12531 version_type=freebsd-$objformat
12532 case $version_type in
12533 freebsd-elf*)
12534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12535 need_version=no
12536 need_lib_prefix=no
12538 freebsd-*)
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12540 need_version=yes
12542 esac
12543 shlibpath_var=LD_LIBRARY_PATH
12544 case $host_os in
12545 freebsd2*)
12546 shlibpath_overrides_runpath=yes
12548 freebsd3.[01]* | freebsdelf3.[01]*)
12549 shlibpath_overrides_runpath=yes
12550 hardcode_into_libs=yes
12552 *) # from 3.2 on
12553 shlibpath_overrides_runpath=no
12554 hardcode_into_libs=yes
12556 esac
12559 gnu*)
12560 version_type=linux
12561 need_lib_prefix=no
12562 need_version=no
12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12564 soname_spec='${libname}${release}${shared_ext}$major'
12565 shlibpath_var=LD_LIBRARY_PATH
12566 hardcode_into_libs=yes
12569 hpux9* | hpux10* | hpux11*)
12570 # Give a soname corresponding to the major version so that dld.sl refuses to
12571 # link against other versions.
12572 version_type=sunos
12573 need_lib_prefix=no
12574 need_version=no
12575 case $host_cpu in
12576 ia64*)
12577 shrext_cmds='.so'
12578 hardcode_into_libs=yes
12579 dynamic_linker="$host_os dld.so"
12580 shlibpath_var=LD_LIBRARY_PATH
12581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12583 soname_spec='${libname}${release}${shared_ext}$major'
12584 if test "X$HPUX_IA64_MODE" = X32; then
12585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12586 else
12587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12591 hppa*64*)
12592 shrext_cmds='.sl'
12593 hardcode_into_libs=yes
12594 dynamic_linker="$host_os dld.sl"
12595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12598 soname_spec='${libname}${release}${shared_ext}$major'
12599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12603 shrext_cmds='.sl'
12604 dynamic_linker="$host_os dld.sl"
12605 shlibpath_var=SHLIB_PATH
12606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12608 soname_spec='${libname}${release}${shared_ext}$major'
12610 esac
12611 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12612 postinstall_cmds='chmod 555 $lib'
12615 irix5* | irix6* | nonstopux*)
12616 case $host_os in
12617 nonstopux*) version_type=nonstopux ;;
12619 if test "$lt_cv_prog_gnu_ld" = yes; then
12620 version_type=linux
12621 else
12622 version_type=irix
12623 fi ;;
12624 esac
12625 need_lib_prefix=no
12626 need_version=no
12627 soname_spec='${libname}${release}${shared_ext}$major'
12628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12629 case $host_os in
12630 irix5* | nonstopux*)
12631 libsuff= shlibsuff=
12634 case $LD in # libtool.m4 will add one of these switches to LD
12635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12636 libsuff= shlibsuff= libmagic=32-bit;;
12637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12638 libsuff=32 shlibsuff=N32 libmagic=N32;;
12639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12640 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12641 *) libsuff= shlibsuff= libmagic=never-match;;
12642 esac
12644 esac
12645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12646 shlibpath_overrides_runpath=no
12647 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12648 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12649 hardcode_into_libs=yes
12652 # No shared lib support for Linux oldld, aout, or coff.
12653 linux*oldld* | linux*aout* | linux*coff*)
12654 dynamic_linker=no
12657 # This must be Linux ELF.
12658 linux*)
12659 version_type=linux
12660 need_lib_prefix=no
12661 need_version=no
12662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12663 soname_spec='${libname}${release}${shared_ext}$major'
12664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12665 shlibpath_var=LD_LIBRARY_PATH
12666 shlibpath_overrides_runpath=no
12667 # This implies no fast_install, which is unacceptable.
12668 # Some rework will be needed to allow for fast_install
12669 # before this can be enabled.
12670 hardcode_into_libs=yes
12672 # Append ld.so.conf contents to the search path
12673 if test -f /etc/ld.so.conf; then
12674 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12675 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12678 # We used to test for /lib/ld.so.1 and disable shared libraries on
12679 # powerpc, because MkLinux only supported shared libraries with the
12680 # GNU dynamic linker. Since this was broken with cross compilers,
12681 # most powerpc-linux boxes support dynamic linking these days and
12682 # people can always --disable-shared, the test was removed, and we
12683 # assume the GNU/Linux dynamic linker is in use.
12684 dynamic_linker='GNU/Linux ld.so'
12687 knetbsd*-gnu)
12688 version_type=linux
12689 need_lib_prefix=no
12690 need_version=no
12691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12692 soname_spec='${libname}${release}${shared_ext}$major'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 shlibpath_overrides_runpath=no
12695 hardcode_into_libs=yes
12696 dynamic_linker='GNU ld.so'
12699 netbsd*)
12700 version_type=sunos
12701 need_lib_prefix=no
12702 need_version=no
12703 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12706 dynamic_linker='NetBSD (a.out) ld.so'
12707 else
12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12709 soname_spec='${libname}${release}${shared_ext}$major'
12710 dynamic_linker='NetBSD ld.elf_so'
12712 shlibpath_var=LD_LIBRARY_PATH
12713 shlibpath_overrides_runpath=yes
12714 hardcode_into_libs=yes
12717 newsos6)
12718 version_type=linux
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12720 shlibpath_var=LD_LIBRARY_PATH
12721 shlibpath_overrides_runpath=yes
12724 nto-qnx*)
12725 version_type=linux
12726 need_lib_prefix=no
12727 need_version=no
12728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12729 soname_spec='${libname}${release}${shared_ext}$major'
12730 shlibpath_var=LD_LIBRARY_PATH
12731 shlibpath_overrides_runpath=yes
12734 openbsd*)
12735 version_type=sunos
12736 need_lib_prefix=no
12737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12738 case $host_os in
12739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12740 *) need_version=no ;;
12741 esac
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12744 shlibpath_var=LD_LIBRARY_PATH
12745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12746 case $host_os in
12747 openbsd2.[89] | openbsd2.[89].*)
12748 shlibpath_overrides_runpath=no
12751 shlibpath_overrides_runpath=yes
12753 esac
12754 else
12755 shlibpath_overrides_runpath=yes
12759 os2*)
12760 libname_spec='$name'
12761 shrext_cmds=".dll"
12762 need_lib_prefix=no
12763 library_names_spec='$libname${shared_ext} $libname.a'
12764 dynamic_linker='OS/2 ld.exe'
12765 shlibpath_var=LIBPATH
12768 osf3* | osf4* | osf5*)
12769 version_type=osf
12770 need_lib_prefix=no
12771 need_version=no
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12774 shlibpath_var=LD_LIBRARY_PATH
12775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12779 sco3.2v5*)
12780 version_type=osf
12781 soname_spec='${libname}${release}${shared_ext}$major'
12782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783 shlibpath_var=LD_LIBRARY_PATH
12786 solaris*)
12787 version_type=linux
12788 need_lib_prefix=no
12789 need_version=no
12790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791 soname_spec='${libname}${release}${shared_ext}$major'
12792 shlibpath_var=LD_LIBRARY_PATH
12793 shlibpath_overrides_runpath=yes
12794 hardcode_into_libs=yes
12795 # ldd complains unless libraries are executable
12796 postinstall_cmds='chmod +x $lib'
12799 sunos4*)
12800 version_type=sunos
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12802 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12803 shlibpath_var=LD_LIBRARY_PATH
12804 shlibpath_overrides_runpath=yes
12805 if test "$with_gnu_ld" = yes; then
12806 need_lib_prefix=no
12808 need_version=yes
12811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12812 version_type=linux
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 case $host_vendor in
12817 sni)
12818 shlibpath_overrides_runpath=no
12819 need_lib_prefix=no
12820 export_dynamic_flag_spec='${wl}-Blargedynsym'
12821 runpath_var=LD_RUN_PATH
12823 siemens)
12824 need_lib_prefix=no
12826 motorola)
12827 need_lib_prefix=no
12828 need_version=no
12829 shlibpath_overrides_runpath=no
12830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12832 esac
12835 sysv4*MP*)
12836 if test -d /usr/nec ;then
12837 version_type=linux
12838 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12839 soname_spec='$libname${shared_ext}.$major'
12840 shlibpath_var=LD_LIBRARY_PATH
12844 uts4*)
12845 version_type=linux
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 shlibpath_var=LD_LIBRARY_PATH
12852 dynamic_linker=no
12854 esac
12855 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12856 echo "${ECHO_T}$dynamic_linker" >&6; }
12857 test "$dynamic_linker" = no && can_build_shared=no
12859 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12860 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12861 hardcode_action_CXX=
12862 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12863 test -n "$runpath_var_CXX" || \
12864 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12866 # We can hardcode non-existant directories.
12867 if test "$hardcode_direct_CXX" != no &&
12868 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12869 # have to relink, otherwise we might link with an installed library
12870 # when we should be linking with a yet-to-be-installed one
12871 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12872 test "$hardcode_minus_L_CXX" != no; then
12873 # Linking always hardcodes the temporary library directory.
12874 hardcode_action_CXX=relink
12875 else
12876 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12877 hardcode_action_CXX=immediate
12879 else
12880 # We cannot hardcode anything, or else we can only hardcode existing
12881 # directories.
12882 hardcode_action_CXX=unsupported
12884 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12885 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12887 if test "$hardcode_action_CXX" = relink; then
12888 # Fast installation is not supported
12889 enable_fast_install=no
12890 elif test "$shlibpath_overrides_runpath" = yes ||
12891 test "$enable_shared" = no; then
12892 # Fast installation is not necessary
12893 enable_fast_install=needless
12896 striplib=
12897 old_striplib=
12898 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12899 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12900 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12901 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12902 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12903 { echo "$as_me:$LINENO: result: yes" >&5
12904 echo "${ECHO_T}yes" >&6; }
12905 else
12906 # FIXME - insert some real tests, host_os isn't really good enough
12907 case $host_os in
12908 darwin*)
12909 if test -n "$STRIP" ; then
12910 striplib="$STRIP -x"
12911 { echo "$as_me:$LINENO: result: yes" >&5
12912 echo "${ECHO_T}yes" >&6; }
12913 else
12914 { echo "$as_me:$LINENO: result: no" >&5
12915 echo "${ECHO_T}no" >&6; }
12919 { echo "$as_me:$LINENO: result: no" >&5
12920 echo "${ECHO_T}no" >&6; }
12922 esac
12925 if test "x$enable_dlopen" != xyes; then
12926 enable_dlopen=unknown
12927 enable_dlopen_self=unknown
12928 enable_dlopen_self_static=unknown
12929 else
12930 lt_cv_dlopen=no
12931 lt_cv_dlopen_libs=
12933 case $host_os in
12934 beos*)
12935 lt_cv_dlopen="load_add_on"
12936 lt_cv_dlopen_libs=
12937 lt_cv_dlopen_self=yes
12940 mingw* | pw32*)
12941 lt_cv_dlopen="LoadLibrary"
12942 lt_cv_dlopen_libs=
12945 cygwin*)
12946 lt_cv_dlopen="dlopen"
12947 lt_cv_dlopen_libs=
12950 darwin*)
12951 # if libdl is installed we need to link against it
12952 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12953 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957 ac_check_lib_save_LIBS=$LIBS
12958 LIBS="-ldl $LIBS"
12959 cat >conftest.$ac_ext <<_ACEOF
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12969 #ifdef __cplusplus
12970 extern "C"
12971 #endif
12972 char dlopen ();
12974 main ()
12976 return dlopen ();
12978 return 0;
12980 _ACEOF
12981 rm -f conftest.$ac_objext conftest$ac_exeext
12982 if { (ac_try="$ac_link"
12983 case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_link") 2>conftest.er1
12989 ac_status=$?
12990 grep -v '^ *+' conftest.er1 >conftest.err
12991 rm -f conftest.er1
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } && {
12995 test -z "$ac_cxx_werror_flag" ||
12996 test ! -s conftest.err
12997 } && test -s conftest$ac_exeext &&
12998 $as_test_x conftest$ac_exeext; then
12999 ac_cv_lib_dl_dlopen=yes
13000 else
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13004 ac_cv_lib_dl_dlopen=no
13007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13008 conftest$ac_exeext conftest.$ac_ext
13009 LIBS=$ac_check_lib_save_LIBS
13011 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13013 if test $ac_cv_lib_dl_dlopen = yes; then
13014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13015 else
13017 lt_cv_dlopen="dyld"
13018 lt_cv_dlopen_libs=
13019 lt_cv_dlopen_self=yes
13026 { echo "$as_me:$LINENO: checking for shl_load" >&5
13027 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13028 if test "${ac_cv_func_shl_load+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h. */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13039 #define shl_load innocuous_shl_load
13041 /* System header to define __stub macros and hopefully few prototypes,
13042 which can conflict with char shl_load (); below.
13043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13044 <limits.h> exists even on freestanding compilers. */
13046 #ifdef __STDC__
13047 # include <limits.h>
13048 #else
13049 # include <assert.h>
13050 #endif
13052 #undef shl_load
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char shl_load ();
13061 /* The GNU C library defines this for functions which it implements
13062 to always fail with ENOSYS. Some functions are actually named
13063 something starting with __ and the normal name is an alias. */
13064 #if defined __stub_shl_load || defined __stub___shl_load
13065 choke me
13066 #endif
13069 main ()
13071 return shl_load ();
13073 return 0;
13075 _ACEOF
13076 rm -f conftest.$ac_objext conftest$ac_exeext
13077 if { (ac_try="$ac_link"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_link") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_cxx_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest$ac_exeext &&
13093 $as_test_x conftest$ac_exeext; then
13094 ac_cv_func_shl_load=yes
13095 else
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_cv_func_shl_load=no
13102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13103 conftest$ac_exeext conftest.$ac_ext
13105 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13106 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13107 if test $ac_cv_func_shl_load = yes; then
13108 lt_cv_dlopen="shl_load"
13109 else
13110 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13111 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13112 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115 ac_check_lib_save_LIBS=$LIBS
13116 LIBS="-ldld $LIBS"
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h. */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13124 /* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13127 #ifdef __cplusplus
13128 extern "C"
13129 #endif
13130 char shl_load ();
13132 main ()
13134 return shl_load ();
13136 return 0;
13138 _ACEOF
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (ac_try="$ac_link"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_link") 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_cxx_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest$ac_exeext &&
13156 $as_test_x conftest$ac_exeext; then
13157 ac_cv_lib_dld_shl_load=yes
13158 else
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_cv_lib_dld_shl_load=no
13165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13166 conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13170 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13171 if test $ac_cv_lib_dld_shl_load = yes; then
13172 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13173 else
13174 { echo "$as_me:$LINENO: checking for dlopen" >&5
13175 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13176 if test "${ac_cv_func_dlopen+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13179 cat >conftest.$ac_ext <<_ACEOF
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13187 #define dlopen innocuous_dlopen
13189 /* System header to define __stub macros and hopefully few prototypes,
13190 which can conflict with char dlopen (); below.
13191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13192 <limits.h> exists even on freestanding compilers. */
13194 #ifdef __STDC__
13195 # include <limits.h>
13196 #else
13197 # include <assert.h>
13198 #endif
13200 #undef dlopen
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char dlopen ();
13209 /* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212 #if defined __stub_dlopen || defined __stub___dlopen
13213 choke me
13214 #endif
13217 main ()
13219 return dlopen ();
13221 return 0;
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_cxx_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest$ac_exeext &&
13241 $as_test_x conftest$ac_exeext; then
13242 ac_cv_func_dlopen=yes
13243 else
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_cv_func_dlopen=no
13250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251 conftest$ac_exeext conftest.$ac_ext
13253 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13254 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13255 if test $ac_cv_func_dlopen = yes; then
13256 lt_cv_dlopen="dlopen"
13257 else
13258 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263 ac_check_lib_save_LIBS=$LIBS
13264 LIBS="-ldl $LIBS"
13265 cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h. */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13272 /* Override any GCC internal prototype to avoid an error.
13273 Use char because int might match the return type of a GCC
13274 builtin and then its argument prototype would still apply. */
13275 #ifdef __cplusplus
13276 extern "C"
13277 #endif
13278 char dlopen ();
13280 main ()
13282 return dlopen ();
13284 return 0;
13286 _ACEOF
13287 rm -f conftest.$ac_objext conftest$ac_exeext
13288 if { (ac_try="$ac_link"
13289 case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_link") 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } && {
13301 test -z "$ac_cxx_werror_flag" ||
13302 test ! -s conftest.err
13303 } && test -s conftest$ac_exeext &&
13304 $as_test_x conftest$ac_exeext; then
13305 ac_cv_lib_dl_dlopen=yes
13306 else
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ac_cv_lib_dl_dlopen=no
13313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13314 conftest$ac_exeext conftest.$ac_ext
13315 LIBS=$ac_check_lib_save_LIBS
13317 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13319 if test $ac_cv_lib_dl_dlopen = yes; then
13320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13321 else
13322 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13323 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13324 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327 ac_check_lib_save_LIBS=$LIBS
13328 LIBS="-lsvld $LIBS"
13329 cat >conftest.$ac_ext <<_ACEOF
13330 /* confdefs.h. */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13336 /* Override any GCC internal prototype to avoid an error.
13337 Use char because int might match the return type of a GCC
13338 builtin and then its argument prototype would still apply. */
13339 #ifdef __cplusplus
13340 extern "C"
13341 #endif
13342 char dlopen ();
13344 main ()
13346 return dlopen ();
13348 return 0;
13350 _ACEOF
13351 rm -f conftest.$ac_objext conftest$ac_exeext
13352 if { (ac_try="$ac_link"
13353 case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13356 esac
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_link") 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && {
13365 test -z "$ac_cxx_werror_flag" ||
13366 test ! -s conftest.err
13367 } && test -s conftest$ac_exeext &&
13368 $as_test_x conftest$ac_exeext; then
13369 ac_cv_lib_svld_dlopen=yes
13370 else
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.$ac_ext >&5
13374 ac_cv_lib_svld_dlopen=no
13377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13378 conftest$ac_exeext conftest.$ac_ext
13379 LIBS=$ac_check_lib_save_LIBS
13381 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13382 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13383 if test $ac_cv_lib_svld_dlopen = yes; then
13384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13385 else
13386 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13387 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13388 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 ac_check_lib_save_LIBS=$LIBS
13392 LIBS="-ldld $LIBS"
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h. */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13403 #ifdef __cplusplus
13404 extern "C"
13405 #endif
13406 char dld_link ();
13408 main ()
13410 return dld_link ();
13412 return 0;
13414 _ACEOF
13415 rm -f conftest.$ac_objext conftest$ac_exeext
13416 if { (ac_try="$ac_link"
13417 case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_link") 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && {
13429 test -z "$ac_cxx_werror_flag" ||
13430 test ! -s conftest.err
13431 } && test -s conftest$ac_exeext &&
13432 $as_test_x conftest$ac_exeext; then
13433 ac_cv_lib_dld_dld_link=yes
13434 else
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ac_cv_lib_dld_dld_link=no
13441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13442 conftest$ac_exeext conftest.$ac_ext
13443 LIBS=$ac_check_lib_save_LIBS
13445 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13446 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13447 if test $ac_cv_lib_dld_dld_link = yes; then
13448 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13467 esac
13469 if test "x$lt_cv_dlopen" != xno; then
13470 enable_dlopen=yes
13471 else
13472 enable_dlopen=no
13475 case $lt_cv_dlopen in
13476 dlopen)
13477 save_CPPFLAGS="$CPPFLAGS"
13478 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13480 save_LDFLAGS="$LDFLAGS"
13481 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13483 save_LIBS="$LIBS"
13484 LIBS="$lt_cv_dlopen_libs $LIBS"
13486 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13487 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13488 if test "${lt_cv_dlopen_self+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 if test "$cross_compiling" = yes; then :
13492 lt_cv_dlopen_self=cross
13493 else
13494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13495 lt_status=$lt_dlunknown
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13497 "configure"
13498 #include "confdefs.h"
13500 #if HAVE_DLFCN_H
13501 #include <dlfcn.h>
13502 #endif
13504 #include <stdio.h>
13506 #ifdef RTLD_GLOBAL
13507 # define LT_DLGLOBAL RTLD_GLOBAL
13508 #else
13509 # ifdef DL_GLOBAL
13510 # define LT_DLGLOBAL DL_GLOBAL
13511 # else
13512 # define LT_DLGLOBAL 0
13513 # endif
13514 #endif
13516 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13517 find out it does not work in some platform. */
13518 #ifndef LT_DLLAZY_OR_NOW
13519 # ifdef RTLD_LAZY
13520 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13521 # else
13522 # ifdef DL_LAZY
13523 # define LT_DLLAZY_OR_NOW DL_LAZY
13524 # else
13525 # ifdef RTLD_NOW
13526 # define LT_DLLAZY_OR_NOW RTLD_NOW
13527 # else
13528 # ifdef DL_NOW
13529 # define LT_DLLAZY_OR_NOW DL_NOW
13530 # else
13531 # define LT_DLLAZY_OR_NOW 0
13532 # endif
13533 # endif
13534 # endif
13535 # endif
13536 #endif
13538 #ifdef __cplusplus
13539 extern "C" void exit (int);
13540 #endif
13542 void fnord() { int i=42;}
13543 int main ()
13545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13546 int status = $lt_dlunknown;
13548 if (self)
13550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13551 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13552 /* dlclose (self); */
13555 exit (status);
13558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13559 (eval $ac_link) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13563 (./conftest; exit; ) >&5 2>/dev/null
13564 lt_status=$?
13565 case x$lt_status in
13566 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13567 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13568 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13569 esac
13570 else :
13571 # compilation failed
13572 lt_cv_dlopen_self=no
13575 rm -fr conftest*
13579 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13580 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13582 if test "x$lt_cv_dlopen_self" = xyes; then
13583 LDFLAGS="$LDFLAGS $link_static_flag"
13584 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13585 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13586 if test "${lt_cv_dlopen_self_static+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589 if test "$cross_compiling" = yes; then :
13590 lt_cv_dlopen_self_static=cross
13591 else
13592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13593 lt_status=$lt_dlunknown
13594 cat > conftest.$ac_ext <<EOF
13595 #line 13595 "configure"
13596 #include "confdefs.h"
13598 #if HAVE_DLFCN_H
13599 #include <dlfcn.h>
13600 #endif
13602 #include <stdio.h>
13604 #ifdef RTLD_GLOBAL
13605 # define LT_DLGLOBAL RTLD_GLOBAL
13606 #else
13607 # ifdef DL_GLOBAL
13608 # define LT_DLGLOBAL DL_GLOBAL
13609 # else
13610 # define LT_DLGLOBAL 0
13611 # endif
13612 #endif
13614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13615 find out it does not work in some platform. */
13616 #ifndef LT_DLLAZY_OR_NOW
13617 # ifdef RTLD_LAZY
13618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13619 # else
13620 # ifdef DL_LAZY
13621 # define LT_DLLAZY_OR_NOW DL_LAZY
13622 # else
13623 # ifdef RTLD_NOW
13624 # define LT_DLLAZY_OR_NOW RTLD_NOW
13625 # else
13626 # ifdef DL_NOW
13627 # define LT_DLLAZY_OR_NOW DL_NOW
13628 # else
13629 # define LT_DLLAZY_OR_NOW 0
13630 # endif
13631 # endif
13632 # endif
13633 # endif
13634 #endif
13636 #ifdef __cplusplus
13637 extern "C" void exit (int);
13638 #endif
13640 void fnord() { int i=42;}
13641 int main ()
13643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13644 int status = $lt_dlunknown;
13646 if (self)
13648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13649 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13650 /* dlclose (self); */
13653 exit (status);
13656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13657 (eval $ac_link) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13661 (./conftest; exit; ) >&5 2>/dev/null
13662 lt_status=$?
13663 case x$lt_status in
13664 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13665 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13666 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13667 esac
13668 else :
13669 # compilation failed
13670 lt_cv_dlopen_self_static=no
13673 rm -fr conftest*
13677 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13678 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13681 CPPFLAGS="$save_CPPFLAGS"
13682 LDFLAGS="$save_LDFLAGS"
13683 LIBS="$save_LIBS"
13685 esac
13687 case $lt_cv_dlopen_self in
13688 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13689 *) enable_dlopen_self=unknown ;;
13690 esac
13692 case $lt_cv_dlopen_self_static in
13693 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13694 *) enable_dlopen_self_static=unknown ;;
13695 esac
13699 # The else clause should only fire when bootstrapping the
13700 # libtool distribution, otherwise you forgot to ship ltmain.sh
13701 # with your package, and you will get complaints that there are
13702 # no rules to generate ltmain.sh.
13703 if test -f "$ltmain"; then
13704 # See if we are running on zsh, and set the options which allow our commands through
13705 # without removal of \ escapes.
13706 if test -n "${ZSH_VERSION+set}" ; then
13707 setopt NO_GLOB_SUBST
13709 # Now quote all the things that may contain metacharacters while being
13710 # careful not to overquote the AC_SUBSTed values. We take copies of the
13711 # variables and quote the copies for generation of the libtool script.
13712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13713 SED SHELL STRIP \
13714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13716 deplibs_check_method reload_flag reload_cmds need_locks \
13717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13718 lt_cv_sys_global_symbol_to_c_name_address \
13719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13720 old_postinstall_cmds old_postuninstall_cmds \
13721 compiler_CXX \
13722 CC_CXX \
13723 LD_CXX \
13724 lt_prog_compiler_wl_CXX \
13725 lt_prog_compiler_pic_CXX \
13726 lt_prog_compiler_static_CXX \
13727 lt_prog_compiler_no_builtin_flag_CXX \
13728 export_dynamic_flag_spec_CXX \
13729 thread_safe_flag_spec_CXX \
13730 whole_archive_flag_spec_CXX \
13731 enable_shared_with_static_runtimes_CXX \
13732 old_archive_cmds_CXX \
13733 old_archive_from_new_cmds_CXX \
13734 predep_objects_CXX \
13735 postdep_objects_CXX \
13736 predeps_CXX \
13737 postdeps_CXX \
13738 compiler_lib_search_path_CXX \
13739 archive_cmds_CXX \
13740 archive_expsym_cmds_CXX \
13741 postinstall_cmds_CXX \
13742 postuninstall_cmds_CXX \
13743 old_archive_from_expsyms_cmds_CXX \
13744 allow_undefined_flag_CXX \
13745 no_undefined_flag_CXX \
13746 export_symbols_cmds_CXX \
13747 hardcode_libdir_flag_spec_CXX \
13748 hardcode_libdir_flag_spec_ld_CXX \
13749 hardcode_libdir_separator_CXX \
13750 hardcode_automatic_CXX \
13751 module_cmds_CXX \
13752 module_expsym_cmds_CXX \
13753 lt_cv_prog_compiler_c_o_CXX \
13754 exclude_expsyms_CXX \
13755 include_expsyms_CXX; do
13757 case $var in
13758 old_archive_cmds_CXX | \
13759 old_archive_from_new_cmds_CXX | \
13760 archive_cmds_CXX | \
13761 archive_expsym_cmds_CXX | \
13762 module_cmds_CXX | \
13763 module_expsym_cmds_CXX | \
13764 old_archive_from_expsyms_cmds_CXX | \
13765 export_symbols_cmds_CXX | \
13766 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13767 postinstall_cmds | postuninstall_cmds | \
13768 old_postinstall_cmds | old_postuninstall_cmds | \
13769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13770 # Double-quote double-evaled strings.
13771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13776 esac
13777 done
13779 case $lt_echo in
13780 *'\$0 --fallback-echo"')
13781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13783 esac
13785 cfgfile="$ofile"
13787 cat <<__EOF__ >> "$cfgfile"
13788 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13790 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13792 # Shell to use when invoking shell scripts.
13793 SHELL=$lt_SHELL
13795 # Whether or not to build shared libraries.
13796 build_libtool_libs=$enable_shared
13798 # Whether or not to build static libraries.
13799 build_old_libs=$enable_static
13801 # Whether or not to add -lc for building shared libraries.
13802 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13804 # Whether or not to disallow shared libs when runtime libs are static
13805 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13807 # Whether or not to optimize for fast installation.
13808 fast_install=$enable_fast_install
13810 # The host system.
13811 host_alias=$host_alias
13812 host=$host
13813 host_os=$host_os
13815 # The build system.
13816 build_alias=$build_alias
13817 build=$build
13818 build_os=$build_os
13820 # An echo program that does not interpret backslashes.
13821 echo=$lt_echo
13823 # The archiver.
13824 AR=$lt_AR
13825 AR_FLAGS=$lt_AR_FLAGS
13827 # A C compiler.
13828 LTCC=$lt_LTCC
13830 # A language-specific compiler.
13831 CC=$lt_compiler_CXX
13833 # Is the compiler the GNU C compiler?
13834 with_gcc=$GCC_CXX
13836 # An ERE matcher.
13837 EGREP=$lt_EGREP
13839 # The linker used to build libraries.
13840 LD=$lt_LD_CXX
13842 # Whether we need hard or soft links.
13843 LN_S=$lt_LN_S
13845 # A BSD-compatible nm program.
13846 NM=$lt_NM
13848 # A symbol stripping program
13849 STRIP=$lt_STRIP
13851 # Used to examine libraries when file_magic_cmd begins "file"
13852 MAGIC_CMD=$MAGIC_CMD
13854 # Used on cygwin: DLL creation program.
13855 DLLTOOL="$DLLTOOL"
13857 # Used on cygwin: object dumper.
13858 OBJDUMP="$OBJDUMP"
13860 # Used on cygwin: assembler.
13861 AS="$AS"
13863 # The name of the directory that contains temporary libtool files.
13864 objdir=$objdir
13866 # How to create reloadable object files.
13867 reload_flag=$lt_reload_flag
13868 reload_cmds=$lt_reload_cmds
13870 # How to pass a linker flag through the compiler.
13871 wl=$lt_lt_prog_compiler_wl_CXX
13873 # Object file suffix (normally "o").
13874 objext="$ac_objext"
13876 # Old archive suffix (normally "a").
13877 libext="$libext"
13879 # Shared library suffix (normally ".so").
13880 shrext_cmds='$shrext_cmds'
13882 # Executable file suffix (normally "").
13883 exeext="$exeext"
13885 # Additional compiler flags for building library objects.
13886 pic_flag=$lt_lt_prog_compiler_pic_CXX
13887 pic_mode=$pic_mode
13889 # What is the maximum length of a command?
13890 max_cmd_len=$lt_cv_sys_max_cmd_len
13892 # Does compiler simultaneously support -c and -o options?
13893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13895 # Must we lock files when doing compilation?
13896 need_locks=$lt_need_locks
13898 # Do we need the lib prefix for modules?
13899 need_lib_prefix=$need_lib_prefix
13901 # Do we need a version for libraries?
13902 need_version=$need_version
13904 # Whether dlopen is supported.
13905 dlopen_support=$enable_dlopen
13907 # Whether dlopen of programs is supported.
13908 dlopen_self=$enable_dlopen_self
13910 # Whether dlopen of statically linked programs is supported.
13911 dlopen_self_static=$enable_dlopen_self_static
13913 # Compiler flag to prevent dynamic linking.
13914 link_static_flag=$lt_lt_prog_compiler_static_CXX
13916 # Compiler flag to turn off builtin functions.
13917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13919 # Compiler flag to allow reflexive dlopens.
13920 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13922 # Compiler flag to generate shared objects directly from archives.
13923 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13925 # Compiler flag to generate thread-safe objects.
13926 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13928 # Library versioning type.
13929 version_type=$version_type
13931 # Format of library name prefix.
13932 libname_spec=$lt_libname_spec
13934 # List of archive names. First name is the real one, the rest are links.
13935 # The last name is the one that the linker finds with -lNAME.
13936 library_names_spec=$lt_library_names_spec
13938 # The coded name of the library, if different from the real name.
13939 soname_spec=$lt_soname_spec
13941 # Commands used to build and install an old-style archive.
13942 RANLIB=$lt_RANLIB
13943 old_archive_cmds=$lt_old_archive_cmds_CXX
13944 old_postinstall_cmds=$lt_old_postinstall_cmds
13945 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13947 # Create an old-style archive from a shared archive.
13948 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13950 # Create a temporary old-style archive to link instead of a shared archive.
13951 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13953 # Commands used to build and install a shared archive.
13954 archive_cmds=$lt_archive_cmds_CXX
13955 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13956 postinstall_cmds=$lt_postinstall_cmds
13957 postuninstall_cmds=$lt_postuninstall_cmds
13959 # Commands used to build a loadable module (assumed same as above if empty)
13960 module_cmds=$lt_module_cmds_CXX
13961 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13963 # Commands to strip libraries.
13964 old_striplib=$lt_old_striplib
13965 striplib=$lt_striplib
13967 # Dependencies to place before the objects being linked to create a
13968 # shared library.
13969 predep_objects=$lt_predep_objects_CXX
13971 # Dependencies to place after the objects being linked to create a
13972 # shared library.
13973 postdep_objects=$lt_postdep_objects_CXX
13975 # Dependencies to place before the objects being linked to create a
13976 # shared library.
13977 predeps=$lt_predeps_CXX
13979 # Dependencies to place after the objects being linked to create a
13980 # shared library.
13981 postdeps=$lt_postdeps_CXX
13983 # The library search path used internally by the compiler when linking
13984 # a shared library.
13985 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13987 # Method to check whether dependent libraries are shared objects.
13988 deplibs_check_method=$lt_deplibs_check_method
13990 # Command to use when deplibs_check_method == file_magic.
13991 file_magic_cmd=$lt_file_magic_cmd
13993 # Flag that allows shared libraries with undefined symbols to be built.
13994 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13996 # Flag that forces no undefined symbols.
13997 no_undefined_flag=$lt_no_undefined_flag_CXX
13999 # Commands used to finish a libtool library installation in a directory.
14000 finish_cmds=$lt_finish_cmds
14002 # Same as above, but a single script fragment to be evaled but not shown.
14003 finish_eval=$lt_finish_eval
14005 # Take the output of nm and produce a listing of raw symbols and C names.
14006 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14008 # Transform the output of nm in a proper C declaration
14009 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14011 # Transform the output of nm in a C name address pair
14012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14014 # This is the shared library runtime path variable.
14015 runpath_var=$runpath_var
14017 # This is the shared library path variable.
14018 shlibpath_var=$shlibpath_var
14020 # Is shlibpath searched before the hard-coded library search path?
14021 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14023 # How to hardcode a shared library path into an executable.
14024 hardcode_action=$hardcode_action_CXX
14026 # Whether we should hardcode library paths into libraries.
14027 hardcode_into_libs=$hardcode_into_libs
14029 # Flag to hardcode \$libdir into a binary during linking.
14030 # This must work even if \$libdir does not exist.
14031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14033 # If ld is used when linking, flag to hardcode \$libdir into
14034 # a binary during linking. This must work even if \$libdir does
14035 # not exist.
14036 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14038 # Whether we need a single -rpath flag with a separated argument.
14039 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14041 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14042 # resulting binary.
14043 hardcode_direct=$hardcode_direct_CXX
14045 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14046 # resulting binary.
14047 hardcode_minus_L=$hardcode_minus_L_CXX
14049 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14050 # the resulting binary.
14051 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14053 # Set to yes if building a shared library automatically hardcodes DIR into the library
14054 # and all subsequent libraries and executables linked against it.
14055 hardcode_automatic=$hardcode_automatic_CXX
14057 # Variables whose values should be saved in libtool wrapper scripts and
14058 # restored at relink time.
14059 variables_saved_for_relink="$variables_saved_for_relink"
14061 # Whether libtool must link a program against all its dependency libraries.
14062 link_all_deplibs=$link_all_deplibs_CXX
14064 # Compile-time system search path for libraries
14065 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14067 # Run-time system search path for libraries
14068 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14070 # Fix the shell variable \$srcfile for the compiler.
14071 fix_srcfile_path="$fix_srcfile_path_CXX"
14073 # Set to yes if exported symbols are required.
14074 always_export_symbols=$always_export_symbols_CXX
14076 # The commands to list exported symbols.
14077 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14079 # The commands to extract the exported symbol list from a shared archive.
14080 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14082 # Symbols that should not be listed in the preloaded symbols.
14083 exclude_expsyms=$lt_exclude_expsyms_CXX
14085 # Symbols that must always be exported.
14086 include_expsyms=$lt_include_expsyms_CXX
14088 # ### END LIBTOOL TAG CONFIG: $tagname
14090 __EOF__
14093 else
14094 # If there is no Makefile yet, we rely on a make rule to execute
14095 # `config.status --recheck' to rerun these tests and create the
14096 # libtool script then.
14097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14098 if test -f "$ltmain_in"; then
14099 test -f Makefile && make "$ltmain"
14104 ac_ext=c
14105 ac_cpp='$CPP $CPPFLAGS'
14106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14110 CC=$lt_save_CC
14111 LDCXX=$LD
14112 LD=$lt_save_LD
14113 GCC=$lt_save_GCC
14114 with_gnu_ldcxx=$with_gnu_ld
14115 with_gnu_ld=$lt_save_with_gnu_ld
14116 lt_cv_path_LDCXX=$lt_cv_path_LD
14117 lt_cv_path_LD=$lt_save_path_LD
14118 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14119 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14121 else
14122 tagname=""
14126 F77)
14127 if test -n "$F77" && test "X$F77" != "Xno"; then
14129 ac_ext=f
14130 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14131 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14132 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14135 archive_cmds_need_lc_F77=no
14136 allow_undefined_flag_F77=
14137 always_export_symbols_F77=no
14138 archive_expsym_cmds_F77=
14139 export_dynamic_flag_spec_F77=
14140 hardcode_direct_F77=no
14141 hardcode_libdir_flag_spec_F77=
14142 hardcode_libdir_flag_spec_ld_F77=
14143 hardcode_libdir_separator_F77=
14144 hardcode_minus_L_F77=no
14145 hardcode_automatic_F77=no
14146 module_cmds_F77=
14147 module_expsym_cmds_F77=
14148 link_all_deplibs_F77=unknown
14149 old_archive_cmds_F77=$old_archive_cmds
14150 no_undefined_flag_F77=
14151 whole_archive_flag_spec_F77=
14152 enable_shared_with_static_runtimes_F77=no
14154 # Source file extension for f77 test sources.
14155 ac_ext=f
14157 # Object file extension for compiled f77 test sources.
14158 objext=o
14159 objext_F77=$objext
14161 # Code to be used in simple compile tests
14162 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14164 # Code to be used in simple link tests
14165 lt_simple_link_test_code=" program t\n end\n"
14167 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14169 # If no C compiler was specified, use CC.
14170 LTCC=${LTCC-"$CC"}
14172 # Allow CC to be a program name with arguments.
14173 compiler=$CC
14176 # save warnings/boilerplate of simple test code
14177 ac_outfile=conftest.$ac_objext
14178 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14179 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14180 _lt_compiler_boilerplate=`cat conftest.err`
14181 $rm conftest*
14183 ac_outfile=conftest.$ac_objext
14184 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14185 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14186 _lt_linker_boilerplate=`cat conftest.err`
14187 $rm conftest*
14190 # Allow CC to be a program name with arguments.
14191 lt_save_CC="$CC"
14192 CC=${F77-"f77"}
14193 compiler=$CC
14194 compiler_F77=$CC
14195 for cc_temp in $compiler""; do
14196 case $cc_temp in
14197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14199 \-*) ;;
14200 *) break;;
14201 esac
14202 done
14203 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14206 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14207 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14208 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14209 echo "${ECHO_T}$can_build_shared" >&6; }
14211 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14212 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14213 test "$can_build_shared" = "no" && enable_shared=no
14215 # On AIX, shared libraries and static libraries use the same namespace, and
14216 # are all built from PIC.
14217 case $host_os in
14218 aix3*)
14219 test "$enable_shared" = yes && enable_static=no
14220 if test -n "$RANLIB"; then
14221 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14222 postinstall_cmds='$RANLIB $lib'
14225 aix4* | aix5*)
14226 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14227 test "$enable_shared" = yes && enable_static=no
14230 esac
14231 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14232 echo "${ECHO_T}$enable_shared" >&6; }
14234 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14235 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14236 # Make sure either enable_shared or enable_static is yes.
14237 test "$enable_shared" = yes || enable_static=yes
14238 { echo "$as_me:$LINENO: result: $enable_static" >&5
14239 echo "${ECHO_T}$enable_static" >&6; }
14241 test "$ld_shlibs_F77" = no && can_build_shared=no
14243 GCC_F77="$G77"
14244 LD_F77="$LD"
14246 lt_prog_compiler_wl_F77=
14247 lt_prog_compiler_pic_F77=
14248 lt_prog_compiler_static_F77=
14250 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14251 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14253 if test "$GCC" = yes; then
14254 lt_prog_compiler_wl_F77='-Wl,'
14255 lt_prog_compiler_static_F77='-static'
14257 case $host_os in
14258 aix*)
14259 # All AIX code is PIC.
14260 if test "$host_cpu" = ia64; then
14261 # AIX 5 now supports IA64 processor
14262 lt_prog_compiler_static_F77='-Bstatic'
14266 amigaos*)
14267 # FIXME: we need at least 68020 code to build shared libraries, but
14268 # adding the `-m68020' flag to GCC prevents building anything better,
14269 # like `-m68040'.
14270 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14273 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14274 # PIC is the default for these OSes.
14277 mingw* | pw32* | os2*)
14278 # This hack is so that the source file can tell whether it is being
14279 # built for inclusion in a dll (and should export symbols for example).
14280 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14283 darwin* | rhapsody*)
14284 # PIC is the default on this platform
14285 # Common symbols not allowed in MH_DYLIB files
14286 lt_prog_compiler_pic_F77='-fno-common'
14289 msdosdjgpp*)
14290 # Just because we use GCC doesn't mean we suddenly get shared libraries
14291 # on systems that don't support them.
14292 lt_prog_compiler_can_build_shared_F77=no
14293 enable_shared=no
14296 sysv4*MP*)
14297 if test -d /usr/nec; then
14298 lt_prog_compiler_pic_F77=-Kconform_pic
14302 hpux*)
14303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14304 # not for PA HP-UX.
14305 case $host_cpu in
14306 hppa*64*|ia64*)
14307 # +Z the default
14310 lt_prog_compiler_pic_F77='-fPIC'
14312 esac
14316 lt_prog_compiler_pic_F77='-fPIC'
14318 esac
14319 else
14320 # PORTME Check for flag to pass linker flags through the system compiler.
14321 case $host_os in
14322 aix*)
14323 lt_prog_compiler_wl_F77='-Wl,'
14324 if test "$host_cpu" = ia64; then
14325 # AIX 5 now supports IA64 processor
14326 lt_prog_compiler_static_F77='-Bstatic'
14327 else
14328 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14331 darwin*)
14332 # PIC is the default on this platform
14333 # Common symbols not allowed in MH_DYLIB files
14334 case $cc_basename in
14335 xlc*)
14336 lt_prog_compiler_pic_F77='-qnocommon'
14337 lt_prog_compiler_wl_F77='-Wl,'
14339 esac
14342 mingw* | pw32* | os2*)
14343 # This hack is so that the source file can tell whether it is being
14344 # built for inclusion in a dll (and should export symbols for example).
14345 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14348 hpux9* | hpux10* | hpux11*)
14349 lt_prog_compiler_wl_F77='-Wl,'
14350 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14351 # not for PA HP-UX.
14352 case $host_cpu in
14353 hppa*64*|ia64*)
14354 # +Z the default
14357 lt_prog_compiler_pic_F77='+Z'
14359 esac
14360 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14361 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14364 irix5* | irix6* | nonstopux*)
14365 lt_prog_compiler_wl_F77='-Wl,'
14366 # PIC (with -KPIC) is the default.
14367 lt_prog_compiler_static_F77='-non_shared'
14370 newsos6)
14371 lt_prog_compiler_pic_F77='-KPIC'
14372 lt_prog_compiler_static_F77='-Bstatic'
14375 linux*)
14376 case $cc_basename in
14377 icc* | ecc*)
14378 lt_prog_compiler_wl_F77='-Wl,'
14379 lt_prog_compiler_pic_F77='-KPIC'
14380 lt_prog_compiler_static_F77='-static'
14382 pgcc* | pgf77* | pgf90* | pgf95*)
14383 # Portland Group compilers (*not* the Pentium gcc compiler,
14384 # which looks to be a dead project)
14385 lt_prog_compiler_wl_F77='-Wl,'
14386 lt_prog_compiler_pic_F77='-fpic'
14387 lt_prog_compiler_static_F77='-Bstatic'
14389 ccc*)
14390 lt_prog_compiler_wl_F77='-Wl,'
14391 # All Alpha code is PIC.
14392 lt_prog_compiler_static_F77='-non_shared'
14394 esac
14397 osf3* | osf4* | osf5*)
14398 lt_prog_compiler_wl_F77='-Wl,'
14399 # All OSF/1 code is PIC.
14400 lt_prog_compiler_static_F77='-non_shared'
14403 sco3.2v5*)
14404 lt_prog_compiler_pic_F77='-Kpic'
14405 lt_prog_compiler_static_F77='-dn'
14408 solaris*)
14409 lt_prog_compiler_pic_F77='-KPIC'
14410 lt_prog_compiler_static_F77='-Bstatic'
14411 case $cc_basename in
14412 f77* | f90* | f95*)
14413 lt_prog_compiler_wl_F77='-Qoption ld ';;
14415 lt_prog_compiler_wl_F77='-Wl,';;
14416 esac
14419 sunos4*)
14420 lt_prog_compiler_wl_F77='-Qoption ld '
14421 lt_prog_compiler_pic_F77='-PIC'
14422 lt_prog_compiler_static_F77='-Bstatic'
14425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14426 lt_prog_compiler_wl_F77='-Wl,'
14427 lt_prog_compiler_pic_F77='-KPIC'
14428 lt_prog_compiler_static_F77='-Bstatic'
14431 sysv4*MP*)
14432 if test -d /usr/nec ;then
14433 lt_prog_compiler_pic_F77='-Kconform_pic'
14434 lt_prog_compiler_static_F77='-Bstatic'
14438 unicos*)
14439 lt_prog_compiler_wl_F77='-Wl,'
14440 lt_prog_compiler_can_build_shared_F77=no
14443 uts4*)
14444 lt_prog_compiler_pic_F77='-pic'
14445 lt_prog_compiler_static_F77='-Bstatic'
14449 lt_prog_compiler_can_build_shared_F77=no
14451 esac
14454 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14455 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14458 # Check to make sure the PIC flag actually works.
14460 if test -n "$lt_prog_compiler_pic_F77"; then
14462 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14464 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14465 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467 lt_prog_compiler_pic_works_F77=no
14468 ac_outfile=conftest.$ac_objext
14469 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14470 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14471 # Insert the option either (1) after the last *FLAGS variable, or
14472 # (2) before a word containing "conftest.", or (3) at the end.
14473 # Note that $ac_compile itself does not contain backslashes and begins
14474 # with a dollar sign (not a hyphen), so the echo should work correctly.
14475 # The option is referenced via a variable to avoid confusing sed.
14476 lt_compile=`echo "$ac_compile" | $SED \
14477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479 -e 's:$: $lt_compiler_flag:'`
14480 (eval echo "\"\$as_me:14480: $lt_compile\"" >&5)
14481 (eval "$lt_compile" 2>conftest.err)
14482 ac_status=$?
14483 cat conftest.err >&5
14484 echo "$as_me:14484: \$? = $ac_status" >&5
14485 if (exit $ac_status) && test -s "$ac_outfile"; then
14486 # The compiler can only warn and ignore the option if not recognized
14487 # So say no if there are warnings other than the usual output.
14488 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14489 $SED '/^$/d' conftest.err >conftest.er2
14490 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14491 lt_prog_compiler_pic_works_F77=yes
14494 $rm conftest*
14497 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14498 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14500 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14501 case $lt_prog_compiler_pic_F77 in
14502 "" | " "*) ;;
14503 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14504 esac
14505 else
14506 lt_prog_compiler_pic_F77=
14507 lt_prog_compiler_can_build_shared_F77=no
14511 case $host_os in
14512 # For platforms which do not support PIC, -DPIC is meaningless:
14513 *djgpp*)
14514 lt_prog_compiler_pic_F77=
14517 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14519 esac
14521 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14523 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526 lt_cv_prog_compiler_c_o_F77=no
14527 $rm -r conftest 2>/dev/null
14528 mkdir conftest
14529 cd conftest
14530 mkdir out
14531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14533 lt_compiler_flag="-o out/conftest2.$ac_objext"
14534 # Insert the option either (1) after the last *FLAGS variable, or
14535 # (2) before a word containing "conftest.", or (3) at the end.
14536 # Note that $ac_compile itself does not contain backslashes and begins
14537 # with a dollar sign (not a hyphen), so the echo should work correctly.
14538 lt_compile=`echo "$ac_compile" | $SED \
14539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14541 -e 's:$: $lt_compiler_flag:'`
14542 (eval echo "\"\$as_me:14542: $lt_compile\"" >&5)
14543 (eval "$lt_compile" 2>out/conftest.err)
14544 ac_status=$?
14545 cat out/conftest.err >&5
14546 echo "$as_me:14546: \$? = $ac_status" >&5
14547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14548 then
14549 # The compiler can only warn and ignore the option if not recognized
14550 # So say no if there are warnings
14551 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14552 $SED '/^$/d' out/conftest.err >out/conftest.er2
14553 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14554 lt_cv_prog_compiler_c_o_F77=yes
14557 chmod u+w . 2>&5
14558 $rm conftest*
14559 # SGI C++ compiler will create directory out/ii_files/ for
14560 # template instantiation
14561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14562 $rm out/* && rmdir out
14563 cd ..
14564 rmdir conftest
14565 $rm conftest*
14568 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14572 hard_links="nottested"
14573 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14574 # do not overwrite the value of need_locks provided by the user
14575 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14577 hard_links=yes
14578 $rm conftest*
14579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14580 touch conftest.a
14581 ln conftest.a conftest.b 2>&5 || hard_links=no
14582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14583 { echo "$as_me:$LINENO: result: $hard_links" >&5
14584 echo "${ECHO_T}$hard_links" >&6; }
14585 if test "$hard_links" = no; then
14586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14588 need_locks=warn
14590 else
14591 need_locks=no
14594 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14597 runpath_var=
14598 allow_undefined_flag_F77=
14599 enable_shared_with_static_runtimes_F77=no
14600 archive_cmds_F77=
14601 archive_expsym_cmds_F77=
14602 old_archive_From_new_cmds_F77=
14603 old_archive_from_expsyms_cmds_F77=
14604 export_dynamic_flag_spec_F77=
14605 whole_archive_flag_spec_F77=
14606 thread_safe_flag_spec_F77=
14607 hardcode_libdir_flag_spec_F77=
14608 hardcode_libdir_flag_spec_ld_F77=
14609 hardcode_libdir_separator_F77=
14610 hardcode_direct_F77=no
14611 hardcode_minus_L_F77=no
14612 hardcode_shlibpath_var_F77=unsupported
14613 link_all_deplibs_F77=unknown
14614 hardcode_automatic_F77=no
14615 module_cmds_F77=
14616 module_expsym_cmds_F77=
14617 always_export_symbols_F77=no
14618 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14619 # include_expsyms should be a list of space-separated symbols to be *always*
14620 # included in the symbol list
14621 include_expsyms_F77=
14622 # exclude_expsyms can be an extended regexp of symbols to exclude
14623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14625 # as well as any symbol that contains `d'.
14626 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14628 # platforms (ab)use it in PIC code, but their linkers get confused if
14629 # the symbol is explicitly referenced. Since portable code cannot
14630 # rely on this symbol name, it's probably fine to never include it in
14631 # preloaded symbol tables.
14632 extract_expsyms_cmds=
14633 # Just being paranoid about ensuring that cc_basename is set.
14634 for cc_temp in $compiler""; do
14635 case $cc_temp in
14636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14638 \-*) ;;
14639 *) break;;
14640 esac
14641 done
14642 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14644 case $host_os in
14645 cygwin* | mingw* | pw32*)
14646 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14647 # When not using gcc, we currently assume that we are using
14648 # Microsoft Visual C++.
14649 if test "$GCC" != yes; then
14650 with_gnu_ld=no
14653 openbsd*)
14654 with_gnu_ld=no
14656 esac
14658 ld_shlibs_F77=yes
14659 if test "$with_gnu_ld" = yes; then
14660 # If archive_cmds runs LD, not CC, wlarc should be empty
14661 wlarc='${wl}'
14663 # Set some defaults for GNU ld with shared library support. These
14664 # are reset later if shared libraries are not supported. Putting them
14665 # here allows them to be overridden if necessary.
14666 runpath_var=LD_RUN_PATH
14667 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14668 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14669 # ancient GNU ld didn't support --whole-archive et. al.
14670 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14671 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14672 else
14673 whole_archive_flag_spec_F77=
14675 supports_anon_versioning=no
14676 case `$LD -v 2>/dev/null` in
14677 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14678 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14679 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14680 *\ 2.11.*) ;; # other 2.11 versions
14681 *) supports_anon_versioning=yes ;;
14682 esac
14684 # See if GNU ld supports shared libraries.
14685 case $host_os in
14686 aix3* | aix4* | aix5*)
14687 # On AIX/PPC, the GNU linker is very broken
14688 if test "$host_cpu" != ia64; then
14689 ld_shlibs_F77=no
14690 cat <<EOF 1>&2
14692 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14693 *** to be unable to reliably create shared libraries on AIX.
14694 *** Therefore, libtool is disabling shared libraries support. If you
14695 *** really care for shared libraries, you may want to modify your PATH
14696 *** so that a non-GNU linker is found, and then restart.
14702 amigaos*)
14703 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)'
14704 hardcode_libdir_flag_spec_F77='-L$libdir'
14705 hardcode_minus_L_F77=yes
14707 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14708 # that the semantics of dynamic libraries on AmigaOS, at least up
14709 # to version 4, is to share data among multiple programs linked
14710 # with the same dynamic library. Since this doesn't match the
14711 # behavior of shared libraries on other platforms, we can't use
14712 # them.
14713 ld_shlibs_F77=no
14716 beos*)
14717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14718 allow_undefined_flag_F77=unsupported
14719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14720 # support --undefined. This deserves some investigation. FIXME
14721 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14722 else
14723 ld_shlibs_F77=no
14727 cygwin* | mingw* | pw32*)
14728 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14729 # as there is no search path for DLLs.
14730 hardcode_libdir_flag_spec_F77='-L$libdir'
14731 allow_undefined_flag_F77=unsupported
14732 always_export_symbols_F77=no
14733 enable_shared_with_static_runtimes_F77=yes
14734 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14736 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14737 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14738 # If the export-symbols file already is a .def file (1st line
14739 # is EXPORTS), use it as is; otherwise, prepend...
14740 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14741 cp $export_symbols $output_objdir/$soname.def;
14742 else
14743 echo EXPORTS > $output_objdir/$soname.def;
14744 cat $export_symbols >> $output_objdir/$soname.def;
14746 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14747 else
14748 ld_shlibs_F77=no
14752 linux*)
14753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14754 tmp_addflag=
14755 case $cc_basename,$host_cpu in
14756 pgcc*) # Portland Group C compiler
14757 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'
14758 tmp_addflag=' $pic_flag'
14760 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14761 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'
14762 tmp_addflag=' $pic_flag -Mnomain' ;;
14763 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14764 tmp_addflag=' -i_dynamic' ;;
14765 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14766 tmp_addflag=' -i_dynamic -nofor_main' ;;
14767 ifc* | ifort*) # Intel Fortran compiler
14768 tmp_addflag=' -nofor_main' ;;
14769 esac
14770 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14772 if test $supports_anon_versioning = yes; then
14773 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14775 $echo "local: *; };" >> $output_objdir/$libname.ver~
14776 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14778 else
14779 ld_shlibs_F77=no
14783 netbsd*)
14784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14785 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14786 wlarc=
14787 else
14788 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14789 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14793 solaris* | sysv5*)
14794 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14795 ld_shlibs_F77=no
14796 cat <<EOF 1>&2
14798 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14799 *** create shared libraries on Solaris systems. Therefore, libtool
14800 *** is disabling shared libraries support. We urge you to upgrade GNU
14801 *** binutils to release 2.9.1 or newer. Another option is to modify
14802 *** your PATH or compiler configuration so that the native linker is
14803 *** used, and then restart.
14806 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14807 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14808 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14809 else
14810 ld_shlibs_F77=no
14814 sunos4*)
14815 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14816 wlarc=
14817 hardcode_direct_F77=yes
14818 hardcode_shlibpath_var_F77=no
14822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14823 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14824 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14825 else
14826 ld_shlibs_F77=no
14829 esac
14831 if test "$ld_shlibs_F77" = no; then
14832 runpath_var=
14833 hardcode_libdir_flag_spec_F77=
14834 export_dynamic_flag_spec_F77=
14835 whole_archive_flag_spec_F77=
14837 else
14838 # PORTME fill in a description of your system's linker (not GNU ld)
14839 case $host_os in
14840 aix3*)
14841 allow_undefined_flag_F77=unsupported
14842 always_export_symbols_F77=yes
14843 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'
14844 # Note: this linker hardcodes the directories in LIBPATH if there
14845 # are no directories specified by -L.
14846 hardcode_minus_L_F77=yes
14847 if test "$GCC" = yes && test -z "$link_static_flag"; then
14848 # Neither direct hardcoding nor static linking is supported with a
14849 # broken collect2.
14850 hardcode_direct_F77=unsupported
14854 aix4* | aix5*)
14855 if test "$host_cpu" = ia64; then
14856 # On IA64, the linker does run time linking by default, so we don't
14857 # have to do anything special.
14858 aix_use_runtimelinking=no
14859 exp_sym_flag='-Bexport'
14860 no_entry_flag=""
14861 else
14862 # If we're using GNU nm, then we don't want the "-C" option.
14863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14865 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'
14866 else
14867 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'
14869 aix_use_runtimelinking=no
14871 # Test if we are trying to use run time linking or normal
14872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14873 # need to do runtime linking.
14874 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14875 for ld_flag in $LDFLAGS; do
14876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14877 aix_use_runtimelinking=yes
14878 break
14880 done
14881 esac
14883 exp_sym_flag='-bexport'
14884 no_entry_flag='-bnoentry'
14887 # When large executables or shared objects are built, AIX ld can
14888 # have problems creating the table of contents. If linking a library
14889 # or program results in "error TOC overflow" add -mminimal-toc to
14890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14893 archive_cmds_F77=''
14894 hardcode_direct_F77=yes
14895 hardcode_libdir_separator_F77=':'
14896 link_all_deplibs_F77=yes
14898 if test "$GCC" = yes; then
14899 case $host_os in aix4.[012]|aix4.[012].*)
14900 # We only want to do this on AIX 4.2 and lower, the check
14901 # below for broken collect2 doesn't work under 4.3+
14902 collect2name=`${CC} -print-prog-name=collect2`
14903 if test -f "$collect2name" && \
14904 strings "$collect2name" | grep resolve_lib_name >/dev/null
14905 then
14906 # We have reworked collect2
14907 hardcode_direct_F77=yes
14908 else
14909 # We have old collect2
14910 hardcode_direct_F77=unsupported
14911 # It fails to find uninstalled libraries when the uninstalled
14912 # path is not listed in the libpath. Setting hardcode_minus_L
14913 # to unsupported forces relinking
14914 hardcode_minus_L_F77=yes
14915 hardcode_libdir_flag_spec_F77='-L$libdir'
14916 hardcode_libdir_separator_F77=
14918 esac
14919 shared_flag='-shared'
14920 if test "$aix_use_runtimelinking" = yes; then
14921 shared_flag="$shared_flag "'${wl}-G'
14923 else
14924 # not using gcc
14925 if test "$host_cpu" = ia64; then
14926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14927 # chokes on -Wl,-G. The following line is correct:
14928 shared_flag='-G'
14929 else
14930 if test "$aix_use_runtimelinking" = yes; then
14931 shared_flag='${wl}-G'
14932 else
14933 shared_flag='${wl}-bM:SRE'
14938 # It seems that -bexpall does not export symbols beginning with
14939 # underscore (_), so it is better to generate a list of symbols to export.
14940 always_export_symbols_F77=yes
14941 if test "$aix_use_runtimelinking" = yes; then
14942 # Warning - without using the other runtime loading flags (-brtl),
14943 # -berok will link without error, but may produce a broken library.
14944 allow_undefined_flag_F77='-berok'
14945 # Determine the default libpath from the value encoded in an empty executable.
14946 cat >conftest.$ac_ext <<_ACEOF
14947 program main
14950 _ACEOF
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (ac_try="$ac_link"
14953 case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_link") 2>conftest.er1
14959 ac_status=$?
14960 grep -v '^ *+' conftest.er1 >conftest.err
14961 rm -f conftest.er1
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } && {
14965 test -z "$ac_f77_werror_flag" ||
14966 test ! -s conftest.err
14967 } && test -s conftest$ac_exeext &&
14968 $as_test_x conftest$ac_exeext; then
14970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14972 # Check for a 64-bit object if we didn't find anything.
14973 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14974 }'`; fi
14975 else
14976 echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14983 conftest$ac_exeext conftest.$ac_ext
14984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14986 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14987 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14988 else
14989 if test "$host_cpu" = ia64; then
14990 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14991 allow_undefined_flag_F77="-z nodefs"
14992 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14993 else
14994 # Determine the default libpath from the value encoded in an empty executable.
14995 cat >conftest.$ac_ext <<_ACEOF
14996 program main
14999 _ACEOF
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (ac_try="$ac_link"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005 esac
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_link") 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_f77_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest$ac_exeext &&
15017 $as_test_x conftest$ac_exeext; then
15019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15021 # Check for a 64-bit object if we didn't find anything.
15022 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15023 }'`; fi
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15032 conftest$ac_exeext conftest.$ac_ext
15033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15035 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15036 # Warning - without using the other run time loading flags,
15037 # -berok will link without error, but may produce a broken library.
15038 no_undefined_flag_F77=' ${wl}-bernotok'
15039 allow_undefined_flag_F77=' ${wl}-berok'
15040 # -bexpall does not export symbols beginning with underscore (_)
15041 always_export_symbols_F77=yes
15042 # Exported symbols can be pulled into shared objects from archives
15043 whole_archive_flag_spec_F77=' '
15044 archive_cmds_need_lc_F77=yes
15045 # This is similar to how AIX traditionally builds its shared libraries.
15046 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15051 amigaos*)
15052 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)'
15053 hardcode_libdir_flag_spec_F77='-L$libdir'
15054 hardcode_minus_L_F77=yes
15055 # see comment about different semantics on the GNU ld section
15056 ld_shlibs_F77=no
15059 bsdi[45]*)
15060 export_dynamic_flag_spec_F77=-rdynamic
15063 cygwin* | mingw* | pw32*)
15064 # When not using gcc, we currently assume that we are using
15065 # Microsoft Visual C++.
15066 # hardcode_libdir_flag_spec is actually meaningless, as there is
15067 # no search path for DLLs.
15068 hardcode_libdir_flag_spec_F77=' '
15069 allow_undefined_flag_F77=unsupported
15070 # Tell ltmain to make .lib files, not .a files.
15071 libext=lib
15072 # Tell ltmain to make .dll files, not .so files.
15073 shrext_cmds=".dll"
15074 # FIXME: Setting linknames here is a bad hack.
15075 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15076 # The linker will automatically build a .lib file if we build a DLL.
15077 old_archive_From_new_cmds_F77='true'
15078 # FIXME: Should let the user specify the lib program.
15079 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15080 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15081 enable_shared_with_static_runtimes_F77=yes
15084 darwin* | rhapsody*)
15085 case $host_os in
15086 rhapsody* | darwin1.[012])
15087 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15089 *) # Darwin 1.3 on
15090 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15091 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15092 else
15093 case ${MACOSX_DEPLOYMENT_TARGET} in
15094 10.[012])
15095 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15097 10.*)
15098 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15100 esac
15103 esac
15104 archive_cmds_need_lc_F77=no
15105 hardcode_direct_F77=no
15106 hardcode_automatic_F77=yes
15107 hardcode_shlibpath_var_F77=unsupported
15108 whole_archive_flag_spec_F77=''
15109 link_all_deplibs_F77=yes
15110 if test "$GCC" = yes ; then
15111 output_verbose_link_cmd='echo'
15112 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15113 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15115 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}'
15116 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}'
15117 else
15118 case $cc_basename in
15119 xlc*)
15120 output_verbose_link_cmd='echo'
15121 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15122 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15124 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15125 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}'
15128 ld_shlibs_F77=no
15130 esac
15134 dgux*)
15135 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_libdir_flag_spec_F77='-L$libdir'
15137 hardcode_shlibpath_var_F77=no
15140 freebsd1*)
15141 ld_shlibs_F77=no
15144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15145 # support. Future versions do this automatically, but an explicit c++rt0.o
15146 # does not break anything, and helps significantly (at the cost of a little
15147 # extra space).
15148 freebsd2.2*)
15149 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15150 hardcode_libdir_flag_spec_F77='-R$libdir'
15151 hardcode_direct_F77=yes
15152 hardcode_shlibpath_var_F77=no
15155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15156 freebsd2*)
15157 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15158 hardcode_direct_F77=yes
15159 hardcode_minus_L_F77=yes
15160 hardcode_shlibpath_var_F77=no
15163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15164 freebsd* | kfreebsd*-gnu | dragonfly*)
15165 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15166 hardcode_libdir_flag_spec_F77='-R$libdir'
15167 hardcode_direct_F77=yes
15168 hardcode_shlibpath_var_F77=no
15171 hpux9*)
15172 if test "$GCC" = yes; then
15173 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'
15174 else
15175 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'
15177 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15178 hardcode_libdir_separator_F77=:
15179 hardcode_direct_F77=yes
15181 # hardcode_minus_L: Not really in the search PATH,
15182 # but as the default location of the library.
15183 hardcode_minus_L_F77=yes
15184 export_dynamic_flag_spec_F77='${wl}-E'
15187 hpux10* | hpux11*)
15188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15189 case $host_cpu in
15190 hppa*64*|ia64*)
15191 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15196 esac
15197 else
15198 case $host_cpu in
15199 hppa*64*|ia64*)
15200 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15203 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15205 esac
15207 if test "$with_gnu_ld" = no; then
15208 case $host_cpu in
15209 hppa*64*)
15210 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15211 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15212 hardcode_libdir_separator_F77=:
15213 hardcode_direct_F77=no
15214 hardcode_shlibpath_var_F77=no
15216 ia64*)
15217 hardcode_libdir_flag_spec_F77='-L$libdir'
15218 hardcode_direct_F77=no
15219 hardcode_shlibpath_var_F77=no
15221 # hardcode_minus_L: Not really in the search PATH,
15222 # but as the default location of the library.
15223 hardcode_minus_L_F77=yes
15226 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15227 hardcode_libdir_separator_F77=:
15228 hardcode_direct_F77=yes
15229 export_dynamic_flag_spec_F77='${wl}-E'
15231 # hardcode_minus_L: Not really in the search PATH,
15232 # but as the default location of the library.
15233 hardcode_minus_L_F77=yes
15235 esac
15239 irix5* | irix6* | nonstopux*)
15240 if test "$GCC" = yes; then
15241 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'
15242 else
15243 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'
15244 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15246 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15247 hardcode_libdir_separator_F77=:
15248 link_all_deplibs_F77=yes
15251 netbsd*)
15252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15253 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15254 else
15255 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15257 hardcode_libdir_flag_spec_F77='-R$libdir'
15258 hardcode_direct_F77=yes
15259 hardcode_shlibpath_var_F77=no
15262 newsos6)
15263 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15264 hardcode_direct_F77=yes
15265 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15266 hardcode_libdir_separator_F77=:
15267 hardcode_shlibpath_var_F77=no
15270 openbsd*)
15271 hardcode_direct_F77=yes
15272 hardcode_shlibpath_var_F77=no
15273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15274 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15275 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15276 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15277 export_dynamic_flag_spec_F77='${wl}-E'
15278 else
15279 case $host_os in
15280 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15281 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15282 hardcode_libdir_flag_spec_F77='-R$libdir'
15285 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15286 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15288 esac
15292 os2*)
15293 hardcode_libdir_flag_spec_F77='-L$libdir'
15294 hardcode_minus_L_F77=yes
15295 allow_undefined_flag_F77=unsupported
15296 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'
15297 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15300 osf3*)
15301 if test "$GCC" = yes; then
15302 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15303 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'
15304 else
15305 allow_undefined_flag_F77=' -expect_unresolved \*'
15306 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'
15308 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15309 hardcode_libdir_separator_F77=:
15312 osf4* | osf5*) # as osf3* with the addition of -msym flag
15313 if test "$GCC" = yes; then
15314 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15315 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'
15316 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15317 else
15318 allow_undefined_flag_F77=' -expect_unresolved \*'
15319 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'
15320 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~
15321 $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'
15323 # Both c and cxx compiler support -rpath directly
15324 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15326 hardcode_libdir_separator_F77=:
15329 sco3.2v5*)
15330 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15331 hardcode_shlibpath_var_F77=no
15332 export_dynamic_flag_spec_F77='${wl}-Bexport'
15333 runpath_var=LD_RUN_PATH
15334 hardcode_runpath_var=yes
15337 solaris*)
15338 no_undefined_flag_F77=' -z text'
15339 if test "$GCC" = yes; then
15340 wlarc='${wl}'
15341 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15342 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15343 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15344 else
15345 wlarc=''
15346 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15347 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15350 hardcode_libdir_flag_spec_F77='-R$libdir'
15351 hardcode_shlibpath_var_F77=no
15352 case $host_os in
15353 solaris2.[0-5] | solaris2.[0-5].*) ;;
15355 # The compiler driver will combine linker options so we
15356 # cannot just pass the convience library names through
15357 # without $wl, iff we do not link with $LD.
15358 # Luckily, gcc supports the same syntax we need for Sun Studio.
15359 # Supported since Solaris 2.6 (maybe 2.5.1?)
15360 case $wlarc in
15362 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15364 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15365 esac ;;
15366 esac
15367 link_all_deplibs_F77=yes
15370 sunos4*)
15371 if test "x$host_vendor" = xsequent; then
15372 # Use $CC to link under sequent, because it throws in some extra .o
15373 # files that make .init and .fini sections work.
15374 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15375 else
15376 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15378 hardcode_libdir_flag_spec_F77='-L$libdir'
15379 hardcode_direct_F77=yes
15380 hardcode_minus_L_F77=yes
15381 hardcode_shlibpath_var_F77=no
15384 sysv4)
15385 case $host_vendor in
15386 sni)
15387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_direct_F77=yes # is this really true???
15390 siemens)
15391 ## LD is ld it makes a PLAMLIB
15392 ## CC just makes a GrossModule.
15393 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15394 reload_cmds_F77='$CC -r -o $output$reload_objs'
15395 hardcode_direct_F77=no
15397 motorola)
15398 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15401 esac
15402 runpath_var='LD_RUN_PATH'
15403 hardcode_shlibpath_var_F77=no
15406 sysv4.3*)
15407 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15408 hardcode_shlibpath_var_F77=no
15409 export_dynamic_flag_spec_F77='-Bexport'
15412 sysv4*MP*)
15413 if test -d /usr/nec; then
15414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15415 hardcode_shlibpath_var_F77=no
15416 runpath_var=LD_RUN_PATH
15417 hardcode_runpath_var=yes
15418 ld_shlibs_F77=yes
15422 sysv4.2uw2*)
15423 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15424 hardcode_direct_F77=yes
15425 hardcode_minus_L_F77=no
15426 hardcode_shlibpath_var_F77=no
15427 hardcode_runpath_var=yes
15428 runpath_var=LD_RUN_PATH
15431 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15432 no_undefined_flag_F77='${wl}-z ${wl}text'
15433 if test "$GCC" = yes; then
15434 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15435 else
15436 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15438 runpath_var='LD_RUN_PATH'
15439 hardcode_shlibpath_var_F77=no
15442 sysv5*)
15443 no_undefined_flag_F77=' -z text'
15444 # $CC -shared without GNU ld will not create a library from C++
15445 # object files and a static libstdc++, better avoid it by now
15446 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15447 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15449 hardcode_libdir_flag_spec_F77=
15450 hardcode_shlibpath_var_F77=no
15451 runpath_var='LD_RUN_PATH'
15454 uts4*)
15455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_libdir_flag_spec_F77='-L$libdir'
15457 hardcode_shlibpath_var_F77=no
15461 ld_shlibs_F77=no
15463 esac
15466 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15467 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15468 test "$ld_shlibs_F77" = no && can_build_shared=no
15470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15471 if test "$GCC" = yes; then
15472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15476 # Do we need to explicitly link libc?
15478 case "x$archive_cmds_need_lc_F77" in
15479 x|xyes)
15480 # Assume -lc should be added
15481 archive_cmds_need_lc_F77=yes
15483 if test "$enable_shared" = yes && test "$GCC" = yes; then
15484 case $archive_cmds_F77 in
15485 *'~'*)
15486 # FIXME: we may have to deal with multi-command sequences.
15488 '$CC '*)
15489 # Test whether the compiler implicitly links with -lc since on some
15490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15491 # to ld, don't add -lc before -lgcc.
15492 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15493 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15494 $rm conftest*
15495 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498 (eval $ac_compile) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } 2>conftest.err; then
15502 soname=conftest
15503 lib=conftest
15504 libobjs=conftest.$ac_objext
15505 deplibs=
15506 wl=$lt_prog_compiler_wl_F77
15507 compiler_flags=-v
15508 linker_flags=-v
15509 verstring=
15510 output_objdir=.
15511 libname=conftest
15512 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15513 allow_undefined_flag_F77=
15514 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15515 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }
15519 then
15520 archive_cmds_need_lc_F77=no
15521 else
15522 archive_cmds_need_lc_F77=yes
15524 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15525 else
15526 cat conftest.err 1>&5
15528 $rm conftest*
15529 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15530 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15532 esac
15535 esac
15537 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15538 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15539 library_names_spec=
15540 libname_spec='lib$name'
15541 soname_spec=
15542 shrext_cmds=".so"
15543 postinstall_cmds=
15544 postuninstall_cmds=
15545 finish_cmds=
15546 finish_eval=
15547 shlibpath_var=
15548 shlibpath_overrides_runpath=unknown
15549 version_type=none
15550 dynamic_linker="$host_os ld.so"
15551 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15552 if test "$GCC" = yes; then
15553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15554 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15555 # if the path contains ";" then we assume it to be the separator
15556 # otherwise default to the standard path separator (i.e. ":") - it is
15557 # assumed that no part of a normal pathname contains ";" but that should
15558 # okay in the real world where ";" in dirpaths is itself problematic.
15559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15560 else
15561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15563 else
15564 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15566 need_lib_prefix=unknown
15567 hardcode_into_libs=no
15569 # when you set need_version to no, make sure it does not cause -set_version
15570 # flags to be left without arguments
15571 need_version=unknown
15573 case $host_os in
15574 aix3*)
15575 version_type=linux
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15577 shlibpath_var=LIBPATH
15579 # AIX 3 has no versioning support, so we append a major version to the name.
15580 soname_spec='${libname}${release}${shared_ext}$major'
15583 aix4* | aix5*)
15584 version_type=linux
15585 need_lib_prefix=no
15586 need_version=no
15587 hardcode_into_libs=yes
15588 if test "$host_cpu" = ia64; then
15589 # AIX 5 supports IA64
15590 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 else
15593 # With GCC up to 2.95.x, collect2 would create an import file
15594 # for dependence libraries. The import file would start with
15595 # the line `#! .'. This would cause the generated library to
15596 # depend on `.', always an invalid library. This was fixed in
15597 # development snapshots of GCC prior to 3.0.
15598 case $host_os in
15599 aix4 | aix4.[01] | aix4.[01].*)
15600 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15601 echo ' yes '
15602 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15604 else
15605 can_build_shared=no
15608 esac
15609 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15610 # soname into executable. Probably we can add versioning support to
15611 # collect2, so additional links can be useful in future.
15612 if test "$aix_use_runtimelinking" = yes; then
15613 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15614 # instead of lib<name>.a to let people know that these are not
15615 # typical AIX shared libraries.
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 else
15618 # We preserve .a as extension for shared libraries through AIX4.2
15619 # and later when we are not doing run time linking.
15620 library_names_spec='${libname}${release}.a $libname.a'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15623 shlibpath_var=LIBPATH
15627 amigaos*)
15628 library_names_spec='$libname.ixlibrary $libname.a'
15629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15630 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'
15633 beos*)
15634 library_names_spec='${libname}${shared_ext}'
15635 dynamic_linker="$host_os ld.so"
15636 shlibpath_var=LIBRARY_PATH
15639 bsdi[45]*)
15640 version_type=linux
15641 need_version=no
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 soname_spec='${libname}${release}${shared_ext}$major'
15644 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15647 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15648 # the default ld.so.conf also contains /usr/contrib/lib and
15649 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15650 # libtool to hard-code these into programs
15653 cygwin* | mingw* | pw32*)
15654 version_type=windows
15655 shrext_cmds=".dll"
15656 need_version=no
15657 need_lib_prefix=no
15659 case $GCC,$host_os in
15660 yes,cygwin* | yes,mingw* | yes,pw32*)
15661 library_names_spec='$libname.dll.a'
15662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15663 postinstall_cmds='base_file=`basename \${file}`~
15664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15665 dldir=$destdir/`dirname \$dlpath`~
15666 test -d \$dldir || mkdir -p \$dldir~
15667 $install_prog $dir/$dlname \$dldir/$dlname~
15668 chmod a+x \$dldir/$dlname'
15669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15670 dlpath=$dir/\$dldll~
15671 $rm \$dlpath'
15672 shlibpath_overrides_runpath=yes
15674 case $host_os in
15675 cygwin*)
15676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15680 mingw*)
15681 # MinGW DLLs use traditional 'lib' prefix
15682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15685 # It is most probably a Windows format PATH printed by
15686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15687 # path with ; separators, and with drive letters. We can handle the
15688 # drive letters (cygwin fileutils understands them), so leave them,
15689 # especially as we might pass files found there to a mingw objdump,
15690 # which wouldn't understand a cygwinified path. Ahh.
15691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15692 else
15693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15696 pw32*)
15697 # pw32 DLLs use 'pw' prefix rather than 'lib'
15698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15700 esac
15704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15706 esac
15707 dynamic_linker='Win32 ld.exe'
15708 # FIXME: first we should search . and the directory the executable is in
15709 shlibpath_var=PATH
15712 darwin* | rhapsody*)
15713 dynamic_linker="$host_os dyld"
15714 version_type=darwin
15715 need_lib_prefix=no
15716 need_version=no
15717 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15718 soname_spec='${libname}${release}${major}$shared_ext'
15719 shlibpath_overrides_runpath=yes
15720 shlibpath_var=DYLD_LIBRARY_PATH
15721 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15722 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15723 if test "$GCC" = yes; then
15724 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15725 else
15726 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15731 dgux*)
15732 version_type=linux
15733 need_lib_prefix=no
15734 need_version=no
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 shlibpath_var=LD_LIBRARY_PATH
15740 freebsd1*)
15741 dynamic_linker=no
15744 kfreebsd*-gnu)
15745 version_type=linux
15746 need_lib_prefix=no
15747 need_version=no
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15749 soname_spec='${libname}${release}${shared_ext}$major'
15750 shlibpath_var=LD_LIBRARY_PATH
15751 shlibpath_overrides_runpath=no
15752 hardcode_into_libs=yes
15753 dynamic_linker='GNU ld.so'
15756 freebsd* | dragonfly*)
15757 # DragonFly does not have aout. When/if they implement a new
15758 # versioning mechanism, adjust this.
15759 if test -x /usr/bin/objformat; then
15760 objformat=`/usr/bin/objformat`
15761 else
15762 case $host_os in
15763 freebsd[123]*) objformat=aout ;;
15764 *) objformat=elf ;;
15765 esac
15767 version_type=freebsd-$objformat
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 esac
15779 shlibpath_var=LD_LIBRARY_PATH
15780 case $host_os in
15781 freebsd2*)
15782 shlibpath_overrides_runpath=yes
15784 freebsd3.[01]* | freebsdelf3.[01]*)
15785 shlibpath_overrides_runpath=yes
15786 hardcode_into_libs=yes
15788 *) # from 3.2 on
15789 shlibpath_overrides_runpath=no
15790 hardcode_into_libs=yes
15792 esac
15795 gnu*)
15796 version_type=linux
15797 need_lib_prefix=no
15798 need_version=no
15799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15800 soname_spec='${libname}${release}${shared_ext}$major'
15801 shlibpath_var=LD_LIBRARY_PATH
15802 hardcode_into_libs=yes
15805 hpux9* | hpux10* | hpux11*)
15806 # Give a soname corresponding to the major version so that dld.sl refuses to
15807 # link against other versions.
15808 version_type=sunos
15809 need_lib_prefix=no
15810 need_version=no
15811 case $host_cpu in
15812 ia64*)
15813 shrext_cmds='.so'
15814 hardcode_into_libs=yes
15815 dynamic_linker="$host_os dld.so"
15816 shlibpath_var=LD_LIBRARY_PATH
15817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 if test "X$HPUX_IA64_MODE" = X32; then
15821 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15822 else
15823 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15827 hppa*64*)
15828 shrext_cmds='.sl'
15829 hardcode_into_libs=yes
15830 dynamic_linker="$host_os dld.sl"
15831 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15839 shrext_cmds='.sl'
15840 dynamic_linker="$host_os dld.sl"
15841 shlibpath_var=SHLIB_PATH
15842 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844 soname_spec='${libname}${release}${shared_ext}$major'
15846 esac
15847 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15848 postinstall_cmds='chmod 555 $lib'
15851 irix5* | irix6* | nonstopux*)
15852 case $host_os in
15853 nonstopux*) version_type=nonstopux ;;
15855 if test "$lt_cv_prog_gnu_ld" = yes; then
15856 version_type=linux
15857 else
15858 version_type=irix
15859 fi ;;
15860 esac
15861 need_lib_prefix=no
15862 need_version=no
15863 soname_spec='${libname}${release}${shared_ext}$major'
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15865 case $host_os in
15866 irix5* | nonstopux*)
15867 libsuff= shlibsuff=
15870 case $LD in # libtool.m4 will add one of these switches to LD
15871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15872 libsuff= shlibsuff= libmagic=32-bit;;
15873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15874 libsuff=32 shlibsuff=N32 libmagic=N32;;
15875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15876 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15877 *) libsuff= shlibsuff= libmagic=never-match;;
15878 esac
15880 esac
15881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15882 shlibpath_overrides_runpath=no
15883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15885 hardcode_into_libs=yes
15888 # No shared lib support for Linux oldld, aout, or coff.
15889 linux*oldld* | linux*aout* | linux*coff*)
15890 dynamic_linker=no
15893 # This must be Linux ELF.
15894 linux*)
15895 version_type=linux
15896 need_lib_prefix=no
15897 need_version=no
15898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899 soname_spec='${libname}${release}${shared_ext}$major'
15900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 shlibpath_overrides_runpath=no
15903 # This implies no fast_install, which is unacceptable.
15904 # Some rework will be needed to allow for fast_install
15905 # before this can be enabled.
15906 hardcode_into_libs=yes
15908 # Append ld.so.conf contents to the search path
15909 if test -f /etc/ld.so.conf; then
15910 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15914 # We used to test for /lib/ld.so.1 and disable shared libraries on
15915 # powerpc, because MkLinux only supported shared libraries with the
15916 # GNU dynamic linker. Since this was broken with cross compilers,
15917 # most powerpc-linux boxes support dynamic linking these days and
15918 # people can always --disable-shared, the test was removed, and we
15919 # assume the GNU/Linux dynamic linker is in use.
15920 dynamic_linker='GNU/Linux ld.so'
15923 knetbsd*-gnu)
15924 version_type=linux
15925 need_lib_prefix=no
15926 need_version=no
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 shlibpath_var=LD_LIBRARY_PATH
15930 shlibpath_overrides_runpath=no
15931 hardcode_into_libs=yes
15932 dynamic_linker='GNU ld.so'
15935 netbsd*)
15936 version_type=sunos
15937 need_lib_prefix=no
15938 need_version=no
15939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15942 dynamic_linker='NetBSD (a.out) ld.so'
15943 else
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15945 soname_spec='${libname}${release}${shared_ext}$major'
15946 dynamic_linker='NetBSD ld.elf_so'
15948 shlibpath_var=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath=yes
15950 hardcode_into_libs=yes
15953 newsos6)
15954 version_type=linux
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=yes
15960 nto-qnx*)
15961 version_type=linux
15962 need_lib_prefix=no
15963 need_version=no
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=yes
15970 openbsd*)
15971 version_type=sunos
15972 need_lib_prefix=no
15973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15974 case $host_os in
15975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15976 *) need_version=no ;;
15977 esac
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15982 case $host_os in
15983 openbsd2.[89] | openbsd2.[89].*)
15984 shlibpath_overrides_runpath=no
15987 shlibpath_overrides_runpath=yes
15989 esac
15990 else
15991 shlibpath_overrides_runpath=yes
15995 os2*)
15996 libname_spec='$name'
15997 shrext_cmds=".dll"
15998 need_lib_prefix=no
15999 library_names_spec='$libname${shared_ext} $libname.a'
16000 dynamic_linker='OS/2 ld.exe'
16001 shlibpath_var=LIBPATH
16004 osf3* | osf4* | osf5*)
16005 version_type=osf
16006 need_lib_prefix=no
16007 need_version=no
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16015 sco3.2v5*)
16016 version_type=osf
16017 soname_spec='${libname}${release}${shared_ext}$major'
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 shlibpath_var=LD_LIBRARY_PATH
16022 solaris*)
16023 version_type=linux
16024 need_lib_prefix=no
16025 need_version=no
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027 soname_spec='${libname}${release}${shared_ext}$major'
16028 shlibpath_var=LD_LIBRARY_PATH
16029 shlibpath_overrides_runpath=yes
16030 hardcode_into_libs=yes
16031 # ldd complains unless libraries are executable
16032 postinstall_cmds='chmod +x $lib'
16035 sunos4*)
16036 version_type=sunos
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 shlibpath_overrides_runpath=yes
16041 if test "$with_gnu_ld" = yes; then
16042 need_lib_prefix=no
16044 need_version=yes
16047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16048 version_type=linux
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 case $host_vendor in
16053 sni)
16054 shlibpath_overrides_runpath=no
16055 need_lib_prefix=no
16056 export_dynamic_flag_spec='${wl}-Blargedynsym'
16057 runpath_var=LD_RUN_PATH
16059 siemens)
16060 need_lib_prefix=no
16062 motorola)
16063 need_lib_prefix=no
16064 need_version=no
16065 shlibpath_overrides_runpath=no
16066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16068 esac
16071 sysv4*MP*)
16072 if test -d /usr/nec ;then
16073 version_type=linux
16074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16075 soname_spec='$libname${shared_ext}.$major'
16076 shlibpath_var=LD_LIBRARY_PATH
16080 uts4*)
16081 version_type=linux
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16083 soname_spec='${libname}${release}${shared_ext}$major'
16084 shlibpath_var=LD_LIBRARY_PATH
16088 dynamic_linker=no
16090 esac
16091 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16092 echo "${ECHO_T}$dynamic_linker" >&6; }
16093 test "$dynamic_linker" = no && can_build_shared=no
16095 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16096 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16097 hardcode_action_F77=
16098 if test -n "$hardcode_libdir_flag_spec_F77" || \
16099 test -n "$runpath_var_F77" || \
16100 test "X$hardcode_automatic_F77" = "Xyes" ; then
16102 # We can hardcode non-existant directories.
16103 if test "$hardcode_direct_F77" != no &&
16104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16105 # have to relink, otherwise we might link with an installed library
16106 # when we should be linking with a yet-to-be-installed one
16107 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16108 test "$hardcode_minus_L_F77" != no; then
16109 # Linking always hardcodes the temporary library directory.
16110 hardcode_action_F77=relink
16111 else
16112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16113 hardcode_action_F77=immediate
16115 else
16116 # We cannot hardcode anything, or else we can only hardcode existing
16117 # directories.
16118 hardcode_action_F77=unsupported
16120 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16121 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16123 if test "$hardcode_action_F77" = relink; then
16124 # Fast installation is not supported
16125 enable_fast_install=no
16126 elif test "$shlibpath_overrides_runpath" = yes ||
16127 test "$enable_shared" = no; then
16128 # Fast installation is not necessary
16129 enable_fast_install=needless
16132 striplib=
16133 old_striplib=
16134 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16135 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16136 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16137 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16138 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16139 { echo "$as_me:$LINENO: result: yes" >&5
16140 echo "${ECHO_T}yes" >&6; }
16141 else
16142 # FIXME - insert some real tests, host_os isn't really good enough
16143 case $host_os in
16144 darwin*)
16145 if test -n "$STRIP" ; then
16146 striplib="$STRIP -x"
16147 { echo "$as_me:$LINENO: result: yes" >&5
16148 echo "${ECHO_T}yes" >&6; }
16149 else
16150 { echo "$as_me:$LINENO: result: no" >&5
16151 echo "${ECHO_T}no" >&6; }
16155 { echo "$as_me:$LINENO: result: no" >&5
16156 echo "${ECHO_T}no" >&6; }
16158 esac
16163 # The else clause should only fire when bootstrapping the
16164 # libtool distribution, otherwise you forgot to ship ltmain.sh
16165 # with your package, and you will get complaints that there are
16166 # no rules to generate ltmain.sh.
16167 if test -f "$ltmain"; then
16168 # See if we are running on zsh, and set the options which allow our commands through
16169 # without removal of \ escapes.
16170 if test -n "${ZSH_VERSION+set}" ; then
16171 setopt NO_GLOB_SUBST
16173 # Now quote all the things that may contain metacharacters while being
16174 # careful not to overquote the AC_SUBSTed values. We take copies of the
16175 # variables and quote the copies for generation of the libtool script.
16176 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16177 SED SHELL STRIP \
16178 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16179 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16180 deplibs_check_method reload_flag reload_cmds need_locks \
16181 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16182 lt_cv_sys_global_symbol_to_c_name_address \
16183 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16184 old_postinstall_cmds old_postuninstall_cmds \
16185 compiler_F77 \
16186 CC_F77 \
16187 LD_F77 \
16188 lt_prog_compiler_wl_F77 \
16189 lt_prog_compiler_pic_F77 \
16190 lt_prog_compiler_static_F77 \
16191 lt_prog_compiler_no_builtin_flag_F77 \
16192 export_dynamic_flag_spec_F77 \
16193 thread_safe_flag_spec_F77 \
16194 whole_archive_flag_spec_F77 \
16195 enable_shared_with_static_runtimes_F77 \
16196 old_archive_cmds_F77 \
16197 old_archive_from_new_cmds_F77 \
16198 predep_objects_F77 \
16199 postdep_objects_F77 \
16200 predeps_F77 \
16201 postdeps_F77 \
16202 compiler_lib_search_path_F77 \
16203 archive_cmds_F77 \
16204 archive_expsym_cmds_F77 \
16205 postinstall_cmds_F77 \
16206 postuninstall_cmds_F77 \
16207 old_archive_from_expsyms_cmds_F77 \
16208 allow_undefined_flag_F77 \
16209 no_undefined_flag_F77 \
16210 export_symbols_cmds_F77 \
16211 hardcode_libdir_flag_spec_F77 \
16212 hardcode_libdir_flag_spec_ld_F77 \
16213 hardcode_libdir_separator_F77 \
16214 hardcode_automatic_F77 \
16215 module_cmds_F77 \
16216 module_expsym_cmds_F77 \
16217 lt_cv_prog_compiler_c_o_F77 \
16218 exclude_expsyms_F77 \
16219 include_expsyms_F77; do
16221 case $var in
16222 old_archive_cmds_F77 | \
16223 old_archive_from_new_cmds_F77 | \
16224 archive_cmds_F77 | \
16225 archive_expsym_cmds_F77 | \
16226 module_cmds_F77 | \
16227 module_expsym_cmds_F77 | \
16228 old_archive_from_expsyms_cmds_F77 | \
16229 export_symbols_cmds_F77 | \
16230 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16231 postinstall_cmds | postuninstall_cmds | \
16232 old_postinstall_cmds | old_postuninstall_cmds | \
16233 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16234 # Double-quote double-evaled strings.
16235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16240 esac
16241 done
16243 case $lt_echo in
16244 *'\$0 --fallback-echo"')
16245 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16247 esac
16249 cfgfile="$ofile"
16251 cat <<__EOF__ >> "$cfgfile"
16252 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16254 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16256 # Shell to use when invoking shell scripts.
16257 SHELL=$lt_SHELL
16259 # Whether or not to build shared libraries.
16260 build_libtool_libs=$enable_shared
16262 # Whether or not to build static libraries.
16263 build_old_libs=$enable_static
16265 # Whether or not to add -lc for building shared libraries.
16266 build_libtool_need_lc=$archive_cmds_need_lc_F77
16268 # Whether or not to disallow shared libs when runtime libs are static
16269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16271 # Whether or not to optimize for fast installation.
16272 fast_install=$enable_fast_install
16274 # The host system.
16275 host_alias=$host_alias
16276 host=$host
16277 host_os=$host_os
16279 # The build system.
16280 build_alias=$build_alias
16281 build=$build
16282 build_os=$build_os
16284 # An echo program that does not interpret backslashes.
16285 echo=$lt_echo
16287 # The archiver.
16288 AR=$lt_AR
16289 AR_FLAGS=$lt_AR_FLAGS
16291 # A C compiler.
16292 LTCC=$lt_LTCC
16294 # A language-specific compiler.
16295 CC=$lt_compiler_F77
16297 # Is the compiler the GNU C compiler?
16298 with_gcc=$GCC_F77
16300 # An ERE matcher.
16301 EGREP=$lt_EGREP
16303 # The linker used to build libraries.
16304 LD=$lt_LD_F77
16306 # Whether we need hard or soft links.
16307 LN_S=$lt_LN_S
16309 # A BSD-compatible nm program.
16310 NM=$lt_NM
16312 # A symbol stripping program
16313 STRIP=$lt_STRIP
16315 # Used to examine libraries when file_magic_cmd begins "file"
16316 MAGIC_CMD=$MAGIC_CMD
16318 # Used on cygwin: DLL creation program.
16319 DLLTOOL="$DLLTOOL"
16321 # Used on cygwin: object dumper.
16322 OBJDUMP="$OBJDUMP"
16324 # Used on cygwin: assembler.
16325 AS="$AS"
16327 # The name of the directory that contains temporary libtool files.
16328 objdir=$objdir
16330 # How to create reloadable object files.
16331 reload_flag=$lt_reload_flag
16332 reload_cmds=$lt_reload_cmds
16334 # How to pass a linker flag through the compiler.
16335 wl=$lt_lt_prog_compiler_wl_F77
16337 # Object file suffix (normally "o").
16338 objext="$ac_objext"
16340 # Old archive suffix (normally "a").
16341 libext="$libext"
16343 # Shared library suffix (normally ".so").
16344 shrext_cmds='$shrext_cmds'
16346 # Executable file suffix (normally "").
16347 exeext="$exeext"
16349 # Additional compiler flags for building library objects.
16350 pic_flag=$lt_lt_prog_compiler_pic_F77
16351 pic_mode=$pic_mode
16353 # What is the maximum length of a command?
16354 max_cmd_len=$lt_cv_sys_max_cmd_len
16356 # Does compiler simultaneously support -c and -o options?
16357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16359 # Must we lock files when doing compilation?
16360 need_locks=$lt_need_locks
16362 # Do we need the lib prefix for modules?
16363 need_lib_prefix=$need_lib_prefix
16365 # Do we need a version for libraries?
16366 need_version=$need_version
16368 # Whether dlopen is supported.
16369 dlopen_support=$enable_dlopen
16371 # Whether dlopen of programs is supported.
16372 dlopen_self=$enable_dlopen_self
16374 # Whether dlopen of statically linked programs is supported.
16375 dlopen_self_static=$enable_dlopen_self_static
16377 # Compiler flag to prevent dynamic linking.
16378 link_static_flag=$lt_lt_prog_compiler_static_F77
16380 # Compiler flag to turn off builtin functions.
16381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16383 # Compiler flag to allow reflexive dlopens.
16384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16386 # Compiler flag to generate shared objects directly from archives.
16387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16389 # Compiler flag to generate thread-safe objects.
16390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16392 # Library versioning type.
16393 version_type=$version_type
16395 # Format of library name prefix.
16396 libname_spec=$lt_libname_spec
16398 # List of archive names. First name is the real one, the rest are links.
16399 # The last name is the one that the linker finds with -lNAME.
16400 library_names_spec=$lt_library_names_spec
16402 # The coded name of the library, if different from the real name.
16403 soname_spec=$lt_soname_spec
16405 # Commands used to build and install an old-style archive.
16406 RANLIB=$lt_RANLIB
16407 old_archive_cmds=$lt_old_archive_cmds_F77
16408 old_postinstall_cmds=$lt_old_postinstall_cmds
16409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16411 # Create an old-style archive from a shared archive.
16412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16414 # Create a temporary old-style archive to link instead of a shared archive.
16415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16417 # Commands used to build and install a shared archive.
16418 archive_cmds=$lt_archive_cmds_F77
16419 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16420 postinstall_cmds=$lt_postinstall_cmds
16421 postuninstall_cmds=$lt_postuninstall_cmds
16423 # Commands used to build a loadable module (assumed same as above if empty)
16424 module_cmds=$lt_module_cmds_F77
16425 module_expsym_cmds=$lt_module_expsym_cmds_F77
16427 # Commands to strip libraries.
16428 old_striplib=$lt_old_striplib
16429 striplib=$lt_striplib
16431 # Dependencies to place before the objects being linked to create a
16432 # shared library.
16433 predep_objects=$lt_predep_objects_F77
16435 # Dependencies to place after the objects being linked to create a
16436 # shared library.
16437 postdep_objects=$lt_postdep_objects_F77
16439 # Dependencies to place before the objects being linked to create a
16440 # shared library.
16441 predeps=$lt_predeps_F77
16443 # Dependencies to place after the objects being linked to create a
16444 # shared library.
16445 postdeps=$lt_postdeps_F77
16447 # The library search path used internally by the compiler when linking
16448 # a shared library.
16449 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16451 # Method to check whether dependent libraries are shared objects.
16452 deplibs_check_method=$lt_deplibs_check_method
16454 # Command to use when deplibs_check_method == file_magic.
16455 file_magic_cmd=$lt_file_magic_cmd
16457 # Flag that allows shared libraries with undefined symbols to be built.
16458 allow_undefined_flag=$lt_allow_undefined_flag_F77
16460 # Flag that forces no undefined symbols.
16461 no_undefined_flag=$lt_no_undefined_flag_F77
16463 # Commands used to finish a libtool library installation in a directory.
16464 finish_cmds=$lt_finish_cmds
16466 # Same as above, but a single script fragment to be evaled but not shown.
16467 finish_eval=$lt_finish_eval
16469 # Take the output of nm and produce a listing of raw symbols and C names.
16470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16472 # Transform the output of nm in a proper C declaration
16473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16475 # Transform the output of nm in a C name address pair
16476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16478 # This is the shared library runtime path variable.
16479 runpath_var=$runpath_var
16481 # This is the shared library path variable.
16482 shlibpath_var=$shlibpath_var
16484 # Is shlibpath searched before the hard-coded library search path?
16485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16487 # How to hardcode a shared library path into an executable.
16488 hardcode_action=$hardcode_action_F77
16490 # Whether we should hardcode library paths into libraries.
16491 hardcode_into_libs=$hardcode_into_libs
16493 # Flag to hardcode \$libdir into a binary during linking.
16494 # This must work even if \$libdir does not exist.
16495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16497 # If ld is used when linking, flag to hardcode \$libdir into
16498 # a binary during linking. This must work even if \$libdir does
16499 # not exist.
16500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16502 # Whether we need a single -rpath flag with a separated argument.
16503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16506 # resulting binary.
16507 hardcode_direct=$hardcode_direct_F77
16509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16510 # resulting binary.
16511 hardcode_minus_L=$hardcode_minus_L_F77
16513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16514 # the resulting binary.
16515 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16517 # Set to yes if building a shared library automatically hardcodes DIR into the library
16518 # and all subsequent libraries and executables linked against it.
16519 hardcode_automatic=$hardcode_automatic_F77
16521 # Variables whose values should be saved in libtool wrapper scripts and
16522 # restored at relink time.
16523 variables_saved_for_relink="$variables_saved_for_relink"
16525 # Whether libtool must link a program against all its dependency libraries.
16526 link_all_deplibs=$link_all_deplibs_F77
16528 # Compile-time system search path for libraries
16529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16531 # Run-time system search path for libraries
16532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16534 # Fix the shell variable \$srcfile for the compiler.
16535 fix_srcfile_path="$fix_srcfile_path_F77"
16537 # Set to yes if exported symbols are required.
16538 always_export_symbols=$always_export_symbols_F77
16540 # The commands to list exported symbols.
16541 export_symbols_cmds=$lt_export_symbols_cmds_F77
16543 # The commands to extract the exported symbol list from a shared archive.
16544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16546 # Symbols that should not be listed in the preloaded symbols.
16547 exclude_expsyms=$lt_exclude_expsyms_F77
16549 # Symbols that must always be exported.
16550 include_expsyms=$lt_include_expsyms_F77
16552 # ### END LIBTOOL TAG CONFIG: $tagname
16554 __EOF__
16557 else
16558 # If there is no Makefile yet, we rely on a make rule to execute
16559 # `config.status --recheck' to rerun these tests and create the
16560 # libtool script then.
16561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16562 if test -f "$ltmain_in"; then
16563 test -f Makefile && make "$ltmain"
16568 ac_ext=c
16569 ac_cpp='$CPP $CPPFLAGS'
16570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16574 CC="$lt_save_CC"
16576 else
16577 tagname=""
16581 GCJ)
16582 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16585 # Source file extension for Java test sources.
16586 ac_ext=java
16588 # Object file extension for compiled Java test sources.
16589 objext=o
16590 objext_GCJ=$objext
16592 # Code to be used in simple compile tests
16593 lt_simple_compile_test_code="class foo {}\n"
16595 # Code to be used in simple link tests
16596 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16600 # If no C compiler was specified, use CC.
16601 LTCC=${LTCC-"$CC"}
16603 # Allow CC to be a program name with arguments.
16604 compiler=$CC
16607 # save warnings/boilerplate of simple test code
16608 ac_outfile=conftest.$ac_objext
16609 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16610 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16611 _lt_compiler_boilerplate=`cat conftest.err`
16612 $rm conftest*
16614 ac_outfile=conftest.$ac_objext
16615 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16616 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16617 _lt_linker_boilerplate=`cat conftest.err`
16618 $rm conftest*
16621 # Allow CC to be a program name with arguments.
16622 lt_save_CC="$CC"
16623 CC=${GCJ-"gcj"}
16624 compiler=$CC
16625 compiler_GCJ=$CC
16626 for cc_temp in $compiler""; do
16627 case $cc_temp in
16628 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16629 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16630 \-*) ;;
16631 *) break;;
16632 esac
16633 done
16634 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16637 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16638 archive_cmds_need_lc_GCJ=no
16640 old_archive_cmds_GCJ=$old_archive_cmds
16643 lt_prog_compiler_no_builtin_flag_GCJ=
16645 if test "$GCC" = yes; then
16646 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16649 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16650 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16651 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654 lt_cv_prog_compiler_rtti_exceptions=no
16655 ac_outfile=conftest.$ac_objext
16656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16657 lt_compiler_flag="-fno-rtti -fno-exceptions"
16658 # Insert the option either (1) after the last *FLAGS variable, or
16659 # (2) before a word containing "conftest.", or (3) at the end.
16660 # Note that $ac_compile itself does not contain backslashes and begins
16661 # with a dollar sign (not a hyphen), so the echo should work correctly.
16662 # The option is referenced via a variable to avoid confusing sed.
16663 lt_compile=`echo "$ac_compile" | $SED \
16664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16666 -e 's:$: $lt_compiler_flag:'`
16667 (eval echo "\"\$as_me:16667: $lt_compile\"" >&5)
16668 (eval "$lt_compile" 2>conftest.err)
16669 ac_status=$?
16670 cat conftest.err >&5
16671 echo "$as_me:16671: \$? = $ac_status" >&5
16672 if (exit $ac_status) && test -s "$ac_outfile"; then
16673 # The compiler can only warn and ignore the option if not recognized
16674 # So say no if there are warnings other than the usual output.
16675 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16676 $SED '/^$/d' conftest.err >conftest.er2
16677 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16678 lt_cv_prog_compiler_rtti_exceptions=yes
16681 $rm conftest*
16684 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16685 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16687 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16688 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16689 else
16695 lt_prog_compiler_wl_GCJ=
16696 lt_prog_compiler_pic_GCJ=
16697 lt_prog_compiler_static_GCJ=
16699 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16700 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16702 if test "$GCC" = yes; then
16703 lt_prog_compiler_wl_GCJ='-Wl,'
16704 lt_prog_compiler_static_GCJ='-static'
16706 case $host_os in
16707 aix*)
16708 # All AIX code is PIC.
16709 if test "$host_cpu" = ia64; then
16710 # AIX 5 now supports IA64 processor
16711 lt_prog_compiler_static_GCJ='-Bstatic'
16715 amigaos*)
16716 # FIXME: we need at least 68020 code to build shared libraries, but
16717 # adding the `-m68020' flag to GCC prevents building anything better,
16718 # like `-m68040'.
16719 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16722 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16723 # PIC is the default for these OSes.
16726 mingw* | pw32* | os2*)
16727 # This hack is so that the source file can tell whether it is being
16728 # built for inclusion in a dll (and should export symbols for example).
16729 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16732 darwin* | rhapsody*)
16733 # PIC is the default on this platform
16734 # Common symbols not allowed in MH_DYLIB files
16735 lt_prog_compiler_pic_GCJ='-fno-common'
16738 msdosdjgpp*)
16739 # Just because we use GCC doesn't mean we suddenly get shared libraries
16740 # on systems that don't support them.
16741 lt_prog_compiler_can_build_shared_GCJ=no
16742 enable_shared=no
16745 sysv4*MP*)
16746 if test -d /usr/nec; then
16747 lt_prog_compiler_pic_GCJ=-Kconform_pic
16751 hpux*)
16752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16753 # not for PA HP-UX.
16754 case $host_cpu in
16755 hppa*64*|ia64*)
16756 # +Z the default
16759 lt_prog_compiler_pic_GCJ='-fPIC'
16761 esac
16765 lt_prog_compiler_pic_GCJ='-fPIC'
16767 esac
16768 else
16769 # PORTME Check for flag to pass linker flags through the system compiler.
16770 case $host_os in
16771 aix*)
16772 lt_prog_compiler_wl_GCJ='-Wl,'
16773 if test "$host_cpu" = ia64; then
16774 # AIX 5 now supports IA64 processor
16775 lt_prog_compiler_static_GCJ='-Bstatic'
16776 else
16777 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16780 darwin*)
16781 # PIC is the default on this platform
16782 # Common symbols not allowed in MH_DYLIB files
16783 case $cc_basename in
16784 xlc*)
16785 lt_prog_compiler_pic_GCJ='-qnocommon'
16786 lt_prog_compiler_wl_GCJ='-Wl,'
16788 esac
16791 mingw* | pw32* | os2*)
16792 # This hack is so that the source file can tell whether it is being
16793 # built for inclusion in a dll (and should export symbols for example).
16794 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16797 hpux9* | hpux10* | hpux11*)
16798 lt_prog_compiler_wl_GCJ='-Wl,'
16799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16800 # not for PA HP-UX.
16801 case $host_cpu in
16802 hppa*64*|ia64*)
16803 # +Z the default
16806 lt_prog_compiler_pic_GCJ='+Z'
16808 esac
16809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16810 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16813 irix5* | irix6* | nonstopux*)
16814 lt_prog_compiler_wl_GCJ='-Wl,'
16815 # PIC (with -KPIC) is the default.
16816 lt_prog_compiler_static_GCJ='-non_shared'
16819 newsos6)
16820 lt_prog_compiler_pic_GCJ='-KPIC'
16821 lt_prog_compiler_static_GCJ='-Bstatic'
16824 linux*)
16825 case $cc_basename in
16826 icc* | ecc*)
16827 lt_prog_compiler_wl_GCJ='-Wl,'
16828 lt_prog_compiler_pic_GCJ='-KPIC'
16829 lt_prog_compiler_static_GCJ='-static'
16831 pgcc* | pgf77* | pgf90* | pgf95*)
16832 # Portland Group compilers (*not* the Pentium gcc compiler,
16833 # which looks to be a dead project)
16834 lt_prog_compiler_wl_GCJ='-Wl,'
16835 lt_prog_compiler_pic_GCJ='-fpic'
16836 lt_prog_compiler_static_GCJ='-Bstatic'
16838 ccc*)
16839 lt_prog_compiler_wl_GCJ='-Wl,'
16840 # All Alpha code is PIC.
16841 lt_prog_compiler_static_GCJ='-non_shared'
16843 esac
16846 osf3* | osf4* | osf5*)
16847 lt_prog_compiler_wl_GCJ='-Wl,'
16848 # All OSF/1 code is PIC.
16849 lt_prog_compiler_static_GCJ='-non_shared'
16852 sco3.2v5*)
16853 lt_prog_compiler_pic_GCJ='-Kpic'
16854 lt_prog_compiler_static_GCJ='-dn'
16857 solaris*)
16858 lt_prog_compiler_pic_GCJ='-KPIC'
16859 lt_prog_compiler_static_GCJ='-Bstatic'
16860 case $cc_basename in
16861 f77* | f90* | f95*)
16862 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16864 lt_prog_compiler_wl_GCJ='-Wl,';;
16865 esac
16868 sunos4*)
16869 lt_prog_compiler_wl_GCJ='-Qoption ld '
16870 lt_prog_compiler_pic_GCJ='-PIC'
16871 lt_prog_compiler_static_GCJ='-Bstatic'
16874 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 lt_prog_compiler_pic_GCJ='-KPIC'
16877 lt_prog_compiler_static_GCJ='-Bstatic'
16880 sysv4*MP*)
16881 if test -d /usr/nec ;then
16882 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16883 lt_prog_compiler_static_GCJ='-Bstatic'
16887 unicos*)
16888 lt_prog_compiler_wl_GCJ='-Wl,'
16889 lt_prog_compiler_can_build_shared_GCJ=no
16892 uts4*)
16893 lt_prog_compiler_pic_GCJ='-pic'
16894 lt_prog_compiler_static_GCJ='-Bstatic'
16898 lt_prog_compiler_can_build_shared_GCJ=no
16900 esac
16903 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16904 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16907 # Check to make sure the PIC flag actually works.
16909 if test -n "$lt_prog_compiler_pic_GCJ"; then
16911 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16912 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16913 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916 lt_prog_compiler_pic_works_GCJ=no
16917 ac_outfile=conftest.$ac_objext
16918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16919 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16920 # Insert the option either (1) after the last *FLAGS variable, or
16921 # (2) before a word containing "conftest.", or (3) at the end.
16922 # Note that $ac_compile itself does not contain backslashes and begins
16923 # with a dollar sign (not a hyphen), so the echo should work correctly.
16924 # The option is referenced via a variable to avoid confusing sed.
16925 lt_compile=`echo "$ac_compile" | $SED \
16926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16928 -e 's:$: $lt_compiler_flag:'`
16929 (eval echo "\"\$as_me:16929: $lt_compile\"" >&5)
16930 (eval "$lt_compile" 2>conftest.err)
16931 ac_status=$?
16932 cat conftest.err >&5
16933 echo "$as_me:16933: \$? = $ac_status" >&5
16934 if (exit $ac_status) && test -s "$ac_outfile"; then
16935 # The compiler can only warn and ignore the option if not recognized
16936 # So say no if there are warnings other than the usual output.
16937 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16938 $SED '/^$/d' conftest.err >conftest.er2
16939 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16940 lt_prog_compiler_pic_works_GCJ=yes
16943 $rm conftest*
16946 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16947 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16949 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16950 case $lt_prog_compiler_pic_GCJ in
16951 "" | " "*) ;;
16952 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16953 esac
16954 else
16955 lt_prog_compiler_pic_GCJ=
16956 lt_prog_compiler_can_build_shared_GCJ=no
16960 case $host_os in
16961 # For platforms which do not support PIC, -DPIC is meaningless:
16962 *djgpp*)
16963 lt_prog_compiler_pic_GCJ=
16966 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16968 esac
16970 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16971 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16972 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16974 else
16975 lt_cv_prog_compiler_c_o_GCJ=no
16976 $rm -r conftest 2>/dev/null
16977 mkdir conftest
16978 cd conftest
16979 mkdir out
16980 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16982 lt_compiler_flag="-o out/conftest2.$ac_objext"
16983 # Insert the option either (1) after the last *FLAGS variable, or
16984 # (2) before a word containing "conftest.", or (3) at the end.
16985 # Note that $ac_compile itself does not contain backslashes and begins
16986 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
16993 ac_status=$?
16994 cat out/conftest.err >&5
16995 echo "$as_me:16995: \$? = $ac_status" >&5
16996 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16997 then
16998 # The compiler can only warn and ignore the option if not recognized
16999 # So say no if there are warnings
17000 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17001 $SED '/^$/d' out/conftest.err >out/conftest.er2
17002 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17003 lt_cv_prog_compiler_c_o_GCJ=yes
17006 chmod u+w . 2>&5
17007 $rm conftest*
17008 # SGI C++ compiler will create directory out/ii_files/ for
17009 # template instantiation
17010 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17011 $rm out/* && rmdir out
17012 cd ..
17013 rmdir conftest
17014 $rm conftest*
17017 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17018 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17021 hard_links="nottested"
17022 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17023 # do not overwrite the value of need_locks provided by the user
17024 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17025 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17026 hard_links=yes
17027 $rm conftest*
17028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17029 touch conftest.a
17030 ln conftest.a conftest.b 2>&5 || hard_links=no
17031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17032 { echo "$as_me:$LINENO: result: $hard_links" >&5
17033 echo "${ECHO_T}$hard_links" >&6; }
17034 if test "$hard_links" = no; then
17035 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17036 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17037 need_locks=warn
17039 else
17040 need_locks=no
17043 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17044 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17046 runpath_var=
17047 allow_undefined_flag_GCJ=
17048 enable_shared_with_static_runtimes_GCJ=no
17049 archive_cmds_GCJ=
17050 archive_expsym_cmds_GCJ=
17051 old_archive_From_new_cmds_GCJ=
17052 old_archive_from_expsyms_cmds_GCJ=
17053 export_dynamic_flag_spec_GCJ=
17054 whole_archive_flag_spec_GCJ=
17055 thread_safe_flag_spec_GCJ=
17056 hardcode_libdir_flag_spec_GCJ=
17057 hardcode_libdir_flag_spec_ld_GCJ=
17058 hardcode_libdir_separator_GCJ=
17059 hardcode_direct_GCJ=no
17060 hardcode_minus_L_GCJ=no
17061 hardcode_shlibpath_var_GCJ=unsupported
17062 link_all_deplibs_GCJ=unknown
17063 hardcode_automatic_GCJ=no
17064 module_cmds_GCJ=
17065 module_expsym_cmds_GCJ=
17066 always_export_symbols_GCJ=no
17067 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17068 # include_expsyms should be a list of space-separated symbols to be *always*
17069 # included in the symbol list
17070 include_expsyms_GCJ=
17071 # exclude_expsyms can be an extended regexp of symbols to exclude
17072 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17073 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17074 # as well as any symbol that contains `d'.
17075 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17076 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17077 # platforms (ab)use it in PIC code, but their linkers get confused if
17078 # the symbol is explicitly referenced. Since portable code cannot
17079 # rely on this symbol name, it's probably fine to never include it in
17080 # preloaded symbol tables.
17081 extract_expsyms_cmds=
17082 # Just being paranoid about ensuring that cc_basename is set.
17083 for cc_temp in $compiler""; do
17084 case $cc_temp in
17085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17087 \-*) ;;
17088 *) break;;
17089 esac
17090 done
17091 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17093 case $host_os in
17094 cygwin* | mingw* | pw32*)
17095 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17096 # When not using gcc, we currently assume that we are using
17097 # Microsoft Visual C++.
17098 if test "$GCC" != yes; then
17099 with_gnu_ld=no
17102 openbsd*)
17103 with_gnu_ld=no
17105 esac
17107 ld_shlibs_GCJ=yes
17108 if test "$with_gnu_ld" = yes; then
17109 # If archive_cmds runs LD, not CC, wlarc should be empty
17110 wlarc='${wl}'
17112 # Set some defaults for GNU ld with shared library support. These
17113 # are reset later if shared libraries are not supported. Putting them
17114 # here allows them to be overridden if necessary.
17115 runpath_var=LD_RUN_PATH
17116 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17117 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17118 # ancient GNU ld didn't support --whole-archive et. al.
17119 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17120 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17121 else
17122 whole_archive_flag_spec_GCJ=
17124 supports_anon_versioning=no
17125 case `$LD -v 2>/dev/null` in
17126 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17127 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17128 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17129 *\ 2.11.*) ;; # other 2.11 versions
17130 *) supports_anon_versioning=yes ;;
17131 esac
17133 # See if GNU ld supports shared libraries.
17134 case $host_os in
17135 aix3* | aix4* | aix5*)
17136 # On AIX/PPC, the GNU linker is very broken
17137 if test "$host_cpu" != ia64; then
17138 ld_shlibs_GCJ=no
17139 cat <<EOF 1>&2
17141 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17142 *** to be unable to reliably create shared libraries on AIX.
17143 *** Therefore, libtool is disabling shared libraries support. If you
17144 *** really care for shared libraries, you may want to modify your PATH
17145 *** so that a non-GNU linker is found, and then restart.
17151 amigaos*)
17152 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)'
17153 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17154 hardcode_minus_L_GCJ=yes
17156 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17157 # that the semantics of dynamic libraries on AmigaOS, at least up
17158 # to version 4, is to share data among multiple programs linked
17159 # with the same dynamic library. Since this doesn't match the
17160 # behavior of shared libraries on other platforms, we can't use
17161 # them.
17162 ld_shlibs_GCJ=no
17165 beos*)
17166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17167 allow_undefined_flag_GCJ=unsupported
17168 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17169 # support --undefined. This deserves some investigation. FIXME
17170 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17171 else
17172 ld_shlibs_GCJ=no
17176 cygwin* | mingw* | pw32*)
17177 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17178 # as there is no search path for DLLs.
17179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17180 allow_undefined_flag_GCJ=unsupported
17181 always_export_symbols_GCJ=no
17182 enable_shared_with_static_runtimes_GCJ=yes
17183 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17185 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17187 # If the export-symbols file already is a .def file (1st line
17188 # is EXPORTS), use it as is; otherwise, prepend...
17189 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17190 cp $export_symbols $output_objdir/$soname.def;
17191 else
17192 echo EXPORTS > $output_objdir/$soname.def;
17193 cat $export_symbols >> $output_objdir/$soname.def;
17195 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17196 else
17197 ld_shlibs_GCJ=no
17201 linux*)
17202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17203 tmp_addflag=
17204 case $cc_basename,$host_cpu in
17205 pgcc*) # Portland Group C compiler
17206 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'
17207 tmp_addflag=' $pic_flag'
17209 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17210 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'
17211 tmp_addflag=' $pic_flag -Mnomain' ;;
17212 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17213 tmp_addflag=' -i_dynamic' ;;
17214 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17215 tmp_addflag=' -i_dynamic -nofor_main' ;;
17216 ifc* | ifort*) # Intel Fortran compiler
17217 tmp_addflag=' -nofor_main' ;;
17218 esac
17219 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17221 if test $supports_anon_versioning = yes; then
17222 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17224 $echo "local: *; };" >> $output_objdir/$libname.ver~
17225 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17227 else
17228 ld_shlibs_GCJ=no
17232 netbsd*)
17233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17234 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17235 wlarc=
17236 else
17237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17238 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17242 solaris* | sysv5*)
17243 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17244 ld_shlibs_GCJ=no
17245 cat <<EOF 1>&2
17247 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17248 *** create shared libraries on Solaris systems. Therefore, libtool
17249 *** is disabling shared libraries support. We urge you to upgrade GNU
17250 *** binutils to release 2.9.1 or newer. Another option is to modify
17251 *** your PATH or compiler configuration so that the native linker is
17252 *** used, and then restart.
17255 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17256 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17257 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17258 else
17259 ld_shlibs_GCJ=no
17263 sunos4*)
17264 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17265 wlarc=
17266 hardcode_direct_GCJ=yes
17267 hardcode_shlibpath_var_GCJ=no
17271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17272 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17273 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17274 else
17275 ld_shlibs_GCJ=no
17278 esac
17280 if test "$ld_shlibs_GCJ" = no; then
17281 runpath_var=
17282 hardcode_libdir_flag_spec_GCJ=
17283 export_dynamic_flag_spec_GCJ=
17284 whole_archive_flag_spec_GCJ=
17286 else
17287 # PORTME fill in a description of your system's linker (not GNU ld)
17288 case $host_os in
17289 aix3*)
17290 allow_undefined_flag_GCJ=unsupported
17291 always_export_symbols_GCJ=yes
17292 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'
17293 # Note: this linker hardcodes the directories in LIBPATH if there
17294 # are no directories specified by -L.
17295 hardcode_minus_L_GCJ=yes
17296 if test "$GCC" = yes && test -z "$link_static_flag"; then
17297 # Neither direct hardcoding nor static linking is supported with a
17298 # broken collect2.
17299 hardcode_direct_GCJ=unsupported
17303 aix4* | aix5*)
17304 if test "$host_cpu" = ia64; then
17305 # On IA64, the linker does run time linking by default, so we don't
17306 # have to do anything special.
17307 aix_use_runtimelinking=no
17308 exp_sym_flag='-Bexport'
17309 no_entry_flag=""
17310 else
17311 # If we're using GNU nm, then we don't want the "-C" option.
17312 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17314 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'
17315 else
17316 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'
17318 aix_use_runtimelinking=no
17320 # Test if we are trying to use run time linking or normal
17321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17322 # need to do runtime linking.
17323 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17324 for ld_flag in $LDFLAGS; do
17325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17326 aix_use_runtimelinking=yes
17327 break
17329 done
17330 esac
17332 exp_sym_flag='-bexport'
17333 no_entry_flag='-bnoentry'
17336 # When large executables or shared objects are built, AIX ld can
17337 # have problems creating the table of contents. If linking a library
17338 # or program results in "error TOC overflow" add -mminimal-toc to
17339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17342 archive_cmds_GCJ=''
17343 hardcode_direct_GCJ=yes
17344 hardcode_libdir_separator_GCJ=':'
17345 link_all_deplibs_GCJ=yes
17347 if test "$GCC" = yes; then
17348 case $host_os in aix4.[012]|aix4.[012].*)
17349 # We only want to do this on AIX 4.2 and lower, the check
17350 # below for broken collect2 doesn't work under 4.3+
17351 collect2name=`${CC} -print-prog-name=collect2`
17352 if test -f "$collect2name" && \
17353 strings "$collect2name" | grep resolve_lib_name >/dev/null
17354 then
17355 # We have reworked collect2
17356 hardcode_direct_GCJ=yes
17357 else
17358 # We have old collect2
17359 hardcode_direct_GCJ=unsupported
17360 # It fails to find uninstalled libraries when the uninstalled
17361 # path is not listed in the libpath. Setting hardcode_minus_L
17362 # to unsupported forces relinking
17363 hardcode_minus_L_GCJ=yes
17364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17365 hardcode_libdir_separator_GCJ=
17367 esac
17368 shared_flag='-shared'
17369 if test "$aix_use_runtimelinking" = yes; then
17370 shared_flag="$shared_flag "'${wl}-G'
17372 else
17373 # not using gcc
17374 if test "$host_cpu" = ia64; then
17375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17376 # chokes on -Wl,-G. The following line is correct:
17377 shared_flag='-G'
17378 else
17379 if test "$aix_use_runtimelinking" = yes; then
17380 shared_flag='${wl}-G'
17381 else
17382 shared_flag='${wl}-bM:SRE'
17387 # It seems that -bexpall does not export symbols beginning with
17388 # underscore (_), so it is better to generate a list of symbols to export.
17389 always_export_symbols_GCJ=yes
17390 if test "$aix_use_runtimelinking" = yes; then
17391 # Warning - without using the other runtime loading flags (-brtl),
17392 # -berok will link without error, but may produce a broken library.
17393 allow_undefined_flag_GCJ='-berok'
17394 # Determine the default libpath from the value encoded in an empty executable.
17395 cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h. */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17403 main ()
17407 return 0;
17409 _ACEOF
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (ac_try="$ac_link"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_link") 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest$ac_exeext &&
17427 $as_test_x conftest$ac_exeext; then
17429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17431 # Check for a 64-bit object if we didn't find anything.
17432 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17433 }'`; fi
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17442 conftest$ac_exeext conftest.$ac_ext
17443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17445 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17446 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17447 else
17448 if test "$host_cpu" = ia64; then
17449 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17450 allow_undefined_flag_GCJ="-z nodefs"
17451 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17452 else
17453 # Determine the default libpath from the value encoded in an empty executable.
17454 cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h. */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17462 main ()
17466 return 0;
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17474 esac
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>conftest.er1
17477 ac_status=$?
17478 grep -v '^ *+' conftest.er1 >conftest.err
17479 rm -f conftest.er1
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && {
17483 test -z "$ac_c_werror_flag" ||
17484 test ! -s conftest.err
17485 } && test -s conftest$ac_exeext &&
17486 $as_test_x conftest$ac_exeext; then
17488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17490 # Check for a 64-bit object if we didn't find anything.
17491 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17492 }'`; fi
17493 else
17494 echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17501 conftest$ac_exeext conftest.$ac_ext
17502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17504 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17505 # Warning - without using the other run time loading flags,
17506 # -berok will link without error, but may produce a broken library.
17507 no_undefined_flag_GCJ=' ${wl}-bernotok'
17508 allow_undefined_flag_GCJ=' ${wl}-berok'
17509 # -bexpall does not export symbols beginning with underscore (_)
17510 always_export_symbols_GCJ=yes
17511 # Exported symbols can be pulled into shared objects from archives
17512 whole_archive_flag_spec_GCJ=' '
17513 archive_cmds_need_lc_GCJ=yes
17514 # This is similar to how AIX traditionally builds its shared libraries.
17515 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17520 amigaos*)
17521 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)'
17522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17523 hardcode_minus_L_GCJ=yes
17524 # see comment about different semantics on the GNU ld section
17525 ld_shlibs_GCJ=no
17528 bsdi[45]*)
17529 export_dynamic_flag_spec_GCJ=-rdynamic
17532 cygwin* | mingw* | pw32*)
17533 # When not using gcc, we currently assume that we are using
17534 # Microsoft Visual C++.
17535 # hardcode_libdir_flag_spec is actually meaningless, as there is
17536 # no search path for DLLs.
17537 hardcode_libdir_flag_spec_GCJ=' '
17538 allow_undefined_flag_GCJ=unsupported
17539 # Tell ltmain to make .lib files, not .a files.
17540 libext=lib
17541 # Tell ltmain to make .dll files, not .so files.
17542 shrext_cmds=".dll"
17543 # FIXME: Setting linknames here is a bad hack.
17544 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17545 # The linker will automatically build a .lib file if we build a DLL.
17546 old_archive_From_new_cmds_GCJ='true'
17547 # FIXME: Should let the user specify the lib program.
17548 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17549 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17550 enable_shared_with_static_runtimes_GCJ=yes
17553 darwin* | rhapsody*)
17554 case $host_os in
17555 rhapsody* | darwin1.[012])
17556 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17558 *) # Darwin 1.3 on
17559 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17560 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17561 else
17562 case ${MACOSX_DEPLOYMENT_TARGET} in
17563 10.[012])
17564 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17566 10.*)
17567 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17569 esac
17572 esac
17573 archive_cmds_need_lc_GCJ=no
17574 hardcode_direct_GCJ=no
17575 hardcode_automatic_GCJ=yes
17576 hardcode_shlibpath_var_GCJ=unsupported
17577 whole_archive_flag_spec_GCJ=''
17578 link_all_deplibs_GCJ=yes
17579 if test "$GCC" = yes ; then
17580 output_verbose_link_cmd='echo'
17581 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17582 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17584 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}'
17585 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}'
17586 else
17587 case $cc_basename in
17588 xlc*)
17589 output_verbose_link_cmd='echo'
17590 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17591 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17592 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17593 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17594 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}'
17597 ld_shlibs_GCJ=no
17599 esac
17603 dgux*)
17604 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17606 hardcode_shlibpath_var_GCJ=no
17609 freebsd1*)
17610 ld_shlibs_GCJ=no
17613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17614 # support. Future versions do this automatically, but an explicit c++rt0.o
17615 # does not break anything, and helps significantly (at the cost of a little
17616 # extra space).
17617 freebsd2.2*)
17618 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17619 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17620 hardcode_direct_GCJ=yes
17621 hardcode_shlibpath_var_GCJ=no
17624 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17625 freebsd2*)
17626 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17627 hardcode_direct_GCJ=yes
17628 hardcode_minus_L_GCJ=yes
17629 hardcode_shlibpath_var_GCJ=no
17632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17633 freebsd* | kfreebsd*-gnu | dragonfly*)
17634 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17635 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17636 hardcode_direct_GCJ=yes
17637 hardcode_shlibpath_var_GCJ=no
17640 hpux9*)
17641 if test "$GCC" = yes; then
17642 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'
17643 else
17644 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'
17646 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17647 hardcode_libdir_separator_GCJ=:
17648 hardcode_direct_GCJ=yes
17650 # hardcode_minus_L: Not really in the search PATH,
17651 # but as the default location of the library.
17652 hardcode_minus_L_GCJ=yes
17653 export_dynamic_flag_spec_GCJ='${wl}-E'
17656 hpux10* | hpux11*)
17657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17658 case $host_cpu in
17659 hppa*64*|ia64*)
17660 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17663 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17665 esac
17666 else
17667 case $host_cpu in
17668 hppa*64*|ia64*)
17669 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17672 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17674 esac
17676 if test "$with_gnu_ld" = no; then
17677 case $host_cpu in
17678 hppa*64*)
17679 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17680 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17681 hardcode_libdir_separator_GCJ=:
17682 hardcode_direct_GCJ=no
17683 hardcode_shlibpath_var_GCJ=no
17685 ia64*)
17686 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17687 hardcode_direct_GCJ=no
17688 hardcode_shlibpath_var_GCJ=no
17690 # hardcode_minus_L: Not really in the search PATH,
17691 # but as the default location of the library.
17692 hardcode_minus_L_GCJ=yes
17695 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17696 hardcode_libdir_separator_GCJ=:
17697 hardcode_direct_GCJ=yes
17698 export_dynamic_flag_spec_GCJ='${wl}-E'
17700 # hardcode_minus_L: Not really in the search PATH,
17701 # but as the default location of the library.
17702 hardcode_minus_L_GCJ=yes
17704 esac
17708 irix5* | irix6* | nonstopux*)
17709 if test "$GCC" = yes; then
17710 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'
17711 else
17712 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'
17713 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17715 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17716 hardcode_libdir_separator_GCJ=:
17717 link_all_deplibs_GCJ=yes
17720 netbsd*)
17721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17722 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17723 else
17724 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17726 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17727 hardcode_direct_GCJ=yes
17728 hardcode_shlibpath_var_GCJ=no
17731 newsos6)
17732 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17733 hardcode_direct_GCJ=yes
17734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17735 hardcode_libdir_separator_GCJ=:
17736 hardcode_shlibpath_var_GCJ=no
17739 openbsd*)
17740 hardcode_direct_GCJ=yes
17741 hardcode_shlibpath_var_GCJ=no
17742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17743 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17744 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17745 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17746 export_dynamic_flag_spec_GCJ='${wl}-E'
17747 else
17748 case $host_os in
17749 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17750 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17751 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17754 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17755 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17757 esac
17761 os2*)
17762 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17763 hardcode_minus_L_GCJ=yes
17764 allow_undefined_flag_GCJ=unsupported
17765 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'
17766 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17769 osf3*)
17770 if test "$GCC" = yes; then
17771 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17772 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'
17773 else
17774 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17775 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'
17777 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17778 hardcode_libdir_separator_GCJ=:
17781 osf4* | osf5*) # as osf3* with the addition of -msym flag
17782 if test "$GCC" = yes; then
17783 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17784 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'
17785 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17786 else
17787 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17788 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'
17789 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~
17790 $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'
17792 # Both c and cxx compiler support -rpath directly
17793 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17795 hardcode_libdir_separator_GCJ=:
17798 sco3.2v5*)
17799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17800 hardcode_shlibpath_var_GCJ=no
17801 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17802 runpath_var=LD_RUN_PATH
17803 hardcode_runpath_var=yes
17806 solaris*)
17807 no_undefined_flag_GCJ=' -z text'
17808 if test "$GCC" = yes; then
17809 wlarc='${wl}'
17810 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17811 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17812 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17813 else
17814 wlarc=''
17815 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17816 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17819 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17820 hardcode_shlibpath_var_GCJ=no
17821 case $host_os in
17822 solaris2.[0-5] | solaris2.[0-5].*) ;;
17824 # The compiler driver will combine linker options so we
17825 # cannot just pass the convience library names through
17826 # without $wl, iff we do not link with $LD.
17827 # Luckily, gcc supports the same syntax we need for Sun Studio.
17828 # Supported since Solaris 2.6 (maybe 2.5.1?)
17829 case $wlarc in
17831 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17833 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17834 esac ;;
17835 esac
17836 link_all_deplibs_GCJ=yes
17839 sunos4*)
17840 if test "x$host_vendor" = xsequent; then
17841 # Use $CC to link under sequent, because it throws in some extra .o
17842 # files that make .init and .fini sections work.
17843 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17844 else
17845 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17847 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17848 hardcode_direct_GCJ=yes
17849 hardcode_minus_L_GCJ=yes
17850 hardcode_shlibpath_var_GCJ=no
17853 sysv4)
17854 case $host_vendor in
17855 sni)
17856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17857 hardcode_direct_GCJ=yes # is this really true???
17859 siemens)
17860 ## LD is ld it makes a PLAMLIB
17861 ## CC just makes a GrossModule.
17862 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17863 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17864 hardcode_direct_GCJ=no
17866 motorola)
17867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17868 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17870 esac
17871 runpath_var='LD_RUN_PATH'
17872 hardcode_shlibpath_var_GCJ=no
17875 sysv4.3*)
17876 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17877 hardcode_shlibpath_var_GCJ=no
17878 export_dynamic_flag_spec_GCJ='-Bexport'
17881 sysv4*MP*)
17882 if test -d /usr/nec; then
17883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17884 hardcode_shlibpath_var_GCJ=no
17885 runpath_var=LD_RUN_PATH
17886 hardcode_runpath_var=yes
17887 ld_shlibs_GCJ=yes
17891 sysv4.2uw2*)
17892 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17893 hardcode_direct_GCJ=yes
17894 hardcode_minus_L_GCJ=no
17895 hardcode_shlibpath_var_GCJ=no
17896 hardcode_runpath_var=yes
17897 runpath_var=LD_RUN_PATH
17900 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17901 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17902 if test "$GCC" = yes; then
17903 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17904 else
17905 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17907 runpath_var='LD_RUN_PATH'
17908 hardcode_shlibpath_var_GCJ=no
17911 sysv5*)
17912 no_undefined_flag_GCJ=' -z text'
17913 # $CC -shared without GNU ld will not create a library from C++
17914 # object files and a static libstdc++, better avoid it by now
17915 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17918 hardcode_libdir_flag_spec_GCJ=
17919 hardcode_shlibpath_var_GCJ=no
17920 runpath_var='LD_RUN_PATH'
17923 uts4*)
17924 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17925 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17926 hardcode_shlibpath_var_GCJ=no
17930 ld_shlibs_GCJ=no
17932 esac
17935 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17936 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17937 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17939 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17940 if test "$GCC" = yes; then
17941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17945 # Do we need to explicitly link libc?
17947 case "x$archive_cmds_need_lc_GCJ" in
17948 x|xyes)
17949 # Assume -lc should be added
17950 archive_cmds_need_lc_GCJ=yes
17952 if test "$enable_shared" = yes && test "$GCC" = yes; then
17953 case $archive_cmds_GCJ in
17954 *'~'*)
17955 # FIXME: we may have to deal with multi-command sequences.
17957 '$CC '*)
17958 # Test whether the compiler implicitly links with -lc since on some
17959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17960 # to ld, don't add -lc before -lgcc.
17961 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17962 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17963 $rm conftest*
17964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967 (eval $ac_compile) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } 2>conftest.err; then
17971 soname=conftest
17972 lib=conftest
17973 libobjs=conftest.$ac_objext
17974 deplibs=
17975 wl=$lt_prog_compiler_wl_GCJ
17976 compiler_flags=-v
17977 linker_flags=-v
17978 verstring=
17979 output_objdir=.
17980 libname=conftest
17981 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17982 allow_undefined_flag_GCJ=
17983 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17984 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17985 ac_status=$?
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }
17988 then
17989 archive_cmds_need_lc_GCJ=no
17990 else
17991 archive_cmds_need_lc_GCJ=yes
17993 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17994 else
17995 cat conftest.err 1>&5
17997 $rm conftest*
17998 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17999 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18001 esac
18004 esac
18006 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18007 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18008 library_names_spec=
18009 libname_spec='lib$name'
18010 soname_spec=
18011 shrext_cmds=".so"
18012 postinstall_cmds=
18013 postuninstall_cmds=
18014 finish_cmds=
18015 finish_eval=
18016 shlibpath_var=
18017 shlibpath_overrides_runpath=unknown
18018 version_type=none
18019 dynamic_linker="$host_os ld.so"
18020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18021 if test "$GCC" = yes; then
18022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18023 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18024 # if the path contains ";" then we assume it to be the separator
18025 # otherwise default to the standard path separator (i.e. ":") - it is
18026 # assumed that no part of a normal pathname contains ";" but that should
18027 # okay in the real world where ";" in dirpaths is itself problematic.
18028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18029 else
18030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18032 else
18033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18035 need_lib_prefix=unknown
18036 hardcode_into_libs=no
18038 # when you set need_version to no, make sure it does not cause -set_version
18039 # flags to be left without arguments
18040 need_version=unknown
18042 case $host_os in
18043 aix3*)
18044 version_type=linux
18045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18046 shlibpath_var=LIBPATH
18048 # AIX 3 has no versioning support, so we append a major version to the name.
18049 soname_spec='${libname}${release}${shared_ext}$major'
18052 aix4* | aix5*)
18053 version_type=linux
18054 need_lib_prefix=no
18055 need_version=no
18056 hardcode_into_libs=yes
18057 if test "$host_cpu" = ia64; then
18058 # AIX 5 supports IA64
18059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18060 shlibpath_var=LD_LIBRARY_PATH
18061 else
18062 # With GCC up to 2.95.x, collect2 would create an import file
18063 # for dependence libraries. The import file would start with
18064 # the line `#! .'. This would cause the generated library to
18065 # depend on `.', always an invalid library. This was fixed in
18066 # development snapshots of GCC prior to 3.0.
18067 case $host_os in
18068 aix4 | aix4.[01] | aix4.[01].*)
18069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18070 echo ' yes '
18071 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18073 else
18074 can_build_shared=no
18077 esac
18078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18079 # soname into executable. Probably we can add versioning support to
18080 # collect2, so additional links can be useful in future.
18081 if test "$aix_use_runtimelinking" = yes; then
18082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18083 # instead of lib<name>.a to let people know that these are not
18084 # typical AIX shared libraries.
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086 else
18087 # We preserve .a as extension for shared libraries through AIX4.2
18088 # and later when we are not doing run time linking.
18089 library_names_spec='${libname}${release}.a $libname.a'
18090 soname_spec='${libname}${release}${shared_ext}$major'
18092 shlibpath_var=LIBPATH
18096 amigaos*)
18097 library_names_spec='$libname.ixlibrary $libname.a'
18098 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18099 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'
18102 beos*)
18103 library_names_spec='${libname}${shared_ext}'
18104 dynamic_linker="$host_os ld.so"
18105 shlibpath_var=LIBRARY_PATH
18108 bsdi[45]*)
18109 version_type=linux
18110 need_version=no
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18112 soname_spec='${libname}${release}${shared_ext}$major'
18113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18114 shlibpath_var=LD_LIBRARY_PATH
18115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18117 # the default ld.so.conf also contains /usr/contrib/lib and
18118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18119 # libtool to hard-code these into programs
18122 cygwin* | mingw* | pw32*)
18123 version_type=windows
18124 shrext_cmds=".dll"
18125 need_version=no
18126 need_lib_prefix=no
18128 case $GCC,$host_os in
18129 yes,cygwin* | yes,mingw* | yes,pw32*)
18130 library_names_spec='$libname.dll.a'
18131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18132 postinstall_cmds='base_file=`basename \${file}`~
18133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18134 dldir=$destdir/`dirname \$dlpath`~
18135 test -d \$dldir || mkdir -p \$dldir~
18136 $install_prog $dir/$dlname \$dldir/$dlname~
18137 chmod a+x \$dldir/$dlname'
18138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18139 dlpath=$dir/\$dldll~
18140 $rm \$dlpath'
18141 shlibpath_overrides_runpath=yes
18143 case $host_os in
18144 cygwin*)
18145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18146 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18147 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18149 mingw*)
18150 # MinGW DLLs use traditional 'lib' prefix
18151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18152 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18153 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18154 # It is most probably a Windows format PATH printed by
18155 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18156 # path with ; separators, and with drive letters. We can handle the
18157 # drive letters (cygwin fileutils understands them), so leave them,
18158 # especially as we might pass files found there to a mingw objdump,
18159 # which wouldn't understand a cygwinified path. Ahh.
18160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18161 else
18162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18165 pw32*)
18166 # pw32 DLLs use 'pw' prefix rather than 'lib'
18167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18169 esac
18173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18175 esac
18176 dynamic_linker='Win32 ld.exe'
18177 # FIXME: first we should search . and the directory the executable is in
18178 shlibpath_var=PATH
18181 darwin* | rhapsody*)
18182 dynamic_linker="$host_os dyld"
18183 version_type=darwin
18184 need_lib_prefix=no
18185 need_version=no
18186 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18187 soname_spec='${libname}${release}${major}$shared_ext'
18188 shlibpath_overrides_runpath=yes
18189 shlibpath_var=DYLD_LIBRARY_PATH
18190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18191 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18192 if test "$GCC" = yes; then
18193 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18194 else
18195 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18200 dgux*)
18201 version_type=linux
18202 need_lib_prefix=no
18203 need_version=no
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18205 soname_spec='${libname}${release}${shared_ext}$major'
18206 shlibpath_var=LD_LIBRARY_PATH
18209 freebsd1*)
18210 dynamic_linker=no
18213 kfreebsd*-gnu)
18214 version_type=linux
18215 need_lib_prefix=no
18216 need_version=no
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 shlibpath_overrides_runpath=no
18221 hardcode_into_libs=yes
18222 dynamic_linker='GNU ld.so'
18225 freebsd* | dragonfly*)
18226 # DragonFly does not have aout. When/if they implement a new
18227 # versioning mechanism, adjust this.
18228 if test -x /usr/bin/objformat; then
18229 objformat=`/usr/bin/objformat`
18230 else
18231 case $host_os in
18232 freebsd[123]*) objformat=aout ;;
18233 *) objformat=elf ;;
18234 esac
18236 version_type=freebsd-$objformat
18237 case $version_type in
18238 freebsd-elf*)
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18240 need_version=no
18241 need_lib_prefix=no
18243 freebsd-*)
18244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18245 need_version=yes
18247 esac
18248 shlibpath_var=LD_LIBRARY_PATH
18249 case $host_os in
18250 freebsd2*)
18251 shlibpath_overrides_runpath=yes
18253 freebsd3.[01]* | freebsdelf3.[01]*)
18254 shlibpath_overrides_runpath=yes
18255 hardcode_into_libs=yes
18257 *) # from 3.2 on
18258 shlibpath_overrides_runpath=no
18259 hardcode_into_libs=yes
18261 esac
18264 gnu*)
18265 version_type=linux
18266 need_lib_prefix=no
18267 need_version=no
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 hardcode_into_libs=yes
18274 hpux9* | hpux10* | hpux11*)
18275 # Give a soname corresponding to the major version so that dld.sl refuses to
18276 # link against other versions.
18277 version_type=sunos
18278 need_lib_prefix=no
18279 need_version=no
18280 case $host_cpu in
18281 ia64*)
18282 shrext_cmds='.so'
18283 hardcode_into_libs=yes
18284 dynamic_linker="$host_os dld.so"
18285 shlibpath_var=LD_LIBRARY_PATH
18286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288 soname_spec='${libname}${release}${shared_ext}$major'
18289 if test "X$HPUX_IA64_MODE" = X32; then
18290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18291 else
18292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18296 hppa*64*)
18297 shrext_cmds='.sl'
18298 hardcode_into_libs=yes
18299 dynamic_linker="$host_os dld.sl"
18300 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18303 soname_spec='${libname}${release}${shared_ext}$major'
18304 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18308 shrext_cmds='.sl'
18309 dynamic_linker="$host_os dld.sl"
18310 shlibpath_var=SHLIB_PATH
18311 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18313 soname_spec='${libname}${release}${shared_ext}$major'
18315 esac
18316 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18317 postinstall_cmds='chmod 555 $lib'
18320 irix5* | irix6* | nonstopux*)
18321 case $host_os in
18322 nonstopux*) version_type=nonstopux ;;
18324 if test "$lt_cv_prog_gnu_ld" = yes; then
18325 version_type=linux
18326 else
18327 version_type=irix
18328 fi ;;
18329 esac
18330 need_lib_prefix=no
18331 need_version=no
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18334 case $host_os in
18335 irix5* | nonstopux*)
18336 libsuff= shlibsuff=
18339 case $LD in # libtool.m4 will add one of these switches to LD
18340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18341 libsuff= shlibsuff= libmagic=32-bit;;
18342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18343 libsuff=32 shlibsuff=N32 libmagic=N32;;
18344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18346 *) libsuff= shlibsuff= libmagic=never-match;;
18347 esac
18349 esac
18350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18351 shlibpath_overrides_runpath=no
18352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18354 hardcode_into_libs=yes
18357 # No shared lib support for Linux oldld, aout, or coff.
18358 linux*oldld* | linux*aout* | linux*coff*)
18359 dynamic_linker=no
18362 # This must be Linux ELF.
18363 linux*)
18364 version_type=linux
18365 need_lib_prefix=no
18366 need_version=no
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18370 shlibpath_var=LD_LIBRARY_PATH
18371 shlibpath_overrides_runpath=no
18372 # This implies no fast_install, which is unacceptable.
18373 # Some rework will be needed to allow for fast_install
18374 # before this can be enabled.
18375 hardcode_into_libs=yes
18377 # Append ld.so.conf contents to the search path
18378 if test -f /etc/ld.so.conf; then
18379 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18383 # We used to test for /lib/ld.so.1 and disable shared libraries on
18384 # powerpc, because MkLinux only supported shared libraries with the
18385 # GNU dynamic linker. Since this was broken with cross compilers,
18386 # most powerpc-linux boxes support dynamic linking these days and
18387 # people can always --disable-shared, the test was removed, and we
18388 # assume the GNU/Linux dynamic linker is in use.
18389 dynamic_linker='GNU/Linux ld.so'
18392 knetbsd*-gnu)
18393 version_type=linux
18394 need_lib_prefix=no
18395 need_version=no
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18398 shlibpath_var=LD_LIBRARY_PATH
18399 shlibpath_overrides_runpath=no
18400 hardcode_into_libs=yes
18401 dynamic_linker='GNU ld.so'
18404 netbsd*)
18405 version_type=sunos
18406 need_lib_prefix=no
18407 need_version=no
18408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18411 dynamic_linker='NetBSD (a.out) ld.so'
18412 else
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18414 soname_spec='${libname}${release}${shared_ext}$major'
18415 dynamic_linker='NetBSD ld.elf_so'
18417 shlibpath_var=LD_LIBRARY_PATH
18418 shlibpath_overrides_runpath=yes
18419 hardcode_into_libs=yes
18422 newsos6)
18423 version_type=linux
18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18425 shlibpath_var=LD_LIBRARY_PATH
18426 shlibpath_overrides_runpath=yes
18429 nto-qnx*)
18430 version_type=linux
18431 need_lib_prefix=no
18432 need_version=no
18433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18434 soname_spec='${libname}${release}${shared_ext}$major'
18435 shlibpath_var=LD_LIBRARY_PATH
18436 shlibpath_overrides_runpath=yes
18439 openbsd*)
18440 version_type=sunos
18441 need_lib_prefix=no
18442 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18443 case $host_os in
18444 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18445 *) need_version=no ;;
18446 esac
18447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18449 shlibpath_var=LD_LIBRARY_PATH
18450 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18451 case $host_os in
18452 openbsd2.[89] | openbsd2.[89].*)
18453 shlibpath_overrides_runpath=no
18456 shlibpath_overrides_runpath=yes
18458 esac
18459 else
18460 shlibpath_overrides_runpath=yes
18464 os2*)
18465 libname_spec='$name'
18466 shrext_cmds=".dll"
18467 need_lib_prefix=no
18468 library_names_spec='$libname${shared_ext} $libname.a'
18469 dynamic_linker='OS/2 ld.exe'
18470 shlibpath_var=LIBPATH
18473 osf3* | osf4* | osf5*)
18474 version_type=osf
18475 need_lib_prefix=no
18476 need_version=no
18477 soname_spec='${libname}${release}${shared_ext}$major'
18478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18479 shlibpath_var=LD_LIBRARY_PATH
18480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18481 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18484 sco3.2v5*)
18485 version_type=osf
18486 soname_spec='${libname}${release}${shared_ext}$major'
18487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18488 shlibpath_var=LD_LIBRARY_PATH
18491 solaris*)
18492 version_type=linux
18493 need_lib_prefix=no
18494 need_version=no
18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496 soname_spec='${libname}${release}${shared_ext}$major'
18497 shlibpath_var=LD_LIBRARY_PATH
18498 shlibpath_overrides_runpath=yes
18499 hardcode_into_libs=yes
18500 # ldd complains unless libraries are executable
18501 postinstall_cmds='chmod +x $lib'
18504 sunos4*)
18505 version_type=sunos
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=yes
18510 if test "$with_gnu_ld" = yes; then
18511 need_lib_prefix=no
18513 need_version=yes
18516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18517 version_type=linux
18518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18519 soname_spec='${libname}${release}${shared_ext}$major'
18520 shlibpath_var=LD_LIBRARY_PATH
18521 case $host_vendor in
18522 sni)
18523 shlibpath_overrides_runpath=no
18524 need_lib_prefix=no
18525 export_dynamic_flag_spec='${wl}-Blargedynsym'
18526 runpath_var=LD_RUN_PATH
18528 siemens)
18529 need_lib_prefix=no
18531 motorola)
18532 need_lib_prefix=no
18533 need_version=no
18534 shlibpath_overrides_runpath=no
18535 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18537 esac
18540 sysv4*MP*)
18541 if test -d /usr/nec ;then
18542 version_type=linux
18543 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18544 soname_spec='$libname${shared_ext}.$major'
18545 shlibpath_var=LD_LIBRARY_PATH
18549 uts4*)
18550 version_type=linux
18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552 soname_spec='${libname}${release}${shared_ext}$major'
18553 shlibpath_var=LD_LIBRARY_PATH
18557 dynamic_linker=no
18559 esac
18560 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18561 echo "${ECHO_T}$dynamic_linker" >&6; }
18562 test "$dynamic_linker" = no && can_build_shared=no
18564 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18565 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18566 hardcode_action_GCJ=
18567 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18568 test -n "$runpath_var_GCJ" || \
18569 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18571 # We can hardcode non-existant directories.
18572 if test "$hardcode_direct_GCJ" != no &&
18573 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18574 # have to relink, otherwise we might link with an installed library
18575 # when we should be linking with a yet-to-be-installed one
18576 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18577 test "$hardcode_minus_L_GCJ" != no; then
18578 # Linking always hardcodes the temporary library directory.
18579 hardcode_action_GCJ=relink
18580 else
18581 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18582 hardcode_action_GCJ=immediate
18584 else
18585 # We cannot hardcode anything, or else we can only hardcode existing
18586 # directories.
18587 hardcode_action_GCJ=unsupported
18589 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18590 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18592 if test "$hardcode_action_GCJ" = relink; then
18593 # Fast installation is not supported
18594 enable_fast_install=no
18595 elif test "$shlibpath_overrides_runpath" = yes ||
18596 test "$enable_shared" = no; then
18597 # Fast installation is not necessary
18598 enable_fast_install=needless
18601 striplib=
18602 old_striplib=
18603 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18604 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18605 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18606 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18607 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18608 { echo "$as_me:$LINENO: result: yes" >&5
18609 echo "${ECHO_T}yes" >&6; }
18610 else
18611 # FIXME - insert some real tests, host_os isn't really good enough
18612 case $host_os in
18613 darwin*)
18614 if test -n "$STRIP" ; then
18615 striplib="$STRIP -x"
18616 { echo "$as_me:$LINENO: result: yes" >&5
18617 echo "${ECHO_T}yes" >&6; }
18618 else
18619 { echo "$as_me:$LINENO: result: no" >&5
18620 echo "${ECHO_T}no" >&6; }
18624 { echo "$as_me:$LINENO: result: no" >&5
18625 echo "${ECHO_T}no" >&6; }
18627 esac
18630 if test "x$enable_dlopen" != xyes; then
18631 enable_dlopen=unknown
18632 enable_dlopen_self=unknown
18633 enable_dlopen_self_static=unknown
18634 else
18635 lt_cv_dlopen=no
18636 lt_cv_dlopen_libs=
18638 case $host_os in
18639 beos*)
18640 lt_cv_dlopen="load_add_on"
18641 lt_cv_dlopen_libs=
18642 lt_cv_dlopen_self=yes
18645 mingw* | pw32*)
18646 lt_cv_dlopen="LoadLibrary"
18647 lt_cv_dlopen_libs=
18650 cygwin*)
18651 lt_cv_dlopen="dlopen"
18652 lt_cv_dlopen_libs=
18655 darwin*)
18656 # if libdl is installed we need to link against it
18657 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662 ac_check_lib_save_LIBS=$LIBS
18663 LIBS="-ldl $LIBS"
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h. */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18674 #ifdef __cplusplus
18675 extern "C"
18676 #endif
18677 char dlopen ();
18679 main ()
18681 return dlopen ();
18683 return 0;
18685 _ACEOF
18686 rm -f conftest.$ac_objext conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_link") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest$ac_exeext &&
18703 $as_test_x conftest$ac_exeext; then
18704 ac_cv_lib_dl_dlopen=yes
18705 else
18706 echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18709 ac_cv_lib_dl_dlopen=no
18712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18713 conftest$ac_exeext conftest.$ac_ext
18714 LIBS=$ac_check_lib_save_LIBS
18716 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18718 if test $ac_cv_lib_dl_dlopen = yes; then
18719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18720 else
18722 lt_cv_dlopen="dyld"
18723 lt_cv_dlopen_libs=
18724 lt_cv_dlopen_self=yes
18731 { echo "$as_me:$LINENO: checking for shl_load" >&5
18732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18733 if test "${ac_cv_func_shl_load+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h. */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18744 #define shl_load innocuous_shl_load
18746 /* System header to define __stub macros and hopefully few prototypes,
18747 which can conflict with char shl_load (); below.
18748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18749 <limits.h> exists even on freestanding compilers. */
18751 #ifdef __STDC__
18752 # include <limits.h>
18753 #else
18754 # include <assert.h>
18755 #endif
18757 #undef shl_load
18759 /* Override any GCC internal prototype to avoid an error.
18760 Use char because int might match the return type of a GCC
18761 builtin and then its argument prototype would still apply. */
18762 #ifdef __cplusplus
18763 extern "C"
18764 #endif
18765 char shl_load ();
18766 /* The GNU C library defines this for functions which it implements
18767 to always fail with ENOSYS. Some functions are actually named
18768 something starting with __ and the normal name is an alias. */
18769 #if defined __stub_shl_load || defined __stub___shl_load
18770 choke me
18771 #endif
18774 main ()
18776 return shl_load ();
18778 return 0;
18780 _ACEOF
18781 rm -f conftest.$ac_objext conftest$ac_exeext
18782 if { (ac_try="$ac_link"
18783 case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_link") 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } && {
18795 test -z "$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 } && test -s conftest$ac_exeext &&
18798 $as_test_x conftest$ac_exeext; then
18799 ac_cv_func_shl_load=yes
18800 else
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_cv_func_shl_load=no
18807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18808 conftest$ac_exeext conftest.$ac_ext
18810 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18811 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18812 if test $ac_cv_func_shl_load = yes; then
18813 lt_cv_dlopen="shl_load"
18814 else
18815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18818 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 else
18820 ac_check_lib_save_LIBS=$LIBS
18821 LIBS="-ldld $LIBS"
18822 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h. */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18829 /* Override any GCC internal prototype to avoid an error.
18830 Use char because int might match the return type of a GCC
18831 builtin and then its argument prototype would still apply. */
18832 #ifdef __cplusplus
18833 extern "C"
18834 #endif
18835 char shl_load ();
18837 main ()
18839 return shl_load ();
18841 return 0;
18843 _ACEOF
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_link") 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest$ac_exeext &&
18861 $as_test_x conftest$ac_exeext; then
18862 ac_cv_lib_dld_shl_load=yes
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_cv_lib_dld_shl_load=no
18870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18871 conftest$ac_exeext conftest.$ac_ext
18872 LIBS=$ac_check_lib_save_LIBS
18874 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18875 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18876 if test $ac_cv_lib_dld_shl_load = yes; then
18877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18878 else
18879 { echo "$as_me:$LINENO: checking for dlopen" >&5
18880 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18881 if test "${ac_cv_func_dlopen+set}" = set; then
18882 echo $ECHO_N "(cached) $ECHO_C" >&6
18883 else
18884 cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h. */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h. */
18890 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18892 #define dlopen innocuous_dlopen
18894 /* System header to define __stub macros and hopefully few prototypes,
18895 which can conflict with char dlopen (); below.
18896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18897 <limits.h> exists even on freestanding compilers. */
18899 #ifdef __STDC__
18900 # include <limits.h>
18901 #else
18902 # include <assert.h>
18903 #endif
18905 #undef dlopen
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18910 #ifdef __cplusplus
18911 extern "C"
18912 #endif
18913 char dlopen ();
18914 /* The GNU C library defines this for functions which it implements
18915 to always fail with ENOSYS. Some functions are actually named
18916 something starting with __ and the normal name is an alias. */
18917 #if defined __stub_dlopen || defined __stub___dlopen
18918 choke me
18919 #endif
18922 main ()
18924 return dlopen ();
18926 return 0;
18928 _ACEOF
18929 rm -f conftest.$ac_objext conftest$ac_exeext
18930 if { (ac_try="$ac_link"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934 esac
18935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_link") 2>conftest.er1
18937 ac_status=$?
18938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } && {
18943 test -z "$ac_c_werror_flag" ||
18944 test ! -s conftest.err
18945 } && test -s conftest$ac_exeext &&
18946 $as_test_x conftest$ac_exeext; then
18947 ac_cv_func_dlopen=yes
18948 else
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18952 ac_cv_func_dlopen=no
18955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18956 conftest$ac_exeext conftest.$ac_ext
18958 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18959 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18960 if test $ac_cv_func_dlopen = yes; then
18961 lt_cv_dlopen="dlopen"
18962 else
18963 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968 ac_check_lib_save_LIBS=$LIBS
18969 LIBS="-ldl $LIBS"
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h. */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18977 /* Override any GCC internal prototype to avoid an error.
18978 Use char because int might match the return type of a GCC
18979 builtin and then its argument prototype would still apply. */
18980 #ifdef __cplusplus
18981 extern "C"
18982 #endif
18983 char dlopen ();
18985 main ()
18987 return dlopen ();
18989 return 0;
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999 (eval "$ac_link") 2>conftest.er1
19000 ac_status=$?
19001 grep -v '^ *+' conftest.er1 >conftest.err
19002 rm -f conftest.er1
19003 cat conftest.err >&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } && {
19006 test -z "$ac_c_werror_flag" ||
19007 test ! -s conftest.err
19008 } && test -s conftest$ac_exeext &&
19009 $as_test_x conftest$ac_exeext; then
19010 ac_cv_lib_dl_dlopen=yes
19011 else
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 ac_cv_lib_dl_dlopen=no
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019 conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19022 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19023 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19024 if test $ac_cv_lib_dl_dlopen = yes; then
19025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19026 else
19027 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19028 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19029 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032 ac_check_lib_save_LIBS=$LIBS
19033 LIBS="-lsvld $LIBS"
19034 cat >conftest.$ac_ext <<_ACEOF
19035 /* confdefs.h. */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19041 /* Override any GCC internal prototype to avoid an error.
19042 Use char because int might match the return type of a GCC
19043 builtin and then its argument prototype would still apply. */
19044 #ifdef __cplusplus
19045 extern "C"
19046 #endif
19047 char dlopen ();
19049 main ()
19051 return dlopen ();
19053 return 0;
19055 _ACEOF
19056 rm -f conftest.$ac_objext conftest$ac_exeext
19057 if { (ac_try="$ac_link"
19058 case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19061 esac
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_link") 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 } && test -s conftest$ac_exeext &&
19073 $as_test_x conftest$ac_exeext; then
19074 ac_cv_lib_svld_dlopen=yes
19075 else
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_lib_svld_dlopen=no
19082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19083 conftest$ac_exeext conftest.$ac_ext
19084 LIBS=$ac_check_lib_save_LIBS
19086 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19087 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19088 if test $ac_cv_lib_svld_dlopen = yes; then
19089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19090 else
19091 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19092 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19093 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 else
19096 ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-ldld $LIBS"
19098 cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h. */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 /* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 char dld_link ();
19113 main ()
19115 return dld_link ();
19117 return 0;
19119 _ACEOF
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>conftest.er1
19128 ac_status=$?
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_c_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest$ac_exeext &&
19137 $as_test_x conftest$ac_exeext; then
19138 ac_cv_lib_dld_dld_link=yes
19139 else
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 ac_cv_lib_dld_dld_link=no
19146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19147 conftest$ac_exeext conftest.$ac_ext
19148 LIBS=$ac_check_lib_save_LIBS
19150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19151 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19152 if test $ac_cv_lib_dld_dld_link = yes; then
19153 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19172 esac
19174 if test "x$lt_cv_dlopen" != xno; then
19175 enable_dlopen=yes
19176 else
19177 enable_dlopen=no
19180 case $lt_cv_dlopen in
19181 dlopen)
19182 save_CPPFLAGS="$CPPFLAGS"
19183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19185 save_LDFLAGS="$LDFLAGS"
19186 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19188 save_LIBS="$LIBS"
19189 LIBS="$lt_cv_dlopen_libs $LIBS"
19191 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19192 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19193 if test "${lt_cv_dlopen_self+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196 if test "$cross_compiling" = yes; then :
19197 lt_cv_dlopen_self=cross
19198 else
19199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19200 lt_status=$lt_dlunknown
19201 cat > conftest.$ac_ext <<EOF
19202 #line 19202 "configure"
19203 #include "confdefs.h"
19205 #if HAVE_DLFCN_H
19206 #include <dlfcn.h>
19207 #endif
19209 #include <stdio.h>
19211 #ifdef RTLD_GLOBAL
19212 # define LT_DLGLOBAL RTLD_GLOBAL
19213 #else
19214 # ifdef DL_GLOBAL
19215 # define LT_DLGLOBAL DL_GLOBAL
19216 # else
19217 # define LT_DLGLOBAL 0
19218 # endif
19219 #endif
19221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19222 find out it does not work in some platform. */
19223 #ifndef LT_DLLAZY_OR_NOW
19224 # ifdef RTLD_LAZY
19225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19226 # else
19227 # ifdef DL_LAZY
19228 # define LT_DLLAZY_OR_NOW DL_LAZY
19229 # else
19230 # ifdef RTLD_NOW
19231 # define LT_DLLAZY_OR_NOW RTLD_NOW
19232 # else
19233 # ifdef DL_NOW
19234 # define LT_DLLAZY_OR_NOW DL_NOW
19235 # else
19236 # define LT_DLLAZY_OR_NOW 0
19237 # endif
19238 # endif
19239 # endif
19240 # endif
19241 #endif
19243 #ifdef __cplusplus
19244 extern "C" void exit (int);
19245 #endif
19247 void fnord() { int i=42;}
19248 int main ()
19250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19251 int status = $lt_dlunknown;
19253 if (self)
19255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19257 /* dlclose (self); */
19260 exit (status);
19263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19264 (eval $ac_link) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19268 (./conftest; exit; ) >&5 2>/dev/null
19269 lt_status=$?
19270 case x$lt_status in
19271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19273 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19274 esac
19275 else :
19276 # compilation failed
19277 lt_cv_dlopen_self=no
19280 rm -fr conftest*
19284 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19285 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19287 if test "x$lt_cv_dlopen_self" = xyes; then
19288 LDFLAGS="$LDFLAGS $link_static_flag"
19289 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19290 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19291 if test "${lt_cv_dlopen_self_static+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294 if test "$cross_compiling" = yes; then :
19295 lt_cv_dlopen_self_static=cross
19296 else
19297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19298 lt_status=$lt_dlunknown
19299 cat > conftest.$ac_ext <<EOF
19300 #line 19300 "configure"
19301 #include "confdefs.h"
19303 #if HAVE_DLFCN_H
19304 #include <dlfcn.h>
19305 #endif
19307 #include <stdio.h>
19309 #ifdef RTLD_GLOBAL
19310 # define LT_DLGLOBAL RTLD_GLOBAL
19311 #else
19312 # ifdef DL_GLOBAL
19313 # define LT_DLGLOBAL DL_GLOBAL
19314 # else
19315 # define LT_DLGLOBAL 0
19316 # endif
19317 #endif
19319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19320 find out it does not work in some platform. */
19321 #ifndef LT_DLLAZY_OR_NOW
19322 # ifdef RTLD_LAZY
19323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19324 # else
19325 # ifdef DL_LAZY
19326 # define LT_DLLAZY_OR_NOW DL_LAZY
19327 # else
19328 # ifdef RTLD_NOW
19329 # define LT_DLLAZY_OR_NOW RTLD_NOW
19330 # else
19331 # ifdef DL_NOW
19332 # define LT_DLLAZY_OR_NOW DL_NOW
19333 # else
19334 # define LT_DLLAZY_OR_NOW 0
19335 # endif
19336 # endif
19337 # endif
19338 # endif
19339 #endif
19341 #ifdef __cplusplus
19342 extern "C" void exit (int);
19343 #endif
19345 void fnord() { int i=42;}
19346 int main ()
19348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19349 int status = $lt_dlunknown;
19351 if (self)
19353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19355 /* dlclose (self); */
19358 exit (status);
19361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19362 (eval $ac_link) 2>&5
19363 ac_status=$?
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19366 (./conftest; exit; ) >&5 2>/dev/null
19367 lt_status=$?
19368 case x$lt_status in
19369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19371 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19372 esac
19373 else :
19374 # compilation failed
19375 lt_cv_dlopen_self_static=no
19378 rm -fr conftest*
19382 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19383 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19386 CPPFLAGS="$save_CPPFLAGS"
19387 LDFLAGS="$save_LDFLAGS"
19388 LIBS="$save_LIBS"
19390 esac
19392 case $lt_cv_dlopen_self in
19393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19394 *) enable_dlopen_self=unknown ;;
19395 esac
19397 case $lt_cv_dlopen_self_static in
19398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19399 *) enable_dlopen_self_static=unknown ;;
19400 esac
19404 # The else clause should only fire when bootstrapping the
19405 # libtool distribution, otherwise you forgot to ship ltmain.sh
19406 # with your package, and you will get complaints that there are
19407 # no rules to generate ltmain.sh.
19408 if test -f "$ltmain"; then
19409 # See if we are running on zsh, and set the options which allow our commands through
19410 # without removal of \ escapes.
19411 if test -n "${ZSH_VERSION+set}" ; then
19412 setopt NO_GLOB_SUBST
19414 # Now quote all the things that may contain metacharacters while being
19415 # careful not to overquote the AC_SUBSTed values. We take copies of the
19416 # variables and quote the copies for generation of the libtool script.
19417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19418 SED SHELL STRIP \
19419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19421 deplibs_check_method reload_flag reload_cmds need_locks \
19422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19423 lt_cv_sys_global_symbol_to_c_name_address \
19424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19425 old_postinstall_cmds old_postuninstall_cmds \
19426 compiler_GCJ \
19427 CC_GCJ \
19428 LD_GCJ \
19429 lt_prog_compiler_wl_GCJ \
19430 lt_prog_compiler_pic_GCJ \
19431 lt_prog_compiler_static_GCJ \
19432 lt_prog_compiler_no_builtin_flag_GCJ \
19433 export_dynamic_flag_spec_GCJ \
19434 thread_safe_flag_spec_GCJ \
19435 whole_archive_flag_spec_GCJ \
19436 enable_shared_with_static_runtimes_GCJ \
19437 old_archive_cmds_GCJ \
19438 old_archive_from_new_cmds_GCJ \
19439 predep_objects_GCJ \
19440 postdep_objects_GCJ \
19441 predeps_GCJ \
19442 postdeps_GCJ \
19443 compiler_lib_search_path_GCJ \
19444 archive_cmds_GCJ \
19445 archive_expsym_cmds_GCJ \
19446 postinstall_cmds_GCJ \
19447 postuninstall_cmds_GCJ \
19448 old_archive_from_expsyms_cmds_GCJ \
19449 allow_undefined_flag_GCJ \
19450 no_undefined_flag_GCJ \
19451 export_symbols_cmds_GCJ \
19452 hardcode_libdir_flag_spec_GCJ \
19453 hardcode_libdir_flag_spec_ld_GCJ \
19454 hardcode_libdir_separator_GCJ \
19455 hardcode_automatic_GCJ \
19456 module_cmds_GCJ \
19457 module_expsym_cmds_GCJ \
19458 lt_cv_prog_compiler_c_o_GCJ \
19459 exclude_expsyms_GCJ \
19460 include_expsyms_GCJ; do
19462 case $var in
19463 old_archive_cmds_GCJ | \
19464 old_archive_from_new_cmds_GCJ | \
19465 archive_cmds_GCJ | \
19466 archive_expsym_cmds_GCJ | \
19467 module_cmds_GCJ | \
19468 module_expsym_cmds_GCJ | \
19469 old_archive_from_expsyms_cmds_GCJ | \
19470 export_symbols_cmds_GCJ | \
19471 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19472 postinstall_cmds | postuninstall_cmds | \
19473 old_postinstall_cmds | old_postuninstall_cmds | \
19474 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19475 # Double-quote double-evaled strings.
19476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19481 esac
19482 done
19484 case $lt_echo in
19485 *'\$0 --fallback-echo"')
19486 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19488 esac
19490 cfgfile="$ofile"
19492 cat <<__EOF__ >> "$cfgfile"
19493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19497 # Shell to use when invoking shell scripts.
19498 SHELL=$lt_SHELL
19500 # Whether or not to build shared libraries.
19501 build_libtool_libs=$enable_shared
19503 # Whether or not to build static libraries.
19504 build_old_libs=$enable_static
19506 # Whether or not to add -lc for building shared libraries.
19507 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19509 # Whether or not to disallow shared libs when runtime libs are static
19510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19512 # Whether or not to optimize for fast installation.
19513 fast_install=$enable_fast_install
19515 # The host system.
19516 host_alias=$host_alias
19517 host=$host
19518 host_os=$host_os
19520 # The build system.
19521 build_alias=$build_alias
19522 build=$build
19523 build_os=$build_os
19525 # An echo program that does not interpret backslashes.
19526 echo=$lt_echo
19528 # The archiver.
19529 AR=$lt_AR
19530 AR_FLAGS=$lt_AR_FLAGS
19532 # A C compiler.
19533 LTCC=$lt_LTCC
19535 # A language-specific compiler.
19536 CC=$lt_compiler_GCJ
19538 # Is the compiler the GNU C compiler?
19539 with_gcc=$GCC_GCJ
19541 # An ERE matcher.
19542 EGREP=$lt_EGREP
19544 # The linker used to build libraries.
19545 LD=$lt_LD_GCJ
19547 # Whether we need hard or soft links.
19548 LN_S=$lt_LN_S
19550 # A BSD-compatible nm program.
19551 NM=$lt_NM
19553 # A symbol stripping program
19554 STRIP=$lt_STRIP
19556 # Used to examine libraries when file_magic_cmd begins "file"
19557 MAGIC_CMD=$MAGIC_CMD
19559 # Used on cygwin: DLL creation program.
19560 DLLTOOL="$DLLTOOL"
19562 # Used on cygwin: object dumper.
19563 OBJDUMP="$OBJDUMP"
19565 # Used on cygwin: assembler.
19566 AS="$AS"
19568 # The name of the directory that contains temporary libtool files.
19569 objdir=$objdir
19571 # How to create reloadable object files.
19572 reload_flag=$lt_reload_flag
19573 reload_cmds=$lt_reload_cmds
19575 # How to pass a linker flag through the compiler.
19576 wl=$lt_lt_prog_compiler_wl_GCJ
19578 # Object file suffix (normally "o").
19579 objext="$ac_objext"
19581 # Old archive suffix (normally "a").
19582 libext="$libext"
19584 # Shared library suffix (normally ".so").
19585 shrext_cmds='$shrext_cmds'
19587 # Executable file suffix (normally "").
19588 exeext="$exeext"
19590 # Additional compiler flags for building library objects.
19591 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19592 pic_mode=$pic_mode
19594 # What is the maximum length of a command?
19595 max_cmd_len=$lt_cv_sys_max_cmd_len
19597 # Does compiler simultaneously support -c and -o options?
19598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19600 # Must we lock files when doing compilation?
19601 need_locks=$lt_need_locks
19603 # Do we need the lib prefix for modules?
19604 need_lib_prefix=$need_lib_prefix
19606 # Do we need a version for libraries?
19607 need_version=$need_version
19609 # Whether dlopen is supported.
19610 dlopen_support=$enable_dlopen
19612 # Whether dlopen of programs is supported.
19613 dlopen_self=$enable_dlopen_self
19615 # Whether dlopen of statically linked programs is supported.
19616 dlopen_self_static=$enable_dlopen_self_static
19618 # Compiler flag to prevent dynamic linking.
19619 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19621 # Compiler flag to turn off builtin functions.
19622 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19624 # Compiler flag to allow reflexive dlopens.
19625 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19627 # Compiler flag to generate shared objects directly from archives.
19628 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19630 # Compiler flag to generate thread-safe objects.
19631 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19633 # Library versioning type.
19634 version_type=$version_type
19636 # Format of library name prefix.
19637 libname_spec=$lt_libname_spec
19639 # List of archive names. First name is the real one, the rest are links.
19640 # The last name is the one that the linker finds with -lNAME.
19641 library_names_spec=$lt_library_names_spec
19643 # The coded name of the library, if different from the real name.
19644 soname_spec=$lt_soname_spec
19646 # Commands used to build and install an old-style archive.
19647 RANLIB=$lt_RANLIB
19648 old_archive_cmds=$lt_old_archive_cmds_GCJ
19649 old_postinstall_cmds=$lt_old_postinstall_cmds
19650 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19652 # Create an old-style archive from a shared archive.
19653 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19655 # Create a temporary old-style archive to link instead of a shared archive.
19656 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19658 # Commands used to build and install a shared archive.
19659 archive_cmds=$lt_archive_cmds_GCJ
19660 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19661 postinstall_cmds=$lt_postinstall_cmds
19662 postuninstall_cmds=$lt_postuninstall_cmds
19664 # Commands used to build a loadable module (assumed same as above if empty)
19665 module_cmds=$lt_module_cmds_GCJ
19666 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19668 # Commands to strip libraries.
19669 old_striplib=$lt_old_striplib
19670 striplib=$lt_striplib
19672 # Dependencies to place before the objects being linked to create a
19673 # shared library.
19674 predep_objects=$lt_predep_objects_GCJ
19676 # Dependencies to place after the objects being linked to create a
19677 # shared library.
19678 postdep_objects=$lt_postdep_objects_GCJ
19680 # Dependencies to place before the objects being linked to create a
19681 # shared library.
19682 predeps=$lt_predeps_GCJ
19684 # Dependencies to place after the objects being linked to create a
19685 # shared library.
19686 postdeps=$lt_postdeps_GCJ
19688 # The library search path used internally by the compiler when linking
19689 # a shared library.
19690 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19692 # Method to check whether dependent libraries are shared objects.
19693 deplibs_check_method=$lt_deplibs_check_method
19695 # Command to use when deplibs_check_method == file_magic.
19696 file_magic_cmd=$lt_file_magic_cmd
19698 # Flag that allows shared libraries with undefined symbols to be built.
19699 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19701 # Flag that forces no undefined symbols.
19702 no_undefined_flag=$lt_no_undefined_flag_GCJ
19704 # Commands used to finish a libtool library installation in a directory.
19705 finish_cmds=$lt_finish_cmds
19707 # Same as above, but a single script fragment to be evaled but not shown.
19708 finish_eval=$lt_finish_eval
19710 # Take the output of nm and produce a listing of raw symbols and C names.
19711 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19713 # Transform the output of nm in a proper C declaration
19714 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19716 # Transform the output of nm in a C name address pair
19717 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19719 # This is the shared library runtime path variable.
19720 runpath_var=$runpath_var
19722 # This is the shared library path variable.
19723 shlibpath_var=$shlibpath_var
19725 # Is shlibpath searched before the hard-coded library search path?
19726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19728 # How to hardcode a shared library path into an executable.
19729 hardcode_action=$hardcode_action_GCJ
19731 # Whether we should hardcode library paths into libraries.
19732 hardcode_into_libs=$hardcode_into_libs
19734 # Flag to hardcode \$libdir into a binary during linking.
19735 # This must work even if \$libdir does not exist.
19736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19738 # If ld is used when linking, flag to hardcode \$libdir into
19739 # a binary during linking. This must work even if \$libdir does
19740 # not exist.
19741 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19743 # Whether we need a single -rpath flag with a separated argument.
19744 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19746 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19747 # resulting binary.
19748 hardcode_direct=$hardcode_direct_GCJ
19750 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19751 # resulting binary.
19752 hardcode_minus_L=$hardcode_minus_L_GCJ
19754 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19755 # the resulting binary.
19756 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19758 # Set to yes if building a shared library automatically hardcodes DIR into the library
19759 # and all subsequent libraries and executables linked against it.
19760 hardcode_automatic=$hardcode_automatic_GCJ
19762 # Variables whose values should be saved in libtool wrapper scripts and
19763 # restored at relink time.
19764 variables_saved_for_relink="$variables_saved_for_relink"
19766 # Whether libtool must link a program against all its dependency libraries.
19767 link_all_deplibs=$link_all_deplibs_GCJ
19769 # Compile-time system search path for libraries
19770 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19772 # Run-time system search path for libraries
19773 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19775 # Fix the shell variable \$srcfile for the compiler.
19776 fix_srcfile_path="$fix_srcfile_path_GCJ"
19778 # Set to yes if exported symbols are required.
19779 always_export_symbols=$always_export_symbols_GCJ
19781 # The commands to list exported symbols.
19782 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19784 # The commands to extract the exported symbol list from a shared archive.
19785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19787 # Symbols that should not be listed in the preloaded symbols.
19788 exclude_expsyms=$lt_exclude_expsyms_GCJ
19790 # Symbols that must always be exported.
19791 include_expsyms=$lt_include_expsyms_GCJ
19793 # ### END LIBTOOL TAG CONFIG: $tagname
19795 __EOF__
19798 else
19799 # If there is no Makefile yet, we rely on a make rule to execute
19800 # `config.status --recheck' to rerun these tests and create the
19801 # libtool script then.
19802 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19803 if test -f "$ltmain_in"; then
19804 test -f Makefile && make "$ltmain"
19809 ac_ext=c
19810 ac_cpp='$CPP $CPPFLAGS'
19811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19815 CC="$lt_save_CC"
19817 else
19818 tagname=""
19825 # Source file extension for RC test sources.
19826 ac_ext=rc
19828 # Object file extension for compiled RC test sources.
19829 objext=o
19830 objext_RC=$objext
19832 # Code to be used in simple compile tests
19833 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19835 # Code to be used in simple link tests
19836 lt_simple_link_test_code="$lt_simple_compile_test_code"
19838 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19840 # If no C compiler was specified, use CC.
19841 LTCC=${LTCC-"$CC"}
19843 # Allow CC to be a program name with arguments.
19844 compiler=$CC
19847 # save warnings/boilerplate of simple test code
19848 ac_outfile=conftest.$ac_objext
19849 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19850 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19851 _lt_compiler_boilerplate=`cat conftest.err`
19852 $rm conftest*
19854 ac_outfile=conftest.$ac_objext
19855 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19856 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19857 _lt_linker_boilerplate=`cat conftest.err`
19858 $rm conftest*
19861 # Allow CC to be a program name with arguments.
19862 lt_save_CC="$CC"
19863 CC=${RC-"windres"}
19864 compiler=$CC
19865 compiler_RC=$CC
19866 for cc_temp in $compiler""; do
19867 case $cc_temp in
19868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19870 \-*) ;;
19871 *) break;;
19872 esac
19873 done
19874 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19876 lt_cv_prog_compiler_c_o_RC=yes
19878 # The else clause should only fire when bootstrapping the
19879 # libtool distribution, otherwise you forgot to ship ltmain.sh
19880 # with your package, and you will get complaints that there are
19881 # no rules to generate ltmain.sh.
19882 if test -f "$ltmain"; then
19883 # See if we are running on zsh, and set the options which allow our commands through
19884 # without removal of \ escapes.
19885 if test -n "${ZSH_VERSION+set}" ; then
19886 setopt NO_GLOB_SUBST
19888 # Now quote all the things that may contain metacharacters while being
19889 # careful not to overquote the AC_SUBSTed values. We take copies of the
19890 # variables and quote the copies for generation of the libtool script.
19891 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19892 SED SHELL STRIP \
19893 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19894 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19895 deplibs_check_method reload_flag reload_cmds need_locks \
19896 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19897 lt_cv_sys_global_symbol_to_c_name_address \
19898 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19899 old_postinstall_cmds old_postuninstall_cmds \
19900 compiler_RC \
19901 CC_RC \
19902 LD_RC \
19903 lt_prog_compiler_wl_RC \
19904 lt_prog_compiler_pic_RC \
19905 lt_prog_compiler_static_RC \
19906 lt_prog_compiler_no_builtin_flag_RC \
19907 export_dynamic_flag_spec_RC \
19908 thread_safe_flag_spec_RC \
19909 whole_archive_flag_spec_RC \
19910 enable_shared_with_static_runtimes_RC \
19911 old_archive_cmds_RC \
19912 old_archive_from_new_cmds_RC \
19913 predep_objects_RC \
19914 postdep_objects_RC \
19915 predeps_RC \
19916 postdeps_RC \
19917 compiler_lib_search_path_RC \
19918 archive_cmds_RC \
19919 archive_expsym_cmds_RC \
19920 postinstall_cmds_RC \
19921 postuninstall_cmds_RC \
19922 old_archive_from_expsyms_cmds_RC \
19923 allow_undefined_flag_RC \
19924 no_undefined_flag_RC \
19925 export_symbols_cmds_RC \
19926 hardcode_libdir_flag_spec_RC \
19927 hardcode_libdir_flag_spec_ld_RC \
19928 hardcode_libdir_separator_RC \
19929 hardcode_automatic_RC \
19930 module_cmds_RC \
19931 module_expsym_cmds_RC \
19932 lt_cv_prog_compiler_c_o_RC \
19933 exclude_expsyms_RC \
19934 include_expsyms_RC; do
19936 case $var in
19937 old_archive_cmds_RC | \
19938 old_archive_from_new_cmds_RC | \
19939 archive_cmds_RC | \
19940 archive_expsym_cmds_RC | \
19941 module_cmds_RC | \
19942 module_expsym_cmds_RC | \
19943 old_archive_from_expsyms_cmds_RC | \
19944 export_symbols_cmds_RC | \
19945 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19946 postinstall_cmds | postuninstall_cmds | \
19947 old_postinstall_cmds | old_postuninstall_cmds | \
19948 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19949 # Double-quote double-evaled strings.
19950 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19955 esac
19956 done
19958 case $lt_echo in
19959 *'\$0 --fallback-echo"')
19960 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19962 esac
19964 cfgfile="$ofile"
19966 cat <<__EOF__ >> "$cfgfile"
19967 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19971 # Shell to use when invoking shell scripts.
19972 SHELL=$lt_SHELL
19974 # Whether or not to build shared libraries.
19975 build_libtool_libs=$enable_shared
19977 # Whether or not to build static libraries.
19978 build_old_libs=$enable_static
19980 # Whether or not to add -lc for building shared libraries.
19981 build_libtool_need_lc=$archive_cmds_need_lc_RC
19983 # Whether or not to disallow shared libs when runtime libs are static
19984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19986 # Whether or not to optimize for fast installation.
19987 fast_install=$enable_fast_install
19989 # The host system.
19990 host_alias=$host_alias
19991 host=$host
19992 host_os=$host_os
19994 # The build system.
19995 build_alias=$build_alias
19996 build=$build
19997 build_os=$build_os
19999 # An echo program that does not interpret backslashes.
20000 echo=$lt_echo
20002 # The archiver.
20003 AR=$lt_AR
20004 AR_FLAGS=$lt_AR_FLAGS
20006 # A C compiler.
20007 LTCC=$lt_LTCC
20009 # A language-specific compiler.
20010 CC=$lt_compiler_RC
20012 # Is the compiler the GNU C compiler?
20013 with_gcc=$GCC_RC
20015 # An ERE matcher.
20016 EGREP=$lt_EGREP
20018 # The linker used to build libraries.
20019 LD=$lt_LD_RC
20021 # Whether we need hard or soft links.
20022 LN_S=$lt_LN_S
20024 # A BSD-compatible nm program.
20025 NM=$lt_NM
20027 # A symbol stripping program
20028 STRIP=$lt_STRIP
20030 # Used to examine libraries when file_magic_cmd begins "file"
20031 MAGIC_CMD=$MAGIC_CMD
20033 # Used on cygwin: DLL creation program.
20034 DLLTOOL="$DLLTOOL"
20036 # Used on cygwin: object dumper.
20037 OBJDUMP="$OBJDUMP"
20039 # Used on cygwin: assembler.
20040 AS="$AS"
20042 # The name of the directory that contains temporary libtool files.
20043 objdir=$objdir
20045 # How to create reloadable object files.
20046 reload_flag=$lt_reload_flag
20047 reload_cmds=$lt_reload_cmds
20049 # How to pass a linker flag through the compiler.
20050 wl=$lt_lt_prog_compiler_wl_RC
20052 # Object file suffix (normally "o").
20053 objext="$ac_objext"
20055 # Old archive suffix (normally "a").
20056 libext="$libext"
20058 # Shared library suffix (normally ".so").
20059 shrext_cmds='$shrext_cmds'
20061 # Executable file suffix (normally "").
20062 exeext="$exeext"
20064 # Additional compiler flags for building library objects.
20065 pic_flag=$lt_lt_prog_compiler_pic_RC
20066 pic_mode=$pic_mode
20068 # What is the maximum length of a command?
20069 max_cmd_len=$lt_cv_sys_max_cmd_len
20071 # Does compiler simultaneously support -c and -o options?
20072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20074 # Must we lock files when doing compilation?
20075 need_locks=$lt_need_locks
20077 # Do we need the lib prefix for modules?
20078 need_lib_prefix=$need_lib_prefix
20080 # Do we need a version for libraries?
20081 need_version=$need_version
20083 # Whether dlopen is supported.
20084 dlopen_support=$enable_dlopen
20086 # Whether dlopen of programs is supported.
20087 dlopen_self=$enable_dlopen_self
20089 # Whether dlopen of statically linked programs is supported.
20090 dlopen_self_static=$enable_dlopen_self_static
20092 # Compiler flag to prevent dynamic linking.
20093 link_static_flag=$lt_lt_prog_compiler_static_RC
20095 # Compiler flag to turn off builtin functions.
20096 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20098 # Compiler flag to allow reflexive dlopens.
20099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20101 # Compiler flag to generate shared objects directly from archives.
20102 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20104 # Compiler flag to generate thread-safe objects.
20105 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20107 # Library versioning type.
20108 version_type=$version_type
20110 # Format of library name prefix.
20111 libname_spec=$lt_libname_spec
20113 # List of archive names. First name is the real one, the rest are links.
20114 # The last name is the one that the linker finds with -lNAME.
20115 library_names_spec=$lt_library_names_spec
20117 # The coded name of the library, if different from the real name.
20118 soname_spec=$lt_soname_spec
20120 # Commands used to build and install an old-style archive.
20121 RANLIB=$lt_RANLIB
20122 old_archive_cmds=$lt_old_archive_cmds_RC
20123 old_postinstall_cmds=$lt_old_postinstall_cmds
20124 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20126 # Create an old-style archive from a shared archive.
20127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20129 # Create a temporary old-style archive to link instead of a shared archive.
20130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20132 # Commands used to build and install a shared archive.
20133 archive_cmds=$lt_archive_cmds_RC
20134 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20135 postinstall_cmds=$lt_postinstall_cmds
20136 postuninstall_cmds=$lt_postuninstall_cmds
20138 # Commands used to build a loadable module (assumed same as above if empty)
20139 module_cmds=$lt_module_cmds_RC
20140 module_expsym_cmds=$lt_module_expsym_cmds_RC
20142 # Commands to strip libraries.
20143 old_striplib=$lt_old_striplib
20144 striplib=$lt_striplib
20146 # Dependencies to place before the objects being linked to create a
20147 # shared library.
20148 predep_objects=$lt_predep_objects_RC
20150 # Dependencies to place after the objects being linked to create a
20151 # shared library.
20152 postdep_objects=$lt_postdep_objects_RC
20154 # Dependencies to place before the objects being linked to create a
20155 # shared library.
20156 predeps=$lt_predeps_RC
20158 # Dependencies to place after the objects being linked to create a
20159 # shared library.
20160 postdeps=$lt_postdeps_RC
20162 # The library search path used internally by the compiler when linking
20163 # a shared library.
20164 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20166 # Method to check whether dependent libraries are shared objects.
20167 deplibs_check_method=$lt_deplibs_check_method
20169 # Command to use when deplibs_check_method == file_magic.
20170 file_magic_cmd=$lt_file_magic_cmd
20172 # Flag that allows shared libraries with undefined symbols to be built.
20173 allow_undefined_flag=$lt_allow_undefined_flag_RC
20175 # Flag that forces no undefined symbols.
20176 no_undefined_flag=$lt_no_undefined_flag_RC
20178 # Commands used to finish a libtool library installation in a directory.
20179 finish_cmds=$lt_finish_cmds
20181 # Same as above, but a single script fragment to be evaled but not shown.
20182 finish_eval=$lt_finish_eval
20184 # Take the output of nm and produce a listing of raw symbols and C names.
20185 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20187 # Transform the output of nm in a proper C declaration
20188 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20190 # Transform the output of nm in a C name address pair
20191 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20193 # This is the shared library runtime path variable.
20194 runpath_var=$runpath_var
20196 # This is the shared library path variable.
20197 shlibpath_var=$shlibpath_var
20199 # Is shlibpath searched before the hard-coded library search path?
20200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20202 # How to hardcode a shared library path into an executable.
20203 hardcode_action=$hardcode_action_RC
20205 # Whether we should hardcode library paths into libraries.
20206 hardcode_into_libs=$hardcode_into_libs
20208 # Flag to hardcode \$libdir into a binary during linking.
20209 # This must work even if \$libdir does not exist.
20210 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20212 # If ld is used when linking, flag to hardcode \$libdir into
20213 # a binary during linking. This must work even if \$libdir does
20214 # not exist.
20215 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20217 # Whether we need a single -rpath flag with a separated argument.
20218 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20220 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20221 # resulting binary.
20222 hardcode_direct=$hardcode_direct_RC
20224 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20225 # resulting binary.
20226 hardcode_minus_L=$hardcode_minus_L_RC
20228 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20229 # the resulting binary.
20230 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20232 # Set to yes if building a shared library automatically hardcodes DIR into the library
20233 # and all subsequent libraries and executables linked against it.
20234 hardcode_automatic=$hardcode_automatic_RC
20236 # Variables whose values should be saved in libtool wrapper scripts and
20237 # restored at relink time.
20238 variables_saved_for_relink="$variables_saved_for_relink"
20240 # Whether libtool must link a program against all its dependency libraries.
20241 link_all_deplibs=$link_all_deplibs_RC
20243 # Compile-time system search path for libraries
20244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20246 # Run-time system search path for libraries
20247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20249 # Fix the shell variable \$srcfile for the compiler.
20250 fix_srcfile_path="$fix_srcfile_path_RC"
20252 # Set to yes if exported symbols are required.
20253 always_export_symbols=$always_export_symbols_RC
20255 # The commands to list exported symbols.
20256 export_symbols_cmds=$lt_export_symbols_cmds_RC
20258 # The commands to extract the exported symbol list from a shared archive.
20259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20261 # Symbols that should not be listed in the preloaded symbols.
20262 exclude_expsyms=$lt_exclude_expsyms_RC
20264 # Symbols that must always be exported.
20265 include_expsyms=$lt_include_expsyms_RC
20267 # ### END LIBTOOL TAG CONFIG: $tagname
20269 __EOF__
20272 else
20273 # If there is no Makefile yet, we rely on a make rule to execute
20274 # `config.status --recheck' to rerun these tests and create the
20275 # libtool script then.
20276 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20277 if test -f "$ltmain_in"; then
20278 test -f Makefile && make "$ltmain"
20283 ac_ext=c
20284 ac_cpp='$CPP $CPPFLAGS'
20285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20289 CC="$lt_save_CC"
20294 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20295 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20296 { (exit 1); exit 1; }; }
20298 esac
20300 # Append the new tag name to the list of available tags.
20301 if test -n "$tagname" ; then
20302 available_tags="$available_tags $tagname"
20305 done
20306 IFS="$lt_save_ifs"
20308 # Now substitute the updated list of available tags.
20309 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20310 mv "${ofile}T" "$ofile"
20311 chmod +x "$ofile"
20312 else
20313 rm -f "${ofile}T"
20314 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20315 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20316 { (exit 1); exit 1; }; }
20322 # This can be used to rebuild libtool when needed
20323 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20325 # Always use our own libtool.
20326 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20328 # Prevent multiple expansion
20350 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20351 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
20352 # Check whether --enable-nls was given.
20353 if test "${enable_nls+set}" = set; then
20354 enableval=$enable_nls; USE_NLS=$enableval
20355 else
20356 USE_NLS=yes
20359 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
20360 echo "${ECHO_T}$USE_NLS" >&6; }
20365 case "$am__api_version" in
20366 1.01234)
20367 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
20368 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
20369 { (exit 1); exit 1; }; }
20373 esac
20375 if test -n "0.23"; then
20376 { echo "$as_me:$LINENO: checking for intltool >= 0.23" >&5
20377 echo $ECHO_N "checking for intltool >= 0.23... $ECHO_C" >&6; }
20379 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.23 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
20380 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
20381 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
20383 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
20384 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
20385 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
20386 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.23 or later." >&5
20387 echo "$as_me: error: Your intltool is too old. You need intltool 0.23 or later." >&2;}
20388 { (exit 1); exit 1; }; }
20391 # Extract the first word of "intltool-update", so it can be a program name with args.
20392 set dummy intltool-update; ac_word=$2
20393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20395 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398 case $INTLTOOL_UPDATE in
20399 [\\/]* | ?:[\\/]*)
20400 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
20403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20404 for as_dir in $PATH
20406 IFS=$as_save_IFS
20407 test -z "$as_dir" && as_dir=.
20408 for ac_exec_ext in '' $ac_executable_extensions; do
20409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20410 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
20411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20412 break 2
20414 done
20415 done
20416 IFS=$as_save_IFS
20419 esac
20421 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
20422 if test -n "$INTLTOOL_UPDATE"; then
20423 { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
20424 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
20425 else
20426 { echo "$as_me:$LINENO: result: no" >&5
20427 echo "${ECHO_T}no" >&6; }
20431 # Extract the first word of "intltool-merge", so it can be a program name with args.
20432 set dummy intltool-merge; ac_word=$2
20433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20435 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438 case $INTLTOOL_MERGE in
20439 [\\/]* | ?:[\\/]*)
20440 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
20443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20444 for as_dir in $PATH
20446 IFS=$as_save_IFS
20447 test -z "$as_dir" && as_dir=.
20448 for ac_exec_ext in '' $ac_executable_extensions; do
20449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20450 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
20451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20452 break 2
20454 done
20455 done
20456 IFS=$as_save_IFS
20459 esac
20461 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
20462 if test -n "$INTLTOOL_MERGE"; then
20463 { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
20464 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
20465 else
20466 { echo "$as_me:$LINENO: result: no" >&5
20467 echo "${ECHO_T}no" >&6; }
20471 # Extract the first word of "intltool-extract", so it can be a program name with args.
20472 set dummy intltool-extract; ac_word=$2
20473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20475 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478 case $INTLTOOL_EXTRACT in
20479 [\\/]* | ?:[\\/]*)
20480 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
20483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20484 for as_dir in $PATH
20486 IFS=$as_save_IFS
20487 test -z "$as_dir" && as_dir=.
20488 for ac_exec_ext in '' $ac_executable_extensions; do
20489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20490 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
20491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20492 break 2
20494 done
20495 done
20496 IFS=$as_save_IFS
20499 esac
20501 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
20502 if test -n "$INTLTOOL_EXTRACT"; then
20503 { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
20504 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
20505 else
20506 { echo "$as_me:$LINENO: result: no" >&5
20507 echo "${ECHO_T}no" >&6; }
20511 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
20512 { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
20513 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
20514 { (exit 1); exit 1; }; }
20517 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 $< $@'
20518 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 $< $@'
20519 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 $< $@'
20520 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 $< $@'
20521 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
20522 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 $< $@'
20523 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 $< $@'
20524 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 $< $@'
20525 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 $< $@'
20526 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 $< $@'
20527 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 $< $@'
20528 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
20529 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 $< $@'
20530 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 $< $@'
20531 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 $< $@'
20532 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 $< $@'
20533 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 $< $@'
20534 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 $< $@'
20535 INTLTOOL_POLICY_RULE='%.policy: %.policy.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 $< $@'
20557 # Check the gettext tools to make sure they are GNU
20558 # Extract the first word of "xgettext", so it can be a program name with args.
20559 set dummy xgettext; ac_word=$2
20560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20562 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565 case $XGETTEXT in
20566 [\\/]* | ?:[\\/]*)
20567 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20571 for as_dir in $PATH
20573 IFS=$as_save_IFS
20574 test -z "$as_dir" && as_dir=.
20575 for ac_exec_ext in '' $ac_executable_extensions; do
20576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20577 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
20578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20579 break 2
20581 done
20582 done
20583 IFS=$as_save_IFS
20586 esac
20588 XGETTEXT=$ac_cv_path_XGETTEXT
20589 if test -n "$XGETTEXT"; then
20590 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20591 echo "${ECHO_T}$XGETTEXT" >&6; }
20592 else
20593 { echo "$as_me:$LINENO: result: no" >&5
20594 echo "${ECHO_T}no" >&6; }
20598 # Extract the first word of "msgmerge", so it can be a program name with args.
20599 set dummy msgmerge; ac_word=$2
20600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20602 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 else
20605 case $MSGMERGE in
20606 [\\/]* | ?:[\\/]*)
20607 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20611 for as_dir in $PATH
20613 IFS=$as_save_IFS
20614 test -z "$as_dir" && as_dir=.
20615 for ac_exec_ext in '' $ac_executable_extensions; do
20616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20617 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
20618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20619 break 2
20621 done
20622 done
20623 IFS=$as_save_IFS
20626 esac
20628 MSGMERGE=$ac_cv_path_MSGMERGE
20629 if test -n "$MSGMERGE"; then
20630 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20631 echo "${ECHO_T}$MSGMERGE" >&6; }
20632 else
20633 { echo "$as_me:$LINENO: result: no" >&5
20634 echo "${ECHO_T}no" >&6; }
20638 # Extract the first word of "msgfmt", so it can be a program name with args.
20639 set dummy msgfmt; ac_word=$2
20640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20642 if test "${ac_cv_path_MSGFMT+set}" = set; then
20643 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 else
20645 case $MSGFMT in
20646 [\\/]* | ?:[\\/]*)
20647 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20651 for as_dir in $PATH
20653 IFS=$as_save_IFS
20654 test -z "$as_dir" && as_dir=.
20655 for ac_exec_ext in '' $ac_executable_extensions; do
20656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20657 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
20658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20659 break 2
20661 done
20662 done
20663 IFS=$as_save_IFS
20666 esac
20668 MSGFMT=$ac_cv_path_MSGFMT
20669 if test -n "$MSGFMT"; then
20670 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20671 echo "${ECHO_T}$MSGFMT" >&6; }
20672 else
20673 { echo "$as_me:$LINENO: result: no" >&5
20674 echo "${ECHO_T}no" >&6; }
20678 # Extract the first word of "gmsgfmt", so it can be a program name with args.
20679 set dummy gmsgfmt; ac_word=$2
20680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20682 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20684 else
20685 case $GMSGFMT in
20686 [\\/]* | ?:[\\/]*)
20687 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20691 for as_dir in $PATH
20693 IFS=$as_save_IFS
20694 test -z "$as_dir" && as_dir=.
20695 for ac_exec_ext in '' $ac_executable_extensions; do
20696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20697 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20699 break 2
20701 done
20702 done
20703 IFS=$as_save_IFS
20705 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20707 esac
20709 GMSGFMT=$ac_cv_path_GMSGFMT
20710 if test -n "$GMSGFMT"; then
20711 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20712 echo "${ECHO_T}$GMSGFMT" >&6; }
20713 else
20714 { echo "$as_me:$LINENO: result: no" >&5
20715 echo "${ECHO_T}no" >&6; }
20719 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
20720 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20721 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20722 { (exit 1); exit 1; }; }
20724 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
20725 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
20726 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
20727 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
20728 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20729 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20730 { (exit 1); exit 1; }; }
20733 # Extract the first word of "perl", so it can be a program name with args.
20734 set dummy perl; ac_word=$2
20735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20737 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740 case $INTLTOOL_PERL in
20741 [\\/]* | ?:[\\/]*)
20742 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
20745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20746 for as_dir in $PATH
20748 IFS=$as_save_IFS
20749 test -z "$as_dir" && as_dir=.
20750 for ac_exec_ext in '' $ac_executable_extensions; do
20751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20752 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
20753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20754 break 2
20756 done
20757 done
20758 IFS=$as_save_IFS
20761 esac
20763 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
20764 if test -n "$INTLTOOL_PERL"; then
20765 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
20766 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
20767 else
20768 { echo "$as_me:$LINENO: result: no" >&5
20769 echo "${ECHO_T}no" >&6; }
20773 if test -z "$INTLTOOL_PERL"; then
20774 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
20775 echo "$as_me: error: perl not found; required for intltool" >&2;}
20776 { (exit 1); exit 1; }; }
20778 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
20779 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
20780 echo "$as_me: error: perl 5.x required for intltool" >&2;}
20781 { (exit 1); exit 1; }; }
20783 if test "x" != "xno-xml"; then
20784 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
20785 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
20786 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
20787 { echo "$as_me:$LINENO: result: ok" >&5
20788 echo "${ECHO_T}ok" >&6; }
20789 else
20790 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
20791 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
20792 { (exit 1); exit 1; }; }
20796 # Substitute ALL_LINGUAS so we can use it in po/Makefile
20799 # Set DATADIRNAME correctly if it is not set yet
20800 # (copied from glib-gettext.m4)
20801 if test -z "$DATADIRNAME"; then
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h. */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20810 main ()
20812 extern int _nl_msg_cat_cntr;
20813 return _nl_msg_cat_cntr
20815 return 0;
20817 _ACEOF
20818 rm -f conftest.$ac_objext conftest$ac_exeext
20819 if { (ac_try="$ac_link"
20820 case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_link") 2>conftest.er1
20826 ac_status=$?
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && {
20832 test -z "$ac_c_werror_flag" ||
20833 test ! -s conftest.err
20834 } && test -s conftest$ac_exeext &&
20835 $as_test_x conftest$ac_exeext; then
20836 DATADIRNAME=share
20837 else
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 case $host in
20842 *-*-solaris*)
20843 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
20844 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
20845 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 else
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
20855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20856 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
20858 /* System header to define __stub macros and hopefully few prototypes,
20859 which can conflict with char bind_textdomain_codeset (); below.
20860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20861 <limits.h> exists even on freestanding compilers. */
20863 #ifdef __STDC__
20864 # include <limits.h>
20865 #else
20866 # include <assert.h>
20867 #endif
20869 #undef bind_textdomain_codeset
20871 /* Override any GCC internal prototype to avoid an error.
20872 Use char because int might match the return type of a GCC
20873 builtin and then its argument prototype would still apply. */
20874 #ifdef __cplusplus
20875 extern "C"
20876 #endif
20877 char bind_textdomain_codeset ();
20878 /* The GNU C library defines this for functions which it implements
20879 to always fail with ENOSYS. Some functions are actually named
20880 something starting with __ and the normal name is an alias. */
20881 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
20882 choke me
20883 #endif
20886 main ()
20888 return bind_textdomain_codeset ();
20890 return 0;
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_link") 2>conftest.er1
20901 ac_status=$?
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest$ac_exeext &&
20910 $as_test_x conftest$ac_exeext; then
20911 ac_cv_func_bind_textdomain_codeset=yes
20912 else
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_cv_func_bind_textdomain_codeset=no
20919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20920 conftest$ac_exeext conftest.$ac_ext
20922 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
20923 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
20924 if test $ac_cv_func_bind_textdomain_codeset = yes; then
20925 DATADIRNAME=share
20926 else
20927 DATADIRNAME=lib
20932 DATADIRNAME=lib
20934 esac
20937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20938 conftest$ac_exeext conftest.$ac_ext
20945 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20946 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20947 if test "${ac_cv_header_stdc+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <stdlib.h>
20957 #include <stdarg.h>
20958 #include <string.h>
20959 #include <float.h>
20962 main ()
20966 return 0;
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973 *) ac_try_echo=$ac_try;;
20974 esac
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976 (eval "$ac_compile") 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } && {
20983 test -z "$ac_c_werror_flag" ||
20984 test ! -s conftest.err
20985 } && test -s conftest.$ac_objext; then
20986 ac_cv_header_stdc=yes
20987 else
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20991 ac_cv_header_stdc=no
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 if test $ac_cv_header_stdc = yes; then
20997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20998 cat >conftest.$ac_ext <<_ACEOF
20999 /* confdefs.h. */
21000 _ACEOF
21001 cat confdefs.h >>conftest.$ac_ext
21002 cat >>conftest.$ac_ext <<_ACEOF
21003 /* end confdefs.h. */
21004 #include <string.h>
21006 _ACEOF
21007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21008 $EGREP "memchr" >/dev/null 2>&1; then
21010 else
21011 ac_cv_header_stdc=no
21013 rm -f conftest*
21017 if test $ac_cv_header_stdc = yes; then
21018 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21019 cat >conftest.$ac_ext <<_ACEOF
21020 /* confdefs.h. */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 #include <stdlib.h>
21027 _ACEOF
21028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21029 $EGREP "free" >/dev/null 2>&1; then
21031 else
21032 ac_cv_header_stdc=no
21034 rm -f conftest*
21038 if test $ac_cv_header_stdc = yes; then
21039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21040 if test "$cross_compiling" = yes; then
21042 else
21043 cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h. */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 #include <ctype.h>
21050 #include <stdlib.h>
21051 #if ((' ' & 0x0FF) == 0x020)
21052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21054 #else
21055 # define ISLOWER(c) \
21056 (('a' <= (c) && (c) <= 'i') \
21057 || ('j' <= (c) && (c) <= 'r') \
21058 || ('s' <= (c) && (c) <= 'z'))
21059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21060 #endif
21062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21064 main ()
21066 int i;
21067 for (i = 0; i < 256; i++)
21068 if (XOR (islower (i), ISLOWER (i))
21069 || toupper (i) != TOUPPER (i))
21070 return 2;
21071 return 0;
21073 _ACEOF
21074 rm -f conftest$ac_exeext
21075 if { (ac_try="$ac_link"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_link") 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21085 { (case "(($ac_try" in
21086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087 *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090 (eval "$ac_try") 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21095 else
21096 echo "$as_me: program exited with status $ac_status" >&5
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 ( exit $ac_status )
21101 ac_cv_header_stdc=no
21103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21109 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21110 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21111 if test $ac_cv_header_stdc = yes; then
21113 cat >>confdefs.h <<\_ACEOF
21114 #define STDC_HEADERS 1
21115 _ACEOF
21120 # Option to enable debugging
21121 # Check whether --enable-debug was given.
21122 if test "${enable_debug+set}" = set; then
21123 enableval=$enable_debug; with_debug=yes
21124 else
21125 with_debug=no
21129 if test "x$with_debug" == "xyes" ; then
21130 CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall -ansi -pedantic"
21131 else
21132 # CFLAGS="$CFLAGS -O2 -Wall -ansi -pedantic"
21133 CFLAGS="$CFLAGS -O2 -Wall -ansi"
21136 # Hildon library dependencies
21139 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21140 if test -n "$ac_tool_prefix"; then
21141 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21142 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21145 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 else
21148 case $PKG_CONFIG in
21149 [\\/]* | ?:[\\/]*)
21150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21154 for as_dir in $PATH
21156 IFS=$as_save_IFS
21157 test -z "$as_dir" && as_dir=.
21158 for ac_exec_ext in '' $ac_executable_extensions; do
21159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21160 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21162 break 2
21164 done
21165 done
21166 IFS=$as_save_IFS
21169 esac
21171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21172 if test -n "$PKG_CONFIG"; then
21173 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21174 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21175 else
21176 { echo "$as_me:$LINENO: result: no" >&5
21177 echo "${ECHO_T}no" >&6; }
21182 if test -z "$ac_cv_path_PKG_CONFIG"; then
21183 ac_pt_PKG_CONFIG=$PKG_CONFIG
21184 # Extract the first word of "pkg-config", so it can be a program name with args.
21185 set dummy pkg-config; ac_word=$2
21186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21188 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21189 echo $ECHO_N "(cached) $ECHO_C" >&6
21190 else
21191 case $ac_pt_PKG_CONFIG in
21192 [\\/]* | ?:[\\/]*)
21193 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21197 for as_dir in $PATH
21199 IFS=$as_save_IFS
21200 test -z "$as_dir" && as_dir=.
21201 for ac_exec_ext in '' $ac_executable_extensions; do
21202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21203 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21205 break 2
21207 done
21208 done
21209 IFS=$as_save_IFS
21212 esac
21214 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21215 if test -n "$ac_pt_PKG_CONFIG"; then
21216 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21217 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21218 else
21219 { echo "$as_me:$LINENO: result: no" >&5
21220 echo "${ECHO_T}no" >&6; }
21223 if test "x$ac_pt_PKG_CONFIG" = x; then
21224 PKG_CONFIG=""
21225 else
21226 case $cross_compiling:$ac_tool_warned in
21227 yes:)
21228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21229 whose name does not start with the host triplet. If you think this
21230 configuration is useful to you, please write to autoconf@gnu.org." >&5
21231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21232 whose name does not start with the host triplet. If you think this
21233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21234 ac_tool_warned=yes ;;
21235 esac
21236 PKG_CONFIG=$ac_pt_PKG_CONFIG
21238 else
21239 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21243 if test -n "$PKG_CONFIG"; then
21244 _pkg_min_version=0.9.0
21245 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21246 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21247 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21248 { echo "$as_me:$LINENO: result: yes" >&5
21249 echo "${ECHO_T}yes" >&6; }
21250 else
21251 { echo "$as_me:$LINENO: result: no" >&5
21252 echo "${ECHO_T}no" >&6; }
21253 PKG_CONFIG=""
21258 pkg_failed=no
21259 { echo "$as_me:$LINENO: checking for HILDON" >&5
21260 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
21262 if test -n "$PKG_CONFIG"; then
21263 if test -n "$HILDON_CFLAGS"; then
21264 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
21265 else
21266 if test -n "$PKG_CONFIG" && \
21267 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9 hildon-fm-2 wpeditor\"") >&5
21268 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor") 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; then
21272 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor" 2>/dev/null`
21273 else
21274 pkg_failed=yes
21277 else
21278 pkg_failed=untried
21280 if test -n "$PKG_CONFIG"; then
21281 if test -n "$HILDON_LIBS"; then
21282 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
21283 else
21284 if test -n "$PKG_CONFIG" && \
21285 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9 hildon-fm-2 wpeditor\"") >&5
21286 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor") 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; then
21290 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor" 2>/dev/null`
21291 else
21292 pkg_failed=yes
21295 else
21296 pkg_failed=untried
21301 if test $pkg_failed = yes; then
21303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21304 _pkg_short_errors_supported=yes
21305 else
21306 _pkg_short_errors_supported=no
21308 if test $_pkg_short_errors_supported = yes; then
21309 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor"`
21310 else
21311 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor"`
21313 # Put the nasty error message in config.log where it belongs
21314 echo "$HILDON_PKG_ERRORS" >&5
21316 { { echo "$as_me:$LINENO: error: Package requirements (hildon-1 >= 0.9.9 hildon-fm-2 wpeditor) were not met:
21318 $HILDON_PKG_ERRORS
21320 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21321 installed software in a non-standard prefix.
21323 Alternatively, you may set the environment variables HILDON_CFLAGS
21324 and HILDON_LIBS to avoid the need to call pkg-config.
21325 See the pkg-config man page for more details.
21326 " >&5
21327 echo "$as_me: error: Package requirements (hildon-1 >= 0.9.9 hildon-fm-2 wpeditor) were not met:
21329 $HILDON_PKG_ERRORS
21331 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21332 installed software in a non-standard prefix.
21334 Alternatively, you may set the environment variables HILDON_CFLAGS
21335 and HILDON_LIBS to avoid the need to call pkg-config.
21336 See the pkg-config man page for more details.
21337 " >&2;}
21338 { (exit 1); exit 1; }; }
21339 elif test $pkg_failed = untried; then
21340 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21341 is in your PATH or set the PKG_CONFIG environment variable to the full
21342 path to pkg-config.
21344 Alternatively, you may set the environment variables HILDON_CFLAGS
21345 and HILDON_LIBS to avoid the need to call pkg-config.
21346 See the pkg-config man page for more details.
21348 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21349 See \`config.log' for more details." >&5
21350 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21351 is in your PATH or set the PKG_CONFIG environment variable to the full
21352 path to pkg-config.
21354 Alternatively, you may set the environment variables HILDON_CFLAGS
21355 and HILDON_LIBS to avoid the need to call pkg-config.
21356 See the pkg-config man page for more details.
21358 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21359 See \`config.log' for more details." >&2;}
21360 { (exit 1); exit 1; }; }
21361 else
21362 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
21363 HILDON_LIBS=$pkg_cv_HILDON_LIBS
21364 { echo "$as_me:$LINENO: result: yes" >&5
21365 echo "${ECHO_T}yes" >&6; }
21371 # Only used for the .service file path
21373 pkg_failed=no
21374 { echo "$as_me:$LINENO: checking for DBUS" >&5
21375 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
21377 if test -n "$PKG_CONFIG"; then
21378 if test -n "$DBUS_CFLAGS"; then
21379 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
21380 else
21381 if test -n "$PKG_CONFIG" && \
21382 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.23.4\"") >&5
21383 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.23.4") 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; then
21387 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.23.4" 2>/dev/null`
21388 else
21389 pkg_failed=yes
21392 else
21393 pkg_failed=untried
21395 if test -n "$PKG_CONFIG"; then
21396 if test -n "$DBUS_LIBS"; then
21397 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
21398 else
21399 if test -n "$PKG_CONFIG" && \
21400 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.23.4\"") >&5
21401 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.23.4") 2>&5
21402 ac_status=$?
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; then
21405 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.23.4" 2>/dev/null`
21406 else
21407 pkg_failed=yes
21410 else
21411 pkg_failed=untried
21416 if test $pkg_failed = yes; then
21418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21419 _pkg_short_errors_supported=yes
21420 else
21421 _pkg_short_errors_supported=no
21423 if test $_pkg_short_errors_supported = yes; then
21424 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 >= 0.23.4"`
21425 else
21426 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= 0.23.4"`
21428 # Put the nasty error message in config.log where it belongs
21429 echo "$DBUS_PKG_ERRORS" >&5
21431 { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 >= 0.23.4) were not met:
21433 $DBUS_PKG_ERRORS
21435 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21436 installed software in a non-standard prefix.
21438 Alternatively, you may set the environment variables DBUS_CFLAGS
21439 and DBUS_LIBS to avoid the need to call pkg-config.
21440 See the pkg-config man page for more details.
21441 " >&5
21442 echo "$as_me: error: Package requirements (dbus-glib-1 >= 0.23.4) were not met:
21444 $DBUS_PKG_ERRORS
21446 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21447 installed software in a non-standard prefix.
21449 Alternatively, you may set the environment variables DBUS_CFLAGS
21450 and DBUS_LIBS to avoid the need to call pkg-config.
21451 See the pkg-config man page for more details.
21452 " >&2;}
21453 { (exit 1); exit 1; }; }
21454 elif test $pkg_failed = untried; then
21455 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21456 is in your PATH or set the PKG_CONFIG environment variable to the full
21457 path to pkg-config.
21459 Alternatively, you may set the environment variables DBUS_CFLAGS
21460 and DBUS_LIBS to avoid the need to call pkg-config.
21461 See the pkg-config man page for more details.
21463 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21464 See \`config.log' for more details." >&5
21465 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21466 is in your PATH or set the PKG_CONFIG environment variable to the full
21467 path to pkg-config.
21469 Alternatively, you may set the environment variables DBUS_CFLAGS
21470 and DBUS_LIBS to avoid the need to call pkg-config.
21471 See the pkg-config man page for more details.
21473 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21474 See \`config.log' for more details." >&2;}
21475 { (exit 1); exit 1; }; }
21476 else
21477 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
21478 DBUS_LIBS=$pkg_cv_DBUS_LIBS
21479 { echo "$as_me:$LINENO: result: yes" >&5
21480 echo "${ECHO_T}yes" >&6; }
21484 # OSSO application framework dependencies
21486 pkg_failed=no
21487 { echo "$as_me:$LINENO: checking for OSSO" >&5
21488 echo $ECHO_N "checking for OSSO... $ECHO_C" >&6; }
21490 if test -n "$PKG_CONFIG"; then
21491 if test -n "$OSSO_CFLAGS"; then
21492 pkg_cv_OSSO_CFLAGS="$OSSO_CFLAGS"
21493 else
21494 if test -n "$PKG_CONFIG" && \
21495 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11\"") >&5
21496 ($PKG_CONFIG --exists --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11") 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; then
21500 pkg_cv_OSSO_CFLAGS=`$PKG_CONFIG --cflags "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11" 2>/dev/null`
21501 else
21502 pkg_failed=yes
21505 else
21506 pkg_failed=untried
21508 if test -n "$PKG_CONFIG"; then
21509 if test -n "$OSSO_LIBS"; then
21510 pkg_cv_OSSO_LIBS="$OSSO_LIBS"
21511 else
21512 if test -n "$PKG_CONFIG" && \
21513 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11\"") >&5
21514 ($PKG_CONFIG --exists --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11") 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; then
21518 pkg_cv_OSSO_LIBS=`$PKG_CONFIG --libs "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11" 2>/dev/null`
21519 else
21520 pkg_failed=yes
21523 else
21524 pkg_failed=untried
21529 if test $pkg_failed = yes; then
21531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21532 _pkg_short_errors_supported=yes
21533 else
21534 _pkg_short_errors_supported=no
21536 if test $_pkg_short_errors_supported = yes; then
21537 OSSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11"`
21538 else
21539 OSSO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11"`
21541 # Put the nasty error message in config.log where it belongs
21542 echo "$OSSO_PKG_ERRORS" >&5
21544 { { echo "$as_me:$LINENO: error: Package requirements (libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11) were not met:
21546 $OSSO_PKG_ERRORS
21548 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21549 installed software in a non-standard prefix.
21551 Alternatively, you may set the environment variables OSSO_CFLAGS
21552 and OSSO_LIBS to avoid the need to call pkg-config.
21553 See the pkg-config man page for more details.
21554 " >&5
21555 echo "$as_me: error: Package requirements (libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11) were not met:
21557 $OSSO_PKG_ERRORS
21559 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21560 installed software in a non-standard prefix.
21562 Alternatively, you may set the environment variables OSSO_CFLAGS
21563 and OSSO_LIBS to avoid the need to call pkg-config.
21564 See the pkg-config man page for more details.
21565 " >&2;}
21566 { (exit 1); exit 1; }; }
21567 elif test $pkg_failed = untried; then
21568 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21569 is in your PATH or set the PKG_CONFIG environment variable to the full
21570 path to pkg-config.
21572 Alternatively, you may set the environment variables OSSO_CFLAGS
21573 and OSSO_LIBS to avoid the need to call pkg-config.
21574 See the pkg-config man page for more details.
21576 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21577 See \`config.log' for more details." >&5
21578 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21579 is in your PATH or set the PKG_CONFIG environment variable to the full
21580 path to pkg-config.
21582 Alternatively, you may set the environment variables OSSO_CFLAGS
21583 and OSSO_LIBS to avoid the need to call pkg-config.
21584 See the pkg-config man page for more details.
21586 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21587 See \`config.log' for more details." >&2;}
21588 { (exit 1); exit 1; }; }
21589 else
21590 OSSO_CFLAGS=$pkg_cv_OSSO_CFLAGS
21591 OSSO_LIBS=$pkg_cv_OSSO_LIBS
21592 { echo "$as_me:$LINENO: result: yes" >&5
21593 echo "${ECHO_T}yes" >&6; }
21599 # libxml2
21600 #PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.0)
21601 #AC_SUBST(XML2_LIBS)
21602 #AC_SUBST(XML2_CFLAGS)
21604 # sqlite3
21606 pkg_failed=no
21607 { echo "$as_me:$LINENO: checking for SQL3" >&5
21608 echo $ECHO_N "checking for SQL3... $ECHO_C" >&6; }
21610 if test -n "$PKG_CONFIG"; then
21611 if test -n "$SQL3_CFLAGS"; then
21612 pkg_cv_SQL3_CFLAGS="$SQL3_CFLAGS"
21613 else
21614 if test -n "$PKG_CONFIG" && \
21615 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.0\"") >&5
21616 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.0") 2>&5
21617 ac_status=$?
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; then
21620 pkg_cv_SQL3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.0" 2>/dev/null`
21621 else
21622 pkg_failed=yes
21625 else
21626 pkg_failed=untried
21628 if test -n "$PKG_CONFIG"; then
21629 if test -n "$SQL3_LIBS"; then
21630 pkg_cv_SQL3_LIBS="$SQL3_LIBS"
21631 else
21632 if test -n "$PKG_CONFIG" && \
21633 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.0\"") >&5
21634 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.0") 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; then
21638 pkg_cv_SQL3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.0" 2>/dev/null`
21639 else
21640 pkg_failed=yes
21643 else
21644 pkg_failed=untried
21649 if test $pkg_failed = yes; then
21651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21652 _pkg_short_errors_supported=yes
21653 else
21654 _pkg_short_errors_supported=no
21656 if test $_pkg_short_errors_supported = yes; then
21657 SQL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.0"`
21658 else
21659 SQL3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.0"`
21661 # Put the nasty error message in config.log where it belongs
21662 echo "$SQL3_PKG_ERRORS" >&5
21664 { { echo "$as_me:$LINENO: error: Package requirements (sqlite3 >= 3.0) were not met:
21666 $SQL3_PKG_ERRORS
21668 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21669 installed software in a non-standard prefix.
21671 Alternatively, you may set the environment variables SQL3_CFLAGS
21672 and SQL3_LIBS to avoid the need to call pkg-config.
21673 See the pkg-config man page for more details.
21674 " >&5
21675 echo "$as_me: error: Package requirements (sqlite3 >= 3.0) were not met:
21677 $SQL3_PKG_ERRORS
21679 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21680 installed software in a non-standard prefix.
21682 Alternatively, you may set the environment variables SQL3_CFLAGS
21683 and SQL3_LIBS to avoid the need to call pkg-config.
21684 See the pkg-config man page for more details.
21685 " >&2;}
21686 { (exit 1); exit 1; }; }
21687 elif test $pkg_failed = untried; then
21688 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21689 is in your PATH or set the PKG_CONFIG environment variable to the full
21690 path to pkg-config.
21692 Alternatively, you may set the environment variables SQL3_CFLAGS
21693 and SQL3_LIBS to avoid the need to call pkg-config.
21694 See the pkg-config man page for more details.
21696 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21697 See \`config.log' for more details." >&5
21698 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21699 is in your PATH or set the PKG_CONFIG environment variable to the full
21700 path to pkg-config.
21702 Alternatively, you may set the environment variables SQL3_CFLAGS
21703 and SQL3_LIBS to avoid the need to call pkg-config.
21704 See the pkg-config man page for more details.
21706 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21707 See \`config.log' for more details." >&2;}
21708 { (exit 1); exit 1; }; }
21709 else
21710 SQL3_CFLAGS=$pkg_cv_SQL3_CFLAGS
21711 SQL3_LIBS=$pkg_cv_SQL3_LIBS
21712 { echo "$as_me:$LINENO: result: yes" >&5
21713 echo "${ECHO_T}yes" >&6; }
21719 # Localisation
21720 GETTEXT_PACKAGE=$PACKAGE
21723 cat >>confdefs.h <<_ACEOF
21724 #define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
21725 _ACEOF
21727 ALL_LINGUAS="en_GB fi_FI de_DE"
21730 for ac_header in locale.h
21732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 ac_res=`eval echo '${'$as_ac_Header'}'`
21740 { echo "$as_me:$LINENO: result: $ac_res" >&5
21741 echo "${ECHO_T}$ac_res" >&6; }
21742 else
21743 # Is the header compilable?
21744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21746 cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h. */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h. */
21752 $ac_includes_default
21753 #include <$ac_header>
21754 _ACEOF
21755 rm -f conftest.$ac_objext
21756 if { (ac_try="$ac_compile"
21757 case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760 esac
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_compile") 2>conftest.er1
21763 ac_status=$?
21764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } && {
21769 test -z "$ac_c_werror_flag" ||
21770 test ! -s conftest.err
21771 } && test -s conftest.$ac_objext; then
21772 ac_header_compiler=yes
21773 else
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ac_header_compiler=no
21780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21782 echo "${ECHO_T}$ac_header_compiler" >&6; }
21784 # Is the header present?
21785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h. */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 #include <$ac_header>
21794 _ACEOF
21795 if { (ac_try="$ac_cpp conftest.$ac_ext"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799 esac
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } >/dev/null && {
21808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 }; then
21811 ac_header_preproc=yes
21812 else
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21816 ac_header_preproc=no
21819 rm -f conftest.err conftest.$ac_ext
21820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21821 echo "${ECHO_T}$ac_header_preproc" >&6; }
21823 # So? What about this header?
21824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21825 yes:no: )
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21830 ac_header_preproc=yes
21832 no:yes:* )
21833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21847 esac
21848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 else
21853 eval "$as_ac_Header=\$ac_header_preproc"
21855 ac_res=`eval echo '${'$as_ac_Header'}'`
21856 { echo "$as_me:$LINENO: result: $ac_res" >&5
21857 echo "${ECHO_T}$ac_res" >&6; }
21860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21861 cat >>confdefs.h <<_ACEOF
21862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21863 _ACEOF
21867 done
21869 if test $ac_cv_header_locale_h = yes; then
21870 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
21871 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
21872 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21874 else
21875 cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h. */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 #include <locale.h>
21883 main ()
21885 return LC_MESSAGES
21887 return 0;
21889 _ACEOF
21890 rm -f conftest.$ac_objext conftest$ac_exeext
21891 if { (ac_try="$ac_link"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21895 esac
21896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_link") 2>conftest.er1
21898 ac_status=$?
21899 grep -v '^ *+' conftest.er1 >conftest.err
21900 rm -f conftest.er1
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest$ac_exeext &&
21907 $as_test_x conftest$ac_exeext; then
21908 am_cv_val_LC_MESSAGES=yes
21909 else
21910 echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21913 am_cv_val_LC_MESSAGES=no
21916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21917 conftest$ac_exeext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
21920 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
21921 if test $am_cv_val_LC_MESSAGES = yes; then
21923 cat >>confdefs.h <<\_ACEOF
21924 #define HAVE_LC_MESSAGES 1
21925 _ACEOF
21929 USE_NLS=yes
21932 gt_cv_have_gettext=no
21934 CATOBJEXT=NONE
21935 XGETTEXT=:
21936 INTLLIBS=
21938 if test "${ac_cv_header_libintl_h+set}" = set; then
21939 { echo "$as_me:$LINENO: checking for libintl.h" >&5
21940 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
21941 if test "${ac_cv_header_libintl_h+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21944 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21945 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
21946 else
21947 # Is the header compilable?
21948 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
21949 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
21950 cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h. */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21956 $ac_includes_default
21957 #include <libintl.h>
21958 _ACEOF
21959 rm -f conftest.$ac_objext
21960 if { (ac_try="$ac_compile"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_compile") 2>conftest.er1
21967 ac_status=$?
21968 grep -v '^ *+' conftest.er1 >conftest.err
21969 rm -f conftest.er1
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest.$ac_objext; then
21976 ac_header_compiler=yes
21977 else
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ac_header_compiler=no
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21986 echo "${ECHO_T}$ac_header_compiler" >&6; }
21988 # Is the header present?
21989 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
21990 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
21991 cat >conftest.$ac_ext <<_ACEOF
21992 /* confdefs.h. */
21993 _ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h. */
21997 #include <libintl.h>
21998 _ACEOF
21999 if { (ac_try="$ac_cpp conftest.$ac_ext"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22006 ac_status=$?
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } >/dev/null && {
22012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 }; then
22015 ac_header_preproc=yes
22016 else
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22020 ac_header_preproc=no
22023 rm -f conftest.err conftest.$ac_ext
22024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22025 echo "${ECHO_T}$ac_header_preproc" >&6; }
22027 # So? What about this header?
22028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22029 yes:no: )
22030 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22031 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22032 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22033 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22034 ac_header_preproc=yes
22036 no:yes:* )
22037 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22038 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22039 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
22040 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22042 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
22044 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22046 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22048 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22051 esac
22052 { echo "$as_me:$LINENO: checking for libintl.h" >&5
22053 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
22054 if test "${ac_cv_header_libintl_h+set}" = set; then
22055 echo $ECHO_N "(cached) $ECHO_C" >&6
22056 else
22057 ac_cv_header_libintl_h=$ac_header_preproc
22059 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22060 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
22063 if test $ac_cv_header_libintl_h = yes; then
22064 gt_cv_func_dgettext_libintl="no"
22065 libintl_extra_libs=""
22068 # First check in libc
22070 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
22071 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
22072 if test "${gt_cv_func_ngettext_libc+set}" = set; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 else
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h. */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22082 #include <libintl.h>
22085 main ()
22087 return !ngettext ("","", 1)
22089 return 0;
22091 _ACEOF
22092 rm -f conftest.$ac_objext conftest$ac_exeext
22093 if { (ac_try="$ac_link"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_link") 2>conftest.er1
22100 ac_status=$?
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } && {
22106 test -z "$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22108 } && test -s conftest$ac_exeext &&
22109 $as_test_x conftest$ac_exeext; then
22110 gt_cv_func_ngettext_libc=yes
22111 else
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 gt_cv_func_ngettext_libc=no
22118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22119 conftest$ac_exeext conftest.$ac_ext
22122 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
22123 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
22125 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22126 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
22127 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
22128 if test "${gt_cv_func_dgettext_libc+set}" = set; then
22129 echo $ECHO_N "(cached) $ECHO_C" >&6
22130 else
22131 cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h. */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22138 #include <libintl.h>
22141 main ()
22143 return !dgettext ("","")
22145 return 0;
22147 _ACEOF
22148 rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (ac_try="$ac_link"
22150 case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22153 esac
22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155 (eval "$ac_link") 2>conftest.er1
22156 ac_status=$?
22157 grep -v '^ *+' conftest.er1 >conftest.err
22158 rm -f conftest.er1
22159 cat conftest.err >&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); } && {
22162 test -z "$ac_c_werror_flag" ||
22163 test ! -s conftest.err
22164 } && test -s conftest$ac_exeext &&
22165 $as_test_x conftest$ac_exeext; then
22166 gt_cv_func_dgettext_libc=yes
22167 else
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 gt_cv_func_dgettext_libc=no
22174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22175 conftest$ac_exeext conftest.$ac_ext
22178 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
22179 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
22182 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
22184 for ac_func in bind_textdomain_codeset
22186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192 cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h. */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22200 #define $ac_func innocuous_$ac_func
22202 /* System header to define __stub macros and hopefully few prototypes,
22203 which can conflict with char $ac_func (); below.
22204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22205 <limits.h> exists even on freestanding compilers. */
22207 #ifdef __STDC__
22208 # include <limits.h>
22209 #else
22210 # include <assert.h>
22211 #endif
22213 #undef $ac_func
22215 /* Override any GCC internal prototype to avoid an error.
22216 Use char because int might match the return type of a GCC
22217 builtin and then its argument prototype would still apply. */
22218 #ifdef __cplusplus
22219 extern "C"
22220 #endif
22221 char $ac_func ();
22222 /* The GNU C library defines this for functions which it implements
22223 to always fail with ENOSYS. Some functions are actually named
22224 something starting with __ and the normal name is an alias. */
22225 #if defined __stub_$ac_func || defined __stub___$ac_func
22226 choke me
22227 #endif
22230 main ()
22232 return $ac_func ();
22234 return 0;
22236 _ACEOF
22237 rm -f conftest.$ac_objext conftest$ac_exeext
22238 if { (ac_try="$ac_link"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_link") 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } && {
22251 test -z "$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 } && test -s conftest$ac_exeext &&
22254 $as_test_x conftest$ac_exeext; then
22255 eval "$as_ac_var=yes"
22256 else
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 eval "$as_ac_var=no"
22263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22264 conftest$ac_exeext conftest.$ac_ext
22266 ac_res=`eval echo '${'$as_ac_var'}'`
22267 { echo "$as_me:$LINENO: result: $ac_res" >&5
22268 echo "${ECHO_T}$ac_res" >&6; }
22269 if test `eval echo '${'$as_ac_var'}'` = yes; then
22270 cat >>confdefs.h <<_ACEOF
22271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22272 _ACEOF
22275 done
22280 # If we don't have everything we want, check in libintl
22282 if test "$gt_cv_func_dgettext_libc" != "yes" \
22283 || test "$gt_cv_func_ngettext_libc" != "yes" \
22284 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
22286 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
22287 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
22288 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291 ac_check_lib_save_LIBS=$LIBS
22292 LIBS="-lintl $LIBS"
22293 cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h. */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22300 /* Override any GCC internal prototype to avoid an error.
22301 Use char because int might match the return type of a GCC
22302 builtin and then its argument prototype would still apply. */
22303 #ifdef __cplusplus
22304 extern "C"
22305 #endif
22306 char bindtextdomain ();
22308 main ()
22310 return bindtextdomain ();
22312 return 0;
22314 _ACEOF
22315 rm -f conftest.$ac_objext conftest$ac_exeext
22316 if { (ac_try="$ac_link"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_link") 2>conftest.er1
22323 ac_status=$?
22324 grep -v '^ *+' conftest.er1 >conftest.err
22325 rm -f conftest.er1
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } && {
22329 test -z "$ac_c_werror_flag" ||
22330 test ! -s conftest.err
22331 } && test -s conftest$ac_exeext &&
22332 $as_test_x conftest$ac_exeext; then
22333 ac_cv_lib_intl_bindtextdomain=yes
22334 else
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22338 ac_cv_lib_intl_bindtextdomain=no
22341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22342 conftest$ac_exeext conftest.$ac_ext
22343 LIBS=$ac_check_lib_save_LIBS
22345 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
22346 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
22347 if test $ac_cv_lib_intl_bindtextdomain = yes; then
22348 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
22349 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
22350 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
22351 echo $ECHO_N "(cached) $ECHO_C" >&6
22352 else
22353 ac_check_lib_save_LIBS=$LIBS
22354 LIBS="-lintl $LIBS"
22355 cat >conftest.$ac_ext <<_ACEOF
22356 /* confdefs.h. */
22357 _ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22362 /* Override any GCC internal prototype to avoid an error.
22363 Use char because int might match the return type of a GCC
22364 builtin and then its argument prototype would still apply. */
22365 #ifdef __cplusplus
22366 extern "C"
22367 #endif
22368 char ngettext ();
22370 main ()
22372 return ngettext ();
22374 return 0;
22376 _ACEOF
22377 rm -f conftest.$ac_objext conftest$ac_exeext
22378 if { (ac_try="$ac_link"
22379 case "(($ac_try" in
22380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381 *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384 (eval "$ac_link") 2>conftest.er1
22385 ac_status=$?
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && {
22391 test -z "$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 } && test -s conftest$ac_exeext &&
22394 $as_test_x conftest$ac_exeext; then
22395 ac_cv_lib_intl_ngettext=yes
22396 else
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_cv_lib_intl_ngettext=no
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22405 LIBS=$ac_check_lib_save_LIBS
22407 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
22408 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
22409 if test $ac_cv_lib_intl_ngettext = yes; then
22410 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22411 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22412 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415 ac_check_lib_save_LIBS=$LIBS
22416 LIBS="-lintl $LIBS"
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h. */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22424 /* Override any GCC internal prototype to avoid an error.
22425 Use char because int might match the return type of a GCC
22426 builtin and then its argument prototype would still apply. */
22427 #ifdef __cplusplus
22428 extern "C"
22429 #endif
22430 char dgettext ();
22432 main ()
22434 return dgettext ();
22436 return 0;
22438 _ACEOF
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (ac_try="$ac_link"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444 esac
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_link") 2>conftest.er1
22447 ac_status=$?
22448 grep -v '^ *+' conftest.er1 >conftest.err
22449 rm -f conftest.er1
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } && {
22453 test -z "$ac_c_werror_flag" ||
22454 test ! -s conftest.err
22455 } && test -s conftest$ac_exeext &&
22456 $as_test_x conftest$ac_exeext; then
22457 ac_cv_lib_intl_dgettext=yes
22458 else
22459 echo "$as_me: failed program was:" >&5
22460 sed 's/^/| /' conftest.$ac_ext >&5
22462 ac_cv_lib_intl_dgettext=no
22465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22466 conftest$ac_exeext conftest.$ac_ext
22467 LIBS=$ac_check_lib_save_LIBS
22469 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22470 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22471 if test $ac_cv_lib_intl_dgettext = yes; then
22472 gt_cv_func_dgettext_libintl=yes
22480 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
22481 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
22482 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
22483 { echo "$as_me:$LINENO: result: " >&5
22484 echo "${ECHO_T}" >&6; }
22485 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
22486 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
22487 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 else
22490 ac_check_lib_save_LIBS=$LIBS
22491 LIBS="-lintl -liconv $LIBS"
22492 cat >conftest.$ac_ext <<_ACEOF
22493 /* confdefs.h. */
22494 _ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22499 /* Override any GCC internal prototype to avoid an error.
22500 Use char because int might match the return type of a GCC
22501 builtin and then its argument prototype would still apply. */
22502 #ifdef __cplusplus
22503 extern "C"
22504 #endif
22505 char ngettext ();
22507 main ()
22509 return ngettext ();
22511 return 0;
22513 _ACEOF
22514 rm -f conftest.$ac_objext conftest$ac_exeext
22515 if { (ac_try="$ac_link"
22516 case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22519 esac
22520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_link") 2>conftest.er1
22522 ac_status=$?
22523 grep -v '^ *+' conftest.er1 >conftest.err
22524 rm -f conftest.er1
22525 cat conftest.err >&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } && {
22528 test -z "$ac_c_werror_flag" ||
22529 test ! -s conftest.err
22530 } && test -s conftest$ac_exeext &&
22531 $as_test_x conftest$ac_exeext; then
22532 ac_cv_lib_intl_ngettext=yes
22533 else
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22537 ac_cv_lib_intl_ngettext=no
22540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22541 conftest$ac_exeext conftest.$ac_ext
22542 LIBS=$ac_check_lib_save_LIBS
22544 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
22545 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
22546 if test $ac_cv_lib_intl_ngettext = yes; then
22547 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
22548 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
22549 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22551 else
22552 ac_check_lib_save_LIBS=$LIBS
22553 LIBS="-lintl -liconv $LIBS"
22554 cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h. */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22561 /* Override any GCC internal prototype to avoid an error.
22562 Use char because int might match the return type of a GCC
22563 builtin and then its argument prototype would still apply. */
22564 #ifdef __cplusplus
22565 extern "C"
22566 #endif
22567 char dcgettext ();
22569 main ()
22571 return dcgettext ();
22573 return 0;
22575 _ACEOF
22576 rm -f conftest.$ac_objext conftest$ac_exeext
22577 if { (ac_try="$ac_link"
22578 case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22581 esac
22582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22583 (eval "$ac_link") 2>conftest.er1
22584 ac_status=$?
22585 grep -v '^ *+' conftest.er1 >conftest.err
22586 rm -f conftest.er1
22587 cat conftest.err >&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); } && {
22590 test -z "$ac_c_werror_flag" ||
22591 test ! -s conftest.err
22592 } && test -s conftest$ac_exeext &&
22593 $as_test_x conftest$ac_exeext; then
22594 ac_cv_lib_intl_dcgettext=yes
22595 else
22596 echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22599 ac_cv_lib_intl_dcgettext=no
22602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22603 conftest$ac_exeext conftest.$ac_ext
22604 LIBS=$ac_check_lib_save_LIBS
22606 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
22607 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
22608 if test $ac_cv_lib_intl_dcgettext = yes; then
22609 gt_cv_func_dgettext_libintl=yes
22610 libintl_extra_libs=-liconv
22611 else
22615 else
22622 # If we found libintl, then check in it for bind_textdomain_codeset();
22623 # we'll prefer libc if neither have bind_textdomain_codeset(),
22624 # and both have dgettext and ngettext
22626 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
22627 glib_save_LIBS="$LIBS"
22628 LIBS="$LIBS -lintl $libintl_extra_libs"
22629 unset ac_cv_func_bind_textdomain_codeset
22631 for ac_func in bind_textdomain_codeset
22633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22638 else
22639 cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h. */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22647 #define $ac_func innocuous_$ac_func
22649 /* System header to define __stub macros and hopefully few prototypes,
22650 which can conflict with char $ac_func (); below.
22651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22652 <limits.h> exists even on freestanding compilers. */
22654 #ifdef __STDC__
22655 # include <limits.h>
22656 #else
22657 # include <assert.h>
22658 #endif
22660 #undef $ac_func
22662 /* Override any GCC internal prototype to avoid an error.
22663 Use char because int might match the return type of a GCC
22664 builtin and then its argument prototype would still apply. */
22665 #ifdef __cplusplus
22666 extern "C"
22667 #endif
22668 char $ac_func ();
22669 /* The GNU C library defines this for functions which it implements
22670 to always fail with ENOSYS. Some functions are actually named
22671 something starting with __ and the normal name is an alias. */
22672 #if defined __stub_$ac_func || defined __stub___$ac_func
22673 choke me
22674 #endif
22677 main ()
22679 return $ac_func ();
22681 return 0;
22683 _ACEOF
22684 rm -f conftest.$ac_objext conftest$ac_exeext
22685 if { (ac_try="$ac_link"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_link") 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest$ac_exeext &&
22701 $as_test_x conftest$ac_exeext; then
22702 eval "$as_ac_var=yes"
22703 else
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 eval "$as_ac_var=no"
22710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22711 conftest$ac_exeext conftest.$ac_ext
22713 ac_res=`eval echo '${'$as_ac_var'}'`
22714 { echo "$as_me:$LINENO: result: $ac_res" >&5
22715 echo "${ECHO_T}$ac_res" >&6; }
22716 if test `eval echo '${'$as_ac_var'}'` = yes; then
22717 cat >>confdefs.h <<_ACEOF
22718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22719 _ACEOF
22722 done
22724 LIBS="$glib_save_LIBS"
22726 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
22727 gt_cv_func_dgettext_libc=no
22728 else
22729 if test "$gt_cv_func_dgettext_libc" = "yes" \
22730 && test "$gt_cv_func_ngettext_libc" = "yes"; then
22731 gt_cv_func_dgettext_libintl=no
22737 if test "$gt_cv_func_dgettext_libc" = "yes" \
22738 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
22739 gt_cv_have_gettext=yes
22742 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
22743 INTLLIBS="-lintl $libintl_extra_libs"
22746 if test "$gt_cv_have_gettext" = "yes"; then
22748 cat >>confdefs.h <<\_ACEOF
22749 #define HAVE_GETTEXT 1
22750 _ACEOF
22752 # Extract the first word of "msgfmt", so it can be a program name with args.
22753 set dummy msgfmt; ac_word=$2
22754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22756 if test "${ac_cv_path_MSGFMT+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22758 else
22759 case "$MSGFMT" in
22761 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22765 for ac_dir in $PATH; do
22766 test -z "$ac_dir" && ac_dir=.
22767 if test -f $ac_dir/$ac_word; then
22768 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
22769 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22770 break
22773 done
22774 IFS="$ac_save_ifs"
22775 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
22777 esac
22779 MSGFMT="$ac_cv_path_MSGFMT"
22780 if test "$MSGFMT" != "no"; then
22781 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
22782 echo "${ECHO_T}$MSGFMT" >&6; }
22783 else
22784 { echo "$as_me:$LINENO: result: no" >&5
22785 echo "${ECHO_T}no" >&6; }
22787 if test "$MSGFMT" != "no"; then
22788 glib_save_LIBS="$LIBS"
22789 LIBS="$LIBS $INTLLIBS"
22791 for ac_func in dcgettext
22793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22797 echo $ECHO_N "(cached) $ECHO_C" >&6
22798 else
22799 cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22807 #define $ac_func innocuous_$ac_func
22809 /* System header to define __stub macros and hopefully few prototypes,
22810 which can conflict with char $ac_func (); below.
22811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22812 <limits.h> exists even on freestanding compilers. */
22814 #ifdef __STDC__
22815 # include <limits.h>
22816 #else
22817 # include <assert.h>
22818 #endif
22820 #undef $ac_func
22822 /* Override any GCC internal prototype to avoid an error.
22823 Use char because int might match the return type of a GCC
22824 builtin and then its argument prototype would still apply. */
22825 #ifdef __cplusplus
22826 extern "C"
22827 #endif
22828 char $ac_func ();
22829 /* The GNU C library defines this for functions which it implements
22830 to always fail with ENOSYS. Some functions are actually named
22831 something starting with __ and the normal name is an alias. */
22832 #if defined __stub_$ac_func || defined __stub___$ac_func
22833 choke me
22834 #endif
22837 main ()
22839 return $ac_func ();
22841 return 0;
22843 _ACEOF
22844 rm -f conftest.$ac_objext conftest$ac_exeext
22845 if { (ac_try="$ac_link"
22846 case "(($ac_try" in
22847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22848 *) ac_try_echo=$ac_try;;
22849 esac
22850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22851 (eval "$ac_link") 2>conftest.er1
22852 ac_status=$?
22853 grep -v '^ *+' conftest.er1 >conftest.err
22854 rm -f conftest.er1
22855 cat conftest.err >&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && {
22858 test -z "$ac_c_werror_flag" ||
22859 test ! -s conftest.err
22860 } && test -s conftest$ac_exeext &&
22861 $as_test_x conftest$ac_exeext; then
22862 eval "$as_ac_var=yes"
22863 else
22864 echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22867 eval "$as_ac_var=no"
22870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22871 conftest$ac_exeext conftest.$ac_ext
22873 ac_res=`eval echo '${'$as_ac_var'}'`
22874 { echo "$as_me:$LINENO: result: $ac_res" >&5
22875 echo "${ECHO_T}$ac_res" >&6; }
22876 if test `eval echo '${'$as_ac_var'}'` = yes; then
22877 cat >>confdefs.h <<_ACEOF
22878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22879 _ACEOF
22882 done
22884 MSGFMT_OPTS=
22885 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
22886 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
22887 cat >conftest.foo <<_ACEOF
22889 msgid ""
22890 msgstr ""
22891 "Content-Type: text/plain; charset=UTF-8\n"
22892 "Project-Id-Version: test 1.0\n"
22893 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
22894 "Last-Translator: test <foo@bar.xx>\n"
22895 "Language-Team: C <LL@li.org>\n"
22896 "MIME-Version: 1.0\n"
22897 "Content-Transfer-Encoding: 8bit\n"
22899 _ACEOF
22900 if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
22901 (msgfmt -c -o /dev/null conftest.foo) 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; then
22905 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
22906 echo "${ECHO_T}yes" >&6; }
22907 else { echo "$as_me:$LINENO: result: no" >&5
22908 echo "${ECHO_T}no" >&6; }
22909 echo "$as_me: failed input was:" >&5
22910 sed 's/^/| /' conftest.foo >&5
22913 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22914 set dummy gmsgfmt; ac_word=$2
22915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22917 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920 case $GMSGFMT in
22921 [\\/]* | ?:[\\/]*)
22922 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22926 for as_dir in $PATH
22928 IFS=$as_save_IFS
22929 test -z "$as_dir" && as_dir=.
22930 for ac_exec_ext in '' $ac_executable_extensions; do
22931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22932 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22934 break 2
22936 done
22937 done
22938 IFS=$as_save_IFS
22940 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22942 esac
22944 GMSGFMT=$ac_cv_path_GMSGFMT
22945 if test -n "$GMSGFMT"; then
22946 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22947 echo "${ECHO_T}$GMSGFMT" >&6; }
22948 else
22949 { echo "$as_me:$LINENO: result: no" >&5
22950 echo "${ECHO_T}no" >&6; }
22954 # Extract the first word of "xgettext", so it can be a program name with args.
22955 set dummy xgettext; ac_word=$2
22956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22958 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 else
22961 case "$XGETTEXT" in
22963 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22967 for ac_dir in $PATH; do
22968 test -z "$ac_dir" && ac_dir=.
22969 if test -f $ac_dir/$ac_word; then
22970 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22971 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22972 break
22975 done
22976 IFS="$ac_save_ifs"
22977 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22979 esac
22981 XGETTEXT="$ac_cv_path_XGETTEXT"
22982 if test "$XGETTEXT" != ":"; then
22983 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22984 echo "${ECHO_T}$XGETTEXT" >&6; }
22985 else
22986 { echo "$as_me:$LINENO: result: no" >&5
22987 echo "${ECHO_T}no" >&6; }
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h. */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22998 main ()
23000 extern int _nl_msg_cat_cntr;
23001 return _nl_msg_cat_cntr
23003 return 0;
23005 _ACEOF
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (ac_try="$ac_link"
23008 case "(($ac_try" in
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010 *) ac_try_echo=$ac_try;;
23011 esac
23012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23013 (eval "$ac_link") 2>conftest.er1
23014 ac_status=$?
23015 grep -v '^ *+' conftest.er1 >conftest.err
23016 rm -f conftest.er1
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } && {
23020 test -z "$ac_c_werror_flag" ||
23021 test ! -s conftest.err
23022 } && test -s conftest$ac_exeext &&
23023 $as_test_x conftest$ac_exeext; then
23024 CATOBJEXT=.gmo
23025 DATADIRNAME=share
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 case $host in
23031 *-*-solaris*)
23032 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
23033 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
23034 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 else
23037 cat >conftest.$ac_ext <<_ACEOF
23038 /* confdefs.h. */
23039 _ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h. */
23043 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
23044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23045 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
23047 /* System header to define __stub macros and hopefully few prototypes,
23048 which can conflict with char bind_textdomain_codeset (); below.
23049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23050 <limits.h> exists even on freestanding compilers. */
23052 #ifdef __STDC__
23053 # include <limits.h>
23054 #else
23055 # include <assert.h>
23056 #endif
23058 #undef bind_textdomain_codeset
23060 /* Override any GCC internal prototype to avoid an error.
23061 Use char because int might match the return type of a GCC
23062 builtin and then its argument prototype would still apply. */
23063 #ifdef __cplusplus
23064 extern "C"
23065 #endif
23066 char bind_textdomain_codeset ();
23067 /* The GNU C library defines this for functions which it implements
23068 to always fail with ENOSYS. Some functions are actually named
23069 something starting with __ and the normal name is an alias. */
23070 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
23071 choke me
23072 #endif
23075 main ()
23077 return bind_textdomain_codeset ();
23079 return 0;
23081 _ACEOF
23082 rm -f conftest.$ac_objext conftest$ac_exeext
23083 if { (ac_try="$ac_link"
23084 case "(($ac_try" in
23085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086 *) ac_try_echo=$ac_try;;
23087 esac
23088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23089 (eval "$ac_link") 2>conftest.er1
23090 ac_status=$?
23091 grep -v '^ *+' conftest.er1 >conftest.err
23092 rm -f conftest.er1
23093 cat conftest.err >&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } && {
23096 test -z "$ac_c_werror_flag" ||
23097 test ! -s conftest.err
23098 } && test -s conftest$ac_exeext &&
23099 $as_test_x conftest$ac_exeext; then
23100 ac_cv_func_bind_textdomain_codeset=yes
23101 else
23102 echo "$as_me: failed program was:" >&5
23103 sed 's/^/| /' conftest.$ac_ext >&5
23105 ac_cv_func_bind_textdomain_codeset=no
23108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23109 conftest$ac_exeext conftest.$ac_ext
23111 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
23112 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
23113 if test $ac_cv_func_bind_textdomain_codeset = yes; then
23114 CATOBJEXT=.gmo
23115 DATADIRNAME=share
23116 else
23117 CATOBJEXT=.mo
23118 DATADIRNAME=lib
23123 CATOBJEXT=.mo
23124 DATADIRNAME=lib
23126 esac
23129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23130 conftest$ac_exeext conftest.$ac_ext
23131 LIBS="$glib_save_LIBS"
23132 INSTOBJEXT=.mo
23133 else
23134 gt_cv_have_gettext=no
23142 if test "$gt_cv_have_gettext" = "yes" ; then
23144 cat >>confdefs.h <<\_ACEOF
23145 #define ENABLE_NLS 1
23146 _ACEOF
23150 if test "$XGETTEXT" != ":"; then
23151 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
23153 else
23154 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
23155 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
23156 XGETTEXT=":"
23160 # We need to process the po/ directory.
23161 POSUB=po
23163 ac_config_commands="$ac_config_commands default-1"
23166 for lang in $ALL_LINGUAS; do
23167 GMOFILES="$GMOFILES $lang.gmo"
23168 POFILES="$POFILES $lang.po"
23169 done
23183 if test "$gt_cv_have_gettext" = "yes"; then
23184 if test "x$ALL_LINGUAS" = "x"; then
23185 LINGUAS=
23186 else
23187 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
23188 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
23189 NEW_LINGUAS=
23190 for presentlang in $ALL_LINGUAS; do
23191 useit=no
23192 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
23193 desiredlanguages="$LINGUAS"
23194 else
23195 desiredlanguages="$ALL_LINGUAS"
23197 for desiredlang in $desiredlanguages; do
23198 # Use the presentlang catalog if desiredlang is
23199 # a. equal to presentlang, or
23200 # b. a variant of presentlang (because in this case,
23201 # presentlang can be used as a fallback for messages
23202 # which are not translated in the desiredlang catalog).
23203 case "$desiredlang" in
23204 "$presentlang"*) useit=yes;;
23205 esac
23206 done
23207 if test $useit = yes; then
23208 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
23210 done
23211 LINGUAS=$NEW_LINGUAS
23212 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
23213 echo "${ECHO_T}$LINGUAS" >&6; }
23216 if test -n "$LINGUAS"; then
23217 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
23221 MKINSTALLDIRS=
23222 if test -n "$ac_aux_dir"; then
23223 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
23225 if test -z "$MKINSTALLDIRS"; then
23226 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
23230 test -d po || mkdir po
23231 if test "x$srcdir" != "x."; then
23232 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
23233 posrcprefix="$srcdir/"
23234 else
23235 posrcprefix="../$srcdir/"
23237 else
23238 posrcprefix="../"
23240 rm -f po/POTFILES
23241 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
23242 < $srcdir/po/POTFILES.in > po/POTFILES
23245 # To make application visible in maemo Task Navigator it needs a Desktop
23246 # file for the application.
23247 # D-BUS service file is needed to be able to launch the maemo application
23248 # and connect it to D-BUS services.
23249 # The following line defines install directories for these files.
23250 desktopentrydir=/usr/share/applications/hildon
23251 serviceentrydir=/usr/share/dbus-1/services
23253 # Application locale install directory
23254 localedir=/usr/share/locale
23256 # Application pixmaps install directory
23257 pixmapdir=/usr/share/pixmaps/$PACKAGE
23259 # Application icon install directories
23260 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
23261 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
23262 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
23263 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
23264 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
23266 # Hildon control panel plugin install directories
23267 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
23268 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
23270 # Define as variables in Makefiles
23283 # Application Installer uses alternative root prefix /var/lib/install
23284 # where packages are installed. Build time and run time are different.
23285 # Define runtime paths to applications in config.h.
23286 #runtime_root=/var/lib/install
23287 #runtime_localedir=$runtime_root$localedir
23288 #runtime_pixmapdir=$runtime_root$pixmapdir
23291 cat >>confdefs.h <<_ACEOF
23292 #define LOCALEDIR "${localedir}"
23293 _ACEOF
23296 cat >>confdefs.h <<_ACEOF
23297 #define PIXMAPDIR "${pixmapdir}"
23298 _ACEOF
23301 # Produce output files
23302 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile po/Makefile.in po/Makefile"
23304 cat >confcache <<\_ACEOF
23305 # This file is a shell script that caches the results of configure
23306 # tests run on this system so they can be shared between configure
23307 # scripts and configure runs, see configure's option --config-cache.
23308 # It is not useful on other systems. If it contains results you don't
23309 # want to keep, you may remove or edit it.
23311 # config.status only pays attention to the cache file if you give it
23312 # the --recheck option to rerun configure.
23314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23316 # following values.
23318 _ACEOF
23320 # The following way of writing the cache mishandles newlines in values,
23321 # but we know of no workaround that is simple, portable, and efficient.
23322 # So, we kill variables containing newlines.
23323 # Ultrix sh set writes to stderr and can't be redirected directly,
23324 # and sets the high bit in the cache file unless we assign to the vars.
23326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23327 eval ac_val=\$$ac_var
23328 case $ac_val in #(
23329 *${as_nl}*)
23330 case $ac_var in #(
23331 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23332 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23333 esac
23334 case $ac_var in #(
23335 _ | IFS | as_nl) ;; #(
23336 *) $as_unset $ac_var ;;
23337 esac ;;
23338 esac
23339 done
23341 (set) 2>&1 |
23342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23343 *${as_nl}ac_space=\ *)
23344 # `set' does not quote correctly, so add quotes (double-quote
23345 # substitution turns \\\\ into \\, and sed turns \\ into \).
23346 sed -n \
23347 "s/'/'\\\\''/g;
23348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23349 ;; #(
23351 # `set' quotes correctly as required by POSIX, so do not add quotes.
23352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23354 esac |
23355 sort
23357 sed '
23358 /^ac_cv_env_/b end
23359 t clear
23360 :clear
23361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23362 t end
23363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23364 :end' >>confcache
23365 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23366 if test -w "$cache_file"; then
23367 test "x$cache_file" != "x/dev/null" &&
23368 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23369 echo "$as_me: updating cache $cache_file" >&6;}
23370 cat confcache >$cache_file
23371 else
23372 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23373 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23376 rm -f confcache
23378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23379 # Let make expand exec_prefix.
23380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23382 DEFS=-DHAVE_CONFIG_H
23384 ac_libobjs=
23385 ac_ltlibobjs=
23386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23387 # 1. Remove the extension, and $U if already installed.
23388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23389 ac_i=`echo "$ac_i" | sed "$ac_script"`
23390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23391 # will be set to the directory where LIBOBJS objects are built.
23392 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23393 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23394 done
23395 LIBOBJS=$ac_libobjs
23397 LTLIBOBJS=$ac_ltlibobjs
23400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23401 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23402 Usually this means the macro was only invoked conditionally." >&5
23403 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23404 Usually this means the macro was only invoked conditionally." >&2;}
23405 { (exit 1); exit 1; }; }
23407 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23408 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23409 Usually this means the macro was only invoked conditionally." >&5
23410 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23411 Usually this means the macro was only invoked conditionally." >&2;}
23412 { (exit 1); exit 1; }; }
23414 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23415 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23416 Usually this means the macro was only invoked conditionally." >&5
23417 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23418 Usually this means the macro was only invoked conditionally." >&2;}
23419 { (exit 1); exit 1; }; }
23422 ac_config_commands="$ac_config_commands po/stamp-it"
23426 : ${CONFIG_STATUS=./config.status}
23427 ac_clean_files_save=$ac_clean_files
23428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23431 cat >$CONFIG_STATUS <<_ACEOF
23432 #! $SHELL
23433 # Generated by $as_me.
23434 # Run this file to recreate the current configuration.
23435 # Compiler output produced by configure, useful for debugging
23436 # configure, is in config.log if it exists.
23438 debug=false
23439 ac_cs_recheck=false
23440 ac_cs_silent=false
23441 SHELL=\${CONFIG_SHELL-$SHELL}
23442 _ACEOF
23444 cat >>$CONFIG_STATUS <<\_ACEOF
23445 ## --------------------- ##
23446 ## M4sh Initialization. ##
23447 ## --------------------- ##
23449 # Be more Bourne compatible
23450 DUALCASE=1; export DUALCASE # for MKS sh
23451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23452 emulate sh
23453 NULLCMD=:
23454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23455 # is contrary to our usage. Disable this feature.
23456 alias -g '${1+"$@"}'='"$@"'
23457 setopt NO_GLOB_SUBST
23458 else
23459 case `(set -o) 2>/dev/null` in
23460 *posix*) set -o posix ;;
23461 esac
23468 # PATH needs CR
23469 # Avoid depending upon Character Ranges.
23470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23473 as_cr_digits='0123456789'
23474 as_cr_alnum=$as_cr_Letters$as_cr_digits
23476 # The user is always right.
23477 if test "${PATH_SEPARATOR+set}" != set; then
23478 echo "#! /bin/sh" >conf$$.sh
23479 echo "exit 0" >>conf$$.sh
23480 chmod +x conf$$.sh
23481 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23482 PATH_SEPARATOR=';'
23483 else
23484 PATH_SEPARATOR=:
23486 rm -f conf$$.sh
23489 # Support unset when possible.
23490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23491 as_unset=unset
23492 else
23493 as_unset=false
23497 # IFS
23498 # We need space, tab and new line, in precisely that order. Quoting is
23499 # there to prevent editors from complaining about space-tab.
23500 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23501 # splitting by setting IFS to empty value.)
23502 as_nl='
23504 IFS=" "" $as_nl"
23506 # Find who we are. Look in the path if we contain no directory separator.
23507 case $0 in
23508 *[\\/]* ) as_myself=$0 ;;
23509 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23510 for as_dir in $PATH
23512 IFS=$as_save_IFS
23513 test -z "$as_dir" && as_dir=.
23514 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23515 done
23516 IFS=$as_save_IFS
23519 esac
23520 # We did not find ourselves, most probably we were run as `sh COMMAND'
23521 # in which case we are not to be found in the path.
23522 if test "x$as_myself" = x; then
23523 as_myself=$0
23525 if test ! -f "$as_myself"; then
23526 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23527 { (exit 1); exit 1; }
23530 # Work around bugs in pre-3.0 UWIN ksh.
23531 for as_var in ENV MAIL MAILPATH
23532 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23533 done
23534 PS1='$ '
23535 PS2='> '
23536 PS4='+ '
23538 # NLS nuisances.
23539 for as_var in \
23540 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23541 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23542 LC_TELEPHONE LC_TIME
23544 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23545 eval $as_var=C; export $as_var
23546 else
23547 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23549 done
23551 # Required to use basename.
23552 if expr a : '\(a\)' >/dev/null 2>&1 &&
23553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23554 as_expr=expr
23555 else
23556 as_expr=false
23559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23560 as_basename=basename
23561 else
23562 as_basename=false
23566 # Name of the executable.
23567 as_me=`$as_basename -- "$0" ||
23568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23569 X"$0" : 'X\(//\)$' \| \
23570 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23571 echo X/"$0" |
23572 sed '/^.*\/\([^/][^/]*\)\/*$/{
23573 s//\1/
23576 /^X\/\(\/\/\)$/{
23577 s//\1/
23580 /^X\/\(\/\).*/{
23581 s//\1/
23584 s/.*/./; q'`
23586 # CDPATH.
23587 $as_unset CDPATH
23591 as_lineno_1=$LINENO
23592 as_lineno_2=$LINENO
23593 test "x$as_lineno_1" != "x$as_lineno_2" &&
23594 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23597 # uniformly replaced by the line number. The first 'sed' inserts a
23598 # line-number line after each line using $LINENO; the second 'sed'
23599 # does the real work. The second script uses 'N' to pair each
23600 # line-number line with the line containing $LINENO, and appends
23601 # trailing '-' during substitution so that $LINENO is not a special
23602 # case at line end.
23603 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23604 # scripts with optimization help from Paolo Bonzini. Blame Lee
23605 # E. McMahon (1931-1989) for sed's syntax. :-)
23606 sed -n '
23608 /[$]LINENO/=
23609 ' <$as_myself |
23610 sed '
23611 s/[$]LINENO.*/&-/
23612 t lineno
23614 :lineno
23616 :loop
23617 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23618 t loop
23619 s/-\n.*//
23620 ' >$as_me.lineno &&
23621 chmod +x "$as_me.lineno" ||
23622 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23623 { (exit 1); exit 1; }; }
23625 # Don't try to exec as it changes $[0], causing all sort of problems
23626 # (the dirname of $[0] is not the place where we might find the
23627 # original and so on. Autoconf is especially sensitive to this).
23628 . "./$as_me.lineno"
23629 # Exit status is that of the last command.
23630 exit
23634 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23635 as_dirname=dirname
23636 else
23637 as_dirname=false
23640 ECHO_C= ECHO_N= ECHO_T=
23641 case `echo -n x` in
23642 -n*)
23643 case `echo 'x\c'` in
23644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23645 *) ECHO_C='\c';;
23646 esac;;
23648 ECHO_N='-n';;
23649 esac
23651 if expr a : '\(a\)' >/dev/null 2>&1 &&
23652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23653 as_expr=expr
23654 else
23655 as_expr=false
23658 rm -f conf$$ conf$$.exe conf$$.file
23659 if test -d conf$$.dir; then
23660 rm -f conf$$.dir/conf$$.file
23661 else
23662 rm -f conf$$.dir
23663 mkdir conf$$.dir
23665 echo >conf$$.file
23666 if ln -s conf$$.file conf$$ 2>/dev/null; then
23667 as_ln_s='ln -s'
23668 # ... but there are two gotchas:
23669 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23670 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23671 # In both cases, we have to default to `cp -p'.
23672 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23673 as_ln_s='cp -p'
23674 elif ln conf$$.file conf$$ 2>/dev/null; then
23675 as_ln_s=ln
23676 else
23677 as_ln_s='cp -p'
23679 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23680 rmdir conf$$.dir 2>/dev/null
23682 if mkdir -p . 2>/dev/null; then
23683 as_mkdir_p=:
23684 else
23685 test -d ./-p && rmdir ./-p
23686 as_mkdir_p=false
23689 if test -x / >/dev/null 2>&1; then
23690 as_test_x='test -x'
23691 else
23692 if ls -dL / >/dev/null 2>&1; then
23693 as_ls_L_option=L
23694 else
23695 as_ls_L_option=
23697 as_test_x='
23698 eval sh -c '\''
23699 if test -d "$1"; then
23700 test -d "$1/.";
23701 else
23702 case $1 in
23703 -*)set "./$1";;
23704 esac;
23705 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23706 ???[sx]*):;;*)false;;esac;fi
23707 '\'' sh
23710 as_executable_p=$as_test_x
23712 # Sed expression to map a string onto a valid CPP name.
23713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23715 # Sed expression to map a string onto a valid variable name.
23716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23719 exec 6>&1
23721 # Save the log message, to keep $[0] and so on meaningful, and to
23722 # report actual input values of CONFIG_FILES etc. instead of their
23723 # values after options handling.
23724 ac_log="
23725 This file was extended by $as_me, which was
23726 generated by GNU Autoconf 2.61. Invocation command line was
23728 CONFIG_FILES = $CONFIG_FILES
23729 CONFIG_HEADERS = $CONFIG_HEADERS
23730 CONFIG_LINKS = $CONFIG_LINKS
23731 CONFIG_COMMANDS = $CONFIG_COMMANDS
23732 $ $0 $@
23734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23737 _ACEOF
23739 cat >>$CONFIG_STATUS <<_ACEOF
23740 # Files that config.status was made for.
23741 config_files="$ac_config_files"
23742 config_headers="$ac_config_headers"
23743 config_commands="$ac_config_commands"
23745 _ACEOF
23747 cat >>$CONFIG_STATUS <<\_ACEOF
23748 ac_cs_usage="\
23749 \`$as_me' instantiates files from templates according to the
23750 current configuration.
23752 Usage: $0 [OPTIONS] [FILE]...
23754 -h, --help print this help, then exit
23755 -V, --version print version number and configuration settings, then exit
23756 -q, --quiet do not print progress messages
23757 -d, --debug don't remove temporary files
23758 --recheck update $as_me by reconfiguring in the same conditions
23759 --file=FILE[:TEMPLATE]
23760 instantiate the configuration file FILE
23761 --header=FILE[:TEMPLATE]
23762 instantiate the configuration header FILE
23764 Configuration files:
23765 $config_files
23767 Configuration headers:
23768 $config_headers
23770 Configuration commands:
23771 $config_commands
23773 Report bugs to <bug-autoconf@gnu.org>."
23775 _ACEOF
23776 cat >>$CONFIG_STATUS <<_ACEOF
23777 ac_cs_version="\\
23778 config.status
23779 configured by $0, generated by GNU Autoconf 2.61,
23780 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23782 Copyright (C) 2006 Free Software Foundation, Inc.
23783 This config.status script is free software; the Free Software Foundation
23784 gives unlimited permission to copy, distribute and modify it."
23786 ac_pwd='$ac_pwd'
23787 srcdir='$srcdir'
23788 INSTALL='$INSTALL'
23789 _ACEOF
23791 cat >>$CONFIG_STATUS <<\_ACEOF
23792 # If no file are specified by the user, then we need to provide default
23793 # value. By we need to know if files were specified by the user.
23794 ac_need_defaults=:
23795 while test $# != 0
23797 case $1 in
23798 --*=*)
23799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23801 ac_shift=:
23804 ac_option=$1
23805 ac_optarg=$2
23806 ac_shift=shift
23808 esac
23810 case $ac_option in
23811 # Handling of the options.
23812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23813 ac_cs_recheck=: ;;
23814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23815 echo "$ac_cs_version"; exit ;;
23816 --debug | --debu | --deb | --de | --d | -d )
23817 debug=: ;;
23818 --file | --fil | --fi | --f )
23819 $ac_shift
23820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23821 ac_need_defaults=false;;
23822 --header | --heade | --head | --hea )
23823 $ac_shift
23824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23825 ac_need_defaults=false;;
23826 --he | --h)
23827 # Conflict between --help and --header
23828 { echo "$as_me: error: ambiguous option: $1
23829 Try \`$0 --help' for more information." >&2
23830 { (exit 1); exit 1; }; };;
23831 --help | --hel | -h )
23832 echo "$ac_cs_usage"; exit ;;
23833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23835 ac_cs_silent=: ;;
23837 # This is an error.
23838 -*) { echo "$as_me: error: unrecognized option: $1
23839 Try \`$0 --help' for more information." >&2
23840 { (exit 1); exit 1; }; } ;;
23842 *) ac_config_targets="$ac_config_targets $1"
23843 ac_need_defaults=false ;;
23845 esac
23846 shift
23847 done
23849 ac_configure_extra_args=
23851 if $ac_cs_silent; then
23852 exec 6>/dev/null
23853 ac_configure_extra_args="$ac_configure_extra_args --silent"
23856 _ACEOF
23857 cat >>$CONFIG_STATUS <<_ACEOF
23858 if \$ac_cs_recheck; then
23859 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23860 CONFIG_SHELL=$SHELL
23861 export CONFIG_SHELL
23862 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23865 _ACEOF
23866 cat >>$CONFIG_STATUS <<\_ACEOF
23867 exec 5>>config.log
23869 echo
23870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23871 ## Running $as_me. ##
23872 _ASBOX
23873 echo "$ac_log"
23874 } >&5
23876 _ACEOF
23877 cat >>$CONFIG_STATUS <<_ACEOF
23879 # INIT-COMMANDS
23881 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23884 _ACEOF
23886 cat >>$CONFIG_STATUS <<\_ACEOF
23888 # Handling of arguments.
23889 for ac_config_target in $ac_config_targets
23891 case $ac_config_target in
23892 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23893 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23894 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23895 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23896 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23897 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
23898 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23899 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
23900 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
23902 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23903 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23904 { (exit 1); exit 1; }; };;
23905 esac
23906 done
23909 # If the user did not use the arguments to specify the items to instantiate,
23910 # then the envvar interface is used. Set only those that are not.
23911 # We use the long form for the default assignment because of an extremely
23912 # bizarre bug on SunOS 4.1.3.
23913 if $ac_need_defaults; then
23914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23919 # Have a temporary directory for convenience. Make it in the build tree
23920 # simply because there is no reason against having it here, and in addition,
23921 # creating and moving files from /tmp can sometimes cause problems.
23922 # Hook for its removal unless debugging.
23923 # Note that there is a small window in which the directory will not be cleaned:
23924 # after its creation but before its name has been assigned to `$tmp'.
23925 $debug ||
23927 tmp=
23928 trap 'exit_status=$?
23929 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23931 trap '{ (exit 1); exit 1; }' 1 2 13 15
23933 # Create a (secure) tmp directory for tmp files.
23936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23937 test -n "$tmp" && test -d "$tmp"
23938 } ||
23940 tmp=./conf$$-$RANDOM
23941 (umask 077 && mkdir "$tmp")
23942 } ||
23944 echo "$me: cannot create a temporary directory in ." >&2
23945 { (exit 1); exit 1; }
23949 # Set up the sed scripts for CONFIG_FILES section.
23952 # No need to generate the scripts if there are no CONFIG_FILES.
23953 # This happens for instance when ./config.status config.h
23954 if test -n "$CONFIG_FILES"; then
23956 _ACEOF
23960 ac_delim='%!_!# '
23961 for ac_last_try in false false false false false :; do
23962 cat >conf$$subs.sed <<_ACEOF
23963 SHELL!$SHELL$ac_delim
23964 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23965 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23966 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23967 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23968 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23969 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23970 exec_prefix!$exec_prefix$ac_delim
23971 prefix!$prefix$ac_delim
23972 program_transform_name!$program_transform_name$ac_delim
23973 bindir!$bindir$ac_delim
23974 sbindir!$sbindir$ac_delim
23975 libexecdir!$libexecdir$ac_delim
23976 datarootdir!$datarootdir$ac_delim
23977 datadir!$datadir$ac_delim
23978 sysconfdir!$sysconfdir$ac_delim
23979 sharedstatedir!$sharedstatedir$ac_delim
23980 localstatedir!$localstatedir$ac_delim
23981 includedir!$includedir$ac_delim
23982 oldincludedir!$oldincludedir$ac_delim
23983 docdir!$docdir$ac_delim
23984 infodir!$infodir$ac_delim
23985 htmldir!$htmldir$ac_delim
23986 dvidir!$dvidir$ac_delim
23987 pdfdir!$pdfdir$ac_delim
23988 psdir!$psdir$ac_delim
23989 libdir!$libdir$ac_delim
23990 localedir!$localedir$ac_delim
23991 mandir!$mandir$ac_delim
23992 DEFS!$DEFS$ac_delim
23993 ECHO_C!$ECHO_C$ac_delim
23994 ECHO_N!$ECHO_N$ac_delim
23995 ECHO_T!$ECHO_T$ac_delim
23996 LIBS!$LIBS$ac_delim
23997 build_alias!$build_alias$ac_delim
23998 host_alias!$host_alias$ac_delim
23999 target_alias!$target_alias$ac_delim
24000 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24001 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24002 INSTALL_DATA!$INSTALL_DATA$ac_delim
24003 CYGPATH_W!$CYGPATH_W$ac_delim
24004 PACKAGE!$PACKAGE$ac_delim
24005 VERSION!$VERSION$ac_delim
24006 ACLOCAL!$ACLOCAL$ac_delim
24007 AUTOCONF!$AUTOCONF$ac_delim
24008 AUTOMAKE!$AUTOMAKE$ac_delim
24009 AUTOHEADER!$AUTOHEADER$ac_delim
24010 MAKEINFO!$MAKEINFO$ac_delim
24011 AMTAR!$AMTAR$ac_delim
24012 install_sh!$install_sh$ac_delim
24013 STRIP!$STRIP$ac_delim
24014 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24015 AWK!$AWK$ac_delim
24016 SET_MAKE!$SET_MAKE$ac_delim
24017 am__leading_dot!$am__leading_dot$ac_delim
24018 build!$build$ac_delim
24019 build_cpu!$build_cpu$ac_delim
24020 build_vendor!$build_vendor$ac_delim
24021 build_os!$build_os$ac_delim
24022 host!$host$ac_delim
24023 host_cpu!$host_cpu$ac_delim
24024 host_vendor!$host_vendor$ac_delim
24025 host_os!$host_os$ac_delim
24026 CC!$CC$ac_delim
24027 CFLAGS!$CFLAGS$ac_delim
24028 LDFLAGS!$LDFLAGS$ac_delim
24029 CPPFLAGS!$CPPFLAGS$ac_delim
24030 ac_ct_CC!$ac_ct_CC$ac_delim
24031 EXEEXT!$EXEEXT$ac_delim
24032 OBJEXT!$OBJEXT$ac_delim
24033 DEPDIR!$DEPDIR$ac_delim
24034 am__include!$am__include$ac_delim
24035 am__quote!$am__quote$ac_delim
24036 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24037 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24038 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24039 CCDEPMODE!$CCDEPMODE$ac_delim
24040 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24041 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24042 CPP!$CPP$ac_delim
24043 RANLIB!$RANLIB$ac_delim
24044 GREP!$GREP$ac_delim
24045 EGREP!$EGREP$ac_delim
24046 LN_S!$LN_S$ac_delim
24047 ECHO!$ECHO$ac_delim
24048 AR!$AR$ac_delim
24049 CXX!$CXX$ac_delim
24050 CXXFLAGS!$CXXFLAGS$ac_delim
24051 ac_ct_CXX!$ac_ct_CXX$ac_delim
24052 CXXDEPMODE!$CXXDEPMODE$ac_delim
24053 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24054 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24055 CXXCPP!$CXXCPP$ac_delim
24056 F77!$F77$ac_delim
24057 FFLAGS!$FFLAGS$ac_delim
24058 ac_ct_F77!$ac_ct_F77$ac_delim
24059 LIBTOOL!$LIBTOOL$ac_delim
24060 _ACEOF
24062 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24063 break
24064 elif $ac_last_try; then
24065 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24066 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24067 { (exit 1); exit 1; }; }
24068 else
24069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24071 done
24073 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24074 if test -n "$ac_eof"; then
24075 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24076 ac_eof=`expr $ac_eof + 1`
24079 cat >>$CONFIG_STATUS <<_ACEOF
24080 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24082 _ACEOF
24083 sed '
24084 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24085 s/^/s,@/; s/!/@,|#_!!_#|/
24088 s/'"$ac_delim"'$/,g/; t
24089 s/$/\\/; p
24090 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24091 ' >>$CONFIG_STATUS <conf$$subs.sed
24092 rm -f conf$$subs.sed
24093 cat >>$CONFIG_STATUS <<_ACEOF
24094 CEOF$ac_eof
24095 _ACEOF
24098 ac_delim='%!_!# '
24099 for ac_last_try in false false false false false :; do
24100 cat >conf$$subs.sed <<_ACEOF
24101 USE_NLS!$USE_NLS$ac_delim
24102 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
24103 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
24104 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
24105 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
24106 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
24107 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
24108 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
24109 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
24110 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
24111 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
24112 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
24113 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
24114 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
24115 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
24116 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
24117 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
24118 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
24119 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
24120 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
24121 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
24122 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
24123 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
24124 XGETTEXT!$XGETTEXT$ac_delim
24125 MSGMERGE!$MSGMERGE$ac_delim
24126 MSGFMT!$MSGFMT$ac_delim
24127 GMSGFMT!$GMSGFMT$ac_delim
24128 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
24129 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
24130 DATADIRNAME!$DATADIRNAME$ac_delim
24131 PKG_CONFIG!$PKG_CONFIG$ac_delim
24132 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
24133 HILDON_LIBS!$HILDON_LIBS$ac_delim
24134 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24135 DBUS_LIBS!$DBUS_LIBS$ac_delim
24136 OSSO_CFLAGS!$OSSO_CFLAGS$ac_delim
24137 OSSO_LIBS!$OSSO_LIBS$ac_delim
24138 SQL3_CFLAGS!$SQL3_CFLAGS$ac_delim
24139 SQL3_LIBS!$SQL3_LIBS$ac_delim
24140 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
24141 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
24142 CATALOGS!$CATALOGS$ac_delim
24143 CATOBJEXT!$CATOBJEXT$ac_delim
24144 GMOFILES!$GMOFILES$ac_delim
24145 INSTOBJEXT!$INSTOBJEXT$ac_delim
24146 INTLLIBS!$INTLLIBS$ac_delim
24147 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
24148 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
24149 POFILES!$POFILES$ac_delim
24150 POSUB!$POSUB$ac_delim
24151 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
24152 desktopentrydir!$desktopentrydir$ac_delim
24153 serviceentrydir!$serviceentrydir$ac_delim
24154 pixmapdir!$pixmapdir$ac_delim
24155 icon_26x26dir!$icon_26x26dir$ac_delim
24156 icon_34x34dir!$icon_34x34dir$ac_delim
24157 icon_40x40dir!$icon_40x40dir$ac_delim
24158 icon_50x50dir!$icon_50x50dir$ac_delim
24159 icon_scalabledir!$icon_scalabledir$ac_delim
24160 pluginlibdir!$pluginlibdir$ac_delim
24161 plugindesktopentrydir!$plugindesktopentrydir$ac_delim
24162 LIBOBJS!$LIBOBJS$ac_delim
24163 LTLIBOBJS!$LTLIBOBJS$ac_delim
24164 _ACEOF
24166 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
24167 break
24168 elif $ac_last_try; then
24169 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24170 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24171 { (exit 1); exit 1; }; }
24172 else
24173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24175 done
24177 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24178 if test -n "$ac_eof"; then
24179 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24180 ac_eof=`expr $ac_eof + 1`
24183 cat >>$CONFIG_STATUS <<_ACEOF
24184 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24186 _ACEOF
24187 sed '
24188 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24189 s/^/s,@/; s/!/@,|#_!!_#|/
24192 s/'"$ac_delim"'$/,g/; t
24193 s/$/\\/; p
24194 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24195 ' >>$CONFIG_STATUS <conf$$subs.sed
24196 rm -f conf$$subs.sed
24197 cat >>$CONFIG_STATUS <<_ACEOF
24198 :end
24199 s/|#_!!_#|//g
24200 CEOF$ac_eof
24201 _ACEOF
24204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24206 # trailing colons and then remove the whole line if VPATH becomes empty
24207 # (actually we leave an empty line to preserve line numbers).
24208 if test "x$srcdir" = x.; then
24209 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24210 s/:*\$(srcdir):*/:/
24211 s/:*\${srcdir}:*/:/
24212 s/:*@srcdir@:*/:/
24213 s/^\([^=]*=[ ]*\):*/\1/
24214 s/:*$//
24215 s/^[^=]*=[ ]*$//
24219 cat >>$CONFIG_STATUS <<\_ACEOF
24220 fi # test -n "$CONFIG_FILES"
24223 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24225 case $ac_tag in
24226 :[FHLC]) ac_mode=$ac_tag; continue;;
24227 esac
24228 case $ac_mode$ac_tag in
24229 :[FHL]*:*);;
24230 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24231 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24232 { (exit 1); exit 1; }; };;
24233 :[FH]-) ac_tag=-:-;;
24234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24235 esac
24236 ac_save_IFS=$IFS
24237 IFS=:
24238 set x $ac_tag
24239 IFS=$ac_save_IFS
24240 shift
24241 ac_file=$1
24242 shift
24244 case $ac_mode in
24245 :L) ac_source=$1;;
24246 :[FH])
24247 ac_file_inputs=
24248 for ac_f
24250 case $ac_f in
24251 -) ac_f="$tmp/stdin";;
24252 *) # Look for the file first in the build tree, then in the source tree
24253 # (if the path is not absolute). The absolute path cannot be DOS-style,
24254 # because $ac_f cannot contain `:'.
24255 test -f "$ac_f" ||
24256 case $ac_f in
24257 [\\/$]*) false;;
24258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24259 esac ||
24260 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24261 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24262 { (exit 1); exit 1; }; };;
24263 esac
24264 ac_file_inputs="$ac_file_inputs $ac_f"
24265 done
24267 # Let's still pretend it is `configure' which instantiates (i.e., don't
24268 # use $as_me), people would be surprised to read:
24269 # /* config.h. Generated by config.status. */
24270 configure_input="Generated from "`IFS=:
24271 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24272 if test x"$ac_file" != x-; then
24273 configure_input="$ac_file. $configure_input"
24274 { echo "$as_me:$LINENO: creating $ac_file" >&5
24275 echo "$as_me: creating $ac_file" >&6;}
24278 case $ac_tag in
24279 *:-:* | *:-) cat >"$tmp/stdin";;
24280 esac
24282 esac
24284 ac_dir=`$as_dirname -- "$ac_file" ||
24285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24286 X"$ac_file" : 'X\(//\)[^/]' \| \
24287 X"$ac_file" : 'X\(//\)$' \| \
24288 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24289 echo X"$ac_file" |
24290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24291 s//\1/
24294 /^X\(\/\/\)[^/].*/{
24295 s//\1/
24298 /^X\(\/\/\)$/{
24299 s//\1/
24302 /^X\(\/\).*/{
24303 s//\1/
24306 s/.*/./; q'`
24307 { as_dir="$ac_dir"
24308 case $as_dir in #(
24309 -*) as_dir=./$as_dir;;
24310 esac
24311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24312 as_dirs=
24313 while :; do
24314 case $as_dir in #(
24315 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24316 *) as_qdir=$as_dir;;
24317 esac
24318 as_dirs="'$as_qdir' $as_dirs"
24319 as_dir=`$as_dirname -- "$as_dir" ||
24320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24321 X"$as_dir" : 'X\(//\)[^/]' \| \
24322 X"$as_dir" : 'X\(//\)$' \| \
24323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24324 echo X"$as_dir" |
24325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24326 s//\1/
24329 /^X\(\/\/\)[^/].*/{
24330 s//\1/
24333 /^X\(\/\/\)$/{
24334 s//\1/
24337 /^X\(\/\).*/{
24338 s//\1/
24341 s/.*/./; q'`
24342 test -d "$as_dir" && break
24343 done
24344 test -z "$as_dirs" || eval "mkdir $as_dirs"
24345 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24347 { (exit 1); exit 1; }; }; }
24348 ac_builddir=.
24350 case "$ac_dir" in
24351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24354 # A ".." for each directory in $ac_dir_suffix.
24355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24356 case $ac_top_builddir_sub in
24357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24359 esac ;;
24360 esac
24361 ac_abs_top_builddir=$ac_pwd
24362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24363 # for backward compatibility:
24364 ac_top_builddir=$ac_top_build_prefix
24366 case $srcdir in
24367 .) # We are building in place.
24368 ac_srcdir=.
24369 ac_top_srcdir=$ac_top_builddir_sub
24370 ac_abs_top_srcdir=$ac_pwd ;;
24371 [\\/]* | ?:[\\/]* ) # Absolute name.
24372 ac_srcdir=$srcdir$ac_dir_suffix;
24373 ac_top_srcdir=$srcdir
24374 ac_abs_top_srcdir=$srcdir ;;
24375 *) # Relative name.
24376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24377 ac_top_srcdir=$ac_top_build_prefix$srcdir
24378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24379 esac
24380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24383 case $ac_mode in
24386 # CONFIG_FILE
24389 case $INSTALL in
24390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24392 esac
24393 _ACEOF
24395 cat >>$CONFIG_STATUS <<\_ACEOF
24396 # If the template does not know about datarootdir, expand it.
24397 # FIXME: This hack should be removed a few years after 2.60.
24398 ac_datarootdir_hack=; ac_datarootdir_seen=
24400 case `sed -n '/datarootdir/ {
24404 /@datadir@/p
24405 /@docdir@/p
24406 /@infodir@/p
24407 /@localedir@/p
24408 /@mandir@/p
24409 ' $ac_file_inputs` in
24410 *datarootdir*) ac_datarootdir_seen=yes;;
24411 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24412 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24413 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24414 _ACEOF
24415 cat >>$CONFIG_STATUS <<_ACEOF
24416 ac_datarootdir_hack='
24417 s&@datadir@&$datadir&g
24418 s&@docdir@&$docdir&g
24419 s&@infodir@&$infodir&g
24420 s&@localedir@&$localedir&g
24421 s&@mandir@&$mandir&g
24422 s&\\\${datarootdir}&$datarootdir&g' ;;
24423 esac
24424 _ACEOF
24426 # Neutralize VPATH when `$srcdir' = `.'.
24427 # Shell code in configure.ac might set extrasub.
24428 # FIXME: do we really want to maintain this feature?
24429 cat >>$CONFIG_STATUS <<_ACEOF
24430 sed "$ac_vpsub
24431 $extrasub
24432 _ACEOF
24433 cat >>$CONFIG_STATUS <<\_ACEOF
24435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24436 s&@configure_input@&$configure_input&;t t
24437 s&@top_builddir@&$ac_top_builddir_sub&;t t
24438 s&@srcdir@&$ac_srcdir&;t t
24439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24440 s&@top_srcdir@&$ac_top_srcdir&;t t
24441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24442 s&@builddir@&$ac_builddir&;t t
24443 s&@abs_builddir@&$ac_abs_builddir&;t t
24444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24445 s&@INSTALL@&$ac_INSTALL&;t t
24446 $ac_datarootdir_hack
24447 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24450 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24452 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24453 which seems to be undefined. Please make sure it is defined." >&5
24454 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24455 which seems to be undefined. Please make sure it is defined." >&2;}
24457 rm -f "$tmp/stdin"
24458 case $ac_file in
24459 -) cat "$tmp/out"; rm -f "$tmp/out";;
24460 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24461 esac
24465 # CONFIG_HEADER
24467 _ACEOF
24469 # Transform confdefs.h into a sed script `conftest.defines', that
24470 # substitutes the proper values into config.h.in to produce config.h.
24471 rm -f conftest.defines conftest.tail
24472 # First, append a space to every undef/define line, to ease matching.
24473 echo 's/$/ /' >conftest.defines
24474 # Then, protect against being on the right side of a sed subst, or in
24475 # an unquoted here document, in config.status. If some macros were
24476 # called several times there might be several #defines for the same
24477 # symbol, which is useless. But do not sort them, since the last
24478 # AC_DEFINE must be honored.
24479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24480 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24481 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24482 # PARAMS is the parameter list in the macro definition--in most cases, it's
24483 # just an empty string.
24484 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24485 ac_dB='\\)[ (].*,\\1define\\2'
24486 ac_dC=' '
24487 ac_dD=' ,'
24489 uniq confdefs.h |
24490 sed -n '
24491 t rset
24492 :rset
24493 s/^[ ]*#[ ]*define[ ][ ]*//
24494 t ok
24497 s/[\\&,]/\\&/g
24498 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24499 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24500 ' >>conftest.defines
24502 # Remove the space that was appended to ease matching.
24503 # Then replace #undef with comments. This is necessary, for
24504 # example, in the case of _POSIX_SOURCE, which is predefined and required
24505 # on some systems where configure will not decide to define it.
24506 # (The regexp can be short, since the line contains either #define or #undef.)
24507 echo 's/ $//
24508 s,^[ #]*u.*,/* & */,' >>conftest.defines
24510 # Break up conftest.defines:
24511 ac_max_sed_lines=50
24513 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24514 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24515 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24516 # et cetera.
24517 ac_in='$ac_file_inputs'
24518 ac_out='"$tmp/out1"'
24519 ac_nxt='"$tmp/out2"'
24521 while :
24523 # Write a here document:
24524 cat >>$CONFIG_STATUS <<_ACEOF
24525 # First, check the format of the line:
24526 cat >"\$tmp/defines.sed" <<\\CEOF
24527 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24528 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24530 :def
24531 _ACEOF
24532 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24533 echo 'CEOF
24534 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24535 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24536 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24537 grep . conftest.tail >/dev/null || break
24538 rm -f conftest.defines
24539 mv conftest.tail conftest.defines
24540 done
24541 rm -f conftest.defines conftest.tail
24543 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24544 cat >>$CONFIG_STATUS <<\_ACEOF
24545 if test x"$ac_file" != x-; then
24546 echo "/* $configure_input */" >"$tmp/config.h"
24547 cat "$ac_result" >>"$tmp/config.h"
24548 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24549 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24550 echo "$as_me: $ac_file is unchanged" >&6;}
24551 else
24552 rm -f $ac_file
24553 mv "$tmp/config.h" $ac_file
24555 else
24556 echo "/* $configure_input */"
24557 cat "$ac_result"
24559 rm -f "$tmp/out12"
24560 # Compute $ac_file's index in $config_headers.
24561 _am_stamp_count=1
24562 for _am_header in $config_headers :; do
24563 case $_am_header in
24564 $ac_file | $ac_file:* )
24565 break ;;
24567 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24568 esac
24569 done
24570 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24571 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24572 X$ac_file : 'X\(//\)[^/]' \| \
24573 X$ac_file : 'X\(//\)$' \| \
24574 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24575 echo X$ac_file |
24576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24577 s//\1/
24580 /^X\(\/\/\)[^/].*/{
24581 s//\1/
24584 /^X\(\/\/\)$/{
24585 s//\1/
24588 /^X\(\/\).*/{
24589 s//\1/
24592 s/.*/./; q'`/stamp-h$_am_stamp_count
24595 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24596 echo "$as_me: executing $ac_file commands" >&6;}
24598 esac
24601 case $ac_file$ac_mode in
24602 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24603 # Strip MF so we end up with the name of the file.
24604 mf=`echo "$mf" | sed -e 's/:.*$//'`
24605 # Check whether this is an Automake generated Makefile or not.
24606 # We used to match only the files named `Makefile.in', but
24607 # some people rename them; so instead we look at the file content.
24608 # Grep'ing the first line is not enough: some people post-process
24609 # each Makefile.in and add a new line on top of each file to say so.
24610 # So let's grep whole file.
24611 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24612 dirpart=`$as_dirname -- "$mf" ||
24613 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24614 X"$mf" : 'X\(//\)[^/]' \| \
24615 X"$mf" : 'X\(//\)$' \| \
24616 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24617 echo X"$mf" |
24618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24619 s//\1/
24622 /^X\(\/\/\)[^/].*/{
24623 s//\1/
24626 /^X\(\/\/\)$/{
24627 s//\1/
24630 /^X\(\/\).*/{
24631 s//\1/
24634 s/.*/./; q'`
24635 else
24636 continue
24638 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24639 # Extract the definition of DEP_FILES from the Makefile without
24640 # running `make'.
24641 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24642 test -z "$DEPDIR" && continue
24643 # When using ansi2knr, U may be empty or an underscore; expand it
24644 U=`sed -n -e '/^U = / s///p' < "$mf"`
24645 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24646 # We invoke sed twice because it is the simplest approach to
24647 # changing $(DEPDIR) to its actual value in the expansion.
24648 for file in `sed -n -e '
24649 /^DEP_FILES = .*\\\\$/ {
24650 s/^DEP_FILES = //
24651 :loop
24652 s/\\\\$//
24655 /\\\\$/ b loop
24658 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24659 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24660 # Make sure the directory exists.
24661 test -f "$dirpart/$file" && continue
24662 fdir=`$as_dirname -- "$file" ||
24663 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24664 X"$file" : 'X\(//\)[^/]' \| \
24665 X"$file" : 'X\(//\)$' \| \
24666 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24667 echo X"$file" |
24668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24669 s//\1/
24672 /^X\(\/\/\)[^/].*/{
24673 s//\1/
24676 /^X\(\/\/\)$/{
24677 s//\1/
24680 /^X\(\/\).*/{
24681 s//\1/
24684 s/.*/./; q'`
24685 { as_dir=$dirpart/$fdir
24686 case $as_dir in #(
24687 -*) as_dir=./$as_dir;;
24688 esac
24689 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24690 as_dirs=
24691 while :; do
24692 case $as_dir in #(
24693 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24694 *) as_qdir=$as_dir;;
24695 esac
24696 as_dirs="'$as_qdir' $as_dirs"
24697 as_dir=`$as_dirname -- "$as_dir" ||
24698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24699 X"$as_dir" : 'X\(//\)[^/]' \| \
24700 X"$as_dir" : 'X\(//\)$' \| \
24701 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24702 echo X"$as_dir" |
24703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24704 s//\1/
24707 /^X\(\/\/\)[^/].*/{
24708 s//\1/
24711 /^X\(\/\/\)$/{
24712 s//\1/
24715 /^X\(\/\).*/{
24716 s//\1/
24719 s/.*/./; q'`
24720 test -d "$as_dir" && break
24721 done
24722 test -z "$as_dirs" || eval "mkdir $as_dirs"
24723 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24724 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24725 { (exit 1); exit 1; }; }; }
24726 # echo "creating $dirpart/$file"
24727 echo '# dummy' > "$dirpart/$file"
24728 done
24729 done
24731 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
24732 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
24733 esac ;;
24734 "po/stamp-it":C)
24735 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" ; then
24736 { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
24737 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
24738 { (exit 1); exit 1; }; }
24740 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
24741 >"po/stamp-it.tmp"
24742 sed '/^#/d
24743 s/^[[].*] *//
24744 /^[ ]*$/d
24745 '"s|^| $ac_top_srcdir/|" \
24746 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
24748 sed '/^POTFILES =/,/[^\\]$/ {
24749 /^POTFILES =/!d
24750 r po/POTFILES
24752 ' "po/Makefile.in" >"po/Makefile"
24753 rm -f "po/Makefile.tmp"
24754 mv "po/stamp-it.tmp" "po/stamp-it"
24757 esac
24758 done # for ac_tag
24761 { (exit 0); exit 0; }
24762 _ACEOF
24763 chmod +x $CONFIG_STATUS
24764 ac_clean_files=$ac_clean_files_save
24767 # configure is writing to config.log, and then calls config.status.
24768 # config.status does its own redirection, appending to config.log.
24769 # Unfortunately, on DOS this fails, as config.log is still kept open
24770 # by configure, so config.status won't be able to write to it; its
24771 # output is simply discarded. So we exec the FD to /dev/null,
24772 # effectively closing config.log, so it can be properly (re)opened and
24773 # appended to by config.status. When coming back to configure, we
24774 # need to make the FD available again.
24775 if test "$no_create" != yes; then
24776 ac_cs_success=:
24777 ac_config_status_args=
24778 test "$silent" = yes &&
24779 ac_config_status_args="$ac_config_status_args --quiet"
24780 exec 5>/dev/null
24781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24782 exec 5>>config.log
24783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24784 # would make configure fail if this is the last instruction.
24785 $ac_cs_success || { (exit 1); exit 1; }