Hide checklist edit tool button in non-checklist views
[maepad.git] / configure
blob8c2f4ed51d599d978ba30e44e472a11d39535592
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
852 GREP
853 EGREP
854 LN_S
855 ECHO
857 DSYMUTIL
858 NMEDIT
860 CXXFLAGS
861 ac_ct_CXX
862 CXXDEPMODE
863 am__fastdepCXX_TRUE
864 am__fastdepCXX_FALSE
865 CXXCPP
867 FFLAGS
868 ac_ct_F77
869 LIBTOOL
870 USE_NLS
871 INTLTOOL_UPDATE
872 INTLTOOL_MERGE
873 INTLTOOL_EXTRACT
874 INTLTOOL_DESKTOP_RULE
875 INTLTOOL_DIRECTORY_RULE
876 INTLTOOL_KEYS_RULE
877 INTLTOOL_PROP_RULE
878 INTLTOOL_OAF_RULE
879 INTLTOOL_PONG_RULE
880 INTLTOOL_SERVER_RULE
881 INTLTOOL_SHEET_RULE
882 INTLTOOL_SOUNDLIST_RULE
883 INTLTOOL_UI_RULE
884 INTLTOOL_XAM_RULE
885 INTLTOOL_KBD_RULE
886 INTLTOOL_XML_RULE
887 INTLTOOL_XML_NOMERGE_RULE
888 INTLTOOL_CAVES_RULE
889 INTLTOOL_SCHEMAS_RULE
890 INTLTOOL_THEME_RULE
891 INTLTOOL_SERVICE_RULE
892 INTLTOOL_POLICY_RULE
893 XGETTEXT
894 MSGMERGE
895 MSGFMT
896 GMSGFMT
897 INTLTOOL_PERL
898 ALL_LINGUAS
899 DATADIRNAME
900 PKG_CONFIG
901 HILDON_CFLAGS
902 HILDON_LIBS
903 DBUS_CFLAGS
904 DBUS_LIBS
905 OSSO_CFLAGS
906 OSSO_LIBS
907 SQL3_CFLAGS
908 SQL3_LIBS
909 GETTEXT_PACKAGE
910 MSGFMT_OPTS
911 CATALOGS
912 CATOBJEXT
913 GMOFILES
914 INSTOBJEXT
915 INTLLIBS
916 PO_IN_DATADIR_TRUE
917 PO_IN_DATADIR_FALSE
918 POFILES
919 POSUB
920 MKINSTALLDIRS
921 desktopentrydir
922 serviceentrydir
923 pixmapdir
924 icon_26x26dir
925 icon_34x34dir
926 icon_40x40dir
927 icon_50x50dir
928 icon_scalabledir
929 pluginlibdir
930 plugindesktopentrydir
931 LIBOBJS
932 LTLIBOBJS'
933 ac_subst_files=''
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
944 CXXFLAGS
946 CXXCPP
948 FFLAGS
949 PKG_CONFIG
950 HILDON_CFLAGS
951 HILDON_LIBS
952 DBUS_CFLAGS
953 DBUS_LIBS
954 OSSO_CFLAGS
955 OSSO_LIBS
956 SQL3_CFLAGS
957 SQL3_LIBS'
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1026 ac_dashdash=yes ;;
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1067 eval enable_$ac_feature=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1086 eval enable_$ac_feature=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1276 -with-* | --with-*)
1277 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283 eval with_$ac_package=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 { echo "$as_me: error: invalid package name: $ac_package" >&2
1290 { (exit 1); exit 1; }; }
1291 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1292 eval with_$ac_package=no ;;
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) { echo "$as_me: error: unrecognized option: $ac_option
1313 Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322 { (exit 1); exit 1; }; }
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334 esac
1335 done
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 { echo "$as_me: error: missing argument to $ac_option" >&2
1340 { (exit 1); exit 1; }; }
1343 # Be sure to have absolute directory names.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val=\$$ac_var
1350 case $ac_val in
1351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353 esac
1354 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355 { (exit 1); exit 1; }; }
1356 done
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1361 build=$build_alias
1362 host=$host_alias
1363 target=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379 test "$silent" = yes && exec 6>/dev/null
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 { echo "$as_me: error: Working directory cannot be determined" >&2
1386 { (exit 1); exit 1; }; }
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 { echo "$as_me: error: pwd does not report name of working directory" >&2
1389 { (exit 1); exit 1; }; }
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$0" ||
1397 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$0" : 'X\(//\)[^/]' \| \
1399 X"$0" : 'X\(//\)$' \| \
1400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1401 echo X"$0" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1410 /^X\(\/\/\)$/{
1411 s//\1/
1414 /^X\(\/\).*/{
1415 s//\1/
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1423 else
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429 { (exit 1); exit 1; }; }
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1434 { (exit 1); exit 1; }; }
1435 pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
1460 \`configure' configures this package to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1469 Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 [PREFIX]
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1513 _ACEOF
1515 cat <<\_ACEOF
1517 Program names:
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1522 System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 _ACEOF
1528 if test -n "$ac_init_help"; then
1530 cat <<\_ACEOF
1532 Optional Features:
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --disable-dependency-tracking Speeds up one-time builds
1536 --enable-dependency-tracking Do not reject slow dependency extractors
1537 --enable-shared[=PKGS] build shared libraries [default=yes]
1538 --enable-static[=PKGS] build static libraries [default=yes]
1539 --enable-fast-install[=PKGS]
1540 optimize for fast installation [default=yes]
1541 --disable-libtool-lock avoid locking (might break parallel builds)
1542 --disable-nls do not use Native Language Support
1543 --enable-debug Debugging (default=no)
1545 Optional Packages:
1546 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1547 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-pic try to use only PIC/non-PIC objects [default=use
1550 both]
1551 --with-tags[=TAGS] include additional configurations [automatic]
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CPP C preprocessor
1562 CXX C++ compiler command
1563 CXXFLAGS C++ compiler flags
1564 CXXCPP C++ preprocessor
1565 F77 Fortran 77 compiler command
1566 FFLAGS Fortran 77 compiler flags
1567 PKG_CONFIG path to pkg-config utility
1568 HILDON_CFLAGS
1569 C compiler flags for HILDON, overriding pkg-config
1570 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1571 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1572 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1573 OSSO_CFLAGS C compiler flags for OSSO, overriding pkg-config
1574 OSSO_LIBS linker flags for OSSO, overriding pkg-config
1575 SQL3_CFLAGS C compiler flags for SQL3, overriding pkg-config
1576 SQL3_LIBS linker flags for SQL3, overriding pkg-config
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1581 _ACEOF
1582 ac_status=$?
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" || continue
1589 ac_builddir=.
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1607 case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
1632 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640 cat <<\_ACEOF
1641 configure
1642 generated by GNU Autoconf 2.61
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649 exit
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1655 It was created by $as_me, which was
1656 generated by GNU Autoconf 2.61. Invocation command line was
1658 $ $0 $@
1660 _ACEOF
1661 exec 5>>config.log
1663 cat <<_ASUNAME
1664 ## --------- ##
1665 ## Platform. ##
1666 ## --------- ##
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1678 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1681 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1682 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1683 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685 _ASUNAME
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 echo "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1696 } >&5
1698 cat >&5 <<_ACEOF
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1705 _ACEOF
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1719 for ac_arg
1721 case $ac_arg in
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1725 continue ;;
1726 *\'*)
1727 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 esac
1729 case $ac_pass in
1730 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1735 else
1736 case $ac_arg in
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 esac
1745 -* ) ac_must_keep_next=true ;;
1746 esac
1748 ac_configure_args="$ac_configure_args '$ac_arg'"
1750 esac
1751 done
1752 done
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Save into config.log some information that might help in debugging.
1764 echo
1766 cat <<\_ASBOX
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1770 _ASBOX
1771 echo
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775 eval ac_val=\$$ac_var
1776 case $ac_val in #(
1777 *${as_nl}*)
1778 case $ac_var in #(
1779 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 esac
1782 case $ac_var in #(
1783 _ | IFS | as_nl) ;; #(
1784 *) $as_unset $ac_var ;;
1785 esac ;;
1786 esac
1787 done
1788 (set) 2>&1 |
1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1791 sed -n \
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1794 ;; #(
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798 esac |
1799 sort
1801 echo
1803 cat <<\_ASBOX
1804 ## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##
1807 _ASBOX
1808 echo
1809 for ac_var in $ac_subst_vars
1811 eval ac_val=\$$ac_var
1812 case $ac_val in
1813 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 esac
1815 echo "$ac_var='\''$ac_val'\''"
1816 done | sort
1817 echo
1819 if test -n "$ac_subst_files"; then
1820 cat <<\_ASBOX
1821 ## ------------------- ##
1822 ## File substitutions. ##
1823 ## ------------------- ##
1824 _ASBOX
1825 echo
1826 for ac_var in $ac_subst_files
1828 eval ac_val=\$$ac_var
1829 case $ac_val in
1830 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 esac
1832 echo "$ac_var='\''$ac_val'\''"
1833 done | sort
1834 echo
1837 if test -s confdefs.h; then
1838 cat <<\_ASBOX
1839 ## ----------- ##
1840 ## confdefs.h. ##
1841 ## ----------- ##
1842 _ASBOX
1843 echo
1844 cat confdefs.h
1845 echo
1847 test "$ac_signal" != 0 &&
1848 echo "$as_me: caught signal $ac_signal"
1849 echo "$as_me: exit $exit_status"
1850 } >&5
1851 rm -f core *.core core.conftest.* &&
1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1853 exit $exit_status
1855 for ac_signal in 1 2 13 15; do
1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1857 done
1858 ac_signal=0
1860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1861 rm -f -r conftest* confdefs.h
1863 # Predefined preprocessor variables.
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_NAME "$PACKAGE_NAME"
1867 _ACEOF
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1872 _ACEOF
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_STRING "$PACKAGE_STRING"
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1887 _ACEOF
1890 # Let the site file select an alternate cache file if it wants to.
1891 # Prefer explicitly selected file to automatically selected ones.
1892 if test -n "$CONFIG_SITE"; then
1893 set x "$CONFIG_SITE"
1894 elif test "x$prefix" != xNONE; then
1895 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1896 else
1897 set x "$ac_default_prefix/share/config.site" \
1898 "$ac_default_prefix/etc/config.site"
1900 shift
1901 for ac_site_file
1903 if test -r "$ac_site_file"; then
1904 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1905 echo "$as_me: loading site script $ac_site_file" >&6;}
1906 sed 's/^/| /' "$ac_site_file" >&5
1907 . "$ac_site_file"
1909 done
1911 if test -r "$cache_file"; then
1912 # Some versions of bash will fail to source /dev/null (special
1913 # files actually), so we avoid doing that.
1914 if test -f "$cache_file"; then
1915 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1916 echo "$as_me: loading cache $cache_file" >&6;}
1917 case $cache_file in
1918 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1919 *) . "./$cache_file";;
1920 esac
1922 else
1923 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1924 echo "$as_me: creating cache $cache_file" >&6;}
1925 >$cache_file
1928 # Check that the precious variables saved in the cache have kept the same
1929 # value.
1930 ac_cache_corrupted=false
1931 for ac_var in $ac_precious_vars; do
1932 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1933 eval ac_new_set=\$ac_env_${ac_var}_set
1934 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1935 eval ac_new_val=\$ac_env_${ac_var}_value
1936 case $ac_old_set,$ac_new_set in
1937 set,)
1938 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1939 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1940 ac_cache_corrupted=: ;;
1941 ,set)
1942 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1943 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1945 ,);;
1947 if test "x$ac_old_val" != "x$ac_new_val"; then
1948 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1951 echo "$as_me: former value: $ac_old_val" >&2;}
1952 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1953 echo "$as_me: current value: $ac_new_val" >&2;}
1954 ac_cache_corrupted=:
1955 fi;;
1956 esac
1957 # Pass precious variables to config.status.
1958 if test "$ac_new_set" = set; then
1959 case $ac_new_val in
1960 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 *) ac_arg=$ac_var=$ac_new_val ;;
1962 esac
1963 case " $ac_configure_args " in
1964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1965 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966 esac
1968 done
1969 if $ac_cache_corrupted; then
1970 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974 { (exit 1); exit 1; }; }
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 am__api_version="1.7"
2001 ac_aux_dir=
2002 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2003 if test -f "$ac_dir/install-sh"; then
2004 ac_aux_dir=$ac_dir
2005 ac_install_sh="$ac_aux_dir/install-sh -c"
2006 break
2007 elif test -f "$ac_dir/install.sh"; then
2008 ac_aux_dir=$ac_dir
2009 ac_install_sh="$ac_aux_dir/install.sh -c"
2010 break
2011 elif test -f "$ac_dir/shtool"; then
2012 ac_aux_dir=$ac_dir
2013 ac_install_sh="$ac_aux_dir/shtool install -c"
2014 break
2016 done
2017 if test -z "$ac_aux_dir"; then
2018 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2019 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2020 { (exit 1); exit 1; }; }
2023 # These three variables are undocumented and unsupported,
2024 # and are intended to be withdrawn in a future Autoconf release.
2025 # They can cause serious problems if a builder's source tree is in a directory
2026 # whose full name contains unusual characters.
2027 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2028 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2029 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2032 # Find a good install program. We prefer a C program (faster),
2033 # so one script is as good as another. But avoid the broken or
2034 # incompatible versions:
2035 # SysV /etc/install, /usr/sbin/install
2036 # SunOS /usr/etc/install
2037 # IRIX /sbin/install
2038 # AIX /bin/install
2039 # AmigaOS /C/install, which installs bootblocks on floppy discs
2040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2043 # OS/2's system install, which has a completely different semantic
2044 # ./install, which can be erroneously created by make from ./install.sh.
2045 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2046 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2047 if test -z "$INSTALL"; then
2048 if test "${ac_cv_path_install+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 # Account for people who put trailing slashes in PATH elements.
2057 case $as_dir/ in
2058 ./ | .// | /cC/* | \
2059 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2060 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2061 /usr/ucb/* ) ;;
2063 # OSF1 and SCO ODT 3.0 have their own names for install.
2064 # Don't use installbsd from OSF since it installs stuff as root
2065 # by default.
2066 for ac_prog in ginstall scoinst install; do
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2069 if test $ac_prog = install &&
2070 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2071 # AIX install. It has an incompatible calling convention.
2073 elif test $ac_prog = install &&
2074 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2075 # program-specific install script used by HP pwplus--don't use.
2077 else
2078 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2079 break 3
2082 done
2083 done
2085 esac
2086 done
2087 IFS=$as_save_IFS
2091 if test "${ac_cv_path_install+set}" = set; then
2092 INSTALL=$ac_cv_path_install
2093 else
2094 # As a last resort, use the slow shell script. Don't cache a
2095 # value for INSTALL within a source directory, because that will
2096 # break other packages using the cache if that directory is
2097 # removed, or if the value is a relative name.
2098 INSTALL=$ac_install_sh
2101 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2102 echo "${ECHO_T}$INSTALL" >&6; }
2104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2105 # It thinks the first close brace ends the variable substitution.
2106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2112 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2113 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2114 # Just in case
2115 sleep 1
2116 echo timestamp > conftest.file
2117 # Do `set' in a subshell so we don't clobber the current shell's
2118 # arguments. Must try -L first in case configure is actually a
2119 # symlink; some systems play weird games with the mod time of symlinks
2120 # (eg FreeBSD returns the mod time of the symlink's containing
2121 # directory).
2122 if (
2123 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2124 if test "$*" = "X"; then
2125 # -L didn't work.
2126 set X `ls -t $srcdir/configure conftest.file`
2128 rm -f conftest.file
2129 if test "$*" != "X $srcdir/configure conftest.file" \
2130 && test "$*" != "X conftest.file $srcdir/configure"; then
2132 # If neither matched, then we have a broken ls. This can happen
2133 # if, for instance, CONFIG_SHELL is bash and it inherits a
2134 # broken ls alias from the environment. This has actually
2135 # happened. Such a system could not be considered "sane".
2136 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2137 alias in your environment" >&5
2138 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2139 alias in your environment" >&2;}
2140 { (exit 1); exit 1; }; }
2143 test "$2" = conftest.file
2145 then
2146 # Ok.
2148 else
2149 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2150 Check your system clock" >&5
2151 echo "$as_me: error: newly created file is older than distributed files!
2152 Check your system clock" >&2;}
2153 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: yes" >&5
2156 echo "${ECHO_T}yes" >&6; }
2157 test "$program_prefix" != NONE &&
2158 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2159 # Use a double $ so make ignores it.
2160 test "$program_suffix" != NONE &&
2161 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2162 # Double any \ or $. echo might interpret backslashes.
2163 # By default was `s,x,x', remove it if useless.
2164 cat <<\_ACEOF >conftest.sed
2165 s/[\\$]/&&/g;s/;s,x,x,$//
2166 _ACEOF
2167 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2168 rm -f conftest.sed
2171 # expand $ac_aux_dir to an absolute path
2172 am_aux_dir=`cd $ac_aux_dir && pwd`
2174 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2175 # Use eval to expand $SHELL
2176 if eval "$MISSING --run true"; then
2177 am_missing_run="$MISSING --run "
2178 else
2179 am_missing_run=
2180 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2181 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2184 for ac_prog in gawk mawk nawk awk
2186 # Extract the first word of "$ac_prog", so it can be a program name with args.
2187 set dummy $ac_prog; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_AWK+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$AWK"; then
2194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_AWK="$ac_prog"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2209 IFS=$as_save_IFS
2213 AWK=$ac_cv_prog_AWK
2214 if test -n "$AWK"; then
2215 { echo "$as_me:$LINENO: result: $AWK" >&5
2216 echo "${ECHO_T}$AWK" >&6; }
2217 else
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2223 test -n "$AWK" && break
2224 done
2226 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2227 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2228 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2229 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 cat >conftest.make <<\_ACEOF
2233 SHELL = /bin/sh
2234 all:
2235 @echo '@@@%%%=$(MAKE)=@@@%%%'
2236 _ACEOF
2237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2238 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2239 *@@@%%%=?*=@@@%%%*)
2240 eval ac_cv_prog_make_${ac_make}_set=yes;;
2242 eval ac_cv_prog_make_${ac_make}_set=no;;
2243 esac
2244 rm -f conftest.make
2246 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2249 SET_MAKE=
2250 else
2251 { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2253 SET_MAKE="MAKE=${MAKE-make}"
2256 rm -rf .tst 2>/dev/null
2257 mkdir .tst 2>/dev/null
2258 if test -d .tst; then
2259 am__leading_dot=.
2260 else
2261 am__leading_dot=_
2263 rmdir .tst 2>/dev/null
2265 # test to see if srcdir already configured
2266 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2267 test -f $srcdir/config.status; then
2268 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2269 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2270 { (exit 1); exit 1; }; }
2273 # test whether we have cygpath
2274 if test -z "$CYGPATH_W"; then
2275 if (cygpath --version) >/dev/null 2>/dev/null; then
2276 CYGPATH_W='cygpath -w'
2277 else
2278 CYGPATH_W=echo
2283 # Define the identity of the package.
2284 PACKAGE=maepad
2285 VERSION=1.0
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE "$PACKAGE"
2290 _ACEOF
2293 cat >>confdefs.h <<_ACEOF
2294 #define VERSION "$VERSION"
2295 _ACEOF
2297 # Some tools Automake needs.
2299 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2302 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2305 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2308 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2311 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2314 AMTAR=${AMTAR-"${am_missing_run}tar"}
2316 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2318 # Installed binaries are usually stripped using `strip' when the user
2319 # run `make install-strip'. However `strip' might not be the right
2320 # tool to use in cross-compilation environments, therefore Automake
2321 # will honor the `STRIP' environment variable to overrule this program.
2322 if test "$cross_compiling" != no; then
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_STRIP+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2345 done
2346 done
2347 IFS=$as_save_IFS
2351 STRIP=$ac_cv_prog_STRIP
2352 if test -n "$STRIP"; then
2353 { echo "$as_me:$LINENO: result: $STRIP" >&5
2354 echo "${ECHO_T}$STRIP" >&6; }
2355 else
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2362 if test -z "$ac_cv_prog_STRIP"; then
2363 ac_ct_STRIP=$STRIP
2364 # Extract the first word of "strip", so it can be a program name with args.
2365 set dummy strip; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 if test -n "$ac_ct_STRIP"; then
2372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2373 else
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_ac_ct_STRIP="strip"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 2
2385 done
2386 done
2387 IFS=$as_save_IFS
2391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2392 if test -n "$ac_ct_STRIP"; then
2393 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2394 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2395 else
2396 { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2400 if test "x$ac_ct_STRIP" = x; then
2401 STRIP=":"
2402 else
2403 case $cross_compiling:$ac_tool_warned in
2404 yes:)
2405 { echo "$as_me:$LINENO: 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." >&5
2408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409 whose name does not start with the host triplet. If you think this
2410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411 ac_tool_warned=yes ;;
2412 esac
2413 STRIP=$ac_ct_STRIP
2415 else
2416 STRIP="$ac_cv_prog_STRIP"
2420 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2422 # We need awk for the "check" target. The system "awk" is bad on
2423 # some platforms.
2427 ac_config_headers="$ac_config_headers config.h"
2430 # Make sure we can run config.sub.
2431 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2432 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2433 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2434 { (exit 1); exit 1; }; }
2436 { echo "$as_me:$LINENO: checking build system type" >&5
2437 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2438 if test "${ac_cv_build+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441 ac_build_alias=$build_alias
2442 test "x$ac_build_alias" = x &&
2443 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2444 test "x$ac_build_alias" = x &&
2445 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2447 { (exit 1); exit 1; }; }
2448 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2449 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2450 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2451 { (exit 1); exit 1; }; }
2454 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2455 echo "${ECHO_T}$ac_cv_build" >&6; }
2456 case $ac_cv_build in
2457 *-*-*) ;;
2458 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2459 echo "$as_me: error: invalid value of canonical build" >&2;}
2460 { (exit 1); exit 1; }; };;
2461 esac
2462 build=$ac_cv_build
2463 ac_save_IFS=$IFS; IFS='-'
2464 set x $ac_cv_build
2465 shift
2466 build_cpu=$1
2467 build_vendor=$2
2468 shift; shift
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2471 build_os=$*
2472 IFS=$ac_save_IFS
2473 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476 { echo "$as_me:$LINENO: checking host system type" >&5
2477 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2478 if test "${ac_cv_host+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 if test "x$host_alias" = x; then
2482 ac_cv_host=$ac_cv_build
2483 else
2484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2485 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2486 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2487 { (exit 1); exit 1; }; }
2491 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2492 echo "${ECHO_T}$ac_cv_host" >&6; }
2493 case $ac_cv_host in
2494 *-*-*) ;;
2495 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2496 echo "$as_me: error: invalid value of canonical host" >&2;}
2497 { (exit 1); exit 1; }; };;
2498 esac
2499 host=$ac_cv_host
2500 ac_save_IFS=$IFS; IFS='-'
2501 set x $ac_cv_host
2502 shift
2503 host_cpu=$1
2504 host_vendor=$2
2505 shift; shift
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2508 host_os=$*
2509 IFS=$ac_save_IFS
2510 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2541 done
2542 done
2543 IFS=$as_save_IFS
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2551 else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2558 if test -z "$ac_cv_prog_CC"; then
2559 ac_ct_CC=$CC
2560 # Extract the first word of "gcc", so it can be a program name with args.
2561 set dummy gcc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="gcc"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2581 done
2582 done
2583 IFS=$as_save_IFS
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6; }
2591 else
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2596 if test "x$ac_ct_CC" = x; then
2597 CC=""
2598 else
2599 case $cross_compiling:$ac_tool_warned in
2600 yes:)
2601 { echo "$as_me:$LINENO: 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." >&5
2604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet. If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609 CC=$ac_ct_CC
2611 else
2612 CC="$ac_cv_prog_CC"
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2618 set dummy ${ac_tool_prefix}cc; ac_word=$2
2619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621 if test "${ac_cv_prog_CC+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_CC="${ac_tool_prefix}cc"
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2638 done
2639 done
2640 IFS=$as_save_IFS
2644 CC=$ac_cv_prog_CC
2645 if test -n "$CC"; then
2646 { echo "$as_me:$LINENO: result: $CC" >&5
2647 echo "${ECHO_T}$CC" >&6; }
2648 else
2649 { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2656 if test -z "$CC"; then
2657 # Extract the first word of "cc", so it can be a program name with args.
2658 set dummy cc; ac_word=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 ac_prog_rejected=no
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2676 ac_prog_rejected=yes
2677 continue
2679 ac_cv_prog_CC="cc"
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2683 done
2684 done
2685 IFS=$as_save_IFS
2687 if test $ac_prog_rejected = yes; then
2688 # We found a bogon in the path, so make sure we never use it.
2689 set dummy $ac_cv_prog_CC
2690 shift
2691 if test $# != 0; then
2692 # We chose a different compiler from the bogus one.
2693 # However, it has the same basename, so the bogon will be chosen
2694 # first if we set CC to just the basename; use the full file name.
2695 shift
2696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { echo "$as_me:$LINENO: result: $CC" >&5
2704 echo "${ECHO_T}$CC" >&6; }
2705 else
2706 { echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6; }
2712 if test -z "$CC"; then
2713 if test -n "$ac_tool_prefix"; then
2714 for ac_prog in cl.exe
2716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2739 IFS=$as_save_IFS
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 { echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6; }
2747 else
2748 { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2753 test -n "$CC" && break
2754 done
2756 if test -z "$CC"; then
2757 ac_ct_CC=$CC
2758 for ac_prog in cl.exe
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_CC="$ac_prog"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2781 done
2782 done
2783 IFS=$as_save_IFS
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6; }
2791 else
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2797 test -n "$ac_ct_CC" && break
2798 done
2800 if test "x$ac_ct_CC" = x; then
2801 CC=""
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { echo "$as_me:$LINENO: 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." >&5
2808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet. If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2811 ac_tool_warned=yes ;;
2812 esac
2813 CC=$ac_ct_CC
2820 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: no acceptable C compiler found in \$PATH
2823 See \`config.log' for more details." >&2;}
2824 { (exit 1); exit 1; }; }
2826 # Provide some information about the compiler.
2827 echo "$as_me:$LINENO: checking for C compiler version" >&5
2828 ac_compiler=`set X $ac_compile; echo $2`
2829 { (ac_try="$ac_compiler --version >&5"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_compiler --version >&5") 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2839 { (ac_try="$ac_compiler -v >&5"
2840 case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compiler -v >&5") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2849 { (ac_try="$ac_compiler -V >&5"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compiler -V >&5") 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2868 main ()
2872 return 0;
2874 _ACEOF
2875 ac_clean_files_save=$ac_clean_files
2876 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2877 # Try to create an executable without -o first, disregard a.out.
2878 # It will help us diagnose broken compilers, and finding out an intuition
2879 # of exeext.
2880 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2881 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2882 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2884 # List of possible output files, starting from the most likely.
2885 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2886 # only as a last resort. b.out is created by i960 compilers.
2887 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2889 # The IRIX 6 linker writes into existing files which may not be
2890 # executable, retaining their permissions. Remove them first so a
2891 # subsequent execution test works.
2892 ac_rmfiles=
2893 for ac_file in $ac_files
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2898 esac
2899 done
2900 rm -f $ac_rmfiles
2902 if { (ac_try="$ac_link_default"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_link_default") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2913 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2914 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2915 # so that the user can short-circuit this test for compilers unknown to
2916 # Autoconf.
2917 for ac_file in $ac_files ''
2919 test -f "$ac_file" || continue
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2923 [ab].out )
2924 # We found the default executable, but exeext='' is most
2925 # certainly right.
2926 break;;
2927 *.* )
2928 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929 then :; else
2930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 # We set ac_cv_exeext here because the later test for it is not
2933 # safe: cross compilers may not add the suffix if given an `-o'
2934 # argument, so we may need to know it at that point already.
2935 # Even if this section looks crufty: it has the advantage of
2936 # actually working.
2937 break;;
2939 break;;
2940 esac
2941 done
2942 test "$ac_cv_exeext" = no && ac_cv_exeext=
2944 else
2945 ac_file=''
2948 { echo "$as_me:$LINENO: result: $ac_file" >&5
2949 echo "${ECHO_T}$ac_file" >&6; }
2950 if test -z "$ac_file"; then
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2955 See \`config.log' for more details." >&5
2956 echo "$as_me: error: C compiler cannot create executables
2957 See \`config.log' for more details." >&2;}
2958 { (exit 77); exit 77; }; }
2961 ac_exeext=$ac_cv_exeext
2963 # Check that the compiler produces executables we can run. If not, either
2964 # the compiler is broken, or we cross compile.
2965 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2966 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2967 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2968 # If not cross compiling, check that we can run a simple program.
2969 if test "$cross_compiling" != yes; then
2970 if { ac_try='./$ac_file'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 cross_compiling=no
2981 else
2982 if test "$cross_compiling" = maybe; then
2983 cross_compiling=yes
2984 else
2985 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2986 If you meant to cross compile, use \`--host'.
2987 See \`config.log' for more details." >&5
2988 echo "$as_me: error: cannot run C compiled programs.
2989 If you meant to cross compile, use \`--host'.
2990 See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2995 { echo "$as_me:$LINENO: result: yes" >&5
2996 echo "${ECHO_T}yes" >&6; }
2998 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3003 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3004 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3005 echo "${ECHO_T}$cross_compiling" >&6; }
3007 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3008 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3009 if { (ac_try="$ac_link"
3010 case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_link") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; then
3019 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3020 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3021 # work properly (i.e., refer to `conftest.exe'), while it won't with
3022 # `rm'.
3023 for ac_file in conftest.exe conftest conftest.*; do
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3027 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3028 break;;
3029 * ) break;;
3030 esac
3031 done
3032 else
3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3040 rm -f conftest$ac_cv_exeext
3041 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3042 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3044 rm -f conftest.$ac_ext
3045 EXEEXT=$ac_cv_exeext
3046 ac_exeext=$EXEEXT
3047 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3048 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3049 if test "${ac_cv_objext+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h. */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3060 main ()
3064 return 0;
3066 _ACEOF
3067 rm -f conftest.o conftest.obj
3068 if { (ac_try="$ac_compile"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; then
3078 for ac_file in conftest.o conftest.obj conftest.*; do
3079 test -f "$ac_file" || continue;
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3083 break;;
3084 esac
3085 done
3086 else
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3091 See \`config.log' for more details." >&5
3092 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3093 See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }
3097 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3099 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3100 echo "${ECHO_T}$ac_cv_objext" >&6; }
3101 OBJEXT=$ac_cv_objext
3102 ac_objext=$OBJEXT
3103 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3104 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3105 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3116 main ()
3118 #ifndef __GNUC__
3119 choke me
3120 #endif
3123 return 0;
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 ac_compiler_gnu=yes
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 ac_compiler_gnu=no
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3155 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3156 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3157 GCC=`test $ac_compiler_gnu = yes && echo yes`
3158 ac_test_CFLAGS=${CFLAGS+set}
3159 ac_save_CFLAGS=$CFLAGS
3160 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3161 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3162 if test "${ac_cv_prog_cc_g+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165 ac_save_c_werror_flag=$ac_c_werror_flag
3166 ac_c_werror_flag=yes
3167 ac_cv_prog_cc_g=no
3168 CFLAGS="-g"
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3177 main ()
3181 return 0;
3183 _ACEOF
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3201 ac_cv_prog_cc_g=yes
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 CFLAGS=""
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3215 main ()
3219 return 0;
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 ac_c_werror_flag=$ac_save_c_werror_flag
3245 CFLAGS="-g"
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3254 main ()
3258 return 0;
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3278 ac_cv_prog_cc_g=yes
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3295 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3296 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3297 if test "$ac_test_CFLAGS" = set; then
3298 CFLAGS=$ac_save_CFLAGS
3299 elif test $ac_cv_prog_cc_g = yes; then
3300 if test "$GCC" = yes; then
3301 CFLAGS="-g -O2"
3302 else
3303 CFLAGS="-g"
3305 else
3306 if test "$GCC" = yes; then
3307 CFLAGS="-O2"
3308 else
3309 CFLAGS=
3312 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3313 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_cc_c89+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317 ac_cv_prog_cc_c89=no
3318 ac_save_CC=$CC
3319 cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h. */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 #include <stdarg.h>
3326 #include <stdio.h>
3327 #include <sys/types.h>
3328 #include <sys/stat.h>
3329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3330 struct buf { int x; };
3331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3332 static char *e (p, i)
3333 char **p;
3334 int i;
3336 return p[i];
3338 static char *f (char * (*g) (char **, int), char **p, ...)
3340 char *s;
3341 va_list v;
3342 va_start (v,p);
3343 s = g (p, va_arg (v,int));
3344 va_end (v);
3345 return s;
3348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3349 function prototypes and stuff, but not '\xHH' hex character constants.
3350 These don't provoke an error unfortunately, instead are silently treated
3351 as 'x'. The following induces an error, until -std is added to get
3352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3353 array size at least. It's necessary to write '\x00'==0 to get something
3354 that's true only with -std. */
3355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3358 inside strings and character constants. */
3359 #define FOO(x) 'x'
3360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3362 int test (int i, double x);
3363 struct s1 {int (*f) (int a);};
3364 struct s2 {int (*f) (double a);};
3365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3366 int argc;
3367 char **argv;
3369 main ()
3371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3373 return 0;
3375 _ACEOF
3376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3379 CC="$ac_save_CC $ac_arg"
3380 rm -f conftest.$ac_objext
3381 if { (ac_try="$ac_compile"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
3388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } && {
3394 test -z "$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 } && test -s conftest.$ac_objext; then
3397 ac_cv_prog_cc_c89=$ac_arg
3398 else
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3405 rm -f core conftest.err conftest.$ac_objext
3406 test "x$ac_cv_prog_cc_c89" != "xno" && break
3407 done
3408 rm -f conftest.$ac_ext
3409 CC=$ac_save_CC
3412 # AC_CACHE_VAL
3413 case "x$ac_cv_prog_cc_c89" in
3415 { echo "$as_me:$LINENO: result: none needed" >&5
3416 echo "${ECHO_T}none needed" >&6; } ;;
3417 xno)
3418 { echo "$as_me:$LINENO: result: unsupported" >&5
3419 echo "${ECHO_T}unsupported" >&6; } ;;
3421 CC="$CC $ac_cv_prog_cc_c89"
3422 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3423 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3424 esac
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 DEPDIR="${am__leading_dot}deps"
3434 ac_config_commands="$ac_config_commands depfiles"
3437 am_make=${MAKE-make}
3438 cat > confinc << 'END'
3439 am__doit:
3440 @echo done
3441 .PHONY: am__doit
3443 # If we don't find an include directive, just comment out the code.
3444 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3445 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3446 am__include="#"
3447 am__quote=
3448 _am_result=none
3449 # First try GNU make style include.
3450 echo "include confinc" > confmf
3451 # We grep out `Entering directory' and `Leaving directory'
3452 # messages which can occur if `w' ends up in MAKEFLAGS.
3453 # In particular we don't look at `^make:' because GNU make might
3454 # be invoked under some other name (usually "gmake"), in which
3455 # case it prints its new name instead of `make'.
3456 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3457 am__include=include
3458 am__quote=
3459 _am_result=GNU
3461 # Now try BSD make style include.
3462 if test "$am__include" = "#"; then
3463 echo '.include "confinc"' > confmf
3464 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3465 am__include=.include
3466 am__quote="\""
3467 _am_result=BSD
3472 { echo "$as_me:$LINENO: result: $_am_result" >&5
3473 echo "${ECHO_T}$_am_result" >&6; }
3474 rm -f confinc confmf
3476 # Check whether --enable-dependency-tracking was given.
3477 if test "${enable_dependency_tracking+set}" = set; then
3478 enableval=$enable_dependency_tracking;
3481 if test "x$enable_dependency_tracking" != xno; then
3482 am_depcomp="$ac_aux_dir/depcomp"
3483 AMDEPBACKSLASH='\'
3487 if test "x$enable_dependency_tracking" != xno; then
3488 AMDEP_TRUE=
3489 AMDEP_FALSE='#'
3490 else
3491 AMDEP_TRUE='#'
3492 AMDEP_FALSE=
3498 depcc="$CC" am_compiler_list=
3500 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3501 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3502 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3506 # We make a subdir and do the tests there. Otherwise we can end up
3507 # making bogus files that we don't know about and never remove. For
3508 # instance it was reported that on HP-UX the gcc test will end up
3509 # making a dummy file named `D' -- because `-MD' means `put the output
3510 # in D'.
3511 mkdir conftest.dir
3512 # Copy depcomp to subdir because otherwise we won't find it if we're
3513 # using a relative directory.
3514 cp "$am_depcomp" conftest.dir
3515 cd conftest.dir
3516 # We will build objects and dependencies in a subdirectory because
3517 # it helps to detect inapplicable dependency modes. For instance
3518 # both Tru64's cc and ICC support -MD to output dependencies as a
3519 # side effect of compilation, but ICC will put the dependencies in
3520 # the current directory while Tru64 will put them in the object
3521 # directory.
3522 mkdir sub
3524 am_cv_CC_dependencies_compiler_type=none
3525 if test "$am_compiler_list" = ""; then
3526 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3528 for depmode in $am_compiler_list; do
3529 # Setup a source with many dependencies, because some compilers
3530 # like to wrap large dependency lists on column 80 (with \), and
3531 # we should not choose a depcomp mode which is confused by this.
3533 # We need to recreate these files for each test, as the compiler may
3534 # overwrite some of them when testing with obscure command lines.
3535 # This happens at least with the AIX C compiler.
3536 : > sub/conftest.c
3537 for i in 1 2 3 4 5 6; do
3538 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3539 : > sub/conftst$i.h
3540 done
3541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3543 case $depmode in
3544 nosideeffect)
3545 # after this tag, mechanisms are not by side-effect, so they'll
3546 # only be used when explicitly requested
3547 if test "x$enable_dependency_tracking" = xyes; then
3548 continue
3549 else
3550 break
3553 none) break ;;
3554 esac
3555 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3556 # mode. It turns out that the SunPro C++ compiler does not properly
3557 # handle `-M -o', and we need to detect this.
3558 if depmode=$depmode \
3559 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3560 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3561 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3562 >/dev/null 2>conftest.err &&
3563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3564 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3566 # icc doesn't choke on unknown options, it will just issue warnings
3567 # (even with -Werror). So we grep stderr for any message
3568 # that says an option was ignored.
3569 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3570 am_cv_CC_dependencies_compiler_type=$depmode
3571 break
3574 done
3576 cd ..
3577 rm -rf conftest.dir
3578 else
3579 am_cv_CC_dependencies_compiler_type=none
3583 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3584 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3590 test "x$enable_dependency_tracking" != xno \
3591 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3592 am__fastdepCC_TRUE=
3593 am__fastdepCC_FALSE='#'
3594 else
3595 am__fastdepCC_TRUE='#'
3596 am__fastdepCC_FALSE=
3600 ac_ext=c
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3606 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3607 # On Suns, sometimes $CPP names a directory.
3608 if test -n "$CPP" && test -d "$CPP"; then
3609 CPP=
3611 if test -z "$CPP"; then
3612 if test "${ac_cv_prog_CPP+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 # Double quotes because CPP needs to be expanded
3616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3618 ac_preproc_ok=false
3619 for ac_c_preproc_warn_flag in '' yes
3621 # Use a header file that comes with gcc, so configuring glibc
3622 # with a fresh cross-compiler works.
3623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3624 # <limits.h> exists even on freestanding compilers.
3625 # On the NeXT, cc -E runs the code through the compiler's parser,
3626 # not just through cpp. "Syntax error" is here to catch this case.
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h. */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633 #ifdef __STDC__
3634 # include <limits.h>
3635 #else
3636 # include <assert.h>
3637 #endif
3638 Syntax error
3639 _ACEOF
3640 if { (ac_try="$ac_cpp conftest.$ac_ext"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null && {
3653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 }; then
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 # Broken: fails on valid input.
3662 continue
3665 rm -f conftest.err conftest.$ac_ext
3667 # OK, works on sane cases. Now check whether nonexistent headers
3668 # can be detected and how.
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 #include <ac_nonexistent.h>
3676 _ACEOF
3677 if { (ac_try="$ac_cpp conftest.$ac_ext"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } >/dev/null && {
3690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3691 test ! -s conftest.err
3692 }; then
3693 # Broken: success on invalid input.
3694 continue
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 # Passes both tests.
3700 ac_preproc_ok=:
3701 break
3704 rm -f conftest.err conftest.$ac_ext
3706 done
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then
3710 break
3713 done
3714 ac_cv_prog_CPP=$CPP
3717 CPP=$ac_cv_prog_CPP
3718 else
3719 ac_cv_prog_CPP=$CPP
3721 { echo "$as_me:$LINENO: result: $CPP" >&5
3722 echo "${ECHO_T}$CPP" >&6; }
3723 ac_preproc_ok=false
3724 for ac_c_preproc_warn_flag in '' yes
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error" is here to catch this case.
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738 #ifdef __STDC__
3739 # include <limits.h>
3740 #else
3741 # include <assert.h>
3742 #endif
3743 Syntax error
3744 _ACEOF
3745 if { (ac_try="$ac_cpp conftest.$ac_ext"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } >/dev/null && {
3758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3759 test ! -s conftest.err
3760 }; then
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3766 # Broken: fails on valid input.
3767 continue
3770 rm -f conftest.err conftest.$ac_ext
3772 # OK, works on sane cases. Now check whether nonexistent headers
3773 # can be detected and how.
3774 cat >conftest.$ac_ext <<_ACEOF
3775 /* confdefs.h. */
3776 _ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3780 #include <ac_nonexistent.h>
3781 _ACEOF
3782 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null && {
3795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 }; then
3798 # Broken: success on invalid input.
3799 continue
3800 else
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 # Passes both tests.
3805 ac_preproc_ok=:
3806 break
3809 rm -f conftest.err conftest.$ac_ext
3811 done
3812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3813 rm -f conftest.err conftest.$ac_ext
3814 if $ac_preproc_ok; then
3816 else
3817 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3818 See \`config.log' for more details." >&5
3819 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3820 See \`config.log' for more details." >&2;}
3821 { (exit 1); exit 1; }; }
3824 ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 # Find a good install program. We prefer a C program (faster),
3831 # so one script is as good as another. But avoid the broken or
3832 # incompatible versions:
3833 # SysV /etc/install, /usr/sbin/install
3834 # SunOS /usr/etc/install
3835 # IRIX /sbin/install
3836 # AIX /bin/install
3837 # AmigaOS /C/install, which installs bootblocks on floppy discs
3838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3841 # OS/2's system install, which has a completely different semantic
3842 # ./install, which can be erroneously created by make from ./install.sh.
3843 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3844 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3845 if test -z "$INSTALL"; then
3846 if test "${ac_cv_path_install+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 # Account for people who put trailing slashes in PATH elements.
3855 case $as_dir/ in
3856 ./ | .// | /cC/* | \
3857 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3858 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3859 /usr/ucb/* ) ;;
3861 # OSF1 and SCO ODT 3.0 have their own names for install.
3862 # Don't use installbsd from OSF since it installs stuff as root
3863 # by default.
3864 for ac_prog in ginstall scoinst install; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3867 if test $ac_prog = install &&
3868 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3869 # AIX install. It has an incompatible calling convention.
3871 elif test $ac_prog = install &&
3872 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3873 # program-specific install script used by HP pwplus--don't use.
3875 else
3876 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3877 break 3
3880 done
3881 done
3883 esac
3884 done
3885 IFS=$as_save_IFS
3889 if test "${ac_cv_path_install+set}" = set; then
3890 INSTALL=$ac_cv_path_install
3891 else
3892 # As a last resort, use the slow shell script. Don't cache a
3893 # value for INSTALL within a source directory, because that will
3894 # break other packages using the cache if that directory is
3895 # removed, or if the value is a relative name.
3896 INSTALL=$ac_install_sh
3899 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3900 echo "${ECHO_T}$INSTALL" >&6; }
3902 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3903 # It thinks the first close brace ends the variable substitution.
3904 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3906 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3908 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3915 if test "${ac_cv_prog_RANLIB+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 if test -n "$RANLIB"; then
3919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3932 done
3933 done
3934 IFS=$as_save_IFS
3938 RANLIB=$ac_cv_prog_RANLIB
3939 if test -n "$RANLIB"; then
3940 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3941 echo "${ECHO_T}$RANLIB" >&6; }
3942 else
3943 { echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6; }
3949 if test -z "$ac_cv_prog_RANLIB"; then
3950 ac_ct_RANLIB=$RANLIB
3951 # Extract the first word of "ranlib", so it can be a program name with args.
3952 set dummy ranlib; ac_word=$2
3953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3955 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 if test -n "$ac_ct_RANLIB"; then
3959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_ac_ct_RANLIB="ranlib"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3972 done
3973 done
3974 IFS=$as_save_IFS
3978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3979 if test -n "$ac_ct_RANLIB"; then
3980 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3981 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3982 else
3983 { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3987 if test "x$ac_ct_RANLIB" = x; then
3988 RANLIB=":"
3989 else
3990 case $cross_compiling:$ac_tool_warned in
3991 yes:)
3992 { echo "$as_me:$LINENO: 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." >&5
3995 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3996 whose name does not start with the host triplet. If you think this
3997 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3998 ac_tool_warned=yes ;;
3999 esac
4000 RANLIB=$ac_ct_RANLIB
4002 else
4003 RANLIB="$ac_cv_prog_RANLIB"
4006 # Check whether --enable-shared was given.
4007 if test "${enable_shared+set}" = set; then
4008 enableval=$enable_shared; p=${PACKAGE-default}
4009 case $enableval in
4010 yes) enable_shared=yes ;;
4011 no) enable_shared=no ;;
4013 enable_shared=no
4014 # Look at the argument we got. We use all the common list separators.
4015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4016 for pkg in $enableval; do
4017 IFS="$lt_save_ifs"
4018 if test "X$pkg" = "X$p"; then
4019 enable_shared=yes
4021 done
4022 IFS="$lt_save_ifs"
4024 esac
4025 else
4026 enable_shared=yes
4030 # Check whether --enable-static was given.
4031 if test "${enable_static+set}" = set; then
4032 enableval=$enable_static; p=${PACKAGE-default}
4033 case $enableval in
4034 yes) enable_static=yes ;;
4035 no) enable_static=no ;;
4037 enable_static=no
4038 # Look at the argument we got. We use all the common list separators.
4039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4040 for pkg in $enableval; do
4041 IFS="$lt_save_ifs"
4042 if test "X$pkg" = "X$p"; then
4043 enable_static=yes
4045 done
4046 IFS="$lt_save_ifs"
4048 esac
4049 else
4050 enable_static=yes
4054 # Check whether --enable-fast-install was given.
4055 if test "${enable_fast_install+set}" = set; then
4056 enableval=$enable_fast_install; p=${PACKAGE-default}
4057 case $enableval in
4058 yes) enable_fast_install=yes ;;
4059 no) enable_fast_install=no ;;
4061 enable_fast_install=no
4062 # Look at the argument we got. We use all the common list separators.
4063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4064 for pkg in $enableval; do
4065 IFS="$lt_save_ifs"
4066 if test "X$pkg" = "X$p"; then
4067 enable_fast_install=yes
4069 done
4070 IFS="$lt_save_ifs"
4072 esac
4073 else
4074 enable_fast_install=yes
4078 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4079 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4080 if test "${lt_cv_path_SED+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 # Loop through the user's path and test for sed and gsed.
4084 # Then use that list of sed's as ones to test for truncation.
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for lt_ac_prog in sed gsed; do
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4093 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4095 done
4096 done
4097 done
4098 IFS=$as_save_IFS
4099 lt_ac_max=0
4100 lt_ac_count=0
4101 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4102 # along with /bin/sed that truncates output.
4103 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4104 test ! -f $lt_ac_sed && continue
4105 cat /dev/null > conftest.in
4106 lt_ac_count=0
4107 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4108 # Check for GNU sed and select it if it is found.
4109 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4110 lt_cv_path_SED=$lt_ac_sed
4111 break
4113 while true; do
4114 cat conftest.in conftest.in >conftest.tmp
4115 mv conftest.tmp conftest.in
4116 cp conftest.in conftest.nl
4117 echo >>conftest.nl
4118 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4119 cmp -s conftest.out conftest.nl || break
4120 # 10000 chars as input seems more than enough
4121 test $lt_ac_count -gt 10 && break
4122 lt_ac_count=`expr $lt_ac_count + 1`
4123 if test $lt_ac_count -gt $lt_ac_max; then
4124 lt_ac_max=$lt_ac_count
4125 lt_cv_path_SED=$lt_ac_sed
4127 done
4128 done
4132 SED=$lt_cv_path_SED
4134 { echo "$as_me:$LINENO: result: $SED" >&5
4135 echo "${ECHO_T}$SED" >&6; }
4137 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4138 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4139 if test "${ac_cv_path_GREP+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142 # Extract the first word of "grep ggrep" to use in msg output
4143 if test -z "$GREP"; then
4144 set dummy grep ggrep; ac_prog_name=$2
4145 if test "${ac_cv_path_GREP+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148 ac_path_GREP_found=false
4149 # Loop through the user's path and test for each of PROGNAME-LIST
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_prog in grep ggrep; do
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4158 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4159 # Check for GNU ac_path_GREP and select it if it is found.
4160 # Check for GNU $ac_path_GREP
4161 case `"$ac_path_GREP" --version 2>&1` in
4162 *GNU*)
4163 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4165 ac_count=0
4166 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4167 while :
4169 cat "conftest.in" "conftest.in" >"conftest.tmp"
4170 mv "conftest.tmp" "conftest.in"
4171 cp "conftest.in" "conftest.nl"
4172 echo 'GREP' >> "conftest.nl"
4173 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175 ac_count=`expr $ac_count + 1`
4176 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4177 # Best one so far, save it but keep looking for a better one
4178 ac_cv_path_GREP="$ac_path_GREP"
4179 ac_path_GREP_max=$ac_count
4181 # 10*(2^10) chars as input seems more than enough
4182 test $ac_count -gt 10 && break
4183 done
4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185 esac
4188 $ac_path_GREP_found && break 3
4189 done
4190 done
4192 done
4193 IFS=$as_save_IFS
4198 GREP="$ac_cv_path_GREP"
4199 if test -z "$GREP"; then
4200 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4201 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4202 { (exit 1); exit 1; }; }
4205 else
4206 ac_cv_path_GREP=$GREP
4211 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4212 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4213 GREP="$ac_cv_path_GREP"
4216 { echo "$as_me:$LINENO: checking for egrep" >&5
4217 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4218 if test "${ac_cv_path_EGREP+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4222 then ac_cv_path_EGREP="$GREP -E"
4223 else
4224 # Extract the first word of "egrep" to use in msg output
4225 if test -z "$EGREP"; then
4226 set dummy egrep; ac_prog_name=$2
4227 if test "${ac_cv_path_EGREP+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 ac_path_EGREP_found=false
4231 # Loop through the user's path and test for each of PROGNAME-LIST
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in egrep; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4240 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4241 # Check for GNU ac_path_EGREP and select it if it is found.
4242 # Check for GNU $ac_path_EGREP
4243 case `"$ac_path_EGREP" --version 2>&1` in
4244 *GNU*)
4245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4247 ac_count=0
4248 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4249 while :
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
4254 echo 'EGREP' >> "conftest.nl"
4255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4257 ac_count=`expr $ac_count + 1`
4258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_EGREP="$ac_path_EGREP"
4261 ac_path_EGREP_max=$ac_count
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4265 done
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267 esac
4270 $ac_path_EGREP_found && break 3
4271 done
4272 done
4274 done
4275 IFS=$as_save_IFS
4280 EGREP="$ac_cv_path_EGREP"
4281 if test -z "$EGREP"; then
4282 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4283 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4284 { (exit 1); exit 1; }; }
4287 else
4288 ac_cv_path_EGREP=$EGREP
4294 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4295 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4296 EGREP="$ac_cv_path_EGREP"
4300 # Check whether --with-gnu-ld was given.
4301 if test "${with_gnu_ld+set}" = set; then
4302 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4303 else
4304 with_gnu_ld=no
4307 ac_prog=ld
4308 if test "$GCC" = yes; then
4309 # Check if gcc -print-prog-name=ld gives a path.
4310 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4311 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4312 case $host in
4313 *-*-mingw*)
4314 # gcc leaves a trailing carriage return which upsets mingw
4315 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4317 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4318 esac
4319 case $ac_prog in
4320 # Accept absolute paths.
4321 [\\/]* | ?:[\\/]*)
4322 re_direlt='/[^/][^/]*/\.\./'
4323 # Canonicalize the pathname of ld
4324 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4325 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4326 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4327 done
4328 test -z "$LD" && LD="$ac_prog"
4331 # If it fails, then pretend we aren't using GCC.
4332 ac_prog=ld
4335 # If it is relative, then search for the first ld in PATH.
4336 with_gnu_ld=unknown
4338 esac
4339 elif test "$with_gnu_ld" = yes; then
4340 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4341 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4342 else
4343 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4344 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4346 if test "${lt_cv_path_LD+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 if test -z "$LD"; then
4350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4351 for ac_dir in $PATH; do
4352 IFS="$lt_save_ifs"
4353 test -z "$ac_dir" && ac_dir=.
4354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4355 lt_cv_path_LD="$ac_dir/$ac_prog"
4356 # Check to see if the program is GNU ld. I'd rather use --version,
4357 # but apparently some variants of GNU ld only accept -v.
4358 # Break only if it was the GNU/non-GNU ld that we prefer.
4359 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4360 *GNU* | *'with BFD'*)
4361 test "$with_gnu_ld" != no && break
4364 test "$with_gnu_ld" != yes && break
4366 esac
4368 done
4369 IFS="$lt_save_ifs"
4370 else
4371 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4375 LD="$lt_cv_path_LD"
4376 if test -n "$LD"; then
4377 { echo "$as_me:$LINENO: result: $LD" >&5
4378 echo "${ECHO_T}$LD" >&6; }
4379 else
4380 { echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6; }
4383 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4384 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4385 { (exit 1); exit 1; }; }
4386 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4387 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4388 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4392 case `$LD -v 2>&1 </dev/null` in
4393 *GNU* | *'with BFD'*)
4394 lt_cv_prog_gnu_ld=yes
4397 lt_cv_prog_gnu_ld=no
4399 esac
4401 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4403 with_gnu_ld=$lt_cv_prog_gnu_ld
4406 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4408 if test "${lt_cv_ld_reload_flag+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411 lt_cv_ld_reload_flag='-r'
4413 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4415 reload_flag=$lt_cv_ld_reload_flag
4416 case $reload_flag in
4417 "" | " "*) ;;
4418 *) reload_flag=" $reload_flag" ;;
4419 esac
4420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4421 case $host_os in
4422 darwin*)
4423 if test "$GCC" = yes; then
4424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4425 else
4426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4429 esac
4431 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4432 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4433 if test "${lt_cv_path_NM+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 if test -n "$NM"; then
4437 # Let the user override the test.
4438 lt_cv_path_NM="$NM"
4439 else
4440 lt_nm_to_check="${ac_tool_prefix}nm"
4441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4442 lt_nm_to_check="$lt_nm_to_check nm"
4444 for lt_tmp_nm in $lt_nm_to_check; do
4445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4447 IFS="$lt_save_ifs"
4448 test -z "$ac_dir" && ac_dir=.
4449 tmp_nm="$ac_dir/$lt_tmp_nm"
4450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4451 # Check to see if the nm accepts a BSD-compat flag.
4452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4453 # nm: unknown option "B" ignored
4454 # Tru64's nm complains that /dev/null is an invalid object file
4455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4456 */dev/null* | *'Invalid file or object type'*)
4457 lt_cv_path_NM="$tmp_nm -B"
4458 break
4461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4462 */dev/null*)
4463 lt_cv_path_NM="$tmp_nm -p"
4464 break
4467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4468 continue # so that we can try to find one that supports BSD flags
4470 esac
4472 esac
4474 done
4475 IFS="$lt_save_ifs"
4476 done
4477 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4480 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4481 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4482 NM="$lt_cv_path_NM"
4484 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4485 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4486 LN_S=$as_ln_s
4487 if test "$LN_S" = "ln -s"; then
4488 { echo "$as_me:$LINENO: result: yes" >&5
4489 echo "${ECHO_T}yes" >&6; }
4490 else
4491 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4492 echo "${ECHO_T}no, using $LN_S" >&6; }
4495 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4496 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4497 if test "${lt_cv_deplibs_check_method+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 lt_cv_file_magic_cmd='$MAGIC_CMD'
4501 lt_cv_file_magic_test_file=
4502 lt_cv_deplibs_check_method='unknown'
4503 # Need to set the preceding variable on all platforms that support
4504 # interlibrary dependencies.
4505 # 'none' -- dependencies not supported.
4506 # `unknown' -- same as none, but documents that we really don't know.
4507 # 'pass_all' -- all dependencies passed with no checks.
4508 # 'test_compile' -- check by making test program.
4509 # 'file_magic [[regex]]' -- check by looking for files in library path
4510 # which responds to the $file_magic_cmd with a given extended regex.
4511 # If you have `file' or equivalent on your system and you're not sure
4512 # whether `pass_all' will *always* work, you probably want this one.
4514 case $host_os in
4515 aix[4-9]*)
4516 lt_cv_deplibs_check_method=pass_all
4519 beos*)
4520 lt_cv_deplibs_check_method=pass_all
4523 bsdi[45]*)
4524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4525 lt_cv_file_magic_cmd='/usr/bin/file -L'
4526 lt_cv_file_magic_test_file=/shlib/libc.so
4529 cygwin*)
4530 # func_win32_libid is a shell function defined in ltmain.sh
4531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4532 lt_cv_file_magic_cmd='func_win32_libid'
4535 mingw* | pw32*)
4536 # Base MSYS/MinGW do not provide the 'file' command needed by
4537 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4538 # unless we find 'file', for example because we are cross-compiling.
4539 if ( file / ) >/dev/null 2>&1; then
4540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4541 lt_cv_file_magic_cmd='func_win32_libid'
4542 else
4543 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4544 lt_cv_file_magic_cmd='$OBJDUMP -f'
4548 darwin* | rhapsody*)
4549 lt_cv_deplibs_check_method=pass_all
4552 freebsd* | dragonfly*)
4553 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4554 case $host_cpu in
4555 i*86 )
4556 # Not sure whether the presence of OpenBSD here was a mistake.
4557 # Let's accept both of them until this is cleared up.
4558 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4559 lt_cv_file_magic_cmd=/usr/bin/file
4560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4562 esac
4563 else
4564 lt_cv_deplibs_check_method=pass_all
4568 gnu*)
4569 lt_cv_deplibs_check_method=pass_all
4572 hpux10.20* | hpux11*)
4573 lt_cv_file_magic_cmd=/usr/bin/file
4574 case $host_cpu in
4575 ia64*)
4576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4577 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4579 hppa*64*)
4580 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]'
4581 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4584 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4585 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4587 esac
4590 interix[3-9]*)
4591 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4595 irix5* | irix6* | nonstopux*)
4596 case $LD in
4597 *-32|*"-32 ") libmagic=32-bit;;
4598 *-n32|*"-n32 ") libmagic=N32;;
4599 *-64|*"-64 ") libmagic=64-bit;;
4600 *) libmagic=never-match;;
4601 esac
4602 lt_cv_deplibs_check_method=pass_all
4605 # This must be Linux ELF.
4606 linux* | k*bsd*-gnu)
4607 lt_cv_deplibs_check_method=pass_all
4610 netbsd*)
4611 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4613 else
4614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4618 newos6*)
4619 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4620 lt_cv_file_magic_cmd=/usr/bin/file
4621 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4624 nto-qnx*)
4625 lt_cv_deplibs_check_method=unknown
4628 openbsd*)
4629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4631 else
4632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4636 osf3* | osf4* | osf5*)
4637 lt_cv_deplibs_check_method=pass_all
4640 rdos*)
4641 lt_cv_deplibs_check_method=pass_all
4644 solaris*)
4645 lt_cv_deplibs_check_method=pass_all
4648 sysv4 | sysv4.3*)
4649 case $host_vendor in
4650 motorola)
4651 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]'
4652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4654 ncr)
4655 lt_cv_deplibs_check_method=pass_all
4657 sequent)
4658 lt_cv_file_magic_cmd='/bin/file'
4659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4661 sni)
4662 lt_cv_file_magic_cmd='/bin/file'
4663 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4664 lt_cv_file_magic_test_file=/lib/libc.so
4666 siemens)
4667 lt_cv_deplibs_check_method=pass_all
4670 lt_cv_deplibs_check_method=pass_all
4672 esac
4675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4676 lt_cv_deplibs_check_method=pass_all
4678 esac
4681 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4682 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4683 file_magic_cmd=$lt_cv_file_magic_cmd
4684 deplibs_check_method=$lt_cv_deplibs_check_method
4685 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4690 # If no C compiler was specified, use CC.
4691 LTCC=${LTCC-"$CC"}
4693 # If no C compiler flags were specified, use CFLAGS.
4694 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4696 # Allow CC to be a program name with arguments.
4697 compiler=$CC
4700 # Check whether --enable-libtool-lock was given.
4701 if test "${enable_libtool_lock+set}" = set; then
4702 enableval=$enable_libtool_lock;
4705 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4707 # Some flags need to be propagated to the compiler or linker for good
4708 # libtool support.
4709 case $host in
4710 ia64-*-hpux*)
4711 # Find out which ABI we are using.
4712 echo 'int i;' > conftest.$ac_ext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; then
4718 case `/usr/bin/file conftest.$ac_objext` in
4719 *ELF-32*)
4720 HPUX_IA64_MODE="32"
4722 *ELF-64*)
4723 HPUX_IA64_MODE="64"
4725 esac
4727 rm -rf conftest*
4729 *-*-irix6*)
4730 # Find out which ABI we are using.
4731 echo '#line 4731 "configure"' > conftest.$ac_ext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; then
4737 if test "$lt_cv_prog_gnu_ld" = yes; then
4738 case `/usr/bin/file conftest.$ac_objext` in
4739 *32-bit*)
4740 LD="${LD-ld} -melf32bsmip"
4742 *N32*)
4743 LD="${LD-ld} -melf32bmipn32"
4745 *64-bit*)
4746 LD="${LD-ld} -melf64bmip"
4748 esac
4749 else
4750 case `/usr/bin/file conftest.$ac_objext` in
4751 *32-bit*)
4752 LD="${LD-ld} -32"
4754 *N32*)
4755 LD="${LD-ld} -n32"
4757 *64-bit*)
4758 LD="${LD-ld} -64"
4760 esac
4763 rm -rf conftest*
4766 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4767 s390*-*linux*|sparc*-*linux*)
4768 # Find out which ABI we are using.
4769 echo 'int i;' > conftest.$ac_ext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; then
4775 case `/usr/bin/file conftest.o` in
4776 *32-bit*)
4777 case $host in
4778 x86_64-*kfreebsd*-gnu)
4779 LD="${LD-ld} -m elf_i386_fbsd"
4781 x86_64-*linux*)
4782 LD="${LD-ld} -m elf_i386"
4784 ppc64-*linux*|powerpc64-*linux*)
4785 LD="${LD-ld} -m elf32ppclinux"
4787 s390x-*linux*)
4788 LD="${LD-ld} -m elf_s390"
4790 sparc64-*linux*)
4791 LD="${LD-ld} -m elf32_sparc"
4793 esac
4795 *64-bit*)
4796 case $host in
4797 x86_64-*kfreebsd*-gnu)
4798 LD="${LD-ld} -m elf_x86_64_fbsd"
4800 x86_64-*linux*)
4801 LD="${LD-ld} -m elf_x86_64"
4803 ppc*-*linux*|powerpc*-*linux*)
4804 LD="${LD-ld} -m elf64ppc"
4806 s390*-*linux*)
4807 LD="${LD-ld} -m elf64_s390"
4809 sparc*-*linux*)
4810 LD="${LD-ld} -m elf64_sparc"
4812 esac
4814 esac
4816 rm -rf conftest*
4819 *-*-sco3.2v5*)
4820 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4821 SAVE_CFLAGS="$CFLAGS"
4822 CFLAGS="$CFLAGS -belf"
4823 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4824 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4825 if test "${lt_cv_cc_needs_belf+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828 ac_ext=c
4829 ac_cpp='$CPP $CPPFLAGS'
4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4842 main ()
4846 return 0;
4848 _ACEOF
4849 rm -f conftest.$ac_objext conftest$ac_exeext
4850 if { (ac_try="$ac_link"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_link") 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && {
4863 test -z "$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 } && test -s conftest$ac_exeext &&
4866 $as_test_x conftest$ac_exeext; then
4867 lt_cv_cc_needs_belf=yes
4868 else
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 lt_cv_cc_needs_belf=no
4875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4876 conftest$ac_exeext conftest.$ac_ext
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4885 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4886 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4887 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4888 CFLAGS="$SAVE_CFLAGS"
4891 sparc*-*solaris*)
4892 # Find out which ABI we are using.
4893 echo 'int i;' > conftest.$ac_ext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 case `/usr/bin/file conftest.o` in
4900 *64-bit*)
4901 case $lt_cv_prog_gnu_ld in
4902 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4904 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4905 LD="${LD-ld} -64"
4908 esac
4910 esac
4912 rm -rf conftest*
4916 esac
4918 need_locks="$enable_libtool_lock"
4922 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4924 if test "${ac_cv_header_stdc+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h. */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4933 #include <stdlib.h>
4934 #include <stdarg.h>
4935 #include <string.h>
4936 #include <float.h>
4939 main ()
4943 return 0;
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (ac_try="$ac_compile"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compile") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && {
4960 test -z "$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 } && test -s conftest.$ac_objext; then
4963 ac_cv_header_stdc=yes
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 ac_cv_header_stdc=no
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 if test $ac_cv_header_stdc = yes; then
4974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 #include <string.h>
4983 _ACEOF
4984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985 $EGREP "memchr" >/dev/null 2>&1; then
4987 else
4988 ac_cv_header_stdc=no
4990 rm -f conftest*
4994 if test $ac_cv_header_stdc = yes; then
4995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 #include <stdlib.h>
5004 _ACEOF
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006 $EGREP "free" >/dev/null 2>&1; then
5008 else
5009 ac_cv_header_stdc=no
5011 rm -f conftest*
5015 if test $ac_cv_header_stdc = yes; then
5016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5017 if test "$cross_compiling" = yes; then
5019 else
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <ctype.h>
5027 #include <stdlib.h>
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5031 #else
5032 # define ISLOWER(c) \
5033 (('a' <= (c) && (c) <= 'i') \
5034 || ('j' <= (c) && (c) <= 'r') \
5035 || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5037 #endif
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5041 main ()
5043 int i;
5044 for (i = 0; i < 256; i++)
5045 if (XOR (islower (i), ISLOWER (i))
5046 || toupper (i) != TOUPPER (i))
5047 return 2;
5048 return 0;
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062 { (case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065 esac
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_try") 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5072 else
5073 echo "$as_me: program exited with status $ac_status" >&5
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ( exit $ac_status )
5078 ac_cv_header_stdc=no
5080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5086 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5087 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5088 if test $ac_cv_header_stdc = yes; then
5090 cat >>confdefs.h <<\_ACEOF
5091 #define STDC_HEADERS 1
5092 _ACEOF
5096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5107 inttypes.h stdint.h unistd.h
5109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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
5114 else
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 $ac_includes_default
5123 #include <$ac_header>
5124 _ACEOF
5125 rm -f conftest.$ac_objext
5126 if { (ac_try="$ac_compile"
5127 case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_compile") 2>conftest.er1
5133 ac_status=$?
5134 grep -v '^ *+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } && {
5139 test -z "$ac_c_werror_flag" ||
5140 test ! -s conftest.err
5141 } && test -s conftest.$ac_objext; then
5142 eval "$as_ac_Header=yes"
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5147 eval "$as_ac_Header=no"
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 ac_res=`eval echo '${'$as_ac_Header'}'`
5153 { echo "$as_me:$LINENO: result: $ac_res" >&5
5154 echo "${ECHO_T}$ac_res" >&6; }
5155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5156 cat >>confdefs.h <<_ACEOF
5157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5158 _ACEOF
5162 done
5166 for ac_header in dlfcn.h
5168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 ac_res=`eval echo '${'$as_ac_Header'}'`
5176 { echo "$as_me:$LINENO: result: $ac_res" >&5
5177 echo "${ECHO_T}$ac_res" >&6; }
5178 else
5179 # Is the header compilable?
5180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 $ac_includes_default
5189 #include <$ac_header>
5190 _ACEOF
5191 rm -f conftest.$ac_objext
5192 if { (ac_try="$ac_compile"
5193 case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196 esac
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198 (eval "$ac_compile") 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } && {
5205 test -z "$ac_c_werror_flag" ||
5206 test ! -s conftest.err
5207 } && test -s conftest.$ac_objext; then
5208 ac_header_compiler=yes
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_header_compiler=no
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5218 echo "${ECHO_T}$ac_header_compiler" >&6; }
5220 # Is the header present?
5221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5223 cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h. */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 #include <$ac_header>
5230 _ACEOF
5231 if { (ac_try="$ac_cpp conftest.$ac_ext"
5232 case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235 esac
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } >/dev/null && {
5244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 }; then
5247 ac_header_preproc=yes
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_header_preproc=no
5255 rm -f conftest.err conftest.$ac_ext
5256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5257 echo "${ECHO_T}$ac_header_preproc" >&6; }
5259 # So? What about this header?
5260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5261 yes:no: )
5262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5266 ac_header_preproc=yes
5268 no:yes:* )
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5276 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5283 esac
5284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 eval "$as_ac_Header=\$ac_header_preproc"
5291 ac_res=`eval echo '${'$as_ac_Header'}'`
5292 { echo "$as_me:$LINENO: result: $ac_res" >&5
5293 echo "${ECHO_T}$ac_res" >&6; }
5296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5297 cat >>confdefs.h <<_ACEOF
5298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5299 _ACEOF
5303 done
5305 ac_ext=cpp
5306 ac_cpp='$CXXCPP $CPPFLAGS'
5307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5310 if test -z "$CXX"; then
5311 if test -n "$CCC"; then
5312 CXX=$CCC
5313 else
5314 if test -n "$ac_tool_prefix"; then
5315 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5321 if test "${ac_cv_prog_CXX+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -n "$CXX"; then
5325 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5340 IFS=$as_save_IFS
5344 CXX=$ac_cv_prog_CXX
5345 if test -n "$CXX"; then
5346 { echo "$as_me:$LINENO: result: $CXX" >&5
5347 echo "${ECHO_T}$CXX" >&6; }
5348 else
5349 { echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6; }
5354 test -n "$CXX" && break
5355 done
5357 if test -z "$CXX"; then
5358 ac_ct_CXX=$CXX
5359 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5361 # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5365 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 if test -n "$ac_ct_CXX"; then
5369 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_ac_ct_CXX="$ac_prog"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5382 done
5383 done
5384 IFS=$as_save_IFS
5388 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5389 if test -n "$ac_ct_CXX"; then
5390 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5391 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5392 else
5393 { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5398 test -n "$ac_ct_CXX" && break
5399 done
5401 if test "x$ac_ct_CXX" = x; then
5402 CXX="g++"
5403 else
5404 case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5407 whose name does not start with the host triplet. If you think this
5408 configuration is useful to you, please write to autoconf@gnu.org." >&5
5409 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5410 whose name does not start with the host triplet. If you think this
5411 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5412 ac_tool_warned=yes ;;
5413 esac
5414 CXX=$ac_ct_CXX
5420 # Provide some information about the compiler.
5421 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5422 ac_compiler=`set X $ac_compile; echo $2`
5423 { (ac_try="$ac_compiler --version >&5"
5424 case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_compiler --version >&5") 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }
5433 { (ac_try="$ac_compiler -v >&5"
5434 case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compiler -v >&5") 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }
5443 { (ac_try="$ac_compiler -V >&5"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compiler -V >&5") 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }
5454 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5455 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5456 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5467 main ()
5469 #ifndef __GNUC__
5470 choke me
5471 #endif
5474 return 0;
5476 _ACEOF
5477 rm -f conftest.$ac_objext
5478 if { (ac_try="$ac_compile"
5479 case "(($ac_try" in
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5482 esac
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_compile") 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && {
5491 test -z "$ac_cxx_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest.$ac_objext; then
5494 ac_compiler_gnu=yes
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 ac_compiler_gnu=no
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5506 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5507 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5508 GXX=`test $ac_compiler_gnu = yes && echo yes`
5509 ac_test_CXXFLAGS=${CXXFLAGS+set}
5510 ac_save_CXXFLAGS=$CXXFLAGS
5511 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5512 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5513 if test "${ac_cv_prog_cxx_g+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5517 ac_cxx_werror_flag=yes
5518 ac_cv_prog_cxx_g=no
5519 CXXFLAGS="-g"
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5528 main ()
5532 return 0;
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_cxx_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.$ac_objext; then
5552 ac_cv_prog_cxx_g=yes
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 CXXFLAGS=""
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h. */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5566 main ()
5570 return 0;
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5575 case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_cxx_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.$ac_objext; then
5591 else
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5595 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5596 CXXFLAGS="-g"
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5605 main ()
5609 return 0;
5611 _ACEOF
5612 rm -f conftest.$ac_objext
5613 if { (ac_try="$ac_compile"
5614 case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617 esac
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_compile") 2>conftest.er1
5620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && {
5626 test -z "$ac_cxx_werror_flag" ||
5627 test ! -s conftest.err
5628 } && test -s conftest.$ac_objext; then
5629 ac_cv_prog_cxx_g=yes
5630 else
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5647 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5648 if test "$ac_test_CXXFLAGS" = set; then
5649 CXXFLAGS=$ac_save_CXXFLAGS
5650 elif test $ac_cv_prog_cxx_g = yes; then
5651 if test "$GXX" = yes; then
5652 CXXFLAGS="-g -O2"
5653 else
5654 CXXFLAGS="-g"
5656 else
5657 if test "$GXX" = yes; then
5658 CXXFLAGS="-O2"
5659 else
5660 CXXFLAGS=
5663 ac_ext=cpp
5664 ac_cpp='$CXXCPP $CPPFLAGS'
5665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5669 depcc="$CXX" am_compiler_list=
5671 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5672 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5673 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5677 # We make a subdir and do the tests there. Otherwise we can end up
5678 # making bogus files that we don't know about and never remove. For
5679 # instance it was reported that on HP-UX the gcc test will end up
5680 # making a dummy file named `D' -- because `-MD' means `put the output
5681 # in D'.
5682 mkdir conftest.dir
5683 # Copy depcomp to subdir because otherwise we won't find it if we're
5684 # using a relative directory.
5685 cp "$am_depcomp" conftest.dir
5686 cd conftest.dir
5687 # We will build objects and dependencies in a subdirectory because
5688 # it helps to detect inapplicable dependency modes. For instance
5689 # both Tru64's cc and ICC support -MD to output dependencies as a
5690 # side effect of compilation, but ICC will put the dependencies in
5691 # the current directory while Tru64 will put them in the object
5692 # directory.
5693 mkdir sub
5695 am_cv_CXX_dependencies_compiler_type=none
5696 if test "$am_compiler_list" = ""; then
5697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5699 for depmode in $am_compiler_list; do
5700 # Setup a source with many dependencies, because some compilers
5701 # like to wrap large dependency lists on column 80 (with \), and
5702 # we should not choose a depcomp mode which is confused by this.
5704 # We need to recreate these files for each test, as the compiler may
5705 # overwrite some of them when testing with obscure command lines.
5706 # This happens at least with the AIX C compiler.
5707 : > sub/conftest.c
5708 for i in 1 2 3 4 5 6; do
5709 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5710 : > sub/conftst$i.h
5711 done
5712 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5714 case $depmode in
5715 nosideeffect)
5716 # after this tag, mechanisms are not by side-effect, so they'll
5717 # only be used when explicitly requested
5718 if test "x$enable_dependency_tracking" = xyes; then
5719 continue
5720 else
5721 break
5724 none) break ;;
5725 esac
5726 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5727 # mode. It turns out that the SunPro C++ compiler does not properly
5728 # handle `-M -o', and we need to detect this.
5729 if depmode=$depmode \
5730 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5732 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5733 >/dev/null 2>conftest.err &&
5734 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5735 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5736 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5737 # icc doesn't choke on unknown options, it will just issue warnings
5738 # (even with -Werror). So we grep stderr for any message
5739 # that says an option was ignored.
5740 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5741 am_cv_CXX_dependencies_compiler_type=$depmode
5742 break
5745 done
5747 cd ..
5748 rm -rf conftest.dir
5749 else
5750 am_cv_CXX_dependencies_compiler_type=none
5754 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5755 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5756 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5761 test "x$enable_dependency_tracking" != xno \
5762 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5763 am__fastdepCXX_TRUE=
5764 am__fastdepCXX_FALSE='#'
5765 else
5766 am__fastdepCXX_TRUE='#'
5767 am__fastdepCXX_FALSE=
5773 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5774 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5775 (test "X$CXX" != "Xg++"))) ; then
5776 ac_ext=cpp
5777 ac_cpp='$CXXCPP $CPPFLAGS'
5778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5781 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5782 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5783 if test -z "$CXXCPP"; then
5784 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 # Double quotes because CXXCPP needs to be expanded
5788 for CXXCPP in "$CXX -E" "/lib/cpp"
5790 ac_preproc_ok=false
5791 for ac_cxx_preproc_warn_flag in '' yes
5793 # Use a header file that comes with gcc, so configuring glibc
5794 # with a fresh cross-compiler works.
5795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796 # <limits.h> exists even on freestanding compilers.
5797 # On the NeXT, cc -E runs the code through the compiler's parser,
5798 # not just through cpp. "Syntax error" is here to catch this case.
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #ifdef __STDC__
5806 # include <limits.h>
5807 #else
5808 # include <assert.h>
5809 #endif
5810 Syntax error
5811 _ACEOF
5812 if { (ac_try="$ac_cpp conftest.$ac_ext"
5813 case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } >/dev/null && {
5825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5826 test ! -s conftest.err
5827 }; then
5829 else
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 # Broken: fails on valid input.
5834 continue
5837 rm -f conftest.err conftest.$ac_ext
5839 # OK, works on sane cases. Now check whether nonexistent headers
5840 # can be detected and how.
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #include <ac_nonexistent.h>
5848 _ACEOF
5849 if { (ac_try="$ac_cpp conftest.$ac_ext"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } >/dev/null && {
5862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5863 test ! -s conftest.err
5864 }; then
5865 # Broken: success on invalid input.
5866 continue
5867 else
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 # Passes both tests.
5872 ac_preproc_ok=:
5873 break
5876 rm -f conftest.err conftest.$ac_ext
5878 done
5879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5880 rm -f conftest.err conftest.$ac_ext
5881 if $ac_preproc_ok; then
5882 break
5885 done
5886 ac_cv_prog_CXXCPP=$CXXCPP
5889 CXXCPP=$ac_cv_prog_CXXCPP
5890 else
5891 ac_cv_prog_CXXCPP=$CXXCPP
5893 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5894 echo "${ECHO_T}$CXXCPP" >&6; }
5895 ac_preproc_ok=false
5896 for ac_cxx_preproc_warn_flag in '' yes
5898 # Use a header file that comes with gcc, so configuring glibc
5899 # with a fresh cross-compiler works.
5900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5901 # <limits.h> exists even on freestanding compilers.
5902 # On the NeXT, cc -E runs the code through the compiler's parser,
5903 # not just through cpp. "Syntax error" is here to catch this case.
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 #ifdef __STDC__
5911 # include <limits.h>
5912 #else
5913 # include <assert.h>
5914 #endif
5915 Syntax error
5916 _ACEOF
5917 if { (ac_try="$ac_cpp conftest.$ac_ext"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } >/dev/null && {
5930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5931 test ! -s conftest.err
5932 }; then
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 # Broken: fails on valid input.
5939 continue
5942 rm -f conftest.err conftest.$ac_ext
5944 # OK, works on sane cases. Now check whether nonexistent headers
5945 # can be detected and how.
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <ac_nonexistent.h>
5953 _ACEOF
5954 if { (ac_try="$ac_cpp conftest.$ac_ext"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } >/dev/null && {
5967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5968 test ! -s conftest.err
5969 }; then
5970 # Broken: success on invalid input.
5971 continue
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 # Passes both tests.
5977 ac_preproc_ok=:
5978 break
5981 rm -f conftest.err conftest.$ac_ext
5983 done
5984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5985 rm -f conftest.err conftest.$ac_ext
5986 if $ac_preproc_ok; then
5988 else
5989 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5990 See \`config.log' for more details." >&5
5991 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5992 See \`config.log' for more details." >&2;}
5993 { (exit 1); exit 1; }; }
5996 ac_ext=cpp
5997 ac_cpp='$CXXCPP $CPPFLAGS'
5998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6005 ac_ext=f
6006 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6007 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6009 if test -n "$ac_tool_prefix"; then
6010 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
6012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016 if test "${ac_cv_prog_F77+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 if test -n "$F77"; then
6020 ac_cv_prog_F77="$F77" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6033 done
6034 done
6035 IFS=$as_save_IFS
6039 F77=$ac_cv_prog_F77
6040 if test -n "$F77"; then
6041 { echo "$as_me:$LINENO: result: $F77" >&5
6042 echo "${ECHO_T}$F77" >&6; }
6043 else
6044 { echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6; }
6049 test -n "$F77" && break
6050 done
6052 if test -z "$F77"; then
6053 ac_ct_F77=$F77
6054 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
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 if test -n "$ac_ct_F77"; then
6064 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_ac_ct_F77="$ac_prog"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6077 done
6078 done
6079 IFS=$as_save_IFS
6083 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6084 if test -n "$ac_ct_F77"; then
6085 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6086 echo "${ECHO_T}$ac_ct_F77" >&6; }
6087 else
6088 { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6093 test -n "$ac_ct_F77" && break
6094 done
6096 if test "x$ac_ct_F77" = x; then
6097 F77=""
6098 else
6099 case $cross_compiling:$ac_tool_warned in
6100 yes:)
6101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6102 whose name does not start with the host triplet. If you think this
6103 configuration is useful to you, please write to autoconf@gnu.org." >&5
6104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6105 whose name does not start with the host triplet. If you think this
6106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6107 ac_tool_warned=yes ;;
6108 esac
6109 F77=$ac_ct_F77
6114 # Provide some information about the compiler.
6115 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6116 ac_compiler=`set X $ac_compile; echo $2`
6117 { (ac_try="$ac_compiler --version >&5"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_compiler --version >&5") 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }
6127 { (ac_try="$ac_compiler -v >&5"
6128 case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131 esac
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_compiler -v >&5") 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }
6137 { (ac_try="$ac_compiler -V >&5"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compiler -V >&5") 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }
6147 rm -f a.out
6149 # If we don't use `.F' as extension, the preprocessor is not run on the
6150 # input file. (Note that this only needs to work for GNU compilers.)
6151 ac_save_ext=$ac_ext
6152 ac_ext=F
6153 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6154 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6155 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 cat >conftest.$ac_ext <<_ACEOF
6159 program main
6160 #ifndef __GNUC__
6161 choke me
6162 #endif
6165 _ACEOF
6166 rm -f conftest.$ac_objext
6167 if { (ac_try="$ac_compile"
6168 case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_compile") 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && {
6180 test -z "$ac_f77_werror_flag" ||
6181 test ! -s conftest.err
6182 } && test -s conftest.$ac_objext; then
6183 ac_compiler_gnu=yes
6184 else
6185 echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6188 ac_compiler_gnu=no
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6195 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6196 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6197 ac_ext=$ac_save_ext
6198 ac_test_FFLAGS=${FFLAGS+set}
6199 ac_save_FFLAGS=$FFLAGS
6200 FFLAGS=
6201 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6202 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6203 if test "${ac_cv_prog_f77_g+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 FFLAGS=-g
6207 cat >conftest.$ac_ext <<_ACEOF
6208 program main
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compile") 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_f77_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
6229 ac_cv_prog_f77_g=yes
6230 else
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_cv_prog_f77_g=no
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6241 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6242 if test "$ac_test_FFLAGS" = set; then
6243 FFLAGS=$ac_save_FFLAGS
6244 elif test $ac_cv_prog_f77_g = yes; then
6245 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6246 FFLAGS="-g -O2"
6247 else
6248 FFLAGS="-g"
6250 else
6251 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6252 FFLAGS="-O2"
6253 else
6254 FFLAGS=
6258 G77=`test $ac_compiler_gnu = yes && echo yes`
6259 ac_ext=c
6260 ac_cpp='$CPP $CPPFLAGS'
6261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6267 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6268 # find the maximum length of command line arguments
6269 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6270 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6271 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6275 teststring="ABCD"
6277 case $build_os in
6278 msdosdjgpp*)
6279 # On DJGPP, this test can blow up pretty badly due to problems in libc
6280 # (any single argument exceeding 2000 bytes causes a buffer overrun
6281 # during glob expansion). Even if it were fixed, the result of this
6282 # check would be larger than it should be.
6283 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6286 gnu*)
6287 # Under GNU Hurd, this test is not required because there is
6288 # no limit to the length of command line arguments.
6289 # Libtool will interpret -1 as no limit whatsoever
6290 lt_cv_sys_max_cmd_len=-1;
6293 cygwin* | mingw*)
6294 # On Win9x/ME, this test blows up -- it succeeds, but takes
6295 # about 5 minutes as the teststring grows exponentially.
6296 # Worse, since 9x/ME are not pre-emptively multitasking,
6297 # you end up with a "frozen" computer, even though with patience
6298 # the test eventually succeeds (with a max line length of 256k).
6299 # Instead, let's just punt: use the minimum linelength reported by
6300 # all of the supported platforms: 8192 (on NT/2K/XP).
6301 lt_cv_sys_max_cmd_len=8192;
6304 amigaos*)
6305 # On AmigaOS with pdksh, this test takes hours, literally.
6306 # So we just punt and use a minimum line length of 8192.
6307 lt_cv_sys_max_cmd_len=8192;
6310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6311 # This has been around since 386BSD, at least. Likely further.
6312 if test -x /sbin/sysctl; then
6313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6314 elif test -x /usr/sbin/sysctl; then
6315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6316 else
6317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6319 # And add a safety zone
6320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6324 interix*)
6325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6326 lt_cv_sys_max_cmd_len=196608
6329 osf*)
6330 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6331 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6332 # nice to cause kernel panics so lets avoid the loop below.
6333 # First set a reasonable default.
6334 lt_cv_sys_max_cmd_len=16384
6336 if test -x /sbin/sysconfig; then
6337 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6338 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6339 esac
6342 sco3.2v5*)
6343 lt_cv_sys_max_cmd_len=102400
6345 sysv5* | sco5v6* | sysv4.2uw2*)
6346 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6347 if test -n "$kargmax"; then
6348 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6349 else
6350 lt_cv_sys_max_cmd_len=32768
6354 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6355 if test -n "$lt_cv_sys_max_cmd_len"; then
6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6358 else
6359 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6360 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6361 = "XX$teststring") >/dev/null 2>&1 &&
6362 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6363 lt_cv_sys_max_cmd_len=$new_result &&
6364 test $i != 17 # 1/2 MB should be enough
6366 i=`expr $i + 1`
6367 teststring=$teststring$teststring
6368 done
6369 teststring=
6370 # Add a significant safety factor because C++ compilers can tack on massive
6371 # amounts of additional arguments before passing them to the linker.
6372 # It appears as though 1/2 is a usable value.
6373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6376 esac
6380 if test -n $lt_cv_sys_max_cmd_len ; then
6381 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6382 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6383 else
6384 { echo "$as_me:$LINENO: result: none" >&5
6385 echo "${ECHO_T}none" >&6; }
6392 # Check for command to grab the raw symbol name followed by C symbol from nm.
6393 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6394 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6395 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6399 # These are sane defaults that work on at least a few old systems.
6400 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6402 # Character class describing NM global symbol codes.
6403 symcode='[BCDEGRST]'
6405 # Regexp to match symbols that can be accessed directly from C.
6406 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6408 # Transform an extracted symbol line into a proper C declaration
6409 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6411 # Transform an extracted symbol line into symbol name and symbol address
6412 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'"
6414 # Define system-specific variables.
6415 case $host_os in
6416 aix*)
6417 symcode='[BCDT]'
6419 cygwin* | mingw* | pw32*)
6420 symcode='[ABCDGISTW]'
6422 hpux*) # Its linker distinguishes data from code symbols
6423 if test "$host_cpu" = ia64; then
6424 symcode='[ABCDEGRST]'
6426 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6427 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'"
6429 linux* | k*bsd*-gnu)
6430 if test "$host_cpu" = ia64; then
6431 symcode='[ABCDGIRSTW]'
6432 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6433 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'"
6436 irix* | nonstopux*)
6437 symcode='[BCDEGRST]'
6439 osf*)
6440 symcode='[BCDEGQRST]'
6442 solaris*)
6443 symcode='[BDRT]'
6445 sco3.2v5*)
6446 symcode='[DT]'
6448 sysv4.2uw2*)
6449 symcode='[DT]'
6451 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6452 symcode='[ABDT]'
6454 sysv4)
6455 symcode='[DFNSTU]'
6457 esac
6459 # Handle CRLF in mingw tool chain
6460 opt_cr=
6461 case $build_os in
6462 mingw*)
6463 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6465 esac
6467 # If we're using GNU nm, then use its standard symbol codes.
6468 case `$NM -V 2>&1` in
6469 *GNU* | *'with BFD'*)
6470 symcode='[ABCDGIRSTW]' ;;
6471 esac
6473 # Try without a prefix undercore, then with it.
6474 for ac_symprfx in "" "_"; do
6476 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6477 symxfrm="\\1 $ac_symprfx\\2 \\2"
6479 # Write the raw and C identifiers.
6480 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6482 # Check to see that the pipe works correctly.
6483 pipe_works=no
6485 rm -f conftest*
6486 cat > conftest.$ac_ext <<EOF
6487 #ifdef __cplusplus
6488 extern "C" {
6489 #endif
6490 char nm_test_var;
6491 void nm_test_func(){}
6492 #ifdef __cplusplus
6494 #endif
6495 int main(){nm_test_var='a';nm_test_func();return(0);}
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; then
6503 # Now try to grab the symbols.
6504 nlist=conftest.nm
6505 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6506 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && test -s "$nlist"; then
6510 # Try sorting and uniquifying the output.
6511 if sort "$nlist" | uniq > "$nlist"T; then
6512 mv -f "$nlist"T "$nlist"
6513 else
6514 rm -f "$nlist"T
6517 # Make sure that we snagged all the symbols we need.
6518 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6519 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6520 cat <<EOF > conftest.$ac_ext
6521 #ifdef __cplusplus
6522 extern "C" {
6523 #endif
6526 # Now generate the symbol file.
6527 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6529 cat <<EOF >> conftest.$ac_ext
6530 #if defined (__STDC__) && __STDC__
6531 # define lt_ptr_t void *
6532 #else
6533 # define lt_ptr_t char *
6534 # define const
6535 #endif
6537 /* The mapping between symbol names and symbols. */
6538 const struct {
6539 const char *name;
6540 lt_ptr_t address;
6542 lt_preloaded_symbols[] =
6545 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6546 cat <<\EOF >> conftest.$ac_ext
6547 {0, (lt_ptr_t) 0}
6550 #ifdef __cplusplus
6552 #endif
6554 # Now try linking the two files.
6555 mv conftest.$ac_objext conftstm.$ac_objext
6556 lt_save_LIBS="$LIBS"
6557 lt_save_CFLAGS="$CFLAGS"
6558 LIBS="conftstm.$ac_objext"
6559 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>&5
6562 ac_status=$?
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6565 pipe_works=yes
6567 LIBS="$lt_save_LIBS"
6568 CFLAGS="$lt_save_CFLAGS"
6569 else
6570 echo "cannot find nm_test_func in $nlist" >&5
6572 else
6573 echo "cannot find nm_test_var in $nlist" >&5
6575 else
6576 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6578 else
6579 echo "$progname: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 rm -rf conftest* conftst*
6584 # Do not use the global_symbol_pipe unless it works.
6585 if test "$pipe_works" = yes; then
6586 break
6587 else
6588 lt_cv_sys_global_symbol_pipe=
6590 done
6594 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6595 lt_cv_sys_global_symbol_to_cdecl=
6597 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6598 { echo "$as_me:$LINENO: result: failed" >&5
6599 echo "${ECHO_T}failed" >&6; }
6600 else
6601 { echo "$as_me:$LINENO: result: ok" >&5
6602 echo "${ECHO_T}ok" >&6; }
6605 { echo "$as_me:$LINENO: checking for objdir" >&5
6606 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6607 if test "${lt_cv_objdir+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610 rm -f .libs 2>/dev/null
6611 mkdir .libs 2>/dev/null
6612 if test -d .libs; then
6613 lt_cv_objdir=.libs
6614 else
6615 # MS-DOS does not allow filenames that begin with a dot.
6616 lt_cv_objdir=_libs
6618 rmdir .libs 2>/dev/null
6620 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6621 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6622 objdir=$lt_cv_objdir
6628 case $host_os in
6629 aix3*)
6630 # AIX sometimes has problems with the GCC collect2 program. For some
6631 # reason, if we set the COLLECT_NAMES environment variable, the problems
6632 # vanish in a puff of smoke.
6633 if test "X${COLLECT_NAMES+set}" != Xset; then
6634 COLLECT_NAMES=
6635 export COLLECT_NAMES
6638 esac
6640 # Sed substitution that helps us do robust quoting. It backslashifies
6641 # metacharacters that are still active within double-quoted strings.
6642 Xsed='sed -e 1s/^X//'
6643 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6645 # Same as above, but do not quote variable references.
6646 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6648 # Sed substitution to delay expansion of an escaped shell variable in a
6649 # double_quote_subst'ed string.
6650 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6652 # Sed substitution to avoid accidental globbing in evaled expressions
6653 no_glob_subst='s/\*/\\\*/g'
6655 # Constants:
6656 rm="rm -f"
6658 # Global variables:
6659 default_ofile=libtool
6660 can_build_shared=yes
6662 # All known linkers require a `.a' archive for static linking (except MSVC,
6663 # which needs '.lib').
6664 libext=a
6665 ltmain="$ac_aux_dir/ltmain.sh"
6666 ofile="$default_ofile"
6667 with_gnu_ld="$lt_cv_prog_gnu_ld"
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}ar; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_prog_AR+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 if test -n "$AR"; then
6678 ac_cv_prog_AR="$AR" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_AR="${ac_tool_prefix}ar"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 AR=$ac_cv_prog_AR
6698 if test -n "$AR"; then
6699 { echo "$as_me:$LINENO: result: $AR" >&5
6700 echo "${ECHO_T}$AR" >&6; }
6701 else
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6708 if test -z "$ac_cv_prog_AR"; then
6709 ac_ct_AR=$AR
6710 # Extract the first word of "ar", so it can be a program name with args.
6711 set dummy ar; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 if test -n "$ac_ct_AR"; then
6718 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_prog_ac_ct_AR="ar"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6731 done
6732 done
6733 IFS=$as_save_IFS
6737 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6738 if test -n "$ac_ct_AR"; then
6739 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6740 echo "${ECHO_T}$ac_ct_AR" >&6; }
6741 else
6742 { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6746 if test "x$ac_ct_AR" = x; then
6747 AR="false"
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6752 whose name does not start with the host triplet. If you think this
6753 configuration is useful to you, please write to autoconf@gnu.org." >&5
6754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6755 whose name does not start with the host triplet. If you think this
6756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6757 ac_tool_warned=yes ;;
6758 esac
6759 AR=$ac_ct_AR
6761 else
6762 AR="$ac_cv_prog_AR"
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_prog_RANLIB+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 if test -n "$RANLIB"; then
6774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6787 done
6788 done
6789 IFS=$as_save_IFS
6793 RANLIB=$ac_cv_prog_RANLIB
6794 if test -n "$RANLIB"; then
6795 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6796 echo "${ECHO_T}$RANLIB" >&6; }
6797 else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6804 if test -z "$ac_cv_prog_RANLIB"; then
6805 ac_ct_RANLIB=$RANLIB
6806 # Extract the first word of "ranlib", so it can be a program name with args.
6807 set dummy ranlib; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 if test -n "$ac_ct_RANLIB"; then
6814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_ac_ct_RANLIB="ranlib"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6827 done
6828 done
6829 IFS=$as_save_IFS
6833 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6834 if test -n "$ac_ct_RANLIB"; then
6835 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6836 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6837 else
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6842 if test "x$ac_ct_RANLIB" = x; then
6843 RANLIB=":"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846 yes:)
6847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6848 whose name does not start with the host triplet. If you think this
6849 configuration is useful to you, please write to autoconf@gnu.org." >&5
6850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet. If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6853 ac_tool_warned=yes ;;
6854 esac
6855 RANLIB=$ac_ct_RANLIB
6857 else
6858 RANLIB="$ac_cv_prog_RANLIB"
6861 if test -n "$ac_tool_prefix"; then
6862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}strip; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_prog_STRIP+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 if test -n "$STRIP"; then
6870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6883 done
6884 done
6885 IFS=$as_save_IFS
6889 STRIP=$ac_cv_prog_STRIP
6890 if test -n "$STRIP"; then
6891 { echo "$as_me:$LINENO: result: $STRIP" >&5
6892 echo "${ECHO_T}$STRIP" >&6; }
6893 else
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6900 if test -z "$ac_cv_prog_STRIP"; then
6901 ac_ct_STRIP=$STRIP
6902 # Extract the first word of "strip", so it can be a program name with args.
6903 set dummy strip; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 if test -n "$ac_ct_STRIP"; then
6910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_ac_ct_STRIP="strip"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6923 done
6924 done
6925 IFS=$as_save_IFS
6929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6930 if test -n "$ac_ct_STRIP"; then
6931 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6932 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6933 else
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6938 if test "x$ac_ct_STRIP" = x; then
6939 STRIP=":"
6940 else
6941 case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6944 whose name does not start with the host triplet. If you think this
6945 configuration is useful to you, please write to autoconf@gnu.org." >&5
6946 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet. If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951 STRIP=$ac_ct_STRIP
6953 else
6954 STRIP="$ac_cv_prog_STRIP"
6958 old_CC="$CC"
6959 old_CFLAGS="$CFLAGS"
6961 # Set sane defaults for various variables
6962 test -z "$AR" && AR=ar
6963 test -z "$AR_FLAGS" && AR_FLAGS=cru
6964 test -z "$AS" && AS=as
6965 test -z "$CC" && CC=cc
6966 test -z "$LTCC" && LTCC=$CC
6967 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6968 test -z "$DLLTOOL" && DLLTOOL=dlltool
6969 test -z "$LD" && LD=ld
6970 test -z "$LN_S" && LN_S="ln -s"
6971 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6972 test -z "$NM" && NM=nm
6973 test -z "$SED" && SED=sed
6974 test -z "$OBJDUMP" && OBJDUMP=objdump
6975 test -z "$RANLIB" && RANLIB=:
6976 test -z "$STRIP" && STRIP=:
6977 test -z "$ac_objext" && ac_objext=o
6979 # Determine commands to create old-style static archives.
6980 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6981 old_postinstall_cmds='chmod 644 $oldlib'
6982 old_postuninstall_cmds=
6984 if test -n "$RANLIB"; then
6985 case $host_os in
6986 openbsd*)
6987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6992 esac
6993 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6996 for cc_temp in $compiler""; do
6997 case $cc_temp in
6998 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6999 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7000 \-*) ;;
7001 *) break;;
7002 esac
7003 done
7004 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7007 # Only perform the check for file, if the check method requires it
7008 case $deplibs_check_method in
7009 file_magic*)
7010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7011 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7012 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7013 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016 case $MAGIC_CMD in
7017 [\\/*] | ?:[\\/]*)
7018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7021 lt_save_MAGIC_CMD="$MAGIC_CMD"
7022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7024 for ac_dir in $ac_dummy; do
7025 IFS="$lt_save_ifs"
7026 test -z "$ac_dir" && ac_dir=.
7027 if test -f $ac_dir/${ac_tool_prefix}file; then
7028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7029 if test -n "$file_magic_test_file"; then
7030 case $deplibs_check_method in
7031 "file_magic "*)
7032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7035 $EGREP "$file_magic_regex" > /dev/null; then
7037 else
7038 cat <<EOF 1>&2
7040 *** Warning: the command libtool uses to detect shared libraries,
7041 *** $file_magic_cmd, produces output that libtool cannot recognize.
7042 *** The result is that libtool may fail to recognize shared libraries
7043 *** as such. This will affect the creation of libtool libraries that
7044 *** depend on shared libraries, but programs linked with such libtool
7045 *** libraries will work regardless of this problem. Nevertheless, you
7046 *** may want to report the problem to your system manager and/or to
7047 *** bug-libtool@gnu.org
7050 fi ;;
7051 esac
7053 break
7055 done
7056 IFS="$lt_save_ifs"
7057 MAGIC_CMD="$lt_save_MAGIC_CMD"
7059 esac
7062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7063 if test -n "$MAGIC_CMD"; then
7064 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7065 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7066 else
7067 { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7071 if test -z "$lt_cv_path_MAGIC_CMD"; then
7072 if test -n "$ac_tool_prefix"; then
7073 { echo "$as_me:$LINENO: checking for file" >&5
7074 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7075 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078 case $MAGIC_CMD in
7079 [\\/*] | ?:[\\/]*)
7080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7083 lt_save_MAGIC_CMD="$MAGIC_CMD"
7084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7085 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7086 for ac_dir in $ac_dummy; do
7087 IFS="$lt_save_ifs"
7088 test -z "$ac_dir" && ac_dir=.
7089 if test -f $ac_dir/file; then
7090 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7091 if test -n "$file_magic_test_file"; then
7092 case $deplibs_check_method in
7093 "file_magic "*)
7094 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7097 $EGREP "$file_magic_regex" > /dev/null; then
7099 else
7100 cat <<EOF 1>&2
7102 *** Warning: the command libtool uses to detect shared libraries,
7103 *** $file_magic_cmd, produces output that libtool cannot recognize.
7104 *** The result is that libtool may fail to recognize shared libraries
7105 *** as such. This will affect the creation of libtool libraries that
7106 *** depend on shared libraries, but programs linked with such libtool
7107 *** libraries will work regardless of this problem. Nevertheless, you
7108 *** may want to report the problem to your system manager and/or to
7109 *** bug-libtool@gnu.org
7112 fi ;;
7113 esac
7115 break
7117 done
7118 IFS="$lt_save_ifs"
7119 MAGIC_CMD="$lt_save_MAGIC_CMD"
7121 esac
7124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7125 if test -n "$MAGIC_CMD"; then
7126 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7127 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7128 else
7129 { echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6; }
7133 else
7134 MAGIC_CMD=:
7140 esac
7143 case $host_os in
7144 rhapsody* | darwin*)
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 if test -n "$DSYMUTIL"; then
7154 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7173 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7174 if test -n "$DSYMUTIL"; then
7175 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7176 echo "${ECHO_T}$DSYMUTIL" >&6; }
7177 else
7178 { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7184 if test -z "$ac_cv_prog_DSYMUTIL"; then
7185 ac_ct_DSYMUTIL=$DSYMUTIL
7186 # Extract the first word of "dsymutil", so it can be a program name with args.
7187 set dummy dsymutil; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193 if test -n "$ac_ct_DSYMUTIL"; then
7194 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7213 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7214 if test -n "$ac_ct_DSYMUTIL"; then
7215 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7216 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7217 else
7218 { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7222 if test "x$ac_ct_DSYMUTIL" = x; then
7223 DSYMUTIL=":"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7228 whose name does not start with the host triplet. If you think this
7229 configuration is useful to you, please write to autoconf@gnu.org." >&5
7230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7231 whose name does not start with the host triplet. If you think this
7232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 DSYMUTIL=$ac_ct_DSYMUTIL
7237 else
7238 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249 if test -n "$NMEDIT"; then
7250 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7263 done
7264 done
7265 IFS=$as_save_IFS
7269 NMEDIT=$ac_cv_prog_NMEDIT
7270 if test -n "$NMEDIT"; then
7271 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7272 echo "${ECHO_T}$NMEDIT" >&6; }
7273 else
7274 { echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6; }
7280 if test -z "$ac_cv_prog_NMEDIT"; then
7281 ac_ct_NMEDIT=$NMEDIT
7282 # Extract the first word of "nmedit", so it can be a program name with args.
7283 set dummy nmedit; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 if test -n "$ac_ct_NMEDIT"; then
7290 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7303 done
7304 done
7305 IFS=$as_save_IFS
7309 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7310 if test -n "$ac_ct_NMEDIT"; then
7311 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7312 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7313 else
7314 { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7318 if test "x$ac_ct_NMEDIT" = x; then
7319 NMEDIT=":"
7320 else
7321 case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7324 whose name does not start with the host triplet. If you think this
7325 configuration is useful to you, please write to autoconf@gnu.org." >&5
7326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7327 whose name does not start with the host triplet. If you think this
7328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7329 ac_tool_warned=yes ;;
7330 esac
7331 NMEDIT=$ac_ct_NMEDIT
7333 else
7334 NMEDIT="$ac_cv_prog_NMEDIT"
7338 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7339 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7340 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343 lt_cv_apple_cc_single_mod=no
7344 if test -z "${LT_MULTI_MODULE}"; then
7345 # By default we will add the -single_module flag. You can override
7346 # by either setting the environment variable LT_MULTI_MODULE
7347 # non-empty at configure time, or by adding -multi_module to the
7348 # link flags.
7349 echo "int foo(void){return 1;}" > conftest.c
7350 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7351 -dynamiclib ${wl}-single_module conftest.c
7352 if test -f libconftest.dylib; then
7353 lt_cv_apple_cc_single_mod=yes
7354 rm -rf libconftest.dylib*
7356 rm conftest.c
7359 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7360 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7361 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7362 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7363 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 lt_cv_ld_exported_symbols_list=no
7367 save_LDFLAGS=$LDFLAGS
7368 echo "_main" > conftest.sym
7369 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7370 cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7378 main ()
7382 return 0;
7384 _ACEOF
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (ac_try="$ac_link"
7387 case "(($ac_try" in
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_link") 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest$ac_exeext &&
7402 $as_test_x conftest$ac_exeext; then
7403 lt_cv_ld_exported_symbols_list=yes
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 lt_cv_ld_exported_symbols_list=no
7411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7412 conftest$ac_exeext conftest.$ac_ext
7413 LDFLAGS="$save_LDFLAGS"
7416 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7417 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7418 case $host_os in
7419 rhapsody* | darwin1.[0123])
7420 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7421 darwin1.*)
7422 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7423 darwin*)
7424 # if running on 10.5 or later, the deployment target defaults
7425 # to the OS version, if on x86, and 10.4, the deployment
7426 # target defaults to 10.4. Don't you love it?
7427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7430 10.[012]*)
7431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7432 10.*)
7433 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7434 esac
7436 esac
7437 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7438 _lt_dar_single_mod='$single_module'
7440 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7441 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7442 else
7443 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7445 if test "$DSYMUTIL" != ":"; then
7446 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7447 else
7448 _lt_dsymutil=
7451 esac
7454 enable_dlopen=no
7455 enable_win32_dll=no
7457 # Check whether --enable-libtool-lock was given.
7458 if test "${enable_libtool_lock+set}" = set; then
7459 enableval=$enable_libtool_lock;
7462 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7465 # Check whether --with-pic was given.
7466 if test "${with_pic+set}" = set; then
7467 withval=$with_pic; pic_mode="$withval"
7468 else
7469 pic_mode=default
7472 test -z "$pic_mode" && pic_mode=default
7474 # Use C for the default configuration in the libtool script
7475 tagname=
7476 lt_save_CC="$CC"
7477 ac_ext=c
7478 ac_cpp='$CPP $CPPFLAGS'
7479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7484 # Source file extension for C test sources.
7485 ac_ext=c
7487 # Object file extension for compiled C test sources.
7488 objext=o
7489 objext=$objext
7491 # Code to be used in simple compile tests
7492 lt_simple_compile_test_code="int some_variable = 0;"
7494 # Code to be used in simple link tests
7495 lt_simple_link_test_code='int main(){return(0);}'
7498 # If no C compiler was specified, use CC.
7499 LTCC=${LTCC-"$CC"}
7501 # If no C compiler flags were specified, use CFLAGS.
7502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7504 # Allow CC to be a program name with arguments.
7505 compiler=$CC
7508 # save warnings/boilerplate of simple test code
7509 ac_outfile=conftest.$ac_objext
7510 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7511 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7512 _lt_compiler_boilerplate=`cat conftest.err`
7513 $rm conftest*
7515 ac_outfile=conftest.$ac_objext
7516 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7517 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7518 _lt_linker_boilerplate=`cat conftest.err`
7519 $rm -r conftest*
7523 lt_prog_compiler_no_builtin_flag=
7525 if test "$GCC" = yes; then
7526 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7529 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7530 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7531 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 lt_cv_prog_compiler_rtti_exceptions=no
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7537 lt_compiler_flag="-fno-rtti -fno-exceptions"
7538 # Insert the option either (1) after the last *FLAGS variable, or
7539 # (2) before a word containing "conftest.", or (3) at the end.
7540 # Note that $ac_compile itself does not contain backslashes and begins
7541 # with a dollar sign (not a hyphen), so the echo should work correctly.
7542 # The option is referenced via a variable to avoid confusing sed.
7543 lt_compile=`echo "$ac_compile" | $SED \
7544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546 -e 's:$: $lt_compiler_flag:'`
7547 (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
7548 (eval "$lt_compile" 2>conftest.err)
7549 ac_status=$?
7550 cat conftest.err >&5
7551 echo "$as_me:7551: \$? = $ac_status" >&5
7552 if (exit $ac_status) && test -s "$ac_outfile"; then
7553 # The compiler can only warn and ignore the option if not recognized
7554 # So say no if there are warnings other than the usual output.
7555 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7558 lt_cv_prog_compiler_rtti_exceptions=yes
7561 $rm conftest*
7564 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7569 else
7575 lt_prog_compiler_wl=
7576 lt_prog_compiler_pic=
7577 lt_prog_compiler_static=
7579 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7582 if test "$GCC" = yes; then
7583 lt_prog_compiler_wl='-Wl,'
7584 lt_prog_compiler_static='-static'
7586 case $host_os in
7587 aix*)
7588 # All AIX code is PIC.
7589 if test "$host_cpu" = ia64; then
7590 # AIX 5 now supports IA64 processor
7591 lt_prog_compiler_static='-Bstatic'
7595 amigaos*)
7596 # FIXME: we need at least 68020 code to build shared libraries, but
7597 # adding the `-m68020' flag to GCC prevents building anything better,
7598 # like `-m68040'.
7599 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7602 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7603 # PIC is the default for these OSes.
7606 mingw* | cygwin* | pw32* | os2*)
7607 # This hack is so that the source file can tell whether it is being
7608 # built for inclusion in a dll (and should export symbols for example).
7609 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7610 # (--disable-auto-import) libraries
7611 lt_prog_compiler_pic='-DDLL_EXPORT'
7614 darwin* | rhapsody*)
7615 # PIC is the default on this platform
7616 # Common symbols not allowed in MH_DYLIB files
7617 lt_prog_compiler_pic='-fno-common'
7620 interix[3-9]*)
7621 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7622 # Instead, we relocate shared libraries at runtime.
7625 msdosdjgpp*)
7626 # Just because we use GCC doesn't mean we suddenly get shared libraries
7627 # on systems that don't support them.
7628 lt_prog_compiler_can_build_shared=no
7629 enable_shared=no
7632 sysv4*MP*)
7633 if test -d /usr/nec; then
7634 lt_prog_compiler_pic=-Kconform_pic
7638 hpux*)
7639 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7640 # not for PA HP-UX.
7641 case $host_cpu in
7642 hppa*64*|ia64*)
7643 # +Z the default
7646 lt_prog_compiler_pic='-fPIC'
7648 esac
7652 lt_prog_compiler_pic='-fPIC'
7654 esac
7655 else
7656 # PORTME Check for flag to pass linker flags through the system compiler.
7657 case $host_os in
7658 aix*)
7659 lt_prog_compiler_wl='-Wl,'
7660 if test "$host_cpu" = ia64; then
7661 # AIX 5 now supports IA64 processor
7662 lt_prog_compiler_static='-Bstatic'
7663 else
7664 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7667 darwin*)
7668 # PIC is the default on this platform
7669 # Common symbols not allowed in MH_DYLIB files
7670 case $cc_basename in
7671 xlc*)
7672 lt_prog_compiler_pic='-qnocommon'
7673 lt_prog_compiler_wl='-Wl,'
7675 esac
7678 mingw* | cygwin* | pw32* | os2*)
7679 # This hack is so that the source file can tell whether it is being
7680 # built for inclusion in a dll (and should export symbols for example).
7681 lt_prog_compiler_pic='-DDLL_EXPORT'
7684 hpux9* | hpux10* | hpux11*)
7685 lt_prog_compiler_wl='-Wl,'
7686 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7687 # not for PA HP-UX.
7688 case $host_cpu in
7689 hppa*64*|ia64*)
7690 # +Z the default
7693 lt_prog_compiler_pic='+Z'
7695 esac
7696 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7697 lt_prog_compiler_static='${wl}-a ${wl}archive'
7700 irix5* | irix6* | nonstopux*)
7701 lt_prog_compiler_wl='-Wl,'
7702 # PIC (with -KPIC) is the default.
7703 lt_prog_compiler_static='-non_shared'
7706 newsos6)
7707 lt_prog_compiler_pic='-KPIC'
7708 lt_prog_compiler_static='-Bstatic'
7711 linux* | k*bsd*-gnu)
7712 case $cc_basename in
7713 icc* | ecc*)
7714 lt_prog_compiler_wl='-Wl,'
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-static'
7718 pgcc* | pgf77* | pgf90* | pgf95*)
7719 # Portland Group compilers (*not* the Pentium gcc compiler,
7720 # which looks to be a dead project)
7721 lt_prog_compiler_wl='-Wl,'
7722 lt_prog_compiler_pic='-fpic'
7723 lt_prog_compiler_static='-Bstatic'
7725 ccc*)
7726 lt_prog_compiler_wl='-Wl,'
7727 # All Alpha code is PIC.
7728 lt_prog_compiler_static='-non_shared'
7731 case `$CC -V 2>&1 | sed 5q` in
7732 *Sun\ C*)
7733 # Sun C 5.9
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-Bstatic'
7736 lt_prog_compiler_wl='-Wl,'
7738 *Sun\ F*)
7739 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7740 lt_prog_compiler_pic='-KPIC'
7741 lt_prog_compiler_static='-Bstatic'
7742 lt_prog_compiler_wl=''
7744 esac
7746 esac
7749 osf3* | osf4* | osf5*)
7750 lt_prog_compiler_wl='-Wl,'
7751 # All OSF/1 code is PIC.
7752 lt_prog_compiler_static='-non_shared'
7755 rdos*)
7756 lt_prog_compiler_static='-non_shared'
7759 solaris*)
7760 lt_prog_compiler_pic='-KPIC'
7761 lt_prog_compiler_static='-Bstatic'
7762 case $cc_basename in
7763 f77* | f90* | f95*)
7764 lt_prog_compiler_wl='-Qoption ld ';;
7766 lt_prog_compiler_wl='-Wl,';;
7767 esac
7770 sunos4*)
7771 lt_prog_compiler_wl='-Qoption ld '
7772 lt_prog_compiler_pic='-PIC'
7773 lt_prog_compiler_static='-Bstatic'
7776 sysv4 | sysv4.2uw2* | sysv4.3*)
7777 lt_prog_compiler_wl='-Wl,'
7778 lt_prog_compiler_pic='-KPIC'
7779 lt_prog_compiler_static='-Bstatic'
7782 sysv4*MP*)
7783 if test -d /usr/nec ;then
7784 lt_prog_compiler_pic='-Kconform_pic'
7785 lt_prog_compiler_static='-Bstatic'
7789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7790 lt_prog_compiler_wl='-Wl,'
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-Bstatic'
7795 unicos*)
7796 lt_prog_compiler_wl='-Wl,'
7797 lt_prog_compiler_can_build_shared=no
7800 uts4*)
7801 lt_prog_compiler_pic='-pic'
7802 lt_prog_compiler_static='-Bstatic'
7806 lt_prog_compiler_can_build_shared=no
7808 esac
7811 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7812 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7815 # Check to make sure the PIC flag actually works.
7817 if test -n "$lt_prog_compiler_pic"; then
7819 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7821 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 lt_cv_prog_compiler_pic_works=no
7825 ac_outfile=conftest.$ac_objext
7826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7827 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7828 # Insert the option either (1) after the last *FLAGS variable, or
7829 # (2) before a word containing "conftest.", or (3) at the end.
7830 # Note that $ac_compile itself does not contain backslashes and begins
7831 # with a dollar sign (not a hyphen), so the echo should work correctly.
7832 # The option is referenced via a variable to avoid confusing sed.
7833 lt_compile=`echo "$ac_compile" | $SED \
7834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7836 -e 's:$: $lt_compiler_flag:'`
7837 (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
7838 (eval "$lt_compile" 2>conftest.err)
7839 ac_status=$?
7840 cat conftest.err >&5
7841 echo "$as_me:7841: \$? = $ac_status" >&5
7842 if (exit $ac_status) && test -s "$ac_outfile"; then
7843 # The compiler can only warn and ignore the option if not recognized
7844 # So say no if there are warnings other than the usual output.
7845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7848 lt_cv_prog_compiler_pic_works=yes
7851 $rm conftest*
7854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7855 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7857 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7858 case $lt_prog_compiler_pic in
7859 "" | " "*) ;;
7860 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7861 esac
7862 else
7863 lt_prog_compiler_pic=
7864 lt_prog_compiler_can_build_shared=no
7868 case $host_os in
7869 # For platforms which do not support PIC, -DPIC is meaningless:
7870 *djgpp*)
7871 lt_prog_compiler_pic=
7874 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7876 esac
7879 # Check to make sure the static flag actually works.
7881 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7882 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7883 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7884 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 lt_cv_prog_compiler_static_works=no
7888 save_LDFLAGS="$LDFLAGS"
7889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7892 # The linker can only warn and ignore the option if not recognized
7893 # So say no if there are warnings
7894 if test -s conftest.err; then
7895 # Append any errors to the config.log.
7896 cat conftest.err 1>&5
7897 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7899 if diff conftest.exp conftest.er2 >/dev/null; then
7900 lt_cv_prog_compiler_static_works=yes
7902 else
7903 lt_cv_prog_compiler_static_works=yes
7906 $rm -r conftest*
7907 LDFLAGS="$save_LDFLAGS"
7910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7911 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7913 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7915 else
7916 lt_prog_compiler_static=
7920 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7922 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925 lt_cv_prog_compiler_c_o=no
7926 $rm -r conftest 2>/dev/null
7927 mkdir conftest
7928 cd conftest
7929 mkdir out
7930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7932 lt_compiler_flag="-o out/conftest2.$ac_objext"
7933 # Insert the option either (1) after the last *FLAGS variable, or
7934 # (2) before a word containing "conftest.", or (3) at the end.
7935 # Note that $ac_compile itself does not contain backslashes and begins
7936 # with a dollar sign (not a hyphen), so the echo should work correctly.
7937 lt_compile=`echo "$ac_compile" | $SED \
7938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7940 -e 's:$: $lt_compiler_flag:'`
7941 (eval echo "\"\$as_me:7941: $lt_compile\"" >&5)
7942 (eval "$lt_compile" 2>out/conftest.err)
7943 ac_status=$?
7944 cat out/conftest.err >&5
7945 echo "$as_me:7945: \$? = $ac_status" >&5
7946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7947 then
7948 # The compiler can only warn and ignore the option if not recognized
7949 # So say no if there are warnings
7950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7953 lt_cv_prog_compiler_c_o=yes
7956 chmod u+w . 2>&5
7957 $rm conftest*
7958 # SGI C++ compiler will create directory out/ii_files/ for
7959 # template instantiation
7960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7961 $rm out/* && rmdir out
7962 cd ..
7963 rmdir conftest
7964 $rm conftest*
7967 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7968 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7971 hard_links="nottested"
7972 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7973 # do not overwrite the value of need_locks provided by the user
7974 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7976 hard_links=yes
7977 $rm conftest*
7978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7979 touch conftest.a
7980 ln conftest.a conftest.b 2>&5 || hard_links=no
7981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7982 { echo "$as_me:$LINENO: result: $hard_links" >&5
7983 echo "${ECHO_T}$hard_links" >&6; }
7984 if test "$hard_links" = no; then
7985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7987 need_locks=warn
7989 else
7990 need_locks=no
7993 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7994 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7996 runpath_var=
7997 allow_undefined_flag=
7998 enable_shared_with_static_runtimes=no
7999 archive_cmds=
8000 archive_expsym_cmds=
8001 old_archive_From_new_cmds=
8002 old_archive_from_expsyms_cmds=
8003 export_dynamic_flag_spec=
8004 whole_archive_flag_spec=
8005 thread_safe_flag_spec=
8006 hardcode_libdir_flag_spec=
8007 hardcode_libdir_flag_spec_ld=
8008 hardcode_libdir_separator=
8009 hardcode_direct=no
8010 hardcode_minus_L=no
8011 hardcode_shlibpath_var=unsupported
8012 link_all_deplibs=unknown
8013 hardcode_automatic=no
8014 module_cmds=
8015 module_expsym_cmds=
8016 always_export_symbols=no
8017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8018 # include_expsyms should be a list of space-separated symbols to be *always*
8019 # included in the symbol list
8020 include_expsyms=
8021 # exclude_expsyms can be an extended regexp of symbols to exclude
8022 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8023 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8024 # as well as any symbol that contains `d'.
8025 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8026 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8027 # platforms (ab)use it in PIC code, but their linkers get confused if
8028 # the symbol is explicitly referenced. Since portable code cannot
8029 # rely on this symbol name, it's probably fine to never include it in
8030 # preloaded symbol tables.
8031 # Exclude shared library initialization/finalization symbols.
8032 extract_expsyms_cmds=
8033 # Just being paranoid about ensuring that cc_basename is set.
8034 for cc_temp in $compiler""; do
8035 case $cc_temp in
8036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8038 \-*) ;;
8039 *) break;;
8040 esac
8041 done
8042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8044 case $host_os in
8045 cygwin* | mingw* | pw32*)
8046 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8047 # When not using gcc, we currently assume that we are using
8048 # Microsoft Visual C++.
8049 if test "$GCC" != yes; then
8050 with_gnu_ld=no
8053 interix*)
8054 # we just hope/assume this is gcc and not c89 (= MSVC++)
8055 with_gnu_ld=yes
8057 openbsd*)
8058 with_gnu_ld=no
8060 esac
8062 ld_shlibs=yes
8063 if test "$with_gnu_ld" = yes; then
8064 # If archive_cmds runs LD, not CC, wlarc should be empty
8065 wlarc='${wl}'
8067 # Set some defaults for GNU ld with shared library support. These
8068 # are reset later if shared libraries are not supported. Putting them
8069 # here allows them to be overridden if necessary.
8070 runpath_var=LD_RUN_PATH
8071 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8072 export_dynamic_flag_spec='${wl}--export-dynamic'
8073 # ancient GNU ld didn't support --whole-archive et. al.
8074 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8075 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8076 else
8077 whole_archive_flag_spec=
8079 supports_anon_versioning=no
8080 case `$LD -v 2>/dev/null` in
8081 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8082 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8083 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8084 *\ 2.11.*) ;; # other 2.11 versions
8085 *) supports_anon_versioning=yes ;;
8086 esac
8088 # See if GNU ld supports shared libraries.
8089 case $host_os in
8090 aix[3-9]*)
8091 # On AIX/PPC, the GNU linker is very broken
8092 if test "$host_cpu" != ia64; then
8093 ld_shlibs=no
8094 cat <<EOF 1>&2
8096 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8097 *** to be unable to reliably create shared libraries on AIX.
8098 *** Therefore, libtool is disabling shared libraries support. If you
8099 *** really care for shared libraries, you may want to modify your PATH
8100 *** so that a non-GNU linker is found, and then restart.
8106 amigaos*)
8107 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)'
8108 hardcode_libdir_flag_spec='-L$libdir'
8109 hardcode_minus_L=yes
8111 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8112 # that the semantics of dynamic libraries on AmigaOS, at least up
8113 # to version 4, is to share data among multiple programs linked
8114 # with the same dynamic library. Since this doesn't match the
8115 # behavior of shared libraries on other platforms, we can't use
8116 # them.
8117 ld_shlibs=no
8120 beos*)
8121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8122 allow_undefined_flag=unsupported
8123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8124 # support --undefined. This deserves some investigation. FIXME
8125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8126 else
8127 ld_shlibs=no
8131 cygwin* | mingw* | pw32*)
8132 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8133 # as there is no search path for DLLs.
8134 hardcode_libdir_flag_spec='-L$libdir'
8135 allow_undefined_flag=unsupported
8136 always_export_symbols=no
8137 enable_shared_with_static_runtimes=yes
8138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8140 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8142 # If the export-symbols file already is a .def file (1st line
8143 # is EXPORTS), use it as is; otherwise, prepend...
8144 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8145 cp $export_symbols $output_objdir/$soname.def;
8146 else
8147 echo EXPORTS > $output_objdir/$soname.def;
8148 cat $export_symbols >> $output_objdir/$soname.def;
8150 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8151 else
8152 ld_shlibs=no
8156 interix[3-9]*)
8157 hardcode_direct=no
8158 hardcode_shlibpath_var=no
8159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8160 export_dynamic_flag_spec='${wl}-E'
8161 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8162 # Instead, shared libraries are loaded at an image base (0x10000000 by
8163 # default) and relocated if they conflict, which is a slow very memory
8164 # consuming and fragmenting process. To avoid this, we pick a random,
8165 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8166 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8168 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8171 gnu* | linux* | k*bsd*-gnu)
8172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8173 tmp_addflag=
8174 case $cc_basename,$host_cpu in
8175 pgcc*) # Portland Group C compiler
8176 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'
8177 tmp_addflag=' $pic_flag'
8179 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8180 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'
8181 tmp_addflag=' $pic_flag -Mnomain' ;;
8182 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8183 tmp_addflag=' -i_dynamic' ;;
8184 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8185 tmp_addflag=' -i_dynamic -nofor_main' ;;
8186 ifc* | ifort*) # Intel Fortran compiler
8187 tmp_addflag=' -nofor_main' ;;
8188 esac
8189 case `$CC -V 2>&1 | sed 5q` in
8190 *Sun\ C*) # Sun C 5.9
8191 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8192 tmp_sharedflag='-G' ;;
8193 *Sun\ F*) # Sun Fortran 8.3
8194 tmp_sharedflag='-G' ;;
8196 tmp_sharedflag='-shared' ;;
8197 esac
8198 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200 if test $supports_anon_versioning = yes; then
8201 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8203 $echo "local: *; };" >> $output_objdir/$libname.ver~
8204 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8206 else
8207 ld_shlibs=no
8211 netbsd*)
8212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8213 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8214 wlarc=
8215 else
8216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221 solaris*)
8222 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8223 ld_shlibs=no
8224 cat <<EOF 1>&2
8226 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8227 *** create shared libraries on Solaris systems. Therefore, libtool
8228 *** is disabling shared libraries support. We urge you to upgrade GNU
8229 *** binutils to release 2.9.1 or newer. Another option is to modify
8230 *** your PATH or compiler configuration so that the native linker is
8231 *** used, and then restart.
8234 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8237 else
8238 ld_shlibs=no
8242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8243 case `$LD -v 2>&1` in
8244 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8245 ld_shlibs=no
8246 cat <<_LT_EOF 1>&2
8248 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8249 *** reliably create shared libraries on SCO systems. Therefore, libtool
8250 *** is disabling shared libraries support. We urge you to upgrade GNU
8251 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8252 *** your PATH or compiler configuration so that the native linker is
8253 *** used, and then restart.
8255 _LT_EOF
8258 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8262 else
8263 ld_shlibs=no
8266 esac
8269 sunos4*)
8270 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8271 wlarc=
8272 hardcode_direct=yes
8273 hardcode_shlibpath_var=no
8277 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8279 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8280 else
8281 ld_shlibs=no
8284 esac
8286 if test "$ld_shlibs" = no; then
8287 runpath_var=
8288 hardcode_libdir_flag_spec=
8289 export_dynamic_flag_spec=
8290 whole_archive_flag_spec=
8292 else
8293 # PORTME fill in a description of your system's linker (not GNU ld)
8294 case $host_os in
8295 aix3*)
8296 allow_undefined_flag=unsupported
8297 always_export_symbols=yes
8298 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'
8299 # Note: this linker hardcodes the directories in LIBPATH if there
8300 # are no directories specified by -L.
8301 hardcode_minus_L=yes
8302 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8303 # Neither direct hardcoding nor static linking is supported with a
8304 # broken collect2.
8305 hardcode_direct=unsupported
8309 aix[4-9]*)
8310 if test "$host_cpu" = ia64; then
8311 # On IA64, the linker does run time linking by default, so we don't
8312 # have to do anything special.
8313 aix_use_runtimelinking=no
8314 exp_sym_flag='-Bexport'
8315 no_entry_flag=""
8316 else
8317 # If we're using GNU nm, then we don't want the "-C" option.
8318 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8319 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8320 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'
8321 else
8322 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'
8324 aix_use_runtimelinking=no
8326 # Test if we are trying to use run time linking or normal
8327 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8328 # need to do runtime linking.
8329 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8330 for ld_flag in $LDFLAGS; do
8331 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8332 aix_use_runtimelinking=yes
8333 break
8335 done
8337 esac
8339 exp_sym_flag='-bexport'
8340 no_entry_flag='-bnoentry'
8343 # When large executables or shared objects are built, AIX ld can
8344 # have problems creating the table of contents. If linking a library
8345 # or program results in "error TOC overflow" add -mminimal-toc to
8346 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8347 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8349 archive_cmds=''
8350 hardcode_direct=yes
8351 hardcode_libdir_separator=':'
8352 link_all_deplibs=yes
8354 if test "$GCC" = yes; then
8355 case $host_os in aix4.[012]|aix4.[012].*)
8356 # We only want to do this on AIX 4.2 and lower, the check
8357 # below for broken collect2 doesn't work under 4.3+
8358 collect2name=`${CC} -print-prog-name=collect2`
8359 if test -f "$collect2name" && \
8360 strings "$collect2name" | grep resolve_lib_name >/dev/null
8361 then
8362 # We have reworked collect2
8364 else
8365 # We have old collect2
8366 hardcode_direct=unsupported
8367 # It fails to find uninstalled libraries when the uninstalled
8368 # path is not listed in the libpath. Setting hardcode_minus_L
8369 # to unsupported forces relinking
8370 hardcode_minus_L=yes
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_libdir_separator=
8375 esac
8376 shared_flag='-shared'
8377 if test "$aix_use_runtimelinking" = yes; then
8378 shared_flag="$shared_flag "'${wl}-G'
8380 else
8381 # not using gcc
8382 if test "$host_cpu" = ia64; then
8383 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8384 # chokes on -Wl,-G. The following line is correct:
8385 shared_flag='-G'
8386 else
8387 if test "$aix_use_runtimelinking" = yes; then
8388 shared_flag='${wl}-G'
8389 else
8390 shared_flag='${wl}-bM:SRE'
8395 # It seems that -bexpall does not export symbols beginning with
8396 # underscore (_), so it is better to generate a list of symbols to export.
8397 always_export_symbols=yes
8398 if test "$aix_use_runtimelinking" = yes; then
8399 # Warning - without using the other runtime loading flags (-brtl),
8400 # -berok will link without error, but may produce a broken library.
8401 allow_undefined_flag='-berok'
8402 # Determine the default libpath from the value encoded in an empty executable.
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h. */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8411 main ()
8415 return 0;
8417 _ACEOF
8418 rm -f conftest.$ac_objext conftest$ac_exeext
8419 if { (ac_try="$ac_link"
8420 case "(($ac_try" in
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_link") 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && {
8432 test -z "$ac_c_werror_flag" ||
8433 test ! -s conftest.err
8434 } && test -s conftest$ac_exeext &&
8435 $as_test_x conftest$ac_exeext; then
8437 lt_aix_libpath_sed='
8438 /Import File Strings/,/^$/ {
8439 /^0/ {
8440 s/^0 *\(.*\)$/\1/
8444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8445 # Check for a 64-bit object if we didn't find anything.
8446 if test -z "$aix_libpath"; then
8447 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8449 else
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8457 conftest$ac_exeext conftest.$ac_ext
8458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8460 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8461 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8462 else
8463 if test "$host_cpu" = ia64; then
8464 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8465 allow_undefined_flag="-z nodefs"
8466 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8467 else
8468 # Determine the default libpath from the value encoded in an empty executable.
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8477 main ()
8481 return 0;
8483 _ACEOF
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (ac_try="$ac_link"
8486 case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_link") 2>conftest.er1
8492 ac_status=$?
8493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } && {
8498 test -z "$ac_c_werror_flag" ||
8499 test ! -s conftest.err
8500 } && test -s conftest$ac_exeext &&
8501 $as_test_x conftest$ac_exeext; then
8503 lt_aix_libpath_sed='
8504 /Import File Strings/,/^$/ {
8505 /^0/ {
8506 s/^0 *\(.*\)$/\1/
8510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511 # Check for a 64-bit object if we didn't find anything.
8512 if test -z "$aix_libpath"; then
8513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523 conftest$ac_exeext conftest.$ac_ext
8524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8526 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8527 # Warning - without using the other run time loading flags,
8528 # -berok will link without error, but may produce a broken library.
8529 no_undefined_flag=' ${wl}-bernotok'
8530 allow_undefined_flag=' ${wl}-berok'
8531 # Exported symbols can be pulled into shared objects from archives
8532 whole_archive_flag_spec='$convenience'
8533 archive_cmds_need_lc=yes
8534 # This is similar to how AIX traditionally builds its shared libraries.
8535 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8540 amigaos*)
8541 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)'
8542 hardcode_libdir_flag_spec='-L$libdir'
8543 hardcode_minus_L=yes
8544 # see comment about different semantics on the GNU ld section
8545 ld_shlibs=no
8548 bsdi[45]*)
8549 export_dynamic_flag_spec=-rdynamic
8552 cygwin* | mingw* | pw32*)
8553 # When not using gcc, we currently assume that we are using
8554 # Microsoft Visual C++.
8555 # hardcode_libdir_flag_spec is actually meaningless, as there is
8556 # no search path for DLLs.
8557 hardcode_libdir_flag_spec=' '
8558 allow_undefined_flag=unsupported
8559 # Tell ltmain to make .lib files, not .a files.
8560 libext=lib
8561 # Tell ltmain to make .dll files, not .so files.
8562 shrext_cmds=".dll"
8563 # FIXME: Setting linknames here is a bad hack.
8564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8565 # The linker will automatically build a .lib file if we build a DLL.
8566 old_archive_From_new_cmds='true'
8567 # FIXME: Should let the user specify the lib program.
8568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8569 fix_srcfile_path='`cygpath -w "$srcfile"`'
8570 enable_shared_with_static_runtimes=yes
8573 darwin* | rhapsody*)
8574 case $host_os in
8575 rhapsody* | darwin1.[012])
8576 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8578 *) # Darwin 1.3 on
8579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8580 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8581 else
8582 case ${MACOSX_DEPLOYMENT_TARGET} in
8583 10.[012])
8584 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8586 10.*)
8587 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8589 esac
8592 esac
8593 archive_cmds_need_lc=no
8594 hardcode_direct=no
8595 hardcode_automatic=yes
8596 hardcode_shlibpath_var=unsupported
8597 whole_archive_flag_spec=''
8598 link_all_deplibs=yes
8599 if test "$GCC" = yes ; then
8600 output_verbose_link_cmd='echo'
8601 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8602 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8603 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8604 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8605 else
8606 case $cc_basename in
8607 xlc*)
8608 output_verbose_link_cmd='echo'
8609 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8610 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8611 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8612 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8613 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}'
8616 ld_shlibs=no
8618 esac
8622 dgux*)
8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8624 hardcode_libdir_flag_spec='-L$libdir'
8625 hardcode_shlibpath_var=no
8628 freebsd1*)
8629 ld_shlibs=no
8632 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8633 # support. Future versions do this automatically, but an explicit c++rt0.o
8634 # does not break anything, and helps significantly (at the cost of a little
8635 # extra space).
8636 freebsd2.2*)
8637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8638 hardcode_libdir_flag_spec='-R$libdir'
8639 hardcode_direct=yes
8640 hardcode_shlibpath_var=no
8643 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8644 freebsd2*)
8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8646 hardcode_direct=yes
8647 hardcode_minus_L=yes
8648 hardcode_shlibpath_var=no
8651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8652 freebsd* | dragonfly*)
8653 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8654 hardcode_libdir_flag_spec='-R$libdir'
8655 hardcode_direct=yes
8656 hardcode_shlibpath_var=no
8659 hpux9*)
8660 if test "$GCC" = yes; then
8661 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'
8662 else
8663 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'
8665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8666 hardcode_libdir_separator=:
8667 hardcode_direct=yes
8669 # hardcode_minus_L: Not really in the search PATH,
8670 # but as the default location of the library.
8671 hardcode_minus_L=yes
8672 export_dynamic_flag_spec='${wl}-E'
8675 hpux10*)
8676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8678 else
8679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8681 if test "$with_gnu_ld" = no; then
8682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8683 hardcode_libdir_separator=:
8685 hardcode_direct=yes
8686 export_dynamic_flag_spec='${wl}-E'
8688 # hardcode_minus_L: Not really in the search PATH,
8689 # but as the default location of the library.
8690 hardcode_minus_L=yes
8694 hpux11*)
8695 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8696 case $host_cpu in
8697 hppa*64*)
8698 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8700 ia64*)
8701 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8706 esac
8707 else
8708 case $host_cpu in
8709 hppa*64*)
8710 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 ia64*)
8713 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8718 esac
8720 if test "$with_gnu_ld" = no; then
8721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722 hardcode_libdir_separator=:
8724 case $host_cpu in
8725 hppa*64*|ia64*)
8726 hardcode_libdir_flag_spec_ld='+b $libdir'
8727 hardcode_direct=no
8728 hardcode_shlibpath_var=no
8731 hardcode_direct=yes
8732 export_dynamic_flag_spec='${wl}-E'
8734 # hardcode_minus_L: Not really in the search PATH,
8735 # but as the default location of the library.
8736 hardcode_minus_L=yes
8738 esac
8742 irix5* | irix6* | nonstopux*)
8743 if test "$GCC" = yes; then
8744 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'
8745 else
8746 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'
8747 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 hardcode_libdir_separator=:
8751 link_all_deplibs=yes
8754 netbsd*)
8755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8757 else
8758 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8760 hardcode_libdir_flag_spec='-R$libdir'
8761 hardcode_direct=yes
8762 hardcode_shlibpath_var=no
8765 newsos6)
8766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_direct=yes
8768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769 hardcode_libdir_separator=:
8770 hardcode_shlibpath_var=no
8773 openbsd*)
8774 if test -f /usr/libexec/ld.so; then
8775 hardcode_direct=yes
8776 hardcode_shlibpath_var=no
8777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8779 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8781 export_dynamic_flag_spec='${wl}-E'
8782 else
8783 case $host_os in
8784 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8786 hardcode_libdir_flag_spec='-R$libdir'
8789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8792 esac
8794 else
8795 ld_shlibs=no
8799 os2*)
8800 hardcode_libdir_flag_spec='-L$libdir'
8801 hardcode_minus_L=yes
8802 allow_undefined_flag=unsupported
8803 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'
8804 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8807 osf3*)
8808 if test "$GCC" = yes; then
8809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8810 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'
8811 else
8812 allow_undefined_flag=' -expect_unresolved \*'
8813 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'
8815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816 hardcode_libdir_separator=:
8819 osf4* | osf5*) # as osf3* with the addition of -msym flag
8820 if test "$GCC" = yes; then
8821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8822 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'
8823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824 else
8825 allow_undefined_flag=' -expect_unresolved \*'
8826 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'
8827 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8828 $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'
8830 # Both c and cxx compiler support -rpath directly
8831 hardcode_libdir_flag_spec='-rpath $libdir'
8833 hardcode_libdir_separator=:
8836 solaris*)
8837 no_undefined_flag=' -z text'
8838 if test "$GCC" = yes; then
8839 wlarc='${wl}'
8840 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8842 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8843 else
8844 wlarc=''
8845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8849 hardcode_libdir_flag_spec='-R$libdir'
8850 hardcode_shlibpath_var=no
8851 case $host_os in
8852 solaris2.[0-5] | solaris2.[0-5].*) ;;
8854 # The compiler driver will combine and reorder linker options,
8855 # but understands `-z linker_flag'. GCC discards it without `$wl',
8856 # but is careful enough not to reorder.
8857 # Supported since Solaris 2.6 (maybe 2.5.1?)
8858 if test "$GCC" = yes; then
8859 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8860 else
8861 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8864 esac
8865 link_all_deplibs=yes
8868 sunos4*)
8869 if test "x$host_vendor" = xsequent; then
8870 # Use $CC to link under sequent, because it throws in some extra .o
8871 # files that make .init and .fini sections work.
8872 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8873 else
8874 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8876 hardcode_libdir_flag_spec='-L$libdir'
8877 hardcode_direct=yes
8878 hardcode_minus_L=yes
8879 hardcode_shlibpath_var=no
8882 sysv4)
8883 case $host_vendor in
8884 sni)
8885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8886 hardcode_direct=yes # is this really true???
8888 siemens)
8889 ## LD is ld it makes a PLAMLIB
8890 ## CC just makes a GrossModule.
8891 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8892 reload_cmds='$CC -r -o $output$reload_objs'
8893 hardcode_direct=no
8895 motorola)
8896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8899 esac
8900 runpath_var='LD_RUN_PATH'
8901 hardcode_shlibpath_var=no
8904 sysv4.3*)
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_shlibpath_var=no
8907 export_dynamic_flag_spec='-Bexport'
8910 sysv4*MP*)
8911 if test -d /usr/nec; then
8912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913 hardcode_shlibpath_var=no
8914 runpath_var=LD_RUN_PATH
8915 hardcode_runpath_var=yes
8916 ld_shlibs=yes
8920 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8921 no_undefined_flag='${wl}-z,text'
8922 archive_cmds_need_lc=no
8923 hardcode_shlibpath_var=no
8924 runpath_var='LD_RUN_PATH'
8926 if test "$GCC" = yes; then
8927 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8928 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8929 else
8930 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8931 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8935 sysv5* | sco3.2v5* | sco5v6*)
8936 # Note: We can NOT use -z defs as we might desire, because we do not
8937 # link with -lc, and that would cause any symbols used from libc to
8938 # always be unresolved, which means just about no library would
8939 # ever link correctly. If we're not using GNU ld we use -z text
8940 # though, which does catch some bad symbols but isn't as heavy-handed
8941 # as -z defs.
8942 no_undefined_flag='${wl}-z,text'
8943 allow_undefined_flag='${wl}-z,nodefs'
8944 archive_cmds_need_lc=no
8945 hardcode_shlibpath_var=no
8946 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8947 hardcode_libdir_separator=':'
8948 link_all_deplibs=yes
8949 export_dynamic_flag_spec='${wl}-Bexport'
8950 runpath_var='LD_RUN_PATH'
8952 if test "$GCC" = yes; then
8953 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8955 else
8956 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8961 uts4*)
8962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963 hardcode_libdir_flag_spec='-L$libdir'
8964 hardcode_shlibpath_var=no
8968 ld_shlibs=no
8970 esac
8973 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8974 echo "${ECHO_T}$ld_shlibs" >&6; }
8975 test "$ld_shlibs" = no && can_build_shared=no
8978 # Do we need to explicitly link libc?
8980 case "x$archive_cmds_need_lc" in
8981 x|xyes)
8982 # Assume -lc should be added
8983 archive_cmds_need_lc=yes
8985 if test "$enable_shared" = yes && test "$GCC" = yes; then
8986 case $archive_cmds in
8987 *'~'*)
8988 # FIXME: we may have to deal with multi-command sequences.
8990 '$CC '*)
8991 # Test whether the compiler implicitly links with -lc since on some
8992 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8993 # to ld, don't add -lc before -lgcc.
8994 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8995 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8996 $rm conftest*
8997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000 (eval $ac_compile) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } 2>conftest.err; then
9004 soname=conftest
9005 lib=conftest
9006 libobjs=conftest.$ac_objext
9007 deplibs=
9008 wl=$lt_prog_compiler_wl
9009 pic_flag=$lt_prog_compiler_pic
9010 compiler_flags=-v
9011 linker_flags=-v
9012 verstring=
9013 output_objdir=.
9014 libname=conftest
9015 lt_save_allow_undefined_flag=$allow_undefined_flag
9016 allow_undefined_flag=
9017 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9018 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }
9022 then
9023 archive_cmds_need_lc=no
9024 else
9025 archive_cmds_need_lc=yes
9027 allow_undefined_flag=$lt_save_allow_undefined_flag
9028 else
9029 cat conftest.err 1>&5
9031 $rm conftest*
9032 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9033 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9035 esac
9038 esac
9040 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9041 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9042 library_names_spec=
9043 libname_spec='lib$name'
9044 soname_spec=
9045 shrext_cmds=".so"
9046 postinstall_cmds=
9047 postuninstall_cmds=
9048 finish_cmds=
9049 finish_eval=
9050 shlibpath_var=
9051 shlibpath_overrides_runpath=unknown
9052 version_type=none
9053 dynamic_linker="$host_os ld.so"
9054 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9056 if test "$GCC" = yes; then
9057 case $host_os in
9058 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9059 *) lt_awk_arg="/^libraries:/" ;;
9060 esac
9061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9062 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9063 # if the path contains ";" then we assume it to be the separator
9064 # otherwise default to the standard path separator (i.e. ":") - it is
9065 # assumed that no part of a normal pathname contains ";" but that should
9066 # okay in the real world where ";" in dirpaths is itself problematic.
9067 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9068 else
9069 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9071 # Ok, now we have the path, separated by spaces, we can step through it
9072 # and add multilib dir if necessary.
9073 lt_tmp_lt_search_path_spec=
9074 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9075 for lt_sys_path in $lt_search_path_spec; do
9076 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9077 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9078 else
9079 test -d "$lt_sys_path" && \
9080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9082 done
9083 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9084 BEGIN {RS=" "; FS="/|\n";} {
9085 lt_foo="";
9086 lt_count=0;
9087 for (lt_i = NF; lt_i > 0; lt_i--) {
9088 if ($lt_i != "" && $lt_i != ".") {
9089 if ($lt_i == "..") {
9090 lt_count++;
9091 } else {
9092 if (lt_count == 0) {
9093 lt_foo="/" $lt_i lt_foo;
9094 } else {
9095 lt_count--;
9100 if (lt_foo != "") { lt_freq[lt_foo]++; }
9101 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9103 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9104 else
9105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9107 need_lib_prefix=unknown
9108 hardcode_into_libs=no
9110 # when you set need_version to no, make sure it does not cause -set_version
9111 # flags to be left without arguments
9112 need_version=unknown
9114 case $host_os in
9115 aix3*)
9116 version_type=linux
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9118 shlibpath_var=LIBPATH
9120 # AIX 3 has no versioning support, so we append a major version to the name.
9121 soname_spec='${libname}${release}${shared_ext}$major'
9124 aix[4-9]*)
9125 version_type=linux
9126 need_lib_prefix=no
9127 need_version=no
9128 hardcode_into_libs=yes
9129 if test "$host_cpu" = ia64; then
9130 # AIX 5 supports IA64
9131 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 else
9134 # With GCC up to 2.95.x, collect2 would create an import file
9135 # for dependence libraries. The import file would start with
9136 # the line `#! .'. This would cause the generated library to
9137 # depend on `.', always an invalid library. This was fixed in
9138 # development snapshots of GCC prior to 3.0.
9139 case $host_os in
9140 aix4 | aix4.[01] | aix4.[01].*)
9141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9142 echo ' yes '
9143 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9145 else
9146 can_build_shared=no
9149 esac
9150 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9151 # soname into executable. Probably we can add versioning support to
9152 # collect2, so additional links can be useful in future.
9153 if test "$aix_use_runtimelinking" = yes; then
9154 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9155 # instead of lib<name>.a to let people know that these are not
9156 # typical AIX shared libraries.
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 else
9159 # We preserve .a as extension for shared libraries through AIX4.2
9160 # and later when we are not doing run time linking.
9161 library_names_spec='${libname}${release}.a $libname.a'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9164 shlibpath_var=LIBPATH
9168 amigaos*)
9169 library_names_spec='$libname.ixlibrary $libname.a'
9170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9171 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'
9174 beos*)
9175 library_names_spec='${libname}${shared_ext}'
9176 dynamic_linker="$host_os ld.so"
9177 shlibpath_var=LIBRARY_PATH
9180 bsdi[45]*)
9181 version_type=linux
9182 need_version=no
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9188 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9189 # the default ld.so.conf also contains /usr/contrib/lib and
9190 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9191 # libtool to hard-code these into programs
9194 cygwin* | mingw* | pw32*)
9195 version_type=windows
9196 shrext_cmds=".dll"
9197 need_version=no
9198 need_lib_prefix=no
9200 case $GCC,$host_os in
9201 yes,cygwin* | yes,mingw* | yes,pw32*)
9202 library_names_spec='$libname.dll.a'
9203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9204 postinstall_cmds='base_file=`basename \${file}`~
9205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9206 dldir=$destdir/`dirname \$dlpath`~
9207 test -d \$dldir || mkdir -p \$dldir~
9208 $install_prog $dir/$dlname \$dldir/$dlname~
9209 chmod a+x \$dldir/$dlname'
9210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9211 dlpath=$dir/\$dldll~
9212 $rm \$dlpath'
9213 shlibpath_overrides_runpath=yes
9215 case $host_os in
9216 cygwin*)
9217 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9218 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9219 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9221 mingw*)
9222 # MinGW DLLs use traditional 'lib' prefix
9223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9224 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9225 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9226 # It is most probably a Windows format PATH printed by
9227 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9228 # path with ; separators, and with drive letters. We can handle the
9229 # drive letters (cygwin fileutils understands them), so leave them,
9230 # especially as we might pass files found there to a mingw objdump,
9231 # which wouldn't understand a cygwinified path. Ahh.
9232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9233 else
9234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9237 pw32*)
9238 # pw32 DLLs use 'pw' prefix rather than 'lib'
9239 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9241 esac
9245 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9247 esac
9248 dynamic_linker='Win32 ld.exe'
9249 # FIXME: first we should search . and the directory the executable is in
9250 shlibpath_var=PATH
9253 darwin* | rhapsody*)
9254 dynamic_linker="$host_os dyld"
9255 version_type=darwin
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9259 soname_spec='${libname}${release}${major}$shared_ext'
9260 shlibpath_overrides_runpath=yes
9261 shlibpath_var=DYLD_LIBRARY_PATH
9262 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9264 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9268 dgux*)
9269 version_type=linux
9270 need_lib_prefix=no
9271 need_version=no
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 shlibpath_var=LD_LIBRARY_PATH
9277 freebsd1*)
9278 dynamic_linker=no
9281 freebsd* | dragonfly*)
9282 # DragonFly does not have aout. When/if they implement a new
9283 # versioning mechanism, adjust this.
9284 if test -x /usr/bin/objformat; then
9285 objformat=`/usr/bin/objformat`
9286 else
9287 case $host_os in
9288 freebsd[123]*) objformat=aout ;;
9289 *) objformat=elf ;;
9290 esac
9292 version_type=freebsd-$objformat
9293 case $version_type in
9294 freebsd-elf*)
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9296 need_version=no
9297 need_lib_prefix=no
9299 freebsd-*)
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9301 need_version=yes
9303 esac
9304 shlibpath_var=LD_LIBRARY_PATH
9305 case $host_os in
9306 freebsd2*)
9307 shlibpath_overrides_runpath=yes
9309 freebsd3.[01]* | freebsdelf3.[01]*)
9310 shlibpath_overrides_runpath=yes
9311 hardcode_into_libs=yes
9313 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9314 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9315 shlibpath_overrides_runpath=no
9316 hardcode_into_libs=yes
9318 *) # from 4.6 on, and DragonFly
9319 shlibpath_overrides_runpath=yes
9320 hardcode_into_libs=yes
9322 esac
9325 gnu*)
9326 version_type=linux
9327 need_lib_prefix=no
9328 need_version=no
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 hardcode_into_libs=yes
9335 hpux9* | hpux10* | hpux11*)
9336 # Give a soname corresponding to the major version so that dld.sl refuses to
9337 # link against other versions.
9338 version_type=sunos
9339 need_lib_prefix=no
9340 need_version=no
9341 case $host_cpu in
9342 ia64*)
9343 shrext_cmds='.so'
9344 hardcode_into_libs=yes
9345 dynamic_linker="$host_os dld.so"
9346 shlibpath_var=LD_LIBRARY_PATH
9347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 if test "X$HPUX_IA64_MODE" = X32; then
9351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9352 else
9353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9357 hppa*64*)
9358 shrext_cmds='.sl'
9359 hardcode_into_libs=yes
9360 dynamic_linker="$host_os dld.sl"
9361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9369 shrext_cmds='.sl'
9370 dynamic_linker="$host_os dld.sl"
9371 shlibpath_var=SHLIB_PATH
9372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9376 esac
9377 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9378 postinstall_cmds='chmod 555 $lib'
9381 interix[3-9]*)
9382 version_type=linux
9383 need_lib_prefix=no
9384 need_version=no
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=no
9390 hardcode_into_libs=yes
9393 irix5* | irix6* | nonstopux*)
9394 case $host_os in
9395 nonstopux*) version_type=nonstopux ;;
9397 if test "$lt_cv_prog_gnu_ld" = yes; then
9398 version_type=linux
9399 else
9400 version_type=irix
9401 fi ;;
9402 esac
9403 need_lib_prefix=no
9404 need_version=no
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9407 case $host_os in
9408 irix5* | nonstopux*)
9409 libsuff= shlibsuff=
9412 case $LD in # libtool.m4 will add one of these switches to LD
9413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9414 libsuff= shlibsuff= libmagic=32-bit;;
9415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9416 libsuff=32 shlibsuff=N32 libmagic=N32;;
9417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9418 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9419 *) libsuff= shlibsuff= libmagic=never-match;;
9420 esac
9422 esac
9423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9424 shlibpath_overrides_runpath=no
9425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9427 hardcode_into_libs=yes
9430 # No shared lib support for Linux oldld, aout, or coff.
9431 linux*oldld* | linux*aout* | linux*coff*)
9432 dynamic_linker=no
9435 # This must be Linux ELF.
9436 linux* | k*bsd*-gnu)
9437 version_type=linux
9438 need_lib_prefix=no
9439 need_version=no
9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9443 shlibpath_var=LD_LIBRARY_PATH
9444 shlibpath_overrides_runpath=no
9445 # This implies no fast_install, which is unacceptable.
9446 # Some rework will be needed to allow for fast_install
9447 # before this can be enabled.
9448 hardcode_into_libs=yes
9450 # Append ld.so.conf contents to the search path
9451 if test -f /etc/ld.so.conf; then
9452 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9453 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9456 # We used to test for /lib/ld.so.1 and disable shared libraries on
9457 # powerpc, because MkLinux only supported shared libraries with the
9458 # GNU dynamic linker. Since this was broken with cross compilers,
9459 # most powerpc-linux boxes support dynamic linking these days and
9460 # people can always --disable-shared, the test was removed, and we
9461 # assume the GNU/Linux dynamic linker is in use.
9462 dynamic_linker='GNU/Linux ld.so'
9465 netbsd*)
9466 version_type=sunos
9467 need_lib_prefix=no
9468 need_version=no
9469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9472 dynamic_linker='NetBSD (a.out) ld.so'
9473 else
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 dynamic_linker='NetBSD ld.elf_so'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 shlibpath_overrides_runpath=yes
9480 hardcode_into_libs=yes
9483 newsos6)
9484 version_type=linux
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=yes
9490 nto-qnx*)
9491 version_type=linux
9492 need_lib_prefix=no
9493 need_version=no
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 shlibpath_var=LD_LIBRARY_PATH
9497 shlibpath_overrides_runpath=yes
9500 openbsd*)
9501 version_type=sunos
9502 sys_lib_dlsearch_path_spec="/usr/lib"
9503 need_lib_prefix=no
9504 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9505 case $host_os in
9506 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9507 *) need_version=no ;;
9508 esac
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9511 shlibpath_var=LD_LIBRARY_PATH
9512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9513 case $host_os in
9514 openbsd2.[89] | openbsd2.[89].*)
9515 shlibpath_overrides_runpath=no
9518 shlibpath_overrides_runpath=yes
9520 esac
9521 else
9522 shlibpath_overrides_runpath=yes
9526 os2*)
9527 libname_spec='$name'
9528 shrext_cmds=".dll"
9529 need_lib_prefix=no
9530 library_names_spec='$libname${shared_ext} $libname.a'
9531 dynamic_linker='OS/2 ld.exe'
9532 shlibpath_var=LIBPATH
9535 osf3* | osf4* | osf5*)
9536 version_type=osf
9537 need_lib_prefix=no
9538 need_version=no
9539 soname_spec='${libname}${release}${shared_ext}$major'
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9543 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9546 rdos*)
9547 dynamic_linker=no
9550 solaris*)
9551 version_type=linux
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 shlibpath_overrides_runpath=yes
9558 hardcode_into_libs=yes
9559 # ldd complains unless libraries are executable
9560 postinstall_cmds='chmod +x $lib'
9563 sunos4*)
9564 version_type=sunos
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=yes
9569 if test "$with_gnu_ld" = yes; then
9570 need_lib_prefix=no
9572 need_version=yes
9575 sysv4 | sysv4.3*)
9576 version_type=linux
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 case $host_vendor in
9581 sni)
9582 shlibpath_overrides_runpath=no
9583 need_lib_prefix=no
9584 export_dynamic_flag_spec='${wl}-Blargedynsym'
9585 runpath_var=LD_RUN_PATH
9587 siemens)
9588 need_lib_prefix=no
9590 motorola)
9591 need_lib_prefix=no
9592 need_version=no
9593 shlibpath_overrides_runpath=no
9594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9596 esac
9599 sysv4*MP*)
9600 if test -d /usr/nec ;then
9601 version_type=linux
9602 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9603 soname_spec='$libname${shared_ext}.$major'
9604 shlibpath_var=LD_LIBRARY_PATH
9608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9609 version_type=freebsd-elf
9610 need_lib_prefix=no
9611 need_version=no
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 hardcode_into_libs=yes
9616 if test "$with_gnu_ld" = yes; then
9617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9618 shlibpath_overrides_runpath=no
9619 else
9620 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9621 shlibpath_overrides_runpath=yes
9622 case $host_os in
9623 sco3.2v5*)
9624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9626 esac
9628 sys_lib_dlsearch_path_spec='/usr/lib'
9631 uts4*)
9632 version_type=linux
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 shlibpath_var=LD_LIBRARY_PATH
9639 dynamic_linker=no
9641 esac
9642 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9643 echo "${ECHO_T}$dynamic_linker" >&6; }
9644 test "$dynamic_linker" = no && can_build_shared=no
9646 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9652 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9653 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9659 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9662 if test "$GCC" = yes; then
9663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9666 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9667 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9668 hardcode_action=
9669 if test -n "$hardcode_libdir_flag_spec" || \
9670 test -n "$runpath_var" || \
9671 test "X$hardcode_automatic" = "Xyes" ; then
9673 # We can hardcode non-existant directories.
9674 if test "$hardcode_direct" != no &&
9675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9676 # have to relink, otherwise we might link with an installed library
9677 # when we should be linking with a yet-to-be-installed one
9678 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9679 test "$hardcode_minus_L" != no; then
9680 # Linking always hardcodes the temporary library directory.
9681 hardcode_action=relink
9682 else
9683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9684 hardcode_action=immediate
9686 else
9687 # We cannot hardcode anything, or else we can only hardcode existing
9688 # directories.
9689 hardcode_action=unsupported
9691 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9692 echo "${ECHO_T}$hardcode_action" >&6; }
9694 if test "$hardcode_action" = relink; then
9695 # Fast installation is not supported
9696 enable_fast_install=no
9697 elif test "$shlibpath_overrides_runpath" = yes ||
9698 test "$enable_shared" = no; then
9699 # Fast installation is not necessary
9700 enable_fast_install=needless
9703 striplib=
9704 old_striplib=
9705 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9706 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9707 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9708 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9709 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9710 { echo "$as_me:$LINENO: result: yes" >&5
9711 echo "${ECHO_T}yes" >&6; }
9712 else
9713 # FIXME - insert some real tests, host_os isn't really good enough
9714 case $host_os in
9715 darwin*)
9716 if test -n "$STRIP" ; then
9717 striplib="$STRIP -x"
9718 old_striplib="$STRIP -S"
9719 { echo "$as_me:$LINENO: result: yes" >&5
9720 echo "${ECHO_T}yes" >&6; }
9721 else
9722 { echo "$as_me:$LINENO: result: no" >&5
9723 echo "${ECHO_T}no" >&6; }
9727 { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9730 esac
9733 if test "x$enable_dlopen" != xyes; then
9734 enable_dlopen=unknown
9735 enable_dlopen_self=unknown
9736 enable_dlopen_self_static=unknown
9737 else
9738 lt_cv_dlopen=no
9739 lt_cv_dlopen_libs=
9741 case $host_os in
9742 beos*)
9743 lt_cv_dlopen="load_add_on"
9744 lt_cv_dlopen_libs=
9745 lt_cv_dlopen_self=yes
9748 mingw* | pw32*)
9749 lt_cv_dlopen="LoadLibrary"
9750 lt_cv_dlopen_libs=
9753 cygwin*)
9754 lt_cv_dlopen="dlopen"
9755 lt_cv_dlopen_libs=
9758 darwin*)
9759 # if libdl is installed we need to link against it
9760 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9761 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765 ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-ldl $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h. */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char dlopen ();
9782 main ()
9784 return dlopen ();
9786 return 0;
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_link") 2>conftest.er1
9797 ac_status=$?
9798 grep -v '^ *+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } && {
9803 test -z "$ac_c_werror_flag" ||
9804 test ! -s conftest.err
9805 } && test -s conftest$ac_exeext &&
9806 $as_test_x conftest$ac_exeext; then
9807 ac_cv_lib_dl_dlopen=yes
9808 else
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_cv_lib_dl_dlopen=no
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816 conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9819 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9820 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9821 if test $ac_cv_lib_dl_dlopen = yes; then
9822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9823 else
9825 lt_cv_dlopen="dyld"
9826 lt_cv_dlopen_libs=
9827 lt_cv_dlopen_self=yes
9834 { echo "$as_me:$LINENO: checking for shl_load" >&5
9835 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9836 if test "${ac_cv_func_shl_load+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9847 #define shl_load innocuous_shl_load
9849 /* System header to define __stub macros and hopefully few prototypes,
9850 which can conflict with char shl_load (); below.
9851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9852 <limits.h> exists even on freestanding compilers. */
9854 #ifdef __STDC__
9855 # include <limits.h>
9856 #else
9857 # include <assert.h>
9858 #endif
9860 #undef shl_load
9862 /* Override any GCC internal prototype to avoid an error.
9863 Use char because int might match the return type of a GCC
9864 builtin and then its argument prototype would still apply. */
9865 #ifdef __cplusplus
9866 extern "C"
9867 #endif
9868 char shl_load ();
9869 /* The GNU C library defines this for functions which it implements
9870 to always fail with ENOSYS. Some functions are actually named
9871 something starting with __ and the normal name is an alias. */
9872 #if defined __stub_shl_load || defined __stub___shl_load
9873 choke me
9874 #endif
9877 main ()
9879 return shl_load ();
9881 return 0;
9883 _ACEOF
9884 rm -f conftest.$ac_objext conftest$ac_exeext
9885 if { (ac_try="$ac_link"
9886 case "(($ac_try" in
9887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888 *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891 (eval "$ac_link") 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } && {
9898 test -z "$ac_c_werror_flag" ||
9899 test ! -s conftest.err
9900 } && test -s conftest$ac_exeext &&
9901 $as_test_x conftest$ac_exeext; then
9902 ac_cv_func_shl_load=yes
9903 else
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_func_shl_load=no
9910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9911 conftest$ac_exeext conftest.$ac_ext
9913 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9914 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9915 if test $ac_cv_func_shl_load = yes; then
9916 lt_cv_dlopen="shl_load"
9917 else
9918 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9919 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 ac_check_lib_save_LIBS=$LIBS
9924 LIBS="-ldld $LIBS"
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char shl_load ();
9940 main ()
9942 return shl_load ();
9944 return 0;
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9949 case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest$ac_exeext &&
9964 $as_test_x conftest$ac_exeext; then
9965 ac_cv_lib_dld_shl_load=yes
9966 else
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_lib_dld_shl_load=no
9973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9974 conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9978 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9979 if test $ac_cv_lib_dld_shl_load = yes; then
9980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9981 else
9982 { echo "$as_me:$LINENO: checking for dlopen" >&5
9983 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9984 if test "${ac_cv_func_dlopen+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9995 #define dlopen innocuous_dlopen
9997 /* System header to define __stub macros and hopefully few prototypes,
9998 which can conflict with char dlopen (); below.
9999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10000 <limits.h> exists even on freestanding compilers. */
10002 #ifdef __STDC__
10003 # include <limits.h>
10004 #else
10005 # include <assert.h>
10006 #endif
10008 #undef dlopen
10010 /* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10013 #ifdef __cplusplus
10014 extern "C"
10015 #endif
10016 char dlopen ();
10017 /* The GNU C library defines this for functions which it implements
10018 to always fail with ENOSYS. Some functions are actually named
10019 something starting with __ and the normal name is an alias. */
10020 #if defined __stub_dlopen || defined __stub___dlopen
10021 choke me
10022 #endif
10025 main ()
10027 return dlopen ();
10029 return 0;
10031 _ACEOF
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>conftest.er1
10040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && {
10046 test -z "$ac_c_werror_flag" ||
10047 test ! -s conftest.err
10048 } && test -s conftest$ac_exeext &&
10049 $as_test_x conftest$ac_exeext; then
10050 ac_cv_func_dlopen=yes
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_cv_func_dlopen=no
10058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10059 conftest$ac_exeext conftest.$ac_ext
10061 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10062 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10063 if test $ac_cv_func_dlopen = yes; then
10064 lt_cv_dlopen="dlopen"
10065 else
10066 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10067 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071 ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldl $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char dlopen ();
10088 main ()
10090 return dlopen ();
10092 return 0;
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10103 ac_status=$?
10104 grep -v '^ *+' conftest.er1 >conftest.err
10105 rm -f conftest.er1
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } && {
10109 test -z "$ac_c_werror_flag" ||
10110 test ! -s conftest.err
10111 } && test -s conftest$ac_exeext &&
10112 $as_test_x conftest$ac_exeext; then
10113 ac_cv_lib_dl_dlopen=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_lib_dl_dlopen=no
10121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10122 conftest$ac_exeext conftest.$ac_ext
10123 LIBS=$ac_check_lib_save_LIBS
10125 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10126 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10127 if test $ac_cv_lib_dl_dlopen = yes; then
10128 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10129 else
10130 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10131 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10132 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 ac_check_lib_save_LIBS=$LIBS
10136 LIBS="-lsvld $LIBS"
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h. */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10147 #ifdef __cplusplus
10148 extern "C"
10149 #endif
10150 char dlopen ();
10152 main ()
10154 return dlopen ();
10156 return 0;
10158 _ACEOF
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_link") 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest$ac_exeext &&
10176 $as_test_x conftest$ac_exeext; then
10177 ac_cv_lib_svld_dlopen=yes
10178 else
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_cv_lib_svld_dlopen=no
10185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10190 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10191 if test $ac_cv_lib_svld_dlopen = yes; then
10192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10193 else
10194 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10195 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10196 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-ldld $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h. */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 char dld_link ();
10216 main ()
10218 return dld_link ();
10220 return 0;
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest$ac_exeext &&
10240 $as_test_x conftest$ac_exeext; then
10241 ac_cv_lib_dld_dld_link=yes
10242 else
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_lib_dld_dld_link=no
10249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250 conftest$ac_exeext conftest.$ac_ext
10251 LIBS=$ac_check_lib_save_LIBS
10253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10254 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10255 if test $ac_cv_lib_dld_dld_link = yes; then
10256 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10275 esac
10277 if test "x$lt_cv_dlopen" != xno; then
10278 enable_dlopen=yes
10279 else
10280 enable_dlopen=no
10283 case $lt_cv_dlopen in
10284 dlopen)
10285 save_CPPFLAGS="$CPPFLAGS"
10286 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10288 save_LDFLAGS="$LDFLAGS"
10289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10291 save_LIBS="$LIBS"
10292 LIBS="$lt_cv_dlopen_libs $LIBS"
10294 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10295 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10296 if test "${lt_cv_dlopen_self+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299 if test "$cross_compiling" = yes; then :
10300 lt_cv_dlopen_self=cross
10301 else
10302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10303 lt_status=$lt_dlunknown
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10305 "configure"
10306 #include "confdefs.h"
10308 #if HAVE_DLFCN_H
10309 #include <dlfcn.h>
10310 #endif
10312 #include <stdio.h>
10314 #ifdef RTLD_GLOBAL
10315 # define LT_DLGLOBAL RTLD_GLOBAL
10316 #else
10317 # ifdef DL_GLOBAL
10318 # define LT_DLGLOBAL DL_GLOBAL
10319 # else
10320 # define LT_DLGLOBAL 0
10321 # endif
10322 #endif
10324 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10325 find out it does not work in some platform. */
10326 #ifndef LT_DLLAZY_OR_NOW
10327 # ifdef RTLD_LAZY
10328 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10329 # else
10330 # ifdef DL_LAZY
10331 # define LT_DLLAZY_OR_NOW DL_LAZY
10332 # else
10333 # ifdef RTLD_NOW
10334 # define LT_DLLAZY_OR_NOW RTLD_NOW
10335 # else
10336 # ifdef DL_NOW
10337 # define LT_DLLAZY_OR_NOW DL_NOW
10338 # else
10339 # define LT_DLLAZY_OR_NOW 0
10340 # endif
10341 # endif
10342 # endif
10343 # endif
10344 #endif
10346 #ifdef __cplusplus
10347 extern "C" void exit (int);
10348 #endif
10350 void fnord() { int i=42;}
10351 int main ()
10353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10354 int status = $lt_dlunknown;
10356 if (self)
10358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10359 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10360 /* dlclose (self); */
10362 else
10363 puts (dlerror ());
10365 exit (status);
10368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369 (eval $ac_link) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10373 (./conftest; exit; ) >&5 2>/dev/null
10374 lt_status=$?
10375 case x$lt_status in
10376 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10377 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10378 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10379 esac
10380 else :
10381 # compilation failed
10382 lt_cv_dlopen_self=no
10385 rm -fr conftest*
10389 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10390 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10392 if test "x$lt_cv_dlopen_self" = xyes; then
10393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10394 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10395 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10396 if test "${lt_cv_dlopen_self_static+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 if test "$cross_compiling" = yes; then :
10400 lt_cv_dlopen_self_static=cross
10401 else
10402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10403 lt_status=$lt_dlunknown
10404 cat > conftest.$ac_ext <<EOF
10405 #line 10405 "configure"
10406 #include "confdefs.h"
10408 #if HAVE_DLFCN_H
10409 #include <dlfcn.h>
10410 #endif
10412 #include <stdio.h>
10414 #ifdef RTLD_GLOBAL
10415 # define LT_DLGLOBAL RTLD_GLOBAL
10416 #else
10417 # ifdef DL_GLOBAL
10418 # define LT_DLGLOBAL DL_GLOBAL
10419 # else
10420 # define LT_DLGLOBAL 0
10421 # endif
10422 #endif
10424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10425 find out it does not work in some platform. */
10426 #ifndef LT_DLLAZY_OR_NOW
10427 # ifdef RTLD_LAZY
10428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10429 # else
10430 # ifdef DL_LAZY
10431 # define LT_DLLAZY_OR_NOW DL_LAZY
10432 # else
10433 # ifdef RTLD_NOW
10434 # define LT_DLLAZY_OR_NOW RTLD_NOW
10435 # else
10436 # ifdef DL_NOW
10437 # define LT_DLLAZY_OR_NOW DL_NOW
10438 # else
10439 # define LT_DLLAZY_OR_NOW 0
10440 # endif
10441 # endif
10442 # endif
10443 # endif
10444 #endif
10446 #ifdef __cplusplus
10447 extern "C" void exit (int);
10448 #endif
10450 void fnord() { int i=42;}
10451 int main ()
10453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10454 int status = $lt_dlunknown;
10456 if (self)
10458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10459 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10460 /* dlclose (self); */
10462 else
10463 puts (dlerror ());
10465 exit (status);
10468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469 (eval $ac_link) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10473 (./conftest; exit; ) >&5 2>/dev/null
10474 lt_status=$?
10475 case x$lt_status in
10476 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10477 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10478 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10479 esac
10480 else :
10481 # compilation failed
10482 lt_cv_dlopen_self_static=no
10485 rm -fr conftest*
10489 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10490 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10493 CPPFLAGS="$save_CPPFLAGS"
10494 LDFLAGS="$save_LDFLAGS"
10495 LIBS="$save_LIBS"
10497 esac
10499 case $lt_cv_dlopen_self in
10500 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10501 *) enable_dlopen_self=unknown ;;
10502 esac
10504 case $lt_cv_dlopen_self_static in
10505 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10506 *) enable_dlopen_self_static=unknown ;;
10507 esac
10511 # Report which library types will actually be built
10512 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10513 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10514 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10515 echo "${ECHO_T}$can_build_shared" >&6; }
10517 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10518 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10519 test "$can_build_shared" = "no" && enable_shared=no
10521 # On AIX, shared libraries and static libraries use the same namespace, and
10522 # are all built from PIC.
10523 case $host_os in
10524 aix3*)
10525 test "$enable_shared" = yes && enable_static=no
10526 if test -n "$RANLIB"; then
10527 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10528 postinstall_cmds='$RANLIB $lib'
10532 aix[4-9]*)
10533 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10534 test "$enable_shared" = yes && enable_static=no
10537 esac
10538 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10539 echo "${ECHO_T}$enable_shared" >&6; }
10541 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10542 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10543 # Make sure either enable_shared or enable_static is yes.
10544 test "$enable_shared" = yes || enable_static=yes
10545 { echo "$as_me:$LINENO: result: $enable_static" >&5
10546 echo "${ECHO_T}$enable_static" >&6; }
10548 # The else clause should only fire when bootstrapping the
10549 # libtool distribution, otherwise you forgot to ship ltmain.sh
10550 # with your package, and you will get complaints that there are
10551 # no rules to generate ltmain.sh.
10552 if test -f "$ltmain"; then
10553 # See if we are running on zsh, and set the options which allow our commands through
10554 # without removal of \ escapes.
10555 if test -n "${ZSH_VERSION+set}" ; then
10556 setopt NO_GLOB_SUBST
10558 # Now quote all the things that may contain metacharacters while being
10559 # careful not to overquote the AC_SUBSTed values. We take copies of the
10560 # variables and quote the copies for generation of the libtool script.
10561 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10562 SED SHELL STRIP \
10563 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10564 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10565 deplibs_check_method reload_flag reload_cmds need_locks \
10566 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10567 lt_cv_sys_global_symbol_to_c_name_address \
10568 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10569 old_postinstall_cmds old_postuninstall_cmds \
10570 compiler \
10571 CC \
10572 LD \
10573 lt_prog_compiler_wl \
10574 lt_prog_compiler_pic \
10575 lt_prog_compiler_static \
10576 lt_prog_compiler_no_builtin_flag \
10577 export_dynamic_flag_spec \
10578 thread_safe_flag_spec \
10579 whole_archive_flag_spec \
10580 enable_shared_with_static_runtimes \
10581 old_archive_cmds \
10582 old_archive_from_new_cmds \
10583 predep_objects \
10584 postdep_objects \
10585 predeps \
10586 postdeps \
10587 compiler_lib_search_path \
10588 compiler_lib_search_dirs \
10589 archive_cmds \
10590 archive_expsym_cmds \
10591 postinstall_cmds \
10592 postuninstall_cmds \
10593 old_archive_from_expsyms_cmds \
10594 allow_undefined_flag \
10595 no_undefined_flag \
10596 export_symbols_cmds \
10597 hardcode_libdir_flag_spec \
10598 hardcode_libdir_flag_spec_ld \
10599 hardcode_libdir_separator \
10600 hardcode_automatic \
10601 module_cmds \
10602 module_expsym_cmds \
10603 lt_cv_prog_compiler_c_o \
10604 fix_srcfile_path \
10605 exclude_expsyms \
10606 include_expsyms; do
10608 case $var in
10609 old_archive_cmds | \
10610 old_archive_from_new_cmds | \
10611 archive_cmds | \
10612 archive_expsym_cmds | \
10613 module_cmds | \
10614 module_expsym_cmds | \
10615 old_archive_from_expsyms_cmds | \
10616 export_symbols_cmds | \
10617 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10618 postinstall_cmds | postuninstall_cmds | \
10619 old_postinstall_cmds | old_postuninstall_cmds | \
10620 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10621 # Double-quote double-evaled strings.
10622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10627 esac
10628 done
10630 case $lt_echo in
10631 *'\$0 --fallback-echo"')
10632 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10634 esac
10636 cfgfile="${ofile}T"
10637 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10638 $rm -f "$cfgfile"
10639 { echo "$as_me:$LINENO: creating $ofile" >&5
10640 echo "$as_me: creating $ofile" >&6;}
10642 cat <<__EOF__ >> "$cfgfile"
10643 #! $SHELL
10645 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10646 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10647 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10649 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10650 # Free Software Foundation, Inc.
10652 # This file is part of GNU Libtool:
10653 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10655 # This program is free software; you can redistribute it and/or modify
10656 # it under the terms of the GNU General Public License as published by
10657 # the Free Software Foundation; either version 2 of the License, or
10658 # (at your option) any later version.
10660 # This program is distributed in the hope that it will be useful, but
10661 # WITHOUT ANY WARRANTY; without even the implied warranty of
10662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10663 # General Public License for more details.
10665 # You should have received a copy of the GNU General Public License
10666 # along with this program; if not, write to the Free Software
10667 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10669 # As a special exception to the GNU General Public License, if you
10670 # distribute this file as part of a program that contains a
10671 # configuration script generated by Autoconf, you may include it under
10672 # the same distribution terms that you use for the rest of that program.
10674 # A sed program that does not truncate output.
10675 SED=$lt_SED
10677 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10678 Xsed="$SED -e 1s/^X//"
10680 # The HP-UX ksh and POSIX shell print the target directory to stdout
10681 # if CDPATH is set.
10682 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10684 # The names of the tagged configurations supported by this script.
10685 available_tags=
10687 # ### BEGIN LIBTOOL CONFIG
10689 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10691 # Shell to use when invoking shell scripts.
10692 SHELL=$lt_SHELL
10694 # Whether or not to build shared libraries.
10695 build_libtool_libs=$enable_shared
10697 # Whether or not to build static libraries.
10698 build_old_libs=$enable_static
10700 # Whether or not to add -lc for building shared libraries.
10701 build_libtool_need_lc=$archive_cmds_need_lc
10703 # Whether or not to disallow shared libs when runtime libs are static
10704 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10706 # Whether or not to optimize for fast installation.
10707 fast_install=$enable_fast_install
10709 # The host system.
10710 host_alias=$host_alias
10711 host=$host
10712 host_os=$host_os
10714 # The build system.
10715 build_alias=$build_alias
10716 build=$build
10717 build_os=$build_os
10719 # An echo program that does not interpret backslashes.
10720 echo=$lt_echo
10722 # The archiver.
10723 AR=$lt_AR
10724 AR_FLAGS=$lt_AR_FLAGS
10726 # A C compiler.
10727 LTCC=$lt_LTCC
10729 # LTCC compiler flags.
10730 LTCFLAGS=$lt_LTCFLAGS
10732 # A language-specific compiler.
10733 CC=$lt_compiler
10735 # Is the compiler the GNU C compiler?
10736 with_gcc=$GCC
10738 # An ERE matcher.
10739 EGREP=$lt_EGREP
10741 # The linker used to build libraries.
10742 LD=$lt_LD
10744 # Whether we need hard or soft links.
10745 LN_S=$lt_LN_S
10747 # A BSD-compatible nm program.
10748 NM=$lt_NM
10750 # A symbol stripping program
10751 STRIP=$lt_STRIP
10753 # Used to examine libraries when file_magic_cmd begins "file"
10754 MAGIC_CMD=$MAGIC_CMD
10756 # Used on cygwin: DLL creation program.
10757 DLLTOOL="$DLLTOOL"
10759 # Used on cygwin: object dumper.
10760 OBJDUMP="$OBJDUMP"
10762 # Used on cygwin: assembler.
10763 AS="$AS"
10765 # The name of the directory that contains temporary libtool files.
10766 objdir=$objdir
10768 # How to create reloadable object files.
10769 reload_flag=$lt_reload_flag
10770 reload_cmds=$lt_reload_cmds
10772 # How to pass a linker flag through the compiler.
10773 wl=$lt_lt_prog_compiler_wl
10775 # Object file suffix (normally "o").
10776 objext="$ac_objext"
10778 # Old archive suffix (normally "a").
10779 libext="$libext"
10781 # Shared library suffix (normally ".so").
10782 shrext_cmds='$shrext_cmds'
10784 # Executable file suffix (normally "").
10785 exeext="$exeext"
10787 # Additional compiler flags for building library objects.
10788 pic_flag=$lt_lt_prog_compiler_pic
10789 pic_mode=$pic_mode
10791 # What is the maximum length of a command?
10792 max_cmd_len=$lt_cv_sys_max_cmd_len
10794 # Does compiler simultaneously support -c and -o options?
10795 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10797 # Must we lock files when doing compilation?
10798 need_locks=$lt_need_locks
10800 # Do we need the lib prefix for modules?
10801 need_lib_prefix=$need_lib_prefix
10803 # Do we need a version for libraries?
10804 need_version=$need_version
10806 # Whether dlopen is supported.
10807 dlopen_support=$enable_dlopen
10809 # Whether dlopen of programs is supported.
10810 dlopen_self=$enable_dlopen_self
10812 # Whether dlopen of statically linked programs is supported.
10813 dlopen_self_static=$enable_dlopen_self_static
10815 # Compiler flag to prevent dynamic linking.
10816 link_static_flag=$lt_lt_prog_compiler_static
10818 # Compiler flag to turn off builtin functions.
10819 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10821 # Compiler flag to allow reflexive dlopens.
10822 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10824 # Compiler flag to generate shared objects directly from archives.
10825 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10827 # Compiler flag to generate thread-safe objects.
10828 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10830 # Library versioning type.
10831 version_type=$version_type
10833 # Format of library name prefix.
10834 libname_spec=$lt_libname_spec
10836 # List of archive names. First name is the real one, the rest are links.
10837 # The last name is the one that the linker finds with -lNAME.
10838 library_names_spec=$lt_library_names_spec
10840 # The coded name of the library, if different from the real name.
10841 soname_spec=$lt_soname_spec
10843 # Commands used to build and install an old-style archive.
10844 RANLIB=$lt_RANLIB
10845 old_archive_cmds=$lt_old_archive_cmds
10846 old_postinstall_cmds=$lt_old_postinstall_cmds
10847 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10849 # Create an old-style archive from a shared archive.
10850 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10852 # Create a temporary old-style archive to link instead of a shared archive.
10853 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10855 # Commands used to build and install a shared archive.
10856 archive_cmds=$lt_archive_cmds
10857 archive_expsym_cmds=$lt_archive_expsym_cmds
10858 postinstall_cmds=$lt_postinstall_cmds
10859 postuninstall_cmds=$lt_postuninstall_cmds
10861 # Commands used to build a loadable module (assumed same as above if empty)
10862 module_cmds=$lt_module_cmds
10863 module_expsym_cmds=$lt_module_expsym_cmds
10865 # Commands to strip libraries.
10866 old_striplib=$lt_old_striplib
10867 striplib=$lt_striplib
10869 # Dependencies to place before the objects being linked to create a
10870 # shared library.
10871 predep_objects=$lt_predep_objects
10873 # Dependencies to place after the objects being linked to create a
10874 # shared library.
10875 postdep_objects=$lt_postdep_objects
10877 # Dependencies to place before the objects being linked to create a
10878 # shared library.
10879 predeps=$lt_predeps
10881 # Dependencies to place after the objects being linked to create a
10882 # shared library.
10883 postdeps=$lt_postdeps
10885 # The directories searched by this compiler when creating a shared
10886 # library
10887 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10889 # The library search path used internally by the compiler when linking
10890 # a shared library.
10891 compiler_lib_search_path=$lt_compiler_lib_search_path
10893 # Method to check whether dependent libraries are shared objects.
10894 deplibs_check_method=$lt_deplibs_check_method
10896 # Command to use when deplibs_check_method == file_magic.
10897 file_magic_cmd=$lt_file_magic_cmd
10899 # Flag that allows shared libraries with undefined symbols to be built.
10900 allow_undefined_flag=$lt_allow_undefined_flag
10902 # Flag that forces no undefined symbols.
10903 no_undefined_flag=$lt_no_undefined_flag
10905 # Commands used to finish a libtool library installation in a directory.
10906 finish_cmds=$lt_finish_cmds
10908 # Same as above, but a single script fragment to be evaled but not shown.
10909 finish_eval=$lt_finish_eval
10911 # Take the output of nm and produce a listing of raw symbols and C names.
10912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10914 # Transform the output of nm in a proper C declaration
10915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10917 # Transform the output of nm in a C name address pair
10918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10920 # This is the shared library runtime path variable.
10921 runpath_var=$runpath_var
10923 # This is the shared library path variable.
10924 shlibpath_var=$shlibpath_var
10926 # Is shlibpath searched before the hard-coded library search path?
10927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10929 # How to hardcode a shared library path into an executable.
10930 hardcode_action=$hardcode_action
10932 # Whether we should hardcode library paths into libraries.
10933 hardcode_into_libs=$hardcode_into_libs
10935 # Flag to hardcode \$libdir into a binary during linking.
10936 # This must work even if \$libdir does not exist.
10937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10939 # If ld is used when linking, flag to hardcode \$libdir into
10940 # a binary during linking. This must work even if \$libdir does
10941 # not exist.
10942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10944 # Whether we need a single -rpath flag with a separated argument.
10945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10948 # resulting binary.
10949 hardcode_direct=$hardcode_direct
10951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10952 # resulting binary.
10953 hardcode_minus_L=$hardcode_minus_L
10955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10956 # the resulting binary.
10957 hardcode_shlibpath_var=$hardcode_shlibpath_var
10959 # Set to yes if building a shared library automatically hardcodes DIR into the library
10960 # and all subsequent libraries and executables linked against it.
10961 hardcode_automatic=$hardcode_automatic
10963 # Variables whose values should be saved in libtool wrapper scripts and
10964 # restored at relink time.
10965 variables_saved_for_relink="$variables_saved_for_relink"
10967 # Whether libtool must link a program against all its dependency libraries.
10968 link_all_deplibs=$link_all_deplibs
10970 # Compile-time system search path for libraries
10971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10973 # Run-time system search path for libraries
10974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10976 # Fix the shell variable \$srcfile for the compiler.
10977 fix_srcfile_path=$lt_fix_srcfile_path
10979 # Set to yes if exported symbols are required.
10980 always_export_symbols=$always_export_symbols
10982 # The commands to list exported symbols.
10983 export_symbols_cmds=$lt_export_symbols_cmds
10985 # The commands to extract the exported symbol list from a shared archive.
10986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10988 # Symbols that should not be listed in the preloaded symbols.
10989 exclude_expsyms=$lt_exclude_expsyms
10991 # Symbols that must always be exported.
10992 include_expsyms=$lt_include_expsyms
10994 # ### END LIBTOOL CONFIG
10996 __EOF__
10999 case $host_os in
11000 aix3*)
11001 cat <<\EOF >> "$cfgfile"
11003 # AIX sometimes has problems with the GCC collect2 program. For some
11004 # reason, if we set the COLLECT_NAMES environment variable, the problems
11005 # vanish in a puff of smoke.
11006 if test "X${COLLECT_NAMES+set}" != Xset; then
11007 COLLECT_NAMES=
11008 export COLLECT_NAMES
11012 esac
11014 # We use sed instead of cat because bash on DJGPP gets confused if
11015 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11016 # text mode, it properly converts lines to CR/LF. This bash problem
11017 # is reportedly fixed, but why not run on old versions too?
11018 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11020 mv -f "$cfgfile" "$ofile" || \
11021 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11022 chmod +x "$ofile"
11024 else
11025 # If there is no Makefile yet, we rely on a make rule to execute
11026 # `config.status --recheck' to rerun these tests and create the
11027 # libtool script then.
11028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11029 if test -f "$ltmain_in"; then
11030 test -f Makefile && make "$ltmain"
11035 ac_ext=c
11036 ac_cpp='$CPP $CPPFLAGS'
11037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11041 CC="$lt_save_CC"
11044 # Check whether --with-tags was given.
11045 if test "${with_tags+set}" = set; then
11046 withval=$with_tags; tagnames="$withval"
11050 if test -f "$ltmain" && test -n "$tagnames"; then
11051 if test ! -f "${ofile}"; then
11052 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11053 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11056 if test -z "$LTCC"; then
11057 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11058 if test -z "$LTCC"; then
11059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11060 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11061 else
11062 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11063 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11066 if test -z "$LTCFLAGS"; then
11067 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11070 # Extract list of available tagged configurations in $ofile.
11071 # Note that this assumes the entire list is on one line.
11072 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11075 for tagname in $tagnames; do
11076 IFS="$lt_save_ifs"
11077 # Check whether tagname contains only valid characters
11078 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11079 "") ;;
11080 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11081 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11082 { (exit 1); exit 1; }; }
11084 esac
11086 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11087 then
11088 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11089 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11090 { (exit 1); exit 1; }; }
11093 # Update the list of available tags.
11094 if test -n "$tagname"; then
11095 echo appending configuration tag \"$tagname\" to $ofile
11097 case $tagname in
11098 CXX)
11099 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11100 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11101 (test "X$CXX" != "Xg++"))) ; then
11102 ac_ext=cpp
11103 ac_cpp='$CXXCPP $CPPFLAGS'
11104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11111 archive_cmds_need_lc_CXX=no
11112 allow_undefined_flag_CXX=
11113 always_export_symbols_CXX=no
11114 archive_expsym_cmds_CXX=
11115 export_dynamic_flag_spec_CXX=
11116 hardcode_direct_CXX=no
11117 hardcode_libdir_flag_spec_CXX=
11118 hardcode_libdir_flag_spec_ld_CXX=
11119 hardcode_libdir_separator_CXX=
11120 hardcode_minus_L_CXX=no
11121 hardcode_shlibpath_var_CXX=unsupported
11122 hardcode_automatic_CXX=no
11123 module_cmds_CXX=
11124 module_expsym_cmds_CXX=
11125 link_all_deplibs_CXX=unknown
11126 old_archive_cmds_CXX=$old_archive_cmds
11127 no_undefined_flag_CXX=
11128 whole_archive_flag_spec_CXX=
11129 enable_shared_with_static_runtimes_CXX=no
11131 # Dependencies to place before and after the object being linked:
11132 predep_objects_CXX=
11133 postdep_objects_CXX=
11134 predeps_CXX=
11135 postdeps_CXX=
11136 compiler_lib_search_path_CXX=
11137 compiler_lib_search_dirs_CXX=
11139 # Source file extension for C++ test sources.
11140 ac_ext=cpp
11142 # Object file extension for compiled C++ test sources.
11143 objext=o
11144 objext_CXX=$objext
11146 # Code to be used in simple compile tests
11147 lt_simple_compile_test_code="int some_variable = 0;"
11149 # Code to be used in simple link tests
11150 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11152 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11154 # If no C compiler was specified, use CC.
11155 LTCC=${LTCC-"$CC"}
11157 # If no C compiler flags were specified, use CFLAGS.
11158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11160 # Allow CC to be a program name with arguments.
11161 compiler=$CC
11164 # save warnings/boilerplate of simple test code
11165 ac_outfile=conftest.$ac_objext
11166 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11168 _lt_compiler_boilerplate=`cat conftest.err`
11169 $rm conftest*
11171 ac_outfile=conftest.$ac_objext
11172 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11174 _lt_linker_boilerplate=`cat conftest.err`
11175 $rm -r conftest*
11178 # Allow CC to be a program name with arguments.
11179 lt_save_CC=$CC
11180 lt_save_LD=$LD
11181 lt_save_GCC=$GCC
11182 GCC=$GXX
11183 lt_save_with_gnu_ld=$with_gnu_ld
11184 lt_save_path_LD=$lt_cv_path_LD
11185 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11186 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11187 else
11188 $as_unset lt_cv_prog_gnu_ld
11190 if test -n "${lt_cv_path_LDCXX+set}"; then
11191 lt_cv_path_LD=$lt_cv_path_LDCXX
11192 else
11193 $as_unset lt_cv_path_LD
11195 test -z "${LDCXX+set}" || LD=$LDCXX
11196 CC=${CXX-"c++"}
11197 compiler=$CC
11198 compiler_CXX=$CC
11199 for cc_temp in $compiler""; do
11200 case $cc_temp in
11201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11203 \-*) ;;
11204 *) break;;
11205 esac
11206 done
11207 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11210 # We don't want -fno-exception wen compiling C++ code, so set the
11211 # no_builtin_flag separately
11212 if test "$GXX" = yes; then
11213 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11214 else
11215 lt_prog_compiler_no_builtin_flag_CXX=
11218 if test "$GXX" = yes; then
11219 # Set up default GNU C++ configuration
11222 # Check whether --with-gnu-ld was given.
11223 if test "${with_gnu_ld+set}" = set; then
11224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11225 else
11226 with_gnu_ld=no
11229 ac_prog=ld
11230 if test "$GCC" = yes; then
11231 # Check if gcc -print-prog-name=ld gives a path.
11232 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11233 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11234 case $host in
11235 *-*-mingw*)
11236 # gcc leaves a trailing carriage return which upsets mingw
11237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11240 esac
11241 case $ac_prog in
11242 # Accept absolute paths.
11243 [\\/]* | ?:[\\/]*)
11244 re_direlt='/[^/][^/]*/\.\./'
11245 # Canonicalize the pathname of ld
11246 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11247 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11248 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11249 done
11250 test -z "$LD" && LD="$ac_prog"
11253 # If it fails, then pretend we aren't using GCC.
11254 ac_prog=ld
11257 # If it is relative, then search for the first ld in PATH.
11258 with_gnu_ld=unknown
11260 esac
11261 elif test "$with_gnu_ld" = yes; then
11262 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11263 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11264 else
11265 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11266 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11268 if test "${lt_cv_path_LD+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271 if test -z "$LD"; then
11272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11273 for ac_dir in $PATH; do
11274 IFS="$lt_save_ifs"
11275 test -z "$ac_dir" && ac_dir=.
11276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11277 lt_cv_path_LD="$ac_dir/$ac_prog"
11278 # Check to see if the program is GNU ld. I'd rather use --version,
11279 # but apparently some variants of GNU ld only accept -v.
11280 # Break only if it was the GNU/non-GNU ld that we prefer.
11281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11282 *GNU* | *'with BFD'*)
11283 test "$with_gnu_ld" != no && break
11286 test "$with_gnu_ld" != yes && break
11288 esac
11290 done
11291 IFS="$lt_save_ifs"
11292 else
11293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11297 LD="$lt_cv_path_LD"
11298 if test -n "$LD"; then
11299 { echo "$as_me:$LINENO: result: $LD" >&5
11300 echo "${ECHO_T}$LD" >&6; }
11301 else
11302 { echo "$as_me:$LINENO: result: no" >&5
11303 echo "${ECHO_T}no" >&6; }
11305 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11306 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11307 { (exit 1); exit 1; }; }
11308 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11309 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11310 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11314 case `$LD -v 2>&1 </dev/null` in
11315 *GNU* | *'with BFD'*)
11316 lt_cv_prog_gnu_ld=yes
11319 lt_cv_prog_gnu_ld=no
11321 esac
11323 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11324 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11325 with_gnu_ld=$lt_cv_prog_gnu_ld
11329 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11330 # archiving commands below assume that GNU ld is being used.
11331 if test "$with_gnu_ld" = yes; then
11332 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11333 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'
11335 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11338 # If archive_cmds runs LD, not CC, wlarc should be empty
11339 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11340 # investigate it a little bit more. (MM)
11341 wlarc='${wl}'
11343 # ancient GNU ld didn't support --whole-archive et. al.
11344 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11345 grep 'no-whole-archive' > /dev/null; then
11346 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11347 else
11348 whole_archive_flag_spec_CXX=
11350 else
11351 with_gnu_ld=no
11352 wlarc=
11354 # A generic and very simple default shared library creation
11355 # command for GNU C++ for the case where it uses the native
11356 # linker, instead of GNU ld. If possible, this setting should
11357 # overridden to take advantage of the native linker features on
11358 # the platform it is being used on.
11359 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11362 # Commands to make compiler produce verbose output that lists
11363 # what "hidden" libraries, object files and flags are used when
11364 # linking a shared library.
11365 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11367 else
11368 GXX=no
11369 with_gnu_ld=no
11370 wlarc=
11373 # PORTME: fill in a description of your system's C++ link characteristics
11374 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11375 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11376 ld_shlibs_CXX=yes
11377 case $host_os in
11378 aix3*)
11379 # FIXME: insert proper C++ library support
11380 ld_shlibs_CXX=no
11382 aix[4-9]*)
11383 if test "$host_cpu" = ia64; then
11384 # On IA64, the linker does run time linking by default, so we don't
11385 # have to do anything special.
11386 aix_use_runtimelinking=no
11387 exp_sym_flag='-Bexport'
11388 no_entry_flag=""
11389 else
11390 aix_use_runtimelinking=no
11392 # Test if we are trying to use run time linking or normal
11393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11394 # need to do runtime linking.
11395 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11396 for ld_flag in $LDFLAGS; do
11397 case $ld_flag in
11398 *-brtl*)
11399 aix_use_runtimelinking=yes
11400 break
11402 esac
11403 done
11405 esac
11407 exp_sym_flag='-bexport'
11408 no_entry_flag='-bnoentry'
11411 # When large executables or shared objects are built, AIX ld can
11412 # have problems creating the table of contents. If linking a library
11413 # or program results in "error TOC overflow" add -mminimal-toc to
11414 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11415 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11417 archive_cmds_CXX=''
11418 hardcode_direct_CXX=yes
11419 hardcode_libdir_separator_CXX=':'
11420 link_all_deplibs_CXX=yes
11422 if test "$GXX" = yes; then
11423 case $host_os in aix4.[012]|aix4.[012].*)
11424 # We only want to do this on AIX 4.2 and lower, the check
11425 # below for broken collect2 doesn't work under 4.3+
11426 collect2name=`${CC} -print-prog-name=collect2`
11427 if test -f "$collect2name" && \
11428 strings "$collect2name" | grep resolve_lib_name >/dev/null
11429 then
11430 # We have reworked collect2
11432 else
11433 # We have old collect2
11434 hardcode_direct_CXX=unsupported
11435 # It fails to find uninstalled libraries when the uninstalled
11436 # path is not listed in the libpath. Setting hardcode_minus_L
11437 # to unsupported forces relinking
11438 hardcode_minus_L_CXX=yes
11439 hardcode_libdir_flag_spec_CXX='-L$libdir'
11440 hardcode_libdir_separator_CXX=
11443 esac
11444 shared_flag='-shared'
11445 if test "$aix_use_runtimelinking" = yes; then
11446 shared_flag="$shared_flag "'${wl}-G'
11448 else
11449 # not using gcc
11450 if test "$host_cpu" = ia64; then
11451 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11452 # chokes on -Wl,-G. The following line is correct:
11453 shared_flag='-G'
11454 else
11455 if test "$aix_use_runtimelinking" = yes; then
11456 shared_flag='${wl}-G'
11457 else
11458 shared_flag='${wl}-bM:SRE'
11463 # It seems that -bexpall does not export symbols beginning with
11464 # underscore (_), so it is better to generate a list of symbols to export.
11465 always_export_symbols_CXX=yes
11466 if test "$aix_use_runtimelinking" = yes; then
11467 # Warning - without using the other runtime loading flags (-brtl),
11468 # -berok will link without error, but may produce a broken library.
11469 allow_undefined_flag_CXX='-berok'
11470 # Determine the default libpath from the value encoded in an empty executable.
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h. */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11479 main ()
11483 return 0;
11485 _ACEOF
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_cxx_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest$ac_exeext &&
11503 $as_test_x conftest$ac_exeext; then
11505 lt_aix_libpath_sed='
11506 /Import File Strings/,/^$/ {
11507 /^0/ {
11508 s/^0 *\(.*\)$/\1/
11512 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11513 # Check for a 64-bit object if we didn't find anything.
11514 if test -z "$aix_libpath"; then
11515 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11525 conftest$ac_exeext conftest.$ac_ext
11526 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11528 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11530 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11531 else
11532 if test "$host_cpu" = ia64; then
11533 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11534 allow_undefined_flag_CXX="-z nodefs"
11535 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11536 else
11537 # Determine the default libpath from the value encoded in an empty executable.
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h. */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11546 main ()
11550 return 0;
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (ac_try="$ac_link"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_link") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } && {
11567 test -z "$ac_cxx_werror_flag" ||
11568 test ! -s conftest.err
11569 } && test -s conftest$ac_exeext &&
11570 $as_test_x conftest$ac_exeext; then
11572 lt_aix_libpath_sed='
11573 /Import File Strings/,/^$/ {
11574 /^0/ {
11575 s/^0 *\(.*\)$/\1/
11579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11580 # Check for a 64-bit object if we didn't find anything.
11581 if test -z "$aix_libpath"; then
11582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11592 conftest$ac_exeext conftest.$ac_ext
11593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11595 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11596 # Warning - without using the other run time loading flags,
11597 # -berok will link without error, but may produce a broken library.
11598 no_undefined_flag_CXX=' ${wl}-bernotok'
11599 allow_undefined_flag_CXX=' ${wl}-berok'
11600 # Exported symbols can be pulled into shared objects from archives
11601 whole_archive_flag_spec_CXX='$convenience'
11602 archive_cmds_need_lc_CXX=yes
11603 # This is similar to how AIX traditionally builds its shared libraries.
11604 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11609 beos*)
11610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11611 allow_undefined_flag_CXX=unsupported
11612 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11613 # support --undefined. This deserves some investigation. FIXME
11614 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11615 else
11616 ld_shlibs_CXX=no
11620 chorus*)
11621 case $cc_basename in
11623 # FIXME: insert proper C++ library support
11624 ld_shlibs_CXX=no
11626 esac
11629 cygwin* | mingw* | pw32*)
11630 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11631 # as there is no search path for DLLs.
11632 hardcode_libdir_flag_spec_CXX='-L$libdir'
11633 allow_undefined_flag_CXX=unsupported
11634 always_export_symbols_CXX=no
11635 enable_shared_with_static_runtimes_CXX=yes
11637 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11638 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11639 # If the export-symbols file already is a .def file (1st line
11640 # is EXPORTS), use it as is; otherwise, prepend...
11641 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11642 cp $export_symbols $output_objdir/$soname.def;
11643 else
11644 echo EXPORTS > $output_objdir/$soname.def;
11645 cat $export_symbols >> $output_objdir/$soname.def;
11647 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11648 else
11649 ld_shlibs_CXX=no
11652 darwin* | rhapsody*)
11653 archive_cmds_need_lc_CXX=no
11654 hardcode_direct_CXX=no
11655 hardcode_automatic_CXX=yes
11656 hardcode_shlibpath_var_CXX=unsupported
11657 whole_archive_flag_spec_CXX=''
11658 link_all_deplibs_CXX=yes
11659 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11660 if test "$GXX" = yes ; then
11661 output_verbose_link_cmd='echo'
11662 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11663 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11664 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11665 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11666 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11667 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11668 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11670 else
11671 case $cc_basename in
11672 xlc*)
11673 output_verbose_link_cmd='echo'
11674 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11675 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11676 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11677 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11678 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}'
11681 ld_shlibs_CXX=no
11683 esac
11687 dgux*)
11688 case $cc_basename in
11689 ec++*)
11690 # FIXME: insert proper C++ library support
11691 ld_shlibs_CXX=no
11693 ghcx*)
11694 # Green Hills C++ Compiler
11695 # FIXME: insert proper C++ library support
11696 ld_shlibs_CXX=no
11699 # FIXME: insert proper C++ library support
11700 ld_shlibs_CXX=no
11702 esac
11704 freebsd[12]*)
11705 # C++ shared libraries reported to be fairly broken before switch to ELF
11706 ld_shlibs_CXX=no
11708 freebsd-elf*)
11709 archive_cmds_need_lc_CXX=no
11711 freebsd* | dragonfly*)
11712 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11713 # conventions
11714 ld_shlibs_CXX=yes
11716 gnu*)
11718 hpux9*)
11719 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11720 hardcode_libdir_separator_CXX=:
11721 export_dynamic_flag_spec_CXX='${wl}-E'
11722 hardcode_direct_CXX=yes
11723 hardcode_minus_L_CXX=yes # Not in the search PATH,
11724 # but as the default
11725 # location of the library.
11727 case $cc_basename in
11728 CC*)
11729 # FIXME: insert proper C++ library support
11730 ld_shlibs_CXX=no
11732 aCC*)
11733 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'
11734 # Commands to make compiler produce verbose output that lists
11735 # what "hidden" libraries, object files and flags are used when
11736 # linking a shared library.
11738 # There doesn't appear to be a way to prevent this compiler from
11739 # explicitly linking system object files so we need to strip them
11740 # from the output so that they don't get included in the library
11741 # dependencies.
11742 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'
11745 if test "$GXX" = yes; then
11746 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'
11747 else
11748 # FIXME: insert proper C++ library support
11749 ld_shlibs_CXX=no
11752 esac
11754 hpux10*|hpux11*)
11755 if test $with_gnu_ld = no; then
11756 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11757 hardcode_libdir_separator_CXX=:
11759 case $host_cpu in
11760 hppa*64*|ia64*) ;;
11762 export_dynamic_flag_spec_CXX='${wl}-E'
11764 esac
11766 case $host_cpu in
11767 hppa*64*|ia64*)
11768 hardcode_direct_CXX=no
11769 hardcode_shlibpath_var_CXX=no
11772 hardcode_direct_CXX=yes
11773 hardcode_minus_L_CXX=yes # Not in the search PATH,
11774 # but as the default
11775 # location of the library.
11777 esac
11779 case $cc_basename in
11780 CC*)
11781 # FIXME: insert proper C++ library support
11782 ld_shlibs_CXX=no
11784 aCC*)
11785 case $host_cpu in
11786 hppa*64*)
11787 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11789 ia64*)
11790 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11793 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11795 esac
11796 # Commands to make compiler produce verbose output that lists
11797 # what "hidden" libraries, object files and flags are used when
11798 # linking a shared library.
11800 # There doesn't appear to be a way to prevent this compiler from
11801 # explicitly linking system object files so we need to strip them
11802 # from the output so that they don't get included in the library
11803 # dependencies.
11804 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'
11807 if test "$GXX" = yes; then
11808 if test $with_gnu_ld = no; then
11809 case $host_cpu in
11810 hppa*64*)
11811 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11813 ia64*)
11814 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11817 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'
11819 esac
11821 else
11822 # FIXME: insert proper C++ library support
11823 ld_shlibs_CXX=no
11826 esac
11828 interix[3-9]*)
11829 hardcode_direct_CXX=no
11830 hardcode_shlibpath_var_CXX=no
11831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11832 export_dynamic_flag_spec_CXX='${wl}-E'
11833 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11834 # Instead, shared libraries are loaded at an image base (0x10000000 by
11835 # default) and relocated if they conflict, which is a slow very memory
11836 # consuming and fragmenting process. To avoid this, we pick a random,
11837 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11838 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11839 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11840 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11842 irix5* | irix6*)
11843 case $cc_basename in
11844 CC*)
11845 # SGI C++
11846 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'
11848 # Archives containing C++ object files must be created using
11849 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11850 # necessary to make sure instantiated templates are included
11851 # in the archive.
11852 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11855 if test "$GXX" = yes; then
11856 if test "$with_gnu_ld" = no; then
11857 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'
11858 else
11859 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'
11862 link_all_deplibs_CXX=yes
11864 esac
11865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11866 hardcode_libdir_separator_CXX=:
11868 linux* | k*bsd*-gnu)
11869 case $cc_basename in
11870 KCC*)
11871 # Kuck and Associates, Inc. (KAI) C++ Compiler
11873 # KCC will only create a shared library if the output file
11874 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11875 # to its proper name (with version) after linking.
11876 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'
11877 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'
11878 # Commands to make compiler produce verbose output that lists
11879 # what "hidden" libraries, object files and flags are used when
11880 # linking a shared library.
11882 # There doesn't appear to be a way to prevent this compiler from
11883 # explicitly linking system object files so we need to strip them
11884 # from the output so that they don't get included in the library
11885 # dependencies.
11886 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'
11888 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11891 # Archives containing C++ object files must be created using
11892 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11893 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11895 icpc*)
11896 # Intel C++
11897 with_gnu_ld=yes
11898 # version 8.0 and above of icpc choke on multiply defined symbols
11899 # if we add $predep_objects and $postdep_objects, however 7.1 and
11900 # earlier do not add the objects themselves.
11901 case `$CC -V 2>&1` in
11902 *"Version 7."*)
11903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11904 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'
11906 *) # Version 8.0 or newer
11907 tmp_idyn=
11908 case $host_cpu in
11909 ia64*) tmp_idyn=' -i_dynamic';;
11910 esac
11911 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11912 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'
11914 esac
11915 archive_cmds_need_lc_CXX=no
11916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11918 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11920 pgCC* | pgcpp*)
11921 # Portland Group C++ compiler
11922 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11923 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'
11925 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11927 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'
11929 cxx*)
11930 # Compaq C++
11931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11932 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'
11934 runpath_var=LD_RUN_PATH
11935 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11936 hardcode_libdir_separator_CXX=:
11938 # Commands to make compiler produce verbose output that lists
11939 # what "hidden" libraries, object files and flags are used when
11940 # linking a shared library.
11942 # There doesn't appear to be a way to prevent this compiler from
11943 # explicitly linking system object files so we need to strip them
11944 # from the output so that they don't get included in the library
11945 # dependencies.
11946 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'
11949 case `$CC -V 2>&1 | sed 5q` in
11950 *Sun\ C*)
11951 # Sun C++ 5.9
11952 no_undefined_flag_CXX=' -zdefs'
11953 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11954 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11955 hardcode_libdir_flag_spec_CXX='-R$libdir'
11956 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11958 # Not sure whether something based on
11959 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11960 # would be better.
11961 output_verbose_link_cmd='echo'
11963 # Archives containing C++ object files must be created using
11964 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11965 # necessary to make sure instantiated templates are included
11966 # in the archive.
11967 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11969 esac
11971 esac
11973 lynxos*)
11974 # FIXME: insert proper C++ library support
11975 ld_shlibs_CXX=no
11977 m88k*)
11978 # FIXME: insert proper C++ library support
11979 ld_shlibs_CXX=no
11981 mvs*)
11982 case $cc_basename in
11983 cxx*)
11984 # FIXME: insert proper C++ library support
11985 ld_shlibs_CXX=no
11988 # FIXME: insert proper C++ library support
11989 ld_shlibs_CXX=no
11991 esac
11993 netbsd*)
11994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11995 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11996 wlarc=
11997 hardcode_libdir_flag_spec_CXX='-R$libdir'
11998 hardcode_direct_CXX=yes
11999 hardcode_shlibpath_var_CXX=no
12001 # Workaround some broken pre-1.5 toolchains
12002 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12004 openbsd2*)
12005 # C++ shared libraries are fairly broken
12006 ld_shlibs_CXX=no
12008 openbsd*)
12009 if test -f /usr/libexec/ld.so; then
12010 hardcode_direct_CXX=yes
12011 hardcode_shlibpath_var_CXX=no
12012 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12013 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12015 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12016 export_dynamic_flag_spec_CXX='${wl}-E'
12017 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12019 output_verbose_link_cmd='echo'
12020 else
12021 ld_shlibs_CXX=no
12024 osf3*)
12025 case $cc_basename in
12026 KCC*)
12027 # Kuck and Associates, Inc. (KAI) C++ Compiler
12029 # KCC will only create a shared library if the output file
12030 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12031 # to its proper name (with version) after linking.
12032 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'
12034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12035 hardcode_libdir_separator_CXX=:
12037 # Archives containing C++ object files must be created using
12038 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12039 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12042 RCC*)
12043 # Rational C++ 2.4.1
12044 # FIXME: insert proper C++ library support
12045 ld_shlibs_CXX=no
12047 cxx*)
12048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12049 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'
12051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12052 hardcode_libdir_separator_CXX=:
12054 # Commands to make compiler produce verbose output that lists
12055 # what "hidden" libraries, object files and flags are used when
12056 # linking a shared library.
12058 # There doesn't appear to be a way to prevent this compiler from
12059 # explicitly linking system object files so we need to strip them
12060 # from the output so that they don't get included in the library
12061 # dependencies.
12062 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'
12065 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12066 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12067 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'
12069 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12070 hardcode_libdir_separator_CXX=:
12072 # Commands to make compiler produce verbose output that lists
12073 # what "hidden" libraries, object files and flags are used when
12074 # linking a shared library.
12075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12077 else
12078 # FIXME: insert proper C++ library support
12079 ld_shlibs_CXX=no
12082 esac
12084 osf4* | osf5*)
12085 case $cc_basename in
12086 KCC*)
12087 # Kuck and Associates, Inc. (KAI) C++ Compiler
12089 # KCC will only create a shared library if the output file
12090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12091 # to its proper name (with version) after linking.
12092 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'
12094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12095 hardcode_libdir_separator_CXX=:
12097 # Archives containing C++ object files must be created using
12098 # the KAI C++ compiler.
12099 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12101 RCC*)
12102 # Rational C++ 2.4.1
12103 # FIXME: insert proper C++ library support
12104 ld_shlibs_CXX=no
12106 cxx*)
12107 allow_undefined_flag_CXX=' -expect_unresolved \*'
12108 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'
12109 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12110 echo "-hidden">> $lib.exp~
12111 $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~
12112 $rm $lib.exp'
12114 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12115 hardcode_libdir_separator_CXX=:
12117 # Commands to make compiler produce verbose output that lists
12118 # what "hidden" libraries, object files and flags are used when
12119 # linking a shared library.
12121 # There doesn't appear to be a way to prevent this compiler from
12122 # explicitly linking system object files so we need to strip them
12123 # from the output so that they don't get included in the library
12124 # dependencies.
12125 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'
12128 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12129 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12130 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'
12132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12133 hardcode_libdir_separator_CXX=:
12135 # Commands to make compiler produce verbose output that lists
12136 # what "hidden" libraries, object files and flags are used when
12137 # linking a shared library.
12138 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12140 else
12141 # FIXME: insert proper C++ library support
12142 ld_shlibs_CXX=no
12145 esac
12147 psos*)
12148 # FIXME: insert proper C++ library support
12149 ld_shlibs_CXX=no
12151 sunos4*)
12152 case $cc_basename in
12153 CC*)
12154 # Sun C++ 4.x
12155 # FIXME: insert proper C++ library support
12156 ld_shlibs_CXX=no
12158 lcc*)
12159 # Lucid
12160 # FIXME: insert proper C++ library support
12161 ld_shlibs_CXX=no
12164 # FIXME: insert proper C++ library support
12165 ld_shlibs_CXX=no
12167 esac
12169 solaris*)
12170 case $cc_basename in
12171 CC*)
12172 # Sun C++ 4.2, 5.x and Centerline C++
12173 archive_cmds_need_lc_CXX=yes
12174 no_undefined_flag_CXX=' -zdefs'
12175 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12176 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12177 $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'
12179 hardcode_libdir_flag_spec_CXX='-R$libdir'
12180 hardcode_shlibpath_var_CXX=no
12181 case $host_os in
12182 solaris2.[0-5] | solaris2.[0-5].*) ;;
12184 # The compiler driver will combine and reorder linker options,
12185 # but understands `-z linker_flag'.
12186 # Supported since Solaris 2.6 (maybe 2.5.1?)
12187 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12189 esac
12190 link_all_deplibs_CXX=yes
12192 output_verbose_link_cmd='echo'
12194 # Archives containing C++ object files must be created using
12195 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12196 # necessary to make sure instantiated templates are included
12197 # in the archive.
12198 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12200 gcx*)
12201 # Green Hills C++ Compiler
12202 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12204 # The C++ compiler must be used to create the archive.
12205 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12208 # GNU C++ compiler with Solaris linker
12209 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12210 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12211 if $CC --version | grep -v '^2\.7' > /dev/null; then
12212 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12213 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12214 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12216 # Commands to make compiler produce verbose output that lists
12217 # what "hidden" libraries, object files and flags are used when
12218 # linking a shared library.
12219 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12220 else
12221 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12222 # platform.
12223 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12224 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12225 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12227 # Commands to make compiler produce verbose output that lists
12228 # what "hidden" libraries, object files and flags are used when
12229 # linking a shared library.
12230 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12233 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12234 case $host_os in
12235 solaris2.[0-5] | solaris2.[0-5].*) ;;
12237 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12239 esac
12242 esac
12244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12245 no_undefined_flag_CXX='${wl}-z,text'
12246 archive_cmds_need_lc_CXX=no
12247 hardcode_shlibpath_var_CXX=no
12248 runpath_var='LD_RUN_PATH'
12250 case $cc_basename in
12251 CC*)
12252 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12253 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12256 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12257 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12259 esac
12261 sysv5* | sco3.2v5* | sco5v6*)
12262 # Note: We can NOT use -z defs as we might desire, because we do not
12263 # link with -lc, and that would cause any symbols used from libc to
12264 # always be unresolved, which means just about no library would
12265 # ever link correctly. If we're not using GNU ld we use -z text
12266 # though, which does catch some bad symbols but isn't as heavy-handed
12267 # as -z defs.
12268 # For security reasons, it is highly recommended that you always
12269 # use absolute paths for naming shared libraries, and exclude the
12270 # DT_RUNPATH tag from executables and libraries. But doing so
12271 # requires that you compile everything twice, which is a pain.
12272 # So that behaviour is only enabled if SCOABSPATH is set to a
12273 # non-empty value in the environment. Most likely only useful for
12274 # creating official distributions of packages.
12275 # This is a hack until libtool officially supports absolute path
12276 # names for shared libraries.
12277 no_undefined_flag_CXX='${wl}-z,text'
12278 allow_undefined_flag_CXX='${wl}-z,nodefs'
12279 archive_cmds_need_lc_CXX=no
12280 hardcode_shlibpath_var_CXX=no
12281 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12282 hardcode_libdir_separator_CXX=':'
12283 link_all_deplibs_CXX=yes
12284 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12285 runpath_var='LD_RUN_PATH'
12287 case $cc_basename in
12288 CC*)
12289 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12290 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12293 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12294 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12296 esac
12298 tandem*)
12299 case $cc_basename in
12300 NCC*)
12301 # NonStop-UX NCC 3.20
12302 # FIXME: insert proper C++ library support
12303 ld_shlibs_CXX=no
12306 # FIXME: insert proper C++ library support
12307 ld_shlibs_CXX=no
12309 esac
12311 vxworks*)
12312 # FIXME: insert proper C++ library support
12313 ld_shlibs_CXX=no
12316 # FIXME: insert proper C++ library support
12317 ld_shlibs_CXX=no
12319 esac
12320 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12321 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12322 test "$ld_shlibs_CXX" = no && can_build_shared=no
12324 GCC_CXX="$GXX"
12325 LD_CXX="$LD"
12327 cat > conftest.$ac_ext <<EOF
12328 class Foo
12330 public:
12331 Foo (void) { a = 0; }
12332 private:
12333 int a;
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338 (eval $ac_compile) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; then
12342 # Parse the compiler output and extract the necessary
12343 # objects, libraries and library flags.
12345 # Sentinel used to keep track of whether or not we are before
12346 # the conftest object file.
12347 pre_test_object_deps_done=no
12349 # The `*' in the case matches for architectures that use `case' in
12350 # $output_verbose_cmd can trigger glob expansion during the loop
12351 # eval without this substitution.
12352 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12354 for p in `eval $output_verbose_link_cmd`; do
12355 case $p in
12357 -L* | -R* | -l*)
12358 # Some compilers place space between "-{L,R}" and the path.
12359 # Remove the space.
12360 if test $p = "-L" \
12361 || test $p = "-R"; then
12362 prev=$p
12363 continue
12364 else
12365 prev=
12368 if test "$pre_test_object_deps_done" = no; then
12369 case $p in
12370 -L* | -R*)
12371 # Internal compiler library paths should come after those
12372 # provided the user. The postdeps already come after the
12373 # user supplied libs so there is no need to process them.
12374 if test -z "$compiler_lib_search_path_CXX"; then
12375 compiler_lib_search_path_CXX="${prev}${p}"
12376 else
12377 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12380 # The "-l" case would never come before the object being
12381 # linked, so don't bother handling this case.
12382 esac
12383 else
12384 if test -z "$postdeps_CXX"; then
12385 postdeps_CXX="${prev}${p}"
12386 else
12387 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12392 *.$objext)
12393 # This assumes that the test object file only shows up
12394 # once in the compiler output.
12395 if test "$p" = "conftest.$objext"; then
12396 pre_test_object_deps_done=yes
12397 continue
12400 if test "$pre_test_object_deps_done" = no; then
12401 if test -z "$predep_objects_CXX"; then
12402 predep_objects_CXX="$p"
12403 else
12404 predep_objects_CXX="$predep_objects_CXX $p"
12406 else
12407 if test -z "$postdep_objects_CXX"; then
12408 postdep_objects_CXX="$p"
12409 else
12410 postdep_objects_CXX="$postdep_objects_CXX $p"
12415 *) ;; # Ignore the rest.
12417 esac
12418 done
12420 # Clean up.
12421 rm -f a.out a.exe
12422 else
12423 echo "libtool.m4: error: problem compiling CXX test program"
12426 $rm -f confest.$objext
12428 compiler_lib_search_dirs_CXX=
12429 if test -n "$compiler_lib_search_path_CXX"; then
12430 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12433 # PORTME: override above test on systems where it is broken
12434 case $host_os in
12435 interix[3-9]*)
12436 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12437 # hack all around it, let's just trust "g++" to DTRT.
12438 predep_objects_CXX=
12439 postdep_objects_CXX=
12440 postdeps_CXX=
12443 linux*)
12444 case `$CC -V 2>&1 | sed 5q` in
12445 *Sun\ C*)
12446 # Sun C++ 5.9
12448 # The more standards-conforming stlport4 library is
12449 # incompatible with the Cstd library. Avoid specifying
12450 # it if it's in CXXFLAGS. Ignore libCrun as
12451 # -library=stlport4 depends on it.
12452 case " $CXX $CXXFLAGS " in
12453 *" -library=stlport4 "*)
12454 solaris_use_stlport4=yes
12456 esac
12457 if test "$solaris_use_stlport4" != yes; then
12458 postdeps_CXX='-library=Cstd -library=Crun'
12461 esac
12464 solaris*)
12465 case $cc_basename in
12466 CC*)
12467 # The more standards-conforming stlport4 library is
12468 # incompatible with the Cstd library. Avoid specifying
12469 # it if it's in CXXFLAGS. Ignore libCrun as
12470 # -library=stlport4 depends on it.
12471 case " $CXX $CXXFLAGS " in
12472 *" -library=stlport4 "*)
12473 solaris_use_stlport4=yes
12475 esac
12477 # Adding this requires a known-good setup of shared libraries for
12478 # Sun compiler versions before 5.6, else PIC objects from an old
12479 # archive will be linked into the output, leading to subtle bugs.
12480 if test "$solaris_use_stlport4" != yes; then
12481 postdeps_CXX='-library=Cstd -library=Crun'
12484 esac
12486 esac
12488 case " $postdeps_CXX " in
12489 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12490 esac
12492 lt_prog_compiler_wl_CXX=
12493 lt_prog_compiler_pic_CXX=
12494 lt_prog_compiler_static_CXX=
12496 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12497 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12499 # C++ specific cases for pic, static, wl, etc.
12500 if test "$GXX" = yes; then
12501 lt_prog_compiler_wl_CXX='-Wl,'
12502 lt_prog_compiler_static_CXX='-static'
12504 case $host_os in
12505 aix*)
12506 # All AIX code is PIC.
12507 if test "$host_cpu" = ia64; then
12508 # AIX 5 now supports IA64 processor
12509 lt_prog_compiler_static_CXX='-Bstatic'
12512 amigaos*)
12513 # FIXME: we need at least 68020 code to build shared libraries, but
12514 # adding the `-m68020' flag to GCC prevents building anything better,
12515 # like `-m68040'.
12516 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12518 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12519 # PIC is the default for these OSes.
12521 mingw* | cygwin* | os2* | pw32*)
12522 # This hack is so that the source file can tell whether it is being
12523 # built for inclusion in a dll (and should export symbols for example).
12524 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12525 # (--disable-auto-import) libraries
12526 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12528 darwin* | rhapsody*)
12529 # PIC is the default on this platform
12530 # Common symbols not allowed in MH_DYLIB files
12531 lt_prog_compiler_pic_CXX='-fno-common'
12533 *djgpp*)
12534 # DJGPP does not support shared libraries at all
12535 lt_prog_compiler_pic_CXX=
12537 interix[3-9]*)
12538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12539 # Instead, we relocate shared libraries at runtime.
12541 sysv4*MP*)
12542 if test -d /usr/nec; then
12543 lt_prog_compiler_pic_CXX=-Kconform_pic
12546 hpux*)
12547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12548 # not for PA HP-UX.
12549 case $host_cpu in
12550 hppa*64*|ia64*)
12553 lt_prog_compiler_pic_CXX='-fPIC'
12555 esac
12558 lt_prog_compiler_pic_CXX='-fPIC'
12560 esac
12561 else
12562 case $host_os in
12563 aix[4-9]*)
12564 # All AIX code is PIC.
12565 if test "$host_cpu" = ia64; then
12566 # AIX 5 now supports IA64 processor
12567 lt_prog_compiler_static_CXX='-Bstatic'
12568 else
12569 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12572 chorus*)
12573 case $cc_basename in
12574 cxch68*)
12575 # Green Hills C++ Compiler
12576 # _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"
12578 esac
12580 darwin*)
12581 # PIC is the default on this platform
12582 # Common symbols not allowed in MH_DYLIB files
12583 case $cc_basename in
12584 xlc*)
12585 lt_prog_compiler_pic_CXX='-qnocommon'
12586 lt_prog_compiler_wl_CXX='-Wl,'
12588 esac
12590 dgux*)
12591 case $cc_basename in
12592 ec++*)
12593 lt_prog_compiler_pic_CXX='-KPIC'
12595 ghcx*)
12596 # Green Hills C++ Compiler
12597 lt_prog_compiler_pic_CXX='-pic'
12601 esac
12603 freebsd* | dragonfly*)
12604 # FreeBSD uses GNU C++
12606 hpux9* | hpux10* | hpux11*)
12607 case $cc_basename in
12608 CC*)
12609 lt_prog_compiler_wl_CXX='-Wl,'
12610 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12611 if test "$host_cpu" != ia64; then
12612 lt_prog_compiler_pic_CXX='+Z'
12615 aCC*)
12616 lt_prog_compiler_wl_CXX='-Wl,'
12617 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12618 case $host_cpu in
12619 hppa*64*|ia64*)
12620 # +Z the default
12623 lt_prog_compiler_pic_CXX='+Z'
12625 esac
12629 esac
12631 interix*)
12632 # This is c89, which is MS Visual C++ (no shared libs)
12633 # Anyone wants to do a port?
12635 irix5* | irix6* | nonstopux*)
12636 case $cc_basename in
12637 CC*)
12638 lt_prog_compiler_wl_CXX='-Wl,'
12639 lt_prog_compiler_static_CXX='-non_shared'
12640 # CC pic flag -KPIC is the default.
12644 esac
12646 linux* | k*bsd*-gnu)
12647 case $cc_basename in
12648 KCC*)
12649 # KAI C++ Compiler
12650 lt_prog_compiler_wl_CXX='--backend -Wl,'
12651 lt_prog_compiler_pic_CXX='-fPIC'
12653 icpc* | ecpc*)
12654 # Intel C++
12655 lt_prog_compiler_wl_CXX='-Wl,'
12656 lt_prog_compiler_pic_CXX='-KPIC'
12657 lt_prog_compiler_static_CXX='-static'
12659 pgCC* | pgcpp*)
12660 # Portland Group C++ compiler.
12661 lt_prog_compiler_wl_CXX='-Wl,'
12662 lt_prog_compiler_pic_CXX='-fpic'
12663 lt_prog_compiler_static_CXX='-Bstatic'
12665 cxx*)
12666 # Compaq C++
12667 # Make sure the PIC flag is empty. It appears that all Alpha
12668 # Linux and Compaq Tru64 Unix objects are PIC.
12669 lt_prog_compiler_pic_CXX=
12670 lt_prog_compiler_static_CXX='-non_shared'
12673 case `$CC -V 2>&1 | sed 5q` in
12674 *Sun\ C*)
12675 # Sun C++ 5.9
12676 lt_prog_compiler_pic_CXX='-KPIC'
12677 lt_prog_compiler_static_CXX='-Bstatic'
12678 lt_prog_compiler_wl_CXX='-Qoption ld '
12680 esac
12682 esac
12684 lynxos*)
12686 m88k*)
12688 mvs*)
12689 case $cc_basename in
12690 cxx*)
12691 lt_prog_compiler_pic_CXX='-W c,exportall'
12695 esac
12697 netbsd*)
12699 osf3* | osf4* | osf5*)
12700 case $cc_basename in
12701 KCC*)
12702 lt_prog_compiler_wl_CXX='--backend -Wl,'
12704 RCC*)
12705 # Rational C++ 2.4.1
12706 lt_prog_compiler_pic_CXX='-pic'
12708 cxx*)
12709 # Digital/Compaq C++
12710 lt_prog_compiler_wl_CXX='-Wl,'
12711 # Make sure the PIC flag is empty. It appears that all Alpha
12712 # Linux and Compaq Tru64 Unix objects are PIC.
12713 lt_prog_compiler_pic_CXX=
12714 lt_prog_compiler_static_CXX='-non_shared'
12718 esac
12720 psos*)
12722 solaris*)
12723 case $cc_basename in
12724 CC*)
12725 # Sun C++ 4.2, 5.x and Centerline C++
12726 lt_prog_compiler_pic_CXX='-KPIC'
12727 lt_prog_compiler_static_CXX='-Bstatic'
12728 lt_prog_compiler_wl_CXX='-Qoption ld '
12730 gcx*)
12731 # Green Hills C++ Compiler
12732 lt_prog_compiler_pic_CXX='-PIC'
12736 esac
12738 sunos4*)
12739 case $cc_basename in
12740 CC*)
12741 # Sun C++ 4.x
12742 lt_prog_compiler_pic_CXX='-pic'
12743 lt_prog_compiler_static_CXX='-Bstatic'
12745 lcc*)
12746 # Lucid
12747 lt_prog_compiler_pic_CXX='-pic'
12751 esac
12753 tandem*)
12754 case $cc_basename in
12755 NCC*)
12756 # NonStop-UX NCC 3.20
12757 lt_prog_compiler_pic_CXX='-KPIC'
12761 esac
12763 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12764 case $cc_basename in
12765 CC*)
12766 lt_prog_compiler_wl_CXX='-Wl,'
12767 lt_prog_compiler_pic_CXX='-KPIC'
12768 lt_prog_compiler_static_CXX='-Bstatic'
12770 esac
12772 vxworks*)
12775 lt_prog_compiler_can_build_shared_CXX=no
12777 esac
12780 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12781 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12784 # Check to make sure the PIC flag actually works.
12786 if test -n "$lt_prog_compiler_pic_CXX"; then
12788 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12789 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12790 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 else
12793 lt_cv_prog_compiler_pic_works_CXX=no
12794 ac_outfile=conftest.$ac_objext
12795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12796 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12797 # Insert the option either (1) after the last *FLAGS variable, or
12798 # (2) before a word containing "conftest.", or (3) at the end.
12799 # Note that $ac_compile itself does not contain backslashes and begins
12800 # with a dollar sign (not a hyphen), so the echo should work correctly.
12801 # The option is referenced via a variable to avoid confusing sed.
12802 lt_compile=`echo "$ac_compile" | $SED \
12803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12805 -e 's:$: $lt_compiler_flag:'`
12806 (eval echo "\"\$as_me:12806: $lt_compile\"" >&5)
12807 (eval "$lt_compile" 2>conftest.err)
12808 ac_status=$?
12809 cat conftest.err >&5
12810 echo "$as_me:12810: \$? = $ac_status" >&5
12811 if (exit $ac_status) && test -s "$ac_outfile"; then
12812 # The compiler can only warn and ignore the option if not recognized
12813 # So say no if there are warnings other than the usual output.
12814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12817 lt_cv_prog_compiler_pic_works_CXX=yes
12820 $rm conftest*
12823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12824 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12826 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12827 case $lt_prog_compiler_pic_CXX in
12828 "" | " "*) ;;
12829 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12830 esac
12831 else
12832 lt_prog_compiler_pic_CXX=
12833 lt_prog_compiler_can_build_shared_CXX=no
12837 case $host_os in
12838 # For platforms which do not support PIC, -DPIC is meaningless:
12839 *djgpp*)
12840 lt_prog_compiler_pic_CXX=
12843 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12845 esac
12848 # Check to make sure the static flag actually works.
12850 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12851 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12852 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12853 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 lt_cv_prog_compiler_static_works_CXX=no
12857 save_LDFLAGS="$LDFLAGS"
12858 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12861 # The linker can only warn and ignore the option if not recognized
12862 # So say no if there are warnings
12863 if test -s conftest.err; then
12864 # Append any errors to the config.log.
12865 cat conftest.err 1>&5
12866 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12868 if diff conftest.exp conftest.er2 >/dev/null; then
12869 lt_cv_prog_compiler_static_works_CXX=yes
12871 else
12872 lt_cv_prog_compiler_static_works_CXX=yes
12875 $rm -r conftest*
12876 LDFLAGS="$save_LDFLAGS"
12879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12880 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12882 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12884 else
12885 lt_prog_compiler_static_CXX=
12889 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12890 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12891 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 lt_cv_prog_compiler_c_o_CXX=no
12895 $rm -r conftest 2>/dev/null
12896 mkdir conftest
12897 cd conftest
12898 mkdir out
12899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12901 lt_compiler_flag="-o out/conftest2.$ac_objext"
12902 # Insert the option either (1) after the last *FLAGS variable, or
12903 # (2) before a word containing "conftest.", or (3) at the end.
12904 # Note that $ac_compile itself does not contain backslashes and begins
12905 # with a dollar sign (not a hyphen), so the echo should work correctly.
12906 lt_compile=`echo "$ac_compile" | $SED \
12907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12909 -e 's:$: $lt_compiler_flag:'`
12910 (eval echo "\"\$as_me:12910: $lt_compile\"" >&5)
12911 (eval "$lt_compile" 2>out/conftest.err)
12912 ac_status=$?
12913 cat out/conftest.err >&5
12914 echo "$as_me:12914: \$? = $ac_status" >&5
12915 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12916 then
12917 # The compiler can only warn and ignore the option if not recognized
12918 # So say no if there are warnings
12919 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12922 lt_cv_prog_compiler_c_o_CXX=yes
12925 chmod u+w . 2>&5
12926 $rm conftest*
12927 # SGI C++ compiler will create directory out/ii_files/ for
12928 # template instantiation
12929 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12930 $rm out/* && rmdir out
12931 cd ..
12932 rmdir conftest
12933 $rm conftest*
12936 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12937 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12940 hard_links="nottested"
12941 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12942 # do not overwrite the value of need_locks provided by the user
12943 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12944 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12945 hard_links=yes
12946 $rm conftest*
12947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12948 touch conftest.a
12949 ln conftest.a conftest.b 2>&5 || hard_links=no
12950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12951 { echo "$as_me:$LINENO: result: $hard_links" >&5
12952 echo "${ECHO_T}$hard_links" >&6; }
12953 if test "$hard_links" = no; then
12954 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12955 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12956 need_locks=warn
12958 else
12959 need_locks=no
12962 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12963 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12965 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12966 case $host_os in
12967 aix[4-9]*)
12968 # If we're using GNU nm, then we don't want the "-C" option.
12969 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12970 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12971 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'
12972 else
12973 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'
12976 pw32*)
12977 export_symbols_cmds_CXX="$ltdll_cmds"
12979 cygwin* | mingw*)
12980 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'
12983 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12985 esac
12986 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12988 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12989 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12990 test "$ld_shlibs_CXX" = no && can_build_shared=no
12993 # Do we need to explicitly link libc?
12995 case "x$archive_cmds_need_lc_CXX" in
12996 x|xyes)
12997 # Assume -lc should be added
12998 archive_cmds_need_lc_CXX=yes
13000 if test "$enable_shared" = yes && test "$GCC" = yes; then
13001 case $archive_cmds_CXX in
13002 *'~'*)
13003 # FIXME: we may have to deal with multi-command sequences.
13005 '$CC '*)
13006 # Test whether the compiler implicitly links with -lc since on some
13007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13008 # to ld, don't add -lc before -lgcc.
13009 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13010 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13011 $rm conftest*
13012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13015 (eval $ac_compile) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } 2>conftest.err; then
13019 soname=conftest
13020 lib=conftest
13021 libobjs=conftest.$ac_objext
13022 deplibs=
13023 wl=$lt_prog_compiler_wl_CXX
13024 pic_flag=$lt_prog_compiler_pic_CXX
13025 compiler_flags=-v
13026 linker_flags=-v
13027 verstring=
13028 output_objdir=.
13029 libname=conftest
13030 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13031 allow_undefined_flag_CXX=
13032 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13033 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }
13037 then
13038 archive_cmds_need_lc_CXX=no
13039 else
13040 archive_cmds_need_lc_CXX=yes
13042 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13043 else
13044 cat conftest.err 1>&5
13046 $rm conftest*
13047 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13048 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13050 esac
13053 esac
13055 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13056 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13057 library_names_spec=
13058 libname_spec='lib$name'
13059 soname_spec=
13060 shrext_cmds=".so"
13061 postinstall_cmds=
13062 postuninstall_cmds=
13063 finish_cmds=
13064 finish_eval=
13065 shlibpath_var=
13066 shlibpath_overrides_runpath=unknown
13067 version_type=none
13068 dynamic_linker="$host_os ld.so"
13069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13071 need_lib_prefix=unknown
13072 hardcode_into_libs=no
13074 # when you set need_version to no, make sure it does not cause -set_version
13075 # flags to be left without arguments
13076 need_version=unknown
13078 case $host_os in
13079 aix3*)
13080 version_type=linux
13081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13082 shlibpath_var=LIBPATH
13084 # AIX 3 has no versioning support, so we append a major version to the name.
13085 soname_spec='${libname}${release}${shared_ext}$major'
13088 aix[4-9]*)
13089 version_type=linux
13090 need_lib_prefix=no
13091 need_version=no
13092 hardcode_into_libs=yes
13093 if test "$host_cpu" = ia64; then
13094 # AIX 5 supports IA64
13095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13096 shlibpath_var=LD_LIBRARY_PATH
13097 else
13098 # With GCC up to 2.95.x, collect2 would create an import file
13099 # for dependence libraries. The import file would start with
13100 # the line `#! .'. This would cause the generated library to
13101 # depend on `.', always an invalid library. This was fixed in
13102 # development snapshots of GCC prior to 3.0.
13103 case $host_os in
13104 aix4 | aix4.[01] | aix4.[01].*)
13105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13106 echo ' yes '
13107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13109 else
13110 can_build_shared=no
13113 esac
13114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13115 # soname into executable. Probably we can add versioning support to
13116 # collect2, so additional links can be useful in future.
13117 if test "$aix_use_runtimelinking" = yes; then
13118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13119 # instead of lib<name>.a to let people know that these are not
13120 # typical AIX shared libraries.
13121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13122 else
13123 # We preserve .a as extension for shared libraries through AIX4.2
13124 # and later when we are not doing run time linking.
13125 library_names_spec='${libname}${release}.a $libname.a'
13126 soname_spec='${libname}${release}${shared_ext}$major'
13128 shlibpath_var=LIBPATH
13132 amigaos*)
13133 library_names_spec='$libname.ixlibrary $libname.a'
13134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13135 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'
13138 beos*)
13139 library_names_spec='${libname}${shared_ext}'
13140 dynamic_linker="$host_os ld.so"
13141 shlibpath_var=LIBRARY_PATH
13144 bsdi[45]*)
13145 version_type=linux
13146 need_version=no
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148 soname_spec='${libname}${release}${shared_ext}$major'
13149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13153 # the default ld.so.conf also contains /usr/contrib/lib and
13154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13155 # libtool to hard-code these into programs
13158 cygwin* | mingw* | pw32*)
13159 version_type=windows
13160 shrext_cmds=".dll"
13161 need_version=no
13162 need_lib_prefix=no
13164 case $GCC,$host_os in
13165 yes,cygwin* | yes,mingw* | yes,pw32*)
13166 library_names_spec='$libname.dll.a'
13167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13168 postinstall_cmds='base_file=`basename \${file}`~
13169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13170 dldir=$destdir/`dirname \$dlpath`~
13171 test -d \$dldir || mkdir -p \$dldir~
13172 $install_prog $dir/$dlname \$dldir/$dlname~
13173 chmod a+x \$dldir/$dlname'
13174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13175 dlpath=$dir/\$dldll~
13176 $rm \$dlpath'
13177 shlibpath_overrides_runpath=yes
13179 case $host_os in
13180 cygwin*)
13181 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13182 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13183 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13185 mingw*)
13186 # MinGW DLLs use traditional 'lib' prefix
13187 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13188 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13189 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13190 # It is most probably a Windows format PATH printed by
13191 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13192 # path with ; separators, and with drive letters. We can handle the
13193 # drive letters (cygwin fileutils understands them), so leave them,
13194 # especially as we might pass files found there to a mingw objdump,
13195 # which wouldn't understand a cygwinified path. Ahh.
13196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13197 else
13198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13201 pw32*)
13202 # pw32 DLLs use 'pw' prefix rather than 'lib'
13203 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13205 esac
13209 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13211 esac
13212 dynamic_linker='Win32 ld.exe'
13213 # FIXME: first we should search . and the directory the executable is in
13214 shlibpath_var=PATH
13217 darwin* | rhapsody*)
13218 dynamic_linker="$host_os dyld"
13219 version_type=darwin
13220 need_lib_prefix=no
13221 need_version=no
13222 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13223 soname_spec='${libname}${release}${major}$shared_ext'
13224 shlibpath_overrides_runpath=yes
13225 shlibpath_var=DYLD_LIBRARY_PATH
13226 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13231 dgux*)
13232 version_type=linux
13233 need_lib_prefix=no
13234 need_version=no
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13236 soname_spec='${libname}${release}${shared_ext}$major'
13237 shlibpath_var=LD_LIBRARY_PATH
13240 freebsd1*)
13241 dynamic_linker=no
13244 freebsd* | dragonfly*)
13245 # DragonFly does not have aout. When/if they implement a new
13246 # versioning mechanism, adjust this.
13247 if test -x /usr/bin/objformat; then
13248 objformat=`/usr/bin/objformat`
13249 else
13250 case $host_os in
13251 freebsd[123]*) objformat=aout ;;
13252 *) objformat=elf ;;
13253 esac
13255 version_type=freebsd-$objformat
13256 case $version_type in
13257 freebsd-elf*)
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13259 need_version=no
13260 need_lib_prefix=no
13262 freebsd-*)
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13264 need_version=yes
13266 esac
13267 shlibpath_var=LD_LIBRARY_PATH
13268 case $host_os in
13269 freebsd2*)
13270 shlibpath_overrides_runpath=yes
13272 freebsd3.[01]* | freebsdelf3.[01]*)
13273 shlibpath_overrides_runpath=yes
13274 hardcode_into_libs=yes
13276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13278 shlibpath_overrides_runpath=no
13279 hardcode_into_libs=yes
13281 *) # from 4.6 on, and DragonFly
13282 shlibpath_overrides_runpath=yes
13283 hardcode_into_libs=yes
13285 esac
13288 gnu*)
13289 version_type=linux
13290 need_lib_prefix=no
13291 need_version=no
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 hardcode_into_libs=yes
13298 hpux9* | hpux10* | hpux11*)
13299 # Give a soname corresponding to the major version so that dld.sl refuses to
13300 # link against other versions.
13301 version_type=sunos
13302 need_lib_prefix=no
13303 need_version=no
13304 case $host_cpu in
13305 ia64*)
13306 shrext_cmds='.so'
13307 hardcode_into_libs=yes
13308 dynamic_linker="$host_os dld.so"
13309 shlibpath_var=LD_LIBRARY_PATH
13310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13312 soname_spec='${libname}${release}${shared_ext}$major'
13313 if test "X$HPUX_IA64_MODE" = X32; then
13314 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13315 else
13316 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13320 hppa*64*)
13321 shrext_cmds='.sl'
13322 hardcode_into_libs=yes
13323 dynamic_linker="$host_os dld.sl"
13324 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327 soname_spec='${libname}${release}${shared_ext}$major'
13328 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13332 shrext_cmds='.sl'
13333 dynamic_linker="$host_os dld.sl"
13334 shlibpath_var=SHLIB_PATH
13335 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13337 soname_spec='${libname}${release}${shared_ext}$major'
13339 esac
13340 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13341 postinstall_cmds='chmod 555 $lib'
13344 interix[3-9]*)
13345 version_type=linux
13346 need_lib_prefix=no
13347 need_version=no
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13349 soname_spec='${libname}${release}${shared_ext}$major'
13350 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13351 shlibpath_var=LD_LIBRARY_PATH
13352 shlibpath_overrides_runpath=no
13353 hardcode_into_libs=yes
13356 irix5* | irix6* | nonstopux*)
13357 case $host_os in
13358 nonstopux*) version_type=nonstopux ;;
13360 if test "$lt_cv_prog_gnu_ld" = yes; then
13361 version_type=linux
13362 else
13363 version_type=irix
13364 fi ;;
13365 esac
13366 need_lib_prefix=no
13367 need_version=no
13368 soname_spec='${libname}${release}${shared_ext}$major'
13369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13370 case $host_os in
13371 irix5* | nonstopux*)
13372 libsuff= shlibsuff=
13375 case $LD in # libtool.m4 will add one of these switches to LD
13376 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13377 libsuff= shlibsuff= libmagic=32-bit;;
13378 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13379 libsuff=32 shlibsuff=N32 libmagic=N32;;
13380 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13381 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13382 *) libsuff= shlibsuff= libmagic=never-match;;
13383 esac
13385 esac
13386 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13387 shlibpath_overrides_runpath=no
13388 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13389 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13390 hardcode_into_libs=yes
13393 # No shared lib support for Linux oldld, aout, or coff.
13394 linux*oldld* | linux*aout* | linux*coff*)
13395 dynamic_linker=no
13398 # This must be Linux ELF.
13399 linux* | k*bsd*-gnu)
13400 version_type=linux
13401 need_lib_prefix=no
13402 need_version=no
13403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404 soname_spec='${libname}${release}${shared_ext}$major'
13405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13406 shlibpath_var=LD_LIBRARY_PATH
13407 shlibpath_overrides_runpath=no
13408 # This implies no fast_install, which is unacceptable.
13409 # Some rework will be needed to allow for fast_install
13410 # before this can be enabled.
13411 hardcode_into_libs=yes
13413 # Append ld.so.conf contents to the search path
13414 if test -f /etc/ld.so.conf; then
13415 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13416 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13419 # We used to test for /lib/ld.so.1 and disable shared libraries on
13420 # powerpc, because MkLinux only supported shared libraries with the
13421 # GNU dynamic linker. Since this was broken with cross compilers,
13422 # most powerpc-linux boxes support dynamic linking these days and
13423 # people can always --disable-shared, the test was removed, and we
13424 # assume the GNU/Linux dynamic linker is in use.
13425 dynamic_linker='GNU/Linux ld.so'
13428 netbsd*)
13429 version_type=sunos
13430 need_lib_prefix=no
13431 need_version=no
13432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13435 dynamic_linker='NetBSD (a.out) ld.so'
13436 else
13437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13438 soname_spec='${libname}${release}${shared_ext}$major'
13439 dynamic_linker='NetBSD ld.elf_so'
13441 shlibpath_var=LD_LIBRARY_PATH
13442 shlibpath_overrides_runpath=yes
13443 hardcode_into_libs=yes
13446 newsos6)
13447 version_type=linux
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13449 shlibpath_var=LD_LIBRARY_PATH
13450 shlibpath_overrides_runpath=yes
13453 nto-qnx*)
13454 version_type=linux
13455 need_lib_prefix=no
13456 need_version=no
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 shlibpath_var=LD_LIBRARY_PATH
13460 shlibpath_overrides_runpath=yes
13463 openbsd*)
13464 version_type=sunos
13465 sys_lib_dlsearch_path_spec="/usr/lib"
13466 need_lib_prefix=no
13467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13468 case $host_os in
13469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13470 *) need_version=no ;;
13471 esac
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13474 shlibpath_var=LD_LIBRARY_PATH
13475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13476 case $host_os in
13477 openbsd2.[89] | openbsd2.[89].*)
13478 shlibpath_overrides_runpath=no
13481 shlibpath_overrides_runpath=yes
13483 esac
13484 else
13485 shlibpath_overrides_runpath=yes
13489 os2*)
13490 libname_spec='$name'
13491 shrext_cmds=".dll"
13492 need_lib_prefix=no
13493 library_names_spec='$libname${shared_ext} $libname.a'
13494 dynamic_linker='OS/2 ld.exe'
13495 shlibpath_var=LIBPATH
13498 osf3* | osf4* | osf5*)
13499 version_type=osf
13500 need_lib_prefix=no
13501 need_version=no
13502 soname_spec='${libname}${release}${shared_ext}$major'
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504 shlibpath_var=LD_LIBRARY_PATH
13505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13509 rdos*)
13510 dynamic_linker=no
13513 solaris*)
13514 version_type=linux
13515 need_lib_prefix=no
13516 need_version=no
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13518 soname_spec='${libname}${release}${shared_ext}$major'
13519 shlibpath_var=LD_LIBRARY_PATH
13520 shlibpath_overrides_runpath=yes
13521 hardcode_into_libs=yes
13522 # ldd complains unless libraries are executable
13523 postinstall_cmds='chmod +x $lib'
13526 sunos4*)
13527 version_type=sunos
13528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13530 shlibpath_var=LD_LIBRARY_PATH
13531 shlibpath_overrides_runpath=yes
13532 if test "$with_gnu_ld" = yes; then
13533 need_lib_prefix=no
13535 need_version=yes
13538 sysv4 | sysv4.3*)
13539 version_type=linux
13540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13541 soname_spec='${libname}${release}${shared_ext}$major'
13542 shlibpath_var=LD_LIBRARY_PATH
13543 case $host_vendor in
13544 sni)
13545 shlibpath_overrides_runpath=no
13546 need_lib_prefix=no
13547 export_dynamic_flag_spec='${wl}-Blargedynsym'
13548 runpath_var=LD_RUN_PATH
13550 siemens)
13551 need_lib_prefix=no
13553 motorola)
13554 need_lib_prefix=no
13555 need_version=no
13556 shlibpath_overrides_runpath=no
13557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13559 esac
13562 sysv4*MP*)
13563 if test -d /usr/nec ;then
13564 version_type=linux
13565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13566 soname_spec='$libname${shared_ext}.$major'
13567 shlibpath_var=LD_LIBRARY_PATH
13571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13572 version_type=freebsd-elf
13573 need_lib_prefix=no
13574 need_version=no
13575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13576 soname_spec='${libname}${release}${shared_ext}$major'
13577 shlibpath_var=LD_LIBRARY_PATH
13578 hardcode_into_libs=yes
13579 if test "$with_gnu_ld" = yes; then
13580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13581 shlibpath_overrides_runpath=no
13582 else
13583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13584 shlibpath_overrides_runpath=yes
13585 case $host_os in
13586 sco3.2v5*)
13587 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13589 esac
13591 sys_lib_dlsearch_path_spec='/usr/lib'
13594 uts4*)
13595 version_type=linux
13596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597 soname_spec='${libname}${release}${shared_ext}$major'
13598 shlibpath_var=LD_LIBRARY_PATH
13602 dynamic_linker=no
13604 esac
13605 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13606 echo "${ECHO_T}$dynamic_linker" >&6; }
13607 test "$dynamic_linker" = no && can_build_shared=no
13609 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13615 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13616 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13622 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13625 if test "$GCC" = yes; then
13626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13629 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13631 hardcode_action_CXX=
13632 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13633 test -n "$runpath_var_CXX" || \
13634 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13636 # We can hardcode non-existant directories.
13637 if test "$hardcode_direct_CXX" != no &&
13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639 # have to relink, otherwise we might link with an installed library
13640 # when we should be linking with a yet-to-be-installed one
13641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13642 test "$hardcode_minus_L_CXX" != no; then
13643 # Linking always hardcodes the temporary library directory.
13644 hardcode_action_CXX=relink
13645 else
13646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647 hardcode_action_CXX=immediate
13649 else
13650 # We cannot hardcode anything, or else we can only hardcode existing
13651 # directories.
13652 hardcode_action_CXX=unsupported
13654 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13655 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13657 if test "$hardcode_action_CXX" = relink; then
13658 # Fast installation is not supported
13659 enable_fast_install=no
13660 elif test "$shlibpath_overrides_runpath" = yes ||
13661 test "$enable_shared" = no; then
13662 # Fast installation is not necessary
13663 enable_fast_install=needless
13667 # The else clause should only fire when bootstrapping the
13668 # libtool distribution, otherwise you forgot to ship ltmain.sh
13669 # with your package, and you will get complaints that there are
13670 # no rules to generate ltmain.sh.
13671 if test -f "$ltmain"; then
13672 # See if we are running on zsh, and set the options which allow our commands through
13673 # without removal of \ escapes.
13674 if test -n "${ZSH_VERSION+set}" ; then
13675 setopt NO_GLOB_SUBST
13677 # Now quote all the things that may contain metacharacters while being
13678 # careful not to overquote the AC_SUBSTed values. We take copies of the
13679 # variables and quote the copies for generation of the libtool script.
13680 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13681 SED SHELL STRIP \
13682 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13683 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13684 deplibs_check_method reload_flag reload_cmds need_locks \
13685 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13686 lt_cv_sys_global_symbol_to_c_name_address \
13687 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13688 old_postinstall_cmds old_postuninstall_cmds \
13689 compiler_CXX \
13690 CC_CXX \
13691 LD_CXX \
13692 lt_prog_compiler_wl_CXX \
13693 lt_prog_compiler_pic_CXX \
13694 lt_prog_compiler_static_CXX \
13695 lt_prog_compiler_no_builtin_flag_CXX \
13696 export_dynamic_flag_spec_CXX \
13697 thread_safe_flag_spec_CXX \
13698 whole_archive_flag_spec_CXX \
13699 enable_shared_with_static_runtimes_CXX \
13700 old_archive_cmds_CXX \
13701 old_archive_from_new_cmds_CXX \
13702 predep_objects_CXX \
13703 postdep_objects_CXX \
13704 predeps_CXX \
13705 postdeps_CXX \
13706 compiler_lib_search_path_CXX \
13707 compiler_lib_search_dirs_CXX \
13708 archive_cmds_CXX \
13709 archive_expsym_cmds_CXX \
13710 postinstall_cmds_CXX \
13711 postuninstall_cmds_CXX \
13712 old_archive_from_expsyms_cmds_CXX \
13713 allow_undefined_flag_CXX \
13714 no_undefined_flag_CXX \
13715 export_symbols_cmds_CXX \
13716 hardcode_libdir_flag_spec_CXX \
13717 hardcode_libdir_flag_spec_ld_CXX \
13718 hardcode_libdir_separator_CXX \
13719 hardcode_automatic_CXX \
13720 module_cmds_CXX \
13721 module_expsym_cmds_CXX \
13722 lt_cv_prog_compiler_c_o_CXX \
13723 fix_srcfile_path_CXX \
13724 exclude_expsyms_CXX \
13725 include_expsyms_CXX; do
13727 case $var in
13728 old_archive_cmds_CXX | \
13729 old_archive_from_new_cmds_CXX | \
13730 archive_cmds_CXX | \
13731 archive_expsym_cmds_CXX | \
13732 module_cmds_CXX | \
13733 module_expsym_cmds_CXX | \
13734 old_archive_from_expsyms_cmds_CXX | \
13735 export_symbols_cmds_CXX | \
13736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13737 postinstall_cmds | postuninstall_cmds | \
13738 old_postinstall_cmds | old_postuninstall_cmds | \
13739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13740 # Double-quote double-evaled strings.
13741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13746 esac
13747 done
13749 case $lt_echo in
13750 *'\$0 --fallback-echo"')
13751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13753 esac
13755 cfgfile="$ofile"
13757 cat <<__EOF__ >> "$cfgfile"
13758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13762 # Shell to use when invoking shell scripts.
13763 SHELL=$lt_SHELL
13765 # Whether or not to build shared libraries.
13766 build_libtool_libs=$enable_shared
13768 # Whether or not to build static libraries.
13769 build_old_libs=$enable_static
13771 # Whether or not to add -lc for building shared libraries.
13772 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13774 # Whether or not to disallow shared libs when runtime libs are static
13775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13777 # Whether or not to optimize for fast installation.
13778 fast_install=$enable_fast_install
13780 # The host system.
13781 host_alias=$host_alias
13782 host=$host
13783 host_os=$host_os
13785 # The build system.
13786 build_alias=$build_alias
13787 build=$build
13788 build_os=$build_os
13790 # An echo program that does not interpret backslashes.
13791 echo=$lt_echo
13793 # The archiver.
13794 AR=$lt_AR
13795 AR_FLAGS=$lt_AR_FLAGS
13797 # A C compiler.
13798 LTCC=$lt_LTCC
13800 # LTCC compiler flags.
13801 LTCFLAGS=$lt_LTCFLAGS
13803 # A language-specific compiler.
13804 CC=$lt_compiler_CXX
13806 # Is the compiler the GNU C compiler?
13807 with_gcc=$GCC_CXX
13809 # An ERE matcher.
13810 EGREP=$lt_EGREP
13812 # The linker used to build libraries.
13813 LD=$lt_LD_CXX
13815 # Whether we need hard or soft links.
13816 LN_S=$lt_LN_S
13818 # A BSD-compatible nm program.
13819 NM=$lt_NM
13821 # A symbol stripping program
13822 STRIP=$lt_STRIP
13824 # Used to examine libraries when file_magic_cmd begins "file"
13825 MAGIC_CMD=$MAGIC_CMD
13827 # Used on cygwin: DLL creation program.
13828 DLLTOOL="$DLLTOOL"
13830 # Used on cygwin: object dumper.
13831 OBJDUMP="$OBJDUMP"
13833 # Used on cygwin: assembler.
13834 AS="$AS"
13836 # The name of the directory that contains temporary libtool files.
13837 objdir=$objdir
13839 # How to create reloadable object files.
13840 reload_flag=$lt_reload_flag
13841 reload_cmds=$lt_reload_cmds
13843 # How to pass a linker flag through the compiler.
13844 wl=$lt_lt_prog_compiler_wl_CXX
13846 # Object file suffix (normally "o").
13847 objext="$ac_objext"
13849 # Old archive suffix (normally "a").
13850 libext="$libext"
13852 # Shared library suffix (normally ".so").
13853 shrext_cmds='$shrext_cmds'
13855 # Executable file suffix (normally "").
13856 exeext="$exeext"
13858 # Additional compiler flags for building library objects.
13859 pic_flag=$lt_lt_prog_compiler_pic_CXX
13860 pic_mode=$pic_mode
13862 # What is the maximum length of a command?
13863 max_cmd_len=$lt_cv_sys_max_cmd_len
13865 # Does compiler simultaneously support -c and -o options?
13866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13868 # Must we lock files when doing compilation?
13869 need_locks=$lt_need_locks
13871 # Do we need the lib prefix for modules?
13872 need_lib_prefix=$need_lib_prefix
13874 # Do we need a version for libraries?
13875 need_version=$need_version
13877 # Whether dlopen is supported.
13878 dlopen_support=$enable_dlopen
13880 # Whether dlopen of programs is supported.
13881 dlopen_self=$enable_dlopen_self
13883 # Whether dlopen of statically linked programs is supported.
13884 dlopen_self_static=$enable_dlopen_self_static
13886 # Compiler flag to prevent dynamic linking.
13887 link_static_flag=$lt_lt_prog_compiler_static_CXX
13889 # Compiler flag to turn off builtin functions.
13890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13892 # Compiler flag to allow reflexive dlopens.
13893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13895 # Compiler flag to generate shared objects directly from archives.
13896 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13898 # Compiler flag to generate thread-safe objects.
13899 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13901 # Library versioning type.
13902 version_type=$version_type
13904 # Format of library name prefix.
13905 libname_spec=$lt_libname_spec
13907 # List of archive names. First name is the real one, the rest are links.
13908 # The last name is the one that the linker finds with -lNAME.
13909 library_names_spec=$lt_library_names_spec
13911 # The coded name of the library, if different from the real name.
13912 soname_spec=$lt_soname_spec
13914 # Commands used to build and install an old-style archive.
13915 RANLIB=$lt_RANLIB
13916 old_archive_cmds=$lt_old_archive_cmds_CXX
13917 old_postinstall_cmds=$lt_old_postinstall_cmds
13918 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13920 # Create an old-style archive from a shared archive.
13921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13923 # Create a temporary old-style archive to link instead of a shared archive.
13924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13926 # Commands used to build and install a shared archive.
13927 archive_cmds=$lt_archive_cmds_CXX
13928 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13929 postinstall_cmds=$lt_postinstall_cmds
13930 postuninstall_cmds=$lt_postuninstall_cmds
13932 # Commands used to build a loadable module (assumed same as above if empty)
13933 module_cmds=$lt_module_cmds_CXX
13934 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13936 # Commands to strip libraries.
13937 old_striplib=$lt_old_striplib
13938 striplib=$lt_striplib
13940 # Dependencies to place before the objects being linked to create a
13941 # shared library.
13942 predep_objects=$lt_predep_objects_CXX
13944 # Dependencies to place after the objects being linked to create a
13945 # shared library.
13946 postdep_objects=$lt_postdep_objects_CXX
13948 # Dependencies to place before the objects being linked to create a
13949 # shared library.
13950 predeps=$lt_predeps_CXX
13952 # Dependencies to place after the objects being linked to create a
13953 # shared library.
13954 postdeps=$lt_postdeps_CXX
13956 # The directories searched by this compiler when creating a shared
13957 # library
13958 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13960 # The library search path used internally by the compiler when linking
13961 # a shared library.
13962 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13964 # Method to check whether dependent libraries are shared objects.
13965 deplibs_check_method=$lt_deplibs_check_method
13967 # Command to use when deplibs_check_method == file_magic.
13968 file_magic_cmd=$lt_file_magic_cmd
13970 # Flag that allows shared libraries with undefined symbols to be built.
13971 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13973 # Flag that forces no undefined symbols.
13974 no_undefined_flag=$lt_no_undefined_flag_CXX
13976 # Commands used to finish a libtool library installation in a directory.
13977 finish_cmds=$lt_finish_cmds
13979 # Same as above, but a single script fragment to be evaled but not shown.
13980 finish_eval=$lt_finish_eval
13982 # Take the output of nm and produce a listing of raw symbols and C names.
13983 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13985 # Transform the output of nm in a proper C declaration
13986 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13988 # Transform the output of nm in a C name address pair
13989 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13991 # This is the shared library runtime path variable.
13992 runpath_var=$runpath_var
13994 # This is the shared library path variable.
13995 shlibpath_var=$shlibpath_var
13997 # Is shlibpath searched before the hard-coded library search path?
13998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14000 # How to hardcode a shared library path into an executable.
14001 hardcode_action=$hardcode_action_CXX
14003 # Whether we should hardcode library paths into libraries.
14004 hardcode_into_libs=$hardcode_into_libs
14006 # Flag to hardcode \$libdir into a binary during linking.
14007 # This must work even if \$libdir does not exist.
14008 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14010 # If ld is used when linking, flag to hardcode \$libdir into
14011 # a binary during linking. This must work even if \$libdir does
14012 # not exist.
14013 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14015 # Whether we need a single -rpath flag with a separated argument.
14016 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14018 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14019 # resulting binary.
14020 hardcode_direct=$hardcode_direct_CXX
14022 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14023 # resulting binary.
14024 hardcode_minus_L=$hardcode_minus_L_CXX
14026 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14027 # the resulting binary.
14028 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14030 # Set to yes if building a shared library automatically hardcodes DIR into the library
14031 # and all subsequent libraries and executables linked against it.
14032 hardcode_automatic=$hardcode_automatic_CXX
14034 # Variables whose values should be saved in libtool wrapper scripts and
14035 # restored at relink time.
14036 variables_saved_for_relink="$variables_saved_for_relink"
14038 # Whether libtool must link a program against all its dependency libraries.
14039 link_all_deplibs=$link_all_deplibs_CXX
14041 # Compile-time system search path for libraries
14042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14044 # Run-time system search path for libraries
14045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14047 # Fix the shell variable \$srcfile for the compiler.
14048 fix_srcfile_path=$lt_fix_srcfile_path
14050 # Set to yes if exported symbols are required.
14051 always_export_symbols=$always_export_symbols_CXX
14053 # The commands to list exported symbols.
14054 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14056 # The commands to extract the exported symbol list from a shared archive.
14057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14059 # Symbols that should not be listed in the preloaded symbols.
14060 exclude_expsyms=$lt_exclude_expsyms_CXX
14062 # Symbols that must always be exported.
14063 include_expsyms=$lt_include_expsyms_CXX
14065 # ### END LIBTOOL TAG CONFIG: $tagname
14067 __EOF__
14070 else
14071 # If there is no Makefile yet, we rely on a make rule to execute
14072 # `config.status --recheck' to rerun these tests and create the
14073 # libtool script then.
14074 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14075 if test -f "$ltmain_in"; then
14076 test -f Makefile && make "$ltmain"
14081 ac_ext=c
14082 ac_cpp='$CPP $CPPFLAGS'
14083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14087 CC=$lt_save_CC
14088 LDCXX=$LD
14089 LD=$lt_save_LD
14090 GCC=$lt_save_GCC
14091 with_gnu_ldcxx=$with_gnu_ld
14092 with_gnu_ld=$lt_save_with_gnu_ld
14093 lt_cv_path_LDCXX=$lt_cv_path_LD
14094 lt_cv_path_LD=$lt_save_path_LD
14095 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14096 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14098 else
14099 tagname=""
14103 F77)
14104 if test -n "$F77" && test "X$F77" != "Xno"; then
14106 ac_ext=f
14107 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14108 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14112 archive_cmds_need_lc_F77=no
14113 allow_undefined_flag_F77=
14114 always_export_symbols_F77=no
14115 archive_expsym_cmds_F77=
14116 export_dynamic_flag_spec_F77=
14117 hardcode_direct_F77=no
14118 hardcode_libdir_flag_spec_F77=
14119 hardcode_libdir_flag_spec_ld_F77=
14120 hardcode_libdir_separator_F77=
14121 hardcode_minus_L_F77=no
14122 hardcode_automatic_F77=no
14123 module_cmds_F77=
14124 module_expsym_cmds_F77=
14125 link_all_deplibs_F77=unknown
14126 old_archive_cmds_F77=$old_archive_cmds
14127 no_undefined_flag_F77=
14128 whole_archive_flag_spec_F77=
14129 enable_shared_with_static_runtimes_F77=no
14131 # Source file extension for f77 test sources.
14132 ac_ext=f
14134 # Object file extension for compiled f77 test sources.
14135 objext=o
14136 objext_F77=$objext
14138 # Code to be used in simple compile tests
14139 lt_simple_compile_test_code="\
14140 subroutine t
14141 return
14145 # Code to be used in simple link tests
14146 lt_simple_link_test_code="\
14147 program t
14151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14153 # If no C compiler was specified, use CC.
14154 LTCC=${LTCC-"$CC"}
14156 # If no C compiler flags were specified, use CFLAGS.
14157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14159 # Allow CC to be a program name with arguments.
14160 compiler=$CC
14163 # save warnings/boilerplate of simple test code
14164 ac_outfile=conftest.$ac_objext
14165 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14167 _lt_compiler_boilerplate=`cat conftest.err`
14168 $rm conftest*
14170 ac_outfile=conftest.$ac_objext
14171 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14173 _lt_linker_boilerplate=`cat conftest.err`
14174 $rm -r conftest*
14177 # Allow CC to be a program name with arguments.
14178 lt_save_CC="$CC"
14179 CC=${F77-"f77"}
14180 compiler=$CC
14181 compiler_F77=$CC
14182 for cc_temp in $compiler""; do
14183 case $cc_temp in
14184 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14185 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14186 \-*) ;;
14187 *) break;;
14188 esac
14189 done
14190 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14193 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14194 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14195 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14196 echo "${ECHO_T}$can_build_shared" >&6; }
14198 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14199 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14200 test "$can_build_shared" = "no" && enable_shared=no
14202 # On AIX, shared libraries and static libraries use the same namespace, and
14203 # are all built from PIC.
14204 case $host_os in
14205 aix3*)
14206 test "$enable_shared" = yes && enable_static=no
14207 if test -n "$RANLIB"; then
14208 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14209 postinstall_cmds='$RANLIB $lib'
14212 aix[4-9]*)
14213 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14214 test "$enable_shared" = yes && enable_static=no
14217 esac
14218 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14219 echo "${ECHO_T}$enable_shared" >&6; }
14221 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14222 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14223 # Make sure either enable_shared or enable_static is yes.
14224 test "$enable_shared" = yes || enable_static=yes
14225 { echo "$as_me:$LINENO: result: $enable_static" >&5
14226 echo "${ECHO_T}$enable_static" >&6; }
14228 GCC_F77="$G77"
14229 LD_F77="$LD"
14231 lt_prog_compiler_wl_F77=
14232 lt_prog_compiler_pic_F77=
14233 lt_prog_compiler_static_F77=
14235 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14236 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14238 if test "$GCC" = yes; then
14239 lt_prog_compiler_wl_F77='-Wl,'
14240 lt_prog_compiler_static_F77='-static'
14242 case $host_os in
14243 aix*)
14244 # All AIX code is PIC.
14245 if test "$host_cpu" = ia64; then
14246 # AIX 5 now supports IA64 processor
14247 lt_prog_compiler_static_F77='-Bstatic'
14251 amigaos*)
14252 # FIXME: we need at least 68020 code to build shared libraries, but
14253 # adding the `-m68020' flag to GCC prevents building anything better,
14254 # like `-m68040'.
14255 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14258 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14259 # PIC is the default for these OSes.
14262 mingw* | cygwin* | pw32* | os2*)
14263 # This hack is so that the source file can tell whether it is being
14264 # built for inclusion in a dll (and should export symbols for example).
14265 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14266 # (--disable-auto-import) libraries
14267 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14270 darwin* | rhapsody*)
14271 # PIC is the default on this platform
14272 # Common symbols not allowed in MH_DYLIB files
14273 lt_prog_compiler_pic_F77='-fno-common'
14276 interix[3-9]*)
14277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14278 # Instead, we relocate shared libraries at runtime.
14281 msdosdjgpp*)
14282 # Just because we use GCC doesn't mean we suddenly get shared libraries
14283 # on systems that don't support them.
14284 lt_prog_compiler_can_build_shared_F77=no
14285 enable_shared=no
14288 sysv4*MP*)
14289 if test -d /usr/nec; then
14290 lt_prog_compiler_pic_F77=-Kconform_pic
14294 hpux*)
14295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14296 # not for PA HP-UX.
14297 case $host_cpu in
14298 hppa*64*|ia64*)
14299 # +Z the default
14302 lt_prog_compiler_pic_F77='-fPIC'
14304 esac
14308 lt_prog_compiler_pic_F77='-fPIC'
14310 esac
14311 else
14312 # PORTME Check for flag to pass linker flags through the system compiler.
14313 case $host_os in
14314 aix*)
14315 lt_prog_compiler_wl_F77='-Wl,'
14316 if test "$host_cpu" = ia64; then
14317 # AIX 5 now supports IA64 processor
14318 lt_prog_compiler_static_F77='-Bstatic'
14319 else
14320 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14323 darwin*)
14324 # PIC is the default on this platform
14325 # Common symbols not allowed in MH_DYLIB files
14326 case $cc_basename in
14327 xlc*)
14328 lt_prog_compiler_pic_F77='-qnocommon'
14329 lt_prog_compiler_wl_F77='-Wl,'
14331 esac
14334 mingw* | cygwin* | pw32* | os2*)
14335 # This hack is so that the source file can tell whether it is being
14336 # built for inclusion in a dll (and should export symbols for example).
14337 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14340 hpux9* | hpux10* | hpux11*)
14341 lt_prog_compiler_wl_F77='-Wl,'
14342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14343 # not for PA HP-UX.
14344 case $host_cpu in
14345 hppa*64*|ia64*)
14346 # +Z the default
14349 lt_prog_compiler_pic_F77='+Z'
14351 esac
14352 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14353 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14356 irix5* | irix6* | nonstopux*)
14357 lt_prog_compiler_wl_F77='-Wl,'
14358 # PIC (with -KPIC) is the default.
14359 lt_prog_compiler_static_F77='-non_shared'
14362 newsos6)
14363 lt_prog_compiler_pic_F77='-KPIC'
14364 lt_prog_compiler_static_F77='-Bstatic'
14367 linux* | k*bsd*-gnu)
14368 case $cc_basename in
14369 icc* | ecc*)
14370 lt_prog_compiler_wl_F77='-Wl,'
14371 lt_prog_compiler_pic_F77='-KPIC'
14372 lt_prog_compiler_static_F77='-static'
14374 pgcc* | pgf77* | pgf90* | pgf95*)
14375 # Portland Group compilers (*not* the Pentium gcc compiler,
14376 # which looks to be a dead project)
14377 lt_prog_compiler_wl_F77='-Wl,'
14378 lt_prog_compiler_pic_F77='-fpic'
14379 lt_prog_compiler_static_F77='-Bstatic'
14381 ccc*)
14382 lt_prog_compiler_wl_F77='-Wl,'
14383 # All Alpha code is PIC.
14384 lt_prog_compiler_static_F77='-non_shared'
14387 case `$CC -V 2>&1 | sed 5q` in
14388 *Sun\ C*)
14389 # Sun C 5.9
14390 lt_prog_compiler_pic_F77='-KPIC'
14391 lt_prog_compiler_static_F77='-Bstatic'
14392 lt_prog_compiler_wl_F77='-Wl,'
14394 *Sun\ F*)
14395 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14396 lt_prog_compiler_pic_F77='-KPIC'
14397 lt_prog_compiler_static_F77='-Bstatic'
14398 lt_prog_compiler_wl_F77=''
14400 esac
14402 esac
14405 osf3* | osf4* | osf5*)
14406 lt_prog_compiler_wl_F77='-Wl,'
14407 # All OSF/1 code is PIC.
14408 lt_prog_compiler_static_F77='-non_shared'
14411 rdos*)
14412 lt_prog_compiler_static_F77='-non_shared'
14415 solaris*)
14416 lt_prog_compiler_pic_F77='-KPIC'
14417 lt_prog_compiler_static_F77='-Bstatic'
14418 case $cc_basename in
14419 f77* | f90* | f95*)
14420 lt_prog_compiler_wl_F77='-Qoption ld ';;
14422 lt_prog_compiler_wl_F77='-Wl,';;
14423 esac
14426 sunos4*)
14427 lt_prog_compiler_wl_F77='-Qoption ld '
14428 lt_prog_compiler_pic_F77='-PIC'
14429 lt_prog_compiler_static_F77='-Bstatic'
14432 sysv4 | sysv4.2uw2* | sysv4.3*)
14433 lt_prog_compiler_wl_F77='-Wl,'
14434 lt_prog_compiler_pic_F77='-KPIC'
14435 lt_prog_compiler_static_F77='-Bstatic'
14438 sysv4*MP*)
14439 if test -d /usr/nec ;then
14440 lt_prog_compiler_pic_F77='-Kconform_pic'
14441 lt_prog_compiler_static_F77='-Bstatic'
14445 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14446 lt_prog_compiler_wl_F77='-Wl,'
14447 lt_prog_compiler_pic_F77='-KPIC'
14448 lt_prog_compiler_static_F77='-Bstatic'
14451 unicos*)
14452 lt_prog_compiler_wl_F77='-Wl,'
14453 lt_prog_compiler_can_build_shared_F77=no
14456 uts4*)
14457 lt_prog_compiler_pic_F77='-pic'
14458 lt_prog_compiler_static_F77='-Bstatic'
14462 lt_prog_compiler_can_build_shared_F77=no
14464 esac
14467 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14468 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14471 # Check to make sure the PIC flag actually works.
14473 if test -n "$lt_prog_compiler_pic_F77"; then
14475 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14476 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14477 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480 lt_cv_prog_compiler_pic_works_F77=no
14481 ac_outfile=conftest.$ac_objext
14482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14483 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14484 # Insert the option either (1) after the last *FLAGS variable, or
14485 # (2) before a word containing "conftest.", or (3) at the end.
14486 # Note that $ac_compile itself does not contain backslashes and begins
14487 # with a dollar sign (not a hyphen), so the echo should work correctly.
14488 # The option is referenced via a variable to avoid confusing sed.
14489 lt_compile=`echo "$ac_compile" | $SED \
14490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14492 -e 's:$: $lt_compiler_flag:'`
14493 (eval echo "\"\$as_me:14493: $lt_compile\"" >&5)
14494 (eval "$lt_compile" 2>conftest.err)
14495 ac_status=$?
14496 cat conftest.err >&5
14497 echo "$as_me:14497: \$? = $ac_status" >&5
14498 if (exit $ac_status) && test -s "$ac_outfile"; then
14499 # The compiler can only warn and ignore the option if not recognized
14500 # So say no if there are warnings other than the usual output.
14501 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14504 lt_cv_prog_compiler_pic_works_F77=yes
14507 $rm conftest*
14510 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14511 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14513 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14514 case $lt_prog_compiler_pic_F77 in
14515 "" | " "*) ;;
14516 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14517 esac
14518 else
14519 lt_prog_compiler_pic_F77=
14520 lt_prog_compiler_can_build_shared_F77=no
14524 case $host_os in
14525 # For platforms which do not support PIC, -DPIC is meaningless:
14526 *djgpp*)
14527 lt_prog_compiler_pic_F77=
14530 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14532 esac
14535 # Check to make sure the static flag actually works.
14537 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14538 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14539 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14540 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543 lt_cv_prog_compiler_static_works_F77=no
14544 save_LDFLAGS="$LDFLAGS"
14545 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14546 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14548 # The linker can only warn and ignore the option if not recognized
14549 # So say no if there are warnings
14550 if test -s conftest.err; then
14551 # Append any errors to the config.log.
14552 cat conftest.err 1>&5
14553 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14555 if diff conftest.exp conftest.er2 >/dev/null; then
14556 lt_cv_prog_compiler_static_works_F77=yes
14558 else
14559 lt_cv_prog_compiler_static_works_F77=yes
14562 $rm -r conftest*
14563 LDFLAGS="$save_LDFLAGS"
14566 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14567 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14569 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14571 else
14572 lt_prog_compiler_static_F77=
14576 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14577 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14578 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 lt_cv_prog_compiler_c_o_F77=no
14582 $rm -r conftest 2>/dev/null
14583 mkdir conftest
14584 cd conftest
14585 mkdir out
14586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14588 lt_compiler_flag="-o out/conftest2.$ac_objext"
14589 # Insert the option either (1) after the last *FLAGS variable, or
14590 # (2) before a word containing "conftest.", or (3) at the end.
14591 # Note that $ac_compile itself does not contain backslashes and begins
14592 # with a dollar sign (not a hyphen), so the echo should work correctly.
14593 lt_compile=`echo "$ac_compile" | $SED \
14594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14596 -e 's:$: $lt_compiler_flag:'`
14597 (eval echo "\"\$as_me:14597: $lt_compile\"" >&5)
14598 (eval "$lt_compile" 2>out/conftest.err)
14599 ac_status=$?
14600 cat out/conftest.err >&5
14601 echo "$as_me:14601: \$? = $ac_status" >&5
14602 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14603 then
14604 # The compiler can only warn and ignore the option if not recognized
14605 # So say no if there are warnings
14606 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14609 lt_cv_prog_compiler_c_o_F77=yes
14612 chmod u+w . 2>&5
14613 $rm conftest*
14614 # SGI C++ compiler will create directory out/ii_files/ for
14615 # template instantiation
14616 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14617 $rm out/* && rmdir out
14618 cd ..
14619 rmdir conftest
14620 $rm conftest*
14623 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14624 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14627 hard_links="nottested"
14628 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14629 # do not overwrite the value of need_locks provided by the user
14630 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14631 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14632 hard_links=yes
14633 $rm conftest*
14634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14635 touch conftest.a
14636 ln conftest.a conftest.b 2>&5 || hard_links=no
14637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14638 { echo "$as_me:$LINENO: result: $hard_links" >&5
14639 echo "${ECHO_T}$hard_links" >&6; }
14640 if test "$hard_links" = no; then
14641 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14642 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14643 need_locks=warn
14645 else
14646 need_locks=no
14649 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14650 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14652 runpath_var=
14653 allow_undefined_flag_F77=
14654 enable_shared_with_static_runtimes_F77=no
14655 archive_cmds_F77=
14656 archive_expsym_cmds_F77=
14657 old_archive_From_new_cmds_F77=
14658 old_archive_from_expsyms_cmds_F77=
14659 export_dynamic_flag_spec_F77=
14660 whole_archive_flag_spec_F77=
14661 thread_safe_flag_spec_F77=
14662 hardcode_libdir_flag_spec_F77=
14663 hardcode_libdir_flag_spec_ld_F77=
14664 hardcode_libdir_separator_F77=
14665 hardcode_direct_F77=no
14666 hardcode_minus_L_F77=no
14667 hardcode_shlibpath_var_F77=unsupported
14668 link_all_deplibs_F77=unknown
14669 hardcode_automatic_F77=no
14670 module_cmds_F77=
14671 module_expsym_cmds_F77=
14672 always_export_symbols_F77=no
14673 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14674 # include_expsyms should be a list of space-separated symbols to be *always*
14675 # included in the symbol list
14676 include_expsyms_F77=
14677 # exclude_expsyms can be an extended regexp of symbols to exclude
14678 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14679 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14680 # as well as any symbol that contains `d'.
14681 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14682 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14683 # platforms (ab)use it in PIC code, but their linkers get confused if
14684 # the symbol is explicitly referenced. Since portable code cannot
14685 # rely on this symbol name, it's probably fine to never include it in
14686 # preloaded symbol tables.
14687 # Exclude shared library initialization/finalization symbols.
14688 extract_expsyms_cmds=
14689 # Just being paranoid about ensuring that cc_basename is set.
14690 for cc_temp in $compiler""; do
14691 case $cc_temp in
14692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14694 \-*) ;;
14695 *) break;;
14696 esac
14697 done
14698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14700 case $host_os in
14701 cygwin* | mingw* | pw32*)
14702 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14703 # When not using gcc, we currently assume that we are using
14704 # Microsoft Visual C++.
14705 if test "$GCC" != yes; then
14706 with_gnu_ld=no
14709 interix*)
14710 # we just hope/assume this is gcc and not c89 (= MSVC++)
14711 with_gnu_ld=yes
14713 openbsd*)
14714 with_gnu_ld=no
14716 esac
14718 ld_shlibs_F77=yes
14719 if test "$with_gnu_ld" = yes; then
14720 # If archive_cmds runs LD, not CC, wlarc should be empty
14721 wlarc='${wl}'
14723 # Set some defaults for GNU ld with shared library support. These
14724 # are reset later if shared libraries are not supported. Putting them
14725 # here allows them to be overridden if necessary.
14726 runpath_var=LD_RUN_PATH
14727 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14728 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14729 # ancient GNU ld didn't support --whole-archive et. al.
14730 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14731 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14732 else
14733 whole_archive_flag_spec_F77=
14735 supports_anon_versioning=no
14736 case `$LD -v 2>/dev/null` in
14737 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14738 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14739 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14740 *\ 2.11.*) ;; # other 2.11 versions
14741 *) supports_anon_versioning=yes ;;
14742 esac
14744 # See if GNU ld supports shared libraries.
14745 case $host_os in
14746 aix[3-9]*)
14747 # On AIX/PPC, the GNU linker is very broken
14748 if test "$host_cpu" != ia64; then
14749 ld_shlibs_F77=no
14750 cat <<EOF 1>&2
14752 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14753 *** to be unable to reliably create shared libraries on AIX.
14754 *** Therefore, libtool is disabling shared libraries support. If you
14755 *** really care for shared libraries, you may want to modify your PATH
14756 *** so that a non-GNU linker is found, and then restart.
14762 amigaos*)
14763 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)'
14764 hardcode_libdir_flag_spec_F77='-L$libdir'
14765 hardcode_minus_L_F77=yes
14767 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14768 # that the semantics of dynamic libraries on AmigaOS, at least up
14769 # to version 4, is to share data among multiple programs linked
14770 # with the same dynamic library. Since this doesn't match the
14771 # behavior of shared libraries on other platforms, we can't use
14772 # them.
14773 ld_shlibs_F77=no
14776 beos*)
14777 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14778 allow_undefined_flag_F77=unsupported
14779 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14780 # support --undefined. This deserves some investigation. FIXME
14781 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14782 else
14783 ld_shlibs_F77=no
14787 cygwin* | mingw* | pw32*)
14788 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14789 # as there is no search path for DLLs.
14790 hardcode_libdir_flag_spec_F77='-L$libdir'
14791 allow_undefined_flag_F77=unsupported
14792 always_export_symbols_F77=no
14793 enable_shared_with_static_runtimes_F77=yes
14794 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14796 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14797 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14798 # If the export-symbols file already is a .def file (1st line
14799 # is EXPORTS), use it as is; otherwise, prepend...
14800 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14801 cp $export_symbols $output_objdir/$soname.def;
14802 else
14803 echo EXPORTS > $output_objdir/$soname.def;
14804 cat $export_symbols >> $output_objdir/$soname.def;
14806 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14807 else
14808 ld_shlibs_F77=no
14812 interix[3-9]*)
14813 hardcode_direct_F77=no
14814 hardcode_shlibpath_var_F77=no
14815 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14816 export_dynamic_flag_spec_F77='${wl}-E'
14817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14818 # Instead, shared libraries are loaded at an image base (0x10000000 by
14819 # default) and relocated if they conflict, which is a slow very memory
14820 # consuming and fragmenting process. To avoid this, we pick a random,
14821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14823 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14824 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14827 gnu* | linux* | k*bsd*-gnu)
14828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14829 tmp_addflag=
14830 case $cc_basename,$host_cpu in
14831 pgcc*) # Portland Group C compiler
14832 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'
14833 tmp_addflag=' $pic_flag'
14835 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14836 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'
14837 tmp_addflag=' $pic_flag -Mnomain' ;;
14838 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14839 tmp_addflag=' -i_dynamic' ;;
14840 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14841 tmp_addflag=' -i_dynamic -nofor_main' ;;
14842 ifc* | ifort*) # Intel Fortran compiler
14843 tmp_addflag=' -nofor_main' ;;
14844 esac
14845 case `$CC -V 2>&1 | sed 5q` in
14846 *Sun\ C*) # Sun C 5.9
14847 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14848 tmp_sharedflag='-G' ;;
14849 *Sun\ F*) # Sun Fortran 8.3
14850 tmp_sharedflag='-G' ;;
14852 tmp_sharedflag='-shared' ;;
14853 esac
14854 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14856 if test $supports_anon_versioning = yes; then
14857 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14859 $echo "local: *; };" >> $output_objdir/$libname.ver~
14860 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14862 else
14863 ld_shlibs_F77=no
14867 netbsd*)
14868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14869 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14870 wlarc=
14871 else
14872 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14873 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14877 solaris*)
14878 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14879 ld_shlibs_F77=no
14880 cat <<EOF 1>&2
14882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14883 *** create shared libraries on Solaris systems. Therefore, libtool
14884 *** is disabling shared libraries support. We urge you to upgrade GNU
14885 *** binutils to release 2.9.1 or newer. Another option is to modify
14886 *** your PATH or compiler configuration so that the native linker is
14887 *** used, and then restart.
14890 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14893 else
14894 ld_shlibs_F77=no
14898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14899 case `$LD -v 2>&1` in
14900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14901 ld_shlibs_F77=no
14902 cat <<_LT_EOF 1>&2
14904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14905 *** reliably create shared libraries on SCO systems. Therefore, libtool
14906 *** is disabling shared libraries support. We urge you to upgrade GNU
14907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14908 *** your PATH or compiler configuration so that the native linker is
14909 *** used, and then restart.
14911 _LT_EOF
14914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14915 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14917 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14918 else
14919 ld_shlibs_F77=no
14922 esac
14925 sunos4*)
14926 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14927 wlarc=
14928 hardcode_direct_F77=yes
14929 hardcode_shlibpath_var_F77=no
14933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14934 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14935 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14936 else
14937 ld_shlibs_F77=no
14940 esac
14942 if test "$ld_shlibs_F77" = no; then
14943 runpath_var=
14944 hardcode_libdir_flag_spec_F77=
14945 export_dynamic_flag_spec_F77=
14946 whole_archive_flag_spec_F77=
14948 else
14949 # PORTME fill in a description of your system's linker (not GNU ld)
14950 case $host_os in
14951 aix3*)
14952 allow_undefined_flag_F77=unsupported
14953 always_export_symbols_F77=yes
14954 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'
14955 # Note: this linker hardcodes the directories in LIBPATH if there
14956 # are no directories specified by -L.
14957 hardcode_minus_L_F77=yes
14958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14959 # Neither direct hardcoding nor static linking is supported with a
14960 # broken collect2.
14961 hardcode_direct_F77=unsupported
14965 aix[4-9]*)
14966 if test "$host_cpu" = ia64; then
14967 # On IA64, the linker does run time linking by default, so we don't
14968 # have to do anything special.
14969 aix_use_runtimelinking=no
14970 exp_sym_flag='-Bexport'
14971 no_entry_flag=""
14972 else
14973 # If we're using GNU nm, then we don't want the "-C" option.
14974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14975 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14976 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'
14977 else
14978 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'
14980 aix_use_runtimelinking=no
14982 # Test if we are trying to use run time linking or normal
14983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14984 # need to do runtime linking.
14985 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14986 for ld_flag in $LDFLAGS; do
14987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14988 aix_use_runtimelinking=yes
14989 break
14991 done
14993 esac
14995 exp_sym_flag='-bexport'
14996 no_entry_flag='-bnoentry'
14999 # When large executables or shared objects are built, AIX ld can
15000 # have problems creating the table of contents. If linking a library
15001 # or program results in "error TOC overflow" add -mminimal-toc to
15002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15005 archive_cmds_F77=''
15006 hardcode_direct_F77=yes
15007 hardcode_libdir_separator_F77=':'
15008 link_all_deplibs_F77=yes
15010 if test "$GCC" = yes; then
15011 case $host_os in aix4.[012]|aix4.[012].*)
15012 # We only want to do this on AIX 4.2 and lower, the check
15013 # below for broken collect2 doesn't work under 4.3+
15014 collect2name=`${CC} -print-prog-name=collect2`
15015 if test -f "$collect2name" && \
15016 strings "$collect2name" | grep resolve_lib_name >/dev/null
15017 then
15018 # We have reworked collect2
15020 else
15021 # We have old collect2
15022 hardcode_direct_F77=unsupported
15023 # It fails to find uninstalled libraries when the uninstalled
15024 # path is not listed in the libpath. Setting hardcode_minus_L
15025 # to unsupported forces relinking
15026 hardcode_minus_L_F77=yes
15027 hardcode_libdir_flag_spec_F77='-L$libdir'
15028 hardcode_libdir_separator_F77=
15031 esac
15032 shared_flag='-shared'
15033 if test "$aix_use_runtimelinking" = yes; then
15034 shared_flag="$shared_flag "'${wl}-G'
15036 else
15037 # not using gcc
15038 if test "$host_cpu" = ia64; then
15039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15040 # chokes on -Wl,-G. The following line is correct:
15041 shared_flag='-G'
15042 else
15043 if test "$aix_use_runtimelinking" = yes; then
15044 shared_flag='${wl}-G'
15045 else
15046 shared_flag='${wl}-bM:SRE'
15051 # It seems that -bexpall does not export symbols beginning with
15052 # underscore (_), so it is better to generate a list of symbols to export.
15053 always_export_symbols_F77=yes
15054 if test "$aix_use_runtimelinking" = yes; then
15055 # Warning - without using the other runtime loading flags (-brtl),
15056 # -berok will link without error, but may produce a broken library.
15057 allow_undefined_flag_F77='-berok'
15058 # Determine the default libpath from the value encoded in an empty executable.
15059 cat >conftest.$ac_ext <<_ACEOF
15060 program main
15063 _ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (ac_try="$ac_link"
15066 case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_link") 2>conftest.er1
15072 ac_status=$?
15073 grep -v '^ *+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && {
15078 test -z "$ac_f77_werror_flag" ||
15079 test ! -s conftest.err
15080 } && test -s conftest$ac_exeext &&
15081 $as_test_x conftest$ac_exeext; then
15083 lt_aix_libpath_sed='
15084 /Import File Strings/,/^$/ {
15085 /^0/ {
15086 s/^0 *\(.*\)$/\1/
15090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15091 # Check for a 64-bit object if we didn't find anything.
15092 if test -z "$aix_libpath"; then
15093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095 else
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15103 conftest$ac_exeext conftest.$ac_ext
15104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15106 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15107 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15108 else
15109 if test "$host_cpu" = ia64; then
15110 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15111 allow_undefined_flag_F77="-z nodefs"
15112 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15113 else
15114 # Determine the default libpath from the value encoded in an empty executable.
15115 cat >conftest.$ac_ext <<_ACEOF
15116 program main
15119 _ACEOF
15120 rm -f conftest.$ac_objext conftest$ac_exeext
15121 if { (ac_try="$ac_link"
15122 case "(($ac_try" in
15123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124 *) ac_try_echo=$ac_try;;
15125 esac
15126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15127 (eval "$ac_link") 2>conftest.er1
15128 ac_status=$?
15129 grep -v '^ *+' conftest.er1 >conftest.err
15130 rm -f conftest.er1
15131 cat conftest.err >&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } && {
15134 test -z "$ac_f77_werror_flag" ||
15135 test ! -s conftest.err
15136 } && test -s conftest$ac_exeext &&
15137 $as_test_x conftest$ac_exeext; then
15139 lt_aix_libpath_sed='
15140 /Import File Strings/,/^$/ {
15141 /^0/ {
15142 s/^0 *\(.*\)$/\1/
15146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15147 # Check for a 64-bit object if we didn't find anything.
15148 if test -z "$aix_libpath"; then
15149 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15151 else
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15159 conftest$ac_exeext conftest.$ac_ext
15160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15162 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15163 # Warning - without using the other run time loading flags,
15164 # -berok will link without error, but may produce a broken library.
15165 no_undefined_flag_F77=' ${wl}-bernotok'
15166 allow_undefined_flag_F77=' ${wl}-berok'
15167 # Exported symbols can be pulled into shared objects from archives
15168 whole_archive_flag_spec_F77='$convenience'
15169 archive_cmds_need_lc_F77=yes
15170 # This is similar to how AIX traditionally builds its shared libraries.
15171 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15176 amigaos*)
15177 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)'
15178 hardcode_libdir_flag_spec_F77='-L$libdir'
15179 hardcode_minus_L_F77=yes
15180 # see comment about different semantics on the GNU ld section
15181 ld_shlibs_F77=no
15184 bsdi[45]*)
15185 export_dynamic_flag_spec_F77=-rdynamic
15188 cygwin* | mingw* | pw32*)
15189 # When not using gcc, we currently assume that we are using
15190 # Microsoft Visual C++.
15191 # hardcode_libdir_flag_spec is actually meaningless, as there is
15192 # no search path for DLLs.
15193 hardcode_libdir_flag_spec_F77=' '
15194 allow_undefined_flag_F77=unsupported
15195 # Tell ltmain to make .lib files, not .a files.
15196 libext=lib
15197 # Tell ltmain to make .dll files, not .so files.
15198 shrext_cmds=".dll"
15199 # FIXME: Setting linknames here is a bad hack.
15200 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15201 # The linker will automatically build a .lib file if we build a DLL.
15202 old_archive_From_new_cmds_F77='true'
15203 # FIXME: Should let the user specify the lib program.
15204 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15205 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15206 enable_shared_with_static_runtimes_F77=yes
15209 darwin* | rhapsody*)
15210 case $host_os in
15211 rhapsody* | darwin1.[012])
15212 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15214 *) # Darwin 1.3 on
15215 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15216 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15217 else
15218 case ${MACOSX_DEPLOYMENT_TARGET} in
15219 10.[012])
15220 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15222 10.*)
15223 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15225 esac
15228 esac
15229 archive_cmds_need_lc_F77=no
15230 hardcode_direct_F77=no
15231 hardcode_automatic_F77=yes
15232 hardcode_shlibpath_var_F77=unsupported
15233 whole_archive_flag_spec_F77=''
15234 link_all_deplibs_F77=yes
15235 if test "$GCC" = yes ; then
15236 output_verbose_link_cmd='echo'
15237 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15238 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15239 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15240 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15241 else
15242 case $cc_basename in
15243 xlc*)
15244 output_verbose_link_cmd='echo'
15245 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15246 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15247 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15248 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15249 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}'
15252 ld_shlibs_F77=no
15254 esac
15258 dgux*)
15259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15260 hardcode_libdir_flag_spec_F77='-L$libdir'
15261 hardcode_shlibpath_var_F77=no
15264 freebsd1*)
15265 ld_shlibs_F77=no
15268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15269 # support. Future versions do this automatically, but an explicit c++rt0.o
15270 # does not break anything, and helps significantly (at the cost of a little
15271 # extra space).
15272 freebsd2.2*)
15273 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15274 hardcode_libdir_flag_spec_F77='-R$libdir'
15275 hardcode_direct_F77=yes
15276 hardcode_shlibpath_var_F77=no
15279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15280 freebsd2*)
15281 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15282 hardcode_direct_F77=yes
15283 hardcode_minus_L_F77=yes
15284 hardcode_shlibpath_var_F77=no
15287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15288 freebsd* | dragonfly*)
15289 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15290 hardcode_libdir_flag_spec_F77='-R$libdir'
15291 hardcode_direct_F77=yes
15292 hardcode_shlibpath_var_F77=no
15295 hpux9*)
15296 if test "$GCC" = yes; then
15297 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'
15298 else
15299 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'
15301 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15302 hardcode_libdir_separator_F77=:
15303 hardcode_direct_F77=yes
15305 # hardcode_minus_L: Not really in the search PATH,
15306 # but as the default location of the library.
15307 hardcode_minus_L_F77=yes
15308 export_dynamic_flag_spec_F77='${wl}-E'
15311 hpux10*)
15312 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15313 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15314 else
15315 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15317 if test "$with_gnu_ld" = no; then
15318 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15319 hardcode_libdir_separator_F77=:
15321 hardcode_direct_F77=yes
15322 export_dynamic_flag_spec_F77='${wl}-E'
15324 # hardcode_minus_L: Not really in the search PATH,
15325 # but as the default location of the library.
15326 hardcode_minus_L_F77=yes
15330 hpux11*)
15331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15332 case $host_cpu in
15333 hppa*64*)
15334 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15336 ia64*)
15337 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15340 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15342 esac
15343 else
15344 case $host_cpu in
15345 hppa*64*)
15346 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15348 ia64*)
15349 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15352 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15354 esac
15356 if test "$with_gnu_ld" = no; then
15357 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15358 hardcode_libdir_separator_F77=:
15360 case $host_cpu in
15361 hppa*64*|ia64*)
15362 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15363 hardcode_direct_F77=no
15364 hardcode_shlibpath_var_F77=no
15367 hardcode_direct_F77=yes
15368 export_dynamic_flag_spec_F77='${wl}-E'
15370 # hardcode_minus_L: Not really in the search PATH,
15371 # but as the default location of the library.
15372 hardcode_minus_L_F77=yes
15374 esac
15378 irix5* | irix6* | nonstopux*)
15379 if test "$GCC" = yes; then
15380 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'
15381 else
15382 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'
15383 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15385 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15386 hardcode_libdir_separator_F77=:
15387 link_all_deplibs_F77=yes
15390 netbsd*)
15391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15392 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15393 else
15394 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15396 hardcode_libdir_flag_spec_F77='-R$libdir'
15397 hardcode_direct_F77=yes
15398 hardcode_shlibpath_var_F77=no
15401 newsos6)
15402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15403 hardcode_direct_F77=yes
15404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15405 hardcode_libdir_separator_F77=:
15406 hardcode_shlibpath_var_F77=no
15409 openbsd*)
15410 if test -f /usr/libexec/ld.so; then
15411 hardcode_direct_F77=yes
15412 hardcode_shlibpath_var_F77=no
15413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15414 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15415 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15416 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15417 export_dynamic_flag_spec_F77='${wl}-E'
15418 else
15419 case $host_os in
15420 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15421 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15422 hardcode_libdir_flag_spec_F77='-R$libdir'
15425 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15426 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15428 esac
15430 else
15431 ld_shlibs_F77=no
15435 os2*)
15436 hardcode_libdir_flag_spec_F77='-L$libdir'
15437 hardcode_minus_L_F77=yes
15438 allow_undefined_flag_F77=unsupported
15439 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'
15440 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15443 osf3*)
15444 if test "$GCC" = yes; then
15445 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15446 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'
15447 else
15448 allow_undefined_flag_F77=' -expect_unresolved \*'
15449 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'
15451 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15452 hardcode_libdir_separator_F77=:
15455 osf4* | osf5*) # as osf3* with the addition of -msym flag
15456 if test "$GCC" = yes; then
15457 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15458 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'
15459 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15460 else
15461 allow_undefined_flag_F77=' -expect_unresolved \*'
15462 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'
15463 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~
15464 $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'
15466 # Both c and cxx compiler support -rpath directly
15467 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15469 hardcode_libdir_separator_F77=:
15472 solaris*)
15473 no_undefined_flag_F77=' -z text'
15474 if test "$GCC" = yes; then
15475 wlarc='${wl}'
15476 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15477 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15478 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15479 else
15480 wlarc=''
15481 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15482 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15485 hardcode_libdir_flag_spec_F77='-R$libdir'
15486 hardcode_shlibpath_var_F77=no
15487 case $host_os in
15488 solaris2.[0-5] | solaris2.[0-5].*) ;;
15490 # The compiler driver will combine and reorder linker options,
15491 # but understands `-z linker_flag'. GCC discards it without `$wl',
15492 # but is careful enough not to reorder.
15493 # Supported since Solaris 2.6 (maybe 2.5.1?)
15494 if test "$GCC" = yes; then
15495 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15496 else
15497 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15500 esac
15501 link_all_deplibs_F77=yes
15504 sunos4*)
15505 if test "x$host_vendor" = xsequent; then
15506 # Use $CC to link under sequent, because it throws in some extra .o
15507 # files that make .init and .fini sections work.
15508 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15509 else
15510 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15512 hardcode_libdir_flag_spec_F77='-L$libdir'
15513 hardcode_direct_F77=yes
15514 hardcode_minus_L_F77=yes
15515 hardcode_shlibpath_var_F77=no
15518 sysv4)
15519 case $host_vendor in
15520 sni)
15521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct_F77=yes # is this really true???
15524 siemens)
15525 ## LD is ld it makes a PLAMLIB
15526 ## CC just makes a GrossModule.
15527 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15528 reload_cmds_F77='$CC -r -o $output$reload_objs'
15529 hardcode_direct_F77=no
15531 motorola)
15532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15533 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15535 esac
15536 runpath_var='LD_RUN_PATH'
15537 hardcode_shlibpath_var_F77=no
15540 sysv4.3*)
15541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_shlibpath_var_F77=no
15543 export_dynamic_flag_spec_F77='-Bexport'
15546 sysv4*MP*)
15547 if test -d /usr/nec; then
15548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549 hardcode_shlibpath_var_F77=no
15550 runpath_var=LD_RUN_PATH
15551 hardcode_runpath_var=yes
15552 ld_shlibs_F77=yes
15556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15557 no_undefined_flag_F77='${wl}-z,text'
15558 archive_cmds_need_lc_F77=no
15559 hardcode_shlibpath_var_F77=no
15560 runpath_var='LD_RUN_PATH'
15562 if test "$GCC" = yes; then
15563 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15565 else
15566 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15567 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571 sysv5* | sco3.2v5* | sco5v6*)
15572 # Note: We can NOT use -z defs as we might desire, because we do not
15573 # link with -lc, and that would cause any symbols used from libc to
15574 # always be unresolved, which means just about no library would
15575 # ever link correctly. If we're not using GNU ld we use -z text
15576 # though, which does catch some bad symbols but isn't as heavy-handed
15577 # as -z defs.
15578 no_undefined_flag_F77='${wl}-z,text'
15579 allow_undefined_flag_F77='${wl}-z,nodefs'
15580 archive_cmds_need_lc_F77=no
15581 hardcode_shlibpath_var_F77=no
15582 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15583 hardcode_libdir_separator_F77=':'
15584 link_all_deplibs_F77=yes
15585 export_dynamic_flag_spec_F77='${wl}-Bexport'
15586 runpath_var='LD_RUN_PATH'
15588 if test "$GCC" = yes; then
15589 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 else
15592 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15593 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 uts4*)
15598 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_libdir_flag_spec_F77='-L$libdir'
15600 hardcode_shlibpath_var_F77=no
15604 ld_shlibs_F77=no
15606 esac
15609 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15610 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15611 test "$ld_shlibs_F77" = no && can_build_shared=no
15614 # Do we need to explicitly link libc?
15616 case "x$archive_cmds_need_lc_F77" in
15617 x|xyes)
15618 # Assume -lc should be added
15619 archive_cmds_need_lc_F77=yes
15621 if test "$enable_shared" = yes && test "$GCC" = yes; then
15622 case $archive_cmds_F77 in
15623 *'~'*)
15624 # FIXME: we may have to deal with multi-command sequences.
15626 '$CC '*)
15627 # Test whether the compiler implicitly links with -lc since on some
15628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15629 # to ld, don't add -lc before -lgcc.
15630 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15632 $rm conftest*
15633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15636 (eval $ac_compile) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } 2>conftest.err; then
15640 soname=conftest
15641 lib=conftest
15642 libobjs=conftest.$ac_objext
15643 deplibs=
15644 wl=$lt_prog_compiler_wl_F77
15645 pic_flag=$lt_prog_compiler_pic_F77
15646 compiler_flags=-v
15647 linker_flags=-v
15648 verstring=
15649 output_objdir=.
15650 libname=conftest
15651 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15652 allow_undefined_flag_F77=
15653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15654 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }
15658 then
15659 archive_cmds_need_lc_F77=no
15660 else
15661 archive_cmds_need_lc_F77=yes
15663 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15664 else
15665 cat conftest.err 1>&5
15667 $rm conftest*
15668 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15669 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15671 esac
15674 esac
15676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15678 library_names_spec=
15679 libname_spec='lib$name'
15680 soname_spec=
15681 shrext_cmds=".so"
15682 postinstall_cmds=
15683 postuninstall_cmds=
15684 finish_cmds=
15685 finish_eval=
15686 shlibpath_var=
15687 shlibpath_overrides_runpath=unknown
15688 version_type=none
15689 dynamic_linker="$host_os ld.so"
15690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15692 need_lib_prefix=unknown
15693 hardcode_into_libs=no
15695 # when you set need_version to no, make sure it does not cause -set_version
15696 # flags to be left without arguments
15697 need_version=unknown
15699 case $host_os in
15700 aix3*)
15701 version_type=linux
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15703 shlibpath_var=LIBPATH
15705 # AIX 3 has no versioning support, so we append a major version to the name.
15706 soname_spec='${libname}${release}${shared_ext}$major'
15709 aix[4-9]*)
15710 version_type=linux
15711 need_lib_prefix=no
15712 need_version=no
15713 hardcode_into_libs=yes
15714 if test "$host_cpu" = ia64; then
15715 # AIX 5 supports IA64
15716 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 else
15719 # With GCC up to 2.95.x, collect2 would create an import file
15720 # for dependence libraries. The import file would start with
15721 # the line `#! .'. This would cause the generated library to
15722 # depend on `.', always an invalid library. This was fixed in
15723 # development snapshots of GCC prior to 3.0.
15724 case $host_os in
15725 aix4 | aix4.[01] | aix4.[01].*)
15726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15727 echo ' yes '
15728 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15730 else
15731 can_build_shared=no
15734 esac
15735 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15736 # soname into executable. Probably we can add versioning support to
15737 # collect2, so additional links can be useful in future.
15738 if test "$aix_use_runtimelinking" = yes; then
15739 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15740 # instead of lib<name>.a to let people know that these are not
15741 # typical AIX shared libraries.
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 else
15744 # We preserve .a as extension for shared libraries through AIX4.2
15745 # and later when we are not doing run time linking.
15746 library_names_spec='${libname}${release}.a $libname.a'
15747 soname_spec='${libname}${release}${shared_ext}$major'
15749 shlibpath_var=LIBPATH
15753 amigaos*)
15754 library_names_spec='$libname.ixlibrary $libname.a'
15755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15756 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'
15759 beos*)
15760 library_names_spec='${libname}${shared_ext}'
15761 dynamic_linker="$host_os ld.so"
15762 shlibpath_var=LIBRARY_PATH
15765 bsdi[45]*)
15766 version_type=linux
15767 need_version=no
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15773 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15774 # the default ld.so.conf also contains /usr/contrib/lib and
15775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15776 # libtool to hard-code these into programs
15779 cygwin* | mingw* | pw32*)
15780 version_type=windows
15781 shrext_cmds=".dll"
15782 need_version=no
15783 need_lib_prefix=no
15785 case $GCC,$host_os in
15786 yes,cygwin* | yes,mingw* | yes,pw32*)
15787 library_names_spec='$libname.dll.a'
15788 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15789 postinstall_cmds='base_file=`basename \${file}`~
15790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15791 dldir=$destdir/`dirname \$dlpath`~
15792 test -d \$dldir || mkdir -p \$dldir~
15793 $install_prog $dir/$dlname \$dldir/$dlname~
15794 chmod a+x \$dldir/$dlname'
15795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15796 dlpath=$dir/\$dldll~
15797 $rm \$dlpath'
15798 shlibpath_overrides_runpath=yes
15800 case $host_os in
15801 cygwin*)
15802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15806 mingw*)
15807 # MinGW DLLs use traditional 'lib' prefix
15808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15810 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15811 # It is most probably a Windows format PATH printed by
15812 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15813 # path with ; separators, and with drive letters. We can handle the
15814 # drive letters (cygwin fileutils understands them), so leave them,
15815 # especially as we might pass files found there to a mingw objdump,
15816 # which wouldn't understand a cygwinified path. Ahh.
15817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15818 else
15819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15822 pw32*)
15823 # pw32 DLLs use 'pw' prefix rather than 'lib'
15824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15826 esac
15830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15832 esac
15833 dynamic_linker='Win32 ld.exe'
15834 # FIXME: first we should search . and the directory the executable is in
15835 shlibpath_var=PATH
15838 darwin* | rhapsody*)
15839 dynamic_linker="$host_os dyld"
15840 version_type=darwin
15841 need_lib_prefix=no
15842 need_version=no
15843 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15844 soname_spec='${libname}${release}${major}$shared_ext'
15845 shlibpath_overrides_runpath=yes
15846 shlibpath_var=DYLD_LIBRARY_PATH
15847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15852 dgux*)
15853 version_type=linux
15854 need_lib_prefix=no
15855 need_version=no
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15861 freebsd1*)
15862 dynamic_linker=no
15865 freebsd* | dragonfly*)
15866 # DragonFly does not have aout. When/if they implement a new
15867 # versioning mechanism, adjust this.
15868 if test -x /usr/bin/objformat; then
15869 objformat=`/usr/bin/objformat`
15870 else
15871 case $host_os in
15872 freebsd[123]*) objformat=aout ;;
15873 *) objformat=elf ;;
15874 esac
15876 version_type=freebsd-$objformat
15877 case $version_type in
15878 freebsd-elf*)
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15880 need_version=no
15881 need_lib_prefix=no
15883 freebsd-*)
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15885 need_version=yes
15887 esac
15888 shlibpath_var=LD_LIBRARY_PATH
15889 case $host_os in
15890 freebsd2*)
15891 shlibpath_overrides_runpath=yes
15893 freebsd3.[01]* | freebsdelf3.[01]*)
15894 shlibpath_overrides_runpath=yes
15895 hardcode_into_libs=yes
15897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15899 shlibpath_overrides_runpath=no
15900 hardcode_into_libs=yes
15902 *) # from 4.6 on, and DragonFly
15903 shlibpath_overrides_runpath=yes
15904 hardcode_into_libs=yes
15906 esac
15909 gnu*)
15910 version_type=linux
15911 need_lib_prefix=no
15912 need_version=no
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 hardcode_into_libs=yes
15919 hpux9* | hpux10* | hpux11*)
15920 # Give a soname corresponding to the major version so that dld.sl refuses to
15921 # link against other versions.
15922 version_type=sunos
15923 need_lib_prefix=no
15924 need_version=no
15925 case $host_cpu in
15926 ia64*)
15927 shrext_cmds='.so'
15928 hardcode_into_libs=yes
15929 dynamic_linker="$host_os dld.so"
15930 shlibpath_var=LD_LIBRARY_PATH
15931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 if test "X$HPUX_IA64_MODE" = X32; then
15935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15936 else
15937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15941 hppa*64*)
15942 shrext_cmds='.sl'
15943 hardcode_into_libs=yes
15944 dynamic_linker="$host_os dld.sl"
15945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15953 shrext_cmds='.sl'
15954 dynamic_linker="$host_os dld.sl"
15955 shlibpath_var=SHLIB_PATH
15956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15958 soname_spec='${libname}${release}${shared_ext}$major'
15960 esac
15961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15962 postinstall_cmds='chmod 555 $lib'
15965 interix[3-9]*)
15966 version_type=linux
15967 need_lib_prefix=no
15968 need_version=no
15969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 shlibpath_overrides_runpath=no
15974 hardcode_into_libs=yes
15977 irix5* | irix6* | nonstopux*)
15978 case $host_os in
15979 nonstopux*) version_type=nonstopux ;;
15981 if test "$lt_cv_prog_gnu_ld" = yes; then
15982 version_type=linux
15983 else
15984 version_type=irix
15985 fi ;;
15986 esac
15987 need_lib_prefix=no
15988 need_version=no
15989 soname_spec='${libname}${release}${shared_ext}$major'
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15991 case $host_os in
15992 irix5* | nonstopux*)
15993 libsuff= shlibsuff=
15996 case $LD in # libtool.m4 will add one of these switches to LD
15997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15998 libsuff= shlibsuff= libmagic=32-bit;;
15999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16000 libsuff=32 shlibsuff=N32 libmagic=N32;;
16001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16003 *) libsuff= shlibsuff= libmagic=never-match;;
16004 esac
16006 esac
16007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16008 shlibpath_overrides_runpath=no
16009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16011 hardcode_into_libs=yes
16014 # No shared lib support for Linux oldld, aout, or coff.
16015 linux*oldld* | linux*aout* | linux*coff*)
16016 dynamic_linker=no
16019 # This must be Linux ELF.
16020 linux* | k*bsd*-gnu)
16021 version_type=linux
16022 need_lib_prefix=no
16023 need_version=no
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 soname_spec='${libname}${release}${shared_ext}$major'
16026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 shlibpath_overrides_runpath=no
16029 # This implies no fast_install, which is unacceptable.
16030 # Some rework will be needed to allow for fast_install
16031 # before this can be enabled.
16032 hardcode_into_libs=yes
16034 # Append ld.so.conf contents to the search path
16035 if test -f /etc/ld.so.conf; then
16036 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16040 # We used to test for /lib/ld.so.1 and disable shared libraries on
16041 # powerpc, because MkLinux only supported shared libraries with the
16042 # GNU dynamic linker. Since this was broken with cross compilers,
16043 # most powerpc-linux boxes support dynamic linking these days and
16044 # people can always --disable-shared, the test was removed, and we
16045 # assume the GNU/Linux dynamic linker is in use.
16046 dynamic_linker='GNU/Linux ld.so'
16049 netbsd*)
16050 version_type=sunos
16051 need_lib_prefix=no
16052 need_version=no
16053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16056 dynamic_linker='NetBSD (a.out) ld.so'
16057 else
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 dynamic_linker='NetBSD ld.elf_so'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 shlibpath_overrides_runpath=yes
16064 hardcode_into_libs=yes
16067 newsos6)
16068 version_type=linux
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=yes
16074 nto-qnx*)
16075 version_type=linux
16076 need_lib_prefix=no
16077 need_version=no
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 shlibpath_overrides_runpath=yes
16084 openbsd*)
16085 version_type=sunos
16086 sys_lib_dlsearch_path_spec="/usr/lib"
16087 need_lib_prefix=no
16088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16089 case $host_os in
16090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16091 *) need_version=no ;;
16092 esac
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16095 shlibpath_var=LD_LIBRARY_PATH
16096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16097 case $host_os in
16098 openbsd2.[89] | openbsd2.[89].*)
16099 shlibpath_overrides_runpath=no
16102 shlibpath_overrides_runpath=yes
16104 esac
16105 else
16106 shlibpath_overrides_runpath=yes
16110 os2*)
16111 libname_spec='$name'
16112 shrext_cmds=".dll"
16113 need_lib_prefix=no
16114 library_names_spec='$libname${shared_ext} $libname.a'
16115 dynamic_linker='OS/2 ld.exe'
16116 shlibpath_var=LIBPATH
16119 osf3* | osf4* | osf5*)
16120 version_type=osf
16121 need_lib_prefix=no
16122 need_version=no
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16130 rdos*)
16131 dynamic_linker=no
16134 solaris*)
16135 version_type=linux
16136 need_lib_prefix=no
16137 need_version=no
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 shlibpath_var=LD_LIBRARY_PATH
16141 shlibpath_overrides_runpath=yes
16142 hardcode_into_libs=yes
16143 # ldd complains unless libraries are executable
16144 postinstall_cmds='chmod +x $lib'
16147 sunos4*)
16148 version_type=sunos
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16151 shlibpath_var=LD_LIBRARY_PATH
16152 shlibpath_overrides_runpath=yes
16153 if test "$with_gnu_ld" = yes; then
16154 need_lib_prefix=no
16156 need_version=yes
16159 sysv4 | sysv4.3*)
16160 version_type=linux
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 shlibpath_var=LD_LIBRARY_PATH
16164 case $host_vendor in
16165 sni)
16166 shlibpath_overrides_runpath=no
16167 need_lib_prefix=no
16168 export_dynamic_flag_spec='${wl}-Blargedynsym'
16169 runpath_var=LD_RUN_PATH
16171 siemens)
16172 need_lib_prefix=no
16174 motorola)
16175 need_lib_prefix=no
16176 need_version=no
16177 shlibpath_overrides_runpath=no
16178 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16180 esac
16183 sysv4*MP*)
16184 if test -d /usr/nec ;then
16185 version_type=linux
16186 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16187 soname_spec='$libname${shared_ext}.$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16193 version_type=freebsd-elf
16194 need_lib_prefix=no
16195 need_version=no
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16197 soname_spec='${libname}${release}${shared_ext}$major'
16198 shlibpath_var=LD_LIBRARY_PATH
16199 hardcode_into_libs=yes
16200 if test "$with_gnu_ld" = yes; then
16201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16202 shlibpath_overrides_runpath=no
16203 else
16204 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16205 shlibpath_overrides_runpath=yes
16206 case $host_os in
16207 sco3.2v5*)
16208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16210 esac
16212 sys_lib_dlsearch_path_spec='/usr/lib'
16215 uts4*)
16216 version_type=linux
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218 soname_spec='${libname}${release}${shared_ext}$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16223 dynamic_linker=no
16225 esac
16226 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16227 echo "${ECHO_T}$dynamic_linker" >&6; }
16228 test "$dynamic_linker" = no && can_build_shared=no
16230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16236 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16237 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16243 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16245 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16246 if test "$GCC" = yes; then
16247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16250 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16251 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16252 hardcode_action_F77=
16253 if test -n "$hardcode_libdir_flag_spec_F77" || \
16254 test -n "$runpath_var_F77" || \
16255 test "X$hardcode_automatic_F77" = "Xyes" ; then
16257 # We can hardcode non-existant directories.
16258 if test "$hardcode_direct_F77" != no &&
16259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16260 # have to relink, otherwise we might link with an installed library
16261 # when we should be linking with a yet-to-be-installed one
16262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16263 test "$hardcode_minus_L_F77" != no; then
16264 # Linking always hardcodes the temporary library directory.
16265 hardcode_action_F77=relink
16266 else
16267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16268 hardcode_action_F77=immediate
16270 else
16271 # We cannot hardcode anything, or else we can only hardcode existing
16272 # directories.
16273 hardcode_action_F77=unsupported
16275 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16276 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16278 if test "$hardcode_action_F77" = relink; then
16279 # Fast installation is not supported
16280 enable_fast_install=no
16281 elif test "$shlibpath_overrides_runpath" = yes ||
16282 test "$enable_shared" = no; then
16283 # Fast installation is not necessary
16284 enable_fast_install=needless
16288 # The else clause should only fire when bootstrapping the
16289 # libtool distribution, otherwise you forgot to ship ltmain.sh
16290 # with your package, and you will get complaints that there are
16291 # no rules to generate ltmain.sh.
16292 if test -f "$ltmain"; then
16293 # See if we are running on zsh, and set the options which allow our commands through
16294 # without removal of \ escapes.
16295 if test -n "${ZSH_VERSION+set}" ; then
16296 setopt NO_GLOB_SUBST
16298 # Now quote all the things that may contain metacharacters while being
16299 # careful not to overquote the AC_SUBSTed values. We take copies of the
16300 # variables and quote the copies for generation of the libtool script.
16301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16302 SED SHELL STRIP \
16303 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16304 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16305 deplibs_check_method reload_flag reload_cmds need_locks \
16306 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16307 lt_cv_sys_global_symbol_to_c_name_address \
16308 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16309 old_postinstall_cmds old_postuninstall_cmds \
16310 compiler_F77 \
16311 CC_F77 \
16312 LD_F77 \
16313 lt_prog_compiler_wl_F77 \
16314 lt_prog_compiler_pic_F77 \
16315 lt_prog_compiler_static_F77 \
16316 lt_prog_compiler_no_builtin_flag_F77 \
16317 export_dynamic_flag_spec_F77 \
16318 thread_safe_flag_spec_F77 \
16319 whole_archive_flag_spec_F77 \
16320 enable_shared_with_static_runtimes_F77 \
16321 old_archive_cmds_F77 \
16322 old_archive_from_new_cmds_F77 \
16323 predep_objects_F77 \
16324 postdep_objects_F77 \
16325 predeps_F77 \
16326 postdeps_F77 \
16327 compiler_lib_search_path_F77 \
16328 compiler_lib_search_dirs_F77 \
16329 archive_cmds_F77 \
16330 archive_expsym_cmds_F77 \
16331 postinstall_cmds_F77 \
16332 postuninstall_cmds_F77 \
16333 old_archive_from_expsyms_cmds_F77 \
16334 allow_undefined_flag_F77 \
16335 no_undefined_flag_F77 \
16336 export_symbols_cmds_F77 \
16337 hardcode_libdir_flag_spec_F77 \
16338 hardcode_libdir_flag_spec_ld_F77 \
16339 hardcode_libdir_separator_F77 \
16340 hardcode_automatic_F77 \
16341 module_cmds_F77 \
16342 module_expsym_cmds_F77 \
16343 lt_cv_prog_compiler_c_o_F77 \
16344 fix_srcfile_path_F77 \
16345 exclude_expsyms_F77 \
16346 include_expsyms_F77; do
16348 case $var in
16349 old_archive_cmds_F77 | \
16350 old_archive_from_new_cmds_F77 | \
16351 archive_cmds_F77 | \
16352 archive_expsym_cmds_F77 | \
16353 module_cmds_F77 | \
16354 module_expsym_cmds_F77 | \
16355 old_archive_from_expsyms_cmds_F77 | \
16356 export_symbols_cmds_F77 | \
16357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16358 postinstall_cmds | postuninstall_cmds | \
16359 old_postinstall_cmds | old_postuninstall_cmds | \
16360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16361 # Double-quote double-evaled strings.
16362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16367 esac
16368 done
16370 case $lt_echo in
16371 *'\$0 --fallback-echo"')
16372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16374 esac
16376 cfgfile="$ofile"
16378 cat <<__EOF__ >> "$cfgfile"
16379 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16383 # Shell to use when invoking shell scripts.
16384 SHELL=$lt_SHELL
16386 # Whether or not to build shared libraries.
16387 build_libtool_libs=$enable_shared
16389 # Whether or not to build static libraries.
16390 build_old_libs=$enable_static
16392 # Whether or not to add -lc for building shared libraries.
16393 build_libtool_need_lc=$archive_cmds_need_lc_F77
16395 # Whether or not to disallow shared libs when runtime libs are static
16396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16398 # Whether or not to optimize for fast installation.
16399 fast_install=$enable_fast_install
16401 # The host system.
16402 host_alias=$host_alias
16403 host=$host
16404 host_os=$host_os
16406 # The build system.
16407 build_alias=$build_alias
16408 build=$build
16409 build_os=$build_os
16411 # An echo program that does not interpret backslashes.
16412 echo=$lt_echo
16414 # The archiver.
16415 AR=$lt_AR
16416 AR_FLAGS=$lt_AR_FLAGS
16418 # A C compiler.
16419 LTCC=$lt_LTCC
16421 # LTCC compiler flags.
16422 LTCFLAGS=$lt_LTCFLAGS
16424 # A language-specific compiler.
16425 CC=$lt_compiler_F77
16427 # Is the compiler the GNU C compiler?
16428 with_gcc=$GCC_F77
16430 # An ERE matcher.
16431 EGREP=$lt_EGREP
16433 # The linker used to build libraries.
16434 LD=$lt_LD_F77
16436 # Whether we need hard or soft links.
16437 LN_S=$lt_LN_S
16439 # A BSD-compatible nm program.
16440 NM=$lt_NM
16442 # A symbol stripping program
16443 STRIP=$lt_STRIP
16445 # Used to examine libraries when file_magic_cmd begins "file"
16446 MAGIC_CMD=$MAGIC_CMD
16448 # Used on cygwin: DLL creation program.
16449 DLLTOOL="$DLLTOOL"
16451 # Used on cygwin: object dumper.
16452 OBJDUMP="$OBJDUMP"
16454 # Used on cygwin: assembler.
16455 AS="$AS"
16457 # The name of the directory that contains temporary libtool files.
16458 objdir=$objdir
16460 # How to create reloadable object files.
16461 reload_flag=$lt_reload_flag
16462 reload_cmds=$lt_reload_cmds
16464 # How to pass a linker flag through the compiler.
16465 wl=$lt_lt_prog_compiler_wl_F77
16467 # Object file suffix (normally "o").
16468 objext="$ac_objext"
16470 # Old archive suffix (normally "a").
16471 libext="$libext"
16473 # Shared library suffix (normally ".so").
16474 shrext_cmds='$shrext_cmds'
16476 # Executable file suffix (normally "").
16477 exeext="$exeext"
16479 # Additional compiler flags for building library objects.
16480 pic_flag=$lt_lt_prog_compiler_pic_F77
16481 pic_mode=$pic_mode
16483 # What is the maximum length of a command?
16484 max_cmd_len=$lt_cv_sys_max_cmd_len
16486 # Does compiler simultaneously support -c and -o options?
16487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16489 # Must we lock files when doing compilation?
16490 need_locks=$lt_need_locks
16492 # Do we need the lib prefix for modules?
16493 need_lib_prefix=$need_lib_prefix
16495 # Do we need a version for libraries?
16496 need_version=$need_version
16498 # Whether dlopen is supported.
16499 dlopen_support=$enable_dlopen
16501 # Whether dlopen of programs is supported.
16502 dlopen_self=$enable_dlopen_self
16504 # Whether dlopen of statically linked programs is supported.
16505 dlopen_self_static=$enable_dlopen_self_static
16507 # Compiler flag to prevent dynamic linking.
16508 link_static_flag=$lt_lt_prog_compiler_static_F77
16510 # Compiler flag to turn off builtin functions.
16511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16513 # Compiler flag to allow reflexive dlopens.
16514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16516 # Compiler flag to generate shared objects directly from archives.
16517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16519 # Compiler flag to generate thread-safe objects.
16520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16522 # Library versioning type.
16523 version_type=$version_type
16525 # Format of library name prefix.
16526 libname_spec=$lt_libname_spec
16528 # List of archive names. First name is the real one, the rest are links.
16529 # The last name is the one that the linker finds with -lNAME.
16530 library_names_spec=$lt_library_names_spec
16532 # The coded name of the library, if different from the real name.
16533 soname_spec=$lt_soname_spec
16535 # Commands used to build and install an old-style archive.
16536 RANLIB=$lt_RANLIB
16537 old_archive_cmds=$lt_old_archive_cmds_F77
16538 old_postinstall_cmds=$lt_old_postinstall_cmds
16539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16541 # Create an old-style archive from a shared archive.
16542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16544 # Create a temporary old-style archive to link instead of a shared archive.
16545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16547 # Commands used to build and install a shared archive.
16548 archive_cmds=$lt_archive_cmds_F77
16549 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16550 postinstall_cmds=$lt_postinstall_cmds
16551 postuninstall_cmds=$lt_postuninstall_cmds
16553 # Commands used to build a loadable module (assumed same as above if empty)
16554 module_cmds=$lt_module_cmds_F77
16555 module_expsym_cmds=$lt_module_expsym_cmds_F77
16557 # Commands to strip libraries.
16558 old_striplib=$lt_old_striplib
16559 striplib=$lt_striplib
16561 # Dependencies to place before the objects being linked to create a
16562 # shared library.
16563 predep_objects=$lt_predep_objects_F77
16565 # Dependencies to place after the objects being linked to create a
16566 # shared library.
16567 postdep_objects=$lt_postdep_objects_F77
16569 # Dependencies to place before the objects being linked to create a
16570 # shared library.
16571 predeps=$lt_predeps_F77
16573 # Dependencies to place after the objects being linked to create a
16574 # shared library.
16575 postdeps=$lt_postdeps_F77
16577 # The directories searched by this compiler when creating a shared
16578 # library
16579 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16581 # The library search path used internally by the compiler when linking
16582 # a shared library.
16583 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16585 # Method to check whether dependent libraries are shared objects.
16586 deplibs_check_method=$lt_deplibs_check_method
16588 # Command to use when deplibs_check_method == file_magic.
16589 file_magic_cmd=$lt_file_magic_cmd
16591 # Flag that allows shared libraries with undefined symbols to be built.
16592 allow_undefined_flag=$lt_allow_undefined_flag_F77
16594 # Flag that forces no undefined symbols.
16595 no_undefined_flag=$lt_no_undefined_flag_F77
16597 # Commands used to finish a libtool library installation in a directory.
16598 finish_cmds=$lt_finish_cmds
16600 # Same as above, but a single script fragment to be evaled but not shown.
16601 finish_eval=$lt_finish_eval
16603 # Take the output of nm and produce a listing of raw symbols and C names.
16604 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16606 # Transform the output of nm in a proper C declaration
16607 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16609 # Transform the output of nm in a C name address pair
16610 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16612 # This is the shared library runtime path variable.
16613 runpath_var=$runpath_var
16615 # This is the shared library path variable.
16616 shlibpath_var=$shlibpath_var
16618 # Is shlibpath searched before the hard-coded library search path?
16619 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16621 # How to hardcode a shared library path into an executable.
16622 hardcode_action=$hardcode_action_F77
16624 # Whether we should hardcode library paths into libraries.
16625 hardcode_into_libs=$hardcode_into_libs
16627 # Flag to hardcode \$libdir into a binary during linking.
16628 # This must work even if \$libdir does not exist.
16629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16631 # If ld is used when linking, flag to hardcode \$libdir into
16632 # a binary during linking. This must work even if \$libdir does
16633 # not exist.
16634 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16636 # Whether we need a single -rpath flag with a separated argument.
16637 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16639 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16640 # resulting binary.
16641 hardcode_direct=$hardcode_direct_F77
16643 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16644 # resulting binary.
16645 hardcode_minus_L=$hardcode_minus_L_F77
16647 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16648 # the resulting binary.
16649 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16651 # Set to yes if building a shared library automatically hardcodes DIR into the library
16652 # and all subsequent libraries and executables linked against it.
16653 hardcode_automatic=$hardcode_automatic_F77
16655 # Variables whose values should be saved in libtool wrapper scripts and
16656 # restored at relink time.
16657 variables_saved_for_relink="$variables_saved_for_relink"
16659 # Whether libtool must link a program against all its dependency libraries.
16660 link_all_deplibs=$link_all_deplibs_F77
16662 # Compile-time system search path for libraries
16663 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16665 # Run-time system search path for libraries
16666 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16668 # Fix the shell variable \$srcfile for the compiler.
16669 fix_srcfile_path=$lt_fix_srcfile_path
16671 # Set to yes if exported symbols are required.
16672 always_export_symbols=$always_export_symbols_F77
16674 # The commands to list exported symbols.
16675 export_symbols_cmds=$lt_export_symbols_cmds_F77
16677 # The commands to extract the exported symbol list from a shared archive.
16678 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16680 # Symbols that should not be listed in the preloaded symbols.
16681 exclude_expsyms=$lt_exclude_expsyms_F77
16683 # Symbols that must always be exported.
16684 include_expsyms=$lt_include_expsyms_F77
16686 # ### END LIBTOOL TAG CONFIG: $tagname
16688 __EOF__
16691 else
16692 # If there is no Makefile yet, we rely on a make rule to execute
16693 # `config.status --recheck' to rerun these tests and create the
16694 # libtool script then.
16695 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16696 if test -f "$ltmain_in"; then
16697 test -f Makefile && make "$ltmain"
16702 ac_ext=c
16703 ac_cpp='$CPP $CPPFLAGS'
16704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16708 CC="$lt_save_CC"
16710 else
16711 tagname=""
16715 GCJ)
16716 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16719 # Source file extension for Java test sources.
16720 ac_ext=java
16722 # Object file extension for compiled Java test sources.
16723 objext=o
16724 objext_GCJ=$objext
16726 # Code to be used in simple compile tests
16727 lt_simple_compile_test_code="class foo {}"
16729 # Code to be used in simple link tests
16730 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16734 # If no C compiler was specified, use CC.
16735 LTCC=${LTCC-"$CC"}
16737 # If no C compiler flags were specified, use CFLAGS.
16738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16740 # Allow CC to be a program name with arguments.
16741 compiler=$CC
16744 # save warnings/boilerplate of simple test code
16745 ac_outfile=conftest.$ac_objext
16746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16748 _lt_compiler_boilerplate=`cat conftest.err`
16749 $rm conftest*
16751 ac_outfile=conftest.$ac_objext
16752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16754 _lt_linker_boilerplate=`cat conftest.err`
16755 $rm -r conftest*
16758 # Allow CC to be a program name with arguments.
16759 lt_save_CC="$CC"
16760 CC=${GCJ-"gcj"}
16761 compiler=$CC
16762 compiler_GCJ=$CC
16763 for cc_temp in $compiler""; do
16764 case $cc_temp in
16765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16767 \-*) ;;
16768 *) break;;
16769 esac
16770 done
16771 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16774 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16775 archive_cmds_need_lc_GCJ=no
16777 old_archive_cmds_GCJ=$old_archive_cmds
16780 lt_prog_compiler_no_builtin_flag_GCJ=
16782 if test "$GCC" = yes; then
16783 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16786 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16787 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16788 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791 lt_cv_prog_compiler_rtti_exceptions=no
16792 ac_outfile=conftest.$ac_objext
16793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16794 lt_compiler_flag="-fno-rtti -fno-exceptions"
16795 # Insert the option either (1) after the last *FLAGS variable, or
16796 # (2) before a word containing "conftest.", or (3) at the end.
16797 # Note that $ac_compile itself does not contain backslashes and begins
16798 # with a dollar sign (not a hyphen), so the echo should work correctly.
16799 # The option is referenced via a variable to avoid confusing sed.
16800 lt_compile=`echo "$ac_compile" | $SED \
16801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16803 -e 's:$: $lt_compiler_flag:'`
16804 (eval echo "\"\$as_me:16804: $lt_compile\"" >&5)
16805 (eval "$lt_compile" 2>conftest.err)
16806 ac_status=$?
16807 cat conftest.err >&5
16808 echo "$as_me:16808: \$? = $ac_status" >&5
16809 if (exit $ac_status) && test -s "$ac_outfile"; then
16810 # The compiler can only warn and ignore the option if not recognized
16811 # So say no if there are warnings other than the usual output.
16812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16815 lt_cv_prog_compiler_rtti_exceptions=yes
16818 $rm conftest*
16821 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16822 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16824 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16825 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16826 else
16832 lt_prog_compiler_wl_GCJ=
16833 lt_prog_compiler_pic_GCJ=
16834 lt_prog_compiler_static_GCJ=
16836 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16837 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16839 if test "$GCC" = yes; then
16840 lt_prog_compiler_wl_GCJ='-Wl,'
16841 lt_prog_compiler_static_GCJ='-static'
16843 case $host_os in
16844 aix*)
16845 # All AIX code is PIC.
16846 if test "$host_cpu" = ia64; then
16847 # AIX 5 now supports IA64 processor
16848 lt_prog_compiler_static_GCJ='-Bstatic'
16852 amigaos*)
16853 # FIXME: we need at least 68020 code to build shared libraries, but
16854 # adding the `-m68020' flag to GCC prevents building anything better,
16855 # like `-m68040'.
16856 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16859 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16860 # PIC is the default for these OSes.
16863 mingw* | cygwin* | pw32* | os2*)
16864 # This hack is so that the source file can tell whether it is being
16865 # built for inclusion in a dll (and should export symbols for example).
16866 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16867 # (--disable-auto-import) libraries
16871 darwin* | rhapsody*)
16872 # PIC is the default on this platform
16873 # Common symbols not allowed in MH_DYLIB files
16874 lt_prog_compiler_pic_GCJ='-fno-common'
16877 interix[3-9]*)
16878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16879 # Instead, we relocate shared libraries at runtime.
16882 msdosdjgpp*)
16883 # Just because we use GCC doesn't mean we suddenly get shared libraries
16884 # on systems that don't support them.
16885 lt_prog_compiler_can_build_shared_GCJ=no
16886 enable_shared=no
16889 sysv4*MP*)
16890 if test -d /usr/nec; then
16891 lt_prog_compiler_pic_GCJ=-Kconform_pic
16895 hpux*)
16896 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16897 # not for PA HP-UX.
16898 case $host_cpu in
16899 hppa*64*|ia64*)
16900 # +Z the default
16903 lt_prog_compiler_pic_GCJ='-fPIC'
16905 esac
16909 lt_prog_compiler_pic_GCJ='-fPIC'
16911 esac
16912 else
16913 # PORTME Check for flag to pass linker flags through the system compiler.
16914 case $host_os in
16915 aix*)
16916 lt_prog_compiler_wl_GCJ='-Wl,'
16917 if test "$host_cpu" = ia64; then
16918 # AIX 5 now supports IA64 processor
16919 lt_prog_compiler_static_GCJ='-Bstatic'
16920 else
16921 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16924 darwin*)
16925 # PIC is the default on this platform
16926 # Common symbols not allowed in MH_DYLIB files
16927 case $cc_basename in
16928 xlc*)
16929 lt_prog_compiler_pic_GCJ='-qnocommon'
16930 lt_prog_compiler_wl_GCJ='-Wl,'
16932 esac
16935 mingw* | cygwin* | pw32* | os2*)
16936 # This hack is so that the source file can tell whether it is being
16937 # built for inclusion in a dll (and should export symbols for example).
16941 hpux9* | hpux10* | hpux11*)
16942 lt_prog_compiler_wl_GCJ='-Wl,'
16943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16944 # not for PA HP-UX.
16945 case $host_cpu in
16946 hppa*64*|ia64*)
16947 # +Z the default
16950 lt_prog_compiler_pic_GCJ='+Z'
16952 esac
16953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16954 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16957 irix5* | irix6* | nonstopux*)
16958 lt_prog_compiler_wl_GCJ='-Wl,'
16959 # PIC (with -KPIC) is the default.
16960 lt_prog_compiler_static_GCJ='-non_shared'
16963 newsos6)
16964 lt_prog_compiler_pic_GCJ='-KPIC'
16965 lt_prog_compiler_static_GCJ='-Bstatic'
16968 linux* | k*bsd*-gnu)
16969 case $cc_basename in
16970 icc* | ecc*)
16971 lt_prog_compiler_wl_GCJ='-Wl,'
16972 lt_prog_compiler_pic_GCJ='-KPIC'
16973 lt_prog_compiler_static_GCJ='-static'
16975 pgcc* | pgf77* | pgf90* | pgf95*)
16976 # Portland Group compilers (*not* the Pentium gcc compiler,
16977 # which looks to be a dead project)
16978 lt_prog_compiler_wl_GCJ='-Wl,'
16979 lt_prog_compiler_pic_GCJ='-fpic'
16980 lt_prog_compiler_static_GCJ='-Bstatic'
16982 ccc*)
16983 lt_prog_compiler_wl_GCJ='-Wl,'
16984 # All Alpha code is PIC.
16985 lt_prog_compiler_static_GCJ='-non_shared'
16988 case `$CC -V 2>&1 | sed 5q` in
16989 *Sun\ C*)
16990 # Sun C 5.9
16991 lt_prog_compiler_pic_GCJ='-KPIC'
16992 lt_prog_compiler_static_GCJ='-Bstatic'
16993 lt_prog_compiler_wl_GCJ='-Wl,'
16995 *Sun\ F*)
16996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16997 lt_prog_compiler_pic_GCJ='-KPIC'
16998 lt_prog_compiler_static_GCJ='-Bstatic'
16999 lt_prog_compiler_wl_GCJ=''
17001 esac
17003 esac
17006 osf3* | osf4* | osf5*)
17007 lt_prog_compiler_wl_GCJ='-Wl,'
17008 # All OSF/1 code is PIC.
17009 lt_prog_compiler_static_GCJ='-non_shared'
17012 rdos*)
17013 lt_prog_compiler_static_GCJ='-non_shared'
17016 solaris*)
17017 lt_prog_compiler_pic_GCJ='-KPIC'
17018 lt_prog_compiler_static_GCJ='-Bstatic'
17019 case $cc_basename in
17020 f77* | f90* | f95*)
17021 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17023 lt_prog_compiler_wl_GCJ='-Wl,';;
17024 esac
17027 sunos4*)
17028 lt_prog_compiler_wl_GCJ='-Qoption ld '
17029 lt_prog_compiler_pic_GCJ='-PIC'
17030 lt_prog_compiler_static_GCJ='-Bstatic'
17033 sysv4 | sysv4.2uw2* | sysv4.3*)
17034 lt_prog_compiler_wl_GCJ='-Wl,'
17035 lt_prog_compiler_pic_GCJ='-KPIC'
17036 lt_prog_compiler_static_GCJ='-Bstatic'
17039 sysv4*MP*)
17040 if test -d /usr/nec ;then
17041 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17042 lt_prog_compiler_static_GCJ='-Bstatic'
17046 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17047 lt_prog_compiler_wl_GCJ='-Wl,'
17048 lt_prog_compiler_pic_GCJ='-KPIC'
17049 lt_prog_compiler_static_GCJ='-Bstatic'
17052 unicos*)
17053 lt_prog_compiler_wl_GCJ='-Wl,'
17054 lt_prog_compiler_can_build_shared_GCJ=no
17057 uts4*)
17058 lt_prog_compiler_pic_GCJ='-pic'
17059 lt_prog_compiler_static_GCJ='-Bstatic'
17063 lt_prog_compiler_can_build_shared_GCJ=no
17065 esac
17068 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17069 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17072 # Check to make sure the PIC flag actually works.
17074 if test -n "$lt_prog_compiler_pic_GCJ"; then
17076 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17077 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17078 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081 lt_cv_prog_compiler_pic_works_GCJ=no
17082 ac_outfile=conftest.$ac_objext
17083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17084 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17085 # Insert the option either (1) after the last *FLAGS variable, or
17086 # (2) before a word containing "conftest.", or (3) at the end.
17087 # Note that $ac_compile itself does not contain backslashes and begins
17088 # with a dollar sign (not a hyphen), so the echo should work correctly.
17089 # The option is referenced via a variable to avoid confusing sed.
17090 lt_compile=`echo "$ac_compile" | $SED \
17091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17093 -e 's:$: $lt_compiler_flag:'`
17094 (eval echo "\"\$as_me:17094: $lt_compile\"" >&5)
17095 (eval "$lt_compile" 2>conftest.err)
17096 ac_status=$?
17097 cat conftest.err >&5
17098 echo "$as_me:17098: \$? = $ac_status" >&5
17099 if (exit $ac_status) && test -s "$ac_outfile"; then
17100 # The compiler can only warn and ignore the option if not recognized
17101 # So say no if there are warnings other than the usual output.
17102 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17104 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17105 lt_cv_prog_compiler_pic_works_GCJ=yes
17108 $rm conftest*
17111 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17112 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17114 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17115 case $lt_prog_compiler_pic_GCJ in
17116 "" | " "*) ;;
17117 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17118 esac
17119 else
17120 lt_prog_compiler_pic_GCJ=
17121 lt_prog_compiler_can_build_shared_GCJ=no
17125 case $host_os in
17126 # For platforms which do not support PIC, -DPIC is meaningless:
17127 *djgpp*)
17128 lt_prog_compiler_pic_GCJ=
17131 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17133 esac
17136 # Check to make sure the static flag actually works.
17138 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17139 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17140 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17141 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144 lt_cv_prog_compiler_static_works_GCJ=no
17145 save_LDFLAGS="$LDFLAGS"
17146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17149 # The linker can only warn and ignore the option if not recognized
17150 # So say no if there are warnings
17151 if test -s conftest.err; then
17152 # Append any errors to the config.log.
17153 cat conftest.err 1>&5
17154 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17156 if diff conftest.exp conftest.er2 >/dev/null; then
17157 lt_cv_prog_compiler_static_works_GCJ=yes
17159 else
17160 lt_cv_prog_compiler_static_works_GCJ=yes
17163 $rm -r conftest*
17164 LDFLAGS="$save_LDFLAGS"
17167 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17168 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17170 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17172 else
17173 lt_prog_compiler_static_GCJ=
17177 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17178 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17179 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182 lt_cv_prog_compiler_c_o_GCJ=no
17183 $rm -r conftest 2>/dev/null
17184 mkdir conftest
17185 cd conftest
17186 mkdir out
17187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17189 lt_compiler_flag="-o out/conftest2.$ac_objext"
17190 # Insert the option either (1) after the last *FLAGS variable, or
17191 # (2) before a word containing "conftest.", or (3) at the end.
17192 # Note that $ac_compile itself does not contain backslashes and begins
17193 # with a dollar sign (not a hyphen), so the echo should work correctly.
17194 lt_compile=`echo "$ac_compile" | $SED \
17195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17197 -e 's:$: $lt_compiler_flag:'`
17198 (eval echo "\"\$as_me:17198: $lt_compile\"" >&5)
17199 (eval "$lt_compile" 2>out/conftest.err)
17200 ac_status=$?
17201 cat out/conftest.err >&5
17202 echo "$as_me:17202: \$? = $ac_status" >&5
17203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17204 then
17205 # The compiler can only warn and ignore the option if not recognized
17206 # So say no if there are warnings
17207 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17208 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17209 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17210 lt_cv_prog_compiler_c_o_GCJ=yes
17213 chmod u+w . 2>&5
17214 $rm conftest*
17215 # SGI C++ compiler will create directory out/ii_files/ for
17216 # template instantiation
17217 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17218 $rm out/* && rmdir out
17219 cd ..
17220 rmdir conftest
17221 $rm conftest*
17224 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17225 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17228 hard_links="nottested"
17229 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17230 # do not overwrite the value of need_locks provided by the user
17231 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17232 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17233 hard_links=yes
17234 $rm conftest*
17235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17236 touch conftest.a
17237 ln conftest.a conftest.b 2>&5 || hard_links=no
17238 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17239 { echo "$as_me:$LINENO: result: $hard_links" >&5
17240 echo "${ECHO_T}$hard_links" >&6; }
17241 if test "$hard_links" = no; then
17242 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17243 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17244 need_locks=warn
17246 else
17247 need_locks=no
17250 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17251 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17253 runpath_var=
17254 allow_undefined_flag_GCJ=
17255 enable_shared_with_static_runtimes_GCJ=no
17256 archive_cmds_GCJ=
17257 archive_expsym_cmds_GCJ=
17258 old_archive_From_new_cmds_GCJ=
17259 old_archive_from_expsyms_cmds_GCJ=
17260 export_dynamic_flag_spec_GCJ=
17261 whole_archive_flag_spec_GCJ=
17262 thread_safe_flag_spec_GCJ=
17263 hardcode_libdir_flag_spec_GCJ=
17264 hardcode_libdir_flag_spec_ld_GCJ=
17265 hardcode_libdir_separator_GCJ=
17266 hardcode_direct_GCJ=no
17267 hardcode_minus_L_GCJ=no
17268 hardcode_shlibpath_var_GCJ=unsupported
17269 link_all_deplibs_GCJ=unknown
17270 hardcode_automatic_GCJ=no
17271 module_cmds_GCJ=
17272 module_expsym_cmds_GCJ=
17273 always_export_symbols_GCJ=no
17274 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17275 # include_expsyms should be a list of space-separated symbols to be *always*
17276 # included in the symbol list
17277 include_expsyms_GCJ=
17278 # exclude_expsyms can be an extended regexp of symbols to exclude
17279 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17280 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17281 # as well as any symbol that contains `d'.
17282 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17283 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17284 # platforms (ab)use it in PIC code, but their linkers get confused if
17285 # the symbol is explicitly referenced. Since portable code cannot
17286 # rely on this symbol name, it's probably fine to never include it in
17287 # preloaded symbol tables.
17288 # Exclude shared library initialization/finalization symbols.
17289 extract_expsyms_cmds=
17290 # Just being paranoid about ensuring that cc_basename is set.
17291 for cc_temp in $compiler""; do
17292 case $cc_temp in
17293 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17294 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17295 \-*) ;;
17296 *) break;;
17297 esac
17298 done
17299 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17301 case $host_os in
17302 cygwin* | mingw* | pw32*)
17303 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17304 # When not using gcc, we currently assume that we are using
17305 # Microsoft Visual C++.
17306 if test "$GCC" != yes; then
17307 with_gnu_ld=no
17310 interix*)
17311 # we just hope/assume this is gcc and not c89 (= MSVC++)
17312 with_gnu_ld=yes
17314 openbsd*)
17315 with_gnu_ld=no
17317 esac
17319 ld_shlibs_GCJ=yes
17320 if test "$with_gnu_ld" = yes; then
17321 # If archive_cmds runs LD, not CC, wlarc should be empty
17322 wlarc='${wl}'
17324 # Set some defaults for GNU ld with shared library support. These
17325 # are reset later if shared libraries are not supported. Putting them
17326 # here allows them to be overridden if necessary.
17327 runpath_var=LD_RUN_PATH
17328 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17329 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17330 # ancient GNU ld didn't support --whole-archive et. al.
17331 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17332 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17333 else
17334 whole_archive_flag_spec_GCJ=
17336 supports_anon_versioning=no
17337 case `$LD -v 2>/dev/null` in
17338 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17339 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17340 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17341 *\ 2.11.*) ;; # other 2.11 versions
17342 *) supports_anon_versioning=yes ;;
17343 esac
17345 # See if GNU ld supports shared libraries.
17346 case $host_os in
17347 aix[3-9]*)
17348 # On AIX/PPC, the GNU linker is very broken
17349 if test "$host_cpu" != ia64; then
17350 ld_shlibs_GCJ=no
17351 cat <<EOF 1>&2
17353 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17354 *** to be unable to reliably create shared libraries on AIX.
17355 *** Therefore, libtool is disabling shared libraries support. If you
17356 *** really care for shared libraries, you may want to modify your PATH
17357 *** so that a non-GNU linker is found, and then restart.
17363 amigaos*)
17364 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)'
17365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17366 hardcode_minus_L_GCJ=yes
17368 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17369 # that the semantics of dynamic libraries on AmigaOS, at least up
17370 # to version 4, is to share data among multiple programs linked
17371 # with the same dynamic library. Since this doesn't match the
17372 # behavior of shared libraries on other platforms, we can't use
17373 # them.
17374 ld_shlibs_GCJ=no
17377 beos*)
17378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17379 allow_undefined_flag_GCJ=unsupported
17380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17381 # support --undefined. This deserves some investigation. FIXME
17382 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17383 else
17384 ld_shlibs_GCJ=no
17388 cygwin* | mingw* | pw32*)
17389 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17390 # as there is no search path for DLLs.
17391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17392 allow_undefined_flag_GCJ=unsupported
17393 always_export_symbols_GCJ=no
17394 enable_shared_with_static_runtimes_GCJ=yes
17395 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17397 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17398 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17399 # If the export-symbols file already is a .def file (1st line
17400 # is EXPORTS), use it as is; otherwise, prepend...
17401 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17402 cp $export_symbols $output_objdir/$soname.def;
17403 else
17404 echo EXPORTS > $output_objdir/$soname.def;
17405 cat $export_symbols >> $output_objdir/$soname.def;
17407 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17408 else
17409 ld_shlibs_GCJ=no
17413 interix[3-9]*)
17414 hardcode_direct_GCJ=no
17415 hardcode_shlibpath_var_GCJ=no
17416 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17417 export_dynamic_flag_spec_GCJ='${wl}-E'
17418 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17419 # Instead, shared libraries are loaded at an image base (0x10000000 by
17420 # default) and relocated if they conflict, which is a slow very memory
17421 # consuming and fragmenting process. To avoid this, we pick a random,
17422 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17423 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17424 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17425 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17428 gnu* | linux* | k*bsd*-gnu)
17429 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17430 tmp_addflag=
17431 case $cc_basename,$host_cpu in
17432 pgcc*) # Portland Group C compiler
17433 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'
17434 tmp_addflag=' $pic_flag'
17436 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17437 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'
17438 tmp_addflag=' $pic_flag -Mnomain' ;;
17439 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17440 tmp_addflag=' -i_dynamic' ;;
17441 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17442 tmp_addflag=' -i_dynamic -nofor_main' ;;
17443 ifc* | ifort*) # Intel Fortran compiler
17444 tmp_addflag=' -nofor_main' ;;
17445 esac
17446 case `$CC -V 2>&1 | sed 5q` in
17447 *Sun\ C*) # Sun C 5.9
17448 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17449 tmp_sharedflag='-G' ;;
17450 *Sun\ F*) # Sun Fortran 8.3
17451 tmp_sharedflag='-G' ;;
17453 tmp_sharedflag='-shared' ;;
17454 esac
17455 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17457 if test $supports_anon_versioning = yes; then
17458 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17459 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17460 $echo "local: *; };" >> $output_objdir/$libname.ver~
17461 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17463 else
17464 ld_shlibs_GCJ=no
17468 netbsd*)
17469 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17470 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17471 wlarc=
17472 else
17473 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17474 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17478 solaris*)
17479 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17480 ld_shlibs_GCJ=no
17481 cat <<EOF 1>&2
17483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17484 *** create shared libraries on Solaris systems. Therefore, libtool
17485 *** is disabling shared libraries support. We urge you to upgrade GNU
17486 *** binutils to release 2.9.1 or newer. Another option is to modify
17487 *** your PATH or compiler configuration so that the native linker is
17488 *** used, and then restart.
17491 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17493 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17494 else
17495 ld_shlibs_GCJ=no
17499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17500 case `$LD -v 2>&1` in
17501 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17502 ld_shlibs_GCJ=no
17503 cat <<_LT_EOF 1>&2
17505 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17506 *** reliably create shared libraries on SCO systems. Therefore, libtool
17507 *** is disabling shared libraries support. We urge you to upgrade GNU
17508 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17509 *** your PATH or compiler configuration so that the native linker is
17510 *** used, and then restart.
17512 _LT_EOF
17515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17516 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17518 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17519 else
17520 ld_shlibs_GCJ=no
17523 esac
17526 sunos4*)
17527 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17528 wlarc=
17529 hardcode_direct_GCJ=yes
17530 hardcode_shlibpath_var_GCJ=no
17534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17537 else
17538 ld_shlibs_GCJ=no
17541 esac
17543 if test "$ld_shlibs_GCJ" = no; then
17544 runpath_var=
17545 hardcode_libdir_flag_spec_GCJ=
17546 export_dynamic_flag_spec_GCJ=
17547 whole_archive_flag_spec_GCJ=
17549 else
17550 # PORTME fill in a description of your system's linker (not GNU ld)
17551 case $host_os in
17552 aix3*)
17553 allow_undefined_flag_GCJ=unsupported
17554 always_export_symbols_GCJ=yes
17555 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'
17556 # Note: this linker hardcodes the directories in LIBPATH if there
17557 # are no directories specified by -L.
17558 hardcode_minus_L_GCJ=yes
17559 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17560 # Neither direct hardcoding nor static linking is supported with a
17561 # broken collect2.
17562 hardcode_direct_GCJ=unsupported
17566 aix[4-9]*)
17567 if test "$host_cpu" = ia64; then
17568 # On IA64, the linker does run time linking by default, so we don't
17569 # have to do anything special.
17570 aix_use_runtimelinking=no
17571 exp_sym_flag='-Bexport'
17572 no_entry_flag=""
17573 else
17574 # If we're using GNU nm, then we don't want the "-C" option.
17575 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17576 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17577 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'
17578 else
17579 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'
17581 aix_use_runtimelinking=no
17583 # Test if we are trying to use run time linking or normal
17584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17585 # need to do runtime linking.
17586 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17587 for ld_flag in $LDFLAGS; do
17588 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17589 aix_use_runtimelinking=yes
17590 break
17592 done
17594 esac
17596 exp_sym_flag='-bexport'
17597 no_entry_flag='-bnoentry'
17600 # When large executables or shared objects are built, AIX ld can
17601 # have problems creating the table of contents. If linking a library
17602 # or program results in "error TOC overflow" add -mminimal-toc to
17603 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17604 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17606 archive_cmds_GCJ=''
17607 hardcode_direct_GCJ=yes
17608 hardcode_libdir_separator_GCJ=':'
17609 link_all_deplibs_GCJ=yes
17611 if test "$GCC" = yes; then
17612 case $host_os in aix4.[012]|aix4.[012].*)
17613 # We only want to do this on AIX 4.2 and lower, the check
17614 # below for broken collect2 doesn't work under 4.3+
17615 collect2name=`${CC} -print-prog-name=collect2`
17616 if test -f "$collect2name" && \
17617 strings "$collect2name" | grep resolve_lib_name >/dev/null
17618 then
17619 # We have reworked collect2
17621 else
17622 # We have old collect2
17623 hardcode_direct_GCJ=unsupported
17624 # It fails to find uninstalled libraries when the uninstalled
17625 # path is not listed in the libpath. Setting hardcode_minus_L
17626 # to unsupported forces relinking
17627 hardcode_minus_L_GCJ=yes
17628 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629 hardcode_libdir_separator_GCJ=
17632 esac
17633 shared_flag='-shared'
17634 if test "$aix_use_runtimelinking" = yes; then
17635 shared_flag="$shared_flag "'${wl}-G'
17637 else
17638 # not using gcc
17639 if test "$host_cpu" = ia64; then
17640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17641 # chokes on -Wl,-G. The following line is correct:
17642 shared_flag='-G'
17643 else
17644 if test "$aix_use_runtimelinking" = yes; then
17645 shared_flag='${wl}-G'
17646 else
17647 shared_flag='${wl}-bM:SRE'
17652 # It seems that -bexpall does not export symbols beginning with
17653 # underscore (_), so it is better to generate a list of symbols to export.
17654 always_export_symbols_GCJ=yes
17655 if test "$aix_use_runtimelinking" = yes; then
17656 # Warning - without using the other runtime loading flags (-brtl),
17657 # -berok will link without error, but may produce a broken library.
17658 allow_undefined_flag_GCJ='-berok'
17659 # Determine the default libpath from the value encoded in an empty executable.
17660 cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h. */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17668 main ()
17672 return 0;
17674 _ACEOF
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (ac_try="$ac_link"
17677 case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_link") 2>conftest.er1
17683 ac_status=$?
17684 grep -v '^ *+' conftest.er1 >conftest.err
17685 rm -f conftest.er1
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && {
17689 test -z "$ac_c_werror_flag" ||
17690 test ! -s conftest.err
17691 } && test -s conftest$ac_exeext &&
17692 $as_test_x conftest$ac_exeext; then
17694 lt_aix_libpath_sed='
17695 /Import File Strings/,/^$/ {
17696 /^0/ {
17697 s/^0 *\(.*\)$/\1/
17701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17702 # Check for a 64-bit object if we didn't find anything.
17703 if test -z "$aix_libpath"; then
17704 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17714 conftest$ac_exeext conftest.$ac_ext
17715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17717 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17718 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17719 else
17720 if test "$host_cpu" = ia64; then
17721 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17722 allow_undefined_flag_GCJ="-z nodefs"
17723 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17724 else
17725 # Determine the default libpath from the value encoded in an empty executable.
17726 cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h. */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17734 main ()
17738 return 0;
17740 _ACEOF
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (ac_try="$ac_link"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_link") 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } && {
17755 test -z "$ac_c_werror_flag" ||
17756 test ! -s conftest.err
17757 } && test -s conftest$ac_exeext &&
17758 $as_test_x conftest$ac_exeext; then
17760 lt_aix_libpath_sed='
17761 /Import File Strings/,/^$/ {
17762 /^0/ {
17763 s/^0 *\(.*\)$/\1/
17767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17768 # Check for a 64-bit object if we didn't find anything.
17769 if test -z "$aix_libpath"; then
17770 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17772 else
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17780 conftest$ac_exeext conftest.$ac_ext
17781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17783 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17784 # Warning - without using the other run time loading flags,
17785 # -berok will link without error, but may produce a broken library.
17786 no_undefined_flag_GCJ=' ${wl}-bernotok'
17787 allow_undefined_flag_GCJ=' ${wl}-berok'
17788 # Exported symbols can be pulled into shared objects from archives
17789 whole_archive_flag_spec_GCJ='$convenience'
17790 archive_cmds_need_lc_GCJ=yes
17791 # This is similar to how AIX traditionally builds its shared libraries.
17792 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17797 amigaos*)
17798 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)'
17799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17800 hardcode_minus_L_GCJ=yes
17801 # see comment about different semantics on the GNU ld section
17802 ld_shlibs_GCJ=no
17805 bsdi[45]*)
17806 export_dynamic_flag_spec_GCJ=-rdynamic
17809 cygwin* | mingw* | pw32*)
17810 # When not using gcc, we currently assume that we are using
17811 # Microsoft Visual C++.
17812 # hardcode_libdir_flag_spec is actually meaningless, as there is
17813 # no search path for DLLs.
17814 hardcode_libdir_flag_spec_GCJ=' '
17815 allow_undefined_flag_GCJ=unsupported
17816 # Tell ltmain to make .lib files, not .a files.
17817 libext=lib
17818 # Tell ltmain to make .dll files, not .so files.
17819 shrext_cmds=".dll"
17820 # FIXME: Setting linknames here is a bad hack.
17821 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17822 # The linker will automatically build a .lib file if we build a DLL.
17823 old_archive_From_new_cmds_GCJ='true'
17824 # FIXME: Should let the user specify the lib program.
17825 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17826 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17827 enable_shared_with_static_runtimes_GCJ=yes
17830 darwin* | rhapsody*)
17831 case $host_os in
17832 rhapsody* | darwin1.[012])
17833 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17835 *) # Darwin 1.3 on
17836 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17837 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17838 else
17839 case ${MACOSX_DEPLOYMENT_TARGET} in
17840 10.[012])
17841 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17843 10.*)
17844 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17846 esac
17849 esac
17850 archive_cmds_need_lc_GCJ=no
17851 hardcode_direct_GCJ=no
17852 hardcode_automatic_GCJ=yes
17853 hardcode_shlibpath_var_GCJ=unsupported
17854 whole_archive_flag_spec_GCJ=''
17855 link_all_deplibs_GCJ=yes
17856 if test "$GCC" = yes ; then
17857 output_verbose_link_cmd='echo'
17858 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17859 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17860 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17861 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17862 else
17863 case $cc_basename in
17864 xlc*)
17865 output_verbose_link_cmd='echo'
17866 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17867 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17868 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17869 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17870 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}'
17873 ld_shlibs_GCJ=no
17875 esac
17879 dgux*)
17880 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17882 hardcode_shlibpath_var_GCJ=no
17885 freebsd1*)
17886 ld_shlibs_GCJ=no
17889 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17890 # support. Future versions do this automatically, but an explicit c++rt0.o
17891 # does not break anything, and helps significantly (at the cost of a little
17892 # extra space).
17893 freebsd2.2*)
17894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17896 hardcode_direct_GCJ=yes
17897 hardcode_shlibpath_var_GCJ=no
17900 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17901 freebsd2*)
17902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17903 hardcode_direct_GCJ=yes
17904 hardcode_minus_L_GCJ=yes
17905 hardcode_shlibpath_var_GCJ=no
17908 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17909 freebsd* | dragonfly*)
17910 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17912 hardcode_direct_GCJ=yes
17913 hardcode_shlibpath_var_GCJ=no
17916 hpux9*)
17917 if test "$GCC" = yes; then
17918 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'
17919 else
17920 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'
17922 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17923 hardcode_libdir_separator_GCJ=:
17924 hardcode_direct_GCJ=yes
17926 # hardcode_minus_L: Not really in the search PATH,
17927 # but as the default location of the library.
17928 hardcode_minus_L_GCJ=yes
17929 export_dynamic_flag_spec_GCJ='${wl}-E'
17932 hpux10*)
17933 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17934 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17935 else
17936 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17938 if test "$with_gnu_ld" = no; then
17939 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17940 hardcode_libdir_separator_GCJ=:
17942 hardcode_direct_GCJ=yes
17943 export_dynamic_flag_spec_GCJ='${wl}-E'
17945 # hardcode_minus_L: Not really in the search PATH,
17946 # but as the default location of the library.
17947 hardcode_minus_L_GCJ=yes
17951 hpux11*)
17952 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17953 case $host_cpu in
17954 hppa*64*)
17955 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17957 ia64*)
17958 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17961 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17963 esac
17964 else
17965 case $host_cpu in
17966 hppa*64*)
17967 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17969 ia64*)
17970 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17973 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17975 esac
17977 if test "$with_gnu_ld" = no; then
17978 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17979 hardcode_libdir_separator_GCJ=:
17981 case $host_cpu in
17982 hppa*64*|ia64*)
17983 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17984 hardcode_direct_GCJ=no
17985 hardcode_shlibpath_var_GCJ=no
17988 hardcode_direct_GCJ=yes
17989 export_dynamic_flag_spec_GCJ='${wl}-E'
17991 # hardcode_minus_L: Not really in the search PATH,
17992 # but as the default location of the library.
17993 hardcode_minus_L_GCJ=yes
17995 esac
17999 irix5* | irix6* | nonstopux*)
18000 if test "$GCC" = yes; then
18001 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'
18002 else
18003 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'
18004 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18007 hardcode_libdir_separator_GCJ=:
18008 link_all_deplibs_GCJ=yes
18011 netbsd*)
18012 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18013 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18014 else
18015 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18017 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18018 hardcode_direct_GCJ=yes
18019 hardcode_shlibpath_var_GCJ=no
18022 newsos6)
18023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18024 hardcode_direct_GCJ=yes
18025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18026 hardcode_libdir_separator_GCJ=:
18027 hardcode_shlibpath_var_GCJ=no
18030 openbsd*)
18031 if test -f /usr/libexec/ld.so; then
18032 hardcode_direct_GCJ=yes
18033 hardcode_shlibpath_var_GCJ=no
18034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18035 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18036 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18038 export_dynamic_flag_spec_GCJ='${wl}-E'
18039 else
18040 case $host_os in
18041 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18042 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18043 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18046 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18047 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18049 esac
18051 else
18052 ld_shlibs_GCJ=no
18056 os2*)
18057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18058 hardcode_minus_L_GCJ=yes
18059 allow_undefined_flag_GCJ=unsupported
18060 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'
18061 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18064 osf3*)
18065 if test "$GCC" = yes; then
18066 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18067 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'
18068 else
18069 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18070 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'
18072 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18073 hardcode_libdir_separator_GCJ=:
18076 osf4* | osf5*) # as osf3* with the addition of -msym flag
18077 if test "$GCC" = yes; then
18078 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18079 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'
18080 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18081 else
18082 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18083 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'
18084 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~
18085 $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'
18087 # Both c and cxx compiler support -rpath directly
18088 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18090 hardcode_libdir_separator_GCJ=:
18093 solaris*)
18094 no_undefined_flag_GCJ=' -z text'
18095 if test "$GCC" = yes; then
18096 wlarc='${wl}'
18097 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18098 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18099 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18100 else
18101 wlarc=''
18102 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18103 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18104 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18106 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18107 hardcode_shlibpath_var_GCJ=no
18108 case $host_os in
18109 solaris2.[0-5] | solaris2.[0-5].*) ;;
18111 # The compiler driver will combine and reorder linker options,
18112 # but understands `-z linker_flag'. GCC discards it without `$wl',
18113 # but is careful enough not to reorder.
18114 # Supported since Solaris 2.6 (maybe 2.5.1?)
18115 if test "$GCC" = yes; then
18116 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18117 else
18118 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18121 esac
18122 link_all_deplibs_GCJ=yes
18125 sunos4*)
18126 if test "x$host_vendor" = xsequent; then
18127 # Use $CC to link under sequent, because it throws in some extra .o
18128 # files that make .init and .fini sections work.
18129 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18130 else
18131 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18133 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18134 hardcode_direct_GCJ=yes
18135 hardcode_minus_L_GCJ=yes
18136 hardcode_shlibpath_var_GCJ=no
18139 sysv4)
18140 case $host_vendor in
18141 sni)
18142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18143 hardcode_direct_GCJ=yes # is this really true???
18145 siemens)
18146 ## LD is ld it makes a PLAMLIB
18147 ## CC just makes a GrossModule.
18148 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18149 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18150 hardcode_direct_GCJ=no
18152 motorola)
18153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18154 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18156 esac
18157 runpath_var='LD_RUN_PATH'
18158 hardcode_shlibpath_var_GCJ=no
18161 sysv4.3*)
18162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18163 hardcode_shlibpath_var_GCJ=no
18164 export_dynamic_flag_spec_GCJ='-Bexport'
18167 sysv4*MP*)
18168 if test -d /usr/nec; then
18169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18170 hardcode_shlibpath_var_GCJ=no
18171 runpath_var=LD_RUN_PATH
18172 hardcode_runpath_var=yes
18173 ld_shlibs_GCJ=yes
18177 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18178 no_undefined_flag_GCJ='${wl}-z,text'
18179 archive_cmds_need_lc_GCJ=no
18180 hardcode_shlibpath_var_GCJ=no
18181 runpath_var='LD_RUN_PATH'
18183 if test "$GCC" = yes; then
18184 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18185 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18186 else
18187 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18188 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18192 sysv5* | sco3.2v5* | sco5v6*)
18193 # Note: We can NOT use -z defs as we might desire, because we do not
18194 # link with -lc, and that would cause any symbols used from libc to
18195 # always be unresolved, which means just about no library would
18196 # ever link correctly. If we're not using GNU ld we use -z text
18197 # though, which does catch some bad symbols but isn't as heavy-handed
18198 # as -z defs.
18199 no_undefined_flag_GCJ='${wl}-z,text'
18200 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18201 archive_cmds_need_lc_GCJ=no
18202 hardcode_shlibpath_var_GCJ=no
18203 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18204 hardcode_libdir_separator_GCJ=':'
18205 link_all_deplibs_GCJ=yes
18206 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18207 runpath_var='LD_RUN_PATH'
18209 if test "$GCC" = yes; then
18210 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18211 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18212 else
18213 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18214 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18218 uts4*)
18219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18221 hardcode_shlibpath_var_GCJ=no
18225 ld_shlibs_GCJ=no
18227 esac
18230 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18231 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18232 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18235 # Do we need to explicitly link libc?
18237 case "x$archive_cmds_need_lc_GCJ" in
18238 x|xyes)
18239 # Assume -lc should be added
18240 archive_cmds_need_lc_GCJ=yes
18242 if test "$enable_shared" = yes && test "$GCC" = yes; then
18243 case $archive_cmds_GCJ in
18244 *'~'*)
18245 # FIXME: we may have to deal with multi-command sequences.
18247 '$CC '*)
18248 # Test whether the compiler implicitly links with -lc since on some
18249 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18250 # to ld, don't add -lc before -lgcc.
18251 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18252 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18253 $rm conftest*
18254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18257 (eval $ac_compile) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } 2>conftest.err; then
18261 soname=conftest
18262 lib=conftest
18263 libobjs=conftest.$ac_objext
18264 deplibs=
18265 wl=$lt_prog_compiler_wl_GCJ
18266 pic_flag=$lt_prog_compiler_pic_GCJ
18267 compiler_flags=-v
18268 linker_flags=-v
18269 verstring=
18270 output_objdir=.
18271 libname=conftest
18272 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18273 allow_undefined_flag_GCJ=
18274 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18275 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }
18279 then
18280 archive_cmds_need_lc_GCJ=no
18281 else
18282 archive_cmds_need_lc_GCJ=yes
18284 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18285 else
18286 cat conftest.err 1>&5
18288 $rm conftest*
18289 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18290 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18292 esac
18295 esac
18297 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18298 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18299 library_names_spec=
18300 libname_spec='lib$name'
18301 soname_spec=
18302 shrext_cmds=".so"
18303 postinstall_cmds=
18304 postuninstall_cmds=
18305 finish_cmds=
18306 finish_eval=
18307 shlibpath_var=
18308 shlibpath_overrides_runpath=unknown
18309 version_type=none
18310 dynamic_linker="$host_os ld.so"
18311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18313 need_lib_prefix=unknown
18314 hardcode_into_libs=no
18316 # when you set need_version to no, make sure it does not cause -set_version
18317 # flags to be left without arguments
18318 need_version=unknown
18320 case $host_os in
18321 aix3*)
18322 version_type=linux
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18324 shlibpath_var=LIBPATH
18326 # AIX 3 has no versioning support, so we append a major version to the name.
18327 soname_spec='${libname}${release}${shared_ext}$major'
18330 aix[4-9]*)
18331 version_type=linux
18332 need_lib_prefix=no
18333 need_version=no
18334 hardcode_into_libs=yes
18335 if test "$host_cpu" = ia64; then
18336 # AIX 5 supports IA64
18337 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18338 shlibpath_var=LD_LIBRARY_PATH
18339 else
18340 # With GCC up to 2.95.x, collect2 would create an import file
18341 # for dependence libraries. The import file would start with
18342 # the line `#! .'. This would cause the generated library to
18343 # depend on `.', always an invalid library. This was fixed in
18344 # development snapshots of GCC prior to 3.0.
18345 case $host_os in
18346 aix4 | aix4.[01] | aix4.[01].*)
18347 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18348 echo ' yes '
18349 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18351 else
18352 can_build_shared=no
18355 esac
18356 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18357 # soname into executable. Probably we can add versioning support to
18358 # collect2, so additional links can be useful in future.
18359 if test "$aix_use_runtimelinking" = yes; then
18360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18361 # instead of lib<name>.a to let people know that these are not
18362 # typical AIX shared libraries.
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 else
18365 # We preserve .a as extension for shared libraries through AIX4.2
18366 # and later when we are not doing run time linking.
18367 library_names_spec='${libname}${release}.a $libname.a'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18370 shlibpath_var=LIBPATH
18374 amigaos*)
18375 library_names_spec='$libname.ixlibrary $libname.a'
18376 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18377 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'
18380 beos*)
18381 library_names_spec='${libname}${shared_ext}'
18382 dynamic_linker="$host_os ld.so"
18383 shlibpath_var=LIBRARY_PATH
18386 bsdi[45]*)
18387 version_type=linux
18388 need_version=no
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18392 shlibpath_var=LD_LIBRARY_PATH
18393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18395 # the default ld.so.conf also contains /usr/contrib/lib and
18396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18397 # libtool to hard-code these into programs
18400 cygwin* | mingw* | pw32*)
18401 version_type=windows
18402 shrext_cmds=".dll"
18403 need_version=no
18404 need_lib_prefix=no
18406 case $GCC,$host_os in
18407 yes,cygwin* | yes,mingw* | yes,pw32*)
18408 library_names_spec='$libname.dll.a'
18409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18410 postinstall_cmds='base_file=`basename \${file}`~
18411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18412 dldir=$destdir/`dirname \$dlpath`~
18413 test -d \$dldir || mkdir -p \$dldir~
18414 $install_prog $dir/$dlname \$dldir/$dlname~
18415 chmod a+x \$dldir/$dlname'
18416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18417 dlpath=$dir/\$dldll~
18418 $rm \$dlpath'
18419 shlibpath_overrides_runpath=yes
18421 case $host_os in
18422 cygwin*)
18423 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18424 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18425 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18427 mingw*)
18428 # MinGW DLLs use traditional 'lib' prefix
18429 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18430 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18431 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18432 # It is most probably a Windows format PATH printed by
18433 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18434 # path with ; separators, and with drive letters. We can handle the
18435 # drive letters (cygwin fileutils understands them), so leave them,
18436 # especially as we might pass files found there to a mingw objdump,
18437 # which wouldn't understand a cygwinified path. Ahh.
18438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18439 else
18440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18443 pw32*)
18444 # pw32 DLLs use 'pw' prefix rather than 'lib'
18445 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18447 esac
18451 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18453 esac
18454 dynamic_linker='Win32 ld.exe'
18455 # FIXME: first we should search . and the directory the executable is in
18456 shlibpath_var=PATH
18459 darwin* | rhapsody*)
18460 dynamic_linker="$host_os dyld"
18461 version_type=darwin
18462 need_lib_prefix=no
18463 need_version=no
18464 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18465 soname_spec='${libname}${release}${major}$shared_ext'
18466 shlibpath_overrides_runpath=yes
18467 shlibpath_var=DYLD_LIBRARY_PATH
18468 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18473 dgux*)
18474 version_type=linux
18475 need_lib_prefix=no
18476 need_version=no
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 shlibpath_var=LD_LIBRARY_PATH
18482 freebsd1*)
18483 dynamic_linker=no
18486 freebsd* | dragonfly*)
18487 # DragonFly does not have aout. When/if they implement a new
18488 # versioning mechanism, adjust this.
18489 if test -x /usr/bin/objformat; then
18490 objformat=`/usr/bin/objformat`
18491 else
18492 case $host_os in
18493 freebsd[123]*) objformat=aout ;;
18494 *) objformat=elf ;;
18495 esac
18497 version_type=freebsd-$objformat
18498 case $version_type in
18499 freebsd-elf*)
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18501 need_version=no
18502 need_lib_prefix=no
18504 freebsd-*)
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18506 need_version=yes
18508 esac
18509 shlibpath_var=LD_LIBRARY_PATH
18510 case $host_os in
18511 freebsd2*)
18512 shlibpath_overrides_runpath=yes
18514 freebsd3.[01]* | freebsdelf3.[01]*)
18515 shlibpath_overrides_runpath=yes
18516 hardcode_into_libs=yes
18518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18520 shlibpath_overrides_runpath=no
18521 hardcode_into_libs=yes
18523 *) # from 4.6 on, and DragonFly
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18527 esac
18530 gnu*)
18531 version_type=linux
18532 need_lib_prefix=no
18533 need_version=no
18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18535 soname_spec='${libname}${release}${shared_ext}$major'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 hardcode_into_libs=yes
18540 hpux9* | hpux10* | hpux11*)
18541 # Give a soname corresponding to the major version so that dld.sl refuses to
18542 # link against other versions.
18543 version_type=sunos
18544 need_lib_prefix=no
18545 need_version=no
18546 case $host_cpu in
18547 ia64*)
18548 shrext_cmds='.so'
18549 hardcode_into_libs=yes
18550 dynamic_linker="$host_os dld.so"
18551 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554 soname_spec='${libname}${release}${shared_ext}$major'
18555 if test "X$HPUX_IA64_MODE" = X32; then
18556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18557 else
18558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18562 hppa*64*)
18563 shrext_cmds='.sl'
18564 hardcode_into_libs=yes
18565 dynamic_linker="$host_os dld.sl"
18566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18574 shrext_cmds='.sl'
18575 dynamic_linker="$host_os dld.sl"
18576 shlibpath_var=SHLIB_PATH
18577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18579 soname_spec='${libname}${release}${shared_ext}$major'
18581 esac
18582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18583 postinstall_cmds='chmod 555 $lib'
18586 interix[3-9]*)
18587 version_type=linux
18588 need_lib_prefix=no
18589 need_version=no
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=no
18595 hardcode_into_libs=yes
18598 irix5* | irix6* | nonstopux*)
18599 case $host_os in
18600 nonstopux*) version_type=nonstopux ;;
18602 if test "$lt_cv_prog_gnu_ld" = yes; then
18603 version_type=linux
18604 else
18605 version_type=irix
18606 fi ;;
18607 esac
18608 need_lib_prefix=no
18609 need_version=no
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18612 case $host_os in
18613 irix5* | nonstopux*)
18614 libsuff= shlibsuff=
18617 case $LD in # libtool.m4 will add one of these switches to LD
18618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18619 libsuff= shlibsuff= libmagic=32-bit;;
18620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18621 libsuff=32 shlibsuff=N32 libmagic=N32;;
18622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18624 *) libsuff= shlibsuff= libmagic=never-match;;
18625 esac
18627 esac
18628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18629 shlibpath_overrides_runpath=no
18630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18632 hardcode_into_libs=yes
18635 # No shared lib support for Linux oldld, aout, or coff.
18636 linux*oldld* | linux*aout* | linux*coff*)
18637 dynamic_linker=no
18640 # This must be Linux ELF.
18641 linux* | k*bsd*-gnu)
18642 version_type=linux
18643 need_lib_prefix=no
18644 need_version=no
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646 soname_spec='${libname}${release}${shared_ext}$major'
18647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18648 shlibpath_var=LD_LIBRARY_PATH
18649 shlibpath_overrides_runpath=no
18650 # This implies no fast_install, which is unacceptable.
18651 # Some rework will be needed to allow for fast_install
18652 # before this can be enabled.
18653 hardcode_into_libs=yes
18655 # Append ld.so.conf contents to the search path
18656 if test -f /etc/ld.so.conf; then
18657 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18658 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18661 # We used to test for /lib/ld.so.1 and disable shared libraries on
18662 # powerpc, because MkLinux only supported shared libraries with the
18663 # GNU dynamic linker. Since this was broken with cross compilers,
18664 # most powerpc-linux boxes support dynamic linking these days and
18665 # people can always --disable-shared, the test was removed, and we
18666 # assume the GNU/Linux dynamic linker is in use.
18667 dynamic_linker='GNU/Linux ld.so'
18670 netbsd*)
18671 version_type=sunos
18672 need_lib_prefix=no
18673 need_version=no
18674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18677 dynamic_linker='NetBSD (a.out) ld.so'
18678 else
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18680 soname_spec='${libname}${release}${shared_ext}$major'
18681 dynamic_linker='NetBSD ld.elf_so'
18683 shlibpath_var=LD_LIBRARY_PATH
18684 shlibpath_overrides_runpath=yes
18685 hardcode_into_libs=yes
18688 newsos6)
18689 version_type=linux
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath=yes
18695 nto-qnx*)
18696 version_type=linux
18697 need_lib_prefix=no
18698 need_version=no
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700 soname_spec='${libname}${release}${shared_ext}$major'
18701 shlibpath_var=LD_LIBRARY_PATH
18702 shlibpath_overrides_runpath=yes
18705 openbsd*)
18706 version_type=sunos
18707 sys_lib_dlsearch_path_spec="/usr/lib"
18708 need_lib_prefix=no
18709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18710 case $host_os in
18711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18712 *) need_version=no ;;
18713 esac
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18716 shlibpath_var=LD_LIBRARY_PATH
18717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18718 case $host_os in
18719 openbsd2.[89] | openbsd2.[89].*)
18720 shlibpath_overrides_runpath=no
18723 shlibpath_overrides_runpath=yes
18725 esac
18726 else
18727 shlibpath_overrides_runpath=yes
18731 os2*)
18732 libname_spec='$name'
18733 shrext_cmds=".dll"
18734 need_lib_prefix=no
18735 library_names_spec='$libname${shared_ext} $libname.a'
18736 dynamic_linker='OS/2 ld.exe'
18737 shlibpath_var=LIBPATH
18740 osf3* | osf4* | osf5*)
18741 version_type=osf
18742 need_lib_prefix=no
18743 need_version=no
18744 soname_spec='${libname}${release}${shared_ext}$major'
18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18751 rdos*)
18752 dynamic_linker=no
18755 solaris*)
18756 version_type=linux
18757 need_lib_prefix=no
18758 need_version=no
18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18760 soname_spec='${libname}${release}${shared_ext}$major'
18761 shlibpath_var=LD_LIBRARY_PATH
18762 shlibpath_overrides_runpath=yes
18763 hardcode_into_libs=yes
18764 # ldd complains unless libraries are executable
18765 postinstall_cmds='chmod +x $lib'
18768 sunos4*)
18769 version_type=sunos
18770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18772 shlibpath_var=LD_LIBRARY_PATH
18773 shlibpath_overrides_runpath=yes
18774 if test "$with_gnu_ld" = yes; then
18775 need_lib_prefix=no
18777 need_version=yes
18780 sysv4 | sysv4.3*)
18781 version_type=linux
18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18783 soname_spec='${libname}${release}${shared_ext}$major'
18784 shlibpath_var=LD_LIBRARY_PATH
18785 case $host_vendor in
18786 sni)
18787 shlibpath_overrides_runpath=no
18788 need_lib_prefix=no
18789 export_dynamic_flag_spec='${wl}-Blargedynsym'
18790 runpath_var=LD_RUN_PATH
18792 siemens)
18793 need_lib_prefix=no
18795 motorola)
18796 need_lib_prefix=no
18797 need_version=no
18798 shlibpath_overrides_runpath=no
18799 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18801 esac
18804 sysv4*MP*)
18805 if test -d /usr/nec ;then
18806 version_type=linux
18807 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18808 soname_spec='$libname${shared_ext}.$major'
18809 shlibpath_var=LD_LIBRARY_PATH
18813 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18814 version_type=freebsd-elf
18815 need_lib_prefix=no
18816 need_version=no
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 shlibpath_var=LD_LIBRARY_PATH
18820 hardcode_into_libs=yes
18821 if test "$with_gnu_ld" = yes; then
18822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18823 shlibpath_overrides_runpath=no
18824 else
18825 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18826 shlibpath_overrides_runpath=yes
18827 case $host_os in
18828 sco3.2v5*)
18829 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18831 esac
18833 sys_lib_dlsearch_path_spec='/usr/lib'
18836 uts4*)
18837 version_type=linux
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 soname_spec='${libname}${release}${shared_ext}$major'
18840 shlibpath_var=LD_LIBRARY_PATH
18844 dynamic_linker=no
18846 esac
18847 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18848 echo "${ECHO_T}$dynamic_linker" >&6; }
18849 test "$dynamic_linker" = no && can_build_shared=no
18851 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18857 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18858 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 else
18861 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18864 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18867 if test "$GCC" = yes; then
18868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18871 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18873 hardcode_action_GCJ=
18874 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18875 test -n "$runpath_var_GCJ" || \
18876 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18878 # We can hardcode non-existant directories.
18879 if test "$hardcode_direct_GCJ" != no &&
18880 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18881 # have to relink, otherwise we might link with an installed library
18882 # when we should be linking with a yet-to-be-installed one
18883 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18884 test "$hardcode_minus_L_GCJ" != no; then
18885 # Linking always hardcodes the temporary library directory.
18886 hardcode_action_GCJ=relink
18887 else
18888 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18889 hardcode_action_GCJ=immediate
18891 else
18892 # We cannot hardcode anything, or else we can only hardcode existing
18893 # directories.
18894 hardcode_action_GCJ=unsupported
18896 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18897 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18899 if test "$hardcode_action_GCJ" = relink; then
18900 # Fast installation is not supported
18901 enable_fast_install=no
18902 elif test "$shlibpath_overrides_runpath" = yes ||
18903 test "$enable_shared" = no; then
18904 # Fast installation is not necessary
18905 enable_fast_install=needless
18909 # The else clause should only fire when bootstrapping the
18910 # libtool distribution, otherwise you forgot to ship ltmain.sh
18911 # with your package, and you will get complaints that there are
18912 # no rules to generate ltmain.sh.
18913 if test -f "$ltmain"; then
18914 # See if we are running on zsh, and set the options which allow our commands through
18915 # without removal of \ escapes.
18916 if test -n "${ZSH_VERSION+set}" ; then
18917 setopt NO_GLOB_SUBST
18919 # Now quote all the things that may contain metacharacters while being
18920 # careful not to overquote the AC_SUBSTed values. We take copies of the
18921 # variables and quote the copies for generation of the libtool script.
18922 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18923 SED SHELL STRIP \
18924 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18925 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18926 deplibs_check_method reload_flag reload_cmds need_locks \
18927 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18928 lt_cv_sys_global_symbol_to_c_name_address \
18929 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18930 old_postinstall_cmds old_postuninstall_cmds \
18931 compiler_GCJ \
18932 CC_GCJ \
18933 LD_GCJ \
18934 lt_prog_compiler_wl_GCJ \
18935 lt_prog_compiler_pic_GCJ \
18936 lt_prog_compiler_static_GCJ \
18937 lt_prog_compiler_no_builtin_flag_GCJ \
18938 export_dynamic_flag_spec_GCJ \
18939 thread_safe_flag_spec_GCJ \
18940 whole_archive_flag_spec_GCJ \
18941 enable_shared_with_static_runtimes_GCJ \
18942 old_archive_cmds_GCJ \
18943 old_archive_from_new_cmds_GCJ \
18944 predep_objects_GCJ \
18945 postdep_objects_GCJ \
18946 predeps_GCJ \
18947 postdeps_GCJ \
18948 compiler_lib_search_path_GCJ \
18949 compiler_lib_search_dirs_GCJ \
18950 archive_cmds_GCJ \
18951 archive_expsym_cmds_GCJ \
18952 postinstall_cmds_GCJ \
18953 postuninstall_cmds_GCJ \
18954 old_archive_from_expsyms_cmds_GCJ \
18955 allow_undefined_flag_GCJ \
18956 no_undefined_flag_GCJ \
18957 export_symbols_cmds_GCJ \
18958 hardcode_libdir_flag_spec_GCJ \
18959 hardcode_libdir_flag_spec_ld_GCJ \
18960 hardcode_libdir_separator_GCJ \
18961 hardcode_automatic_GCJ \
18962 module_cmds_GCJ \
18963 module_expsym_cmds_GCJ \
18964 lt_cv_prog_compiler_c_o_GCJ \
18965 fix_srcfile_path_GCJ \
18966 exclude_expsyms_GCJ \
18967 include_expsyms_GCJ; do
18969 case $var in
18970 old_archive_cmds_GCJ | \
18971 old_archive_from_new_cmds_GCJ | \
18972 archive_cmds_GCJ | \
18973 archive_expsym_cmds_GCJ | \
18974 module_cmds_GCJ | \
18975 module_expsym_cmds_GCJ | \
18976 old_archive_from_expsyms_cmds_GCJ | \
18977 export_symbols_cmds_GCJ | \
18978 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18979 postinstall_cmds | postuninstall_cmds | \
18980 old_postinstall_cmds | old_postuninstall_cmds | \
18981 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18982 # Double-quote double-evaled strings.
18983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18988 esac
18989 done
18991 case $lt_echo in
18992 *'\$0 --fallback-echo"')
18993 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18995 esac
18997 cfgfile="$ofile"
18999 cat <<__EOF__ >> "$cfgfile"
19000 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19004 # Shell to use when invoking shell scripts.
19005 SHELL=$lt_SHELL
19007 # Whether or not to build shared libraries.
19008 build_libtool_libs=$enable_shared
19010 # Whether or not to build static libraries.
19011 build_old_libs=$enable_static
19013 # Whether or not to add -lc for building shared libraries.
19014 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19016 # Whether or not to disallow shared libs when runtime libs are static
19017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19019 # Whether or not to optimize for fast installation.
19020 fast_install=$enable_fast_install
19022 # The host system.
19023 host_alias=$host_alias
19024 host=$host
19025 host_os=$host_os
19027 # The build system.
19028 build_alias=$build_alias
19029 build=$build
19030 build_os=$build_os
19032 # An echo program that does not interpret backslashes.
19033 echo=$lt_echo
19035 # The archiver.
19036 AR=$lt_AR
19037 AR_FLAGS=$lt_AR_FLAGS
19039 # A C compiler.
19040 LTCC=$lt_LTCC
19042 # LTCC compiler flags.
19043 LTCFLAGS=$lt_LTCFLAGS
19045 # A language-specific compiler.
19046 CC=$lt_compiler_GCJ
19048 # Is the compiler the GNU C compiler?
19049 with_gcc=$GCC_GCJ
19051 # An ERE matcher.
19052 EGREP=$lt_EGREP
19054 # The linker used to build libraries.
19055 LD=$lt_LD_GCJ
19057 # Whether we need hard or soft links.
19058 LN_S=$lt_LN_S
19060 # A BSD-compatible nm program.
19061 NM=$lt_NM
19063 # A symbol stripping program
19064 STRIP=$lt_STRIP
19066 # Used to examine libraries when file_magic_cmd begins "file"
19067 MAGIC_CMD=$MAGIC_CMD
19069 # Used on cygwin: DLL creation program.
19070 DLLTOOL="$DLLTOOL"
19072 # Used on cygwin: object dumper.
19073 OBJDUMP="$OBJDUMP"
19075 # Used on cygwin: assembler.
19076 AS="$AS"
19078 # The name of the directory that contains temporary libtool files.
19079 objdir=$objdir
19081 # How to create reloadable object files.
19082 reload_flag=$lt_reload_flag
19083 reload_cmds=$lt_reload_cmds
19085 # How to pass a linker flag through the compiler.
19086 wl=$lt_lt_prog_compiler_wl_GCJ
19088 # Object file suffix (normally "o").
19089 objext="$ac_objext"
19091 # Old archive suffix (normally "a").
19092 libext="$libext"
19094 # Shared library suffix (normally ".so").
19095 shrext_cmds='$shrext_cmds'
19097 # Executable file suffix (normally "").
19098 exeext="$exeext"
19100 # Additional compiler flags for building library objects.
19101 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19102 pic_mode=$pic_mode
19104 # What is the maximum length of a command?
19105 max_cmd_len=$lt_cv_sys_max_cmd_len
19107 # Does compiler simultaneously support -c and -o options?
19108 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19110 # Must we lock files when doing compilation?
19111 need_locks=$lt_need_locks
19113 # Do we need the lib prefix for modules?
19114 need_lib_prefix=$need_lib_prefix
19116 # Do we need a version for libraries?
19117 need_version=$need_version
19119 # Whether dlopen is supported.
19120 dlopen_support=$enable_dlopen
19122 # Whether dlopen of programs is supported.
19123 dlopen_self=$enable_dlopen_self
19125 # Whether dlopen of statically linked programs is supported.
19126 dlopen_self_static=$enable_dlopen_self_static
19128 # Compiler flag to prevent dynamic linking.
19129 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19131 # Compiler flag to turn off builtin functions.
19132 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19134 # Compiler flag to allow reflexive dlopens.
19135 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19137 # Compiler flag to generate shared objects directly from archives.
19138 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19140 # Compiler flag to generate thread-safe objects.
19141 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19143 # Library versioning type.
19144 version_type=$version_type
19146 # Format of library name prefix.
19147 libname_spec=$lt_libname_spec
19149 # List of archive names. First name is the real one, the rest are links.
19150 # The last name is the one that the linker finds with -lNAME.
19151 library_names_spec=$lt_library_names_spec
19153 # The coded name of the library, if different from the real name.
19154 soname_spec=$lt_soname_spec
19156 # Commands used to build and install an old-style archive.
19157 RANLIB=$lt_RANLIB
19158 old_archive_cmds=$lt_old_archive_cmds_GCJ
19159 old_postinstall_cmds=$lt_old_postinstall_cmds
19160 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19162 # Create an old-style archive from a shared archive.
19163 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19165 # Create a temporary old-style archive to link instead of a shared archive.
19166 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19168 # Commands used to build and install a shared archive.
19169 archive_cmds=$lt_archive_cmds_GCJ
19170 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19171 postinstall_cmds=$lt_postinstall_cmds
19172 postuninstall_cmds=$lt_postuninstall_cmds
19174 # Commands used to build a loadable module (assumed same as above if empty)
19175 module_cmds=$lt_module_cmds_GCJ
19176 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19178 # Commands to strip libraries.
19179 old_striplib=$lt_old_striplib
19180 striplib=$lt_striplib
19182 # Dependencies to place before the objects being linked to create a
19183 # shared library.
19184 predep_objects=$lt_predep_objects_GCJ
19186 # Dependencies to place after the objects being linked to create a
19187 # shared library.
19188 postdep_objects=$lt_postdep_objects_GCJ
19190 # Dependencies to place before the objects being linked to create a
19191 # shared library.
19192 predeps=$lt_predeps_GCJ
19194 # Dependencies to place after the objects being linked to create a
19195 # shared library.
19196 postdeps=$lt_postdeps_GCJ
19198 # The directories searched by this compiler when creating a shared
19199 # library
19200 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19202 # The library search path used internally by the compiler when linking
19203 # a shared library.
19204 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19206 # Method to check whether dependent libraries are shared objects.
19207 deplibs_check_method=$lt_deplibs_check_method
19209 # Command to use when deplibs_check_method == file_magic.
19210 file_magic_cmd=$lt_file_magic_cmd
19212 # Flag that allows shared libraries with undefined symbols to be built.
19213 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19215 # Flag that forces no undefined symbols.
19216 no_undefined_flag=$lt_no_undefined_flag_GCJ
19218 # Commands used to finish a libtool library installation in a directory.
19219 finish_cmds=$lt_finish_cmds
19221 # Same as above, but a single script fragment to be evaled but not shown.
19222 finish_eval=$lt_finish_eval
19224 # Take the output of nm and produce a listing of raw symbols and C names.
19225 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19227 # Transform the output of nm in a proper C declaration
19228 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19230 # Transform the output of nm in a C name address pair
19231 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19233 # This is the shared library runtime path variable.
19234 runpath_var=$runpath_var
19236 # This is the shared library path variable.
19237 shlibpath_var=$shlibpath_var
19239 # Is shlibpath searched before the hard-coded library search path?
19240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19242 # How to hardcode a shared library path into an executable.
19243 hardcode_action=$hardcode_action_GCJ
19245 # Whether we should hardcode library paths into libraries.
19246 hardcode_into_libs=$hardcode_into_libs
19248 # Flag to hardcode \$libdir into a binary during linking.
19249 # This must work even if \$libdir does not exist.
19250 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19252 # If ld is used when linking, flag to hardcode \$libdir into
19253 # a binary during linking. This must work even if \$libdir does
19254 # not exist.
19255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19257 # Whether we need a single -rpath flag with a separated argument.
19258 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19260 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19261 # resulting binary.
19262 hardcode_direct=$hardcode_direct_GCJ
19264 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19265 # resulting binary.
19266 hardcode_minus_L=$hardcode_minus_L_GCJ
19268 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19269 # the resulting binary.
19270 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19272 # Set to yes if building a shared library automatically hardcodes DIR into the library
19273 # and all subsequent libraries and executables linked against it.
19274 hardcode_automatic=$hardcode_automatic_GCJ
19276 # Variables whose values should be saved in libtool wrapper scripts and
19277 # restored at relink time.
19278 variables_saved_for_relink="$variables_saved_for_relink"
19280 # Whether libtool must link a program against all its dependency libraries.
19281 link_all_deplibs=$link_all_deplibs_GCJ
19283 # Compile-time system search path for libraries
19284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19286 # Run-time system search path for libraries
19287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19289 # Fix the shell variable \$srcfile for the compiler.
19290 fix_srcfile_path=$lt_fix_srcfile_path
19292 # Set to yes if exported symbols are required.
19293 always_export_symbols=$always_export_symbols_GCJ
19295 # The commands to list exported symbols.
19296 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19298 # The commands to extract the exported symbol list from a shared archive.
19299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19301 # Symbols that should not be listed in the preloaded symbols.
19302 exclude_expsyms=$lt_exclude_expsyms_GCJ
19304 # Symbols that must always be exported.
19305 include_expsyms=$lt_include_expsyms_GCJ
19307 # ### END LIBTOOL TAG CONFIG: $tagname
19309 __EOF__
19312 else
19313 # If there is no Makefile yet, we rely on a make rule to execute
19314 # `config.status --recheck' to rerun these tests and create the
19315 # libtool script then.
19316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19317 if test -f "$ltmain_in"; then
19318 test -f Makefile && make "$ltmain"
19323 ac_ext=c
19324 ac_cpp='$CPP $CPPFLAGS'
19325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19329 CC="$lt_save_CC"
19331 else
19332 tagname=""
19339 # Source file extension for RC test sources.
19340 ac_ext=rc
19342 # Object file extension for compiled RC test sources.
19343 objext=o
19344 objext_RC=$objext
19346 # Code to be used in simple compile tests
19347 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19349 # Code to be used in simple link tests
19350 lt_simple_link_test_code="$lt_simple_compile_test_code"
19352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19354 # If no C compiler was specified, use CC.
19355 LTCC=${LTCC-"$CC"}
19357 # If no C compiler flags were specified, use CFLAGS.
19358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19360 # Allow CC to be a program name with arguments.
19361 compiler=$CC
19364 # save warnings/boilerplate of simple test code
19365 ac_outfile=conftest.$ac_objext
19366 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19368 _lt_compiler_boilerplate=`cat conftest.err`
19369 $rm conftest*
19371 ac_outfile=conftest.$ac_objext
19372 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19374 _lt_linker_boilerplate=`cat conftest.err`
19375 $rm -r conftest*
19378 # Allow CC to be a program name with arguments.
19379 lt_save_CC="$CC"
19380 CC=${RC-"windres"}
19381 compiler=$CC
19382 compiler_RC=$CC
19383 for cc_temp in $compiler""; do
19384 case $cc_temp in
19385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19387 \-*) ;;
19388 *) break;;
19389 esac
19390 done
19391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19393 lt_cv_prog_compiler_c_o_RC=yes
19395 # The else clause should only fire when bootstrapping the
19396 # libtool distribution, otherwise you forgot to ship ltmain.sh
19397 # with your package, and you will get complaints that there are
19398 # no rules to generate ltmain.sh.
19399 if test -f "$ltmain"; then
19400 # See if we are running on zsh, and set the options which allow our commands through
19401 # without removal of \ escapes.
19402 if test -n "${ZSH_VERSION+set}" ; then
19403 setopt NO_GLOB_SUBST
19405 # Now quote all the things that may contain metacharacters while being
19406 # careful not to overquote the AC_SUBSTed values. We take copies of the
19407 # variables and quote the copies for generation of the libtool script.
19408 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19409 SED SHELL STRIP \
19410 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19411 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19412 deplibs_check_method reload_flag reload_cmds need_locks \
19413 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19414 lt_cv_sys_global_symbol_to_c_name_address \
19415 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19416 old_postinstall_cmds old_postuninstall_cmds \
19417 compiler_RC \
19418 CC_RC \
19419 LD_RC \
19420 lt_prog_compiler_wl_RC \
19421 lt_prog_compiler_pic_RC \
19422 lt_prog_compiler_static_RC \
19423 lt_prog_compiler_no_builtin_flag_RC \
19424 export_dynamic_flag_spec_RC \
19425 thread_safe_flag_spec_RC \
19426 whole_archive_flag_spec_RC \
19427 enable_shared_with_static_runtimes_RC \
19428 old_archive_cmds_RC \
19429 old_archive_from_new_cmds_RC \
19430 predep_objects_RC \
19431 postdep_objects_RC \
19432 predeps_RC \
19433 postdeps_RC \
19434 compiler_lib_search_path_RC \
19435 compiler_lib_search_dirs_RC \
19436 archive_cmds_RC \
19437 archive_expsym_cmds_RC \
19438 postinstall_cmds_RC \
19439 postuninstall_cmds_RC \
19440 old_archive_from_expsyms_cmds_RC \
19441 allow_undefined_flag_RC \
19442 no_undefined_flag_RC \
19443 export_symbols_cmds_RC \
19444 hardcode_libdir_flag_spec_RC \
19445 hardcode_libdir_flag_spec_ld_RC \
19446 hardcode_libdir_separator_RC \
19447 hardcode_automatic_RC \
19448 module_cmds_RC \
19449 module_expsym_cmds_RC \
19450 lt_cv_prog_compiler_c_o_RC \
19451 fix_srcfile_path_RC \
19452 exclude_expsyms_RC \
19453 include_expsyms_RC; do
19455 case $var in
19456 old_archive_cmds_RC | \
19457 old_archive_from_new_cmds_RC | \
19458 archive_cmds_RC | \
19459 archive_expsym_cmds_RC | \
19460 module_cmds_RC | \
19461 module_expsym_cmds_RC | \
19462 old_archive_from_expsyms_cmds_RC | \
19463 export_symbols_cmds_RC | \
19464 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19465 postinstall_cmds | postuninstall_cmds | \
19466 old_postinstall_cmds | old_postuninstall_cmds | \
19467 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19468 # Double-quote double-evaled strings.
19469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19474 esac
19475 done
19477 case $lt_echo in
19478 *'\$0 --fallback-echo"')
19479 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19481 esac
19483 cfgfile="$ofile"
19485 cat <<__EOF__ >> "$cfgfile"
19486 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19488 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19490 # Shell to use when invoking shell scripts.
19491 SHELL=$lt_SHELL
19493 # Whether or not to build shared libraries.
19494 build_libtool_libs=$enable_shared
19496 # Whether or not to build static libraries.
19497 build_old_libs=$enable_static
19499 # Whether or not to add -lc for building shared libraries.
19500 build_libtool_need_lc=$archive_cmds_need_lc_RC
19502 # Whether or not to disallow shared libs when runtime libs are static
19503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19505 # Whether or not to optimize for fast installation.
19506 fast_install=$enable_fast_install
19508 # The host system.
19509 host_alias=$host_alias
19510 host=$host
19511 host_os=$host_os
19513 # The build system.
19514 build_alias=$build_alias
19515 build=$build
19516 build_os=$build_os
19518 # An echo program that does not interpret backslashes.
19519 echo=$lt_echo
19521 # The archiver.
19522 AR=$lt_AR
19523 AR_FLAGS=$lt_AR_FLAGS
19525 # A C compiler.
19526 LTCC=$lt_LTCC
19528 # LTCC compiler flags.
19529 LTCFLAGS=$lt_LTCFLAGS
19531 # A language-specific compiler.
19532 CC=$lt_compiler_RC
19534 # Is the compiler the GNU C compiler?
19535 with_gcc=$GCC_RC
19537 # An ERE matcher.
19538 EGREP=$lt_EGREP
19540 # The linker used to build libraries.
19541 LD=$lt_LD_RC
19543 # Whether we need hard or soft links.
19544 LN_S=$lt_LN_S
19546 # A BSD-compatible nm program.
19547 NM=$lt_NM
19549 # A symbol stripping program
19550 STRIP=$lt_STRIP
19552 # Used to examine libraries when file_magic_cmd begins "file"
19553 MAGIC_CMD=$MAGIC_CMD
19555 # Used on cygwin: DLL creation program.
19556 DLLTOOL="$DLLTOOL"
19558 # Used on cygwin: object dumper.
19559 OBJDUMP="$OBJDUMP"
19561 # Used on cygwin: assembler.
19562 AS="$AS"
19564 # The name of the directory that contains temporary libtool files.
19565 objdir=$objdir
19567 # How to create reloadable object files.
19568 reload_flag=$lt_reload_flag
19569 reload_cmds=$lt_reload_cmds
19571 # How to pass a linker flag through the compiler.
19572 wl=$lt_lt_prog_compiler_wl_RC
19574 # Object file suffix (normally "o").
19575 objext="$ac_objext"
19577 # Old archive suffix (normally "a").
19578 libext="$libext"
19580 # Shared library suffix (normally ".so").
19581 shrext_cmds='$shrext_cmds'
19583 # Executable file suffix (normally "").
19584 exeext="$exeext"
19586 # Additional compiler flags for building library objects.
19587 pic_flag=$lt_lt_prog_compiler_pic_RC
19588 pic_mode=$pic_mode
19590 # What is the maximum length of a command?
19591 max_cmd_len=$lt_cv_sys_max_cmd_len
19593 # Does compiler simultaneously support -c and -o options?
19594 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19596 # Must we lock files when doing compilation?
19597 need_locks=$lt_need_locks
19599 # Do we need the lib prefix for modules?
19600 need_lib_prefix=$need_lib_prefix
19602 # Do we need a version for libraries?
19603 need_version=$need_version
19605 # Whether dlopen is supported.
19606 dlopen_support=$enable_dlopen
19608 # Whether dlopen of programs is supported.
19609 dlopen_self=$enable_dlopen_self
19611 # Whether dlopen of statically linked programs is supported.
19612 dlopen_self_static=$enable_dlopen_self_static
19614 # Compiler flag to prevent dynamic linking.
19615 link_static_flag=$lt_lt_prog_compiler_static_RC
19617 # Compiler flag to turn off builtin functions.
19618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19620 # Compiler flag to allow reflexive dlopens.
19621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19623 # Compiler flag to generate shared objects directly from archives.
19624 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19626 # Compiler flag to generate thread-safe objects.
19627 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19629 # Library versioning type.
19630 version_type=$version_type
19632 # Format of library name prefix.
19633 libname_spec=$lt_libname_spec
19635 # List of archive names. First name is the real one, the rest are links.
19636 # The last name is the one that the linker finds with -lNAME.
19637 library_names_spec=$lt_library_names_spec
19639 # The coded name of the library, if different from the real name.
19640 soname_spec=$lt_soname_spec
19642 # Commands used to build and install an old-style archive.
19643 RANLIB=$lt_RANLIB
19644 old_archive_cmds=$lt_old_archive_cmds_RC
19645 old_postinstall_cmds=$lt_old_postinstall_cmds
19646 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19648 # Create an old-style archive from a shared archive.
19649 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19651 # Create a temporary old-style archive to link instead of a shared archive.
19652 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19654 # Commands used to build and install a shared archive.
19655 archive_cmds=$lt_archive_cmds_RC
19656 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19657 postinstall_cmds=$lt_postinstall_cmds
19658 postuninstall_cmds=$lt_postuninstall_cmds
19660 # Commands used to build a loadable module (assumed same as above if empty)
19661 module_cmds=$lt_module_cmds_RC
19662 module_expsym_cmds=$lt_module_expsym_cmds_RC
19664 # Commands to strip libraries.
19665 old_striplib=$lt_old_striplib
19666 striplib=$lt_striplib
19668 # Dependencies to place before the objects being linked to create a
19669 # shared library.
19670 predep_objects=$lt_predep_objects_RC
19672 # Dependencies to place after the objects being linked to create a
19673 # shared library.
19674 postdep_objects=$lt_postdep_objects_RC
19676 # Dependencies to place before the objects being linked to create a
19677 # shared library.
19678 predeps=$lt_predeps_RC
19680 # Dependencies to place after the objects being linked to create a
19681 # shared library.
19682 postdeps=$lt_postdeps_RC
19684 # The directories searched by this compiler when creating a shared
19685 # library
19686 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
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_RC
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_RC
19701 # Flag that forces no undefined symbols.
19702 no_undefined_flag=$lt_no_undefined_flag_RC
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_RC
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_RC
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_RC
19743 # Whether we need a single -rpath flag with a separated argument.
19744 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19746 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19747 # resulting binary.
19748 hardcode_direct=$hardcode_direct_RC
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_RC
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_RC
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_RC
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_RC
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=$lt_fix_srcfile_path
19778 # Set to yes if exported symbols are required.
19779 always_export_symbols=$always_export_symbols_RC
19781 # The commands to list exported symbols.
19782 export_symbols_cmds=$lt_export_symbols_cmds_RC
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_RC
19790 # Symbols that must always be exported.
19791 include_expsyms=$lt_include_expsyms_RC
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"
19820 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19821 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19822 { (exit 1); exit 1; }; }
19824 esac
19826 # Append the new tag name to the list of available tags.
19827 if test -n "$tagname" ; then
19828 available_tags="$available_tags $tagname"
19831 done
19832 IFS="$lt_save_ifs"
19834 # Now substitute the updated list of available tags.
19835 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19836 mv "${ofile}T" "$ofile"
19837 chmod +x "$ofile"
19838 else
19839 rm -f "${ofile}T"
19840 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19841 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19842 { (exit 1); exit 1; }; }
19848 # This can be used to rebuild libtool when needed
19849 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19851 # Always use our own libtool.
19852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19854 # Prevent multiple expansion
19876 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19877 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
19878 # Check whether --enable-nls was given.
19879 if test "${enable_nls+set}" = set; then
19880 enableval=$enable_nls; USE_NLS=$enableval
19881 else
19882 USE_NLS=yes
19885 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
19886 echo "${ECHO_T}$USE_NLS" >&6; }
19891 case "$am__api_version" in
19892 1.01234)
19893 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
19894 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
19895 { (exit 1); exit 1; }; }
19899 esac
19901 if test -n "0.23"; then
19902 { echo "$as_me:$LINENO: checking for intltool >= 0.23" >&5
19903 echo $ECHO_N "checking for intltool >= 0.23... $ECHO_C" >&6; }
19905 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.23 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19906 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
19907 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
19909 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
19910 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
19911 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
19912 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool 0.23 or later." >&5
19913 echo "$as_me: error: Your intltool is too old. You need intltool 0.23 or later." >&2;}
19914 { (exit 1); exit 1; }; }
19917 # Extract the first word of "intltool-update", so it can be a program name with args.
19918 set dummy intltool-update; ac_word=$2
19919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19921 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 else
19924 case $INTLTOOL_UPDATE in
19925 [\\/]* | ?:[\\/]*)
19926 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
19929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19930 for as_dir in $PATH
19932 IFS=$as_save_IFS
19933 test -z "$as_dir" && as_dir=.
19934 for ac_exec_ext in '' $ac_executable_extensions; do
19935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19936 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
19937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19938 break 2
19940 done
19941 done
19942 IFS=$as_save_IFS
19945 esac
19947 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
19948 if test -n "$INTLTOOL_UPDATE"; then
19949 { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
19950 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
19951 else
19952 { echo "$as_me:$LINENO: result: no" >&5
19953 echo "${ECHO_T}no" >&6; }
19957 # Extract the first word of "intltool-merge", so it can be a program name with args.
19958 set dummy intltool-merge; ac_word=$2
19959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19961 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964 case $INTLTOOL_MERGE in
19965 [\\/]* | ?:[\\/]*)
19966 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
19969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19972 IFS=$as_save_IFS
19973 test -z "$as_dir" && as_dir=.
19974 for ac_exec_ext in '' $ac_executable_extensions; do
19975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19976 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
19977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19978 break 2
19980 done
19981 done
19982 IFS=$as_save_IFS
19985 esac
19987 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
19988 if test -n "$INTLTOOL_MERGE"; then
19989 { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
19990 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
19991 else
19992 { echo "$as_me:$LINENO: result: no" >&5
19993 echo "${ECHO_T}no" >&6; }
19997 # Extract the first word of "intltool-extract", so it can be a program name with args.
19998 set dummy intltool-extract; ac_word=$2
19999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20001 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004 case $INTLTOOL_EXTRACT in
20005 [\\/]* | ?:[\\/]*)
20006 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
20009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20010 for as_dir in $PATH
20012 IFS=$as_save_IFS
20013 test -z "$as_dir" && as_dir=.
20014 for ac_exec_ext in '' $ac_executable_extensions; do
20015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20016 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
20017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20018 break 2
20020 done
20021 done
20022 IFS=$as_save_IFS
20025 esac
20027 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
20028 if test -n "$INTLTOOL_EXTRACT"; then
20029 { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
20030 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
20031 else
20032 { echo "$as_me:$LINENO: result: no" >&5
20033 echo "${ECHO_T}no" >&6; }
20037 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
20038 { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
20039 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
20040 { (exit 1); exit 1; }; }
20043 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 $< $@'
20044 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 $< $@'
20045 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 $< $@'
20046 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 $< $@'
20047 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
20048 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 $< $@'
20049 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 $< $@'
20050 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 $< $@'
20051 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 $< $@'
20052 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 $< $@'
20053 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 $< $@'
20054 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
20055 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 $< $@'
20056 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 $< $@'
20057 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 $< $@'
20058 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 $< $@'
20059 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 $< $@'
20060 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 $< $@'
20061 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 $< $@'
20083 # Check the gettext tools to make sure they are GNU
20084 # Extract the first word of "xgettext", so it can be a program name with args.
20085 set dummy xgettext; ac_word=$2
20086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20088 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091 case $XGETTEXT in
20092 [\\/]* | ?:[\\/]*)
20093 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097 for as_dir in $PATH
20099 IFS=$as_save_IFS
20100 test -z "$as_dir" && as_dir=.
20101 for ac_exec_ext in '' $ac_executable_extensions; do
20102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20103 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
20104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20105 break 2
20107 done
20108 done
20109 IFS=$as_save_IFS
20112 esac
20114 XGETTEXT=$ac_cv_path_XGETTEXT
20115 if test -n "$XGETTEXT"; then
20116 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20117 echo "${ECHO_T}$XGETTEXT" >&6; }
20118 else
20119 { echo "$as_me:$LINENO: result: no" >&5
20120 echo "${ECHO_T}no" >&6; }
20124 # Extract the first word of "msgmerge", so it can be a program name with args.
20125 set dummy msgmerge; ac_word=$2
20126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20128 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 else
20131 case $MSGMERGE in
20132 [\\/]* | ?:[\\/]*)
20133 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20137 for as_dir in $PATH
20139 IFS=$as_save_IFS
20140 test -z "$as_dir" && as_dir=.
20141 for ac_exec_ext in '' $ac_executable_extensions; do
20142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20143 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
20144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20145 break 2
20147 done
20148 done
20149 IFS=$as_save_IFS
20152 esac
20154 MSGMERGE=$ac_cv_path_MSGMERGE
20155 if test -n "$MSGMERGE"; then
20156 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20157 echo "${ECHO_T}$MSGMERGE" >&6; }
20158 else
20159 { echo "$as_me:$LINENO: result: no" >&5
20160 echo "${ECHO_T}no" >&6; }
20164 # Extract the first word of "msgfmt", so it can be a program name with args.
20165 set dummy msgfmt; ac_word=$2
20166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20168 if test "${ac_cv_path_MSGFMT+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171 case $MSGFMT in
20172 [\\/]* | ?:[\\/]*)
20173 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20179 IFS=$as_save_IFS
20180 test -z "$as_dir" && as_dir=.
20181 for ac_exec_ext in '' $ac_executable_extensions; do
20182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20183 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
20184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20185 break 2
20187 done
20188 done
20189 IFS=$as_save_IFS
20192 esac
20194 MSGFMT=$ac_cv_path_MSGFMT
20195 if test -n "$MSGFMT"; then
20196 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20197 echo "${ECHO_T}$MSGFMT" >&6; }
20198 else
20199 { echo "$as_me:$LINENO: result: no" >&5
20200 echo "${ECHO_T}no" >&6; }
20204 # Extract the first word of "gmsgfmt", so it can be a program name with args.
20205 set dummy gmsgfmt; ac_word=$2
20206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20208 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211 case $GMSGFMT in
20212 [\\/]* | ?:[\\/]*)
20213 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217 for as_dir in $PATH
20219 IFS=$as_save_IFS
20220 test -z "$as_dir" && as_dir=.
20221 for ac_exec_ext in '' $ac_executable_extensions; do
20222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20223 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20225 break 2
20227 done
20228 done
20229 IFS=$as_save_IFS
20231 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20233 esac
20235 GMSGFMT=$ac_cv_path_GMSGFMT
20236 if test -n "$GMSGFMT"; then
20237 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20238 echo "${ECHO_T}$GMSGFMT" >&6; }
20239 else
20240 { echo "$as_me:$LINENO: result: no" >&5
20241 echo "${ECHO_T}no" >&6; }
20245 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
20246 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20247 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20248 { (exit 1); exit 1; }; }
20250 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
20251 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
20252 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
20253 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
20254 { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
20255 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
20256 { (exit 1); exit 1; }; }
20259 # Extract the first word of "perl", so it can be a program name with args.
20260 set dummy perl; ac_word=$2
20261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20263 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 else
20266 case $INTLTOOL_PERL in
20267 [\\/]* | ?:[\\/]*)
20268 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
20271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20272 for as_dir in $PATH
20274 IFS=$as_save_IFS
20275 test -z "$as_dir" && as_dir=.
20276 for ac_exec_ext in '' $ac_executable_extensions; do
20277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20278 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
20279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20280 break 2
20282 done
20283 done
20284 IFS=$as_save_IFS
20287 esac
20289 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
20290 if test -n "$INTLTOOL_PERL"; then
20291 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
20292 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
20293 else
20294 { echo "$as_me:$LINENO: result: no" >&5
20295 echo "${ECHO_T}no" >&6; }
20299 if test -z "$INTLTOOL_PERL"; then
20300 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
20301 echo "$as_me: error: perl not found; required for intltool" >&2;}
20302 { (exit 1); exit 1; }; }
20304 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
20305 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
20306 echo "$as_me: error: perl 5.x required for intltool" >&2;}
20307 { (exit 1); exit 1; }; }
20309 if test "x" != "xno-xml"; then
20310 { echo "$as_me:$LINENO: checking for XML::Parser" >&5
20311 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
20312 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
20313 { echo "$as_me:$LINENO: result: ok" >&5
20314 echo "${ECHO_T}ok" >&6; }
20315 else
20316 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
20317 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
20318 { (exit 1); exit 1; }; }
20322 # Substitute ALL_LINGUAS so we can use it in po/Makefile
20325 # Set DATADIRNAME correctly if it is not set yet
20326 # (copied from glib-gettext.m4)
20327 if test -z "$DATADIRNAME"; then
20328 cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h. */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20336 main ()
20338 extern int _nl_msg_cat_cntr;
20339 return _nl_msg_cat_cntr
20341 return 0;
20343 _ACEOF
20344 rm -f conftest.$ac_objext conftest$ac_exeext
20345 if { (ac_try="$ac_link"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_link") 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && {
20358 test -z "$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20360 } && test -s conftest$ac_exeext &&
20361 $as_test_x conftest$ac_exeext; then
20362 DATADIRNAME=share
20363 else
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 case $host in
20368 *-*-solaris*)
20369 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
20370 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
20371 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h. */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20380 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
20381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20382 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
20384 /* System header to define __stub macros and hopefully few prototypes,
20385 which can conflict with char bind_textdomain_codeset (); below.
20386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20387 <limits.h> exists even on freestanding compilers. */
20389 #ifdef __STDC__
20390 # include <limits.h>
20391 #else
20392 # include <assert.h>
20393 #endif
20395 #undef bind_textdomain_codeset
20397 /* Override any GCC internal prototype to avoid an error.
20398 Use char because int might match the return type of a GCC
20399 builtin and then its argument prototype would still apply. */
20400 #ifdef __cplusplus
20401 extern "C"
20402 #endif
20403 char bind_textdomain_codeset ();
20404 /* The GNU C library defines this for functions which it implements
20405 to always fail with ENOSYS. Some functions are actually named
20406 something starting with __ and the normal name is an alias. */
20407 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
20408 choke me
20409 #endif
20412 main ()
20414 return bind_textdomain_codeset ();
20416 return 0;
20418 _ACEOF
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>conftest.er1
20427 ac_status=$?
20428 grep -v '^ *+' conftest.er1 >conftest.err
20429 rm -f conftest.er1
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } && {
20433 test -z "$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 } && test -s conftest$ac_exeext &&
20436 $as_test_x conftest$ac_exeext; then
20437 ac_cv_func_bind_textdomain_codeset=yes
20438 else
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_cv_func_bind_textdomain_codeset=no
20445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20446 conftest$ac_exeext conftest.$ac_ext
20448 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
20449 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
20450 if test $ac_cv_func_bind_textdomain_codeset = yes; then
20451 DATADIRNAME=share
20452 else
20453 DATADIRNAME=lib
20458 DATADIRNAME=lib
20460 esac
20463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20464 conftest$ac_exeext conftest.$ac_ext
20471 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20473 if test "${ac_cv_header_stdc+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476 cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h. */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 #include <stdlib.h>
20483 #include <stdarg.h>
20484 #include <string.h>
20485 #include <float.h>
20488 main ()
20492 return 0;
20494 _ACEOF
20495 rm -f conftest.$ac_objext
20496 if { (ac_try="$ac_compile"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20500 esac
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_compile") 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } && {
20509 test -z "$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20511 } && test -s conftest.$ac_objext; then
20512 ac_cv_header_stdc=yes
20513 else
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_cv_header_stdc=no
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522 if test $ac_cv_header_stdc = yes; then
20523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20524 cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h. */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 #include <string.h>
20532 _ACEOF
20533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20534 $EGREP "memchr" >/dev/null 2>&1; then
20536 else
20537 ac_cv_header_stdc=no
20539 rm -f conftest*
20543 if test $ac_cv_header_stdc = yes; then
20544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20545 cat >conftest.$ac_ext <<_ACEOF
20546 /* confdefs.h. */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 #include <stdlib.h>
20553 _ACEOF
20554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20555 $EGREP "free" >/dev/null 2>&1; then
20557 else
20558 ac_cv_header_stdc=no
20560 rm -f conftest*
20564 if test $ac_cv_header_stdc = yes; then
20565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20566 if test "$cross_compiling" = yes; then
20568 else
20569 cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h. */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 #include <ctype.h>
20576 #include <stdlib.h>
20577 #if ((' ' & 0x0FF) == 0x020)
20578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20580 #else
20581 # define ISLOWER(c) \
20582 (('a' <= (c) && (c) <= 'i') \
20583 || ('j' <= (c) && (c) <= 'r') \
20584 || ('s' <= (c) && (c) <= 'z'))
20585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20586 #endif
20588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20590 main ()
20592 int i;
20593 for (i = 0; i < 256; i++)
20594 if (XOR (islower (i), ISLOWER (i))
20595 || toupper (i) != TOUPPER (i))
20596 return 2;
20597 return 0;
20599 _ACEOF
20600 rm -f conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>&5
20608 ac_status=$?
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20611 { (case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_try") 2>&5
20617 ac_status=$?
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); }; }; then
20621 else
20622 echo "$as_me: program exited with status $ac_status" >&5
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 ( exit $ac_status )
20627 ac_cv_header_stdc=no
20629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20635 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20636 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20637 if test $ac_cv_header_stdc = yes; then
20639 cat >>confdefs.h <<\_ACEOF
20640 #define STDC_HEADERS 1
20641 _ACEOF
20646 # Option to enable debugging
20647 # Check whether --enable-debug was given.
20648 if test "${enable_debug+set}" = set; then
20649 enableval=$enable_debug; with_debug=yes
20650 else
20651 with_debug=no
20655 if test "x$with_debug" == "xyes" ; then
20656 CFLAGS="$CFLAGS -ggdb -O0 -DDEBUG -Wall -ansi -pedantic"
20657 else
20658 # CFLAGS="$CFLAGS -O2 -Wall -ansi -pedantic"
20659 CFLAGS="$CFLAGS -O2 -Wall -ansi"
20662 # Hildon library dependencies
20665 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20666 if test -n "$ac_tool_prefix"; then
20667 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20668 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20671 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 case $PKG_CONFIG in
20675 [\\/]* | ?:[\\/]*)
20676 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20680 for as_dir in $PATH
20682 IFS=$as_save_IFS
20683 test -z "$as_dir" && as_dir=.
20684 for ac_exec_ext in '' $ac_executable_extensions; do
20685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20686 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20688 break 2
20690 done
20691 done
20692 IFS=$as_save_IFS
20695 esac
20697 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20698 if test -n "$PKG_CONFIG"; then
20699 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20700 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20701 else
20702 { echo "$as_me:$LINENO: result: no" >&5
20703 echo "${ECHO_T}no" >&6; }
20708 if test -z "$ac_cv_path_PKG_CONFIG"; then
20709 ac_pt_PKG_CONFIG=$PKG_CONFIG
20710 # Extract the first word of "pkg-config", so it can be a program name with args.
20711 set dummy pkg-config; ac_word=$2
20712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20714 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20716 else
20717 case $ac_pt_PKG_CONFIG in
20718 [\\/]* | ?:[\\/]*)
20719 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20723 for as_dir in $PATH
20725 IFS=$as_save_IFS
20726 test -z "$as_dir" && as_dir=.
20727 for ac_exec_ext in '' $ac_executable_extensions; do
20728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20729 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20731 break 2
20733 done
20734 done
20735 IFS=$as_save_IFS
20738 esac
20740 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20741 if test -n "$ac_pt_PKG_CONFIG"; then
20742 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20743 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20744 else
20745 { echo "$as_me:$LINENO: result: no" >&5
20746 echo "${ECHO_T}no" >&6; }
20749 if test "x$ac_pt_PKG_CONFIG" = x; then
20750 PKG_CONFIG=""
20751 else
20752 case $cross_compiling:$ac_tool_warned in
20753 yes:)
20754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20755 whose name does not start with the host triplet. If you think this
20756 configuration is useful to you, please write to autoconf@gnu.org." >&5
20757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20758 whose name does not start with the host triplet. If you think this
20759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20760 ac_tool_warned=yes ;;
20761 esac
20762 PKG_CONFIG=$ac_pt_PKG_CONFIG
20764 else
20765 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20769 if test -n "$PKG_CONFIG"; then
20770 _pkg_min_version=0.9.0
20771 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20772 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20773 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20774 { echo "$as_me:$LINENO: result: yes" >&5
20775 echo "${ECHO_T}yes" >&6; }
20776 else
20777 { echo "$as_me:$LINENO: result: no" >&5
20778 echo "${ECHO_T}no" >&6; }
20779 PKG_CONFIG=""
20784 pkg_failed=no
20785 { echo "$as_me:$LINENO: checking for HILDON" >&5
20786 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
20788 if test -n "$PKG_CONFIG"; then
20789 if test -n "$HILDON_CFLAGS"; then
20790 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
20791 else
20792 if test -n "$PKG_CONFIG" && \
20793 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9 hildon-fm-2 wpeditor\"") >&5
20794 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor") 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; then
20798 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor" 2>/dev/null`
20799 else
20800 pkg_failed=yes
20803 else
20804 pkg_failed=untried
20806 if test -n "$PKG_CONFIG"; then
20807 if test -n "$HILDON_LIBS"; then
20808 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
20809 else
20810 if test -n "$PKG_CONFIG" && \
20811 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 0.9.9 hildon-fm-2 wpeditor\"") >&5
20812 ($PKG_CONFIG --exists --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor") 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; then
20816 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor" 2>/dev/null`
20817 else
20818 pkg_failed=yes
20821 else
20822 pkg_failed=untried
20827 if test $pkg_failed = yes; then
20829 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20830 _pkg_short_errors_supported=yes
20831 else
20832 _pkg_short_errors_supported=no
20834 if test $_pkg_short_errors_supported = yes; then
20835 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor"`
20836 else
20837 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 0.9.9 hildon-fm-2 wpeditor"`
20839 # Put the nasty error message in config.log where it belongs
20840 echo "$HILDON_PKG_ERRORS" >&5
20842 { { echo "$as_me:$LINENO: error: Package requirements (hildon-1 >= 0.9.9 hildon-fm-2 wpeditor) were not met:
20844 $HILDON_PKG_ERRORS
20846 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20847 installed software in a non-standard prefix.
20849 Alternatively, you may set the environment variables HILDON_CFLAGS
20850 and HILDON_LIBS to avoid the need to call pkg-config.
20851 See the pkg-config man page for more details.
20852 " >&5
20853 echo "$as_me: error: Package requirements (hildon-1 >= 0.9.9 hildon-fm-2 wpeditor) were not met:
20855 $HILDON_PKG_ERRORS
20857 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20858 installed software in a non-standard prefix.
20860 Alternatively, you may set the environment variables HILDON_CFLAGS
20861 and HILDON_LIBS to avoid the need to call pkg-config.
20862 See the pkg-config man page for more details.
20863 " >&2;}
20864 { (exit 1); exit 1; }; }
20865 elif test $pkg_failed = untried; then
20866 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20867 is in your PATH or set the PKG_CONFIG environment variable to the full
20868 path to pkg-config.
20870 Alternatively, you may set the environment variables HILDON_CFLAGS
20871 and HILDON_LIBS to avoid the need to call pkg-config.
20872 See the pkg-config man page for more details.
20874 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20875 See \`config.log' for more details." >&5
20876 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20877 is in your PATH or set the PKG_CONFIG environment variable to the full
20878 path to pkg-config.
20880 Alternatively, you may set the environment variables HILDON_CFLAGS
20881 and HILDON_LIBS to avoid the need to call pkg-config.
20882 See the pkg-config man page for more details.
20884 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20885 See \`config.log' for more details." >&2;}
20886 { (exit 1); exit 1; }; }
20887 else
20888 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
20889 HILDON_LIBS=$pkg_cv_HILDON_LIBS
20890 { echo "$as_me:$LINENO: result: yes" >&5
20891 echo "${ECHO_T}yes" >&6; }
20897 # Only used for the .service file path
20899 pkg_failed=no
20900 { echo "$as_me:$LINENO: checking for DBUS" >&5
20901 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
20903 if test -n "$PKG_CONFIG"; then
20904 if test -n "$DBUS_CFLAGS"; then
20905 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
20906 else
20907 if test -n "$PKG_CONFIG" && \
20908 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.23.4\"") >&5
20909 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.23.4") 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; then
20913 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.23.4" 2>/dev/null`
20914 else
20915 pkg_failed=yes
20918 else
20919 pkg_failed=untried
20921 if test -n "$PKG_CONFIG"; then
20922 if test -n "$DBUS_LIBS"; then
20923 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
20924 else
20925 if test -n "$PKG_CONFIG" && \
20926 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.23.4\"") >&5
20927 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.23.4") 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; then
20931 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.23.4" 2>/dev/null`
20932 else
20933 pkg_failed=yes
20936 else
20937 pkg_failed=untried
20942 if test $pkg_failed = yes; then
20944 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20945 _pkg_short_errors_supported=yes
20946 else
20947 _pkg_short_errors_supported=no
20949 if test $_pkg_short_errors_supported = yes; then
20950 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 >= 0.23.4"`
20951 else
20952 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= 0.23.4"`
20954 # Put the nasty error message in config.log where it belongs
20955 echo "$DBUS_PKG_ERRORS" >&5
20957 { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 >= 0.23.4) were not met:
20959 $DBUS_PKG_ERRORS
20961 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20962 installed software in a non-standard prefix.
20964 Alternatively, you may set the environment variables DBUS_CFLAGS
20965 and DBUS_LIBS to avoid the need to call pkg-config.
20966 See the pkg-config man page for more details.
20967 " >&5
20968 echo "$as_me: error: Package requirements (dbus-glib-1 >= 0.23.4) were not met:
20970 $DBUS_PKG_ERRORS
20972 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20973 installed software in a non-standard prefix.
20975 Alternatively, you may set the environment variables DBUS_CFLAGS
20976 and DBUS_LIBS to avoid the need to call pkg-config.
20977 See the pkg-config man page for more details.
20978 " >&2;}
20979 { (exit 1); exit 1; }; }
20980 elif test $pkg_failed = untried; then
20981 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20982 is in your PATH or set the PKG_CONFIG environment variable to the full
20983 path to pkg-config.
20985 Alternatively, you may set the environment variables DBUS_CFLAGS
20986 and DBUS_LIBS to avoid the need to call pkg-config.
20987 See the pkg-config man page for more details.
20989 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20990 See \`config.log' for more details." >&5
20991 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20992 is in your PATH or set the PKG_CONFIG environment variable to the full
20993 path to pkg-config.
20995 Alternatively, you may set the environment variables DBUS_CFLAGS
20996 and DBUS_LIBS to avoid the need to call pkg-config.
20997 See the pkg-config man page for more details.
20999 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21000 See \`config.log' for more details." >&2;}
21001 { (exit 1); exit 1; }; }
21002 else
21003 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
21004 DBUS_LIBS=$pkg_cv_DBUS_LIBS
21005 { echo "$as_me:$LINENO: result: yes" >&5
21006 echo "${ECHO_T}yes" >&6; }
21010 # OSSO application framework dependencies
21012 pkg_failed=no
21013 { echo "$as_me:$LINENO: checking for OSSO" >&5
21014 echo $ECHO_N "checking for OSSO... $ECHO_C" >&6; }
21016 if test -n "$PKG_CONFIG"; then
21017 if test -n "$OSSO_CFLAGS"; then
21018 pkg_cv_OSSO_CFLAGS="$OSSO_CFLAGS"
21019 else
21020 if test -n "$PKG_CONFIG" && \
21021 { (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
21022 ($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
21023 ac_status=$?
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; then
21026 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`
21027 else
21028 pkg_failed=yes
21031 else
21032 pkg_failed=untried
21034 if test -n "$PKG_CONFIG"; then
21035 if test -n "$OSSO_LIBS"; then
21036 pkg_cv_OSSO_LIBS="$OSSO_LIBS"
21037 else
21038 if test -n "$PKG_CONFIG" && \
21039 { (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
21040 ($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
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; then
21044 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`
21045 else
21046 pkg_failed=yes
21049 else
21050 pkg_failed=untried
21055 if test $pkg_failed = yes; then
21057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21058 _pkg_short_errors_supported=yes
21059 else
21060 _pkg_short_errors_supported=no
21062 if test $_pkg_short_errors_supported = yes; then
21063 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"`
21064 else
21065 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"`
21067 # Put the nasty error message in config.log where it belongs
21068 echo "$OSSO_PKG_ERRORS" >&5
21070 { { 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:
21072 $OSSO_PKG_ERRORS
21074 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21075 installed software in a non-standard prefix.
21077 Alternatively, you may set the environment variables OSSO_CFLAGS
21078 and OSSO_LIBS to avoid the need to call pkg-config.
21079 See the pkg-config man page for more details.
21080 " >&5
21081 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:
21083 $OSSO_PKG_ERRORS
21085 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21086 installed software in a non-standard prefix.
21088 Alternatively, you may set the environment variables OSSO_CFLAGS
21089 and OSSO_LIBS to avoid the need to call pkg-config.
21090 See the pkg-config man page for more details.
21091 " >&2;}
21092 { (exit 1); exit 1; }; }
21093 elif test $pkg_failed = untried; then
21094 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21095 is in your PATH or set the PKG_CONFIG environment variable to the full
21096 path to pkg-config.
21098 Alternatively, you may set the environment variables OSSO_CFLAGS
21099 and OSSO_LIBS to avoid the need to call pkg-config.
21100 See the pkg-config man page for more details.
21102 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21103 See \`config.log' for more details." >&5
21104 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21105 is in your PATH or set the PKG_CONFIG environment variable to the full
21106 path to pkg-config.
21108 Alternatively, you may set the environment variables OSSO_CFLAGS
21109 and OSSO_LIBS to avoid the need to call pkg-config.
21110 See the pkg-config man page for more details.
21112 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21113 See \`config.log' for more details." >&2;}
21114 { (exit 1); exit 1; }; }
21115 else
21116 OSSO_CFLAGS=$pkg_cv_OSSO_CFLAGS
21117 OSSO_LIBS=$pkg_cv_OSSO_LIBS
21118 { echo "$as_me:$LINENO: result: yes" >&5
21119 echo "${ECHO_T}yes" >&6; }
21125 # libxml2
21126 #PKG_CHECK_MODULES(XML2, libxml-2.0 >= 2.6.0)
21127 #AC_SUBST(XML2_LIBS)
21128 #AC_SUBST(XML2_CFLAGS)
21130 # sqlite3
21132 pkg_failed=no
21133 { echo "$as_me:$LINENO: checking for SQL3" >&5
21134 echo $ECHO_N "checking for SQL3... $ECHO_C" >&6; }
21136 if test -n "$PKG_CONFIG"; then
21137 if test -n "$SQL3_CFLAGS"; then
21138 pkg_cv_SQL3_CFLAGS="$SQL3_CFLAGS"
21139 else
21140 if test -n "$PKG_CONFIG" && \
21141 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.0\"") >&5
21142 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.0") 2>&5
21143 ac_status=$?
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; then
21146 pkg_cv_SQL3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.0" 2>/dev/null`
21147 else
21148 pkg_failed=yes
21151 else
21152 pkg_failed=untried
21154 if test -n "$PKG_CONFIG"; then
21155 if test -n "$SQL3_LIBS"; then
21156 pkg_cv_SQL3_LIBS="$SQL3_LIBS"
21157 else
21158 if test -n "$PKG_CONFIG" && \
21159 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.0\"") >&5
21160 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.0") 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; then
21164 pkg_cv_SQL3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.0" 2>/dev/null`
21165 else
21166 pkg_failed=yes
21169 else
21170 pkg_failed=untried
21175 if test $pkg_failed = yes; then
21177 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21178 _pkg_short_errors_supported=yes
21179 else
21180 _pkg_short_errors_supported=no
21182 if test $_pkg_short_errors_supported = yes; then
21183 SQL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.0"`
21184 else
21185 SQL3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.0"`
21187 # Put the nasty error message in config.log where it belongs
21188 echo "$SQL3_PKG_ERRORS" >&5
21190 { { echo "$as_me:$LINENO: error: Package requirements (sqlite3 >= 3.0) were not met:
21192 $SQL3_PKG_ERRORS
21194 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21195 installed software in a non-standard prefix.
21197 Alternatively, you may set the environment variables SQL3_CFLAGS
21198 and SQL3_LIBS to avoid the need to call pkg-config.
21199 See the pkg-config man page for more details.
21200 " >&5
21201 echo "$as_me: error: Package requirements (sqlite3 >= 3.0) were not met:
21203 $SQL3_PKG_ERRORS
21205 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21206 installed software in a non-standard prefix.
21208 Alternatively, you may set the environment variables SQL3_CFLAGS
21209 and SQL3_LIBS to avoid the need to call pkg-config.
21210 See the pkg-config man page for more details.
21211 " >&2;}
21212 { (exit 1); exit 1; }; }
21213 elif test $pkg_failed = untried; then
21214 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21215 is in your PATH or set the PKG_CONFIG environment variable to the full
21216 path to pkg-config.
21218 Alternatively, you may set the environment variables SQL3_CFLAGS
21219 and SQL3_LIBS to avoid the need to call pkg-config.
21220 See the pkg-config man page for more details.
21222 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21223 See \`config.log' for more details." >&5
21224 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21225 is in your PATH or set the PKG_CONFIG environment variable to the full
21226 path to pkg-config.
21228 Alternatively, you may set the environment variables SQL3_CFLAGS
21229 and SQL3_LIBS to avoid the need to call pkg-config.
21230 See the pkg-config man page for more details.
21232 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21233 See \`config.log' for more details." >&2;}
21234 { (exit 1); exit 1; }; }
21235 else
21236 SQL3_CFLAGS=$pkg_cv_SQL3_CFLAGS
21237 SQL3_LIBS=$pkg_cv_SQL3_LIBS
21238 { echo "$as_me:$LINENO: result: yes" >&5
21239 echo "${ECHO_T}yes" >&6; }
21245 # Localisation
21246 GETTEXT_PACKAGE=$PACKAGE
21249 cat >>confdefs.h <<_ACEOF
21250 #define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
21251 _ACEOF
21253 ALL_LINGUAS="en_GB fi_FI de_DE"
21256 for ac_header in locale.h
21258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21265 ac_res=`eval echo '${'$as_ac_Header'}'`
21266 { echo "$as_me:$LINENO: result: $ac_res" >&5
21267 echo "${ECHO_T}$ac_res" >&6; }
21268 else
21269 # Is the header compilable?
21270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h. */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 $ac_includes_default
21279 #include <$ac_header>
21280 _ACEOF
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } && {
21295 test -z "$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 } && test -s conftest.$ac_objext; then
21298 ac_header_compiler=yes
21299 else
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ac_header_compiler=no
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21308 echo "${ECHO_T}$ac_header_compiler" >&6; }
21310 # Is the header present?
21311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21313 cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h. */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 #include <$ac_header>
21320 _ACEOF
21321 if { (ac_try="$ac_cpp conftest.$ac_ext"
21322 case "(($ac_try" in
21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21325 esac
21326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21328 ac_status=$?
21329 grep -v '^ *+' conftest.er1 >conftest.err
21330 rm -f conftest.er1
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } >/dev/null && {
21334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21335 test ! -s conftest.err
21336 }; then
21337 ac_header_preproc=yes
21338 else
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21342 ac_header_preproc=no
21345 rm -f conftest.err conftest.$ac_ext
21346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21347 echo "${ECHO_T}$ac_header_preproc" >&6; }
21349 # So? What about this header?
21350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21351 yes:no: )
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21356 ac_header_preproc=yes
21358 no:yes:* )
21359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21373 esac
21374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379 eval "$as_ac_Header=\$ac_header_preproc"
21381 ac_res=`eval echo '${'$as_ac_Header'}'`
21382 { echo "$as_me:$LINENO: result: $ac_res" >&5
21383 echo "${ECHO_T}$ac_res" >&6; }
21386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21387 cat >>confdefs.h <<_ACEOF
21388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21389 _ACEOF
21393 done
21395 if test $ac_cv_header_locale_h = yes; then
21396 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
21397 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
21398 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21400 else
21401 cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h. */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 #include <locale.h>
21409 main ()
21411 return LC_MESSAGES
21413 return 0;
21415 _ACEOF
21416 rm -f conftest.$ac_objext conftest$ac_exeext
21417 if { (ac_try="$ac_link"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_link") 2>conftest.er1
21424 ac_status=$?
21425 grep -v '^ *+' conftest.er1 >conftest.err
21426 rm -f conftest.er1
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && {
21430 test -z "$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21432 } && test -s conftest$ac_exeext &&
21433 $as_test_x conftest$ac_exeext; then
21434 am_cv_val_LC_MESSAGES=yes
21435 else
21436 echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21439 am_cv_val_LC_MESSAGES=no
21442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21443 conftest$ac_exeext conftest.$ac_ext
21445 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
21446 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
21447 if test $am_cv_val_LC_MESSAGES = yes; then
21449 cat >>confdefs.h <<\_ACEOF
21450 #define HAVE_LC_MESSAGES 1
21451 _ACEOF
21455 USE_NLS=yes
21458 gt_cv_have_gettext=no
21460 CATOBJEXT=NONE
21461 XGETTEXT=:
21462 INTLLIBS=
21464 if test "${ac_cv_header_libintl_h+set}" = set; then
21465 { echo "$as_me:$LINENO: checking for libintl.h" >&5
21466 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
21467 if test "${ac_cv_header_libintl_h+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21471 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
21472 else
21473 # Is the header compilable?
21474 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
21475 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21483 #include <libintl.h>
21484 _ACEOF
21485 rm -f conftest.$ac_objext
21486 if { (ac_try="$ac_compile"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_compile") 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 ac_header_compiler=yes
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_header_compiler=no
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21512 echo "${ECHO_T}$ac_header_compiler" >&6; }
21514 # Is the header present?
21515 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
21516 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
21517 cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h. */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 #include <libintl.h>
21524 _ACEOF
21525 if { (ac_try="$ac_cpp conftest.$ac_ext"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } >/dev/null && {
21538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 }; then
21541 ac_header_preproc=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_header_preproc=no
21549 rm -f conftest.err conftest.$ac_ext
21550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21551 echo "${ECHO_T}$ac_header_preproc" >&6; }
21553 # So? What about this header?
21554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21555 yes:no: )
21556 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21557 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21559 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21560 ac_header_preproc=yes
21562 no:yes:* )
21563 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21564 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21566 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21568 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21570 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21572 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21573 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21574 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21577 esac
21578 { echo "$as_me:$LINENO: checking for libintl.h" >&5
21579 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
21580 if test "${ac_cv_header_libintl_h+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583 ac_cv_header_libintl_h=$ac_header_preproc
21585 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21586 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
21589 if test $ac_cv_header_libintl_h = yes; then
21590 gt_cv_func_dgettext_libintl="no"
21591 libintl_extra_libs=""
21594 # First check in libc
21596 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
21597 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
21598 if test "${gt_cv_func_ngettext_libc+set}" = set; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 else
21601 cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h. */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21608 #include <libintl.h>
21611 main ()
21613 return !ngettext ("","", 1)
21615 return 0;
21617 _ACEOF
21618 rm -f conftest.$ac_objext conftest$ac_exeext
21619 if { (ac_try="$ac_link"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21623 esac
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_link") 2>conftest.er1
21626 ac_status=$?
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } && {
21632 test -z "$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21634 } && test -s conftest$ac_exeext &&
21635 $as_test_x conftest$ac_exeext; then
21636 gt_cv_func_ngettext_libc=yes
21637 else
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 gt_cv_func_ngettext_libc=no
21644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21645 conftest$ac_exeext conftest.$ac_ext
21648 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
21649 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
21651 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21652 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
21653 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
21654 if test "${gt_cv_func_dgettext_libc+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 else
21657 cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h. */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21664 #include <libintl.h>
21667 main ()
21669 return !dgettext ("","")
21671 return 0;
21673 _ACEOF
21674 rm -f conftest.$ac_objext conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_link") 2>conftest.er1
21682 ac_status=$?
21683 grep -v '^ *+' conftest.er1 >conftest.err
21684 rm -f conftest.er1
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest$ac_exeext &&
21691 $as_test_x conftest$ac_exeext; then
21692 gt_cv_func_dgettext_libc=yes
21693 else
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 gt_cv_func_dgettext_libc=no
21700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21701 conftest$ac_exeext conftest.$ac_ext
21704 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
21705 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
21708 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
21710 for ac_func in bind_textdomain_codeset
21712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 else
21718 cat >conftest.$ac_ext <<_ACEOF
21719 /* confdefs.h. */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21726 #define $ac_func innocuous_$ac_func
21728 /* System header to define __stub macros and hopefully few prototypes,
21729 which can conflict with char $ac_func (); below.
21730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21731 <limits.h> exists even on freestanding compilers. */
21733 #ifdef __STDC__
21734 # include <limits.h>
21735 #else
21736 # include <assert.h>
21737 #endif
21739 #undef $ac_func
21741 /* Override any GCC internal prototype to avoid an error.
21742 Use char because int might match the return type of a GCC
21743 builtin and then its argument prototype would still apply. */
21744 #ifdef __cplusplus
21745 extern "C"
21746 #endif
21747 char $ac_func ();
21748 /* The GNU C library defines this for functions which it implements
21749 to always fail with ENOSYS. Some functions are actually named
21750 something starting with __ and the normal name is an alias. */
21751 #if defined __stub_$ac_func || defined __stub___$ac_func
21752 choke me
21753 #endif
21756 main ()
21758 return $ac_func ();
21760 return 0;
21762 _ACEOF
21763 rm -f conftest.$ac_objext conftest$ac_exeext
21764 if { (ac_try="$ac_link"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21768 esac
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770 (eval "$ac_link") 2>conftest.er1
21771 ac_status=$?
21772 grep -v '^ *+' conftest.er1 >conftest.err
21773 rm -f conftest.er1
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } && {
21777 test -z "$ac_c_werror_flag" ||
21778 test ! -s conftest.err
21779 } && test -s conftest$ac_exeext &&
21780 $as_test_x conftest$ac_exeext; then
21781 eval "$as_ac_var=yes"
21782 else
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21786 eval "$as_ac_var=no"
21789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21790 conftest$ac_exeext conftest.$ac_ext
21792 ac_res=`eval echo '${'$as_ac_var'}'`
21793 { echo "$as_me:$LINENO: result: $ac_res" >&5
21794 echo "${ECHO_T}$ac_res" >&6; }
21795 if test `eval echo '${'$as_ac_var'}'` = yes; then
21796 cat >>confdefs.h <<_ACEOF
21797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21798 _ACEOF
21801 done
21806 # If we don't have everything we want, check in libintl
21808 if test "$gt_cv_func_dgettext_libc" != "yes" \
21809 || test "$gt_cv_func_ngettext_libc" != "yes" \
21810 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
21812 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
21813 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
21814 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
21815 echo $ECHO_N "(cached) $ECHO_C" >&6
21816 else
21817 ac_check_lib_save_LIBS=$LIBS
21818 LIBS="-lintl $LIBS"
21819 cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h. */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21826 /* Override any GCC internal prototype to avoid an error.
21827 Use char because int might match the return type of a GCC
21828 builtin and then its argument prototype would still apply. */
21829 #ifdef __cplusplus
21830 extern "C"
21831 #endif
21832 char bindtextdomain ();
21834 main ()
21836 return bindtextdomain ();
21838 return 0;
21840 _ACEOF
21841 rm -f conftest.$ac_objext conftest$ac_exeext
21842 if { (ac_try="$ac_link"
21843 case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21846 esac
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848 (eval "$ac_link") 2>conftest.er1
21849 ac_status=$?
21850 grep -v '^ *+' conftest.er1 >conftest.err
21851 rm -f conftest.er1
21852 cat conftest.err >&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } && {
21855 test -z "$ac_c_werror_flag" ||
21856 test ! -s conftest.err
21857 } && test -s conftest$ac_exeext &&
21858 $as_test_x conftest$ac_exeext; then
21859 ac_cv_lib_intl_bindtextdomain=yes
21860 else
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_cv_lib_intl_bindtextdomain=no
21867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21871 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
21872 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
21873 if test $ac_cv_lib_intl_bindtextdomain = yes; then
21874 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
21875 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
21876 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879 ac_check_lib_save_LIBS=$LIBS
21880 LIBS="-lintl $LIBS"
21881 cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h. */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21888 /* Override any GCC internal prototype to avoid an error.
21889 Use char because int might match the return type of a GCC
21890 builtin and then its argument prototype would still apply. */
21891 #ifdef __cplusplus
21892 extern "C"
21893 #endif
21894 char ngettext ();
21896 main ()
21898 return ngettext ();
21900 return 0;
21902 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908 esac
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_link") 2>conftest.er1
21911 ac_status=$?
21912 grep -v '^ *+' conftest.er1 >conftest.err
21913 rm -f conftest.er1
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest$ac_exeext &&
21920 $as_test_x conftest$ac_exeext; then
21921 ac_cv_lib_intl_ngettext=yes
21922 else
21923 echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21926 ac_cv_lib_intl_ngettext=no
21929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21930 conftest$ac_exeext conftest.$ac_ext
21931 LIBS=$ac_check_lib_save_LIBS
21933 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
21934 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
21935 if test $ac_cv_lib_intl_ngettext = yes; then
21936 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21937 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21938 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941 ac_check_lib_save_LIBS=$LIBS
21942 LIBS="-lintl $LIBS"
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h. */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21950 /* Override any GCC internal prototype to avoid an error.
21951 Use char because int might match the return type of a GCC
21952 builtin and then its argument prototype would still apply. */
21953 #ifdef __cplusplus
21954 extern "C"
21955 #endif
21956 char dgettext ();
21958 main ()
21960 return dgettext ();
21962 return 0;
21964 _ACEOF
21965 rm -f conftest.$ac_objext conftest$ac_exeext
21966 if { (ac_try="$ac_link"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21970 esac
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_link") 2>conftest.er1
21973 ac_status=$?
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && {
21979 test -z "$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 } && test -s conftest$ac_exeext &&
21982 $as_test_x conftest$ac_exeext; then
21983 ac_cv_lib_intl_dgettext=yes
21984 else
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 ac_cv_lib_intl_dgettext=no
21991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21992 conftest$ac_exeext conftest.$ac_ext
21993 LIBS=$ac_check_lib_save_LIBS
21995 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21996 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21997 if test $ac_cv_lib_intl_dgettext = yes; then
21998 gt_cv_func_dgettext_libintl=yes
22006 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
22007 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
22008 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
22009 { echo "$as_me:$LINENO: result: " >&5
22010 echo "${ECHO_T}" >&6; }
22011 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
22012 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
22013 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
22014 echo $ECHO_N "(cached) $ECHO_C" >&6
22015 else
22016 ac_check_lib_save_LIBS=$LIBS
22017 LIBS="-lintl -liconv $LIBS"
22018 cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h. */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22025 /* Override any GCC internal prototype to avoid an error.
22026 Use char because int might match the return type of a GCC
22027 builtin and then its argument prototype would still apply. */
22028 #ifdef __cplusplus
22029 extern "C"
22030 #endif
22031 char ngettext ();
22033 main ()
22035 return ngettext ();
22037 return 0;
22039 _ACEOF
22040 rm -f conftest.$ac_objext conftest$ac_exeext
22041 if { (ac_try="$ac_link"
22042 case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045 esac
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_link") 2>conftest.er1
22048 ac_status=$?
22049 grep -v '^ *+' conftest.er1 >conftest.err
22050 rm -f conftest.er1
22051 cat conftest.err >&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } && {
22054 test -z "$ac_c_werror_flag" ||
22055 test ! -s conftest.err
22056 } && test -s conftest$ac_exeext &&
22057 $as_test_x conftest$ac_exeext; then
22058 ac_cv_lib_intl_ngettext=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_cv_lib_intl_ngettext=no
22066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22067 conftest$ac_exeext conftest.$ac_ext
22068 LIBS=$ac_check_lib_save_LIBS
22070 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
22071 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
22072 if test $ac_cv_lib_intl_ngettext = yes; then
22073 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
22074 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
22075 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078 ac_check_lib_save_LIBS=$LIBS
22079 LIBS="-lintl -liconv $LIBS"
22080 cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h. */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22087 /* Override any GCC internal prototype to avoid an error.
22088 Use char because int might match the return type of a GCC
22089 builtin and then its argument prototype would still apply. */
22090 #ifdef __cplusplus
22091 extern "C"
22092 #endif
22093 char dcgettext ();
22095 main ()
22097 return dcgettext ();
22099 return 0;
22101 _ACEOF
22102 rm -f conftest.$ac_objext conftest$ac_exeext
22103 if { (ac_try="$ac_link"
22104 case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22107 esac
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_link") 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } && {
22116 test -z "$ac_c_werror_flag" ||
22117 test ! -s conftest.err
22118 } && test -s conftest$ac_exeext &&
22119 $as_test_x conftest$ac_exeext; then
22120 ac_cv_lib_intl_dcgettext=yes
22121 else
22122 echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22125 ac_cv_lib_intl_dcgettext=no
22128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22129 conftest$ac_exeext conftest.$ac_ext
22130 LIBS=$ac_check_lib_save_LIBS
22132 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
22133 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
22134 if test $ac_cv_lib_intl_dcgettext = yes; then
22135 gt_cv_func_dgettext_libintl=yes
22136 libintl_extra_libs=-liconv
22137 else
22141 else
22148 # If we found libintl, then check in it for bind_textdomain_codeset();
22149 # we'll prefer libc if neither have bind_textdomain_codeset(),
22150 # and both have dgettext and ngettext
22152 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
22153 glib_save_LIBS="$LIBS"
22154 LIBS="$LIBS -lintl $libintl_extra_libs"
22155 unset ac_cv_func_bind_textdomain_codeset
22157 for ac_func in bind_textdomain_codeset
22159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 else
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22173 #define $ac_func innocuous_$ac_func
22175 /* System header to define __stub macros and hopefully few prototypes,
22176 which can conflict with char $ac_func (); below.
22177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22178 <limits.h> exists even on freestanding compilers. */
22180 #ifdef __STDC__
22181 # include <limits.h>
22182 #else
22183 # include <assert.h>
22184 #endif
22186 #undef $ac_func
22188 /* Override any GCC internal prototype to avoid an error.
22189 Use char because int might match the return type of a GCC
22190 builtin and then its argument prototype would still apply. */
22191 #ifdef __cplusplus
22192 extern "C"
22193 #endif
22194 char $ac_func ();
22195 /* The GNU C library defines this for functions which it implements
22196 to always fail with ENOSYS. Some functions are actually named
22197 something starting with __ and the normal name is an alias. */
22198 #if defined __stub_$ac_func || defined __stub___$ac_func
22199 choke me
22200 #endif
22203 main ()
22205 return $ac_func ();
22207 return 0;
22209 _ACEOF
22210 rm -f conftest.$ac_objext conftest$ac_exeext
22211 if { (ac_try="$ac_link"
22212 case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215 esac
22216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_link") 2>conftest.er1
22218 ac_status=$?
22219 grep -v '^ *+' conftest.er1 >conftest.err
22220 rm -f conftest.er1
22221 cat conftest.err >&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && {
22224 test -z "$ac_c_werror_flag" ||
22225 test ! -s conftest.err
22226 } && test -s conftest$ac_exeext &&
22227 $as_test_x conftest$ac_exeext; then
22228 eval "$as_ac_var=yes"
22229 else
22230 echo "$as_me: failed program was:" >&5
22231 sed 's/^/| /' conftest.$ac_ext >&5
22233 eval "$as_ac_var=no"
22236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22237 conftest$ac_exeext conftest.$ac_ext
22239 ac_res=`eval echo '${'$as_ac_var'}'`
22240 { echo "$as_me:$LINENO: result: $ac_res" >&5
22241 echo "${ECHO_T}$ac_res" >&6; }
22242 if test `eval echo '${'$as_ac_var'}'` = yes; then
22243 cat >>confdefs.h <<_ACEOF
22244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22245 _ACEOF
22248 done
22250 LIBS="$glib_save_LIBS"
22252 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
22253 gt_cv_func_dgettext_libc=no
22254 else
22255 if test "$gt_cv_func_dgettext_libc" = "yes" \
22256 && test "$gt_cv_func_ngettext_libc" = "yes"; then
22257 gt_cv_func_dgettext_libintl=no
22263 if test "$gt_cv_func_dgettext_libc" = "yes" \
22264 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
22265 gt_cv_have_gettext=yes
22268 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
22269 INTLLIBS="-lintl $libintl_extra_libs"
22272 if test "$gt_cv_have_gettext" = "yes"; then
22274 cat >>confdefs.h <<\_ACEOF
22275 #define HAVE_GETTEXT 1
22276 _ACEOF
22278 # Extract the first word of "msgfmt", so it can be a program name with args.
22279 set dummy msgfmt; ac_word=$2
22280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22282 if test "${ac_cv_path_MSGFMT+set}" = set; then
22283 echo $ECHO_N "(cached) $ECHO_C" >&6
22284 else
22285 case "$MSGFMT" in
22287 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22291 for ac_dir in $PATH; do
22292 test -z "$ac_dir" && ac_dir=.
22293 if test -f $ac_dir/$ac_word; then
22294 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
22295 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22296 break
22299 done
22300 IFS="$ac_save_ifs"
22301 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
22303 esac
22305 MSGFMT="$ac_cv_path_MSGFMT"
22306 if test "$MSGFMT" != "no"; then
22307 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
22308 echo "${ECHO_T}$MSGFMT" >&6; }
22309 else
22310 { echo "$as_me:$LINENO: result: no" >&5
22311 echo "${ECHO_T}no" >&6; }
22313 if test "$MSGFMT" != "no"; then
22314 glib_save_LIBS="$LIBS"
22315 LIBS="$LIBS $INTLLIBS"
22317 for ac_func in dcgettext
22319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 else
22325 cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h. */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22333 #define $ac_func innocuous_$ac_func
22335 /* System header to define __stub macros and hopefully few prototypes,
22336 which can conflict with char $ac_func (); below.
22337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22338 <limits.h> exists even on freestanding compilers. */
22340 #ifdef __STDC__
22341 # include <limits.h>
22342 #else
22343 # include <assert.h>
22344 #endif
22346 #undef $ac_func
22348 /* Override any GCC internal prototype to avoid an error.
22349 Use char because int might match the return type of a GCC
22350 builtin and then its argument prototype would still apply. */
22351 #ifdef __cplusplus
22352 extern "C"
22353 #endif
22354 char $ac_func ();
22355 /* The GNU C library defines this for functions which it implements
22356 to always fail with ENOSYS. Some functions are actually named
22357 something starting with __ and the normal name is an alias. */
22358 #if defined __stub_$ac_func || defined __stub___$ac_func
22359 choke me
22360 #endif
22363 main ()
22365 return $ac_func ();
22367 return 0;
22369 _ACEOF
22370 rm -f conftest.$ac_objext conftest$ac_exeext
22371 if { (ac_try="$ac_link"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_link") 2>conftest.er1
22378 ac_status=$?
22379 grep -v '^ *+' conftest.er1 >conftest.err
22380 rm -f conftest.er1
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } && {
22384 test -z "$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22386 } && test -s conftest$ac_exeext &&
22387 $as_test_x conftest$ac_exeext; then
22388 eval "$as_ac_var=yes"
22389 else
22390 echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22393 eval "$as_ac_var=no"
22396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22397 conftest$ac_exeext conftest.$ac_ext
22399 ac_res=`eval echo '${'$as_ac_var'}'`
22400 { echo "$as_me:$LINENO: result: $ac_res" >&5
22401 echo "${ECHO_T}$ac_res" >&6; }
22402 if test `eval echo '${'$as_ac_var'}'` = yes; then
22403 cat >>confdefs.h <<_ACEOF
22404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22405 _ACEOF
22408 done
22410 MSGFMT_OPTS=
22411 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
22412 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
22413 cat >conftest.foo <<_ACEOF
22415 msgid ""
22416 msgstr ""
22417 "Content-Type: text/plain; charset=UTF-8\n"
22418 "Project-Id-Version: test 1.0\n"
22419 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
22420 "Last-Translator: test <foo@bar.xx>\n"
22421 "Language-Team: C <LL@li.org>\n"
22422 "MIME-Version: 1.0\n"
22423 "Content-Transfer-Encoding: 8bit\n"
22425 _ACEOF
22426 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
22427 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
22428 ac_status=$?
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); }; then
22431 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
22432 echo "${ECHO_T}yes" >&6; }
22433 else { echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6; }
22435 echo "$as_me: failed input was:" >&5
22436 sed 's/^/| /' conftest.foo >&5
22439 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22440 set dummy gmsgfmt; ac_word=$2
22441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22443 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446 case $GMSGFMT in
22447 [\\/]* | ?:[\\/]*)
22448 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22452 for as_dir in $PATH
22454 IFS=$as_save_IFS
22455 test -z "$as_dir" && as_dir=.
22456 for ac_exec_ext in '' $ac_executable_extensions; do
22457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22458 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22460 break 2
22462 done
22463 done
22464 IFS=$as_save_IFS
22466 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22468 esac
22470 GMSGFMT=$ac_cv_path_GMSGFMT
22471 if test -n "$GMSGFMT"; then
22472 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22473 echo "${ECHO_T}$GMSGFMT" >&6; }
22474 else
22475 { echo "$as_me:$LINENO: result: no" >&5
22476 echo "${ECHO_T}no" >&6; }
22480 # Extract the first word of "xgettext", so it can be a program name with args.
22481 set dummy xgettext; ac_word=$2
22482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22484 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22485 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 else
22487 case "$XGETTEXT" in
22489 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22493 for ac_dir in $PATH; do
22494 test -z "$ac_dir" && ac_dir=.
22495 if test -f $ac_dir/$ac_word; then
22496 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22497 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22498 break
22501 done
22502 IFS="$ac_save_ifs"
22503 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22505 esac
22507 XGETTEXT="$ac_cv_path_XGETTEXT"
22508 if test "$XGETTEXT" != ":"; then
22509 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22510 echo "${ECHO_T}$XGETTEXT" >&6; }
22511 else
22512 { echo "$as_me:$LINENO: result: no" >&5
22513 echo "${ECHO_T}no" >&6; }
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22524 main ()
22526 extern int _nl_msg_cat_cntr;
22527 return _nl_msg_cat_cntr
22529 return 0;
22531 _ACEOF
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533 if { (ac_try="$ac_link"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_link") 2>conftest.er1
22540 ac_status=$?
22541 grep -v '^ *+' conftest.er1 >conftest.err
22542 rm -f conftest.er1
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest$ac_exeext &&
22549 $as_test_x conftest$ac_exeext; then
22550 CATOBJEXT=.gmo
22551 DATADIRNAME=share
22552 else
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 case $host in
22557 *-*-solaris*)
22558 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
22559 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
22560 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 else
22563 cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h. */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22569 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
22570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22571 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
22573 /* System header to define __stub macros and hopefully few prototypes,
22574 which can conflict with char bind_textdomain_codeset (); below.
22575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22576 <limits.h> exists even on freestanding compilers. */
22578 #ifdef __STDC__
22579 # include <limits.h>
22580 #else
22581 # include <assert.h>
22582 #endif
22584 #undef bind_textdomain_codeset
22586 /* Override any GCC internal prototype to avoid an error.
22587 Use char because int might match the return type of a GCC
22588 builtin and then its argument prototype would still apply. */
22589 #ifdef __cplusplus
22590 extern "C"
22591 #endif
22592 char bind_textdomain_codeset ();
22593 /* The GNU C library defines this for functions which it implements
22594 to always fail with ENOSYS. Some functions are actually named
22595 something starting with __ and the normal name is an alias. */
22596 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
22597 choke me
22598 #endif
22601 main ()
22603 return bind_textdomain_codeset ();
22605 return 0;
22607 _ACEOF
22608 rm -f conftest.$ac_objext conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_link") 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest$ac_exeext &&
22625 $as_test_x conftest$ac_exeext; then
22626 ac_cv_func_bind_textdomain_codeset=yes
22627 else
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22631 ac_cv_func_bind_textdomain_codeset=no
22634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22635 conftest$ac_exeext conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
22638 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
22639 if test $ac_cv_func_bind_textdomain_codeset = yes; then
22640 CATOBJEXT=.gmo
22641 DATADIRNAME=share
22642 else
22643 CATOBJEXT=.mo
22644 DATADIRNAME=lib
22649 CATOBJEXT=.mo
22650 DATADIRNAME=lib
22652 esac
22655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22656 conftest$ac_exeext conftest.$ac_ext
22657 LIBS="$glib_save_LIBS"
22658 INSTOBJEXT=.mo
22659 else
22660 gt_cv_have_gettext=no
22668 if test "$gt_cv_have_gettext" = "yes" ; then
22670 cat >>confdefs.h <<\_ACEOF
22671 #define ENABLE_NLS 1
22672 _ACEOF
22676 if test "$XGETTEXT" != ":"; then
22677 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22679 else
22680 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
22681 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
22682 XGETTEXT=":"
22686 # We need to process the po/ directory.
22687 POSUB=po
22689 ac_config_commands="$ac_config_commands default-1"
22692 for lang in $ALL_LINGUAS; do
22693 GMOFILES="$GMOFILES $lang.gmo"
22694 POFILES="$POFILES $lang.po"
22695 done
22709 if test "$gt_cv_have_gettext" = "yes"; then
22710 if test "x$ALL_LINGUAS" = "x"; then
22711 LINGUAS=
22712 else
22713 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
22714 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
22715 NEW_LINGUAS=
22716 for presentlang in $ALL_LINGUAS; do
22717 useit=no
22718 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
22719 desiredlanguages="$LINGUAS"
22720 else
22721 desiredlanguages="$ALL_LINGUAS"
22723 for desiredlang in $desiredlanguages; do
22724 # Use the presentlang catalog if desiredlang is
22725 # a. equal to presentlang, or
22726 # b. a variant of presentlang (because in this case,
22727 # presentlang can be used as a fallback for messages
22728 # which are not translated in the desiredlang catalog).
22729 case "$desiredlang" in
22730 "$presentlang"*) useit=yes;;
22731 esac
22732 done
22733 if test $useit = yes; then
22734 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
22736 done
22737 LINGUAS=$NEW_LINGUAS
22738 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
22739 echo "${ECHO_T}$LINGUAS" >&6; }
22742 if test -n "$LINGUAS"; then
22743 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
22747 MKINSTALLDIRS=
22748 if test -n "$ac_aux_dir"; then
22749 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
22751 if test -z "$MKINSTALLDIRS"; then
22752 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22756 test -d po || mkdir po
22757 if test "x$srcdir" != "x."; then
22758 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
22759 posrcprefix="$srcdir/"
22760 else
22761 posrcprefix="../$srcdir/"
22763 else
22764 posrcprefix="../"
22766 rm -f po/POTFILES
22767 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
22768 < $srcdir/po/POTFILES.in > po/POTFILES
22771 # To make application visible in maemo Task Navigator it needs a Desktop
22772 # file for the application.
22773 # D-BUS service file is needed to be able to launch the maemo application
22774 # and connect it to D-BUS services.
22775 # The following line defines install directories for these files.
22776 desktopentrydir=/usr/share/applications/hildon
22777 serviceentrydir=/usr/share/dbus-1/services
22779 # Application locale install directory
22780 localedir=/usr/share/locale
22782 # Application pixmaps install directory
22783 pixmapdir=/usr/share/pixmaps/$PACKAGE
22785 # Application icon install directories
22786 icon_26x26dir=$datadir/icons/hicolor/26x26/hildon
22787 icon_34x34dir=$datadir/icons/hicolor/34x34/hildon
22788 icon_40x40dir=$datadir/icons/hicolor/40x40/hildon
22789 icon_50x50dir=$datadir/icons/hicolor/50x50/hildon
22790 icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
22792 # Hildon control panel plugin install directories
22793 pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=plugindir`
22794 plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
22796 # Define as variables in Makefiles
22809 # Application Installer uses alternative root prefix /var/lib/install
22810 # where packages are installed. Build time and run time are different.
22811 # Define runtime paths to applications in config.h.
22812 #runtime_root=/var/lib/install
22813 #runtime_localedir=$runtime_root$localedir
22814 #runtime_pixmapdir=$runtime_root$pixmapdir
22817 cat >>confdefs.h <<_ACEOF
22818 #define LOCALEDIR "${localedir}"
22819 _ACEOF
22822 cat >>confdefs.h <<_ACEOF
22823 #define PIXMAPDIR "${pixmapdir}"
22824 _ACEOF
22827 # Produce output files
22828 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile po/Makefile.in po/Makefile"
22830 cat >confcache <<\_ACEOF
22831 # This file is a shell script that caches the results of configure
22832 # tests run on this system so they can be shared between configure
22833 # scripts and configure runs, see configure's option --config-cache.
22834 # It is not useful on other systems. If it contains results you don't
22835 # want to keep, you may remove or edit it.
22837 # config.status only pays attention to the cache file if you give it
22838 # the --recheck option to rerun configure.
22840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22842 # following values.
22844 _ACEOF
22846 # The following way of writing the cache mishandles newlines in values,
22847 # but we know of no workaround that is simple, portable, and efficient.
22848 # So, we kill variables containing newlines.
22849 # Ultrix sh set writes to stderr and can't be redirected directly,
22850 # and sets the high bit in the cache file unless we assign to the vars.
22852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22853 eval ac_val=\$$ac_var
22854 case $ac_val in #(
22855 *${as_nl}*)
22856 case $ac_var in #(
22857 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22859 esac
22860 case $ac_var in #(
22861 _ | IFS | as_nl) ;; #(
22862 *) $as_unset $ac_var ;;
22863 esac ;;
22864 esac
22865 done
22867 (set) 2>&1 |
22868 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22869 *${as_nl}ac_space=\ *)
22870 # `set' does not quote correctly, so add quotes (double-quote
22871 # substitution turns \\\\ into \\, and sed turns \\ into \).
22872 sed -n \
22873 "s/'/'\\\\''/g;
22874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22875 ;; #(
22877 # `set' quotes correctly as required by POSIX, so do not add quotes.
22878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22880 esac |
22881 sort
22883 sed '
22884 /^ac_cv_env_/b end
22885 t clear
22886 :clear
22887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22888 t end
22889 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22890 :end' >>confcache
22891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22892 if test -w "$cache_file"; then
22893 test "x$cache_file" != "x/dev/null" &&
22894 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22895 echo "$as_me: updating cache $cache_file" >&6;}
22896 cat confcache >$cache_file
22897 else
22898 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22899 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22902 rm -f confcache
22904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22905 # Let make expand exec_prefix.
22906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22908 DEFS=-DHAVE_CONFIG_H
22910 ac_libobjs=
22911 ac_ltlibobjs=
22912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22913 # 1. Remove the extension, and $U if already installed.
22914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22915 ac_i=`echo "$ac_i" | sed "$ac_script"`
22916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22917 # will be set to the directory where LIBOBJS objects are built.
22918 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22919 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22920 done
22921 LIBOBJS=$ac_libobjs
22923 LTLIBOBJS=$ac_ltlibobjs
22926 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22927 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22928 Usually this means the macro was only invoked conditionally." >&5
22929 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22930 Usually this means the macro was only invoked conditionally." >&2;}
22931 { (exit 1); exit 1; }; }
22933 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22934 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22935 Usually this means the macro was only invoked conditionally." >&5
22936 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22937 Usually this means the macro was only invoked conditionally." >&2;}
22938 { (exit 1); exit 1; }; }
22940 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22941 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22942 Usually this means the macro was only invoked conditionally." >&5
22943 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22944 Usually this means the macro was only invoked conditionally." >&2;}
22945 { (exit 1); exit 1; }; }
22948 ac_config_commands="$ac_config_commands po/stamp-it"
22952 : ${CONFIG_STATUS=./config.status}
22953 ac_clean_files_save=$ac_clean_files
22954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22955 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22956 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22957 cat >$CONFIG_STATUS <<_ACEOF
22958 #! $SHELL
22959 # Generated by $as_me.
22960 # Run this file to recreate the current configuration.
22961 # Compiler output produced by configure, useful for debugging
22962 # configure, is in config.log if it exists.
22964 debug=false
22965 ac_cs_recheck=false
22966 ac_cs_silent=false
22967 SHELL=\${CONFIG_SHELL-$SHELL}
22968 _ACEOF
22970 cat >>$CONFIG_STATUS <<\_ACEOF
22971 ## --------------------- ##
22972 ## M4sh Initialization. ##
22973 ## --------------------- ##
22975 # Be more Bourne compatible
22976 DUALCASE=1; export DUALCASE # for MKS sh
22977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22978 emulate sh
22979 NULLCMD=:
22980 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22981 # is contrary to our usage. Disable this feature.
22982 alias -g '${1+"$@"}'='"$@"'
22983 setopt NO_GLOB_SUBST
22984 else
22985 case `(set -o) 2>/dev/null` in
22986 *posix*) set -o posix ;;
22987 esac
22994 # PATH needs CR
22995 # Avoid depending upon Character Ranges.
22996 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22997 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22998 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22999 as_cr_digits='0123456789'
23000 as_cr_alnum=$as_cr_Letters$as_cr_digits
23002 # The user is always right.
23003 if test "${PATH_SEPARATOR+set}" != set; then
23004 echo "#! /bin/sh" >conf$$.sh
23005 echo "exit 0" >>conf$$.sh
23006 chmod +x conf$$.sh
23007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23008 PATH_SEPARATOR=';'
23009 else
23010 PATH_SEPARATOR=:
23012 rm -f conf$$.sh
23015 # Support unset when possible.
23016 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23017 as_unset=unset
23018 else
23019 as_unset=false
23023 # IFS
23024 # We need space, tab and new line, in precisely that order. Quoting is
23025 # there to prevent editors from complaining about space-tab.
23026 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23027 # splitting by setting IFS to empty value.)
23028 as_nl='
23030 IFS=" "" $as_nl"
23032 # Find who we are. Look in the path if we contain no directory separator.
23033 case $0 in
23034 *[\\/]* ) as_myself=$0 ;;
23035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23036 for as_dir in $PATH
23038 IFS=$as_save_IFS
23039 test -z "$as_dir" && as_dir=.
23040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23041 done
23042 IFS=$as_save_IFS
23045 esac
23046 # We did not find ourselves, most probably we were run as `sh COMMAND'
23047 # in which case we are not to be found in the path.
23048 if test "x$as_myself" = x; then
23049 as_myself=$0
23051 if test ! -f "$as_myself"; then
23052 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23053 { (exit 1); exit 1; }
23056 # Work around bugs in pre-3.0 UWIN ksh.
23057 for as_var in ENV MAIL MAILPATH
23058 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23059 done
23060 PS1='$ '
23061 PS2='> '
23062 PS4='+ '
23064 # NLS nuisances.
23065 for as_var in \
23066 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23067 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23068 LC_TELEPHONE LC_TIME
23070 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23071 eval $as_var=C; export $as_var
23072 else
23073 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23075 done
23077 # Required to use basename.
23078 if expr a : '\(a\)' >/dev/null 2>&1 &&
23079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23080 as_expr=expr
23081 else
23082 as_expr=false
23085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23086 as_basename=basename
23087 else
23088 as_basename=false
23092 # Name of the executable.
23093 as_me=`$as_basename -- "$0" ||
23094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23095 X"$0" : 'X\(//\)$' \| \
23096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23097 echo X/"$0" |
23098 sed '/^.*\/\([^/][^/]*\)\/*$/{
23099 s//\1/
23102 /^X\/\(\/\/\)$/{
23103 s//\1/
23106 /^X\/\(\/\).*/{
23107 s//\1/
23110 s/.*/./; q'`
23112 # CDPATH.
23113 $as_unset CDPATH
23117 as_lineno_1=$LINENO
23118 as_lineno_2=$LINENO
23119 test "x$as_lineno_1" != "x$as_lineno_2" &&
23120 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23122 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23123 # uniformly replaced by the line number. The first 'sed' inserts a
23124 # line-number line after each line using $LINENO; the second 'sed'
23125 # does the real work. The second script uses 'N' to pair each
23126 # line-number line with the line containing $LINENO, and appends
23127 # trailing '-' during substitution so that $LINENO is not a special
23128 # case at line end.
23129 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23130 # scripts with optimization help from Paolo Bonzini. Blame Lee
23131 # E. McMahon (1931-1989) for sed's syntax. :-)
23132 sed -n '
23134 /[$]LINENO/=
23135 ' <$as_myself |
23136 sed '
23137 s/[$]LINENO.*/&-/
23138 t lineno
23140 :lineno
23142 :loop
23143 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23144 t loop
23145 s/-\n.*//
23146 ' >$as_me.lineno &&
23147 chmod +x "$as_me.lineno" ||
23148 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23149 { (exit 1); exit 1; }; }
23151 # Don't try to exec as it changes $[0], causing all sort of problems
23152 # (the dirname of $[0] is not the place where we might find the
23153 # original and so on. Autoconf is especially sensitive to this).
23154 . "./$as_me.lineno"
23155 # Exit status is that of the last command.
23156 exit
23160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23161 as_dirname=dirname
23162 else
23163 as_dirname=false
23166 ECHO_C= ECHO_N= ECHO_T=
23167 case `echo -n x` in
23168 -n*)
23169 case `echo 'x\c'` in
23170 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23171 *) ECHO_C='\c';;
23172 esac;;
23174 ECHO_N='-n';;
23175 esac
23177 if expr a : '\(a\)' >/dev/null 2>&1 &&
23178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23179 as_expr=expr
23180 else
23181 as_expr=false
23184 rm -f conf$$ conf$$.exe conf$$.file
23185 if test -d conf$$.dir; then
23186 rm -f conf$$.dir/conf$$.file
23187 else
23188 rm -f conf$$.dir
23189 mkdir conf$$.dir
23191 echo >conf$$.file
23192 if ln -s conf$$.file conf$$ 2>/dev/null; then
23193 as_ln_s='ln -s'
23194 # ... but there are two gotchas:
23195 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23196 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23197 # In both cases, we have to default to `cp -p'.
23198 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23199 as_ln_s='cp -p'
23200 elif ln conf$$.file conf$$ 2>/dev/null; then
23201 as_ln_s=ln
23202 else
23203 as_ln_s='cp -p'
23205 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23206 rmdir conf$$.dir 2>/dev/null
23208 if mkdir -p . 2>/dev/null; then
23209 as_mkdir_p=:
23210 else
23211 test -d ./-p && rmdir ./-p
23212 as_mkdir_p=false
23215 if test -x / >/dev/null 2>&1; then
23216 as_test_x='test -x'
23217 else
23218 if ls -dL / >/dev/null 2>&1; then
23219 as_ls_L_option=L
23220 else
23221 as_ls_L_option=
23223 as_test_x='
23224 eval sh -c '\''
23225 if test -d "$1"; then
23226 test -d "$1/.";
23227 else
23228 case $1 in
23229 -*)set "./$1";;
23230 esac;
23231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23232 ???[sx]*):;;*)false;;esac;fi
23233 '\'' sh
23236 as_executable_p=$as_test_x
23238 # Sed expression to map a string onto a valid CPP name.
23239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23241 # Sed expression to map a string onto a valid variable name.
23242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23245 exec 6>&1
23247 # Save the log message, to keep $[0] and so on meaningful, and to
23248 # report actual input values of CONFIG_FILES etc. instead of their
23249 # values after options handling.
23250 ac_log="
23251 This file was extended by $as_me, which was
23252 generated by GNU Autoconf 2.61. Invocation command line was
23254 CONFIG_FILES = $CONFIG_FILES
23255 CONFIG_HEADERS = $CONFIG_HEADERS
23256 CONFIG_LINKS = $CONFIG_LINKS
23257 CONFIG_COMMANDS = $CONFIG_COMMANDS
23258 $ $0 $@
23260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23263 _ACEOF
23265 cat >>$CONFIG_STATUS <<_ACEOF
23266 # Files that config.status was made for.
23267 config_files="$ac_config_files"
23268 config_headers="$ac_config_headers"
23269 config_commands="$ac_config_commands"
23271 _ACEOF
23273 cat >>$CONFIG_STATUS <<\_ACEOF
23274 ac_cs_usage="\
23275 \`$as_me' instantiates files from templates according to the
23276 current configuration.
23278 Usage: $0 [OPTIONS] [FILE]...
23280 -h, --help print this help, then exit
23281 -V, --version print version number and configuration settings, then exit
23282 -q, --quiet do not print progress messages
23283 -d, --debug don't remove temporary files
23284 --recheck update $as_me by reconfiguring in the same conditions
23285 --file=FILE[:TEMPLATE]
23286 instantiate the configuration file FILE
23287 --header=FILE[:TEMPLATE]
23288 instantiate the configuration header FILE
23290 Configuration files:
23291 $config_files
23293 Configuration headers:
23294 $config_headers
23296 Configuration commands:
23297 $config_commands
23299 Report bugs to <bug-autoconf@gnu.org>."
23301 _ACEOF
23302 cat >>$CONFIG_STATUS <<_ACEOF
23303 ac_cs_version="\\
23304 config.status
23305 configured by $0, generated by GNU Autoconf 2.61,
23306 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23308 Copyright (C) 2006 Free Software Foundation, Inc.
23309 This config.status script is free software; the Free Software Foundation
23310 gives unlimited permission to copy, distribute and modify it."
23312 ac_pwd='$ac_pwd'
23313 srcdir='$srcdir'
23314 INSTALL='$INSTALL'
23315 _ACEOF
23317 cat >>$CONFIG_STATUS <<\_ACEOF
23318 # If no file are specified by the user, then we need to provide default
23319 # value. By we need to know if files were specified by the user.
23320 ac_need_defaults=:
23321 while test $# != 0
23323 case $1 in
23324 --*=*)
23325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23326 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23327 ac_shift=:
23330 ac_option=$1
23331 ac_optarg=$2
23332 ac_shift=shift
23334 esac
23336 case $ac_option in
23337 # Handling of the options.
23338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23339 ac_cs_recheck=: ;;
23340 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23341 echo "$ac_cs_version"; exit ;;
23342 --debug | --debu | --deb | --de | --d | -d )
23343 debug=: ;;
23344 --file | --fil | --fi | --f )
23345 $ac_shift
23346 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23347 ac_need_defaults=false;;
23348 --header | --heade | --head | --hea )
23349 $ac_shift
23350 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23351 ac_need_defaults=false;;
23352 --he | --h)
23353 # Conflict between --help and --header
23354 { echo "$as_me: error: ambiguous option: $1
23355 Try \`$0 --help' for more information." >&2
23356 { (exit 1); exit 1; }; };;
23357 --help | --hel | -h )
23358 echo "$ac_cs_usage"; exit ;;
23359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23361 ac_cs_silent=: ;;
23363 # This is an error.
23364 -*) { echo "$as_me: error: unrecognized option: $1
23365 Try \`$0 --help' for more information." >&2
23366 { (exit 1); exit 1; }; } ;;
23368 *) ac_config_targets="$ac_config_targets $1"
23369 ac_need_defaults=false ;;
23371 esac
23372 shift
23373 done
23375 ac_configure_extra_args=
23377 if $ac_cs_silent; then
23378 exec 6>/dev/null
23379 ac_configure_extra_args="$ac_configure_extra_args --silent"
23382 _ACEOF
23383 cat >>$CONFIG_STATUS <<_ACEOF
23384 if \$ac_cs_recheck; then
23385 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23386 CONFIG_SHELL=$SHELL
23387 export CONFIG_SHELL
23388 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23391 _ACEOF
23392 cat >>$CONFIG_STATUS <<\_ACEOF
23393 exec 5>>config.log
23395 echo
23396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23397 ## Running $as_me. ##
23398 _ASBOX
23399 echo "$ac_log"
23400 } >&5
23402 _ACEOF
23403 cat >>$CONFIG_STATUS <<_ACEOF
23405 # INIT-COMMANDS
23407 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23410 _ACEOF
23412 cat >>$CONFIG_STATUS <<\_ACEOF
23414 # Handling of arguments.
23415 for ac_config_target in $ac_config_targets
23417 case $ac_config_target in
23418 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23419 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23420 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23421 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23422 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23423 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
23424 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23425 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
23426 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
23428 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23429 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23430 { (exit 1); exit 1; }; };;
23431 esac
23432 done
23435 # If the user did not use the arguments to specify the items to instantiate,
23436 # then the envvar interface is used. Set only those that are not.
23437 # We use the long form for the default assignment because of an extremely
23438 # bizarre bug on SunOS 4.1.3.
23439 if $ac_need_defaults; then
23440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23445 # Have a temporary directory for convenience. Make it in the build tree
23446 # simply because there is no reason against having it here, and in addition,
23447 # creating and moving files from /tmp can sometimes cause problems.
23448 # Hook for its removal unless debugging.
23449 # Note that there is a small window in which the directory will not be cleaned:
23450 # after its creation but before its name has been assigned to `$tmp'.
23451 $debug ||
23453 tmp=
23454 trap 'exit_status=$?
23455 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23457 trap '{ (exit 1); exit 1; }' 1 2 13 15
23459 # Create a (secure) tmp directory for tmp files.
23462 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23463 test -n "$tmp" && test -d "$tmp"
23464 } ||
23466 tmp=./conf$$-$RANDOM
23467 (umask 077 && mkdir "$tmp")
23468 } ||
23470 echo "$me: cannot create a temporary directory in ." >&2
23471 { (exit 1); exit 1; }
23475 # Set up the sed scripts for CONFIG_FILES section.
23478 # No need to generate the scripts if there are no CONFIG_FILES.
23479 # This happens for instance when ./config.status config.h
23480 if test -n "$CONFIG_FILES"; then
23482 _ACEOF
23486 ac_delim='%!_!# '
23487 for ac_last_try in false false false false false :; do
23488 cat >conf$$subs.sed <<_ACEOF
23489 SHELL!$SHELL$ac_delim
23490 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23491 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23492 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23493 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23494 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23495 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23496 exec_prefix!$exec_prefix$ac_delim
23497 prefix!$prefix$ac_delim
23498 program_transform_name!$program_transform_name$ac_delim
23499 bindir!$bindir$ac_delim
23500 sbindir!$sbindir$ac_delim
23501 libexecdir!$libexecdir$ac_delim
23502 datarootdir!$datarootdir$ac_delim
23503 datadir!$datadir$ac_delim
23504 sysconfdir!$sysconfdir$ac_delim
23505 sharedstatedir!$sharedstatedir$ac_delim
23506 localstatedir!$localstatedir$ac_delim
23507 includedir!$includedir$ac_delim
23508 oldincludedir!$oldincludedir$ac_delim
23509 docdir!$docdir$ac_delim
23510 infodir!$infodir$ac_delim
23511 htmldir!$htmldir$ac_delim
23512 dvidir!$dvidir$ac_delim
23513 pdfdir!$pdfdir$ac_delim
23514 psdir!$psdir$ac_delim
23515 libdir!$libdir$ac_delim
23516 localedir!$localedir$ac_delim
23517 mandir!$mandir$ac_delim
23518 DEFS!$DEFS$ac_delim
23519 ECHO_C!$ECHO_C$ac_delim
23520 ECHO_N!$ECHO_N$ac_delim
23521 ECHO_T!$ECHO_T$ac_delim
23522 LIBS!$LIBS$ac_delim
23523 build_alias!$build_alias$ac_delim
23524 host_alias!$host_alias$ac_delim
23525 target_alias!$target_alias$ac_delim
23526 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23527 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23528 INSTALL_DATA!$INSTALL_DATA$ac_delim
23529 CYGPATH_W!$CYGPATH_W$ac_delim
23530 PACKAGE!$PACKAGE$ac_delim
23531 VERSION!$VERSION$ac_delim
23532 ACLOCAL!$ACLOCAL$ac_delim
23533 AUTOCONF!$AUTOCONF$ac_delim
23534 AUTOMAKE!$AUTOMAKE$ac_delim
23535 AUTOHEADER!$AUTOHEADER$ac_delim
23536 MAKEINFO!$MAKEINFO$ac_delim
23537 AMTAR!$AMTAR$ac_delim
23538 install_sh!$install_sh$ac_delim
23539 STRIP!$STRIP$ac_delim
23540 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23541 AWK!$AWK$ac_delim
23542 SET_MAKE!$SET_MAKE$ac_delim
23543 am__leading_dot!$am__leading_dot$ac_delim
23544 build!$build$ac_delim
23545 build_cpu!$build_cpu$ac_delim
23546 build_vendor!$build_vendor$ac_delim
23547 build_os!$build_os$ac_delim
23548 host!$host$ac_delim
23549 host_cpu!$host_cpu$ac_delim
23550 host_vendor!$host_vendor$ac_delim
23551 host_os!$host_os$ac_delim
23552 CC!$CC$ac_delim
23553 CFLAGS!$CFLAGS$ac_delim
23554 LDFLAGS!$LDFLAGS$ac_delim
23555 CPPFLAGS!$CPPFLAGS$ac_delim
23556 ac_ct_CC!$ac_ct_CC$ac_delim
23557 EXEEXT!$EXEEXT$ac_delim
23558 OBJEXT!$OBJEXT$ac_delim
23559 DEPDIR!$DEPDIR$ac_delim
23560 am__include!$am__include$ac_delim
23561 am__quote!$am__quote$ac_delim
23562 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23563 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23564 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23565 CCDEPMODE!$CCDEPMODE$ac_delim
23566 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23567 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23568 CPP!$CPP$ac_delim
23569 RANLIB!$RANLIB$ac_delim
23570 SED!$SED$ac_delim
23571 GREP!$GREP$ac_delim
23572 EGREP!$EGREP$ac_delim
23573 LN_S!$LN_S$ac_delim
23574 ECHO!$ECHO$ac_delim
23575 AR!$AR$ac_delim
23576 DSYMUTIL!$DSYMUTIL$ac_delim
23577 NMEDIT!$NMEDIT$ac_delim
23578 CXX!$CXX$ac_delim
23579 CXXFLAGS!$CXXFLAGS$ac_delim
23580 ac_ct_CXX!$ac_ct_CXX$ac_delim
23581 CXXDEPMODE!$CXXDEPMODE$ac_delim
23582 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23583 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23584 CXXCPP!$CXXCPP$ac_delim
23585 F77!$F77$ac_delim
23586 _ACEOF
23588 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23589 break
23590 elif $ac_last_try; then
23591 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23592 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23593 { (exit 1); exit 1; }; }
23594 else
23595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23597 done
23599 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23600 if test -n "$ac_eof"; then
23601 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23602 ac_eof=`expr $ac_eof + 1`
23605 cat >>$CONFIG_STATUS <<_ACEOF
23606 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23608 _ACEOF
23609 sed '
23610 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23611 s/^/s,@/; s/!/@,|#_!!_#|/
23614 s/'"$ac_delim"'$/,g/; t
23615 s/$/\\/; p
23616 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23617 ' >>$CONFIG_STATUS <conf$$subs.sed
23618 rm -f conf$$subs.sed
23619 cat >>$CONFIG_STATUS <<_ACEOF
23620 CEOF$ac_eof
23621 _ACEOF
23624 ac_delim='%!_!# '
23625 for ac_last_try in false false false false false :; do
23626 cat >conf$$subs.sed <<_ACEOF
23627 FFLAGS!$FFLAGS$ac_delim
23628 ac_ct_F77!$ac_ct_F77$ac_delim
23629 LIBTOOL!$LIBTOOL$ac_delim
23630 USE_NLS!$USE_NLS$ac_delim
23631 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
23632 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
23633 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
23634 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
23635 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
23636 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
23637 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
23638 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
23639 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
23640 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
23641 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
23642 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
23643 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
23644 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
23645 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
23646 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
23647 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
23648 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
23649 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
23650 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
23651 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
23652 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
23653 XGETTEXT!$XGETTEXT$ac_delim
23654 MSGMERGE!$MSGMERGE$ac_delim
23655 MSGFMT!$MSGFMT$ac_delim
23656 GMSGFMT!$GMSGFMT$ac_delim
23657 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
23658 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
23659 DATADIRNAME!$DATADIRNAME$ac_delim
23660 PKG_CONFIG!$PKG_CONFIG$ac_delim
23661 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
23662 HILDON_LIBS!$HILDON_LIBS$ac_delim
23663 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
23664 DBUS_LIBS!$DBUS_LIBS$ac_delim
23665 OSSO_CFLAGS!$OSSO_CFLAGS$ac_delim
23666 OSSO_LIBS!$OSSO_LIBS$ac_delim
23667 SQL3_CFLAGS!$SQL3_CFLAGS$ac_delim
23668 SQL3_LIBS!$SQL3_LIBS$ac_delim
23669 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
23670 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
23671 CATALOGS!$CATALOGS$ac_delim
23672 CATOBJEXT!$CATOBJEXT$ac_delim
23673 GMOFILES!$GMOFILES$ac_delim
23674 INSTOBJEXT!$INSTOBJEXT$ac_delim
23675 INTLLIBS!$INTLLIBS$ac_delim
23676 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
23677 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
23678 POFILES!$POFILES$ac_delim
23679 POSUB!$POSUB$ac_delim
23680 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
23681 desktopentrydir!$desktopentrydir$ac_delim
23682 serviceentrydir!$serviceentrydir$ac_delim
23683 pixmapdir!$pixmapdir$ac_delim
23684 icon_26x26dir!$icon_26x26dir$ac_delim
23685 icon_34x34dir!$icon_34x34dir$ac_delim
23686 icon_40x40dir!$icon_40x40dir$ac_delim
23687 icon_50x50dir!$icon_50x50dir$ac_delim
23688 icon_scalabledir!$icon_scalabledir$ac_delim
23689 pluginlibdir!$pluginlibdir$ac_delim
23690 plugindesktopentrydir!$plugindesktopentrydir$ac_delim
23691 LIBOBJS!$LIBOBJS$ac_delim
23692 LTLIBOBJS!$LTLIBOBJS$ac_delim
23693 _ACEOF
23695 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
23696 break
23697 elif $ac_last_try; then
23698 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23699 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23700 { (exit 1); exit 1; }; }
23701 else
23702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23704 done
23706 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23707 if test -n "$ac_eof"; then
23708 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23709 ac_eof=`expr $ac_eof + 1`
23712 cat >>$CONFIG_STATUS <<_ACEOF
23713 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23715 _ACEOF
23716 sed '
23717 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23718 s/^/s,@/; s/!/@,|#_!!_#|/
23721 s/'"$ac_delim"'$/,g/; t
23722 s/$/\\/; p
23723 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23724 ' >>$CONFIG_STATUS <conf$$subs.sed
23725 rm -f conf$$subs.sed
23726 cat >>$CONFIG_STATUS <<_ACEOF
23727 :end
23728 s/|#_!!_#|//g
23729 CEOF$ac_eof
23730 _ACEOF
23733 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23734 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23735 # trailing colons and then remove the whole line if VPATH becomes empty
23736 # (actually we leave an empty line to preserve line numbers).
23737 if test "x$srcdir" = x.; then
23738 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23739 s/:*\$(srcdir):*/:/
23740 s/:*\${srcdir}:*/:/
23741 s/:*@srcdir@:*/:/
23742 s/^\([^=]*=[ ]*\):*/\1/
23743 s/:*$//
23744 s/^[^=]*=[ ]*$//
23748 cat >>$CONFIG_STATUS <<\_ACEOF
23749 fi # test -n "$CONFIG_FILES"
23752 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23754 case $ac_tag in
23755 :[FHLC]) ac_mode=$ac_tag; continue;;
23756 esac
23757 case $ac_mode$ac_tag in
23758 :[FHL]*:*);;
23759 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23760 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23761 { (exit 1); exit 1; }; };;
23762 :[FH]-) ac_tag=-:-;;
23763 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23764 esac
23765 ac_save_IFS=$IFS
23766 IFS=:
23767 set x $ac_tag
23768 IFS=$ac_save_IFS
23769 shift
23770 ac_file=$1
23771 shift
23773 case $ac_mode in
23774 :L) ac_source=$1;;
23775 :[FH])
23776 ac_file_inputs=
23777 for ac_f
23779 case $ac_f in
23780 -) ac_f="$tmp/stdin";;
23781 *) # Look for the file first in the build tree, then in the source tree
23782 # (if the path is not absolute). The absolute path cannot be DOS-style,
23783 # because $ac_f cannot contain `:'.
23784 test -f "$ac_f" ||
23785 case $ac_f in
23786 [\\/$]*) false;;
23787 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23788 esac ||
23789 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23790 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23791 { (exit 1); exit 1; }; };;
23792 esac
23793 ac_file_inputs="$ac_file_inputs $ac_f"
23794 done
23796 # Let's still pretend it is `configure' which instantiates (i.e., don't
23797 # use $as_me), people would be surprised to read:
23798 # /* config.h. Generated by config.status. */
23799 configure_input="Generated from "`IFS=:
23800 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23801 if test x"$ac_file" != x-; then
23802 configure_input="$ac_file. $configure_input"
23803 { echo "$as_me:$LINENO: creating $ac_file" >&5
23804 echo "$as_me: creating $ac_file" >&6;}
23807 case $ac_tag in
23808 *:-:* | *:-) cat >"$tmp/stdin";;
23809 esac
23811 esac
23813 ac_dir=`$as_dirname -- "$ac_file" ||
23814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815 X"$ac_file" : 'X\(//\)[^/]' \| \
23816 X"$ac_file" : 'X\(//\)$' \| \
23817 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23818 echo X"$ac_file" |
23819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23820 s//\1/
23823 /^X\(\/\/\)[^/].*/{
23824 s//\1/
23827 /^X\(\/\/\)$/{
23828 s//\1/
23831 /^X\(\/\).*/{
23832 s//\1/
23835 s/.*/./; q'`
23836 { as_dir="$ac_dir"
23837 case $as_dir in #(
23838 -*) as_dir=./$as_dir;;
23839 esac
23840 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23841 as_dirs=
23842 while :; do
23843 case $as_dir in #(
23844 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23845 *) as_qdir=$as_dir;;
23846 esac
23847 as_dirs="'$as_qdir' $as_dirs"
23848 as_dir=`$as_dirname -- "$as_dir" ||
23849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23850 X"$as_dir" : 'X\(//\)[^/]' \| \
23851 X"$as_dir" : 'X\(//\)$' \| \
23852 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23853 echo X"$as_dir" |
23854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23855 s//\1/
23858 /^X\(\/\/\)[^/].*/{
23859 s//\1/
23862 /^X\(\/\/\)$/{
23863 s//\1/
23866 /^X\(\/\).*/{
23867 s//\1/
23870 s/.*/./; q'`
23871 test -d "$as_dir" && break
23872 done
23873 test -z "$as_dirs" || eval "mkdir $as_dirs"
23874 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23875 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23876 { (exit 1); exit 1; }; }; }
23877 ac_builddir=.
23879 case "$ac_dir" in
23880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23883 # A ".." for each directory in $ac_dir_suffix.
23884 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23885 case $ac_top_builddir_sub in
23886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23888 esac ;;
23889 esac
23890 ac_abs_top_builddir=$ac_pwd
23891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23892 # for backward compatibility:
23893 ac_top_builddir=$ac_top_build_prefix
23895 case $srcdir in
23896 .) # We are building in place.
23897 ac_srcdir=.
23898 ac_top_srcdir=$ac_top_builddir_sub
23899 ac_abs_top_srcdir=$ac_pwd ;;
23900 [\\/]* | ?:[\\/]* ) # Absolute name.
23901 ac_srcdir=$srcdir$ac_dir_suffix;
23902 ac_top_srcdir=$srcdir
23903 ac_abs_top_srcdir=$srcdir ;;
23904 *) # Relative name.
23905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23906 ac_top_srcdir=$ac_top_build_prefix$srcdir
23907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23908 esac
23909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23912 case $ac_mode in
23915 # CONFIG_FILE
23918 case $INSTALL in
23919 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23920 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23921 esac
23922 _ACEOF
23924 cat >>$CONFIG_STATUS <<\_ACEOF
23925 # If the template does not know about datarootdir, expand it.
23926 # FIXME: This hack should be removed a few years after 2.60.
23927 ac_datarootdir_hack=; ac_datarootdir_seen=
23929 case `sed -n '/datarootdir/ {
23933 /@datadir@/p
23934 /@docdir@/p
23935 /@infodir@/p
23936 /@localedir@/p
23937 /@mandir@/p
23938 ' $ac_file_inputs` in
23939 *datarootdir*) ac_datarootdir_seen=yes;;
23940 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23941 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23942 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23943 _ACEOF
23944 cat >>$CONFIG_STATUS <<_ACEOF
23945 ac_datarootdir_hack='
23946 s&@datadir@&$datadir&g
23947 s&@docdir@&$docdir&g
23948 s&@infodir@&$infodir&g
23949 s&@localedir@&$localedir&g
23950 s&@mandir@&$mandir&g
23951 s&\\\${datarootdir}&$datarootdir&g' ;;
23952 esac
23953 _ACEOF
23955 # Neutralize VPATH when `$srcdir' = `.'.
23956 # Shell code in configure.ac might set extrasub.
23957 # FIXME: do we really want to maintain this feature?
23958 cat >>$CONFIG_STATUS <<_ACEOF
23959 sed "$ac_vpsub
23960 $extrasub
23961 _ACEOF
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23965 s&@configure_input@&$configure_input&;t t
23966 s&@top_builddir@&$ac_top_builddir_sub&;t t
23967 s&@srcdir@&$ac_srcdir&;t t
23968 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23969 s&@top_srcdir@&$ac_top_srcdir&;t t
23970 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23971 s&@builddir@&$ac_builddir&;t t
23972 s&@abs_builddir@&$ac_abs_builddir&;t t
23973 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23974 s&@INSTALL@&$ac_INSTALL&;t t
23975 $ac_datarootdir_hack
23976 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23979 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23981 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23982 which seems to be undefined. Please make sure it is defined." >&5
23983 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23984 which seems to be undefined. Please make sure it is defined." >&2;}
23986 rm -f "$tmp/stdin"
23987 case $ac_file in
23988 -) cat "$tmp/out"; rm -f "$tmp/out";;
23989 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23990 esac
23994 # CONFIG_HEADER
23996 _ACEOF
23998 # Transform confdefs.h into a sed script `conftest.defines', that
23999 # substitutes the proper values into config.h.in to produce config.h.
24000 rm -f conftest.defines conftest.tail
24001 # First, append a space to every undef/define line, to ease matching.
24002 echo 's/$/ /' >conftest.defines
24003 # Then, protect against being on the right side of a sed subst, or in
24004 # an unquoted here document, in config.status. If some macros were
24005 # called several times there might be several #defines for the same
24006 # symbol, which is useless. But do not sort them, since the last
24007 # AC_DEFINE must be honored.
24008 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24009 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24010 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24011 # PARAMS is the parameter list in the macro definition--in most cases, it's
24012 # just an empty string.
24013 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24014 ac_dB='\\)[ (].*,\\1define\\2'
24015 ac_dC=' '
24016 ac_dD=' ,'
24018 uniq confdefs.h |
24019 sed -n '
24020 t rset
24021 :rset
24022 s/^[ ]*#[ ]*define[ ][ ]*//
24023 t ok
24026 s/[\\&,]/\\&/g
24027 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24028 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24029 ' >>conftest.defines
24031 # Remove the space that was appended to ease matching.
24032 # Then replace #undef with comments. This is necessary, for
24033 # example, in the case of _POSIX_SOURCE, which is predefined and required
24034 # on some systems where configure will not decide to define it.
24035 # (The regexp can be short, since the line contains either #define or #undef.)
24036 echo 's/ $//
24037 s,^[ #]*u.*,/* & */,' >>conftest.defines
24039 # Break up conftest.defines:
24040 ac_max_sed_lines=50
24042 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24043 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24044 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24045 # et cetera.
24046 ac_in='$ac_file_inputs'
24047 ac_out='"$tmp/out1"'
24048 ac_nxt='"$tmp/out2"'
24050 while :
24052 # Write a here document:
24053 cat >>$CONFIG_STATUS <<_ACEOF
24054 # First, check the format of the line:
24055 cat >"\$tmp/defines.sed" <<\\CEOF
24056 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24057 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24059 :def
24060 _ACEOF
24061 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24062 echo 'CEOF
24063 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24064 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24065 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24066 grep . conftest.tail >/dev/null || break
24067 rm -f conftest.defines
24068 mv conftest.tail conftest.defines
24069 done
24070 rm -f conftest.defines conftest.tail
24072 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24073 cat >>$CONFIG_STATUS <<\_ACEOF
24074 if test x"$ac_file" != x-; then
24075 echo "/* $configure_input */" >"$tmp/config.h"
24076 cat "$ac_result" >>"$tmp/config.h"
24077 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24078 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24079 echo "$as_me: $ac_file is unchanged" >&6;}
24080 else
24081 rm -f $ac_file
24082 mv "$tmp/config.h" $ac_file
24084 else
24085 echo "/* $configure_input */"
24086 cat "$ac_result"
24088 rm -f "$tmp/out12"
24089 # Compute $ac_file's index in $config_headers.
24090 _am_stamp_count=1
24091 for _am_header in $config_headers :; do
24092 case $_am_header in
24093 $ac_file | $ac_file:* )
24094 break ;;
24096 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24097 esac
24098 done
24099 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24100 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101 X$ac_file : 'X\(//\)[^/]' \| \
24102 X$ac_file : 'X\(//\)$' \| \
24103 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24104 echo X$ac_file |
24105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24106 s//\1/
24109 /^X\(\/\/\)[^/].*/{
24110 s//\1/
24113 /^X\(\/\/\)$/{
24114 s//\1/
24117 /^X\(\/\).*/{
24118 s//\1/
24121 s/.*/./; q'`/stamp-h$_am_stamp_count
24124 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24125 echo "$as_me: executing $ac_file commands" >&6;}
24127 esac
24130 case $ac_file$ac_mode in
24131 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24132 # Strip MF so we end up with the name of the file.
24133 mf=`echo "$mf" | sed -e 's/:.*$//'`
24134 # Check whether this is an Automake generated Makefile or not.
24135 # We used to match only the files named `Makefile.in', but
24136 # some people rename them; so instead we look at the file content.
24137 # Grep'ing the first line is not enough: some people post-process
24138 # each Makefile.in and add a new line on top of each file to say so.
24139 # So let's grep whole file.
24140 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24141 dirpart=`$as_dirname -- "$mf" ||
24142 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24143 X"$mf" : 'X\(//\)[^/]' \| \
24144 X"$mf" : 'X\(//\)$' \| \
24145 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24146 echo X"$mf" |
24147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24148 s//\1/
24151 /^X\(\/\/\)[^/].*/{
24152 s//\1/
24155 /^X\(\/\/\)$/{
24156 s//\1/
24159 /^X\(\/\).*/{
24160 s//\1/
24163 s/.*/./; q'`
24164 else
24165 continue
24167 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24168 # Extract the definition of DEP_FILES from the Makefile without
24169 # running `make'.
24170 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24171 test -z "$DEPDIR" && continue
24172 # When using ansi2knr, U may be empty or an underscore; expand it
24173 U=`sed -n -e '/^U = / s///p' < "$mf"`
24174 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24175 # We invoke sed twice because it is the simplest approach to
24176 # changing $(DEPDIR) to its actual value in the expansion.
24177 for file in `sed -n -e '
24178 /^DEP_FILES = .*\\\\$/ {
24179 s/^DEP_FILES = //
24180 :loop
24181 s/\\\\$//
24184 /\\\\$/ b loop
24187 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24188 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24189 # Make sure the directory exists.
24190 test -f "$dirpart/$file" && continue
24191 fdir=`$as_dirname -- "$file" ||
24192 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24193 X"$file" : 'X\(//\)[^/]' \| \
24194 X"$file" : 'X\(//\)$' \| \
24195 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24196 echo X"$file" |
24197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24198 s//\1/
24201 /^X\(\/\/\)[^/].*/{
24202 s//\1/
24205 /^X\(\/\/\)$/{
24206 s//\1/
24209 /^X\(\/\).*/{
24210 s//\1/
24213 s/.*/./; q'`
24214 { as_dir=$dirpart/$fdir
24215 case $as_dir in #(
24216 -*) as_dir=./$as_dir;;
24217 esac
24218 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24219 as_dirs=
24220 while :; do
24221 case $as_dir in #(
24222 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24223 *) as_qdir=$as_dir;;
24224 esac
24225 as_dirs="'$as_qdir' $as_dirs"
24226 as_dir=`$as_dirname -- "$as_dir" ||
24227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24228 X"$as_dir" : 'X\(//\)[^/]' \| \
24229 X"$as_dir" : 'X\(//\)$' \| \
24230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24231 echo X"$as_dir" |
24232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24233 s//\1/
24236 /^X\(\/\/\)[^/].*/{
24237 s//\1/
24240 /^X\(\/\/\)$/{
24241 s//\1/
24244 /^X\(\/\).*/{
24245 s//\1/
24248 s/.*/./; q'`
24249 test -d "$as_dir" && break
24250 done
24251 test -z "$as_dirs" || eval "mkdir $as_dirs"
24252 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24253 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24254 { (exit 1); exit 1; }; }; }
24255 # echo "creating $dirpart/$file"
24256 echo '# dummy' > "$dirpart/$file"
24257 done
24258 done
24260 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
24261 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
24262 esac ;;
24263 "po/stamp-it":C)
24264 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" ; then
24265 { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
24266 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
24267 { (exit 1); exit 1; }; }
24269 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
24270 >"po/stamp-it.tmp"
24271 sed '/^#/d
24272 s/^[[].*] *//
24273 /^[ ]*$/d
24274 '"s|^| $ac_top_srcdir/|" \
24275 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
24277 sed '/^POTFILES =/,/[^\\]$/ {
24278 /^POTFILES =/!d
24279 r po/POTFILES
24281 ' "po/Makefile.in" >"po/Makefile"
24282 rm -f "po/Makefile.tmp"
24283 mv "po/stamp-it.tmp" "po/stamp-it"
24286 esac
24287 done # for ac_tag
24290 { (exit 0); exit 0; }
24291 _ACEOF
24292 chmod +x $CONFIG_STATUS
24293 ac_clean_files=$ac_clean_files_save
24296 # configure is writing to config.log, and then calls config.status.
24297 # config.status does its own redirection, appending to config.log.
24298 # Unfortunately, on DOS this fails, as config.log is still kept open
24299 # by configure, so config.status won't be able to write to it; its
24300 # output is simply discarded. So we exec the FD to /dev/null,
24301 # effectively closing config.log, so it can be properly (re)opened and
24302 # appended to by config.status. When coming back to configure, we
24303 # need to make the FD available again.
24304 if test "$no_create" != yes; then
24305 ac_cs_success=:
24306 ac_config_status_args=
24307 test "$silent" = yes &&
24308 ac_config_status_args="$ac_config_status_args --quiet"
24309 exec 5>/dev/null
24310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24311 exec 5>>config.log
24312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24313 # would make configure fail if this is the last instruction.
24314 $ac_cs_success || { (exit 1); exit 1; }